Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
We have to move to Codeberg
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Oct 11, 2023
1 parent 54ae250 commit e5f0ce5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
60 changes: 32 additions & 28 deletions HDDModelDecoder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
__all__=("decodeModel",)
import typing
from .HGST import *
from .Samsung import *
from .Seagate import *
from .WD import *
from .Toshiba import *

def decodeModel(model:str, predict:bool=False, vector:bool=False) -> typing.Dict[str, typing.Any]:
if model[0]=="H" or model[0]=="W":
if model[0:2]=="WD":
return WDDecoder(model, predict, vector)
try:
return HGSTDecoder(model)
except:
pass
elif model[0:2]=="ST":
return SeagateDecoder(model)
elif model[0:2]=="SP":
return SamsungDecoder(model)

try:
res=SamsungDecoder(model)
if res:
return res
except:
pass
return ToshibaDecoder(model)
__all__=("decodeModel",)
import typing
from warnings import warn

from .HGST import *
from .Samsung import *
from .Seagate import *
from .WD import *
from .Toshiba import *

warn("We have moved from M$ GitHub to https://codeberg.org/KOLANICH-ML/HDDModelDecoder.py, read why on https://codeberg.org/KOLANICH/Fuck-GuanTEEnomo .")

def decodeModel(model:str, predict:bool=False, vector:bool=False) -> typing.Dict[str, typing.Any]:
if model[0]=="H" or model[0]=="W":
if model[0:2]=="WD":
return WDDecoder(model, predict, vector)
try:
return HGSTDecoder(model)
except:
pass
elif model[0:2]=="ST":
return SeagateDecoder(model)
elif model[0:2]=="SP":
return SamsungDecoder(model)

try:
res=SamsungDecoder(model)
if res:
return res
except:
pass
return ToshibaDecoder(model)
8 changes: 8 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ HDDModelDecoder.py [![Unlicensed work](https://raw.githubusercontent.com/unlicen

![Logo](./HDDModelDecoder_Logo.svg)

**We have moved to https://codeberg.org/KOLANICH-ML/HDDModelDecoder.py, grab new versions there.**

Under the disguise of "better security" Micro$oft-owned GitHub has [discriminated users of 1FA passwords](https://github.blog/2023-03-09-raising-the-bar-for-software-security-github-2fa-begins-march-13/) while having commercial interest in success and wide adoption of [FIDO 1FA specifications](https://fidoalliance.org/specifications/download/) and [Windows Hello implementation](https://support.microsoft.com/en-us/windows/passkeys-in-windows-301c8944-5ea2-452b-9886-97e4d2ef4422) which [it promotes as a replacement for passwords](https://github.blog/2023-07-12-introducing-passwordless-authentication-on-github-com/). It will result in dire consequencies and is competely inacceptable, [read why](https://codeberg.org/KOLANICH/Fuck-GuanTEEnomo).

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is [the list of alternatives and rationales to do it](https://github.com/orgs/community/discussions/49869). If they delete the discussion, there are certain well-known places where you can get a copy of it. [Read why you should also leave GitHub](https://codeberg.org/KOLANICH/Fuck-GuanTEEnomo).

---

wheels:
* ~~[using XGBoost for ML](https://gitlab.com/KOLANICH-ML/HDDModelDecoder.py/-/jobs/artifacts/master/raw/wheels/HDDModelDecoder-CI_xgboost-py3-none-any.whl?job=build)~~ (works without XGBoost, but ML-based predictions are unavailable)
* ~~[pure python](https://gitlab.com/KOLANICH/HDDModelDecoder.py/-/jobs/artifacts/master/raw/wheels/HDDModelDecoder-CI_python-py3-none-any.whl?job=build)~~ - not very implemented yet.
Expand Down

0 comments on commit e5f0ce5

Please sign in to comment.