d8e400b52526de4874d80d8a258284cc91c51b2f — Anonymous 1 year, 1 month ago master
initial commit
A  => .gitignore +50 -0
@@ 1,50 @@


# Created by https://www.gitignore.io/api/go,linux
# Edit at https://www.gitignore.io/?templates=go,linux

### Go ###
# Binaries for programs and plugins

# Test binary, built with `go test -c`

# Output of the go coverage tool, specifically when used with LiteIDE

# Dependency directories (remove the comment below to include it)
# vendor/

### Go Patch ###

### Linux ###

# temporary files which can be created if a process still has a handle open of a deleted file

# KDE directory preferences

# Linux trash folder which might appear on any partition or disk

# .nfs files are created when an open file is removed but is still being accessed

# End of https://www.gitignore.io/api/go,linux

A  => COPYING +661 -0
@@ 1,661 @@
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.


  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.


  16. Limitation of Liability.


  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see

A  => Makefile +27 -0
@@ 1,27 @@
.PHONY: update_database update_torrents

bin/scihut: cmd/* lib/*
	go build -o ./bin/scihut ./cmd/scihut.go

bin/update_database: util/update_database/main.go
	go build -o ./bin/update_database ./util/update_database/main.go

	@echo "WARNING: the download is slow and unreliable, patience and insistence!"
	wget --continue "http://gen.lib.rus.ec/dbdumps/scimag-data/scimag_files.tsv.bz2" -O assets/scimag_files.tsv.bz2

assets/scimag_files.tsv: assets/scimag_files.tsv.bz2
	bzip2 --decompress --keep --stdout assets/scimag_files.tsv.bz2 > assets/scimag_files.tsv

assets/database.sqlite3: update_database

assets/torrents.json: update_torrents

# PHONY targets
# =============
update_database: assets/scimag_files.tsv util/update_database/main

	python3 ./util/update_torrents/
\ No newline at end of file

A  => README.md +150 -0
@@ 1,150 @@
# scihut
_decentralized access to scientific literature_

## What is scihut?
scihut allows you to download research papers _directly_ from [Library Genesis's torrents](gen.lib.rus.ec/scimag/repository_torrent/), instead of a central server (e.g. [Sci-Hub](https://en.wikipedia.org/wiki/Sci-Hub)).

It's like [Popcorn Time](https://en.wikipedia.org/wiki/Popcorn_Time) for science.

scihut is a proof-of-concept to show that it possible to decentralize access to Sci-Hub (in case of emergency or otherwise).

## Why is it important?
scihut decentralizes Sci-Hub "effortlessly" by simply tapping into the torrents which are published by Library Genesis and seeded by the community. scihut does not require any changes to the servers, or the seeders to work.

## How does it work?
1. Nearly all research papers have at least one DOI (Digital Object Identifier) that uniquely identifies it.
   - DOIs have the following format:
     where `D` is a digit. Beware that [DOIs are case-insensitive](https://www.doi.org/doi_handbook/2_Numbering.html#2.4).
   - The part before the (first) forward slash (`10.DDD`) is called the _prefix_.
   - The part after the (first) forward slash (`...`) is called the _suffix_. 
1. Library Genesis publishes torrents of Sci-Hub's research paper collection:

   - A new torrent is released for every 100,000 research papers, grouped by a monotonically increasing integer ID.
   - Every torrent consists of 100 zip files grouped (again) by ID, each containing 1,000 papers.  
   - All the zip files have the same directory structure. Imagine three papers with the following DOIs: `10.0001/abcd`, `10.0001/efgh`, `10.0002/x+yz`
     ├── abcd.pdf
     └── efgh.pdf
     └── x%2Byz.pdf
     - DOI Prefixes form the first-level directories.
     - DOI Suffixes are [percent encoded](https://en.wikipedia.org/wiki/Percent-encoding), and `.pdf` appended to form
       the filenames for papers.   
3. Library Genesis also publishes a compact dump of their database:

   - The TSV (tab separated values) consists of the following columns:
     1. **id**: integer primary key, that is used for grouping the torrents
     2. **md5**: hex encoded MD5 sum of the PDF
     3. **doi**: DOI of the paper
     4. **filesize**: File size of the PDF in bytes
4. **Given a DOI**, scihut finds the ID of the paper using the database dump explained in step 3.
5. Given the ID, scihut can easily locate the torrent where the paper can be found, as torrents
   are grouped by ID; e.g. `sm_00000000-00099999.torrent`, `sm_00100000-00199999.torrent`, ...
   - Locating the torrent is getting the _infohash_ (e.g. the magnet link) given an ID.
6. The metadata of the torrent is fetched using the DHT (Distributed Hash Table, the same mechanism that powers the magnet links).
7. Given the metadata of the torrent, scihut can easily locate the ZIP file where the paper can be found, as ZIP files are grouped by ID; e.g. `libgen.scimag00000000-00000999.zip`, `libgen.scimag00001000-00001999.zip`, ...
8. Both [github.com/anacrolix/torrent](https://github.com/anacrolix/torrent) (the BitTorrent library that powers scihut) and [archive/zip](https://golang.org/pkg/archive/zip/)
   support the [Reader interface](https://golang.org/pkg/io/#Reader) (or [ReaderAt](https://golang.org/pkg/io/#ReaderAt)) that allows scihut to have "random access" to the torrent, its ZIP file, and hence download the PDF with a small overhead.
   - All ZIP files have a [Central Directory](https://en.wikipedia.org/wiki/Zip_(file_format)#Structure) at their end that allows us to enumerate and locate all the files in them without having to scan.

## Performance
On a modest VPS, it takes around 12 seconds to download a paper. Majority of the time is spent discovering and contacting the peers.

BitTorrent protocol is _piece_ oriented, so peers exchange blocks of data rather than arbitrary portions of files. Therefore, regardless of the size of the PDF you request, scihut will (likely) end up downloading 32 MiB (2 x 16 MiB blocks); one for the data, another for metadata (ZIP [central directory](https://en.wikipedia.org/wiki/Zip_(file_format)#Structure)). 

## Installation
Run `make bin/scihut` to build scihut.

It is strongly recommended that you run scihut in the directory of its repository (i.e. `./bin/scihut`), as scihut expects its assets (`torrents.json` and `database.sqlite3`) in `assets/` directory relative to its current working directory; likewise for the maintenance utilities.

You need to build the database before using scihut, which is not included in the repo due to its size. See the maintenance section below for details.

## Usage
Try DOI `10.1002/(sici)1097-4628(19960425)60:4<531::aid-app6>3.0.co;2-p` for testing if you have not
built the database yet.

$ scihut <doi> <output>

where `<doi>` is the DOI of a paper, and `<output>` is the path for the result to be saved (use `-` for stdout).

## Maintenance
To protect our privacy, we have decided _not_ to maintain scihut, in the hope that one or more forks shall prevail. Think of scihut more as a publicity stunt to prove that it is perfectly possible to decentralise Sci-Hub to ensure its longevity. **You may contribute to [frrad/skyhub](https://github.com/frrad/skyhub/)**, which aims to be more than a Proof-of-Concept (but at very early stages), or you may fork scihut as your starting point.

Care has been taken to document all the steps for building, developing, using, and updating scihut and/or its assets so that it can survive. It should however be noted that although scihut does not rely on Library Genesis to work, Library Genesis is the _only_ source of updates.

### Directory Structure
- `assets/`

  contains the assets: the list of torrents and the database 
- `cmd/`

  contains the entry-point of the program
- `bin/`

  contains the binaries
- `lib/`

  contains the helper functions that can be used by other programs too
- `util/`

  contains utilities for the maintenance of scihut as explained below

### Updating the Torrents
Run `make update_torrents` to update the list of torrents.

### Updating the Database
The database allows scihut to map DOIs to integer IDs. Unfortunately it is not possible to update the database incrementally so you would have to "rebuild" it every time to update it.

Also the TSV dump is malformed, therefore SQLite's own `tabs` mode cannot be used; instead we use a Go program to parse the TSV leniently and import it to the database. 

Run `make update_database` to update the database. It might take a while.

Afterwards, you may remove `scimag_files.tsv` and `scimag_files.tsv.bz2` if you wish.

### Suggestions
- A browser add-on (WebExtension) would be great to have; you can use [Native Messaging](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging) API to achieve this.
- A web server can also be useful, considering that servers have much better internet connection.
- We have not researched, but we believe that a similar tool can be written for Library Genesis's fiction and non-fiction collections too. Considering that they are seeded better than the scimag collection, it can even prove to be more useful.
- scihut is designed as a single-shot program for simplicity, more akin to a Proof-of-Concept than a final product. A daemon with proper caching mechanisms and persistent connection(s) to the peers can reduce the latency drastically. 
- Depending on the use-case (server-side vs client-side use), the size of the database can be a problem.
  - gen.lib.rus.ec is also slow and unreliable at times. Can you devise a better (decentralised, faster, and/or reliable) distribution mechanism for the data dumps? Even better, a way to access the database without downloading it?
    - We reckon that authenticity and latency will be the biggest problems to solve. 

## License
    scihut - decentralized access to scientific literature
    Copyright (C) 2020  scihut developers
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU Affero General Public License for more details.
    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

## References
- [anacrolix/torrent](https://github.com/anacrolix/torrent)

  The BitTorrent library that made scihut possible.
- [frrad/skyhub](https://github.com/frrad/skyhub/)

  The project we drew inspiration from.
- [Library Genesis](https://en.wikipedia.org/wiki/Library_Genesis)
- [Sci-Hub](https://en.wikipedia.org/wiki/Library_Genesis)

A  => assets/torrents.json +819 -0
@@ 1,819 @@
  "0": "99663320037082381eab3876cd981c6941c2a656",
  "1": "904b876d52890c342e24ca5d1972ecbad59676ee",
  "10": "d96df36ebb87b2c8132d4dac7d88cba29e306d0c",
  "100": "e83b4a39186f7acc93a8c50ba031d030af885418",
  "101": "773c69a5d0fdf768e82233e945f07ba752a8a17e",
  "102": "97b568d7ce3748665cf8566f1872427cce4e0a37",
  "103": "e5b92ebbfdd0be048aaf14e3844cf230c7e99500",
  "104": "1fbe36c3fc74b894170fd88f2e24561b0dff0c79",
  "105": "4fbbe9703f6c2a04ee659a96c700eef2baec73b5",
  "106": "b49cc12d2443f2b786b388bdfcd30d03c1d9b9e0",
  "107": "b648cdb11351193e78e69632bf33079e937c1d40",
  "108": "382ad2b7c4ef3a5395c106f9f9eda3f5869294dd",
  "109": "849a88dc7e1df1680fe1b1611f26b86fd6f768ac",
  "11": "6da92dc9242057e89c35651680323683022fb86c",
  "110": "fce96241ad51ee25986d7ecead3760499cc07fd3",
  "111": "5eb9f0298eca3d2e5f1e16fba8d34886ec96b67c",
  "112": "d57b1013eee9138a8906bcd274d727b5d7e8a307",
  "113": "2c7cd3b8c12be2fdd970686e93dcb2c42859ec16",
  "114": "fb48ad47043795c61de8089e472824338366324d",
  "115": "f14f7ca12e70ed04d54bbce91a6a02cd775cdc86",
  "116": "16900081668ae6aff7dd22a41c54a0d9cbac17a2",
  "117": "36c0a4b29b71f9650aa2da1aece81370f59ad673",
  "118": "afa5872d32878f9e5aac188a25d5b071049d60d4",
  "119": "d2562469b1df8cf8b0a509bd09cfa463e451fd08",
  "12": "5ca8220f4dfcc9bf354dc61e62491dbbf56c02b2",
  "120": "7c898db38f1c96d9bfd11a6c43dbe23ed2bd0015",
  "121": "4b00e06129685fa5afcc142ccae5975673b129f0",
  "122": "006f09ccfd0a7abc9c0e59f2ee66305cfd700930",
  "123": "a202704fb0cb96ea8a040811e23971d16bcff0b8",
  "124": "4c846a2a0e11c11855ea990d969eef0adcc3882b",
  "125": "fe7b15cf61251a42399cafdc3b105ca7e3350445",
  "126": "1d84baec7ab0a3e10505a86ab746cd345a05c156",
  "127": "5670b8193089a536da12e6a71f62a099646bba5d",
  "128": "b0a26188ea049580976774dc72edee8b88dbc7ec",
  "129": "fcfc5473b042a4dc5370af538dfe5380c3a11acb",
  "13": "703716065650612fdc3d83e333fb493ff809de1a",
  "130": "9acc86e8a2c9a0c4e22f64758445bb4c131087cb",
  "131": "771e03e264691842cfd6f984aedb3e9e21fcd3a2",
  "132": "3809197a589ad42a372b5f466b55e649def9991c",
  "133": "4be48634e9e75ddfc2317c062d111525af0a90ac",
  "134": "b06a9a31bb80f7709cae48ed584f31b0052d3c62",
  "135": "3712150d4a43475a7b4dfcdeb4c777ceb6f30ae6",
  "136": "f605ecf9d2d074b7ba80ce2fe1c85915f10cb2fd",
  "137": "ea84e8a0811eeafa1d908ff59af7252564916d1b",
  "138": "b7b4160574b03d118f1fac02cb721b4fd7439584",
  "139": "2a937937f089e94d2991e5386ad1912640ee08ed",
  "14": "0fcebea4678e3dac338abe16044eaa6afa534b49",
  "140": "fcfc6e936ebd2de22eafb2b3de03756641d0833c",
  "141": "29ed408243efa0281e909ea90cc4266f4797e4c5",
  "142": "1e1c113b651874bd01d41c32daa3318fc36fed10",
  "143": "6d7e79aa07134a7132d509387b97ed8ee7e823b7",
  "144": "7c9de3f3132045f95cce836419c1e9d42a95906e",
  "145": "7b5c00aa89d42de71a8226c00c0317601fce5e2e",
  "146": "07fac4e95e1daa47cd25844e3d31af141f1c3a86",
  "147": "784cd716c28d7171769c30989abdb527399d1758",
  "148": "7268116832d960aa0727d63034feb711e7ce7ab3",
  "149": "bec19d0b3d8cb15ab1e525e68821170696d5d5e1",
  "15": "262c2f22382ec6bbe42604fa62e4061ca04ed7a4",
  "150": "574c70f52fa94d4f0efa64817c69a302329f7e96",
  "151": "e5a5fce77ee1ebfcadd4f91743295b2760b35ca9",
  "152": "46b22e6651633405c8e82a1ee592006a8193ffcb",
  "153": "d9719e5ef67681ba07f343e26c583e338dbdc6b3",
  "154": "55e52fd45c5ddca183faf00bc199083d5109737b",
  "155": "4e364bee7c73e19b86b60056a4794811a5227b46",
  "156": "253e194b8fb0d57c233e25afb40a5d7a4a9c36d6",
  "157": "0cd3a3ae849628e1b6266f2602a67dd0fffd5f1b",
  "158": "1271f29e55d1051dfcbeed7ec111da3e431d0533",
  "159": "6d9b97394b999ed0ddd710de2ba83462520b8e1d",
  "16": "fe20fe0f1e7277c3788cbf5ea2deb9a0284b7415",
  "160": "798f15abb138a431f6728f53f64396b2ea3777dd",
  "161": "7b78d3e49fb52d8fd19273b6685e0a4c624744d9",
  "162": "1b16a8ae6f86cbcc6cea8b97386576b4e50c64bd",
  "163": "62dfeaddef56526661e7968ae0ab4f7c60c7f6ee",
  "164": "90e8b73c378ae96c502ec3c8bea09a634a08b86e",
  "165": "40c1320b9b2a60255084a6a36717f689601bb7c5",
  "166": "b1555618adef2c80854c23fca942d287be2078a3",
  "167": "e48d449aaa6577d2c3416802276376adedf63321",
  "168": "e16569dc6d674368c07d2b2d7827048b591b6d1c",
  "169": "e268ab4cb5cb8af3e544242c47b06fc96f8ca65a",
  "17": "356227440f062eefbb7c83e1274eac01cf7f3b06",
  "170": "5331ab913d59c76655b6755d46d0d9d8e5f6d0d8",
  "171": "510d9c6f4df8d500d06ab59d65ef2dd043999588",
  "172": "79b56a81ba753a5c1127a1155e8c0bfee1e3a4de",
  "173": "13a595cc4217b7841af32a7d4d722dba7c8cf5e0",
  "174": "0bc6fd1a4c27f2ddb67295f8c0bd421511395e40",
  "175": "d610b8c5b7cd818f5d16e0b6d68a36c70c17b514",
  "176": "aef55f343d77a2bb2b1bd077d451f4d654ea999b",
  "177": "2d20d6b37bfe649d0ec21efc98b901781175b705",
  "178": "db14adc94390de4d7917141031b6be092bb605a9",
  "179": "d309930374bbf772df4df697ea78b57e17bf40f7",
  "18": "5eb63cc7d28adedb7bbb6c9ee04128e6ea1bb509",
  "180": "681314133d3cc79719cd786307923b25f929bb11",
  "181": "8225d50fac6817071bb00cd427843137790c6d1b",
  "182": "2af6faf21449dd95ff53a947ebd86de7db4117d4",
  "183": "8ca487e8b527ba3a540763d8b415312704a258e6",
  "184": "40641017eb4a22001631efcdd367e284a8ac01b5",
  "185": "fdc0f1795d923adca8fe52a87da58d028d5125bd",
  "186": "d6ab3b01e08095583e5cd18f9ac8549edf19905d",
  "187": "042f3c4c0286106c076add95c4ba880966af9139",
  "188": "a79278018299659c37f8d938a4b86d20e7b34fe2",
  "189": "650c268dbfc89742df83d923728f8b6770ffc9b8",
  "19": "7fe1b525a1f3c9bfec58e2cff29588aa71888d91",
  "190": "ce1f54c979d229dc6b7c12d51e3bbe2908ac277e",
  "191": "11e0813a313edc02ecebc4a9b0ab262d3b36b948",
  "192": "39786e596c1e3296ece2fbd00d4f3b4a7a19174b",
  "193": "4103796b5adb4fcf852764e4d4a2749b1966af5b",
  "194": "2caa2935ff390c9a6b60c7f0a5b2c3da5ed265d7",
  "195": "c983c6bae3815e82d19a76c3df4e4adff61e0bb2",
  "196": "20aa754de16fcf1dd65dbc09a6eb0df275153f5d",
  "197": "48eb3b77881f37e976fa3190354df9abe952a67e",
  "198": "f951f0c412b4fa03886dc9d01bb829c58b038d74",
  "199": "ab74ce2161b218d296b35c433e66d56f87491d02",
  "2": "cc06334872d8dbd838ad695564a2bb798251cda0",
  "20": "9a21f373aa73a3d5a52ed8cd738df75685862e42",
  "200": "910d727e9607ce683fd939c146982b02972da78d",
  "201": "c40d301ff9a8358bde1a8b2d19a727b035c14cbd",
  "202": "60961b49f0eb0ed29fc60e00e515e7d12a756b90",
  "203": "003626872aa81f6a65550c38379d143b337102ff",
  "204": "a3ae825bdbc970aa92ecc30d8e57932f3e250131",
  "205": "23dacae4f8ee1e740446a56daaadb94adc0006c7",
  "206": "d99a5bc4a2c1972aa399f4647af1db46e6f83c79",
  "207": "6db6cef0c23df8ec144e3b34c426dd5ad3505a0b",
  "208": "7531663e2053e5a8c10e954bc56656558a622ce4",
  "209": "3ae60b0793309eb96a58ac772393ed61f2b40f35",
  "21": "8895ebe458199a760948093e75a77a41e6cc9ae1",
  "210": "952f922567a10903044a09ca9e1f26442b85f7cc",
  "211": "3f443a4c98ae683dfbbc46b830358266f8fdfe35",
  "212": "b940e7fa4c246fb0ebbc0b0aad4d7de40e4e712e",
  "213": "2599e0c411bf465c7d4ef72d140d4739b21bae74",
  "214": "e950b044e05f13551d35fcd6e29dd0ca62c63693",
  "215": "2b7098de96119dce93cd71847572ea46429eb732",
  "216": "ab8e3ec0a17139458935af46deb4a98172be0eb5",
  "217": "e5d872a7def67011d6aa3d908e0e29a0641cf1e0",
  "218": "3a820bbb6d717a8b3401d1382907b9cebcbd194e",
  "219": "805aa20ca132574e74c59d1f9c9db31126724c68",
  "22": "63e79334270e92ffe93a692a5472fff7bf04dbf7",
  "220": "4738b03d82e62b847ef120695b664b6e978d385c",
  "221": "5ce810efb4d9d7df15d93619002572b8f5726a92",
  "222": "bb83ecbf274f9cf418de82044f3361fae8f98c65",
  "223": "f9fcf7113b8a8317f9458812077cb45c8f099702",
  "224": "cadd9e7556c073658626019e8d5ef9788cbdcdb5",
  "225": "8ad52c09d4a98fc6582e1313985b478f58037ef6",
  "226": "c0700b0a9649fc647775cd5f7ef0e713212b234b",
  "227": "ce92fbd9f2a395e0b78c6cf1fc778024f5ec27b8",
  "228": "5b8a95fb28d1adc94968fed3cdde1804341f8568",
  "229": "5fabed18a89dcc2a825f6b20359a082801c24d40",
  "23": "fd8c15cec2fac765b4a596039a1f61fb1e7a704e",
  "230": "e50ce159fa0e25118c27602ea5f5ffaa93bc8e43",
  "231": "93b0771c8ccd5719305d3c446d19b0de3b9a1f47",
  "232": "709c4ac9d7bf69d8dc9904c409e399fd7f91901f",
  "233": "410797768e7ef4729aaf29cc913f2a31460b31cf",
  "234": "cd86701185a8dd9a4afebf089cbcee32ac1a6e35",
  "235": "ec0542e37f9ce3edb494281b5656fc17e05284d5",
  "236": "e0979b28c10bb38122732338ebc97091e76a2897",
  "237": "103827c87e0e63dae8580979c18acac6a2982eb6",
  "238": "3ff5032f49d8a3321bbc0ac6e7e857d213546953",
  "239": "745981ab9d2d62e2482136abc53633cfeab5e1d0",
  "24": "14ee068abecfeac14964a2a178922960d0b3a164",
  "240": "a49eda1aa410aefb9747e64bd2df99e319abf617",
  "241": "202149ce5d033748df1f9f6b5a4524c452efdb96",
  "242": "2dae056714cd3b6aacbf4712514dafdd3bd87f3a",
  "243": "cf05c258f5e7f48ecd02359971b15e71bcb21e2e",
  "244": "28d648ccfe3c0a771cf14c3ae659b525536bd30b",
  "245": "52f12afd0d279ca554ff70d27fd586252ccbe4f8",
  "246": "d559ed19d34de532630971bec59c491458aa6bed",
  "247": "e9c3b677ae3e3f7881d20c08caad73dae5e3eb98",
  "248": "7dccdd61efc952aa4ada9fe96b28be3492cdce45",
  "249": "d623054af1d49feec713e4facd47e909c68a2292",
  "25": "2e3e67ebdddcaeba500e76b21b2cce907b4beddf",
  "250": "48c0bb280346a92db000f96223dcd194b0bd78c5",
  "251": "447aa9163bb9b20a0ef40fa0939c4fcda3d47525",
  "252": "963061075f43a4a202c5fe46f99abbc9c022989a",
  "253": "f5d5bc75995fa6f1cbfe1dff6d01c3443e31a163",
  "254": "977541cc4c4f3f55072af4a601ebc90748dd189e",
  "255": "8505612c1d6bbeb237269a6545e08d62933d6d3a",
  "256": "ec32d632382e4ecbe4a2ab8e7fb56290a7f680f8",
  "257": "84f09a98238ac9436e928f8859aa40fae67f7e8a",
  "258": "830075ca281c57281f9b3af50030021ff41b7d67",
  "259": "7f3b244bfc1a2c21cd5f1f9d4845a899d2762f9b",
  "26": "266767a1286327b15389a05edaaed2e2154e40b8",
  "260": "53cac3a7423bd8ea7debf68829a8b85adfb4f8cb",
  "261": "a518c76d729b21cc5c0780053fae2d66a35fb3c6",
  "262": "9a03bdd5f3ab8fa63affea88c732186619e077f3",
  "263": "08a4c22abc515540e39516380cd606c1c3473017",
  "264": "63c383506c2887920879526d16ac0db3d6efc7f9",
  "265": "c10960590ea6a60ae8e76a7718b0fdcbda6b2a23",
  "266": "ba55647793b602b21f75cf70ee49eb073dd87d92",
  "267": "d20b436758ea1c8be7b7080ce00ca5b39ee6f28a",
  "268": "0f8b1354d533a400496d9647f398c9f875ac54b0",
  "269": "1641ca5f62d49ee0bbe15c947091d32f616b098b",
  "27": "d8c0948ef4482242177e3b211cc3e39d97d552e3",
  "270": "41ffb7142d4e10397f913f52bb0f6956c808e52a",
  "271": "f2ce88af370afeed27c4a5fcc0d92a1a89d9c7f8",
  "272": "cb9c3b54ce84fb06717d90eab47927dc4b71ab20",
  "273": "4c8f8e91ff197ebc2aa6d1aa06eb66b40474f733",
  "274": "c1f51ace341751211bbfc2e64ecb657c56ba6d95",
  "275": "dd8df1604479db745ce62df9b008eb4c15ea2339",
  "276": "92795fedb4c60fa81c60d55e4591072ac211d38e",
  "277": "239f3f9b58960e8aa5417bd9425fdf8917c4a383",
  "278": "aec4daf9b0df79e7dc5808cb725c73831d4a7c69",
  "279": "395851aad699b9e23d2ee8735fac413d31ba6d2e",
  "28": "628576a863a538ceb0918102a4d0079c97422215",
  "280": "631a036066b86532ba658c7947e9d6f2703a0b12",
  "281": "ee5a448720e205b921458a712398bc2e8c51b283",
  "282": "4de7fcfc11f9f8f619eee3cd66ddee42fd496de8",
  "283": "abd264f54f8d2ec4454350403c443047bfdef75c",
  "284": "a4203875aef163d0ea23a303b1686d842cba1e52",
  "285": "0c03a7a21c7145ccbda44f7ee4e6a3f2ae1cfdf5",
  "286": "9b60858c76f8f588f338f7250d32c1819d9b9465",
  "287": "e9b15addfd429fb087c39af1fac735a6b6e82ecd",
  "288": "61e5d0c03ea24543d384b95f9129aa7f8cfb8283",
  "289": "ab0f81f553f2bd881b6d9808ab3ce62ea10a7b76",
  "29": "9d0f594f48c4751f08cc130f7055878c1b66021e",
  "290": "3de9e74f6b85e98ce124dad82cc9e22d6fc83e46",
  "291": "ed457b316f4806107487be0e861cd69118e04e63",
  "292": "577912e613df12bf15295adf07fbd6df96fc3798",
  "293": "402fae647e0bb84484b3fc7c85f8eb999480daae",
  "294": "12efa5ed59cac260f5af8bffa51be6da8b898aec",
  "295": "0ac2fdb9b0777ed3931e19e62c727601353e5727",
  "296": "06af1b7041323ce39cb5021e4a956e3079c76058",
  "297": "b333538521f6057ed28363270cb5e0f0fe622892",
  "298": "077b455e790d3e339b23df8a2e18c9c30b63376d",
  "299": "93416c19d636349695967c70406bf381bf7a37ec",
  "3": "36d65e524cbbdf833ba691e8e49c752b14d466e2",
  "30": "d3b86f91c11805b586fe695de32cbb3c3e155ca5",
  "300": "6e9efa4038f3976da450c56670e5c7c3699e30da",
  "301": "47679e846d59e809c605fef2f5dcbe03aee8ceab",
  "302": "6fe81f8cb31848d9d3a25bd6c59534f4c25231ec",
  "303": "fc0c145f2945b09ed13167144bb053811796c537",
  "304": "f6a05bdd20abd1771a550b161a42ddf267c438e7",
  "305": "866265a3b574078df1b825ddc0000f6f13d5574f",
  "306": "169f79a791007375b4bcf31ff0521b9821e6660e",
  "307": "c2abd5a970118bceb4666ba550a3b217e954c4bb",
  "308": "9831194b51c6672ff6aa090c7b60559dee6c6d9b",
  "309": "9576442da4154af3a0fe02aca19c97b7bab84f81",
  "31": "b437db7d0c47a6a44bf7c2666794db273b8c0763",
  "310": "e58fc5cdb35909d6a49d3406da0fff6e049ecc4d",
  "311": "b59281d1fd4d607b63c863f3841709228a8fc501",
  "312": "7e93577b39d1e080deffa9f222f816fa5a807b7f",
  "313": "dba1ca905b5f0fc43616431eec46b5d30cb15e0e",
  "314": "5cb2293a066168dbe377336ee89dfd28fe756cc0",
  "315": "48bd6eb1820ec192b4ef50cb94bd184d325f1e51",
  "316": "f87fad1652713f037c59f426348ad942c0d3bc9f",
  "317": "74b04f7531455ecaffda48428b70350f29f1fb92",
  "318": "598af6b08051e8f95070dc756c000ff7332312a9",
  "319": "52dc566cbbfa5c729f03019dad1c17b31ba2bce5",
  "32": "2bb989379ce0b47a926b39b62950c7dd420d8afb",
  "320": "8dd1f2420259970c15feb3c86100135b502b3ff3",
  "321": "60d613d55bc5d746a43b8ef7092a7261c0d57d1f",
  "322": "1afecb7893e1d3b613107fdfc826cac8a09e1ed2",
  "323": "4d26e3aebeb6357e53639f8201ce1956d6a08a84",
  "324": "a5e6e061206e7f16bdd24f491bf8e9919e399759",
  "325": "a1fe87b8bc3d6466c2697f7e4f18fa6583c1e1ee",
  "326": "9f219e257ea0102816f5f5622c9be8ea0c4670de",
  "327": "16ae10c9afea500f24b406dbf629266ef182bb31",
  "328": "66d139122ad524689a154bea0aeba885cd3b5b46",
  "329": "33de4d1ffc2bfc95612b3345092ae4513323b4a9",
  "33": "05ae0276576867d26caa59da8eeb706132b33920",
  "330": "7baa98631853a53b049d030118b9e7339347bfbb",
  "331": "21c8fd70c4dae6d79adb268a88c7e0929a3431c0",
  "332": "bafc8487a3cf8be2d6e15349cbe01a894fa1c32c",
  "333": "873cbc7d1da293ca10a9200cff7166f913b3e18f",
  "334": "947dad42a824c665155126684c67cde1a6d296d9",
  "335": "6efec7b877ba4f74487803d39c6155fbdcc3b9fb",
  "336": "3621f8c29cdd5860d7af60e4849f8c07d401c2c7",
  "337": "c7303bfbb8803bc84c17bc9d2e6b17671847a2f1",
  "338": "414db016109fe0f72a9fa35bbf3ea9c766955430",
  "339": "b4a3dc7aa006a024d18b06c50165cc732ca10c75",
  "34": "88dcaaafc71fcf78782bef8e40abb6d42ce6ca51",
  "340": "426a8d09675e591c08ca53540a98d2070af20092",
  "341": "3ba2c20024bffa72e5a5276d396b49b88813cf26",
  "342": "f3132e2965cd5aa5d41b02026a63cb27705a0275",
  "343": "24bbf3df95981c6ad4aedb4ec3199c3f6be58d01",
  "344": "a621f5dbc23c57ef93a57142ce48c3e070166ceb",
  "345": "abe2b911242171ea89fbd8e14bb0b8f4ecd899e2",
  "346": "998789422b81e9076b9cdfcdcb67aa7d9cda37a2",
  "347": "c1689774b2e47bf4f9ea6807dca438e49379c964",
  "348": "6f5a954e75e640808e6a98b96d4bb8cd205f572a",
  "349": "1be108d0e316ff77db641d69a7d2f9238cc95b42",
  "35": "349682fda8836e5a9d77d631be577fe767033aa8",
  "350": "a92e384daed9fb8248fdd38b08bb3ddff880dc40",
  "351": "36595c213d27a618931b7ec2d7fdda870556cd31",
  "352": "d144dfbc0167dfe39526fad1c90285489bbcb8ef",
  "353": "a5cd48a9df528e2cd0177fe8ad8fef875336bfd0",
  "354": "03e870daededb13e78d07aaaf77b2692577bcaf2",
  "355": "fc775fdc91a55d307a14ec3da5a920fb748505a8",
  "356": "afe18470137f9563188a43b3cd50c7475b831d68",
  "357": "8c95a8237584bb348cee7dc55df7b41abf6150ab",
  "358": "bd0ad85a5640a2979ad8e36a73d2dd3af1606d2b",
  "359": "3ecb5d6b5ef634d124f0fccc6e0192d7a052db61",
  "36": "8c7f698905c9a01b5efcaa2e135ae7ec9d54581f",
  "360": "cddcfc4e484ec99b60348e9fe3a52256e9eced9d",
  "361": "efa547b1256e3867a2b3a6ba60336d821daaa0e0",
  "362": "f447da0ab08377c2135bbb32e378e89ea5bab246",
  "363": "fc104819fa4bd799ba4e09454ab8b9d98f4546d8",
  "364": "e6ca661c57881a0a59d0d8d8a2e8798ce6cdaf17",
  "365": "864557c6d431a394f1df5e7acc3f179cb23e6145",
  "366": "76b47a5904c899f10e93b4d03334724f524eb11a",
  "367": "1fa362a27afb11809e301431813421c34eb16c56",
  "368": "b663398b2f644308a31caf5e901e8cabef3f82db",
  "369": "2c9157b7855781f04df8a6d2a4bafe3598c98f50",
  "37": "fa209df62043471ae63d1980fa06c6bd39c5d59c",
  "370": "b3e91b64898317934894d0562a1ff9ff62011ef5",
  "371": "a8a23b1ced475338973c05aad733878cb090f22d",
  "372": "43b9445b17b72613f5366df4320d11b9395b923e",
  "373": "49ae02bdecfd723525ad6a7e2e633ae7f0443923",
  "374": "e146b64377c7eab3075ca0f093d6e8e7c5f35fed",
  "375": "d9401cc3e6266f3ac0f65e23b6c4e69a34d844e7",
  "376": "ff7b46024e39870430c91c4482550143787682da",
  "377": "10e971811b430666f86746b02f4281114a299ab0",
  "378": "6c53f5c0fe293eae0ac4967ce9be64320d6b21cd",
  "379": "adce425894580f8a2d5fe0613b2eb5e693e868d3",
  "38": "8a7271304f0ff6172ca9d9f3197420807c47dbc8",
  "380": "b80d1ca3791ff8a95e6c710c79c67cd6760cf20e",
  "381": "947bd6ca243f3035453b118335bc5538db2c5794",
  "382": "b3cb5871bd62451de0590543bf14021577678397",
  "383": "0ce9def4ba25bb18dc023db7aa08bce64d62f1b0",
  "384": "cf806a5159738b1959e9ac5c42dfe808d3feb34b",
  "385": "dc651b4ad1cb1f8193f54abbb73ea8773c7b78f6",
  "386": "e91936d332298c8db76b38593e096f9c6d776d9a",
  "387": "20c1469d519848cce3ed7ac2e36856b66fe62acc",
  "388": "69634b454560e6f90aba3a6f37f1d9c1ef50feb9",
  "389": "d4e5a6c53df760cba74be4520e6e256ad813c87a",
  "39": "7128c9f359976b9bf0a49bc890376a64e465dca9",
  "390": "5ac008d276a0baad315e3553ab8ffbb3f0344161",
  "391": "787fc5e2dbef8f9edb74b93c159b5446a007d69c",
  "392": "f3c181dc581824a28f1377387499627b945c376e",
  "393": "48369fc32f852f8cd2242faaa5f3706e25fb3582",
  "394": "8ce066c368dfa6f8571d29adeb8997b0f9a16a28",
  "395": "94778324629ed5da6e9649b2201dd89048ed3a65",
  "396": "983bebf88fac515bff449fb590371f257d4b8574",
  "397": "dd6007e28f32e264fddb668adc3a6e4606c5f038",
  "398": "0387c879368d89107b3784eb42c56eaeb664c188",
  "399": "78d5d4562cb78e4559975049c198e9147b1e1f2a",
  "4": "25cf45866dc64b4ba21b71a67380ab7fa19ed453",
  "40": "a9c5a753b0013683b23904742bd10ab70544a1b1",
  "400": "00e6c6ae67149c79ce4868ef63e540bacd23e39d",
  "401": "a7f101bffd3c7984c2a4afefc2556447e27fe37d",
  "402": "2ef0f0b9d12a83bfa80625ca049f58b5259e5d51",
  "403": "8943fec2dbe867ca3b7b3651be669d59a4093f37",
  "404": "a6549be6ef8162706e3ed4e0943fd7344303aa52",
  "405": "91187211e17b8068b6861ece4e25f835ce7c0c40",
  "406": "a37a4efddd158008509a27cd33088ba25bba2131",
  "407": "6a3e403b5fb615d7ae5231e2d1b06eed0cf9a22d",
  "408": "53cad5631a56c3b0924ccccf3eb346cfbe6e8004",
  "409": "71303be8d049e442cc11eddb7d6ef31ee65c49c5",
  "41": "77b9bb7107e13f40d93d4899b015de1aac00d70c",
  "410": "364cb41ea1f96d4d6189b8bd7fbe37ea3b17fc4f",
  "411": "ddfa88760628e65bef83f73b1d4bfc4e0ff3780e",
  "412": "cb8423875fa8d99ece199e0f52631f515f600fec",
  "413": "e1f2cd5c54da02f85558023385ef9401948c75fc",
  "414": "66ad01b3cfa8903ee953608d978f05b80d17a001",
  "415": "c5866661093fbab6eceb903416929385941b9f55",
  "416": "75f24ce2a1dacfe8e373363f1f9536a997d47749",
  "417": "6fd9cc3a1c903658c360c53cc4b0e192214221f3",
  "418": "ceb04a1647b410d6e6eb4b295f52572ff295a589",
  "419": "afbdbef66c329c44f383ce08b2e3881e7f1d69c1",
  "42": "09ad98c90f1c6a751d77e08a218774863f368433",
  "420": "7eb7ea687db0b00e348db77dd63434420b5cbc33",
  "421": "36f6b8e3ac723281ab4f93a18f6c6eb3bb535692",
  "422": "0ff972f1b3bbd9a4ff05ffdcdd3b6387bf04867e",
  "423": "d098bc76b267d4ba0082676fde94848192b04aa8",
  "424": "38cf3bf5bde0039c4f6f203cae8e30dac4290e94",
  "425": "232b957045585cf7564705c55f086f1074256b5b",
  "426": "72eae866856f4a14bfed1fe9a60cf3cd14b7a510",
  "427": "e7d9baf1925ba7f5ecab2406feafb361240bf65c",
  "428": "9db656d6aadd7196852c8fc32d5df7e9194f89d3",
  "429": "3e50be8792c1b10284ee023fa6e98b80fc14b307",
  "43": "4c237402d1c54030356937b5bf31d09a784f6bdc",
  "430": "9f2a67f37737c52c21b9e831174bf028c0b86562",
  "431": "01f2419cd1a2a615b09297dad5d84d31e4d02b0d",
  "432": "d7fa7e804156d86985f2c1a395c3f71cb5c7ca0c",
  "433": "526785d32d419f128f40db5615d8a547d51cc9f3",
  "434": "b7fb39c4f2064aa9e79b83d68e965090a7de8d62",
  "435": "7c5334d1ce62d24b2356838dfaa3d4ed120a35a7",
  "436": "18ec64296f1183b51aaf925a03ceb385abd12442",
  "437": "ec6335c543edf8bc4d395bca022dc339fd6e8a1a",
  "438": "e2aae00a0c434d2efef953d2f7e78a2d4b40eb54",
  "439": "6b1142bcf3702233d4b13068d849c150c557008b",
  "44": "84b098f73a227aa5948a22a894956975d790c020",
  "440": "67b2f6c21ffcc4b1a747e83525ebc179a61da9e5",
  "441": "e4fd9faba34945809b205eb6f323e15b3e9a08bb",
  "442": "af5f5434d632761e181c92aac9ab68f489f93b88",
  "443": "711a7167bd54179be4e8fca852a8a76bc35557fe",
  "444": "1279e7abe60e3e5c267efeb91085bd6aa6186a34",
  "445": "978cc079689e663da1955a82bbaef87893d93c1d",
  "446": "87750af0ff63ce2209ae888d1aad7c73c8d8a624",
  "447": "fe85a9db153393396eeb412938097af6d2c3f722",
  "448": "4d19066aea06e440bf9e872800a6b1a21ee55b54",
  "449": "107b0c9190d7109e48341595a7b1b51fe09440a1",
  "45": "e11b4cac70bb3050b0812737111afa7df5db71d0",
  "450": "d1e8f1821df21ffa30686ea3dbf52f6e3f961aa9",
  "451": "674fbdad97d3b76d09c6d75968e5067ebaa08676",
  "452": "52f90896f43aca5a4d35d9dc34049313b8c81ecf",
  "453": "a6a194e2f86c5a31951f565feaa020e4fa5a64bb",
  "454": "55ef36b91abc5271c110899cfc7d5983084f0c4d",
  "455": "181754445324574962b9aa27767ff2fbf04703e3",
  "456": "c6ac7bdceae94495855e062ca1a121fb1d2541cf",
  "457": "71f4345a8535a919bb21363ce4f0dc9289d12cea",
  "458": "e38e9f8a4e317e6161da557546a83c07c945cc4f",
  "459": "ecf9ce41c339b30cea972807cf20f02def15f1aa",
  "46": "49d94b4711afe40114cb67e931ad308aed9b1072",
  "460": "add7529165b8d8952ab49a74e4051f6d93c7d0eb",
  "461": "2c317490ca9180f37816f52139818b2290a937a7",
  "462": "eeb080d4e670151f7de6451084dfd8a71d3e66a4",
  "463": "1993887b09f35ea50342cb4a782e73910619b490",
  "464": "a0aa67296877f01017b5468625071dd28c73b4b2",
  "465": "45c0920da8d74cb859ddfa727aaf82e585734cc9",
  "466": "07be1495e48a8014c83c923effced55e264ed9d1",
  "467": "25dc275393e60ac873eabe61ebd38dbac29499a8",
  "468": "fe509b2aea28f35bc048dfe25242252b9f5b504f",
  "469": "c5e02b25503d4116a4a3954a4a673d2ed0c53fc8",
  "47": "5b688c0473cee76825e2ebd4c6b51c3b95833418",
  "470": "3314f3a79bebb371cf107c7429b884bcf8c2512a",
  "471": "8290fdb76ede2b014300d9673e1d1c8431d236b4",
  "472": "fcdc12df7d5c5a3145fec53f04ca4cf741570658",
  "473": "b6833c3100590821f21359d6cc32265f170359d3",
  "474": "e2398c91fa18bab0d86ee320cd405147923abb87",
  "475": "e3503797d077fb0b45b070da57f03d5d46bd49c3",
  "476": "ccf2911f41ec2c9dc33f12414cda62264ae7a398",
  "477": "e572e4c4f087aed812cbef48411fab3741ecce47",
  "478": "708d783288729d43b2ba96674ad3a8e3d68e23f3",
  "479": "93bf1e2d55194daccfa43b977a8a7a44712d5444",
  "48": "7c2522cf8b4e32a6b05550072489045a9e8fb432",
  "480": "c1f8ee00b1d71752a1837680a0161b4bfe57c8bb",
  "481": "e6b1ec12e9fb2e93b21629eeb2db518eb502859a",
  "482": "678488bbc432f106f6e20ef76a670fcbf26c81c0",
  "483": "72abdcd2cc716734bfd66636cef6d8cedd7e4634",
  "484": "ae57413dddaa8bcc96bd44a73442b02d45a97f7f",
  "485": "e432d84b966fa6657bdba9cc38cd4dc1844a2944",
  "486": "419ac7b80553b407ee92694ecbc4d26f6bfe1a57",
  "487": "14bc604ac1467c6ca2954ffd9de73150c0341400",
  "488": "d93485b6287aba794c13c1e625a28c9477a986b7",
  "489": "0d742315fb9d34f479f362d5a85d01220e4614a8",
  "49": "efe47692d6607b1a70f1ccbc53019bd309203796",
  "490": "0576e2b5e1bee17e92c11c8619d56d19f55b3ef4",
  "491": "a24480f8faf72e6c4f3c91c19368e36c73a4eff0",
  "492": "71c7d3a13d7f70487657ac947375b638ea324f19",
  "493": "38d4723364515adb070c097127e3a4584db3287d",
  "494": "0435ad10407f5dbdbf94398af2af9aa003d718e7",
  "495": "7feb90d73ae75e629a40a3ef31888462e91392cf",
  "496": "95c1909e52497656ff2a12cca47b9d65dcf72bc0",
  "497": "4932028cf2e3742664895a9716b2ee259d04ffb2",
  "498": "bbe8b2bfac07d8ec5c8d613597889389ca402728",
  "499": "839cf8edff0b7b313e5a243073c57b3952cb80f6",
  "5": "b95049d65eb84a1a266e19f464000d717adf5bb7",
  "50": "ad000c4df861c4ac167863e322729f985479b8a1",
  "500": "d4187378e334434235ec8d8bc13f059aae83dd68",
  "501": "9fd2668d8ee6bbffdfa1c1ff2bc5671b3e7d432a",
  "502": "34f5977ee28b87289a68e678c7d05d649ef86dde",
  "503": "c84767b1034c36b2ad1d43ccdca2f5bf47f159e6",
  "504": "afe2eaca679793137a11f3a178610f23f02b2886",
  "505": "a335b3a816d968ed3dfcf8e88655278f02271868",
  "506": "7d57b18febf9a143af618f4935dae4915e83e831",
  "507": "1bea24e7e1032bbf268cfba870f22a3207279168",
  "508": "e753c03a9cc469ee02c1db4a651a68fd7f84505c",
  "509": "bab8090f94799dcf50d69f49ce45547d0372c3d3",
  "51": "734193a43dc745ae29d41f9ffc68f666f66b7691",
  "510": "d5031451de284140aba2a35e87636818fd86bae9",
  "511": "1b25775584d22677636526fba60b6ffb5f6fd2d6",
  "512": "8e3cfd557f5d0f22ef9f894f4f2de846a77ec3ba",
  "513": "e66fcf4030c1501ab0bc6b28d1c80eaba19dac90",
  "514": "2be36b76b022f02c0740cc2a7f6cc23eef15553f",
  "515": "f565f93e7d64788c4b81e479712a0e05ebcc6898",
  "516": "35be05afa9aedd6fc3e57a5acc59de59f76f1b60",
  "517": "8055d2d88508453a1f751ab8acf48c380ad5f3c1",
  "518": "15f1b73afde30f455c54b2972ca9520a13cc857c",
  "519": "cb293680bd6253272ec88642a2cae923d311d4d6",
  "52": "45dc3e4a3c831fd4b36f99d6a06cceab500bde6a",
  "520": "ab29a0c4398b262ef5775f01cb1acff58836b4ce",
  "521": "259094649767d34001911a49288aba8eb987bdee",
  "522": "73e6f73d71596c1d292683b7c9a7883966ab0904",
  "523": "8c674ac2869cd52efde15ba726aa8d6ba024eebd",
  "524": "f97e28fbf7ae2cf83a87b2b19b52ef3fb89be73c",
  "525": "221f126d6c07e3becc484af46c2429c6882fdfa6",
  "526": "7c87e3ab65842cfeeb40a9828c13ae75d7d1891d",
  "527": "b0ff9562858b8290a94de8580b1f7637b93acc17",
  "528": "a019eca24d43aebc75d4c194f5311ca02ab25119",
  "529": "c32d2da3da35b63671c5455214e31c43eb8d8a56",
  "53": "e572dd34445002e2d0a0f0d5f87bdfbfb529027d",
  "530": "263e0a0ff88e03cb43e74bddafc49c0823cb9976",
  "531": "c0f4b9c0b57d43d5eaefc9917c2a79a8febcdc8b",
  "532": "528cbc2abc891f50588c80c1b7637e2ea2fcd12b",
  "533": "3e2c1c207147cecdc0742c82769241f43cbcbf0d",
  "534": "e6526f4eaa9d1d4afbc3f889e0aeabe0b8bc4d4b",
  "535": "562bf874099694c5840e1b2c3d2d6de144c1d68d",
  "536": "5f615fe58b4e0c465c09221b2dbfa47ccda72f4a",
  "537": "f33fd791c44e06ca961954967802c121c39c455c",
  "538": "528dd4bb818ba8b6a2a99b282122cda68346ec1e",
  "539": "df54920fbe5ab8bbec75079806241efe7f993b42",
  "54": "cc4f09cefd28e7b3eb871a9a1c9fd19107b740a9",
  "540": "1fa089eac79debe4900006b1f36c1974473cb84d",
  "541": "43cad634db928bcc27156cad915ba62dcf98b021",
  "542": "b3b1308abf430796b257a84bbfa6a635726c42ac",
  "543": "b76876ec30ac7cce0b728754f0fc567bccd3ee36",
  "544": "842ff1c070517cf3ff13ff90f960bc47ed28dd04",
  "545": "debb33535324d40d7feb8263d3768d024d0fcbc7",
  "546": "f57ef178bb9de73bc95744d9d792f2219cb59ca7",
  "547": "16f9f8ba4d654e029c2854865d8291bfb2c95305",
  "548": "14f1c8b1315b66b3e5208a24b7c98099964b78cb",
  "549": "4506febd3cdc2b9143ae82d531d98373d87109e9",
  "55": "53d893e5166d2afef97753ca0ec46ea61eeea76a",
  "550": "1774fc7d8bae63b29eb369cca88171d67511cb24",
  "551": "3e471a7a1d4f4bbf922450c53c53043443769dce",
  "552": "7e78411eba350ad58ed87471ccc396c7c9614487",
  "553": "b6087e20be6d1e9a5dc7f1eefd454a67cd08f517",
  "554": "6999c3b2c32d8fe90d2fb06315dc7db12577075a",
  "555": "29ea960ff986b4fb21ed84e14252e7f79737be63",
  "556": "d7d37cc84a2cb0bdd5125d08dacf2a52c5ab60fe",
  "557": "2590861217d3ab0de8b3bece6021d01184ee93ea",
  "558": "3be90e6d69d5a7bdb98a0ce33b094c34d3ca0e1d",
  "559": "2afe5336ccf75d633fc7aac7c95342556745ad39",
  "56": "0f2c802e0e32e74589d5c0c83e9ad99a68bd6fef",
  "560": "1fe13ec2b7451d52d4a5695abd91410dda7d8016",
  "561": "7abf274ec17047808a957003cfd724c67d765488",
  "562": "1b2b01fba4794ff4633efdeba374f9974b6bdc88",
  "563": "4cc9f7c1868692a7a83ea0d09a81ca183f010d6a",
  "564": "45727a73bb3d44a623a0fcbcb9ebc36d4ffb0ebf",
  "565": "395c4ad83a1b26a0e58a6e47c043b49ae0ff7581",
  "566": "bb9afcfe3ce3e733faf9fbf52784608069aa38a8",
  "567": "f4bcec797e6786d23cda80dbd9e1ece5dac95dd6",
  "568": "25e7ac80523a025078393b2528dad55b7ebfc082",
  "569": "f97a87e57e6fbcd7bb9cab47375aa6110f9da405",
  "57": "87240886c64c3c76b762b38d910a0526bb5cb239",
  "570": "18f8a9de62fc338ce3ec06e78b42a7c8e8895aea",
  "571": "4133062a94b9571c538610594509ccc37b8a0a0d",
  "572": "aace18d10697f90518241580b7d2824781ea223d",
  "573": "51ff9a32e068749bee79f84cfa7821f86593f868",
  "574": "62d3fbba34bcf74b6e71e34998fccca04bb7d7f5",
  "575": "cf4062720e6ab3d42c2f62f8dca61bfab8dc0c7a",
  "576": "300f911b21836cbc2be92b8bbebaeb1cbfc901d0",
  "577": "617b69ce871da6747d9e17e875f371b84e891d33",
  "578": "d09240702046a3b6986f0e2532b63f5da45cce93",
  "579": "00ebaf364d999331cc462a2556c49ecf0d10f077",
  "58": "a88657748efbece1b61a2e4358c11a2400eda822",
  "580": "cedca8ecfc49591248583a5d55e1be5ddc084649",
  "581": "be1e52a9e12843fc74dffc177b318fa62d25fe30",
  "582": "8ff23878b34124d7e3d109f1de505c2bd89d4645",
  "583": "11078d73ad0788bdd1a915d77f25fd19543422d7",
  "584": "780060826fb79986111e298f7527d08b25d0088d",
  "585": "999a5f7a483b28f14a2a555d0631e13e77ddec90",
  "586": "acdba65fa109041fa0a3911e5a90a4aa22317ba9",
  "587": "fdec5fa9106e9c278d96a5335fcc92800a42599e",
  "588": "cf0d6516dfc49ab26667616c12e8cddc03f9ed2f",
  "589": "cdf7d781a783e535c66506027d250ce46f9ddf3b",
  "59": "ee3e3250d6497d206302674cebae0a506066689b",
  "590": "6fb8edd784fc9e8d540eaf68ac6addb427499fc5",
  "591": "1a96f296cfec8a326a94b8d984f7378949ef7dfb",
  "592": "c646c51ae73bcaa0a733f4ef28c31565a2df81bd",
  "593": "7f0623f22cb0dae72ed3d84c46abe29bad9cca7c",
  "594": "b66536b539a4b672836058d41a53a7729c4bb3bd",
  "595": "733c81c75cdbcbcca74dee60b2c32ff0213d5ce0",
  "596": "1e3f7b043ae3da03f57373e8faea0be6ddb16b31",
  "597": "19d1ae85208b934603ac9fd4daf3046f9b226fa3",
  "598": "9733c155639bb564bec1e32dfd6d16dd97ba69c2",
  "599": "e033f2d1bcc0e30a5bd4f30256ba1314ac63f023",
  "6": "9b3367f3128ac90e8b6a45f259b08dc259af5824",
  "60": "d6b0bc0f8da5a48321fafbb9a96a819cdd464ed7",
  "600": "ec9baaa4478b72d6ce69bc3f7bd0a5ccfa07d986",
  "601": "f659d249a5096c5329a022185e2a264b3e732db9",
  "602": "b96c108a487b0b59169a0e54327c64eb931c9d5a",
  "603": "bd50c421acfd6c98c7eb4c6ffef168ef7df395a0",
  "604": "ea24eec23595b416dc92977bfaf462e4fdaccc51",
  "605": "e67c7f511403e5509dd227e16dcb2e3ddeae9856",
  "606": "3ed5e8aaf161a6661c510db5eec0cf71b3d32a29",
  "607": "ca1f0967582054e80f42c86bf01940163ddf3aaa",
  "608": "406be369180e8f2d189884bcb7bcdccd3c504e16",
  "609": "ec82a2c83d5a785a741b0fdd88ed911a1527c0b8",
  "61": "d2f7616b86b2cada2d5e4c3f10e8aadf5a0e33dc",
  "610": "b3970c24911fcc0c5155e80e1580d4238f3f15df",
  "611": "bffe869882b7299de7f4ca2f109e241d25784318",
  "612": "3ebb3eed129990c8b7725273e29d297ccf46db8d",
  "613": "ccdb28360259e272988aba49163a126ddc254e50",
  "614": "066fc637d6a31a098ef094fd37cba71105ce9e08",
  "615": "6ac8500806fc054208266e9083960a3b09ecc709",
  "616": "1056c9bc693ce018c7deb26f2c3bf28a919bd2f7",
  "617": "29e44ef9105fbbdb83d4b5af186a60ecb2585d74",
  "618": "477827c0f71f86b57df1094e7e8d2c13b1121bc4",
  "619": "d6a225ec83761c99d58b2cc2b1becd9133687938",
  "62": "51e0a9e4d3a81b130d845edf558f83d7fa263aac",
  "620": "36ca3c4c6dfeb26c9349c20709f7108524f5cb3a",
  "621": "98c6db930dccbfa3a604b6c07864d23ef33820af",
  "622": "4da31e80648638ed882107ec00b81cd4f5614392",
  "623": "84e7e8514aaca789b6a7a1c22bab3d7ac5c0e1b3",
  "624": "9ea07a2635fc9970bef5acfb20463d547b676f16",
  "625": "af540b223c29b4c18adaee1b1c720da68da7eb0c",
  "626": "ce500f968bbe655477bff67d481f72b1f05c32fa",
  "627": "7fd6affd34657ff4a01179c7e111deb9e7bbbfbb",
  "628": "efe5cebe57419867c4417fb0e0334f1658e9570d",
  "629": "85d942b31d2b4a5df1516a63ddbb1fb1768cc923",
  "63": "fca730313c0a947f5fa39d30aa0fbcebf56ddb50",
  "630": "ea9e42452265dbccd686346f80a9eac3b8f1ebfd",
  "631": "2c942253192f1f449ad50624dfefa170fd3ffa2f",
  "632": "4f0b5ceef3934d99895fa8a341609da1d842137e",
  "633": "6fadd70ff5963de79f25d53ad8abb12c7dba692f",
  "634": "1538d0f45f87df247dbb08b9fc5e8b8ad30181e8",
  "635": "126f2213c303576e338b3546db8d642f198e2a9e",
  "636": "b8d6828b896853b0e3badb7cd68016c64c4c8989",
  "637": "aa6bfa5cfa6b420909561a2f6af7237ed265c487",
  "638": "f41371706f13cd811e6a4075efaa908d8f36c8b6",
  "639": "328cfec70f0be60c56c868fdffe1bf5fe5b1efae",
  "64": "24e9701d045a2b6bf80818a4fb6ed2a59435a57e",
  "640": "b9b2fc3b3ace11b5cd7761231836c1b8e5ad2575",
  "641": "aaf781ebde036efc8a36af754f4c20181b172188",
  "642": "3b795ff7a3c1a73fabbe4d9df749ae2cc163bc19",
  "643": "f9766c54169b9667dd1462ff8fea63addab28d48",
  "644": "520016d4a60aa109d154fed4b282aca0b2a04352",
  "645": "e82d7b3acb15409026c6c4d6627705a29b8f7109",
  "646": "c3056e2b7c2307fda3be4cd86725a093b342fbb2",
  "647": "ac84c0a160df66add96be6c8d1afb1b995a6cb97",
  "648": "947892071a97cf33db8f7cfafbca3505d742ee36",
  "649": "95dd415b3666db9d162af583713991ca4d36a1aa",
  "65": "6f069dc1a9e7997c971fb3d30368c09d9d20a6f8",
  "650": "0c5f8e7262cd38c94936efb1046e982289c6353a",
  "651": "0f8a38348d13b1124098ffac7ba85011504d9dcc",
  "652": "80a7a5eac9176bbfba999669ab5a7fca98ca5067",
  "653": "d251f44096d275c0f69e81cf709eaa9c67fadb1a",
  "654": "2908a0679bfa180383e5e7b3e1273fe3d2fc9857",
  "655": "1cb11b1804c28b148be156e8ac68d2bf1bafcc9b",
  "656": "11082e4666242318c1984585bb45070b13852ddb",
  "657": "7ce526bf94b830cdceb79dbc86dd32153cdb8a00",
  "658": "3612ad84cd4285e82236877e6740fbf17f716c9f",
  "659": "9f4450f2bc1b278ea894e2f197bee8870ad0e6f7",
  "66": "ca7c623eb026a6c292b1bccf9880c42d4a6ca50d",
  "660": "25afc2f6cf601c5b3f8dbe30bc690925109a30c2",
  "661": "313c0e70202bd3cceadac3af6173b45bc5ed0f48",
  "662": "5ed6225c12498daf761f50b9d1c618212bdb6704",
  "663": "b003d1a2ce34d846b7ba4503a42773ecb0479fbf",
  "664": "aa731e2a569ab175a35875cad4a54fa253d04f00",
  "665": "a498100fcd37fe72141b58812e97ca8955c2376e",
  "666": "2a4236bc141e5d4db8de324d434a70bc1887d96a",
  "667": "13eff9f483e35467d6a199daaba2bc53658d696f",
  "668": "7f9e24001b8a86e313b08f6b2018d471a95714c3",
  "669": "29baac76d88d304aa0627de3673771d8cc64b606",
  "67": "531edc5b4a03dbfdb9bce035059902ffb1a36dbf",
  "670": "02aaa8739c72d55ef110972671d5c53998ee59ba",
  "671": "8688c94d33ddcd0e834ab9b46574c979291bc769",
  "672": "d4a5f6fd9b9d520fbc3ffb25425b3a60d55d1b08",
  "673": "5f4f4db5ad684173e19ad62be756768440a9a46b",
  "674": "36364d842f3641370f9a03f64cdee116769a7e0b",
  "675": "c9b6315386573e65958cb03dd68dd1b7f4228bef",
  "676": "29e7cf257db967f8ea93f9e19eb82f1b680deac3",
  "677": "1947b05d8cdecb9ddbfd9b2b86d63915f7a7336c",
  "678": "5028cb3640e2da43b01901c7f31448a1a76c81ba",
  "679": "d1ff14eedbe54a9aea7e82a1d6568fd55d3d3a30",
  "68": "10f4fb2a78c06da197f6e223c96fa526003dc3a0",
  "680": "3c3ddae137bcd970e2de5e0fc49777d0b408bfd2",
  "681": "9a8315ee5d5528ea54b93abd783f77f060fadc3e",
  "682": "bf33f968ee42c377a73f21e81423863d672dee53",
  "683": "ef12ac9171fb81edbf601aebd28de94cac744492",
  "684": "bd6ec5cc43824ccfd0ac96fdbbc27e5754236b08",
  "685": "a33ab8f97cb5573bfaccd02b13477f8b210ccc4f",
  "686": "746d05f51042a54d456e0ff0dd32a1eb13501097",
  "687": "cf331913cdcb1ab581be676b72690e2839e34d06",
  "688": "40447d5324c3209ef48e233596a0c39258befece",
  "689": "21ebb263a986980cf04c692a1b9393efa203dcc2",
  "69": "83d21aca0d04f4dd53ac133aa33010fa3646153c",
  "690": "3cedf49f1381ac02887f1b52bec242cce09c6c4e",
  "691": "1aa1486069d7368685a713f781fe8267a7bc1cde",
  "692": "a76961020b7ff731fb188ab24b3ad877a47f9d2e",
  "693": "71b7ec20088e419ffef8f5e406a9ac57915f0ed7",
  "694": "85c1b7e36fe47819b90d70a2e97ec517b7cf52ac",
  "695": "1533e7e788fccfa725f1cc02a7f6498e02cc9b3c",
  "696": "a1cb457c5154530ae410c3e8e7742dd7b3879d03",
  "697": "db203dc45c0ee74fc4eb2798fce7e7ecbfb05dec",
  "698": "9e9894af8d4f69c020e2ce7c1eece620e3b5c393",
  "699": "71e0b27b51a68f0a5ce072e93144b07b477eac0f",
  "7": "1edf45790a21e86ed3fcaef68f7573c4c4b325d3",
  "70": "aa1d6bce600783a46e1b05b156eedbead1641a46",
  "700": "2fe8e9d2e9945eaf5aadd1c715dfbd04b02e9d0c",
  "701": "d271b81c8ae5b5441a2127663eada0b46c40aaed",
  "702": "d157f8c822d46d1aecd02c8a0127b408e8a8027d",
  "703": "a308231115668a9a8e4afa9dc56851c3304346cb",
  "704": "696656bcb6e967d67075969aa3210ca4c9425c99",
  "705": "efed72caadddcd8b28d38d3699373391bfe49e7b",
  "706": "3e61f835706e201b00934774509cac31536d4a65",
  "707": "2ffb9746935f35ff4c072fd9c7441c97330e1468",
  "708": "d307bb79fd36fd1280e77a5dccd37d679048cc99",
  "709": "45f6877ba4d2ce4e7fc16dfab7ef09c1fa21d81f",
  "71": "1e47a1ed791c44cfe6f61321a99c91d92f0aa6d1",
  "710": "e68e3390e37a66ef43ea50e7daa90d2083c2a08e",
  "711": "a7b3329646aa810e974cc8a9f664caa5fe854078",
  "712": "f4e33f89afe3525a8fa8b428265419124fe7d2b8",
  "713": "8f673cd622ad15ddc0a2ac9092c045e03666435b",
  "714": "30e67105a59868d349ebbe91cb70c2abec3f64ac",
  "715": "7f9dc05b9bcfd0f768826d9acf8d7035f00dea62",
  "716": "a85205ec78e1fb58ed5cb44fec07ee5bfefa5080",
  "717": "9853982b1f9d3b7b403966810b270a5e7e38ff9a",
  "718": "ba8f6a73667898eb304a249ef61275bb539fa332",
  "719": "9e027e4a157fc28c3dec326be79864ce0be80e40",
  "72": "c89794fc6085cc35c68f72e4a8d7a89221b416ce",
  "720": "92f7937ef0aa65c47d0c41a25a8fc5fb2396ee61",
  "721": "c237f396c5c4eb399f74f256a2c1ccf7eb5a35ff",
  "722": "a70884ed64ef3012ee134ea716c9f232018f523b",
  "723": "b99493f1d9117af6ce56ef48b09ba0b8fd883148",
  "724": "fc6fa3c7d6c2707e42cedf9b6158e7c2ad46a0f8",
  "725": "fcafbe56606026dcc079e4d4d715da35a5759d92",
  "726": "46665b7ee253544bce203c4b4bf1fa4244c19fd1",
  "727": "210d1edbe56f1457a60a5c61f4f75048d63737c0",
  "728": "ec36120240e703d1a05dd72d617ea8b5f27c2e49",
  "729": "76d6367bbdbd53fc96573ca274b03c825140b5ab",
  "73": "9b41f425de53be8aa6b251b06985fbcbd3a179f4",
  "730": "3d189e165d8b24380a9cf4dfab085abe3d084556",
  "731": "a706b0275d9fd7815a7e5900c9b14fb8a0d07d15",
  "732": "b18abf06cd958ac440acf12f912ccd87285c67e7",
  "733": "047d44bc09e9a655c921f8b33d224877ac6cf8c0",
  "734": "ad1f11188a608ea12457ff5f178f454a04157768",
  "735": "b2adc540e7136487291b2b8ff1b4d549f2925a00",
  "736": "89369732c80807b8c116025b6eff61be3038fb96",
  "737": "5478f11aa9d971f3b7844af63303a86aeb6d50da",
  "738": "285d87e042bbee56cf33b02fb4ab1b11fa705478",
  "739": "ef60e7c0fa756640379129b4d771a9fed0857f1c",
  "74": "9a24493d94bbfe94fb4cca7caa29b0af4d9b2c9c",
  "740": "e4be4d7f74edbc350fdb469c1365eb3ca0d47795",
  "741": "d3bbcacdb2069626df8da4c98883573b06ad28cb",
  "742": "c50f39034575055625b40eab27fb79c0a2f82c05",
  "743": "d8f00c6416f81e305532fca6902ec28664d0c2b1",
  "744": "2c9889961d2b26bffd4fe7c8da7ce904c0830d3e",
  "745": "e1c80db965cb7f989524b21b4ebb2d2779890301",
  "746": "2eb3fd260924be543f2aa92bd97dce4c923ba822",
  "747": "37ba9555572f837cbc65e8a9c8aa93b2e49044f2",
  "748": "bac50139572a1329b6ad7bf4846705ac15c06a2b",
  "749": "5f3e4d902a7eb5bbefa742b6262c0fc54d7f90f9",
  "75": "1dfd539e4b820bd9cdbbfd904dbe0e07c7008ee8",
  "750": "fd72eed4f903c9c19f8aec921ecbb0c6d73ed948",
  "751": "54781fefdfc2a3f01c424e92331fbeb1768b6195",
  "752": "44175b8531df21a419064bfb4c2152f69a02724b",
  "753": "baa41c4b48f486af9b5622a501fc36f486b09f45",
  "754": "40277496bd66a2de5635187a3af03c6a984a9106",
  "755": "acf3916b2f38c0890975a6a524c01acd17fb5a52",
  "756": "2a3a8da512039fc5e0c85d71fb3f122db38fdb02",
  "757": "5412214b2f940a6baed9c9176ca97208d72f5fde",
  "758": "bef6896dc94a9d0a14082ca384b37eb80f4554ea",
  "759": "db3dd45bd3b38aeddfabe7266563f2784c125064",
  "76": "f995f72ad3e7d354ddde2f5e6d52e2121bb799ef",
  "760": "a7cde234d73c5eb5528da0740221bcb795684d25",
  "761": "165e60c5f58fb05878e1ab26589abe7b2fd0d61e",
  "762": "fc489ef76b97381a6a6901e98d5802f11f7e010b",
  "763": "69f78478e5cf335e5529f3f47afef24e5ee6f240",
  "764": "ee3361d9682e7a40b3b38f589240e4c099564f07",
  "765": "6eaf4638a4d760d6ac56b4f2faa22e394473eded",
  "766": "f281ee86595b3e5c23ca581e51caddac9680e35b",
  "767": "7d6bbd5671ff9095ad2ff86d4eb290e6e2c77744",
  "768": "1e8c7dabe0f25ce164be37380200a0b073823500",
  "769": "f302e635d409faaf2c9d17037476b1349a8e4d32",
  "77": "bd100a589b07216c9579c7ee2215088993ca6970",
  "770": "7d440308be463a653f36696d64c7c40f05486f22",
  "771": "63296ca11df160ec197e24424582749917e17eb8",
  "772": "abcb118215c489955d4432d0f33ffda45558c00e",
  "773": "003a17b657275b14522c4b94aeb98db41769405a",
  "774": "48fc28071dc229f9d8100ad94fd3b03543040523",
  "775": "15092767a4871b2de17e98f2005ab1161f0224de",
  "776": "d830d0ed9350ac9a27f1201528aba8ddb9a9a976",
  "777": "f7a319a2499d42420641fb62a23688cd1b9b0568",
  "778": "ea3f644d6c9692acbfbfad674a79c3e61db358b9",
  "779": "920ee40ec265273560a0b8d2ce594095edbfdcf2",
  "78": "23416394cec88b2aa81c962a6dc0ff625f2c2189",
  "780": "a1151bd8eacfa5605e9fca4f2b35cd05b2da5c33",
  "781": "3c6283528fbceb91e5f62df2d29ea4d308b18747",
  "782": "7f8e647f2c01c0252fca904bbb64442b6ba173c2",
  "783": "116aba4bac39c6d375e4b5a03b318026108bbb9e",
  "784": "37d0561debfcd205b92085151837ac010c2b9ba0",
  "785": "924ac01460d1596242b601b41c60915b1a3b6adb",
  "786": "d849630c17c1072c789b4f2308ba4cb53ea58379",
  "787": "324fbcfdef1763986a25fbf409e8301fbd03c0e4",
  "788": "a308312137bf2e997307de625403d995b7ee6390",
  "789": "fcb15af2d56c7b982dfb74575b561c2bab2c4010",
  "79": "0d4a9cbf181fc1725916ee81f38628b5066e5c35",
  "790": "62b53a7e7a8e611e1c84abd2d46f1ccb69582e27",
  "791": "8630693e580655abb0ef2c39d67bc3b08b7c8eed",
  "792": "78911953cc9d2979bde6c89be27ae785069d9bda",
  "793": "72fd4e97b26295cb6904ce0b6099191fdbe9ba83",
  "794": "a9446d0266956a30dbe9787b778b05a929af220c",
  "795": "92c44c9f590287f7682a2c4cc23567cdac9d161c",
  "796": "89f8a2819bf56b7a3e8c686ab54eb025ff4eb92b",
  "797": "36207b7fe2774e5c6f52ca1526a28d1c4d4501d6",
  "798": "dcf246e4c5ee3007ec26f0735272212b76e9c93f",
  "799": "f8f9769ce38a8b7ae60a8f84e0cd3726c13cd788",
  "8": "60a18915ac5888635e08e12c13775ee6b9c93071",
  "80": "6d07d1193cb96f973db60259b4e9670c467b8670",
  "800": "60da4f9160f19d43f6a007ed9dc3629b63c5d2f9",
  "801": "ffff679ae4adb23282a358695f2e605e47af9526",
  "802": "e55cd5658f52a25f0086f97226337f72366b2b5c",
  "803": "18925dc37777f2170ebdd032716dcce9f57b6631",
  "804": "80b187f2dd426716dc9d60ffd29658f2dd88ae22",
  "805": "474283f44bd21ffbbb97a1d92d095c172e8bfdf9",
  "806": "9d63ee8f1ba733d073c240ffeb451979ff48f8f5",
  "807": "56f8551397d25c8c2dbc06fffbd6516c750c362e",
  "808": "5c6f0093c357e7fbe06d16383aeb6f35680f85cd",
  "809": "aee304320eba74bf6ccfe4cac964f520e5b956d0",
  "81": "5b84d18ff36a013d14909c6702dc4ce392d62b6d",
  "810": "cf286f4df7dd668680d6b86cfbbca638591cbd97",
  "811": "66acf54e162ae538157d1634271f009c6d9c6981",
  "812": "e61c1dca32ebc89a6f61bc67379ecdddc20828eb",
  "813": "e180f813de7e056108c02a1dbdc8c68681fbc1cc",
  "814": "4427e17caad1f987389bc04cd4f895d90c04affd",
  "815": "9bc918f467552fd12c4a4b0f04dd77effe98281c",
  "816": "992485a4e219e743678381edb87d570f79d4f8e5",
  "82": "1c6fc26f67e06fa3838be9bad43286907db029e1",
  "83": "42f398ab2cd5e9f1bb12c71497a4b38d6590883c",
  "84": "25948c6712d2d4911de057a9ebd7fca225151590",
  "85": "667727692adc3358cca8c2590bd895fd1389e5a5",
  "86": "9bfe7252d9876c5b555537ef262f0ef81b16a90f",
  "87": "a143dd9a3a2c35d681107b830fea0724c777c8a5",
  "88": "84e928586c56483080b18fe611f7d1beb20d51cc",
  "89": "d334fd91fb421c4c021926e7c87536e850685d48",
  "9": "f0eca1c76ab98059cba3570d906ba226e56dc609",
  "90": "b4fc18b8f9c30158995521fc29ce661818bbcc72",
  "91": "210316c3977373720ee36cd0436a9f09a6ed6c05",
  "92": "43271d8f577913fe9de341867081f2b9a2ca742c",
  "93": "40dedf29b080004ba42c5c1034edd4a51d7521fb",
  "94": "1470e94e52b181b26db64ab51eae06afa8c0bdb5",
  "95": "8368ae0b2438f920a6ce6a0fc403f20e00138d00",
  "96": "ea8309fa03ecea0b256157194051fcbaf167bfe5",
  "97": "76e123403b4fbb3ecda216cab0af359044dfab08",
  "98": "2896e2c75820aaa7fd9f88d29426096ce6328166",
  "99": "aad6f3f44e83bf9634b6639b6f438f0d441223b6"
\ No newline at end of file

A  => cmd/scihut.go +66 -0
@@ 1,66 @@
package main

import (


func main() {
	if len(os.Args) != 3 {

	doi := os.Args[1]
	output := os.Args[2]
	if !validateDoi(doi) {
		log.Fatalln("error: invalid DOI")
	if output == "-" {
		output = "/dev/stdout"
	download(doi, output)

func printUsage() {
	usage := `scihut - decentralized access to scientific literature

  scihut <doi> <output>`

func validateDoi(doi string) bool {
	return regexp.MustCompile(`(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:\S)+)`).MatchString(doi)

func download(doi string, output string) {
	infoHash, id, err := lib.TranslateDoi(doi)
	if err != nil {
		log.Fatalf("error: could not translate the DOI: %s\n", err.Error())
	log.Printf("info: paper has ID %d (group ID %03d) and can be found in torrent %x\n", id, id/100_000, infoHash)

	paperBlob, err := lib.DownloadPaper(infoHash, doi, id)
	if err != nil {
		log.Fatalf("error: could not download paper: %s\n", err.Error())

	err = writePaper(paperBlob, output)
	if err != nil {
		log.Fatalf("error: could not write paper: %s\n", err.Error())

func writePaper(paperBlob []byte, outputPath string) error {
	f, err := os.Create(outputPath)
	if err != nil {
		return err
	_, err = f.Write(paperBlob)
	return err

A  => go.mod +8 -0
@@ 1,8 @@
module scihut

go 1.14

require (
	github.com/anacrolix/torrent v1.15.0
	github.com/mattn/go-sqlite3 v2.0.2+incompatible

A  => lib/downloader.go +142 -0
@@ 1,142 @@
package lib

import (


// Most (if not all) of the trackers of the original torrents are no longer
// working, thus we maintain a list of trackers which are used by the
// community. The list of trackers does not require to be updated as often.
// See https://forum.mhut.org/viewtopic.php?f=17&t=8326
var TRACKERS = [][]string{

// DownloadPaper downloads a research paper given:
//   - the infohash of the torrent it is in
//   - its DOI (Digital Object Identifier)
//   - its ID (assigned by Library Genesis)
func DownloadPaper(infoHash [20]byte, doi string, id uint64) ([]byte, error) {
	// Create a temporary directory for the torrent client
	tempdir, err := ioutil.TempDir("", "scihut-*")
	if err != nil {
		return nil, err
	defer os.RemoveAll(tempdir)

	// Create a new torrent client
	//   - Use the temporary storage we have just created
	//   - Listen on port 0 (i.e. randomized) so that consequent DownloadPapers
	//     will not fail due to port being (previously) in use
	config := torrent.NewDefaultClientConfig()
	config.DefaultStorage = storage.NewFileByInfoHash(tempdir)
	config.ListenPort = 0
	client, err := torrent.NewClient(config)
	if err != nil {
		return nil, err
	defer client.Close()

	// Add the torrent by its infohash, add our trackers for faster discovery,
	// and wait until the metadata (info) is received. Finally, cancel all the
	// pieces as we will download selectively.
	torrent_, _ := client.AddTorrentInfoHash(infoHash)
	defer torrent_.Drop()
	log.Println("info: got torrent metadata")
	torrent_.CancelPieces(0, torrent_.NumPieces())
	log.Printf("info: connected to %d seeders\n", torrent_.Stats().ConnectedSeeders)

	// Find the ZIP file the PDF we are looking for might be in.
	zipFile := findZip(torrent_, id)
	if zipFile == nil {
		return nil, fmt.Errorf("could not find the zip file")
	log.Printf("found zip file: %s\n", zipFile.Path())

	// Find the PDF file we are looking for.
	pdfFile, err := findPdf(zipFile, doi)
	if err != nil {
		return nil, err
	log.Printf("found pdf file: %s\n", pdfFile.Name)

	// Read the PDF file.
	return readPdf(pdfFile)

func readPdf(pdfFile *zip.File) ([]byte, error) {
	pdfFileReader, err := pdfFile.Open()
	if err != nil {
		return nil, err
	defer pdfFileReader.Close()
	return ioutil.ReadAll(pdfFileReader)

func findPdf(zipFile *torrent.File, doi string) (*zip.File, error) {
	zipFileReaderAt := NewReaderAt(zipFile.NewReader())
	zipReader, err := zip.NewReader(zipFileReaderAt, zipFile.Length())
	if err != nil {
		return nil, err

	encodedDoi := encodeDoi(doi)
	for _, file := range zipReader.File {
		// Use ToUpper for case-insensitive comparison.
		// Remember that DOIs are case-insensitive!
		if strings.HasSuffix(strings.ToUpper(file.Name), strings.ToUpper(encodedDoi+".pdf")) {
			return file, nil

	return nil, fmt.Errorf("pdf not found")

func encodeDoi(doi string) string {
	tokens := strings.Split(doi, "/")
	return url.QueryEscape(tokens[0]) + "/" + url.QueryEscape(tokens[1])

func findZip(torrent_ *torrent.Torrent, id uint64) *torrent.File {
	re := regexp.MustCompile(`(?i).*libgen.scimag(\d{8})-(\d{8}).zip.*`)
	for _, file := range torrent_.Files() {
		matches := re.FindStringSubmatch(file.Path())
		if matches == nil {
		lower, _ := strconv.ParseUint(matches[1], 10, 64)
		higher, _ := strconv.ParseUint(matches[2], 10, 64)

		// The range is inclusive.
		if lower <= id && id <= higher {
			return file
	return nil

A  => lib/readerat.go +28 -0
@@ 1,28 @@
package lib

import (


type ReaderAt struct {
	r torrent.Reader
	m sync.Mutex

func NewReaderAt(r torrent.Reader) *ReaderAt {
	ra := new(ReaderAt)
	ra.r = r
	return ra

func (ra *ReaderAt) ReadAt(p []byte, off int64) (n int, err error) {
	defer ra.m.Unlock()
	if _, err = ra.r.Seek(off, io.SeekStart); err != nil {
		return 0, err
	return ra.r.Read(p)

A  => lib/translator.go +98 -0
@@ 1,98 @@
package lib

import (

	_ "github.com/mattn/go-sqlite3"

const DatabasePath = "assets/database.sqlite3"
const TorrentsPath = "assets/torrents.json"

// TranslateDoi "translates" a DOI (Digital Object Identifier) to the following
//   - InfoHash (of the torrent the paper can be found in)
//   - ID (of the paper as assigned by Library Genesis)
// and also returns an error (if any). Its return values are used by
// DownloadPaper.
func TranslateDoi(doi string) ([20]byte, uint64, error) {
	// For testing without a database
	if strings.EqualFold(doi, "10.1002/(sici)1097-4628(19960425)60:4<531::aid-app6>3.0.co;2-p") {
		ih, _ := hex.DecodeString("99663320037082381eab3876cd981c6941c2a656")
		var infoHash [20]byte
		copy(infoHash[:], ih)
		return infoHash, 54296, nil

	id, err := doiToId(doi)
	if err != nil {
		return [20]byte{}, 0, err

	infoHash, err := idToInfoHash(id)
	if err != nil {
		return [20]byte{}, 0, err

	return infoHash, id, nil

func doiToId(doi string) (uint64, error) {
	db, err := sql.Open("sqlite3", fmt.Sprintf("%s?mode=ro", DatabasePath))
	if err != nil {
		return 0, err
	defer db.Close()
	if err := db.Ping(); err != nil {
		return 0, err

	rows, err := db.Query(`SELECT id FROM scimag_files WHERE doi = ? COLLATE NOCASE`, doi)
	if err != nil {
		return 0, err
	defer rows.Close()
	if !rows.Next() {
		return 0, fmt.Errorf("no ID found for the DOI")

	var id uint64
	if err = rows.Scan(&id); err != nil {
		return 0, err

	return id, nil

func idToInfoHash(id uint64) ([20]byte, error) {
	f, err := os.Open(TorrentsPath)
	if err != nil {
		return [20]byte{}, err
	defer f.Close()

	var torrents map[string]string
	err = json.NewDecoder(f).Decode(&torrents)
	if err != nil {
		return [20]byte{}, err

	infoHashHex, ok := torrents[fmt.Sprintf("%d", id/100_000)]
	if !ok {
		return [20]byte{}, fmt.Errorf("infohash for the ID %d (ID-Group %d) not found", id, id/100_000)

	decodedHex, err := hex.DecodeString(infoHashHex)
	if err != nil {
		return [20]byte{}, fmt.Errorf("could not decode infohash hex (%s); torrent list corrupt", infoHashHex)
	var ih [20]byte
	copy(ih[:], decodedHex)
	return ih, nil

A  => util/update_database/main.go +94 -0
@@ 1,94 @@
package main

import (

	_ "github.com/mattn/go-sqlite3"

const DATABASE_PATH = "assets/database.sqlite3"
const TSV_PATH = "assets/scimag_files.tsv"

func main() {
	csvFile, err := os.Open(TSV_PATH)
	if err != nil {
	csvReader := csv.NewReader(csvFile)
	csvReader.Comma = '\t'
	csvReader.LazyQuotes = true

	db, err := sql.Open("sqlite3", fmt.Sprintf("%s?_journal=MEMORY&_locking=EXCLUSIVE&_txlock=exclusive", DATABASE_PATH))
	if err != nil {
	defer db.Close()
	if err := db.Ping(); err != nil {

	_, err = db.Exec(`
		CREATE TABLE scimag_files (
			filesize INTEGER NOT NULL
	if err != nil {

	tx, err := db.Begin()
	if err != nil {
	defer tx.Rollback()

	stmt, err := tx.Prepare(`INSERT INTO scimag_files (id, md5, doi, filesize) VALUES (?, ?, ?, ?);`)
	if err != nil {
	defer stmt.Close()

	for {
		record, err := csvReader.Read()
		if err == io.EOF {
		} else if err != nil {

		id := record[0]
		md5 := record[1]
		doi := record[2]
		filesize, err := strconv.ParseUint(record[3], 10, 64)
		if err != nil {

		_, err = stmt.Exec(id, md5, doi, filesize)
		if err != nil {

	if err = tx.Commit(); err != nil {

	log.Println("creating index on doi...")
	_, err = db.Exec(`CREATE INDEX scimag_files__doi ON scimag_files (doi COLLATE NOCASE);`)
	if err != nil {

	log.Println("all OK!")

A  => util/update_torrents/__init__.py +0 -0
A  => util/update_torrents/__main__.py +53 -0
@@ 1,53 @@
#!/usr/bin/env python3

import json
import urllib.error
import urllib.request
import hashlib

import bencode

ASSETS_DIR = "assets"
URL_FORMAT = "http://gen.lib.rus.ec/scimag/repository_torrent/sm_{0:03d}00000-{0:03d}99999.torrent"

def main():
    with open(ASSETS_DIR + "/torrents.json", "r") as fd:
        torrents = json.load(fd)  # type: dict

        maxIdGroup = max(torrents.keys(), key=lambda idGroup: int(idGroup))
        print("last torrent: {0:03d}00000-{0:03d}99999  ({1})".format(int(maxIdGroup), torrents[maxIdGroup]))
    except ValueError:
        maxIdGroup = "-1"
        print("WARNING: torrent list is empty! starting from ID-group 000")

    for id_ in range(int(maxIdGroup) + 1, 999+1):
        url = URL_FORMAT.format(id_)
            with urllib.request.urlopen(url) as response:
                torrent_blob = response.read()
        except urllib.error.HTTPError as err:
            if err.code == 404:
                print("404         : {0:03d}00000-{0:03d}99999".format(id_))
                print("end of torrents")

        if id_ == 999:
            print("WARNING: torrent for ID-group 999 has been downloaded successfully.")
            print("WARNING: later torrents (i.e. ID-group 1,000 and onward, if exist) will NOT be downloaded!")
            print("WARNING: changes are required throughout scihut!")

        infoHash = hashlib.sha1(bencode.encode(bencode.decode(torrent_blob)["info"])).hexdigest()
        torrents[str(id_)] = infoHash
        print("got         : {0:03d}00000-{0:03d}99999  ({1})".format(id_, infoHash))

    with open(ASSETS_DIR + "/torrents.json", "w") as fd:
        json.dump(torrents, fd, indent=2)
    print("updated, all OK")

if __name__ == "__main__":

A  => util/update_torrents/requirements.txt +1 -0
@@ 1,1 @@