Repository: OpenGenus/cosmos-search Branch: master Commit: 24175e086718 Files: 70 Total size: 250.2 KB Directory structure: gitextract_eqf5qz2p/ ├── .editorconfig ├── .github/ │ ├── CODE_OF_CONDUCT.md │ ├── ISSUE_TEMPLATE.md │ └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .hound.yml ├── .travis.yml ├── CONTRIBUTORS.md ├── LICENSE ├── Procfile ├── README.md ├── cosmos_search/ │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── human_curated_lists/ │ ├── awesome-competitive-coding.md │ ├── awesome-lists.md │ └── best-student-discount-services.md ├── lists.json ├── manage.py ├── metadata.json ├── requirements.txt ├── runtime.txt ├── scripts/ │ └── develop.sh ├── search/ │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations/ │ │ ├── 0001_initial.py │ │ └── __init__.py │ ├── models.py │ ├── templatetags/ │ │ ├── __init__.py │ │ ├── calculator.py │ │ ├── random_numbers.py │ │ └── youtube.py │ ├── tests.py │ ├── urls.py │ └── views.py ├── static/ │ └── css/ │ └── calculator.css ├── tags.json ├── templates/ │ └── cosmos/ │ ├── _base_css.html │ ├── _footer.html │ ├── _nav.html │ ├── bundles/ │ │ ├── css.html │ │ └── js.html │ ├── calculator.html │ ├── code.html │ ├── codeResults.html │ ├── error/ │ │ ├── HTTP400.html │ │ ├── HTTP403.html │ │ ├── HTTP404.html │ │ └── HTTP500.html │ ├── header.html │ ├── index.html │ ├── lists.html │ ├── listsResults.html │ ├── lists_template.html │ ├── news.html │ ├── notfound.html │ ├── searchresults.html │ ├── tags.html │ └── youtubeResults.html ├── tox.ini └── update/ ├── __init__.py ├── admin.py ├── apps.py ├── migrations/ │ └── __init__.py ├── models.py ├── tests.py ├── urls.py └── views.py ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ root = true [*] end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [*.{js,py}] charset = utf-8 [*.py] indent_style = space indent_size = 4 [*.html] indent_size = 4 [*.css] indent_size = 4 [Makefile] indent_style = tab [lib/**.js] indent_style = space indent_size = 2 [{package.json,.travis.yml}] indent_style = space indent_size = 2 ================================================ FILE: .github/CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: * Using welcoming and inclusive language * Being respectful of differing viewpoints and experiences * Gracefully accepting constructive criticism * Focusing on what is best for the community * Showing empathy towards other community members Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery and unwelcome sexual attention or advances * Trolling, insulting/derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or electronic address, without explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at team@opengenus.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/4/ ================================================ FILE: .github/ISSUE_TEMPLATE.md ================================================ **I'm submitting a ...** (check one with "x") - [ ] bug report - [ ] feature request **Description**: Explain what you would expect from this process. **Expected Behavior**: Describe what you're currently experiencing from this process, and thereby explain the bug. **Actual Behavior**: Please provide an ordered list on how to reproduce the issue. **Steps to Reproduce**: If relevant, please include screenshots and logs. **Screenshots (if any)**: **Would you like to work on this issue?** - [ ] Yes - [ ] No ================================================ FILE: .github/PULL_REQUEST_TEMPLATE.md ================================================ **Checklist** - [ ] My branch is up-to-date with the upstream `develop` branch. - [ ] I have added necessary documentation (if appropriate). **Which issue does this PR fix?**: fixes: # **Why do we need this PR?**: If relevant, please include a screenshot. **Demo (optional)**: Some tips for you to write the instructions: - Prefer bulleted description - Start after checking out this branch - Include any setup required, such as migrating databases, etc. **Testing instructions:** If there is any work still left to do, please add it here. **TODOs (if any)**: ================================================ FILE: .gitignore ================================================ # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ *.egg-info/ .installed.cfg *.egg # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *,cover .hypothesis/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # IPython Notebook .ipynb_checkpoints # pyenv .python-version # celery beat schedule file celerybeat-schedule # dotenv .env # virtualenv venv/ ENV/ # Spyder project settings .spyderproject # Rope project settings .ropeproject oshc/db.sqlite3 staticfiles/ *.sqlite3 *.pyc .idea/ .DS_Store ================================================ FILE: .hound.yml ================================================ python: enabled: true config_file: .flake8.ini ================================================ FILE: .travis.yml ================================================ language: python python: - "3.4" - "3.5" - "3.6" # before_install: - sudo apt-get update - sudo apt-get -y install python-pip - sudo pip install --upgrade pip - pip install --upgrade pip - pip install pep8 - pip install autopep8 - cp .env.example .env # command to install dependencies install: - pip install -r requirements.txt # django environment env: - DJANGO_VERSION=1.11.7 # script script: - flake8 . - python3 manage.py makemigrations - python3 manage.py migrate - python3 manage.py test ================================================ FILE: CONTRIBUTORS.md ================================================

cosmos-search

# Cosmos Search # Contributors at OpenGenus > Every work is great only because of its contributors | [**Contributors :family_woman_boy_boy:**](#contributors-1) | [**Interns :dancer:**](#interns) | [**Maintainers :man_office_worker:**](#maintainers) | |:---:|:---:|:---:| To join our community, sign up at [our Discussion forum](https://discourse.opengenus.org/) and let us know your interests :sparkles: so we can help you better. ## Contributors Thanks goes to these ❤️ wonderful people who made this possible: | [
Aditya Chatterjee](https://github.com/AdiChat)
| [
Vaibhav Shelke](https://github.com/vshelke)
| [
David Wu](https://github.com/Pl4gue)
| [
Vaibhav Singh](https://github.com/vaibhavsingh97)
| [
Hervé Beraud](https://github.com/4383)
| | :---: | :---: | :---: | :---: | :---: | [
Sakshee Jain](https://github.com/sakshee-19)
| [
Ernest Chang](https://github.com/iattempt)
| [
Divya Maddala](https://github.com/maddaladivya)
| [
Ankan Poddar](https://github.com/ankan17)
| [
Pratibha Goyal](https://github.com/Pratibha-Goyal)
| [
Shweta Kumari](https://github.com/Shweta4321)
| [
Parthvi Vala](https://github.com/valaparthvi)
| [
Shikha Khatry](https://github.com/khatryshikha)
| [
Anannya Uberoi](https://github.com/anne27)
| [
Sarvani Deekshitula](https://github.com/sarvanideekshitula)
| [
reallinfo](https://github.com/reallinfo)
| [
Rounak Vyas](https://github.com/itsron717)
| ### Interns Wonderful interns at **OpenGenus** who worked on **Cosmos-Search** | [
Rounak Vyas](https://github.com/itsron717)
| | :---: | ### Maintainers Maintainers who look after **Cosmos Search** | [
Aditya Chatterjee](https://github.com/AdiChat)
| [
Vaibhav Shelke](https://github.com/vshelke)
| [
Ernest Chang](https://github.com/iattempt)
| | :---: | :---: | :---: | ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is 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. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. 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. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. 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 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 Source. 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 measures. 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. Use with the GNU Affero General Public License. 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 Affero 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 special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 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 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 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. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 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 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 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". 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 GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: Procfile ================================================ web: gunicorn cosmos_search.wsgi --log-file - ================================================ FILE: README.md ================================================

cosmos-search

# Cosmos Search This is the real-time code search engine for all. We aim to revolutionize the way people interact and search for code. This is evident in our on-going work. Cosmos Search is privacy-focussed as we do not store any data. Some of our **core beliefs** that drive the development of this search engine: * Searching is more of a social act. * The Divide between programming languages and native languages must be minimized. * Time spend on searching must be minimized. * Time spend on learning, discussing and socializing must be maximized. Link: [**search.opengenus.org**](http://search.opengenus.org) Cosmos Search is one of the most impactful sister projects of [**Cosmos**](https://github.com/OpenGenus/cosmos) powered by [**OpenGenus Foundation**](https://github.com/OpenGenus). This is the official search tool for cosmos, a library of every algorithm and data structure code that you will ever encounter. [![Build Status](https://travis-ci.org/OpenGenus/cosmos-search.svg?branch=master)](https://travis-ci.org/OpenGenus/cosmos-search.svg?branch=master) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ## Maintainers This is a very ambitious project based on a massive collaboration and to keep the quality intact and drive the vision in the proper direction, we have maintainers. > Maintainers are your friends forever. They are vastly different from moderators. Currently, we have 3 active maintainers and we are expanding quickly. The task of maintainers is to review pull requests, suggest further quality additions and keep the work up to date with the current state of the world. 🌍 Let us know if you would like to be a maintainer and we will review and add you upon subsequent contributions. To join our massive community at Slack open an issue [here](https://github.com/OpenGenus/OpenGenus-Slack). ## Contributors The success of our vision depends on you. Even a small contribution helps. All forms of contributions are highly welcomed and valued. When you contribute, your name with a link (if available) is added to our [**contributors list**](https://github.com/OpenGenus/cosmos-search/wiki/Contributors). You can contribute by writing code, documentation, making Cosmos search friendly and many others. There are endless possibilities. You might, also, like to take a look at our [Ideas List](https://github.com/OpenGenus/cosmos-search/wiki/Idea-List). You can take up a task from the list or suggest your own. Open a pull request to indicate the work you are doing. Feel free to discuss anything with us. 💭 ## Contributing to the Human-Curated Lists One can contribute to the lists by uploading their files to the repository `human_curated_lists` which supports only `.md` file(s) for now. After uploading the file(s) update the `lists.json` file with necessary details about the list such as _List Title_, _List Description_, _Author Name_, etc. After this a Pull Request can be generated and the lists will be reviewed and merged. ### Technologies Used This project uses a number of open source projects: * [Django](https://www.djangoproject.com/) - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. * [Bootstrap](https://getbootstrap.com/) - Responsive frontend framework * [Heroku](https://www.heroku.com/) - Webapp deployed here * [Travis](travis-ci.org) - Continuous Integration of the project ## Run this search engine locally 1. Clone this repository using ``` $ git clone https://github.com/OpenGenus/cosmos-search.git ``` 2. Go inside main Django app ``` $ cd cosmos-search ``` 3. Setup a virtual environment `$ virtualenv -m python3 env_name` **OR** `$ python3 -m venv env_name` (For Conda users) `$ conda create -n env_name python=3.6 anaconda` 4. Activate the virtual environment ``` $ source env_name/bin/activate ``` The virtual environment can be deactivated with the `deactivate` command. (For Conda users) `$ source activate env_name` The virtual environment can be deactivated with the `source deactivate` command. 5. Install local dependencies Conda users need to install pip locally in their virtual environment using `$ conda install pip` ``` pip install -r requirements.txt ``` 6. Create a project in the Google Developers Console and obtain authorization credentials and API Key for [YouTube Data API v3](https://console.developers.google.com/apis/library/youtube.googleapis.com/). 7. Insert the obtained Key in parameter `DEVELOPER_KEY` in .env.example file 8. Copy the .env.example file to .env and supply values for the required variables. 9. Collectstatic files using ``` $ python manage.py collectstatic ``` 10. Migrating files using ``` $ python manage.py migrate ``` 11. Create Cache Table ``` $ python manage.py createcachetable ``` 12. Run the app ``` $ python manage.py runserver ``` 13. View the locally built site ``` localhost:8000 ``` To run the web app in Debug mode set the DEBUG environment variable. In Linux, run the `export DEBUG=True` command in the terminal. ## License We believe in freedom and improvement. Cosmos Search is built with ♥ by [OpenGenus Community](https://github.com/OpenGenus) under [GPL v3](https://www.gnu.org/licenses/gpl-3.0) ================================================ FILE: cosmos_search/__init__.py ================================================ ================================================ FILE: cosmos_search/settings.py ================================================ """ Django settings for cosmos_search project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os from decouple import config, Csv # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = config('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = config('DEBUG', cast=bool) ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv()) # OpenGenus specific GITHUB_WEBHOOK_SECRET = config('GITHUB_WEBHOOK_SECRET', cast=lambda v: v.encode('UTF-8')) COSMOS_LINK = 'https://github.com/OpenGenus/cosmos.git' COSMOS_ROOT = 'cosmos/' METADATA_JSON = 'metadata.json' TAGS_JSON = 'tags.json' TIMESTAMPS_JSON = 'timestamps.json' YOUTUBE_DATA_API_KEY = config('YOUTUBE_DATA_API_KEY') NEWS_API_KEY = "27dda8d73c8340168550c70a32660564" LISTS_MD = 'human_curated_lists/' LISTS_INFO = 'lists.json' # Application definition INSTALLED_APPS = [ 'update.apps.UpdateConfig', 'search.apps.SearchConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'cosmos_search.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'cosmos_search.wsgi.application' # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'dev_cache', 'TIMEOUT': 60 * 60 * 24 * 7 * 4, 'VERSION': 1, 'OPTIONS': { 'MAX_ENTRIES': 10000 } } } # Password validation # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/1.11/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') ================================================ FILE: cosmos_search/urls.py ================================================ """cosmos_search URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from django.conf.urls import handler400 from django.conf.urls import handler403 from django.conf.urls import handler404 from django.conf.urls import handler500 from django.views.static import serve from cosmos_search import settings from search import views urlpatterns = [ url(r'^', include('search.urls')), url(r'^update/', include('update.urls')), url(r'^admin/', admin.site.urls), ] if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) if settings.DEBUG is False: urlpatterns += [url(r'^static/(?P.*)$', serve, {'document_root': settings.STATIC_ROOT}), ] handler400 = views.error400 # noqa handler403 = views.error403 # noqa handler404 = views.error404 # noqa handler500 = views.error500 # noqa ================================================ FILE: cosmos_search/wsgi.py ================================================ """ WSGI config for cosmos_search project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cosmos_search.settings") application = get_wsgi_application() ================================================ FILE: human_curated_lists/awesome-competitive-coding.md ================================================ A Curated list of Topic wise Theory and Questions to Get You Started On Competitive Coding. *Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing. You might also like to read complete [awesome-list](https://github.com/sindresorhus/awesome).* Topics --- - Binary and Ternary Search - Dynamic Programming - Game Theory - Graphs - Greedy - Maths - Miscellaneous - Prefix and Suffix Trees - Segment Trees - Trees Binary and Ternary Search --- - Theory - [Hackerearth](https://www.hackerearth.com/notes/power-of-binary-search/) - Power of Binary search by [Aman Goel](https://www.hackerearth.com/users/amangoel.vsec/) (Easy). - [Topcoder](https://www.topcoder.com/community/data-science/data-science-tutorials/binary-search/) - Binary Search by [lovro](https://www.topcoder.com/member-profile/lovro/) (Hard). - [Ternary Search](http://rendon.x10.mx/ternary-search/) - Blog Post on Ternary Search. - Questions on - [Codeforces](http://codeforces.com/problemset/tags/binary%20search) - [A20j](http://a2oj.com/Category.jsp?ID=40) - [Codechef](https://discuss.codechef.com/tags/binarysearch/) Dynamic Programming --- - Theory - [Topcoder](https://www.topcoder.com/community/data-science/data-science-tutorials/dynamic-programming-from-novice-to-advanced/) - [Codechef](https://www.codechef.com/wiki/tutorial-dynamic-programming) - Questions on - [Hackerrank](https://www.hackerrank.com/domains/algorithms/dynamic-programming) - [spoj](http://problemclassifier.appspot.com/?keywords=dp) - [More Problems on SPOJ](http://apps.topcoder.com/forums/;jsessionid=C684F032169B7439C8012AAB6BA2018C?module=Thread&threadID=674592) - [A2oj](http://a2oj.com/Category.jsp?ID=33) - [Codeforces](http://codeforces.com/problemset/tags/dp) Game Theory --- - Theory - [Stanford](http://web.stanford.edu/class/cs97si/05-combinatorial-games.pdf) - PDF on Combinatorial Games. - [Wikipedia](https://en.wikipedia.org/wiki/Nim) - Nim Games. - [Book](http://www.cs.ox.ac.uk/files/2735/Composite_games.pdf) - Composite Mathematical Games. - [Book](http://www.math.ucla.edu/~tom/Game_Theory/comb.pdf) - Game Theory By Thomas S. Ferguson. - Questions on - [A2oj](http://a2oj.com/Category.jsp?ID=91) Graphs --- - Theory - [Topcoder](https://topcoder.com) - [Identifying a graph on Topcoder](https://www.topcoder.com/community/data-science/data-science-tutorials/introduction-to-graphs-and-their-data-structures-section-1/) - [Searching in a Graph](https://www.topcoder.com/community/data-science/data-science-tutorials/introduction-to-graphs-and-their-data-structures-section-2/) - [Path Algorithms](https://www.topcoder.com/community/data-science/data-science-tutorials/introduction-to-graphs-and-their-data-structures-section-3/) - [Codeforces](http://codeforces.com/blog/entry/16221) - Important Graph Algorithms by [PrinceOfPersia](http://codeforces.com/profile/PrinceOfPersia) - [Codechef](https://www.codechef.com/wiki/tutorial-graph-theory-part-1) - Questions on - [Codeforces](http://codeforces.com/problemset/tags/graphs) - [Codechef](https://discuss.codechef.com/tags/graph/) - [A2oj](http://a2oj.com/Category.jsp?ID=13) Greedy --- - Theory - [Topcoder](https://www.topcoder.com/community/data-science/data-science-tutorials/greedy-is-good/) - [Stackoverflow.](http://stackoverflow.com/questions/7887487/how-to-spot-a-greedy-algorithm) - [Hackerearth](https://www.hackerearth.com/notes/greedy-algorithm/) - Questions on - [Codeforces](http://codeforces.com/problemset/tags/greedy) - [A2oj](http://a2oj.com/Category.jsp?ID=56) Maths --- - Theory - [Stanford](http://web.stanford.edu/class/cs97si/02-mathematics.pdf) - Stanford's Guide on Introduction To Competitive Programming. - [Aduni](http://www.aduni.org/courses/discrete/index.php?view=cw) - Course Guide to Discrete Mathematics. - [Topcoder](https://www.topcoder.com/community/data-science/data-science-tutorials/understanding-probabilities/) - Understanding Probability. - Questions on - [A20j](http://a2oj.com/Category.jsp?ID=86) - [Codechef](https://discuss.codechef.com/tags/simple-math/) - Basic - [Codechef](https://discuss.codechef.com/tags/maths/) - Advanced Miscellaneous --- - Mo's Algorithm - [Blog Post By Anudeep Nekkanti](http://blog.anudeep2011.com/mos-algorithm/) - [Hackerearth](https://www.hackerearth.com/notes/mos-algorithm/) - [DQUERY on Spoj](http://www.spoj.com/problems/DQUERY/en/) - [FREQUENT on Spoj](http://www.spoj.com/problems/FREQUENT/) - Persistant Segment Trees - [Blog Post By Anudeep Nekkanti](http://blog.anudeep2011.com/persistent-segment-trees-explained-with-spoj-problems/) - [MKTHNUM on Spoj](http://www.spoj.com/problems/MKTHNUM/en/) - Mobius Function - [Dance With Mobius Function by Surya Kiran](https://www.quora.com/profile/Surya-Kiran/Posts/A-Dance-with-Mobius-Function) - Treaps - [Codeforces](http://codeforces.com/blog/entry/11148) - [Wikipedia](https://en.wikipedia.org/wiki/Treap) - [TREAP on Spoj](http://www.spoj.com/problems/TREAP/) - Bit Manipulation - [Hackerearth](https://www.hackerearth.com/notes/bit-manipulation/) - Tutorial on Bit Manipulation by [Prateek Garg](https://www.hackerearth.com/users/ptk23/). - [Hackerrank](https://www.hackerrank.com/domains/algorithms/bit-manipulation) - Questions On Hackerrank on but manipulation. Prefix and Suffix Trees --- - Theory - [Wikipedia](https://en.wikipedia.org/wiki/Trie) - [Tutorial by Sartaj Sahni](http://marknelson.us/1996/08/01/suffix-trees/) - [Suffix Trees Explained](http://marknelson.us/1996/08/01/suffix-trees/) - Questions on - [Codechef](https://www.codechef.com/problems/TWSTR/) - [Another problem on Codechef](https://www.codechef.com/SEPT13/problems/TMP01) - [A2oj](http://a2oj.com/Category.jsp?ID=49) Segment Trees --- - Theory - [Hackerearth](https://www.hackerearth.com/notes/segment-trees-for-beginners/) - [Codeforces](http://codeforces.com/blog/entry/15890) - Everything about Segment trees by [PrinceOfPersia](http://codeforces.com/profile/PrinceOfPersia) - [Lazy Propogation](http://se7so.blogspot.in/2012/12/segment-trees-and-lazy-propagation.html) - Questions on - [Codechef](https://discuss.codechef.com/tags/segment-tree/) - [A2oj](http://a2oj.com/Category.jsp?ID=25) Trees --- - Theory - [Hackerearth](https://www.hackerearth.com/notes/trees/) - Questions on - [Hackerrank](https://www.hackerrank.com/domains/data-structures/trees) - [Codechef](https://discuss.codechef.com/tags/trees/) - [A2oj](http://a2oj.com/Category.jsp?ID=89) - [Codeforces](http://codeforces.com/problemset/tags/trees) ================================================ FILE: human_curated_lists/awesome-lists.md ================================================ ## Platforms - [Node.js](https://github.com/sindresorhus/awesome-nodejs) - JavaScript runtime built on Chrome's V8 JavaScript engine. - [Frontend Development](https://github.com/dypsilon/frontend-dev-bookmarks) - [iOS](https://github.com/vsouza/awesome-ios) - Mobile operating system for Apple phones and tablets. - [Android](https://github.com/JStumpp/awesome-android) - [IoT & Hybrid Apps](https://github.com/weblancaster/awesome-IoT-hybrid) - [Electron](https://github.com/sindresorhus/awesome-electron) - Cross-platform native desktop apps using JavaScript/HTML/CSS. - [Cordova](https://github.com/busterc/awesome-cordova) - JavaScript API for hybrid apps. - [React Native](https://github.com/jondot/awesome-react-native) - [Xamarin](https://github.com/benoitjadinon/awesome-xamarin) - Mobile app development IDE, testing, and distribution. - [Linux](https://github.com/aleksandar-todorovic/awesome-linux) - [Containers](https://github.com/Friz-zy/awesome-linux-containers) - [macOS](https://github.com/iCHAIT/awesome-macOS) - [Command-Line](https://github.com/herrbischoff/awesome-macos-command-line) - [Screensavers](https://github.com/agarrharr/awesome-macos-screensavers) - [watchOS](https://github.com/yenchenlin/awesome-watchos) - Operating system for the Apple Watch. - [JVM](https://github.com/deephacks/awesome-jvm) - [Salesforce](https://github.com/mailtoharshit/awesome-salesforce) - [Amazon Web Services](https://github.com/donnemartin/awesome-aws) - [Windows](https://github.com/Awesome-Windows/Awesome) - [IPFS](https://github.com/ipfs/awesome-ipfs) - P2P hypermedia protocol. - [Fuse](https://github.com/vinkla/awesome-fuse) - Mobile development tools. - [Heroku](https://github.com/ianstormtaylor/awesome-heroku) - Cloud platform as a service. - [Raspberry Pi](https://github.com/thibmaek/awesome-raspberry-pi) - Credit card-sized computer aimed at teaching kids programming, but capable of a lot more. - [Qt](https://github.com/JesseTG/awesome-qt) - Cross-platform GUI app framework. - [WebExtensions](https://github.com/bfred-it/Awesome-WebExtensions) - Cross-browser extension system. - [RubyMotion](https://github.com/motion-open-source/awesome-rubymotion) - Write cross-platform native apps for iOS, Android, macOS, tvOS, and watchOS in Ruby. - [Smart TV](https://github.com/vitalets/awesome-smart-tv) - Create apps for different TV platforms. - [GNOME](https://github.com/Kazhnuz/awesome-gnome) - Simple and distraction-free desktop environment for Linux. - [.NET](https://github.com/quozd/awesome-dotnet) - [Core](https://github.com/thangchung/awesome-dotnet-core) ## Programming Languages - [JavaScript](https://github.com/sorrycc/awesome-javascript) - [Promises](https://github.com/wbinnssmith/awesome-promises) - [Standard Style](https://github.com/standard/awesome-standard) - Style guide and linter. - [Must Watch Talks](https://github.com/bolshchikov/js-must-watch) - [Tips](https://github.com/loverajoel/jstips) - [Network Layer](https://github.com/Kikobeats/awesome-network-js) - [Micro npm Packages](https://github.com/parro-it/awesome-micro-npm-packages) - [Mad Science npm Packages](https://github.com/feross/awesome-mad-science) - Impossible sounding projects that exist. - [Maintenance Modules](https://github.com/maxogden/maintenance-modules) - For npm packages. - [npm](https://github.com/sindresorhus/awesome-npm) - Package manager. - [AVA](https://github.com/avajs/awesome-ava) - Test runner. - [ESLint](https://github.com/dustinspecker/awesome-eslint) - Linter. - [Functional Programming](https://github.com/stoeffel/awesome-fp-js) - [Observables](https://github.com/sindresorhus/awesome-observables) - [npm scripts](https://github.com/RyanZim/awesome-npm-scripts) - Task runner. - [Swift](https://github.com/matteocrippa/awesome-swift) - [Education](https://github.com/hsavit1/Awesome-Swift-Education) - [Playgrounds](https://github.com/uraimo/Awesome-Swift-Playgrounds) - [Python](https://github.com/vinta/awesome-python) - [Asyncio](https://github.com/timofurrer/awesome-asyncio) - Asynchronous I/O in Python 3. - [Scientific Audio](https://github.com/faroit/awesome-python-scientific-audio) - Scientific research in audio/music. - [Rust](https://github.com/rust-unofficial/awesome-rust) - [Haskell](https://github.com/krispo/awesome-haskell) - [PureScript](https://github.com/passy/awesome-purescript) - [Go](https://github.com/avelino/awesome-go) - [Scala](https://github.com/lauris/awesome-scala) - [Ruby](https://github.com/markets/awesome-ruby) - [Clojure](https://github.com/razum2um/awesome-clojure) - [ClojureScript](https://github.com/hantuzun/awesome-clojurescript) - [Elixir](https://github.com/h4cc/awesome-elixir) - [Elm](https://github.com/isRuslan/awesome-elm) - [Erlang](https://github.com/drobakowski/awesome-erlang) - [Julia](https://github.com/svaksha/Julia.jl) - [Lua](https://github.com/LewisJEllis/awesome-lua) - [C](https://github.com/aleksandar-todorovic/awesome-c) - [C/C++](https://github.com/fffaraz/awesome-cpp) - [R](https://github.com/qinwf/awesome-R) - [D](https://github.com/zhaopuming/awesome-d) - [Common Lisp](https://github.com/CodyReichert/awesome-cl) - [Perl](https://github.com/hachiojipm/awesome-perl) - [Groovy](https://github.com/kdabir/awesome-groovy) - [Dart](https://github.com/yissachar/awesome-dart) - [Java](https://github.com/akullpp/awesome-java) - [RxJava](https://github.com/eleventigers/awesome-rxjava) - [Kotlin](https://github.com/KotlinBy/awesome-kotlin) - [OCaml](https://github.com/rizo/awesome-ocaml) - [ColdFusion](https://github.com/seancoyne/awesome-coldfusion) - [Fortran](https://github.com/rabbiabram/awesome-fortran) - [PHP](https://github.com/ziadoz/awesome-php) - [Composer](https://github.com/jakoch/awesome-composer) - Package manager. - [Delphi](https://github.com/Fr0sT-Brutal/awesome-delphi) - [Assembler](https://github.com/jaspergould/awesome-asm) - [AutoHotkey](https://github.com/ahkscript/awesome-AutoHotkey) - [AutoIt](https://github.com/J2TeaM/awesome-AutoIt) - [Crystal](https://github.com/veelenga/awesome-crystal) - [Frege](https://github.com/sfischer13/awesome-frege) - Haskell for the JVM. - [CMake](https://github.com/onqtam/awesome-cmake) - Build, test, and package software. - [ActionScript 3](https://github.com/robinrodricks/awesome-actionscript3) - Object-oriented language targeting Adobe AIR. - [Eta](https://github.com/sfischer13/awesome-eta) - Functional programming language for the JVM. - [Idris](https://github.com/joaomilho/awesome-idris) - General purpose pure functional programming language with dependent types influenced by Haskell and ML. ## Front-End Development - [ES6 Tools](https://github.com/addyosmani/es6-tools) - [Web Performance Optimization](https://github.com/davidsonfellipe/awesome-wpo) - [Web Tools](https://github.com/lvwzhen/tools) - [CSS](https://github.com/awesome-css-group/awesome-css) - [Critical-Path Tools](https://github.com/addyosmani/critical-path-css-tools) - [Scalability](https://github.com/davidtheclark/scalable-css-reading-list) - [Must-Watch Talks](https://github.com/AllThingsSmitty/must-watch-css) - [Protips](https://github.com/AllThingsSmitty/css-protips) - [React](https://github.com/enaqx/awesome-react) - App framework. - [Relay](https://github.com/expede/awesome-relay) - Framework for building data-driven React apps. - [Web Components](https://github.com/mateusortiz/webcomponents-the-right-way) - [Polymer](https://github.com/Granze/awesome-polymer) - JavaScript library to develop Web Components. - [Angular](https://github.com/gdi2290/awesome-angular) - App framework. - [Backbone](https://github.com/sadcitizen/awesome-backbone) - App framework. - [HTML5](https://github.com/diegocard/awesome-html5) - Markup language used for websites & web apps. - [SVG](https://github.com/willianjusten/awesome-svg) - XML-based vector image format. - [Canvas](https://github.com/raphamorim/awesome-canvas) - [KnockoutJS](https://github.com/dnbard/awesome-knockout) - [Dojo Toolkit](https://github.com/petk/awesome-dojo) - [Inspiration](https://github.com/NoahBuscher/Inspire) - [Ember](https://github.com/nmec/awesome-ember) - App framework. - [Android UI](https://github.com/wasabeef/awesome-android-ui) - [iOS UI](https://github.com/cjwirth/awesome-ios-ui) - [Meteor](https://github.com/Urigo/awesome-meteor) - [BEM](https://github.com/sturobson/BEM-resources) - [Flexbox](https://github.com/afonsopacifer/awesome-flexbox) - [Web Typography](https://github.com/deanhume/typography) - [Web Accessibility](https://github.com/brunopulis/awesome-a11y) - [Material Design](https://github.com/sachin1092/awesome-material) - [D3](https://github.com/wbkd/awesome-d3) - Library for producing dynamic, interactive data visualizations. - [Emails](https://github.com/jonathandion/awesome-emails) - [jQuery](https://github.com/petk/awesome-jquery) - Easy to use JavaScript library for DOM manipulation. - [Tips](https://github.com/AllThingsSmitty/jquery-tips-everyone-should-know) - [Web Audio](https://github.com/notthetup/awesome-webaudio) - [Offline-First](https://github.com/pazguille/offline-first) - [Static Website Services](https://github.com/agarrharr/awesome-static-website-services) - [A-Frame VR](https://github.com/aframevr/awesome-aframe) - Virtual reality for web browsers. - [Cycle.js](https://github.com/cyclejs-community/awesome-cyclejs) - Functional and reactive JavaScript framework. - [Text Editing](https://github.com/dok/awesome-text-editing) - [Motion UI Design](https://github.com/fliptheweb/motion-ui-design) - [Vue.js](https://github.com/vuejs/awesome-vue) - App framework. - [Marionette.js](https://github.com/sadcitizen/awesome-marionette) - App framework. - [Aurelia](https://github.com/behzad888/awesome-aurelia) - App framework. - [Charting](https://github.com/zingchart/awesome-charting) - [Ionic Framework 2](https://github.com/candelibas/awesome-ionic) - [Chrome DevTools](https://github.com/ChromeDevTools/awesome-chrome-devtools) - [PostCSS](https://github.com/jdrgomes/awesome-postcss) - CSS tool. - [Draft.js](https://github.com/nikgraf/awesome-draft-js) - Rich text editor framework for React. - [Service Workers](https://github.com/TalAter/awesome-service-workers) - [Progressive Web Apps](https://github.com/TalAter/awesome-progressive-web-apps) - [choo](https://github.com/choojs/awesome-choo) - App framework. - [Redux](https://github.com/brillout/awesome-redux) - State container for JavaScript apps. - [webpack](https://github.com/webpack-contrib/awesome-webpack) - Module bundler. - [Browserify](https://github.com/browserify/awesome-browserify) - Module bundler. - [Sass](https://github.com/Famolus/awesome-sass) - CSS preprocessor. - [Ant Design](https://github.com/websemantics/awesome-ant-design) - Enterprise-class UI design language. - [Less](https://github.com/LucasBassetti/awesome-less) - CSS preprocessor. - [WebGL](https://github.com/sjfricke/awesome-webgl) - JavaScript API for rendering 3D graphics. - [Preact](https://github.com/ooade/awesome-preact) - App framework. - [Progressive Enhancement](https://github.com/jbmoelker/progressive-enhancement-resources) - [Next.js](https://github.com/unicodeveloper/awesome-nextjs) - Framework for server-rendered React apps. - [Hyperapp](https://github.com/hyperapp/awesome-hyperapp) - Tiny JavaScript library for building web apps. ## Back-End Development - [Django](https://github.com/rosarior/awesome-django) - [Flask](https://github.com/humiaozuzu/awesome-flask) - [Docker](https://github.com/veggiemonk/awesome-docker) - [Vagrant](https://github.com/iJackUA/awesome-vagrant) - [Pyramid](https://github.com/uralbash/awesome-pyramid) - [Play1 Framework](https://github.com/PerfectCarl/awesome-play1) - [CakePHP](https://github.com/friendsofcake/awesome-cakephp) - PHP framework. - [Symfony](https://github.com/sitepoint-editors/awesome-symfony) - [Education](https://github.com/pehapkari/awesome-symfony-education) - [Laravel](https://github.com/chiraggude/awesome-laravel) - PHP framework. - [Education](https://github.com/fukuball/Awesome-Laravel-Education) - [Rails](https://github.com/ekremkaraca/awesome-rails) - Web app framework for Ruby. - [Gems](https://github.com/hothero/awesome-rails-gem) - Packages. - [Phalcon](https://github.com/phalcon/awesome-phalcon) - [Useful `.htaccess` Snippets](https://github.com/phanan/htaccess) - [nginx](https://github.com/fcambus/nginx-resources) - Web server. - [Dropwizard](https://github.com/stve/awesome-dropwizard) - [Kubernetes](https://github.com/ramitsurana/awesome-kubernetes) - [Lumen](https://github.com/unicodeveloper/awesome-lumen) - [Serverless Framework](https://github.com/pmuens/awesome-serverless) - [Apache Wicket](https://github.com/PhantomYdn/awesome-wicket) - Java web app framework. - [Vert.x](https://github.com/vert-x3/vertx-awesome) - Toolkit for building reactive apps on the JVM. - [Terraform](https://github.com/shuaibiyy/awesome-terraform) - Tool for building, changing, and versioning infrastructure. ## Computer Science - [University Courses](https://github.com/prakhar1989/awesome-courses) - [Data Science](https://github.com/bulutyazilim/awesome-datascience) - [Tutorials](https://github.com/siboehm/awesome-learn-datascience) - [Machine Learning](https://github.com/josephmisiti/awesome-machine-learning) - [Tutorials](https://github.com/ujjwalkarn/Machine-Learning-Tutorials) - [ML with Ruby](https://github.com/arbox/machine-learning-with-ruby) - Learning, implementing, and applying Machine Learning using Ruby. - [Core ML Models](https://github.com/likedan/Awesome-CoreML-Models) - Models for Apple's machine learning framework. - [Speech and Natural Language Processing](https://github.com/edobashira/speech-language-processing) - [Spanish](https://github.com/dav009/awesome-spanish-nlp) - [NLP with Ruby](https://github.com/arbox/nlp-with-ruby) - [Linguistics](https://github.com/theimpossibleastronaut/awesome-linguistics) - [Cryptography](https://github.com/sobolevn/awesome-cryptography) - [Computer Vision](https://github.com/jbhuang0604/awesome-computer-vision) - [Deep Learning](https://github.com/ChristosChristofidis/awesome-deep-learning) - Neural networks. - [TensorFlow](https://github.com/jtoy/awesome-tensorflow) - Library for machine intelligence. - [Papers](https://github.com/terryum/awesome-deep-learning-papers) - The most cited deep learning papers. - [Education](https://github.com/guillaume-chevalier/awesome-deep-learning-resources) - [Deep Vision](https://github.com/kjw0612/awesome-deep-vision) - [Open Source Society University](https://github.com/ossu/computer-science) - [Functional Programming](https://github.com/lucasviola/awesome-functional-programming) - [Static Analysis & Code Quality](https://github.com/mre/awesome-static-analysis) - [Information Retrieval](https://github.com/harpribot/awesome-information-retrieval) - Learn to develop your own search engine. ## Big Data - [Big Data](https://github.com/onurakpolat/awesome-bigdata) - [Public Datasets](https://github.com/awesomedata/awesome-public-datasets) - [Hadoop](https://github.com/youngwookim/awesome-hadoop) - Framework for distributed storage and processing of very large data sets. - [Data Engineering](https://github.com/igorbarinov/awesome-data-engineering) - [Streaming](https://github.com/manuzhang/awesome-streaming) - [Apache Spark](https://github.com/awesome-spark/awesome-spark) - Unified engine for large-scale data processing. ## Theory - [Papers We Love](https://github.com/papers-we-love/papers-we-love) - [Talks](https://github.com/JanVanRyswyck/awesome-talks) - [Algorithms](https://github.com/tayllan/awesome-algorithms) - [Algorithm Visualizations](https://github.com/enjalot/algovis) - [Artificial Intelligence](https://github.com/owainlewis/awesome-artificial-intelligence) - [Search Engine Optimization](https://github.com/marcobiedermann/search-engine-optimization) - [Competitive Programming](https://github.com/lnishan/awesome-competitive-programming) - [Math](https://github.com/rossant/awesome-math) - [Recursion Schemes](https://github.com/passy/awesome-recursion-schemes) - Traversing nested data structures. ## Books - [Free Programming Books](https://github.com/EbookFoundation/free-programming-books) - [Free Software Testing Books](https://github.com/ligurio/awesome-software-quality) - [Go Books](https://github.com/dariubs/GoBooks) - [R Books](https://github.com/RomanTsegelskyi/rbooks) - [Mind Expanding Books](https://github.com/hackerkid/Mind-Expanding-Books) - [Book Authoring](https://github.com/TalAter/awesome-book-authoring) - [Elixir Books](https://github.com/sger/ElixirBooks) ## Editors - [Sublime Text](https://github.com/dreikanter/sublime-bookmarks) - [Vim](https://github.com/mhinz/vim-galore) - [Emacs](https://github.com/emacs-tw/awesome-emacs) - [Atom](https://github.com/mehcode/awesome-atom) - Open-source and hackable text editor. - [Visual Studio Code](https://github.com/viatsko/awesome-vscode) - Cross-platform open-source text editor. ## Gaming - [Game Development](https://github.com/ellisonleao/magictools) - [Game Talks](https://github.com/hzoo/awesome-gametalks) - [Godot](https://github.com/Calinou/awesome-godot) - Game engine. - [Open Source Games](https://github.com/leereilly/games) - [Unity](https://github.com/RyanNielson/awesome-unity) - Game engine. - [Chess](https://github.com/hkirat/awesome-chess) - [LÖVE](https://github.com/love2d-community/awesome-love2d) - Game engine. - [PICO-8](https://github.com/felipebueno/awesome-PICO-8) - Fantasy console. - [Game Boy Development](https://github.com/avivace/awesome-gbdev) - [Construct 2](https://github.com/armaldio/awesome-construct) - Game engine. - [Gideros](https://github.com/stetso/awesome-gideros) - Game engine. ## Development Environment - [Quick Look Plugins](https://github.com/sindresorhus/quick-look-plugins) - For macOS. - [Dev Env](https://github.com/jondot/awesome-devenv) - [Dotfiles](https://github.com/webpro/awesome-dotfiles) - [Shell](https://github.com/alebcay/awesome-shell) - [Fish](https://github.com/fisherman/awesome-fish-shell) - User-friendly shell. - [Command-Line Apps](https://github.com/agarrharr/awesome-cli-apps) - [ZSH Plugins](https://github.com/unixorn/awesome-zsh-plugins) - [GitHub](https://github.com/phillipadsmith/awesome-github) - Hosting service for Git repositories. - [Browser Extensions](https://github.com/stefanbuck/awesome-browser-extensions-for-github) - [Cheat Sheet](https://github.com/tiimgreen/github-cheat-sheet) - [Git Cheat Sheet & Git Flow](https://github.com/arslanbilal/git-cheat-sheet) - [Git Tips](https://github.com/git-tips/tips) - [Git Add-ons](https://github.com/stevemao/awesome-git-addons) - Enhance the `git` CLI. - [SSH](https://github.com/moul/awesome-ssh) - [FOSS for Developers](https://github.com/tvvocold/FOSS-for-Dev) - [Hyper](https://github.com/bnb/awesome-hyper) - Cross-platform terminal app built on web technologies. - [PowerShell](https://github.com/janikvonrotz/awesome-powershell) - Cross-platform object-oriented shell. - [Alfred Workflows](https://github.com/derimagia/awesome-alfred-workflows) - Productivity app for macOS. - [Terminals Are Sexy](https://github.com/k4m4/terminals-are-sexy) ## Entertainment - [Science Fiction](https://github.com/sindresorhus/awesome-scifi) - Scifi. - [Fantasy](https://github.com/RichardLitt/awesome-fantasy) - [Podcasts](https://github.com/guipdutra/awesome-geek-podcasts) - [Email Newsletters](https://github.com/vredniy/awesome-newsletters) - [IT Quotes](https://github.com/victorlaerte/awesome-it-quotes) ## Databases - [Database](https://github.com/numetriclabz/awesome-db) - [MySQL](https://github.com/shlomi-noach/awesome-mysql/blob/gh-pages/index.md) - [SQLAlchemy](https://github.com/dahlia/awesome-sqlalchemy) - [InfluxDB](https://github.com/mark-rushakoff/awesome-influxdb) - [Neo4j](https://github.com/neueda/awesome-neo4j) - [MongoDB](https://github.com/ramnes/awesome-mongodb) - NoSQL database. - [RethinkDB](https://github.com/d3viant0ne/awesome-rethinkdb) - [TinkerPop](https://github.com/mohataher/awesome-tinkerpop) - Graph computing framework. - [PostgreSQL](https://github.com/dhamaniasad/awesome-postgres) - Object-relational database. - [CouchDB](https://github.com/quangv/awesome-couchdb) - Document-oriented NoSQL database. - [HBase](https://github.com/rayokota/awesome-hbase) - Distributed, scalable, big data store. ## Media - [Creative Commons Media](https://github.com/shime/creative-commons-media) - [Fonts](https://github.com/brabadu/awesome-fonts) - [Codeface](https://github.com/chrissimpkins/codeface) - Text editor fonts. - [Stock Resources](https://github.com/neutraltone/awesome-stock-resources) - [GIF](https://github.com/davisonio/awesome-gif) - Image format known for animated images. - [Music](https://github.com/ciconia/awesome-music) - [Open Source Documents](https://github.com/hubtee/awesome-opensource-documents) - [Audio Visualization](https://github.com/willianjusten/awesome-audio-visualization) - [Broadcasting](https://github.com/ebu/awesome-broadcasting) - [Pixel Art](https://github.com/Siilwyn/awesome-pixel-art) - Pixel-level digital art. ## Learn - [CLI Workshoppers](https://github.com/therebelrobot/awesome-workshopper) - Interactive tutorials. - [Learn to Program](https://github.com/karlhorky/learn-to-program) - [Speaking](https://github.com/matteofigus/awesome-speaking) - [Tech Videos](https://github.com/lucasviola/awesome-tech-videos) - [Dive into Machine Learning](https://github.com/hangtwenty/dive-into-machine-learning) - [Computer History](https://github.com/watson/awesome-computer-history) - [Programming for Kids](https://github.com/HollyAdele/awesome-programming-for-kids) - [Educational Games](https://github.com/yrgo/awesome-eg) - Learn while playing. - [JavaScript Learning](https://github.com/micromata/awesome-javascript-learning) ## Security - [Application Security](https://github.com/paragonie/awesome-appsec) - [Security](https://github.com/sbilly/awesome-security) - [CTF](https://github.com/apsdehal/awesome-ctf) - Capture The Flag. - [Malware Analysis](https://github.com/rshipp/awesome-malware-analysis) - [Android Security](https://github.com/ashishb/android-security-awesome) - [Hacking](https://github.com/carpedm20/awesome-hacking) - [Honeypots](https://github.com/paralax/awesome-honeypots) - Deception trap, designed to entice an attacker into attempting to compromise the information systems in an organization. - [Incident Response](https://github.com/meirwah/awesome-incident-response) - [Vehicle Security and Car Hacking](https://github.com/jaredthecoder/awesome-vehicle-security) - [Web Security](https://github.com/qazbnm456/awesome-web-security) - Security of web apps & services. - [Lockpicking](https://github.com/meitar/awesome-lockpicking) - The art of unlocking a lock by manipulating its components without the key. ## Content Management Systems - [Umbraco](https://github.com/leekelleher/awesome-umbraco) - [Refinery CMS](https://github.com/refinerycms-contrib/awesome-refinerycms) - Ruby on Rails CMS. - [Wagtail](https://github.com/springload/awesome-wagtail) - Django CMS focused on flexibility and user experience. - [Textpattern](https://github.com/drmonkeyninja/awesome-textpattern) - Lightweight PHP-based CMS. - [Drupal](https://github.com/nirgn975/awesome-drupal) - Extensible PHP-based CMS. - [Craft CMS](https://github.com/craftcms/awesome) - Content-first CMS. ## Hardware - [Robotics](https://github.com/Kiloreux/awesome-robotics) - [Internet of Things](https://github.com/HQarroum/awesome-iot) - [Electronics](https://github.com/monostable/awesome-electronics) - For electronic engineers and hobbyists. - [Bluetooth Beacons](https://github.com/beaconinside/awesome-beacon) - [Electric Guitar Specifications](https://github.com/gitfrage/guitarspecs) - Checklist for building your own electric guitar. ## Business - [Open Companies](https://github.com/opencompany/awesome-open-company) - [Places to Post Your Startup](https://github.com/mmccaff/PlacesToPostYourStartup) - [OKR Methodology](https://github.com/domenicosolazzo/awesome-okr) - Goal setting & communication best practices. - [Leading and Managing](https://github.com/LappleApple/awesome-leading-and-managing) - Leading people and being a manager in a technology company/environment. - [Indie](https://github.com/mezod/awesome-indie) - Independent developer businesses. ## Work - [Slack](https://github.com/matiassingers/awesome-slack) - Team collaboration. - [Communities](https://github.com/filipelinhares/awesome-slack) - [Remote Jobs](https://github.com/lukasz-madon/awesome-remote-job) - [Productivity](https://github.com/jyguyomarch/awesome-productivity) - [Niche Job Boards](https://github.com/tramcar/awesome-job-boards) - [Programming Interviews](https://github.com/MaximAbramchuck/awesome-interview-questions) ## Networking - [Software-Defined Networking](https://github.com/sdnds-tw/awesome-sdn) - [Network Analysis](https://github.com/briatte/awesome-network-analysis) - [PCAPTools](https://github.com/caesar0301/awesome-pcaptools) ## Decentralized Systems - [Bitcoin](https://github.com/igorbarinov/awesome-bitcoin) - Bitcoin services and tools for software developers. - [Ripple](https://github.com/vhpoet/awesome-ripple) - Open source distributed settlement network. - [Non-Financial Blockchain](https://github.com/machinomy/awesome-non-financial-blockchain) - Non-financial blockchain applications. - [Mastodon](https://github.com/tleb/awesome-mastodon) - Open source decentralized microblogging network. ## Miscellaneous - [JSON](https://github.com/burningtree/awesome-json) - Text based data interchange format. - [GeoJSON](https://github.com/tmcw/awesome-geojson) - [Datasets](https://github.com/jdorfman/awesome-json-datasets) - [Discounts for Student Developers](https://github.com/AchoArnold/discount-for-student-dev) - [Conferences](https://github.com/RichardLitt/awesome-conferences) - [Sysadmin](https://github.com/n1trux/awesome-sysadmin) - [Radio](https://github.com/kyleterry/awesome-radio) - [Awesome](https://github.com/sindresorhus/awesome) - Recursion illustrated. - [Analytics](https://github.com/onurakpolat/awesome-analytics) - [REST](https://github.com/marmelab/awesome-rest) - [Selenium](https://github.com/christian-bromann/awesome-selenium) - [Appium](https://github.com/SrinivasanTarget/awesome-appium) - Test automation tool for apps. - [Continuous Integration and Continuous Delivery](https://github.com/ciandcd/awesome-ciandcd) - [Services Engineering](https://github.com/mmcgrana/services-engineering) - [Free for Developers](https://github.com/ripienaar/free-for-dev) - [Answers](https://github.com/cyberglot/awesome-answers) - Stack Overflow, Quora, etc. - [Sketch](https://github.com/diessica/awesome-sketch) - Design app for macOS. - [Boilerplate Projects](https://github.com/melvin0008/awesome-projects-boilerplates) - [Readme](https://github.com/matiassingers/awesome-readme) - [Tools](https://github.com/cjbarber/ToolsOfTheTrade) - [Styleguides](https://github.com/RichardLitt/awesome-styleguides) - [Design and Development Guides](https://github.com/NARKOZ/guides) - [Software Engineering Blogs](https://github.com/kilimchoi/engineering-blogs) - [Self Hosted](https://github.com/Kickball/awesome-selfhosted) - [FOSS Production Apps](https://github.com/jwaterfaucett/awesome-foss-apps) - [Gulp](https://github.com/alferov/awesome-gulp) - Task runner. - [AMA](https://github.com/sindresorhus/amas) - Ask Me Anything. - [Answers](https://github.com/stoeffel/awesome-ama-answers) - [Open Source Photography](https://github.com/ibaaj/awesome-OpenSourcePhotography) - [OpenGL](https://github.com/eug/awesome-opengl) - Cross-platform API for rendering 2D and 3D graphics. - [GraphQL](https://github.com/chentsulin/awesome-graphql) - [Transit](https://github.com/CUTR-at-USF/awesome-transit) - [Research Tools](https://github.com/emptymalei/awesome-research) - [Data Visualization](https://github.com/fasouto/awesome-dataviz) - [Social Media Share Links](https://github.com/vinkla/shareable-links) - [Microservices](https://github.com/mfornos/awesome-microservices) - [Unicode](https://github.com/jagracey/Awesome-Unicode) - Unicode standards, quirks, packages and resources. - [Code Points](https://github.com/Codepoints/awesome-codepoints) - [Beginner-Friendly Projects](https://github.com/MunGell/awesome-for-beginners) - [Katas](https://github.com/gamontal/awesome-katas) - [Tools for Activism](https://github.com/drewrwilson/toolsforactivism) - [Citizen Science](https://github.com/dylanrees/citizen-science) - For community-based and non-institutional scientists. - [TAP](https://github.com/sindresorhus/awesome-tap) - Test Anything Protocol. - [MQTT](https://github.com/hobbyquaker/awesome-mqtt) - "Internet of Things" connectivity protocol. - [Hacking Spots](https://github.com/diasdavid/awesome-hacking-spots) - [For Girls](https://github.com/cristianoliveira/awesome4girls) - [Vorpal](https://github.com/vorpaljs/awesome-vorpal) - Node.js CLI framework. - [Vulkan](https://github.com/vinjn/awesome-vulkan) - Low-overhead, cross-platform 3D graphics and compute API. - [LaTeX](https://github.com/egeerardyn/awesome-LaTeX) - Typesetting language. - [Economics](https://github.com/antontarasenko/awesome-economics) - An economist's starter kit. - [Funny Markov Chains](https://github.com/sublimino/awesome-funny-markov) - [Bioinformatics](https://github.com/danielecook/Awesome-Bioinformatics) - [Colorful](https://github.com/Siddharth11/Colorful) - Choose your next color scheme. - [Steam](https://github.com/scholtzm/awesome-steam) - Digital distribution platform. - [Bots](https://github.com/hackerkid/bots) - Building bots. - [Site Reliability Engineering](https://github.com/dastergon/awesome-sre) - [Empathy in Engineering](https://github.com/KimberlyMunoz/empathy-in-engineering) - Building and promoting more compassionate engineering cultures. - [DTrace](https://github.com/xen0l/awesome-dtrace) - Dynamic tracing framework. - [Userscripts](https://github.com/brunocvcunha/awesome-userscripts) - Enhance your browsing experience. - [Pokémon](https://github.com/tobiasbueschel/awesome-pokemon) - Pokémon and Pokémon GO. - [ChatOps](https://github.com/exAspArk/awesome-chatops) - Managing technical and business operations through a chat. - [Falsehood](https://github.com/kdeldycke/awesome-falsehood) - Falsehoods programmers believe in. - [Domain-Driven Design](https://github.com/heynickc/awesome-ddd) - Software development approach for complex needs by connecting the implementation to an evolving model. - [Quantified Self](https://github.com/woop/awesome-quantified-self) - Self-tracking through technology. - [SaltStack](https://github.com/hbokh/awesome-saltstack) - Python-based config management system. - [Web Design](https://github.com/nicolesaidy/awesome-web-design) - For digital designers. - [JMeter](https://github.com/aliesbelik/awesome-jmeter) - Load testing and performance measurement tool. - [Creative Coding](https://github.com/terkelg/awesome-creative-coding) - Programming something expressive instead of something functional. - [No-Login Web Apps](https://github.com/aviaryan/awesome-no-login-web-apps) - Web apps that work without login. - [Testing](https://github.com/TheJambo/awesome-testing) - Software testing. - [Free Software](https://github.com/johnjago/awesome-free-software) - Free as in freedom. - [Framer](https://github.com/podo/awesome-framer) - Prototyping interactive UI designs. - [Markdown](https://github.com/BubuAnabelas/awesome-markdown) - Markup language. - [Dev Fun](https://github.com/mislavcimpersak/awesome-dev-fun) - Funny developer projects. - [Events in the Netherlands](https://github.com/awkward/awesome-netherlands-events) - Tech-related events in the Netherlands. - [Healthcare](https://github.com/kakoni/awesome-healthcare) - Open source healthcare software for facilities, providers, developers, policy experts, and researchers. - [Magento 2](https://github.com/DavidLambauer/awesome-magento2) - Open Source eCommerce built with PHP. - [TikZ](https://github.com/xiaohanyu/awesome-tikz) - Graph drawing packages for TeX/LaTeX/ConTeXt. - [Neuroscience](https://github.com/analyticalmonk/awesome-neuroscience) - Study of the nervous system and brain. - [Ad-Free](https://github.com/johnjago/awesome-ad-free) - Ad-free alternatives. - [Esolangs](https://github.com/angrykoala/awesome-esolangs) - Programming languages designed for experimentation or as jokes rather than actual use. - [Prometheus](https://github.com/roaldnefs/awesome-prometheus) - Open-source monitoring system. - [Homematic](https://github.com/hobbyquaker/awesome-homematic) - Smart home devices. - [Ledger](https://github.com/sfischer13/awesome-ledger) - Double-entry accounting on the command-line. - [Uncopyright](https://github.com/johnjago/awesome-uncopyright) - Public domain works. - [Crypto Currency Tools & Algorithms](https://github.com/kennethreitz/awesome-coins) — Digital currency where encryption is used to regulate the generation of units and verify transfers. - [Diversity](https://github.com/folkswhocode/awesome-diversity) - Creating a more inclusive and diverse tech community. - [Open Source Supporters](https://github.com/zachflower/awesome-open-source-supporters) - Companies that offer their tools and services for free to open source projects. - [Design Principles](https://github.com/robinstickel/awesome-design-principles) - Create better and more consistent designs and experiences. - [Visual Regression Testing](https://github.com/mojoaxel/awesome-regression-testing) - Ensures changes did not break the functionality or style. - [Theravada](https://github.com/johnjago/awesome-theravada) - Teachings from the Theravada Buddhist tradition. - [inspectIT](https://github.com/inspectit-labs/awesome-inspectit) - Open source Java app performance management tool. ## License [![CC0](http://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/) To the extent possible under law, [Sindre Sorhus](https://sindresorhus.com) has waived all copyright and related or neighboring rights to this work. ================================================ FILE: human_curated_lists/best-student-discount-services.md ================================================ # Collective discounts * [International Student Identity Card](https://www.isic.org/): Any full-time student over 12 years old qualifies for 42,000 discounts in 130 countries * [GitHub Student Developer Pack](https://education.github.com/pack): Discounts on several software products offered through Github * [Student Advantage Card](http://www.studentadvantage.com/discountcard/): Save money on over 100 national brands on a variety of products * [AWS Educate](https://www.awseducate.com/microsite/CommunitiesEngageHome): credits to access AWS services for free. Free labs on services such as EC2, S3, and others * [Microsoft Education](https://www.microsoft.com/en-in/education/students/default.aspx): Free Micrsoft Office 365 and other discounts on MS products * [Amazon Prime Student](https://www.amazon.com/Amazon-Student/b?node=668781011): a six-month trial that includes Free Two-Day Shipping, unlimited streaming of Amazon Prime movies and TV shows, unlimited photo storage with Amazon Prime Photos, 20% off pre-order and new release video games, exclusive deals and savings, and more! 50% off after the six-month trial period * [Microsoft Imagine](https://imagine.microsoft.com/en-us/Catalog/Product/99): pack of Microsoft cloud services like Azure, for deploying projects, free for students. # Electronic devices * [Apple](http://store.apple.com/us/browse/campaigns/education_pricing): Students and educators save 5% off most purchases; save up to $200 on a new Mac or a new iPad with Apple’s Education pricing. * [Microsoft](https://www.microsoft.com/en-us/education/students/default.aspx): Save up to $194 on a Surface Pro 3, get 10% off accessories, and get special pricing on software. * [Adobe](https://www.apple.com/us-hed/shop): Full-time students can receive discounts on software like 60% off Creative Cloud * [Dell](http://www.dell.com/learn/us/en/6099/campaigns/welcome-to-dell-university): offers discounts on laptops, desktops, and more * [Lenovo](): Lenovo has an Academic Purchase Program that offers student discounts on laptops, tablets, and desktop computers. Discounts vary depending on your school. * [Sony](http://store.sony.com/gsi/webstore/WFS/SNYNA-SNYUS-Site/en_US/-/USD/ViewPurchasePrograms-EDULandingPage): Through Sony Student Store membership, get 10% off merchandise # Productivity apps * [Evernote](https://evernote.com/students/): One year of the premium plan for 50% off * [Microsoft Office 365](https://www.microsoft.com/en-in/education/students/default.aspx): Free for students # Software ### Version control * [Tower](http://www.git-tower.com/buy) - Version control with git. Students get a 50% discount * [GitKraken PRO](https://www.gitkraken.com/github-student-developer-pack) - Free for 1 year via [GitHub Student Developer Pack](https://education.github.com/pack) ### Design and modeling tools * [Sketch](https://backend.bohemiancoding.com/store/edu/) - 50% off on an educational license * [Axure RP](http://www.axure.com/edu): Free educational license of Axure RP Pro * [Vertabelo](https://my.vertabelo.com/sign-up/create-academic): Free academic accounts for students * [Framer](http://framerjs.com/pricing/): 50% off on an educational license * [Lucidchart](https://www.lucidchart.com/pages/usecase/education): Free professional software for DFDs,flowcharts, organisational charts, website wireframes, UML designs, mind maps, software prototypes, and many other diagram types (Use learner college student id to get unlimited access) ### Game Development Tools * [Unity3D](https://unity3d.com/education): Students are offered a yearly license for $100 USD * [Unreal Game Engine](https://www.unrealengine.com/education): Free through [Github Student Developer Pack](https://education.github.com/pack) ## IDE and Code Editing * [Intel® Parallel Studio XE 2015](https://software.intel.com/en-us/qualify-for-free-software/student): Free for students * [Xamarin IDE](http://xamarin.com/student): Free for students * [Bootstrap Studio](https://bootstrapstudio.io/pages/student-license): Free for students * [JetBrains Pack](https://www.jetbrains.com/student/): Free professional IDEs for C/C++/Python/Java/JS/PHP/Ruby/etc for students ### 3D Animation and Modeling Software * [Autodesk Entertainment Creation Suite Ultimate](http://www.autodesk.com/education/free-software/entertainment-creation-suite-ultimate): 3-Year free License for students ### Visual Analytics * [CartoDB](https://cartodb.com/solutions/education-and-research/): Additional space & features for free accounts or 20% discount on paid accounts * [Tableau Desktop](https://www.tableau.com/academic/students): One Year free Professional License for Students * [SAS University Edition](http://www.sas.com/en_us/software/university-edition.html): Free for students # Developer Services * [HackHands](https://hackhands.com/education/): $25 in platform credit to students via [Github Student Developer Pack](https://education.github.com/pack) * [Amazon Web Services](http://www.awseducate.com/application) - free by joining AWS Educate today * [Send Grid](https://sendgrid.com/partner/github-education) - 15K free emails/month (normally limited to 200 free emails/day) via [Github Student Developer Pack](https://education.github.com/pack) * [Adobe Creative Cloud](http://www.adobe.com/creativecloud/buy/students.html) - 60% off for students * [Domino Cloud Environment](https://www.dominodatalab.com/domino-for-good/for-students/) - free computational power to work on data science projects # Music * [Spotify](https://www.spotify.com/us/student/): $4.99/month for students * [Apple Music](https://support.apple.com/en-us/HT205928): Discount for 4 years * [Cascio Interstate Music](http://www.interstatemusic.com/): 10% off orders over $69 # Shipping * [FedEx](http://www.fedex.com/kr_english/about/local/currentattractions/sdc.html): Discount of 30% off a document with FedEx Envelop/Pak and 20% off a package with FedEx IP service # Insurance * [StateFarm](https://www.statefarm.com/insurance/auto/discounts/): 25% off on keeping good grades * [Geico](https://www.geico.com/save/discounts/student-discounts/): Students under 25 with good grades can get up to a 15% discount # Newspaper Subscription * [Wall Street Journal](https://buy.wsj.com/shopandbuy/order/subscribe.jsp?trackCode=aaqntppp): $49 a year * [NewYork Times](https://www.nytimes.com/subscriptions/edu/lp8LQFK.html): $1 a week * [Economist](https://subscription.economist.com/DE/EngCore/Ecom/Default): Discount varies on plan # Hotel * [Planet Hollywood](https://www.caesars.com/planet-hollywood): 15% off on rooms * [Harrah's Laughlin](https://www.totalrewards.com/reserve/): 15% off on bookings # Travel * [Eurail](http://www.eurail.com/eurail-passes/deals-discounts/youth-discounts): 35% off the regular Adult Fare for students under 25 * [Amtrak](http://www.amtrak.com/student-discount): 10% off on train and bus service * [Budget Truck Rental](https://www.budgettruck.com/): Up to 20% off truck rental * [METROLINK](http://www.metrolinktrains.com/ticketspricing/page/title/discounts): 25% off Monthly Pass, 7-Day Pass, One-Way and Round-Trip tickets # Food * [Arby’s](#): Offers a 10% discount at certain locations with your student ID * [Buffalo Wild Wings](#): Get a 10% discount off those flaming wings with your student ID * [Burger King](#): 10% discount when you flash your ID * [Chick-fil-A](#): Get a free small drink to accompany your chicken sandwich and waffle fries (or any meal) when you show your ID * [Chipotle](#): Offers a free small drink with your meal when you show your student ID * [Dairy Queen](#): Offers a 10% discount for students with ID. * [McDonalds](#): 10% discount with your student ID * [Qdoba](#): Offers a free drink for students when you purchase a meal, as well as burrito meals for $5 # Apparel * [Alex and Ani](#): Students get 10% off in stores with a when you flash a valid school ID. * [ASOS](#): Stay stylish with 10% off ASOS duds * [Banana Republic](#), [J.Crew](), [The Limited](), [Medelita](), [Madewell](): 15% off * [Club Monaco](#): 20% off regular and sale priced items in any Club Monaco store and online * [Goodwill](#): 10% discount with student ID * [TOMS](#): 10% cash back on shoes * [Topshop](#): 10% off Topshop apparel in stores and online # Vehicles * [Chevrolet](http://www.chevrolet.com/discounts): Discounts available on selected models for professors and students * [GM](https://www.gmcollegediscount.com/vehicles/): Discounts available on selected models of 3 brands # Courses * [Faltiron School](https://flatironschool.com/): Free one-month membership ($149 value) to Community-Powered Bootcamp * [Thinkful](https://www.thinkful.com/): One month of access to a web development course # Entertainment * [Cinemark](http://www.cinemark.com/discounts-student-discounts): Get discounts on movie tickets; 25% OFF pre-paid movie tickets through [SA card](http://www.studentadvantage.com/discountcard/) * [Regal Cinemas](https://www.regmovies.com/help/entry/student-discount): Find local theaters offering student discounts # Lens and spectacles * [Glasses USA](https://www.glassesusa.com/students-discount): 55% off frames with clear single-vision lenses * [Lenstore.co.uk](https://www.lenstore.co.uk/unidays-student-discount): 15% off on the first order # Web Hosting * [Digital Ocean](https://www.digitalocean.com) - Provides $50 in hosting credit for every student that signs up for the [Github Student Developer Pack](https://education.github.com/pack) * [Gwiddle](https://gwiddle.co.uk) - Provides hosting for 2 websites, 5 mail accounts, 4 MySQL DBs, 4 cron jobs, 1.5GB bandwidth, and 2GB diskspace free to verified students. * [RoseHosting](https://www.rosehosting.com) - Offers a recurring 20% discount on all their [managed Linux VPS](https://www.rosehosting.com/linux-vps-hosting.html) and [Shared hosting plans](https://www.rosehosting.com/linux-shared-hosting.html) when paying monthly. Students can use the discount by applying the coupon code `STUDENT20`. # Domain Name * [NameCheap](http://nc.me) - One year of free domain name registration on the `.me` TLD ($18.99/year) via [Github Student Developer Pack](https://education.github.com/pack) ---

Code of conduct | Contribute

================================================ FILE: lists.json ================================================ [ { "title": "Best Student Discount Services", "description": "A student ID 💳 is a key 🔑 that unlocks 🔐 several deals and free stuff 🎉 that can make life better. This is a list of the best services that offer student discounts that students must try.", "author": "OpenGenus Foundation", "authorlink" : "http://opengenus.org/", "filename": "best-student-discount-services" }, { "title": "Awesome Lists", "description": "😎 Curated list of awesome lists ", "author": "Sindre Sorhus", "authorlink" : "http://awesome.re/", "filename": "awesome-lists" }, { "title": "Awesome Competitive Coding", "description": "A Curated list of Topic wise Theory and Questions to Get You Started On Competitive Coding.", "author": "Mihir Rana", "authorlink" : "http://ranamihir.github.io", "filename": "awesome-competitive-coding" } ] ================================================ FILE: manage.py ================================================ #!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cosmos_search.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other # exceptions on Python 2. try: import django # noqa except ImportError: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) raise execute_from_command_line(sys.argv) ================================================ FILE: metadata.json ================================================ {"string_algorithms/src/kmp_algorithm": ["README.md", "kmp_algorithm.cpp", "kmp.py"], "string_algorithms/src/lipogram_checker": ["lipogram_checker.js", "lipogram_checker.cs", "lipogram_checker.py", "lipogram_checker.cpp"], "string_algorithms/src/pangram_checker": ["pangram_checker.swift", "Pangram.java", "pangram_checker.c", "pangram.rb", "pangram_checker.py", "pangram_checker.php", "pangram-checker.js", "pangram_checker.m", "pangram_checker.go", "pangram.cpp"], "string_algorithms/src/password_strength_checker": ["README.md", "pw_checker.js", "pw_checker.py", "pw_checker.cpp", "pw_checker.java", "pw_checker.cs"], "string_algorithms/src/anagram_search": ["anagram_search.swift", "anagram_search.go", "README.md", "anagram_search.cpp", "anagram_search.java", "anagram_search.c", "anagram_search.js", "anagram_search.py", "anagram_search.cs", "anagram_search.rb"], "string_algorithms/src/morse_code": ["morsecode.js", "morsecode.go", "morsecode.py"], "string_algorithms/src/boyer_moore_algorithm": ["boyer_moore_algorithm.cpp", "README.md", "boyer_moore_algorithm2.c", "boyer_moore_algorithm.c"], "string_algorithms/src/remove_dups": ["remove_dumps.py", "remove_dups.cpp", "remove_dups.c"], "string_algorithms/src/manachar_algorithm": ["manachar_longest_palindromic_subs.cpp", "manachar_longest_palindromic_subs.py"], "string_algorithms/src/finite_automata": ["README.md", "SearchStringUsingDFA.java", "SearchStringUsingDFA.rs"], "string_algorithms/src/palindrome_checker": ["palindrome.cs", "palindrome.php", "Palindrome.purs", "palindrome.lua", "palindrome.sh", "palindrome.ex", "palindrome.erl", "palindrome.c", "palindrome.go", "palindrome.hs", "palindrome.py", "palindrome.swift", "palindrome.cpp", "palindrome.js", "Palindrome.java", "palindrome.clj", "palindrome.rs", "Palindrome.kt", "palindrome.rb"], "string_algorithms/src/levenshtein_distance": ["LevenshteinDistance.java"], "string_algorithms/src/arithmetic_on_large_numbers": ["string_subtract.cpp", "string_addition.cpp", "string_multiplication.cpp", "string_factorial.cpp"], "string_algorithms/src/rabin_karp_algorithm": ["README.md", "rabin_karp.py", "RabinKarp.java", "rabin-karp.c"], "string_algorithms/src/naive_pattern_search": ["README.md", "naive_pattern_search.py"], "string_algorithms/src/trie_pattern_search": ["README.md", "trie.cpp"], "string_algorithms/src/aho_corasick_algorithm": ["README.md", "aho_corasick_algorithm2.cpp", "aho_corasick_algorithm.java", "aho_corasick_algorithm.cpp"], "string_algorithms/src/kasai_algorithm": ["kasai_algorithm.cpp", "README.md"], "string_algorithms/src/suffix_array": ["README.md", "suffixArray.java"], "string_algorithms/src/z_algorithm": ["README.md", "z_algorithm.cpp", "z_algorithm.py", "z_algorithm_z_array.cpp"], "string_algorithms/test": ["README.md"], "computational_geometry/src/jarvis_march": ["README.md", "jarvis_march.py", "jarvis_march.cpp"], "computational_geometry/src/2d_line_intersection": ["README.md", "line.js", "line.java", "line.cpp", "line.py", "line.c", "line2dintersection.hs", "line.cs", "line.rb"], "computational_geometry/src/distance_between_points": ["README.md", "distance_between_points.c", "distance_between_points.js", "distance_between_points.py", "DistanceBetweenPoints.java", "distance_between_points.cpp", "distance_between_points.go", "distance_between_points.rs"], "computational_geometry/src/cohen_sutherland_lineclip": ["README.md", "lineclip.c"], "computational_geometry/src/halfplane_intersection": ["halfplane_intersection.cpp"], "computational_geometry/src/area_of_polygon": ["area_of_polygon.cpp", "AreaOfPolygon.java", "area_of_polygon.py", "area_of_polygon.c"], "computational_geometry/src/2d_separating_axis_test": ["sat.cpp"], "computational_geometry/src/axis_aligned_bounding_box_collision": ["axis_aligned_bounding_box_collision.cpp", "axis_aligned_bounding_box_collision.go"], "computational_geometry/src/graham_scan": ["graham_scan.cpp", "GrahamScan.java"], "computational_geometry/src/area_of_triangle": ["area_of_triangle.js", "AreaOfTriangle.java", "area_of_triangle.py", "area_of_triangle.cpp", "area_of_triangle.go", "area_of_triangle.c", "area_of_triangle.rs"], "computational_geometry/src/sutherland_hodgeman_clipping": ["README.md", "sutherland.cpp", "sutherland.c"], "computational_geometry/src/bresenham_line": ["bresenham_line.py", "bresenham_line.cpp"], "computational_geometry/src/quickhull": ["README.md", "test_data.csv", "test_data_soln.txt", "test_data_soln.png", "quickhull.hs", "quickhull.java", "quickhull.cpp"], "computational_geometry/test": ["README.md"], "numerical_analysis/runge_kutt/src": ["rk4.cpp", "rk4.py", "rk4.c"], "numerical_analysis/integral/src": ["integral_trapezoid.py", "integral_rectangle.c", "integral_trapezoid.c", "integral_rectangle.cpp", "integral_rectangle.py", "integral_trapezoid.cpp"], "numerical_analysis/monte_carlo/src": ["pi_montecarlo.py", "pi_monte_carlo.cpp", "integral_monte_carlo.cpp", "pi_montecarlo.c", "integral_montecarlo.c", "integral_montecarlo.py"], "selection_algorithms/src/median-of-medians": ["median_of_medians.c", "median_of_medians.py", "median_of_medians.hs"], "selection_algorithms/test": ["README.md"], "divide_conquer/src/karatsuba_multiplication": ["multiply.java"], "divide_conquer/src/warnock_algorithm": ["warnock_algorithm.pde"], "divide_conquer/src/x_power_y": ["x_power_y.c"], "divide_conquer/src/quick_sort": ["quick_sort.swift", "README.md", "quick_sort.cpp", "quick_sort_java", "quick_sort2.cpp", "quick_sort.hs", "quick_sort.rs", "quick_sort.py", "quick_sort.c"], "divide_conquer/src/merge_sort_using_divide_and_conquer": ["README.md", "merge_sort_using_divide_and_conquer.java", "inversions.c", "merge_sort_using_divide_and_conquer.cpp"], "divide_conquer/src/tournament_method_to_find_min_max": ["tournament_method_to_find_min_max.c"], "divide_conquer/src/closest_pair_of_points": ["closest_pair.cpp", "closest_pair.py"], "divide_conquer/src/inversion_count": ["count_inversions.c", "README.md", "inversion_count.py", "inversion_count.js", "inversion_count.java", "inversion_count.cpp"], "divide_conquer/test": ["README.md"], "search/src/interpolation_search": ["interpolation_search.php", "README.md", "interpolation_search.go", "interpolation_search.c", "interpolation_search.py", "interpolation_search.java", "interpolation_search.cpp"], "search/src/fuzzy_search": ["fuzzy_search.php", "fuzzy_search.js"], "search/src/ternary_search": ["Ternary_search.java", "ternary_search.go", "README.md", "ternary_search.js", "ternary_search.c", "ternary_search.py", "ternary_search.kt", "ternary_search.rs", "ternary_search.php", "ternary_search.cpp"], "search/src/linear_search": ["linear_search.py", "README.md", "linear_search.rb", "linear_search.nim", "linear_search.go", "linear_search.ml", "linear_search.hs", "linear_search.php", "linear_search.java", "linear_search.kt", "linear_search.js", "linear_search.clj", "linear_search.rs", "linear_search.cs", "linear_search.swift", "linear_search.scala", "SentinelLinearSearch.cpp", "linear_search.cpp", "linear_search.c"], "search/src/binary_search": ["binary_search.scala", "binary_search.php", "README.md", "binary_search.java", "binary_search.hs", "binary_search.cs", "binary_search.py", "binary_search.kt", "binary_search.cpp", "binary_search.go", "binary_search.rkt", "binary_search_2.cpp", "binary_search.swift", "binary_search.rb", "binary_search.js", "binary_search.c", "binary_search.rs", "binary_search.sh"], "search/src/exponential_search": ["README.md", "exponential_search.c", "exponential_search.js", "exponential_search.rs", "exponential_search.java", "exponential_search.php", "exponential_search.go", "exponential_search2.cpp", "exponential_search.rb", "exponential_search.cpp", "exponential_search2.py"], "search/src/jump_search": ["README.md", "jump_search.php", "jump_search.py", "jump_search.rs", "jump_search.java", "jump_search.swift", "jump_search.c", "jump_search.js", "jump_search.go", "jump_search.cpp"], "search/src/fibonacci_search": ["fibonacci_search.js", "fibonacci_search.py", "fibonacci_search.c", "fibonacci_search.swift", "fibonacci_search.cpp"], "search/test": ["README.md", "test_search.py", "test_search.cpp"], "cellular_automaton/src/von_neumann_cellular_automata": ["README.md"], "cellular_automaton/src/conways_game_of_life": ["life.py", "life.c", "README.md", "life.cpp", "life.rb", "conways_game_of_life.rb", "game_of_life_C_SDL.c", "GameOfLife.hs", "life.go", "Conway.java"], "cellular_automaton/src/langtons_ant": ["README.md", "LangtonAnt.py", "LangtonAnt.java", "LangtonAnt.html", "LangtonAnt.cpp"], "cellular_automaton/src/genetic_algorithm": ["genetic_algorithm.go", "genetic_algorithm2.py", "genetic_algorithm.js", "genetic.cpp", "genetic_algorithm.java", "genetic_algorithm.py"], "cellular_automaton/src/elementary_cellular_automata": ["README.md", "ElementaryCellularAutomaton.java"], "cellular_automaton/src/nobili_cellular_automata": ["README.md"], "cellular_automaton/src/brians_brain": ["README.md"], "cellular_automaton/test": ["README.md"], "greedy_algorithms/src/kruskal_minimum_spanning_tree": ["README.md", "kruskal.c", "kruskal.py", "kruskal.cpp"], "greedy_algorithms/src/huffman_coding": ["README.md", "huffman_coding.cpp", "huffman_coding.py"], "greedy_algorithms/src/activity_selection": ["README.md", "activity_selection.py", "activity_selection.cpp", "activity_selection.java"], "greedy_algorithms/src/dijkstra_shortest_path": ["README.md", "dijkstra_shortest_path.java", "dijkstra-shortest-path.cpp", "dijkstra_shortest_path.py", "dijkstra_shortest_path.c"], "greedy_algorithms/src/job_sequencing": ["README.md", "job_sequencing.py", "job_sequencing.cpp"], "greedy_algorithms/src/k_centers": ["README.md", "k_centers.py"], "greedy_algorithms/src/fractional_knapsack": ["fractional_knapsack.go", "fractional_knapsack.cs", "README.md", "fractional_knapsack.c", "fractional_knapsack.cpp", "fractional_knapsack.py", "fractional_knapsack.java"], "greedy_algorithms/src/prim_minimum_spanning_tree": ["prim_minimum_spanning_tree.hs", "prim_minimum_spanning_tree.py", "README.md", "prim_minimum_spanning_tree.cpp"], "greedy_algorithms/src/hillclimber": ["Hillclimber.java"], "greedy_algorithms/src/egyptian_fraction": ["egyptian_fraction.py", "egyptian_fraction.c", "egyptian_fraction.cpp"], "greedy_algorithms/src/warshall": ["warshalls.c"], "greedy_algorithms/src/minimum_coins": ["minimum_coins.py", "README.md", "minimum_coins.c", "minimum_coins.cpp", "MinimumCoins.hs", "MinimumCoins.java", "minimum_coins.go", "minimum-coins.js"], "greedy_algorithms/test/kruskal_minimum_spanning_tree": ["test_kruskal.cpp"], "dynamic_programming/src/longest_palindromic_substring": ["README.md", "longest_palindromic_substring.cpp"], "dynamic_programming/src/shortest_common_supersequence": ["README.md", "SCS.java", "shortest_common_supersequence.cpp", "shortest_common_supersequence.py"], "dynamic_programming/src/maximum_weight_independent_set_of_path_graph": ["maximum_weight_independent_set_of_path_graph.cpp"], "dynamic_programming/src/weighted_job_scheduling": ["README.md", "weighted_job_scheduling.cpp"], "dynamic_programming/src/no_consec_ones": ["no_consec_ones.py", "README.md", "no_consec_1.cpp"], "dynamic_programming/src/Optimal_Binary_Search_Tree": ["Optimal_BST.py"], "dynamic_programming/src/coin_change": ["README.md", "coin_change.py", "coin_change.java", "coinchange.go", "coinchange.cpp", "coinchange.c", "mincoinchange.cpp"], "dynamic_programming/src/longest_common_substring": ["longest_common_substring.cpp"], "dynamic_programming/src/knapsack": ["README.md", "knapsack.js", "Knapsack.java", "knapsack.c", "knapsack.go", "knapsack.py", "knapsack.cpp"], "dynamic_programming/src/edit_distance": ["README.md", "edit_distance.java", "edit_distance_backtracking.cpp", "edit_distance.go", "edit_distance_hirschberg.cpp", "edit_distance.py", "edit_distance.c", "edit_distance.hs", "edit_distance.cpp"], "dynamic_programming/src/boolean_parenthesization": ["boolean_parenthesization.cpp", "README.md", "boolean_parenthesization.java", "boolean_parenthesization.c", "boolean_parenthesization.py", "boolean_parenthesization.swift"], "dynamic_programming/src/maximum_sum_sub_matrix": ["maximum_sum_sub_matrix.java", "maximum_sum_sub_matrix.cpp"], "dynamic_programming/src/maximum_sum_increasing_subsequence": ["README.md", "maximum_sum_increasing_subsequence.c"], "dynamic_programming/src/factorial": ["factorial.scala", "factorial.go", "factorial.java", "factorial.rs", "factorial.exs", "factorial.py", "factorial.c"], "dynamic_programming/src/binomial_coefficient": ["binomial_coefficient.py", "README.md", "binomial_coefficient.cpp", "binomial_coefficient.js", "binomial_coefficient.c", "binomial_coefficient.java"], "dynamic_programming/src/longest_common_increasing_subsequence": ["longest_common_increasing_subsequence.cpp"], "dynamic_programming/src/palindrome_partition": ["README.md", "palindrome_partition.js", "palindrome_partition.cpp"], "dynamic_programming/src/longest_palindromic_sequence": ["longest_palindromic_sequence.c", "README.md", "longest_palindromic_sequence.py", "longest_palindromic_sequence.js", "longest_palindromic_sequence.cpp"], "dynamic_programming/src/egg_dropping_puzzle": ["README.md", "egg_dropping_puzzle.hs", "egg_dropping_puzzle.py", "egg_dropping_puzzle.c", "egg_dropping_puzzle.cpp"], "dynamic_programming/src/matrix_chain_multiplication": ["README.md", "matrix_chain_multiplication.c", "matrix_chain_multiplication.cpp", "MatrixChainMultiplication.java", "matrix_chain_multiplication.py"], "dynamic_programming/src/box_stacking": ["README.md", "box_stacking.cpp", "box_stacking.java", "box_stacking.py"], "dynamic_programming/src/longest_independent_set": ["README.md"], "dynamic_programming/src/minimum_insertion_palindrome": ["minimum_insertions_palindrome_using_lcs.cpp"], "dynamic_programming/src/longest_increasing_subsequence": ["longest_increasing_subsequence.c", "README.md", "longest_increasing_subsequence_using_segment_tree.cpp", "longest_increasing_subsequence.go", "longest_increasing_subsequence.js", "longest_increasing_subsequence.cpp", "longest_increasing_subsequence.java", "longest_increasing_subsequence.py"], "dynamic_programming/src/Array_Median": ["Median.java", "median.cpp", "median.py", "median.rs", "median.rb", "median.c", "median.php"], "dynamic_programming/src/tiling_problem": ["README.md", "tiling.c", "tiling.py", "tiling.cpp"], "dynamic_programming/src/largest_sum_contiguous_subarray": ["README.md", "largest_sum_contiguous_subarray.go", "largest_sum_contiguous_subarray.java", "largest_sum_contiguous_subarray.py", "largest_sum_contiguous_subarray.c", "largest_sum_contiguous_subarray.hs", "largest_sum_contiguous_subarray.cpp"], "dynamic_programming/src/minimum_cost_polygon_triangulation": ["README.md"], "dynamic_programming/src/min_cost_path": ["README.md", "min_cost_path.py", "min_cost_path.cpp", "min_cost_path.c", "min_cost_path.java"], "dynamic_programming/src/subset_sum": ["subset_sum.cpp", "README.md", "subset_sum.java", "subset_sum.go", "subset_sum.py"], "dynamic_programming/src/longest_common_subsequence": ["README.md", "Longest_Common_Subsequence.py", "longestCommonSubsequence.go", "longest_common_subsequence.cpp", "LongestCommonSubsequence.java", "LongestCommonSubsequenceRec.java"], "dynamic_programming/src/rod_cutting": ["rod_cutting.cpp", "README.md", "rod_cutting.hs", "rod_cutting.py", "rod_cutting.c"], "dynamic_programming/src/numeric_keypad_problem": ["numeric_keypad_problem.cpp"], "dynamic_programming/src/longest_bitonic_sequence": ["README.md", "longestBitonicSeq.cpp", "longest_bitonic_sequence.c", "longest_bitonic_sequence.py", "longestBitonicSequence.java", "longest_bitonic_sequence.js"], "dynamic_programming/test/subset_sum": ["test_subset_sum.cpp"], "online_challenges/src/project_euler/problem_002": ["README.md", "problem_002.cpp", "problem_002.py", "problem_002.js"], "online_challenges/src/project_euler/problem_036": ["problem_036.py", "README.md", "problem_036.cpp"], "online_challenges/src/project_euler/problem_016": ["README.md", "problem_016.py"], "online_challenges/src/project_euler/problem_003": ["README.md", "problem_003.py", "problem_003.cpp"], "online_challenges/src/project_euler/problem_025": ["README.md", "problem_025.py"], "online_challenges/src/project_euler/problem_007": ["README.md", "problem_007.cpp"], "online_challenges/src/project_euler/problem_008": ["README.md", "problem_008.py"], "online_challenges/src/project_euler/problem_004": ["README.md", "problem_004.cpp", "problem_004.py"], "online_challenges/src/project_euler/problem_028": ["README.md", "problem_028.py", "problem_028.cpp"], "online_challenges/src/project_euler/problem_006": ["README.md", "problem_006.cpp", "problem_006.py"], "online_challenges/src/project_euler/problem_010": ["README.md", "problem_010.cpp"], "online_challenges/src/project_euler/problem_102": ["README.md", "problem_102.cpp", "triangles.txt"], "online_challenges/src/project_euler/problem_001": ["README.md", "problem_001.py", "problem_001.js", "problem_001.cpp"], "online_challenges/src/project_euler/problem_005": ["README.md", "problem_005.cpp"], "online_challenges/src/project_euler/problem_009": ["README.md", "problem_009.cpp"], "online_challenges/src/project_euler/problem_014": ["README.md", "problem_014.cpp"], "online_challenges/src/rosalind/complement_dna_strand": ["complement_dna_strand.exs"], "online_challenges/test": ["README.md"], "operating_system/src/scheduling/shortest_seek_time_first": ["shortest_seek_time_first.c", "shortest_seek_time_first.cpp"], "operating_system/src/scheduling/multi_level_feedback_queue_scheduling": ["mlfq.ts"], "operating_system/src/scheduling/smallest_remaining_time_first": ["srtf.c"], "operating_system/src/scheduling/round_robin_scheduling/round_robin_c": ["README.md", "queue.h", "round_robin.c", "queue.c"], "operating_system/src/scheduling/first_come_first_serve": ["fcfs.java", "fcfs.cpp", "fcfs.py", "fcfs.rs", "fcfs.cs"], "operating_system/src/memory_management/least_recently_used": ["lru.c"], "operating_system/src/shell/C": ["README.md", "Shell.c", "Makefile"], "operating_system/src/deadlocks/bankers_algorithm": ["banker_safety.cpp"], "operating_system/src/concurrency/readers_writers": ["readers_writers.cpp"], "operating_system/src/concurrency/dining_philosophers": ["README.md", "dining_philosophers.c"], "operating_system/src/concurrency/monitors/monitors_system_v": ["main.c", "monitors.c", "monitor.h"], "operating_system/src/concurrency/peterson_algorithm_for_mutual_exclusion/peterson_algorithm_in_c": ["peterson_algo_mutual_exclusion_in_c.c", "mythreads.h"], "operating_system/src/concurrency/producer_consumer": ["producer_consumer.cpp"], "operating_system/test": ["README.md"], "networking/src/validate_IP": ["is_valid_ip.php", "README.md", "validate_ip.sh", "validate_ipv4.js", "validate_ipv4.py", "ipv4_check.go", "Validate_connection_ipv4.py", "validate_ip.rb", "validate_ip.c"], "networking/src/determine_endianess": ["determine_endianess.c"], "networking/test": ["README.md"], "data_structures/src/list/singly_linked_list/operations/find": ["SearchElement_list.java"], "data_structures/src/list/singly_linked_list/operations/detect_cycle": ["detect_cycle.cpp"], "data_structures/src/list/singly_linked_list/operations/sort": ["bubble_sort.cpp"], "data_structures/src/list/singly_linked_list/operations/delete": ["delete_node_with_key.java"], "data_structures/src/list/singly_linked_list/operations/merge_sorted": ["merge_sorted.cpp"], "data_structures/src/list/singly_linked_list/operations/reverse": ["reverse.cpp", "reverse_recursion2.cpp", "reverse_iteration.cpp", "reverse.c", "reverse_recursion.cpp"], "data_structures/src/list/singly_linked_list/operations/print_reverse": ["print_reverse.py", "print_reverse.scala"], "data_structures/src/list/singly_linked_list/operations/push": ["push.cpp"], "data_structures/src/list/singly_linked_list/operations/unclassified": ["LinkedList.java", "union_intersection_in_list.textClipping", "linked_List_Operations.cpp", "union_intersection_in_list.c"], "data_structures/src/list/singly_linked_list/operations/n_th_node_linked_list": ["nth_node_from_end.cpp", "nth_node_from_end.c"], "data_structures/src/list/singly_linked_list/operations/rotate": ["rotate.cpp"], "data_structures/src/list/xor_linked_list": ["README.md", "xor_linked_list.cpp"], "data_structures/src/list/skip_list": ["skip_list.java", "README.md", "skip_list.swift", "skip_list.cpp", "skip_list.c", "skip_list.scala"], "data_structures/src/list/doubly_linked_list/C": ["doubly_linked_list.h", "doubly_linked_list.c"], "data_structures/src/list/circular_linked_list/operations": ["has_loop.py", "is_circular.py"], "data_structures/src/tree/b_tree/b_tree/b_tree_C": ["README.md", "main.c", "btree.h", "btree.c"], "data_structures/src/tree/b_tree/two_three_tree": ["TwoThreeTree.scala"], "data_structures/src/tree/binary_tree/treap": ["treap.swift", "treap.java", "treap.scala", "persistent_treap.kt", "treap.cpp"], "data_structures/src/tree/binary_tree/aa_tree": ["README.md", "aa_tree.cpp"], "data_structures/src/tree/binary_tree/binary_tree/convert_to_doubly_linked_list": ["convert_to_doubly_linked_list.cpp"], "data_structures/src/tree/binary_tree/binary_tree/diameter": ["diameter.py", "README.md", "diameter2.c", "diameter.java", "diameter2.cpp", "diameter.hs", "diameter.cpp", "diameter.c"], "data_structures/src/tree/binary_tree/binary_tree/minimum_height": ["minimum_height.cpp", "minimum_height.java", "README.md", "minimum_height.py", "minimum_height.c"], "data_structures/src/tree/binary_tree/binary_tree/is_binary_tree": ["is_binary_tree.cpp"], "data_structures/src/tree/binary_tree/binary_tree/is_balance": ["README.md", "is_balance.java"], "data_structures/src/tree/binary_tree/binary_tree/node": ["node.cpp"], "data_structures/src/tree/binary_tree/binary_tree/serializer": ["serializer.cpp"], "data_structures/src/tree/binary_tree/binary_tree/tree/bottom_view_binary_tree": ["bottom_view_tree.java", "bottom_view_tree.cpp"], "data_structures/src/tree/binary_tree/binary_tree/make_binary_tree/from_inorder_and_preorder": ["README.md", "make_tree_from_inorder_and_preorder.c", "make_tree_from_inorder_and_preorder.java", "make_tree_from_inorder_and_preorder.cpp"], "data_structures/src/tree/binary_tree/binary_tree/maximum_height": ["README.md", "maximum_height.py", "maximum_height.java", "maximum_height2.cpp", "maximum_height.cpp"], "data_structures/src/tree/binary_tree/binary_tree/make_mirror_tree": ["README.md", "make_mirror_tree.c", "make_mirror_tree.py", "make_mirror_tree.cpp"], "data_structures/src/tree/binary_tree/binary_tree/is_same": ["is_same.cpp"], "data_structures/src/tree/binary_tree/binary_tree/traversal/inorder/right_threaded": ["right_threaded.cpp"], "data_structures/src/tree/binary_tree/binary_tree/traversal/zigzag": ["zigzag.cpp"], "data_structures/src/tree/binary_tree/binary_tree/traversal/preorder/right_view": ["right_view2.cpp", "README.md", "right_view.py", "right_view.cpp"], "data_structures/src/tree/binary_tree/binary_tree/traversal/preorder/left_view": ["left_view.java"], "data_structures/src/tree/binary_tree/binary_tree/path_sum/sum_left": ["sum_left.c", "README.md"], "data_structures/src/tree/binary_tree/rope": ["rope.py"], "data_structures/src/tree/binary_tree/avl_tree": ["avl_tree.cpp", "avl_tree.java", "avl_tree.swift", "avl_tree.c"], "data_structures/src/tree/tree/trie": ["trie.go", "README.md", "trie.scala", "trie.py", "trie.rb", "trie.cpp", "trie.c", "trie.java", "trie.cs", "trie.swift"], "data_structures/src/tree/tree/suffix_array": ["suffix_array.cpp"], "data_structures/src/tree/heap/min_heap": ["min_heap.rb", "min_heap.py", "min_heap.c", "min_heap.java", "min_heap.cpp", "min_heap.swift", "min_heap.js"], "data_structures/src/tree/heap/soft_heap": ["soft_heap.cpp"], "data_structures/src/tree/heap/max_heap": ["max_heap.cpp", "max_heap.java", "max_heap.c", "max_heap.go", "max_heap.py"], "data_structures/src/tree/heap/priority_queue/leftist_tree": ["leftist_priority_queue.cpp"], "data_structures/src/tree/heap/binomial_heap": ["binomial_heap.scala", "binomial_heap.c", "binomial_heap.cpp"], "data_structures/src/tree/heap/pairing_heap": ["README.md", "pairing_heap.fs", "pairing_heap.sml"], "data_structures/src/tree/segment_tree": ["segment_Tree_rmq.adb"], "data_structures/src/tree/space_partitioning_tree/quad_tree": ["quad_tree.swift"], "data_structures/src/tree/space_partitioning_tree/kd_tree": ["kd_tree.java", "kd_tree.cpp"], "data_structures/src/tree/space_partitioning_tree/interval_tree": ["interval_tree.java", "README.md", "interval_tree.cpp"], "data_structures/src/tree/space_partitioning_tree/segment_tree": ["segment_tree.scala", "persistent_segment_tree_sum.cpp", "README.md", "segment_tree.java", "segment_tree_kth_statistics_on_segment.cpp", "segment_tree_sum.go", "segment_tree_sum.py", "segment_tree_rmq.cpp", "segment_tree_rmq.py", "lazy_segment_tree.java", "segment_tree_lazy_propagation.cpp", "segment_tree_rmq.go", "segment_tree_sum.rb", "segment_tree_sum.cpp"], "data_structures/src/tree/multiway_tree/splay_tree": ["splay_tree.cpp", "readme.md", "splay_tree.scala", "splay_tree.go", "splay_tree.kt", "splay_tree.java"], "data_structures/src/tree/multiway_tree/fenwick_tree": ["fenwick_tree.cpp", "README.md", "fenwick_tree.java", "fenwick_tree_inversion_count.cpp", "fenwick_tree.pl", "fenwick_tree.go", "fenwick_tree.py", "fenwick_tree.c"], "data_structures/src/tree/multiway_tree/van_emde_boas_tree": ["van_emde_boas.cpp"], "data_structures/src/tree/multiway_tree/union_find": ["README.md", "union_find.java", "union_find.scala", "union_find.go", "union_find.js", "union_find.py", "union_find_dynamic.cpp", "union_find.cpp", "union_find.c"], "data_structures/src/tree/multiway_tree/red_black_tree": ["red_black_tree.cpp", "red_black_tree.rb", "red_black_tree.test.cpp", "red_black_tree.java", "red_black_tree.c", "red_black_tree.scala", "red_black_tree.h"], "data_structures/src/hashs/hash_table": ["hash_table.js", "hash_table.go", "README.md", "double_hashing.c", "hash_table.java", "hash_table.c", "hash_table.cpp", "hash_table.rs", "hash_table.cs", "hash_table.swift", "hash_table.py"], "data_structures/src/hashs/bloom_filter": ["bloom_filter.js", "bloomFilter.go", "README.md", "bloom_filter.swift", "bloom_filter.py", "bloom_filter.cpp", "bloom_filter.java", "bloom_filter.c", "bloom_filter.scala"], "data_structures/src/bag": ["bag.java", "bag.py", "bag.js"], "data_structures/src/stack/postfix_evaluation": ["README.md", "postfix_evaluation.sh", "postfix_evaluation.py", "postfix_evaluation.c"], "data_structures/src/stack/balanced_expression": ["balanced_expression.java"], "data_structures/src/stack/sort_stack": ["README.md", "sort_stack.cpp", "sort_stack.py", "sort_stack.c"], "data_structures/src/stack/infix_to_postfix": ["infix_to_postfix.java", "infix_to_postfix.cpp", "README.md", "infix_to_postfix.py", "infix_to_postfix.c"], "data_structures/src/stack/stack": ["stack.rs", "README.md", "stack.py", "stack.cs", "stack.php", "stack.js", "stack.rb", "stack.c", "stack.erl", "stack.go", "stack.java", "stack.swift", "stack.ex", "stack.cpp"], "data_structures/src/stack/reverse_stack": ["reverse_stack.cs", "README.md", "reverse_stack.go", "reverse_stack_without_extra_space.cpp", "reverse_stack.c", "reverse_stack.java", "reverse_stack.py", "reverse_stack.swift"], "data_structures/src/stack/abstract_stack/cpp/arrayStack": ["arraystackTester.cpp", "ArrayStack.h"], "data_structures/src/stack/prefix_to_postfix": ["README.md", "prefix_to_postfix.py"], "data_structures/src/queue/queue_stream": ["queue_stream.cs"], "data_structures/src/queue/queue_using_stack": ["queue_using_stack.cpp", "queue_using_stack.sh", "queue_using_stack.java"], "data_structures/src/queue/circular_buffer": ["circular_buffer.py", "circular_buffer.cpp"], "data_structures/src/queue/reverse_queue": ["reverse_queue.java", "reverse_queue.py", "reverse_queue.cpp", "reverse_queue.go", "reverse_queue.swift"], "data_structures/src/queue/queue_using_linked_list": ["README.md", "queue_using_linked_list.java", "queue_using_linked_list.rb", "queue_using_linked_list.py", "queue_using_linked_list.cpp", "queue_using_linked_list.c"], "data_structures/src/queue/queue": ["queue_vector.cpp", "README.md", "queue.exs", "queue.swift", "queue.cpp", "queue.go", "queue.cs", "queue.py", "queue.rb", "queue.java", "queue.c", "queue.js"], "data_structures/src/other": ["README.md"], "data_structures/test/list": ["test_list.cpp"], "data_structures/test/tree/binary_tree/binary_tree/diameter": ["test_diameter.cpp"], "data_structures/test/tree/binary_tree/binary_tree/is_same": ["test_is_same.cpp"], "data_structures/test/tree/binary_tree/binary_tree/path_sum": ["test_path_sum_for_sum_of_part_paths.cpp", "test_path_sum_for_whole_paths.cpp", "test_path_sum_for_sum_of_whole_paths.cpp"], "data_structures/test/tree/multiway_tree/union_find": ["test_union_find.cpp"], "data_structures/test/tree/multiway_tree/red_black_tree": ["test_red_black.c"], "randomized_algorithms/src/reservoir_sampling": ["reservoir_sampling.rs", "README.md", "reservoir_sampling.cpp"], "randomized_algorithms/src/karger_minimum_cut_algorithm": ["README.md", "karger_minimum_cut_algorithm.cpp"], "randomized_algorithms/src/random_node_linkedlist": ["README.md"], "randomized_algorithms/src/randomized_quick_sort": ["randomized_quicksort.c"], "randomized_algorithms/src/random_from_stream": ["Random_number_selection_from_a_stream.cpp"], "randomized_algorithms/src/shuffle_an_array": ["shuffle_library.rb", "shuffle_an_array.java", "README.md", "shuffle_an_array.rb", "shuffle_an_array.py", "shuffle_an_array.php", "shuffle_an_array.cpp", "shuffle_an_array.js", "shuffle_an_array.rs"], "randomized_algorithms/src/kth_smallest_element_algorithm": ["README.md", "kth_smallest_element_algorithm.cpp", "kth_smallest_element_algorithm.c"], "randomized_algorithms/test": ["README.md"], "mathematical_algorithms/src/convolution": ["convolution.cpp"], "mathematical_algorithms/src/fast_fourier_transform": ["fast_fourier_transform.java"], "mathematical_algorithms/src/add_polynomials": ["README.md", "add_polynomials.go", "add_polynomials.c", "add_polynomials.cpp"], "mathematical_algorithms/src/2sum": ["2sum.js", "2sum.py", "2sum.cpp", "2sum.rs", "2sum.java", "2sum.c", "2sum.go", "2sum.rb"], "mathematical_algorithms/src/karatsuba_multiplication": ["karatsuba_multiplication.java"], "mathematical_algorithms/src/replace_0_with_5": ["replace_0_with_5.go", "replace_0_with_5.cpp", "replace_0_with_5.py", "replace_0_with_5.java", "replace_0_with_5.c", "0_to_5_efficent.cpp", "replace_0_with_5.js"], "mathematical_algorithms/src/armstrong_numbers": ["README.md", "armstrong_numbers.rb", "armstrong_numbers.c", "armstrong_numbers.js", "armstrong_numbers.go", "armstrong_numbers.java", "armstrong_number.php", "armstrong_numbers.py", "armstrong_numbers.cpp", "armstrong_numbers.cs"], "mathematical_algorithms/src/sieve_of_eratosthenes": ["sieve_of_eratosthenes_linear.cpp", "sieve_of_eratosthenes.php", "README.md", "sieve_of_eratosthenes.c", "sieve_of_eratosthenes_compact.cpp", "sieve_of_eratosthenes.java", "sieve_of_eratosthenes.go", "sieve_of_eratosthenes.hs", "sieve_of_eratosthenes.cs", "sieve_of_eratosthenes.cpp", "sieve_of_eratosthenes.js", "sieve_of_eratosthenes.py"], "mathematical_algorithms/src/euler_totient": ["README.md", "euler_totient.py", "euler_totient_sieve.cpp", "euler_totient.c", "euler_totient_sieve.py", "euler_totient.java", "euler_totient.cpp"], "mathematical_algorithms/src/fibonacci_number": ["fibonacci_number.cs", "fibonacci_number.hs", "README.md", "fibonacci_number.java", "fibonacci_memorized.swift", "fibonacci_number.cpp", "fibonacci_matrix_exponentiation.cpp", "fibonacci_for_big_numbers.cpp", "fibonacci_number.erl", "fast_fibonacci.c", "fibonacci_number.rs", "fibonacci_number.ex", "fibonacci_lucas.py", "fibonacci_number.scala", "fibonacci_number.swift", "fibonacci_number.go", "fibonacci_number.rb", "fibonacci_number.c", "fibonacci_matrix_multiplication.py", "fibonacci_number.php", "fibonacci_number.js", "fibonacci_number.clj", "fibonacci_number.py"], "mathematical_algorithms/src/horner_polynomial_evaluation": ["README.md", "horner_polynomial_evaluation.cpp", "horner_polynomial_evaluation.java"], "mathematical_algorithms/src/russian_peasant_multiplication": ["russian_peasant_multiplication.cs", "README.md", "russian_peasant_multiplication.js", "russian_peasant_multiplication.rs", "russian_peasant_multiplication.c", "russian_peasant_multiplication.py", "russian_peasant_multiplication.go", "russian_peasant_multiplication.php", "russian_peasant_multiplication.cpp"], "mathematical_algorithms/src/babylonian_method": ["README.md", "babylonian_method.go", "babylonian_method.cpp", "babylonian_method.java", "babylonian_method.c", "Babylonian_method.py", "babylonian_method.js"], "mathematical_algorithms/src/fast_inverse_sqrt": ["fast_inverse_sqrt.cpp"], "mathematical_algorithms/src/sieve_of_atkin": ["sieve_of_atkin.cpp", "sieve_of_atkin.c", "sieve_of_atkin.py", "sieve_of_atkin.java"], "mathematical_algorithms/src/permutation_lexicographic_order": ["permutation_lexicographic_order.cpp", "README.md"], "mathematical_algorithms/src/segmented_sieve_of_eratosthenes": ["segmented_sieve_of_eratosthenes.cpp"], "mathematical_algorithms/src/std": ["std.py", "std.c", "std.go", "std.cpp", "std.js"], "mathematical_algorithms/src/gcd_and_lcm": ["gcd_and_lcm.cpp", "gcd_and_lcm.java", "gcd_and_lcm.js", "gcd_and_lcm.c", "gcd_and_lcm.cs", "gcd_and_lcm.scala", "gcd_and_lcm.py", "gcd_and_lcm.ex", "gcd_and_lcm.php", "gcd_and_lcm.go", "gcd_and_lcm.erl"], "mathematical_algorithms/src/amicable_numbers": ["amicable_numbers.cpp", "amicable_numbers.py", "amicable_numbers.rs", "amicable_numbers.rb", "amicable_numbers.c", "amicable_numbers.cs", "amicable_numbers.js", "amicable_numbers.go", "amicable_numbers.java"], "mathematical_algorithms/src/lucas_theorem": ["lucas_theorem.cpp"], "mathematical_algorithms/src/sum_of_digits": ["sum_of_digits.java", "sum_of_digits.swift", "sum_of_digits_with_recursion.c", "sum_of_digits.php", "sum_of_digits.c", "sum_of_digits.rs", "sum_of_digits.rb", "sum_of_digits.py", "sum_of_digits.cs", "sum_of_digits.ex", "sum_of_digits.js", "sum_of_digits.go", "sum_of_digits.cpp"], "mathematical_algorithms/src/pandigital_number": ["README.md", "pandigital_number.rb", "pandigital_number.c"], "mathematical_algorithms/src/next_larger_number": ["next_larger_number.cpp", "next_larger_number.php", "next_larger_number.py", "next_larger_number.java"], "mathematical_algorithms/src/tridiagonal_matrix": ["README.md", "tridiagonal_matrix.java"], "mathematical_algorithms/src/gaussian_elimination": ["gaussian_elimination.java", "gaussian_elimination.cpp"], "mathematical_algorithms/src/shuffle_array": ["README.md", "shuffle_array.js", "shuffle_array.rb", "shuffle_array.cpp"], "mathematical_algorithms/src/newton_polynomial": ["newton_polynomial.java", "README.md"], "mathematical_algorithms/src/average_stream_numbers": ["README.md", "average_stream_numbers.c", "average_stream_numbers.py", "average_stream_numbers.cpp", "average_stream_numbers.go"], "mathematical_algorithms/src/delannoy_number": ["README.md", "delannoy_number.c", "delannoy_number.cpp"], "mathematical_algorithms/src/magic_square": ["README.md", "magic_square.py"], "mathematical_algorithms/src/check_is_square": ["check_is_square.go", "check_is_square.cpp", "check_is_square.swift", "check_is_square.cs", "check_is_square.scala", "check_is_square.java", "check_is_square.ruby", "check_is_square.php", "check_is_square.py", "check_is_square.js", "check_is_square.rs", "check_is_square.c"], "mathematical_algorithms/src/largrange_polynomial": ["README.md", "lagrange_polynomial.java"], "mathematical_algorithms/src/poisson_sample": ["poisson_sample.py"], "mathematical_algorithms/src/divided_differences": ["README.md", "divided_differences.java"], "mathematical_algorithms/src/factorial": ["factorial.scala", "factorial.hs", "factorial_iteration.js", "factorial.go", "factorial.clj", "factorial.ex", "factorial.rb", "factorial_recursion.cs", "factorial_iteration.py", "factorial_recursion.c", "factorial_recursion.cpp", "factorial.java", "factorial_iteration.c", "factorial.swift", "factorial.rs", "factorial.erl", "factorial-hrw.py", "factorial_recursion.py", "factorial_iteration.cs", "factorial.c", "factorial.php", "factorial_recursion.js"], "mathematical_algorithms/src/decoding_of_string": ["README.md"], "mathematical_algorithms/src/binomial_coefficient": ["binomial_coefficient.py", "README.md", "binomial_coefficient.cpp", "binomial_coefficient.c", "binomial_coefficient.java", "binomial_coefficient.go"], "mathematical_algorithms/src/lucky_number": ["README.md", "lucky_number.java", "lucky_number.c"], "mathematical_algorithms/src/integer_conversion": ["decimal_to_bin.cpp", "decimal_to_any_base.py", "decimal_to_int.go", "decimal_to_any_base.js", "decimal_to_hex.cpp", "decimal_to_oct.cpp"], "mathematical_algorithms/src/pythagorean_triplet": ["pythagorean_triplet.cpp"], "mathematical_algorithms/src/reverse_number": ["reverse_number.cpp", "reverse_number.rb", "reverse_number.cs", "reverse_number.swift", "reverse_number_recursion.java", "reverse_number.py", "reverse_number.js", "reverse_number.go", "Reverse_a_number.c", "reverse_number.java", "reverse_number.hs", "reverse_number.php", "reverse_number.c"], "mathematical_algorithms/src/steepest_descent": ["steepest_descent.cpp"], "mathematical_algorithms/src/primality_tests/fermat_primality_test": ["fermat_primality_test.c"], "mathematical_algorithms/src/primality_tests/solovay-strassen_primality_test": ["solovay-strassen_primality_test.cpp"], "mathematical_algorithms/src/primality_tests/miller_rabin_primality_test": ["miller_rabin_primality_test.cpp", "miller_rabin_primality_test.py"], "mathematical_algorithms/src/catalan_number": ["README.md", "catalan_number.js", "catalan_number_recursive.cpp", "catalan_number.py", "catalan_number.rb", "catalan_number_dynamic.cpp", "catalan_number.java", "catalan_number2.py", "catalan_number.scala", "catalan_number.c"], "mathematical_algorithms/src/newton_raphson_method": ["README.md", "newton_raphson.cpp", "newton_raphson.c", "newton_raphson.php"], "mathematical_algorithms/src/integer_to_roman": ["integer_to_roman.cpp", "integer_to_roman.py", "integer_to_roman.js"], "mathematical_algorithms/src/reverse_factorial": ["README.md", "reverse_factorial.go", "reverse_factorial.java", "reverse_factorial.py", "reverse_factorial.c", "reverse_factorial.js", "reverse_factorial.rb"], "mathematical_algorithms/src/derangements": ["derangements.c"], "mathematical_algorithms/src/automorphic_numbers": ["README.md", "automorphic_numbers.swift", "automorphic_numbers.cpp", "automorphic_numbers.go", "automorphic_numbers.php", "automorphic_numbers.rb", "automorphic_numbers.py", "automorphic_numbers.hs", "automorphic_numbers.js", "automorphic_numbers.java", "automorphic_numbers.c", "automorphic_numbers.cs"], "mathematical_algorithms/src/tower_of_hanoi": ["tower_of_hanoi.rs", "tower_of_hanoi.cpp", "README.md", "tower_of_hanoi.go", "tower_of_hanoi_binary_solution.c", "tower_of_hanoi.c", "tower_of_hanoi.ml", "tower_of_hanoi.java", "tower_of_hanoi.hs", "tower_of_hanoi.scala", "tower_of_hanoi.py", "tower_of_hanoi_iterative.c", "tower_of_hanoi.js"], "mathematical_algorithms/src/greatest_digit_in_number": ["greatest_digit_in_number.py", "greatest_digit_in_number.c", "greatest_digit_in_number.rb", "greatest_digit_in_number.js", "greatest_digit_in_number.cpp", "greatest_digit_in_number.java", "greatest_digit_in_number.cs", "greatest_digit_in_number.hs", "greatest_digit_in_number.php"], "mathematical_algorithms/src/count_digits": ["count_digits.py", "count_digits.cpp", "count_digits.js", "counts_digits.rb", "count_digits.c", "count_digits.java", "count_digits.go", "count_digits.cs", "count_digits.swift", "count_digits.hs"], "mathematical_algorithms/src/prime_numbers_of_n": ["README.md", "prime_numbers_of_n.cpp", "prime_numbers_of_n.c", "prime_numbers_of_n.py"], "mathematical_algorithms/src/lexicographic_string_rank": ["README.md", "lexicographic_string_rank.cpp", "lexicographic_string_rank.java", "lexicographic_string_rank.py", "lexicographic_string_rank.c"], "mathematical_algorithms/src/taxicab_numbers": ["taxicab_numbers.py"], "mathematical_algorithms/src/multiply_polynomial": ["README.md", "multiply_polynomial.cpp"], "mathematical_algorithms/src/count_trailing_zeroes": ["count_trailing_zeroes_factorial.py", "count_trailing_zeroes_factorial.js", "count_trailing_zeroes_factorial.java", "count_trailing_zeroes.c", "count_trailing_zeroes.scala", "count_trailing_zeroes_factorial.cpp"], "mathematical_algorithms/src/log_of_factorial": ["log_of_factorial.cpp", "log_of_factorial.py", "log_of_factorial.c"], "mathematical_algorithms/src/diophantine": ["diophantine.cpp"], "mathematical_algorithms/src/coprime_numbers": ["coprime_numbers.cpp", "coprime_numbers.go", "coprime_numbers.c", "coprime_numbers.py", "coprime_numbers.rb", "coprime_numbers.rs", "coprime_numbers.cs", "coprime_numbers.js"], "mathematical_algorithms/src/hill_climbing": ["hill_climbing.java"], "mathematical_algorithms/src/fermats_little_theorem": ["fermats_little_theorem.py", "fermats_little_theorem.cpp"], "mathematical_algorithms/src/exponentiation_power/exponentiation_by_squaring": ["exponentiation_by_squaring.cpp", "exponentiation_by_squaring.py", "exponentiation_by_squaring.go", "exponentiation_by_squaring.c"], "mathematical_algorithms/src/smallest_digit_in_number": ["smallest_digit_in_number.js", "smallest_digit_in_number.rb", "smallest_digit_in_number.php", "smallest_digit_in_number.py", "smallest_digit_in_number.cpp", "smallest_digit_in_number.c", "smallest_digit_in_number.java", "Smallest_digit_in_number.hs"], "mathematical_algorithms/src/tribonacci_numbers": ["tribonacci_numbers.java", "tribonacci_numbers.cpp", "tribonacci_numbers.go", "tribonacci_numbers.py", "tribonacci_numbers.rs", "Tribonnaci.java", "tribonacci_numbers.c"], "mathematical_algorithms/src/simpsons_rule": ["simpsons_rule.py"], "mathematical_algorithms/src/perfect_number": ["README.md", "perfect_number.java", "perfect_number_list.cpp", "perfect_number.cpp", "perfect_number.py", "perfect_number.php", "perfect_number.hs", "perfect_number.js", ".gitignore", "perfect_number.rs", "perfect_number.rb", "perfect_number.c"], "mathematical_algorithms/src/prime_factors": ["sum_of_primes.cpp", "prime_factors.cpp", "prime_factors.py", "prime_factors.go", "prime_factors.c", "prime_factors.java"], "mathematical_algorithms/src/fractals": ["simple_julia.cpp", "julia_miim.cpp"], "mathematical_algorithms/src/modular_inverse": ["modular_inverse.java", "modular_inverse.py", "modular_inverse.rb", "modular_inverse.cpp"], "mathematical_algorithms/src/jacobi_method": ["jacobi_method.java", "README.md"], "mathematical_algorithms/src/pascal_triangle": ["README.md", "pascal_triangle.java", "pascal_triangle.cpp", "pascal_triangle.c", "pascal_triangle.py", "pascal_triangle.exs", "pascal_triangle.go"], "mathematical_algorithms/src/dfa_division": ["README.md"], "mathematical_algorithms/test": ["README.md", "test_exponentiation_by_squaring.c"], "sorting/src/bucket_sort": ["README.md", "bucket_sort.c", "bucket_sort.php", "bucket_sort.swift", "bucket_sort.cpp", "bucket_sort.java", "bucket_sort.m", "bucket_sort.rb", "bucket_sort.cs", "bucket_sort.go", "bucket_sort.py", "bucket_sort.js", "bucket_sort.hs"], "sorting/src/median_sort": ["median_sort.cs", "median_sort.py", "median_sort.swift", "median_sort.m", "median_sort.cpp", "median_sort_fast.cpp"], "sorting/src/counting_sort": ["README.md", "counting_sort.cs", "counting_sort.cpp", "counting_sort.py", "counting_sort.m", "counting_sort.java", "counting_sort.js", "counting_sort.go", "counting_sort.swift", "counting_sort.c"], "sorting/src/selection_sort": ["selection_sort.rb", "selection_sort.c", "selection_sort.rs", "selection_sort.php", "README.md", "selection_sort.java", "selection_sort.cs", "selection_sort.cpp", "selection_sort.go", "selection_sort.vb", "selection_sort.js", "selection_sort.swift", "selection_sort.hs", "selection_sort.sh", "selection_sort.m", "selection_sort.kt", "selection_sort.py"], "sorting/src/radix_sort": ["radix_sort.js", "README.md", "radix_sort.java", "radix_sort.c", "radix_sort.cpp", "radix_sort.hs", "radix_sort.py", "radix_sort.rs", "radix_sort.go"], "sorting/src/bubble_sort": ["bubble_sort.go", "bubble_sort.m", "README.md", "bubble_sort.c", "bubble_sort.php", "bubble_sort.cpp", "bubble_sort_efficient.cpp", "bubble_sort.kt", "bubble_sort.rb", "bubble_sort.elm", "bubble_sort.jl", "bubble_sort.ts", "Bubble_sort.f", "bubble_sort.py", "bubble_sort.cs", "bubble_sort.exs", "bubble_sort.swift", "bubble_sort.hs", "bubble_sort.java", "bubble_sort.rs", "bubble_sort.js", "bubble_sort.sh", "bubble_sort.sml"], "sorting/src/insertion_sort": ["insertion_sort.ml", "insertion_sort.js", "insertion_sort.go", "README.md", "insertion_sort.hs", "insertion_sort.swift", "insertion_sort.c", "insertion_sort.sh", "insertion_sort.m", "insertion_sort.java", "insertion_sort.cpp", "insertion_sort.cs", "insertion_sort.rb", "insertion_sort.py", "insertion_sort.php", "insertion_sort.rs"], "sorting/src/tree_sort": ["tree_sort.cpp", "tree_sort.js", "tree_sort.go", "tree_sort.c", "tree_sort.java", "tree_sort.py"], "sorting/src/shell_sort": ["README.md", "shell_sort.swift", "shell_sort.cpp", "shell_sort.py", "shell_sort.js", "shell_sort.c", "shell_sort.java", "shell_sort.m", "shell_sort.go"], "sorting/src/quick_sort": ["quick_sort.swift", "quick_sort.lua", "quick_sort.ts", "README.md", "quick_sort.cpp", "quick_sort_three_way.cpp", "quick_sort.rb", "quick_sort.hs", "quick_sort.elm", "quick_sort.rs", "quick_sort.py", "quick_sort.scala", "quick_sort.sh", "quick_sort.m", "quick_sort_in_place.scala", "quick_sort.go", "quick_sort.java", "dutch_national_flag.cpp", "quick_sort_median_of_medians.c", "quick_sort.c", "quick_sort.cs", "quick_sort.js", "quick_sort.ml"], "sorting/src/sleep_sort": ["sleep_sort.js", "sleep_sort.cpp", "sleep_sort.c", "README.md", "sleep_sort.jl", "sleep_sort.cs", "sleep_sort.py", "sleep_sort.php", "sleep_sort.go", "sleep_sort.sh", "sleep_sort.rb", "sleep_sort.swift", "sleep_sort.m", "sleep_sort.java", "sleep_sort.scala"], "sorting/src/bead_sort": ["README.md", "bead_sort.c", "bead_sort.java", "bead_sort.cpp", "bead_sort.cs", "bead_sort_numpy.py", "bead_sort.js", "bead_sort.swift", "bead_sort.m", "bead_sort.py", "bead_sort.php"], "sorting/src/stooge_sort": ["stooge_sort.java", "README.md", "stooge_sort.go", "stooge_sort.py", "stooge_sort.js", "stooge_sort.c"], "sorting/src/shaker_sort": ["shaker_sort.php", "README.md", "shaker_sort.java", "shaker_sort.rs", "shaker_sort.c", "shaker_sort.js", "shaker_sort.m", "shaker_sort.swift", "shaker_sort.cs", "shaker_sort.go", "shaker_sort.py", "shaker_sort.cpp"], "sorting/src/flash_sort": ["flash_sort.swift", "README.md", "flash_sort.m", "flash_sort.js", "flash_sort.c"], "sorting/src/comb_sort": ["README.md", "comb_sort.c", "comb_sort.swift", "comb_sort.go", "comb_sort.cpp", "comb_sort.m", "comb_sort.js", "comb_sort.java"], "sorting/src/topological_sort": ["topological_sort.java", "topological_sort.c", "topological_sort.cpp"], "sorting/src/gnome_sort": ["gnome_sort.cpp", "gnome_sort.java", "gnome_sort.c", "gnome_sort.m", "gnome_sort.swift", "gnome_sort.py"], "sorting/src/heap_sort": ["README.md", "heap_sort.sc", "heap_sort.cs", "heap_sort.rb", "heap_sort.py", "heap_sort.java", "heap_sort.cpp", "heap_sort.go", "heap_sort.m", "heap_sort.c", "heap_sort.js", "heap_sort.rs", "heap_sort.swift"], "sorting/src/intro_sort": ["intro_sort.cpp", "intro_sort.m", "intro_sort.swift"], "sorting/src/pigeonhole_sort": ["pigeonhole_sort.java", "pigeonhole_sort.cs", "README.md", "pigeonhole_sort.swift", "pigeonhole_sort.c", "pigeonhole_sort.py", "pigeonhole_sort.m", "pigeonhole_sort.cpp", "PigeonHoleSort.scala"], "sorting/src/merge_sort": ["merge_sort.sh", "README.md", "merge_sort.pl", "merge_sort.ts", "merge_sort.js", "merge_sort.php", "merge_sort.py", "merge_sort.scala", "merge_sort.m", "merge_sort.cpp", "merge_sort.fs", "merge_sort.swift", "merge_sort.rb", "merge_sort.go", "merge_sort.c", "merge_sort.rs", "merge_sort.cs", "merge_sort.java", "merge_sort.hs", "merge_sort_linked_list.c"], "sorting/src/bogo_sort": ["README.md", "bogo_sort.py", "bogo_sort.c", "bogo_sort.fs", "bogo_sort.swift", "bogo_sort.go", "bogo_sort.java", "bogo_sort.cpp", "bogo_sort.js", "bogo_sort.m", "bogo_sort.rb"], "sorting/src/cycle_sort": ["cycle_sort.m", "README.md", "cycle_sort.js", "cycle_sort.py", "cycle_sort.java", "cycle_sort.go", "cycle_sort.swift", "cycle_sort.cpp", "cycle_sort.cs", "cycle_sort.c"], "sorting/src/circle_sort": ["circle_sort.swift", "circle_sort.cs", "circle_sort.js", "circle_sort.py", "circle_sort.c", "circle_sort.cpp", "circle_sort.m", "circle_sort.java"], "sorting/test": ["test_sort.py", "README.md", "test_sort.cpp"], "backtracking/src/m_coloring_problem": ["m_coloring.py"], "backtracking/src/number_of_ways_in_maze": ["README.md", "no_of_ways_in_maze.rs", "no_of_ways_in_maze.java", "number_of_ways_in_maze.cpp", "no_of_ways_in_maze.go", "noOfWaysinMaze.c"], "backtracking/src/n_queen": ["n_queen.c", "nQueen.hs", "NQueen.java", "README.md", "Nqueen_Backtracking.rs", "nqueen.go", "NQueen_Backtracking.cpp", "nqueen_bit.go", "NQueen_Bitset.cpp", "nqueen.py", "NQueen_BitImp.cpp"], "backtracking/src/powerset": ["powerset.go", "PowerSet.java"], "backtracking/src/algorithm-x": ["README.md", "algo-x.cpp"], "backtracking/src/partitions_of_set": ["README.md", "set_partitions.go", "set_partitions.cpp"], "backtracking/src/partitions_of_number": ["README.md", "partitions_of_number.go", "partitions_of_number.cpp", "partitions_of_number.rs"], "backtracking/src/crossword_puzzle": ["CrosswordPuzzle.java"], "backtracking/src/rat_in_a_maze": ["README.md", "rat_in_a_maze.cpp"], "backtracking/src/sudoku_solve": ["README.md", "SudokuSolve.c", "sudoku_solve.py", "SudokuSolve.cpp"], "backtracking/src/permutations_of_string": ["README.md", "permutations_of_string.c", "permutations_of_string.py", "permutations_of_string_itertools.py", "permutations_of_string_stl.cpp", "permutations_of_string.kt", "permutations_of_string.go"], "backtracking/src/knight_tour": ["knight_tour.cpp", "README.md", "knight_tour.rs", "knight_tour.py", "knight_tour.go", "knight_tour.c", "knight_tour_withoutBT.c", "knight_tour.java"], "backtracking/src/subset_sum": ["subset_sum.cpp", "SubsetSum.java", "README.md", "Subset_Sum.c", "subset_sum.go", "SubsetSum.py", "Subset_Sum_Duplicates.py"], "backtracking/test": ["README.md"], "unclassified/src/jaccard_similarity": ["README.md", "jaccard.py", "jaccard.java", "jaccard.c"], "unclassified/src/biggest_of_n_numbers": ["biggest_of_n_numbers2.cpp", "biggest_of_n_numbers.c", "biggest_of_n_numbers.py", "biggest_of_n_numbers.cpp"], "unclassified/src/paint_fill": ["paint_fill.cpp"], "unclassified/src/minimum_subarray_size_with_degree": ["minSubarraySizeWithDegree.cpp"], "unclassified/src/magic_square": ["magic_square.py", "magic_square.c", "magic_square.swift", "magic_square.php"], "unclassified/src/average": ["average.rb", "average.es6.js", "average.rs", "average.swift", "average.c", "average.php", "average.cpp", "average.java", "average.go", "average.py", "average.js", "average.erl", "average.scala", "average.ex"], "unclassified/src/majority_element": ["majority_element.cpp"], "unclassified/src/leap_year": ["leap_year.py", "leap_year.cpp", "leap_year.c", "README.txt"], "unclassified/src/utilities": ["download_link.sh", "convert2mp3.sh"], "unclassified/src/spiral_printing": ["spiral_print.cpp", "spiral.c", "spiral_print_array.py", "spiral_print.go"], "unclassified/src/josephus_problem": ["josephus.c", "josephus.go", "josephus.cpp", "josephus.py"], "unclassified/src/tokenizer": ["tokenizer.cpp"], "unclassified/src/biggest_suffix": ["biggest_suffix.c"], "unclassified/src/lapindrom_checker": ["lapindrome_checker.py", "lapindrome_checker.cpp"], "unclassified/src/split_list": ["split_list.py"], "unclassified/src/fifteen_puzzle": ["readme.md", "fifteen.c", "Makefile", "log.txt"], "unclassified/test": ["README.md"], "design_pattern/src/singleton_pattern": ["singleton_pattern.cpp", "singleton_pattern.php", "singleton_pattern.java"], "design_pattern/src/observer_pattern": ["observer_pattern.cpp", "observer_pattern.rs"], "design_pattern/test": ["README.md"], "artificial_intelligence/src/SAT": ["togasat.cpp"], "artificial_intelligence/src/random_forests": ["README.md"], "artificial_intelligence/src/t_distributed_stochastic_neighbor_embedding": ["README.md"], "artificial_intelligence/src/nearest_sequence_memory/nsm_MATLAB": ["simulator.m", "nsm_agent.m", "main.m"], "artificial_intelligence/src/factorization_machines": ["README.md"], "artificial_intelligence/src/principal_component_analysis": ["README.md", "pca.py"], "artificial_intelligence/src/naive_bayes": ["README.md", "naive_bayes.swift"], "artificial_intelligence/src/DBSCAN_Clustering": ["readme.md", "dbscan.py"], "artificial_intelligence/src/TSP": ["euc_500", "noneuc_250", "euc_100", "salesman.cpp", "algo.md", "euc_250", "noneuc_100", "Makefile", "noneuc_500"], "artificial_intelligence/src/hierachical-clustering": ["README.md", "hierachical_clustering.cpp"], "artificial_intelligence/src/decision_tree": ["data_banknote_authentication.csv", "decision_tree.py"], "artificial_intelligence/src/k_Nearest_Neighbours": ["iris.data", "k_Nearest_Neighbours.py"], "artificial_intelligence/src/ISODATA_Clustering": ["readme.md", "ISODATA.py"], "artificial_intelligence/src/q_learning": ["README.md", "qLearning.js"], "artificial_intelligence/src/neural_network": ["neuralnetwork.py"], "artificial_intelligence/src/Logistic_Regression": ["README.md", "Logistic_Regression.py"], "artificial_intelligence/src/gradient_boosting_trees": ["README.md"], "artificial_intelligence/src/support_vector_machine": ["README.md"], "artificial_intelligence/src/k_means": ["README.md", "k_means.py", "k_means.cpp", "k_means.swift"], "artificial_intelligence/src/gaussian_mixture_model": ["README.md"], "artificial_intelligence/src/restricted_boltzmann_machine": ["README.md"], "artificial_intelligence/src/Linear_Regression": ["linear_regression.py", "README.md", "LinearRegression.java", "linearRegression.js", "linear_regression.swift"], "artificial_intelligence/test": ["README.md"], "utility/src/palindrome/palindrome_check": ["palindrome_check.cpp", "palindrome_check.rb"], "utility/test/palindrome/palindrome_check": ["README.md", "test_palindrome_check.cpp"], "graph_algorithms/src/kruskal_minimum_spanning_tree": ["README.md", "kruskal_minimum_spanning_tree.c", "kruskal_minimum_spanning_tree.java", "kruskal_minimum_spanning_tree.py", "kruskal_minimum_spanning_tree.cpp"], "graph_algorithms/src/biconnected_components": ["README.md", "biconnected_components.java", "biconnected_components.cpp"], "graph_algorithms/src/fleury_algorithm_euler_path": ["README.md"], "graph_algorithms/src/bridges_in_graph": ["README.md", "bridges.cpp"], "graph_algorithms/src/eulerian_path": ["README.md", "eulerian.py", "eulerian.java"], "graph_algorithms/src/boruvka_minimum_spanning_tree": ["boruvka_minimum_spanning_tree.cpp", "README.md"], "graph_algorithms/src/adjacency_lists_graph_representation/adjacency_lists_in_C": ["main.c", "lgraph_struct.c", "lgraph_stack.h", "lgraph_stack.c", "README.MD", "lgraph_struct.h"], "graph_algorithms/src/hamiltonian_cycle": ["hamiltonian_cycle.py", "README.md"], "graph_algorithms/src/connected_components": ["connected_components.c"], "graph_algorithms/src/bron_kerbosch_algorithm": ["bron_kerbosch.java"], "graph_algorithms/src/channel_assignment": ["README.md"], "graph_algorithms/src/floyd_warshall_algorithm": ["floydWarshall.c", "README.md", "floyd_warshall.cpp", "floyd_warshall.py", "FloydWarshall.java"], "graph_algorithms/src/astar_algorithm": ["astar.js"], "graph_algorithms/src/graph_coloring": ["README.md", "graph_color_greedy.py", "graph_coloring.cpp", "graph_coloring.java"], "graph_algorithms/src/hamiltonian_path": ["hamiltonian_path.cpp"], "graph_algorithms/src/kuhn_maximum_matching": ["kuhn_maximum_matching.cpp"], "graph_algorithms/src/breadth_first_search": ["bfs.rb", "breadth_first_search.py", "bfs.c", "README.md", "breadth_first_search.swift", "Bfs.java", "bfs.cpp"], "graph_algorithms/src/cut_vertices": ["README.md", "cut_vertices.cpp"], "graph_algorithms/src/longest_path_directed_acyclic_graph": ["README.md", "longest_path_directed_acyclic_graph.cpp"], "graph_algorithms/src/dijkstra_shortest_path": ["README.md", "dijkstra.cpp", "Dijkstra_Algorithm.c", "dijkstra_gnu_fast.cpp", "Dijkstra.py", "dijkstra_efficient.py"], "graph_algorithms/src/bridge_tree": ["bridge_tree.cpp"], "graph_algorithms/src/travelling_salesman_mst": ["README.md", "Travelling_salesman.cpp", "travelling_salesman.py"], "graph_algorithms/src/prim_minimum_spanning_tree": ["prim_minimum_spanning_tree.py", "README.md", "prim_minimum_spanning_tree.cpp", "prim_minimum_spanning_tree.c"], "graph_algorithms/src/cycle_directed_graph": ["cycle_directed_graph.cpp", "README.md", "cycle_directed_graph.py", "cycle_directed_graph.c", "cycle_directed_detection.c"], "graph_algorithms/src/data_structures/adjacency_matrix_C": ["main.c", "mgraph_struct.c", "mgraph_struct.h"], "graph_algorithms/src/strongly_connected_components": ["README.md", "strongly_connected_components.cpp", "strongly_connected_components.py"], "graph_algorithms/src/Bipartite_check": ["Bipartite_check.java"], "graph_algorithms/src/tarjan_algorithm_strongly_connected_components": ["README.md", "tarjan_algorithm.c"], "graph_algorithms/src/maximum_bipartite_matching": ["README.md", "max_bipartite_matching.py"], "graph_algorithms/src/topological_sort": ["README.md", "topological_sort_adjacency_list2.java", "topological_sort.hs", "topological_sort_adjacency_matrix.java", "topological_sort.py", "kahn_algo_unique_toposort.cpp", "topological_sort_adjacency_matrix2.java", "print_all_topological_sorts.cpp", "topological_sort_adjacency_list.java", "topological_sort.c", "topological_sort.cpp"], "graph_algorithms/src/vertex_cover": ["README.md"], "graph_algorithms/src/cycle_undirected_graph": ["CheckCycle.java", "README.md", "cycleGraph.cpp", "cycle_undirected_graph.py", "cycle_using_union_find_datastructure.cpp"], "graph_algorithms/src/postorder_from_inorder_and_preorder": ["inprepost.cpp"], "graph_algorithms/src/hopcroft_karp_algorithm": ["README.md"], "graph_algorithms/src/minimum_s_t_cut": ["README.md"], "graph_algorithms/src/dinic_maximum_flow": ["dinic_maximum_flow.cpp"], "graph_algorithms/src/shortest_path_k_edges": ["README.md"], "graph_algorithms/src/karger_minimum_cut": ["karger.java", "README.md"], "graph_algorithms/src/ford_fulkerson_maximum_flow": ["ford_fulkerson_using_bfs.py", "README.md", "ford_fulkerson.cpp", "FordFulkersonUsingBfs.java", "ford_fulkerson_using_bfs.cpp"], "graph_algorithms/src/left_view_binary_tree": ["left_view_binary_tree.cpp", "left_view_binary.py"], "graph_algorithms/src/bipartite_checking": ["README.md", "bipartite_checking.cpp", "bipartite.cpp", "bipartite_bfs.java", "bipartite_graph_checked_adjacency_list.java"], "graph_algorithms/src/count_of_ways_n": ["Count_of_ways_n.cpp"], "graph_algorithms/src/depth_first_search": ["README.md", "depth_first_search.py", "dfs.go", "Dfs.kt", "dfs.c", "dfs.rb", "Dfs.java", "dfs.cpp"], "graph_algorithms/src/johnson_algorithm_shortest_path": ["README.md", "johnsons_algo.py"], "graph_algorithms/src/centroid_decomposition": ["centroid_decomposition.java"], "graph_algorithms/src/steiner_tree": ["steiner_tree.java"], "graph_algorithms/src/transitive_closure_graph": ["README.md", "transitive_closure_graph_floyd_warshall.cpp", "transitive_closure_graph.py", "transitive_closure.cpp"], "graph_algorithms/src/bellman_ford_algorithm": ["README.md", "bellman_ford.py", "bellman_ford.c", "bellman_ford.php", "bellman_ford_adjacency_list.java", "bellman_ford_edge_list.java", "bellman_ford.cpp"], "graph_algorithms/src/maximum_edge_disjoint_paths": ["README.md"], "graph_algorithms/test": ["README.md"], "compression/src/lossless_compression/lempel-ziv-welch": ["README.md", "lzw.cpp", "lzw.py"], "compression/src/lossless_compression/huffman": ["README.md", "huffman.cpp"], "compression/src/lossy_compression": ["README.md"], "compression/test/lossless_compression/huffman": ["test_huffman.cpp"], "square_root_decomposition/src/MOs_Algorithm": ["MOs_Algorithm.cpp"], "square_root_decomposition/test": ["README.md"], "cryptography/src/runningkey_cipher": ["runningkey.py"], "cryptography/src/columnar_transposition_cipher": ["columnar_transposition.cpp"], "cryptography/src/affine_cipher": ["affine_cipher.py", "affine.cpp", "affine.htm", "affine.py", "Affine.java"], "cryptography/src/aes_128/aes_csharp/example": ["README.md", "StreamCipherException.cs", "StreamCipher.cs"], "cryptography/src/autokey_cipher": ["autokey.py"], "cryptography/src/rail_fence_cipher": ["rail_fence.py", "rail_fence.rb", "rail_fence.cpp"], "cryptography/src/caesar_cipher": ["caesar_cipher.js", "caesar_cipher.rb", "caesar_cipher.java", "README.md", "caesar_cipher.go", "caesar_cipher.cpp", "caesar_cipher.cs", "decryption.cpp", "caesar_cipher.hs", "caesar_cipher.php", "caesar_cipher.py", "caesar_cipher.c", "encryption.cpp"], "cryptography/src/vigenere_cipher": ["README.md", "vigenere_cipher.jl", "vigenere_cipher.js", "vigenere_cipher.c", "vigenere_cipher.go", "vigenere_cipher.cpp", "vigenere_cipher.php", "vigenere_cipher.py", "vigenere_cipher.java", "vigenere_cipher.rb", "vigenere_cipher.hs"], "cryptography/src/rot13_cipher": ["rotN.js", "rotN.cpp", "README.md", "rot13.py", "rotN.c", "rot13.js", "rot13.rb", "rotN.java", "rot13.sh", "rot13.cpp"], "cryptography/src/polybius_cipher": ["polybius.py"], "cryptography/src/porta_cipher": ["porta.py"], "cryptography/src/atbash_cipher": ["README.md", "atbash_cipher.py", "atbash_cipher.cpp"], "cryptography/src/morse_cipher": ["morse_code_translator.js", "morse_code.sh", "README.md", "morse_code_translator.ts", "morse_code_translator.php", "morse_code_generator.c", "morse_code_generator.cpp", "morse_code_translator.cpp", "morse_code_translator.py", "morse_code_generator.rb", "morse_code_generator.bf", "morse_code.java", "morse_code_translator.lua"], "cryptography/src/rsa_digital_signature": ["rsa_digital_signature.ipynb"], "cryptography/src/baconian_cipher": ["baconian.py", "README.md", "baconian.php", "baconian.rb", "baconian.java"], "cryptography/src/rsa": ["rsa.py", "rsa_input.in", "rsa.cs", "RSA.java", "rsa.c"], "cryptography/src/huffman_encoding": ["huffman_encoding.c"], "cryptography/test": ["README.md"], "bit_manipulation/src/lonely_integer": ["lonely_integer.rs", "README.md", "lonelyInteger.cpp", "lonelyInteger.py", "LonelyInt.js", "LonelyInteger.c", "lonelyInteger.go", "LonelyInt.java"], "bit_manipulation/src/sum_binary_numbers": ["README.md", "sum_binary_numbers.c"], "bit_manipulation/src/byte_swapper": ["ByteSwapper.java"], "bit_manipulation/src/flip_bits": ["flippingbits.py", "README.md", "FlipBits.java", "flippingbits.cpp", "flippingbits.c"], "bit_manipulation/src/sum_equals_xor": ["README.md", "sum_equals_xor.cpp", "sum_equals_xor.py", "sum_equals_xor.c"], "bit_manipulation/src/thrice_unique_number": ["thrice_unique_number.js", "README.md", "uniqueNumber.py", "threeUnique.cpp", "ThriceUniqueNumber.java"], "bit_manipulation/src/power_of_2": ["PowerOf2.cs", "power_of_2.jl", "power_of_2.go", "power_of_2.c", "PowerOf2.java", "power_of_2.cpp", "power_of_2.py", "power_of_2.rs", "power_of_2.js"], "bit_manipulation/src/twice_unique_number": ["README.md", "two_unique_numbers.c", "two_unique_numbers.cpp"], "bit_manipulation/src/maximum_xor_value": ["README.md", "max_xor_value.cpp"], "bit_manipulation/src/bit_division": ["README.md", "BitDivision.java", "bitDivision.c", "bitDivison.py", "bitDivision.go", "bitDivision.js"], "bit_manipulation/src/count_set_bits": ["README.md", "countSetBits.js", "count_set_bits.c", "CountSetBits.java", "count_set_bits.py", "count_set_bits.cpp", "count_set_bits_lookup_table.cpp"], "bit_manipulation/src/invert_bit": ["invert_bit.py", "invert_bit.cpp", "invert_bit.c"], "bit_manipulation/src/magic_number": ["magic_number.java", "README.md", "magic_number.py", "magic_number.c", "nth_magic_number.cpp"], "bit_manipulation/src/hamming_distance": ["README.md", "hamming_distance.java", "hamming_distance2.py", "hamming_distance.py", "hamming_distance.c", "hamming_distance.cpp"], "bit_manipulation/src/xor_swap": ["README.md", "xor_swap.c", "xor_swap.cpp", "xor_swap.py", "xorSwap.go"], "bit_manipulation/src/subset_generation": ["README.md", "subsetgeneratorusingbit.cpp", "subset_mask_generator.cpp", "subsetsum.cpp"], "bit_manipulation/src/convert_number_binary": ["convert_number_binary.hs", "convert_number_binary.php", "README.md", "convert_number_binary.c", "ConvertNumberBinary.java", "convert_number_binary.js", "convert_number_binary.cpp", "intToBinary.py", "binary_to_int.py"], "bit_manipulation/test": ["README.md"]} ================================================ FILE: requirements.txt ================================================ certifi==2017.11.5 chardet==3.0.4 Django==1.11.7 flake8==3.5.0 gitdb2==2.0.3 GitPython==2.1.7 gunicorn==19.7.1 idna==2.6 pytz==2017.3 requests==2.18.4 smmap2==2.0.3 urllib3==1.22 pep8==1.7.1 python-decouple==3.1 google-api-python-client newsapi-python ================================================ FILE: runtime.txt ================================================ python-3.6.2 ================================================ FILE: scripts/develop.sh ================================================ ################################################################################ # helper functions ################################################################################ assert() { actual_error_code=$? expect_error_code=0 if [ $# != 0 ]; then expect_error_code=$1 fi if [ $actual_error_code -ne $expect_error_code ]; then echo "exit ($actual_error_code)" exit 1 fi } ################################################################################ # test version of python and pip ################################################################################ PIP=`which pip3` assert PYTHON=`which python3` assert ################################################################################ # test venv ################################################################################ if [ "$VIRTUAL_ENV" == '' ]; then echo "Please run as venv:" echo " PYTHON -m venv env" # help to create venv echo "Type the venv-name if you want to create venv, or type Ctrl+C to exit." name='' while [ "$name" == '' ] do read name done # test venv folder is existed or not tmp=`ls $name 2>/dev/null` if [ $? == 0 ]; then echo "Are you want to override the '$name'? (y/n [n])" read answer if [ "$answer" != 'y' ] && [ "$answer" != 'yes' ]; then echo "not overwritten" exit 0 else rm -rf $name fi fi echo "Creating venv ..." $PYTHON -m venv $name echo "Please type following command and run this script again:" echo " source $name/bin/activate" exit 1 fi ################################################################################ # main ################################################################################ tmp=`ls \.env 2>/dev/null` if [ $? == 1 ]; then cp .env.example .env fi $PIP install -r requirements.txt $PYTHON manage.py createcachetable $PYTHON manage.py collectstatic $PYTHON manage.py migrate echo echo "Run server by following command:" echo " $PYTHON manage.py runserver" ================================================ FILE: search/__init__.py ================================================ ================================================ FILE: search/admin.py ================================================ from django.contrib import admin # noqa from search.models import News # Register your models here. admin.site.register(News) ================================================ FILE: search/apps.py ================================================ from django.apps import AppConfig class SearchConfig(AppConfig): name = 'search' ================================================ FILE: search/migrations/0001_initial.py ================================================ # -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-06-14 15:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=100)), ('title', models.CharField(max_length=100)), ('description', models.CharField(max_length=200)), ('url', models.URLField()), ('urlToImage', models.URLField()), ], ), ] ================================================ FILE: search/migrations/__init__.py ================================================ ================================================ FILE: search/models.py ================================================ from django.db import models # noqa # Create your models here. class News(models.Model): author = models.CharField(max_length=100) title = models.CharField(max_length=100) description = models.CharField(max_length=200) url = models.URLField(max_length=200) urlToImage = models.URLField(max_length=200) ================================================ FILE: search/templatetags/__init__.py ================================================ ================================================ FILE: search/templatetags/calculator.py ================================================ import math # expression computation class Stack: def __init__(self): self.item = [] def isEmpty(self): return self.item == [] def push(self, T): self.item.insert(0, T) def pop(self): return self.item.pop(0) def peek(self): return self.item[0] def size(self): return len(self.item) def isMathExpression(expr, op_math): token = [] i = 0 while i < len(expr): if expr[i] == ' ': i += 1 elif expr[i] == '+' and ((len(token) > 0 and token[-1] == '(') or i == 0): token.append('u+') i += 1 elif expr[i] == '-' and ((len(token) > 0 and token[-1] == '(') or i == 0): token.append('u-') i += 1 elif expr[i].isdigit() or expr[i] == '.': j = i flot = 0 while j < len(expr) and (expr[j].isdigit() or expr[j] == '.'): if expr[j] == '.': if flot == 0: flot = 1 else: return False j += 1 try: val = int(expr[i:j]) except ValueError: val = float(expr[i:j]) token.append(val) i = j elif expr[i] == '(' and len(token) > 0 and \ (str(token[-1]).isdigit() or isinstance(token[-1], float) or token[-1] == ')'): token.append('*') elif expr[i] == '(' or expr[i] == ')' or expr[i] == '+' or \ expr[i] == '*' or expr[i] == '-' or expr[i] == '/' or \ expr[i] == '%' or expr[i] == '^': token.append(expr[i]) i += 1 elif expr[i] == 'x' or expr[i] == 'X': token.append('*') i += 1 elif expr[i:i + 5].lower() in op_math: token.append(expr[i:i + 5].lower()) if i + 5 >= len(expr): return False elif expr[i + 5] != '(': return False i += 5 elif expr[i:i + 4].lower() in op_math: token.append(expr[i:i + 4].lower()) if i + 4 >= len(expr): return False elif expr[i + 4] != '(': return False i += 4 elif expr[i:i + 3].lower() in op_math: token.append(expr[i:i + 3].lower()) if i + 3 >= len(expr): return False elif expr[i + 3] != '(': return False i += 3 else: return False return token def calculate(val1, val2, op): if op == 'u-': return -val1 if op == 'u+': return val1 if op == '^': return math.pow(val1, val2) if op == '+': return val1 + val2 if op == '-': return val1 - val2 if op == '*': return val1 * val2 if op == '/': return val1 / val2 if op == '%': return val1 % val2 if op == 'sin': return math.sin(val1) if op == 'cos': return math.cos(val1) if op == 'tan': return math.tan(val1) if op == 'cot': return 1 / math.tan(val1) if op == 'cosec': return 1 / math.sin(val1) if op == 'sec': return 1 / math.cos(val1) if op == 'exp': return math.exp(val1) if op == 'sqrt': return math.sqrt(val1) if op == 'log': return math.sqrt(val1) def check_precedence(opr, i, op_precdn, op_math): if opr in op_precdn and i in op_math: return True if op_precdn.index(opr) <= 2: return True if op_precdn.index(opr) <= 5: return op_precdn.index(i) > 2 else: return op_precdn.index(i) > 5 def evaluate(tokens, op_precdn, op_math): value = Stack() operator = Stack() open_bracket = 0 for i in tokens: if i == '(': open_bracket = open_bracket + 1 operator.push(i) elif i == ')': if open_bracket > 0: while operator.peek() != '(': opr = operator.pop() if opr in op_math or opr == 'u+' or opr == 'u-': try: val = value.pop() value.push(calculate(val, -1, opr)) except IndexError: return False elif opr in op_precdn: try: val2 = value.pop() val1 = value.pop() value.push(calculate(val1, val2, opr)) except IndexError: return False operator.pop() open_bracket -= 1 else: return False elif i not in op_math and i not in op_precdn: value.push(i) else: if operator.isEmpty(): operator.push(i) else: opr = operator.peek() if opr == '(': operator.push(i) elif opr in op_math or opr == 'u+' or opr == 'u-': if not value.isEmpty(): try: val = value.pop() operator.pop() operator.push(i) value.push(calculate(val, -1, opr)) except IndexError: return False elif opr in op_precdn: if value.size() > 1: if check_precedence(opr, i, op_precdn, op_math) and \ not ((i == '^' or i in op_math) and opr == '^'): try: val2 = value.pop() val1 = value.pop() operator.pop() value.push(calculate(val1, val2, opr)) except IndexError: return False operator.push(i) else: operator.push(i) else: operator.push(i) else: return False while value.size() != 0 and operator.size() != 0: opr = operator.peek() if opr in op_math or opr == 'u+' or opr == 'u-': val = value.pop() operator.pop() try: value.push(calculate(val, -1, opr)) except IndexError: return False else: if value.size() > 1: try: val2 = value.pop() val1 = value.pop() operator.pop() value.push(calculate(val1, val2, opr)) except IndexError: return False else: break if value.size() == 1 and operator.size() == 0: return value.peek() else: return False def getResult(expr): op_precdn = ['u+', 'u-', '^', '/', '*', '%', '+', '-'] op_math = ['sin', 'cos', 'cosec', 'tan', 'sec', 'cot', 'exp', 'sqrt', 'log'] tokens = isMathExpression(expr, op_math) if tokens: return round(evaluate(tokens, op_precdn, op_math), 3) else: return None ================================================ FILE: search/templatetags/random_numbers.py ================================================ import random from django import template register = template.Library() @register.simple_tag def random_int(a, b=None): if b is None: a, b = 0, a return random.randint(a, b) @register.filter def modulo(num, val): return num % val ================================================ FILE: search/templatetags/youtube.py ================================================ import requests from apiclient.discovery import build import json from cosmos_search.settings import YOUTUBE_DATA_API_KEY from django.core.cache import cache YOUTUBE_API_SERVICE_NAME = "youtube" YOUTUBE_API_VERSION = "v3" def fetchJson(url): cached = cache.get(url) if not cached: return False else: return cached def youtube_search(options): global videos_Results videos_Results = [] if not options['nextpage']: videos_Results = [] content_details = "https://www.googleapis.com/youtube/v3/videos?part=contentDetails&" SEARCH = "https://www.googleapis.com/youtube/v3/search?" youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION, developerKey=YOUTUBE_DATA_API_KEY) i = int(options['id']) url = (SEARCH + 'q=' + options['q'] + '&part=id,snippet&maxResults=' + str(options['max_results']) + '&pageToken=' + options['nextpage'] + '&type=video&videoEmbeddable=true&key=' + YOUTUBE_DATA_API_KEY) search_response = fetchJson(url) if not search_response: search_response = youtube.search().list( q=options['q'], part="id, snippet", maxResults=options['max_results'], pageToken=options['nextpage'], type='video', videoEmbeddable='true', ).execute() if search_response: cache.set(url, search_response) nextpage = search_response.get('nextPageToken') for search_result in search_response.get("items", []): if search_result['id']['kind'] == 'youtube#video': q = { 'id': search_result['id']['videoId'], 'key': YOUTUBE_DATA_API_KEY } d = fetchJson(content_details + '&id=' + q['id'] + '&key=' + q['key']) if d: content = json.loads(d) else: response = requests.get(content_details, q) if response.ok: cache.set(response.url, response.content.decode('utf-8')) content = json.loads(response.content.decode('utf-8')) content = list(content['items']) durationh = content[0]['contentDetails']['duration'].split('PT')[-1].split('H') if len(durationh) > 1: h = durationh[0] H = durationh[1] else: h = 0 H = durationh[0] durationm = H.split('M') if len(durationm) > 1: m = durationm[0] M = durationm[1] else: m = 0 M = durationm[0] durations = M.split('S') if len(durations) > 1: s = durations[0] else: s = 0 duration = str(h) + ":" + str(m) + ":" + str(s) pdate = search_result['snippet']['publishedAt'].split("T")[0] ptime = search_result['snippet']['publishedAt'].split("T")[1].split(".")[0] res = { 'id': i, 'title': search_result['snippet']['title'], 'videoId': search_result['id']['videoId'], 'description': search_result['snippet']['description'], 'image': search_result['snippet']['thumbnails']['high']['url'], 'embed': "https://www.youtube.com/embed/" + search_result['id']['videoId'], 'date': pdate, 'time': ptime, 'duration': duration } videos_Results.append(res) i += 1 return {'videos_Results': videos_Results, 'nextpage': nextpage} ================================================ FILE: search/tests.py ================================================ from django.test import TestCase # noqa # Create your tests here. ================================================ FILE: search/urls.py ================================================ from django.conf.urls import url from search import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^tags/', views.tags, name='tags'), url(r'^news/', views.news, name='news'), url(r'^lists/$', views.lists, name='lists'), url(r'^lists/(?P[\w\-]+)/$', views.lists_template, name='lists_template'), url(r'^query/', views.query, name='query'), url(r'^display', views.display, name='display'), url(r'^calculator/', views.calculator, name='calculator'), ] ================================================ FILE: search/views.py ================================================ from django.http import HttpResponse from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.conf import settings import json import random from random import shuffle import re from newsapi import NewsApiClient import requests from requests.exceptions import ConnectionError, ConnectTimeout from search.models import News from search.templatetags.calculator import getResult as calculate from search.templatetags.youtube import youtube_search COSMOS_SEP = '_' # Create your views here def lists_template(request, foo): f = open(settings.LISTS_MD + foo + '.md', 'r', encoding='utf8') md = f.read() title = foo.replace("-", " ").title() args = {'md': md, 'title': title} return render(request, 'cosmos/lists_template.html', args) def lists(request): f = open(settings.LISTS_INFO, 'r', encoding='utf8') lists = list(json.load(f)) args = {"lists": lists} return render(request, 'cosmos/lists.html', args) def dicToQueries(headlines, queries): count = 1 for item in headlines["articles"]: for key, value in item.items(): if key == "title": if value is None: queries.filter(id=count).update(title="None") else: queries.filter(id=count).update(title=value) if key == "description": if value is None: queries.filter(id=count).update(description="None") else: queries.filter(id=count).update(description=value) if key == "author": if value is None: queries.filter(id=count).update(author="None") else: queries.filter(id=count).update(author=value) if key == "url": queries.filter(id=count).update(url=value) if key == "urlToImage": if value is None: queries.filter(id=count).update(urlToImage="None") else: queries.filter(id=count).update(urlToImage=value) count += 1 return queries # News Page def news(request): try: queries_list = News.objects.all() api = NewsApiClient(api_key=settings.NEWS_API_KEY) headlines = api.get_everything( sources='techcrunch, the-verge', domains="techcrunch.com, theverge.com", language='en') if len(queries_list) == 0: for item in headlines["articles"]: temp = News(author=item["author"], title=item["title"], description=item["description"], url=item["url"], urlToImage=item["urlToImage"]) temp.save() queries_list = News.objects.all() args = {"queries": queries_list} if headlines["status"] == "ok": modified_queries = dicToQueries(headlines, queries_list) paginator = Paginator(modified_queries, 7) else: paginator = Paginator(queries_list, 7) page = request.GET.get('page') try: queries = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. queries = paginator.page(1) except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. queries = paginator.page(paginator.num_pages) args = {"queries": queries} return render(request, 'cosmos/news.html', args) except ConnectionError: return render(request, 'cosmos/news.html', args) except ConnectTimeout: return render(request, 'cosmos/news.html', args) # Tags page for users def tags(request): f = open(settings.TAGS_JSON, 'r') jsonL = sorted(list(json.load(f))) args = {"tags": jsonL} return render(request, 'cosmos/tags.html', args) # To prefill the searchbar def get_random_tag(): jsonFile = open(settings.TAGS_JSON, 'r') algo_list = json.load(jsonFile) r_no = random.randint(0, len(algo_list) - 1) algo_tag = algo_list[r_no] return algo_tag def searchSuggestion(request): jsonFile = open(settings.TAGS_JSON, 'r') algo_list = json.load(jsonFile) results = [] if request.is_ajax(): val = request.GET.get('term', '') filterData = [] for word in algo_list: if word.startswith(val): filterData.append(word) i = 0 for tag in filterData: tag_json = {} tag_json['id'] = filterData.index(tag) tag_json['label'] = tag tag_json['value'] = tag results.append(tag_json) i = i + 1 if i >= 6: break searchTag = json.dumps(results) else: searchTag = 'fail' return searchTag def index(request): randomTags = [] for i in range(4): randomTags.append(get_random_tag()) query = get_random_tag() algo = searchSuggestion(request) if request.is_ajax(): mimetype = 'application/json' return HttpResponse(algo, mimetype) return render(request, 'cosmos/index.html', {'query': query, 'random': randomTags}) # Handlers for error pages def error400(request): return render(request, 'cosmos/error/HTTP400.html') def error403(request): return render(request, 'cosmos/error/HTTP403.html') def error404(request): return render(request, 'cosmos/error/HTTP404.html') def error500(request): return render(request, 'cosmos/error/HTTP500.html') def is_file_extension_ignored(file_): return file_.split('.')[-1] in ['md', 'MD'] codes = None videos = None expression_result = None def query(request): if request.is_ajax(): return query_ajax(request) elif request.method == 'GET': return query_get(request) def query_ajax(request): request_type = request.GET.get('type', '') mimetype = 'application/json' if request_type == 'video': query = request.GET.get('query', None) max_results = request.GET.get('max', 24) video_search(request, query, max_results) return HttpResponse(json.dumps(videos), mimetype) elif request_type == 'calculator': expression = request.GET.get('expression', None) calculator(request, expression) return HttpResponse(json.dumps(expression_result), mimetype) def query_get(request): query = ' '.join(re.escape(request.GET['q']) .replace('\ ', ' ') .replace('\\', '') .lower() .split()) f = open(settings.LISTS_INFO, 'r', encoding='utf8') curated_lists = list(json.load(f)) query_lists = [] for i in range(len(curated_lists)): if query in curated_lists[i]['title'].lower(): query_lists.append(curated_lists[i]) calculator(request, query) code_search(request, query) video_search(request, query) if codes['code_amount'] or videos['video_amount'] or expression_result is not None: return render(request, 'cosmos/searchresults.html', {'query': query, 'query_lists': query_lists, 'expression_result': expression_result, 'codes': codes, 'videos': videos, 'active_tab': ( 'calculator' if expression_result is not None else 'code' if codes['code_amount'] else 'video' if videos['video_amount'] else '' )}) else: return render(request, 'cosmos/notfound.html', {'query': query}) def code_search(request, query): global codes codes = { 'codes': [], 'code_amount': 0, 'recommendations': [], } query = query.replace(' ', COSMOS_SEP) data = json.loads(open(settings.METADATA_JSON, 'r').readline()) for folder, file in data.items(): filtered_v = [] for f in file: if not is_file_extension_ignored(f): filtered_v.append(f) if query in folder and "test" not in folder.split("/"): if filtered_v: path = folder folder_list = folder.split('/') codes['codes'].append({'path': path, 'dirs': folder_list, 'files': filtered_v}) codes['code_amount'] += len(filtered_v) if len(folder_list) == 2: d = folder_list[-2] + '/' else: d = folder_list[-3] + '/' for i, j in data.items(): if d in i: if query not in i: only_contents_md = True for f in j: if not is_file_extension_ignored(f): only_contents_md = False break if only_contents_md: continue p = i p = p.split('/') l = p[len(p) - 1] codes['recommendations'].append( {'recpath': i, 'recdirs': p, 'last': l}) shuffle(codes['recommendations']) codes['recommendations'] = codes['recommendations'][:5] def video_search(request, query='algorithm', max_results=24): global videos videos = { 'videos': '', 'video_amount': 0, 'nextpage': None, } youtube_result = {} max_results = min(int(max_results), 50) nextpage = '' id_ = 0 if request.is_ajax(): q = query.split('&') query = q[0] nextpage = q[1] id_ = q[2] if len(query.split(" ")) == 1: query = query + '+' + 'algorithm' youtube_query = { 'q': query.replace(' ', '+'), 'max_results': max_results, 'nextpage': nextpage, 'id': id_ } youtube_result = youtube_search(youtube_query) videos = { 'videos': json.dumps(youtube_result['videos_Results']), 'video_amount': len(youtube_result['videos_Results']), 'nextpage': youtube_result['nextpage'], } def calculator(request, expression): global expression_result res = calculate(expression) if expression is not None and isinstance(res, (int, float)): expression_result = round(res, 3) elif 'calculator' in expression: expression_result = 0 else: expression_result = None # Search strategy def subsq(a, b, m, n): # Base Cases if m == 0: return True if n == 0: return False # If last characters of two strings are matching if a[m - 1] == b[n - 1]: return subsq(a, b, m - 1, n - 1) # If last characters are not matching return subsq(a, b, m, n - 1) def display(request): path = request.GET['path'] link = "https://www.github.com/OpenGenus/cosmos/blob/master/code/" + request.GET['link'] raw = "https://raw.githubusercontent.com/OpenGenus/cosmos/master/code/" + request.GET['link'] query = request.GET['query'] r = requests.get(raw) return render(request, 'cosmos/code.html', {'code': r.text, 'link': link, 'query': query, 'path': path}) ================================================ FILE: static/css/calculator.css ================================================ ================================================ FILE: tags.json ================================================ ["string algorithms", "kmp algorithm", "lipogram checker", "pangram checker", "password strength checker", "anagram search", "morse code", "boyer moore algorithm", "remove dups", "manachar algorithm", "finite automata", "palindrome checker", "levenshtein distance", "arithmetic on large numbers", "rabin karp algorithm", "naive pattern search", "trie pattern search", "aho corasick algorithm", "kasai algorithm", "suffix array", "z algorithm", "computational geometry", "jarvis march", "2d line intersection", "distance between points", "cohen sutherland lineclip", "halfplane intersection", "area of polygon", "2d separating axis test", "axis aligned bounding box collision", "graham scan", "area of triangle", "sutherland hodgeman clipping", "bresenham line", "quickhull", "numerical analysis", "runge kutt", "integral", "monte carlo", "selection algorithms", "median of medians", "divide conquer", "karatsuba multiplication", "warnock algorithm", "x power y", "quick sort", "merge sort using divide and conquer", "tournament method to find min max", "closest pair of points", "inversion count", "search", "interpolation search", "fuzzy search", "ternary search", "linear search", "binary search", "exponential search", "jump search", "fibonacci search", "cellular automaton", "von neumann cellular automata", "conways game of life", "langtons ant", "genetic algorithm", "elementary cellular automata", "nobili cellular automata", "brians brain", "greedy algorithms", "kruskal minimum spanning tree", "huffman coding", "activity selection", "dijkstra shortest path", "job sequencing", "k centers", "fractional knapsack", "prim minimum spanning tree", "hillclimber", "egyptian fraction", "warshall", "minimum coins", "dynamic programming", "longest palindromic substring", "shortest common supersequence", "maximum weight independent set of path graph", "weighted job scheduling", "no consec ones", "optimal binary search tree", "coin change", "longest common substring", "knapsack", "edit distance", "boolean parenthesization", "maximum sum sub matrix", "maximum sum increasing subsequence", "factorial", "binomial coefficient", "longest common increasing subsequence", "palindrome partition", "longest palindromic sequence", "egg dropping puzzle", "matrix chain multiplication", "box stacking", "longest independent set", "minimum insertion palindrome", "longest increasing subsequence", "array median", "tiling problem", "largest sum contiguous subarray", "minimum cost polygon triangulation", "min cost path", "subset sum", "longest common subsequence", "rod cutting", "numeric keypad problem", "longest bitonic sequence", "online challenges", "project euler", "problem 002", "problem 036", "problem 016", "problem 003", "problem 025", "problem 007", "problem 008", "problem 004", "problem 028", "problem 006", "problem 010", "problem 102", "problem 001", "problem 005", "problem 009", "problem 014", "rosalind", "complement dna strand", "operating system", "scheduling", "shortest seek time first", "multi level feedback queue scheduling", "smallest remaining time first", "round robin scheduling", "round robin c", "first come first serve", "memory management", "least recently used", "shell", "c", "deadlocks", "bankers algorithm", "concurrency", "readers writers", "dining philosophers", "monitors", "monitors system v", "peterson algorithm for mutual exclusion", "peterson algorithm in c", "producer consumer", "networking", "validate ip", "determine endianess", "data structures", "list", "singly linked list", "operations", "find", "detect cycle", "sort", "delete", "merge sorted", "reverse", "print reverse", "push", "n th node linked list", "rotate", "xor linked list", "skip list", "doubly linked list", "circular linked list", "tree", "b tree", "b tree c", "two three tree", "binary tree", "treap", "aa tree", "convert to doubly linked list", "diameter", "minimum height", "is binary tree", "is balance", "node", "serializer", "bottom view binary tree", "make binary tree", "from inorder and preorder", "maximum height", "make mirror tree", "is same", "traversal", "inorder", "right threaded", "zigzag", "preorder", "right view", "left view", "path sum", "sum left", "rope", "avl tree", "trie", "heap", "min heap", "soft heap", "max heap", "priority queue", "leftist tree", "binomial heap", "pairing heap", "segment tree", "space partitioning tree", "quad tree", "kd tree", "interval tree", "multiway tree", "splay tree", "fenwick tree", "van emde boas tree", "union find", "red black tree", "hashs", "hash table", "bloom filter", "bag", "stack", "postfix evaluation", "balanced expression", "sort stack", "infix to postfix", "reverse stack", "abstract stack", "cpp", "arraystack", "prefix to postfix", "queue", "queue stream", "queue using stack", "circular buffer", "reverse queue", "queue using linked list", "other", "randomized algorithms", "reservoir sampling", "karger minimum cut algorithm", "random node linkedlist", "randomized quick sort", "random from stream", "shuffle an array", "kth smallest element algorithm", "mathematical algorithms", "convolution", "fast fourier transform", "add polynomials", "2sum", "replace 0 with 5", "armstrong numbers", "sieve of eratosthenes", "euler totient", "fibonacci number", "horner polynomial evaluation", "russian peasant multiplication", "babylonian method", "fast inverse sqrt", "sieve of atkin", "permutation lexicographic order", "segmented sieve of eratosthenes", "std", "gcd and lcm", "amicable numbers", "lucas theorem", "sum of digits", "pandigital number", "next larger number", "tridiagonal matrix", "gaussian elimination", "shuffle array", "newton polynomial", "average stream numbers", "delannoy number", "magic square", "check is square", "largrange polynomial", "poisson sample", "divided differences", "decoding of string", "lucky number", "integer conversion", "pythagorean triplet", "reverse number", "steepest descent", "primality tests", "fermat primality test", "solovay strassen primality test", "miller rabin primality test", "catalan number", "newton raphson method", "integer to roman", "reverse factorial", "derangements", "automorphic numbers", "tower of hanoi", "greatest digit in number", "count digits", "prime numbers of n", "lexicographic string rank", "taxicab numbers", "multiply polynomial", "count trailing zeroes", "log of factorial", "diophantine", "coprime numbers", "hill climbing", "fermats little theorem", "exponentiation power", "exponentiation by squaring", "smallest digit in number", "tribonacci numbers", "simpsons rule", "perfect number", "prime factors", "fractals", "modular inverse", "jacobi method", "pascal triangle", "dfa division", "sorting", "bucket sort", "median sort", "counting sort", "selection sort", "radix sort", "bubble sort", "insertion sort", "tree sort", "shell sort", "sleep sort", "bead sort", "stooge sort", "shaker sort", "flash sort", "comb sort", "topological sort", "gnome sort", "heap sort", "intro sort", "pigeonhole sort", "merge sort", "bogo sort", "cycle sort", "circle sort", "backtracking", "m coloring problem", "number of ways in maze", "n queen", "powerset", "algorithm x", "partitions of set", "partitions of number", "crossword puzzle", "rat in a maze", "sudoku solve", "permutations of string", "knight tour", "jaccard similarity", "biggest of n numbers", "paint fill", "minimum subarray size with degree", "average", "majority element", "leap year", "utilities", "spiral printing", "josephus problem", "tokenizer", "biggest suffix", "lapindrom checker", "split list", "fifteen puzzle", "design pattern", "singleton pattern", "observer pattern", "artificial intelligence", "sat", "random forests", "t distributed stochastic neighbor embedding", "nearest sequence memory", "nsm matlab", "factorization machines", "principal component analysis", "naive bayes", "dbscan clustering", "tsp", "hierachical clustering", "decision tree", "k nearest neighbours", "isodata clustering", "q learning", "neural network", "logistic regression", "gradient boosting trees", "support vector machine", "k means", "gaussian mixture model", "restricted boltzmann machine", "linear regression", "utility", "palindrome", "palindrome check", "graph algorithms", "biconnected components", "fleury algorithm euler path", "bridges in graph", "eulerian path", "boruvka minimum spanning tree", "adjacency lists graph representation", "adjacency lists in c", "hamiltonian cycle", "connected components", "bron kerbosch algorithm", "channel assignment", "floyd warshall algorithm", "astar algorithm", "graph coloring", "hamiltonian path", "kuhn maximum matching", "breadth first search", "cut vertices", "longest path directed acyclic graph", "bridge tree", "travelling salesman mst", "cycle directed graph", "adjacency matrix c", "strongly connected components", "bipartite check", "tarjan algorithm strongly connected components", "maximum bipartite matching", "vertex cover", "cycle undirected graph", "postorder from inorder and preorder", "hopcroft karp algorithm", "minimum s t cut", "dinic maximum flow", "shortest path k edges", "karger minimum cut", "ford fulkerson maximum flow", "left view binary tree", "bipartite checking", "count of ways n", "depth first search", "johnson algorithm shortest path", "centroid decomposition", "steiner tree", "transitive closure graph", "bellman ford algorithm", "maximum edge disjoint paths", "compression", "lossless compression", "lempel ziv welch", "huffman", "lossy compression", "square root decomposition", "mos algorithm", "cryptography", "runningkey cipher", "columnar transposition cipher", "affine cipher", "aes 128", "aes csharp", "example", "autokey cipher", "rail fence cipher", "caesar cipher", "vigenere cipher", "rot13 cipher", "polybius cipher", "porta cipher", "atbash cipher", "morse cipher", "rsa digital signature", "baconian cipher", "rsa", "huffman encoding", "bit manipulation", "lonely integer", "sum binary numbers", "byte swapper", "flip bits", "sum equals xor", "thrice unique number", "power of 2", "twice unique number", "maximum xor value", "bit division", "count set bits", "invert bit", "magic number", "hamming distance", "xor swap", "subset generation", "convert number binary"] ================================================ FILE: templates/cosmos/_base_css.html ================================================ ================================================ FILE: templates/cosmos/_footer.html ================================================ ================================================ FILE: templates/cosmos/_nav.html ================================================ ================================================ FILE: templates/cosmos/bundles/css.html ================================================ {# google api #} {# end google api #} {# bootstrap_css #} {# end bootstrap_css#} ================================================ FILE: templates/cosmos/bundles/js.html ================================================ ================================================ FILE: templates/cosmos/calculator.html ================================================ {% load staticfiles %}
Calculator


================================================ FILE: templates/cosmos/code.html ================================================ {% extends 'cosmos/header.html' %} {% block extra_head %} {% endblock extra_head %} {% block title %} "cosmos-search {% endblock title %} {% block main %}
{{ path }}
{{ code }}
{% endblock main %} {% block js %} {% endblock js %} ================================================ FILE: templates/cosmos/codeResults.html ================================================
Source code results

{% for entry in codes.codes %}

{% for i in entry.dirs %} {{ i }} / {% endfor %}

{% if entry.files|length %} {% endif %}

{% endfor %} {% if codes.recommendations %}
Recommended results

{% for j in codes.recommendations %}
{% for k in j.recdirs %} {{ k }} / {% endfor %}
solution

{% endfor %} {% endif %} ================================================ FILE: templates/cosmos/error/HTTP400.html ================================================ {% extends 'cosmos/header.html' %} {% block head %} 400 | cosmos-search {% endblock %} {% block body %} {% endblock %} ================================================ FILE: templates/cosmos/error/HTTP403.html ================================================ {% extends 'cosmos/header.html' %} {% block head %} 403 | cosmos-search {% endblock %} {% block body %} {% endblock %} ================================================ FILE: templates/cosmos/error/HTTP404.html ================================================ {% extends 'cosmos/header.html' %} {% block head %} 404 | cosmos-search {% endblock %} {% block body %} {% endblock %} ================================================ FILE: templates/cosmos/error/HTTP500.html ================================================ {% extends 'cosmos/header.html' %} {% block head %} 500 | cosmos-search {% endblock %} {% block body %} {% endblock %} ================================================ FILE: templates/cosmos/header.html ================================================ {% load static %} {% block title %} cosmos-search {% endblock %} {% include 'cosmos/bundles/js.html' %} {% include 'cosmos/bundles/css.html' %} {% include 'cosmos/_base_css.html' %} {% block css %} {% endblock %} {% block extra_head %} {% endblock %} {% include 'cosmos/_nav.html' %} {# align search bar and middle of vw #}
{% block main %} {% endblock %} {% include 'cosmos/_footer.html' %} {% block js %} {% endblock %} ================================================ FILE: templates/cosmos/index.html ================================================ {% extends 'cosmos/header.html' %} {% load random_numbers %} {% block main %}

Welcome to cosmos-search


Enjoy our daily code fact

This is the official search tool for cosmos,

a library of every algorithm and data structure code that you will ever encounter.

To search for an algorithm, just enter your search keywords in the box above.

OpenGenus, The Open Group to help the needy

{% endblock main %} ================================================ FILE: templates/cosmos/lists.html ================================================ {% extends 'cosmos/header.html' %} {% block main %}

Human-Curated Lists


{% for item in lists %}

{{item.title}}

{{item.description}}

- {{item.author}}

{% endfor %}
{% endblock %} ================================================ FILE: templates/cosmos/listsResults.html ================================================
Human-Curated Lists Results

{% for item in query_lists %}

{{item.description}}

- {{item.author}}

{% endfor %}
================================================ FILE: templates/cosmos/lists_template.html ================================================ {% extends 'cosmos/header.html' %} {% block main %}

{{title}}


{% endblock main %} ================================================ FILE: templates/cosmos/news.html ================================================ {% extends 'cosmos/header.html' %} {% block main %}

News


{% for item in queries %}

{{item.title}}

{{item.description}}

{% endfor %}
{% endblock main %} ================================================ FILE: templates/cosmos/notfound.html ================================================ {% extends 'cosmos/header.html' %} {% block title %} Not Found | cosmos-search {% endblock title %} {% block main %}

Sorry!

It seems like there are no results for "{{ query }}" !

Try searching something else or request the algorithm you searched for here.

OpenGenus, The Open Group to help the needy
{% endblock main %} ================================================ FILE: templates/cosmos/searchresults.html ================================================ {% extends 'cosmos/header.html' %} {% load staticfiles %} {% block title %} "{{ query }}" | cosmos-search {% endblock title %} {% block js %} {% endblock js %} {% block main %}
Showing {{ codes.code_amount }} {{ videos.video_amount }} expression result(s) for: {{ query }}
 

{% if query_lists|length > 0 %} {% include 'cosmos/listsResults.html' %} {% endif %}
{% if expression_result is not None %} {% include 'cosmos/calculator.html' %} {% endif %}
{% if codes %} {% include 'cosmos/codeResults.html' %} {% endif %}
{% include 'cosmos/youtubeResults.html' %}
{% endblock main %} ================================================ FILE: templates/cosmos/tags.html ================================================ {% extends 'cosmos/header.html' %} {% block js %} {% endblock js %} {% block main %}

Tags


A tag is a keyword or label that categorizes your search query with other, similar queries. Users can use these tags in exploring new topics and continue browsing without prior knowledge.


    {% for tag in tags %}
  • {{ tag }}
  • {% endfor %}
{% endblock main %} ================================================ FILE: templates/cosmos/youtubeResults.html ================================================ {% load random_numbers %} {% block videos %}
Youtube results

{% endblock %} ================================================ FILE: tox.ini ================================================ [flake8] # E741 = Ambiguous variable name # C901 = Overcomplex function ignore = E741, C901 exclude = .git, __pycache__, venv, cosmos, .gitignore, .travis.yml, LICENSE, metadata.json, Procfile, README.md, requirements.txt, runtime.txt, tags.json max-complexity = 10 max-line-length = 119 ================================================ FILE: update/__init__.py ================================================ ================================================ FILE: update/admin.py ================================================ from django.contrib import admin # noqa # Register your models here. ================================================ FILE: update/apps.py ================================================ from django.apps import AppConfig class UpdateConfig(AppConfig): name = 'update' ================================================ FILE: update/migrations/__init__.py ================================================ ================================================ FILE: update/models.py ================================================ from django.db import models # noqa # Create your models here. ================================================ FILE: update/tests.py ================================================ from django.test import TestCase # noqa # Create your tests here. ================================================ FILE: update/urls.py ================================================ from django.conf.urls import url from update import views urlpatterns = [ url(r'^github_webhook$', views.github_webhook, name='github_webhook'), ] ================================================ FILE: update/views.py ================================================ import json import hashlib import hmac import http.client import git import os from django.conf import settings from django.http import HttpResponse, HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def get_file_context(filename): ''' :param filename: name of file :type filename: str :return: context of the file if file can be opened else empty string ''' context = '' try: with open(filename, 'r') as f: context = f.read() except OSError: pass return context def get_json_from_file(filename, default_={}): ''' :param filename: name of file :type filename: str :param default_: the default json :type default_: json :return: json of context of the file if file can be opened else default ''' context = get_file_context(filename) if context: default_ = json.loads(context) return default_ def update_kv_to_json(key, value, json_): ''' :param key: list for keys by layer or key :type key: list or any type for json key :param json_: :type json_: json :return: elem which containing the key in json_ ''' if isinstance(key, list) and len(key) > 1: j = json_ # the key of int will be str in json k = str(key[0]) if k not in json_: j[k] = {} j = j[k] update_kv_to_json(key[1:], value, j) elif isinstance(key, list) and len(key) == 1: json_[key[0]] = value else: json_[key] = value def update_kv_to_file(key, value, filename): ''' :param key: list for keys by layer or key :type key: list or any type for json key :param value: :type value: any type for json key :param filename: :type filename: str TODO: update value of list ''' json_ = get_json_from_file(filename) update_kv_to_json(key, value, json_) with open(filename, 'w') as f: json.dump(json_, f) def update_metadata(): data = {} for (dirpath, dirnames, filenames) in os.walk(settings.COSMOS_ROOT + 'code/'): if dirnames == []: dirpath = '/'.join(dirpath.split('/')[2:]) data[dirpath] = filenames with open(settings.METADATA_JSON, 'w') as f: json.dump(data, f) def update_tags(): topics = [] for keys in json.load(open(settings.METADATA_JSON)): for topic in keys.split('/'): if topic not in (topics + ['unclassified', 'src', 'updated_at', 'test']): topics.append(topic) data = list(map(lambda v: v.replace('_', ' ').replace('-', ' ').lower(), topics)) with open(settings.TAGS_JSON, 'w') as f: json.dump(data, f) def manage_webhook_event(event, payload): """Simple webhook handler that prints the event and payload to the console""" if event == 'push': updated_at = payload['repository']['pushed_at'] try: repo = git.Repo(settings.COSMOS_ROOT) o = repo.remotes.origin print("Pulling cosmos!") o.pull() print("Pulling done!") except git.exc.NoSuchPathError: print("Cloning cosmos!") git.Git().clone(settings.COSMOS_LINK) print("Cloning done!") update_metadata() update_kv_to_file(settings.METADATA_JSON, updated_at, settings.TIMESTAMPS_JSON) update_tags() update_kv_to_file(settings.TAGS_JSON, updated_at, settings.TIMESTAMPS_JSON) @csrf_exempt def github_webhook(request): github_signature = request.META['HTTP_X_HUB_SIGNATURE'] signature = hmac.new(settings.GITHUB_WEBHOOK_SECRET, request.body, hashlib.sha1) expected_signature = 'sha1=' + signature.hexdigest() if not hmac.compare_digest(github_signature, expected_signature): return HttpResponseForbidden('Invalid signature header') if 'payload' in request.POST: payload = json.loads(request.POST['payload']) else: payload = json.loads(request.body) event = request.META['HTTP_X_GITHUB_EVENT'] manage_webhook_event(event, payload) return HttpResponse('Webhook received', status=http.client.ACCEPTED)