hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f97dbd9f97f19001752071be1afe254daea44e0 | 4,925 | py | Python | datasets/single_file_dataset.py | AiPBAND/OmiTrans | 8e5d9198a1ee422eb805e5ead068c1a2523aeed5 | [
"MIT"
] | 3 | 2021-11-26T04:43:05.000Z | 2022-02-23T20:18:10.000Z | datasets/single_file_dataset.py | AiPBAND/OmiTrans | 8e5d9198a1ee422eb805e5ead068c1a2523aeed5 | [
"MIT"
] | 1 | 2022-03-02T03:39:29.000Z | 2022-03-02T03:39:29.000Z | datasets/single_file_dataset.py | AiPBAND/OmiTrans | 8e5d9198a1ee422eb805e5ead068c1a2523aeed5 | [
"MIT"
] | 3 | 2021-11-26T06:25:46.000Z | 2022-03-09T13:16:45.000Z | import torch
import os.path
import numpy as np
import pandas as pd
from util import preprocess
from datasets import load_file
from datasets.basic_dataset import BasicDataset
| 38.779528 | 117 | 0.586802 |
7f989baf22457d064a80cc2874de7f09184bd835 | 416 | py | Python | src/logs/logs.py | StevenVuong/twitter_scraper_sentiment_analysis | 6306dcb7e43d53da8d53c9d90d81d70dae442665 | [
"MIT"
] | 2 | 2020-05-11T16:48:40.000Z | 2020-05-11T21:03:10.000Z | src/logs/logs.py | StevenVuong/twitter_scraper_sentiment_analysis | 6306dcb7e43d53da8d53c9d90d81d70dae442665 | [
"MIT"
] | null | null | null | src/logs/logs.py | StevenVuong/twitter_scraper_sentiment_analysis | 6306dcb7e43d53da8d53c9d90d81d70dae442665 | [
"MIT"
] | null | null | null | import logging
formatting = "%(levelname)s: " \
"%(asctime)s -> " \
"%(name)s - " \
"line %(lineno)d: " \
"%(message)s"
| 23.111111 | 47 | 0.588942 |
7f98bb6fd3647e5453adea196efd86f8d2809974 | 401 | py | Python | plugins/addtodb.py | jasperazerbaijan/gpytranslator-bot | 51bf686885afdce450ce6cb1af9f8f0a06caf143 | [
"MIT"
] | null | null | null | plugins/addtodb.py | jasperazerbaijan/gpytranslator-bot | 51bf686885afdce450ce6cb1af9f8f0a06caf143 | [
"MIT"
] | null | null | null | plugins/addtodb.py | jasperazerbaijan/gpytranslator-bot | 51bf686885afdce450ce6cb1af9f8f0a06caf143 | [
"MIT"
] | 1 | 2021-07-21T20:09:23.000Z | 2021-07-21T20:09:23.000Z | from pyrogram import Client, filters
from pyrogram.types import Message
from db import functions as db
| 30.846154 | 52 | 0.735661 |
7f9a1b01235ac13ec73615626dff07dcf5e1e468 | 364 | py | Python | inventories/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | inventories/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | 7 | 2021-03-19T03:09:53.000Z | 2022-01-13T02:48:44.000Z | inventories/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | from django.db import models
| 28 | 76 | 0.717033 |
7f9a44704bf28caed583acc9794de18d82642fff | 1,004 | py | Python | tests/test_main.py | thiaghenr/pokemon-api | f915b2db0a73133dd13b0529ec25fdc602334829 | [
"MIT"
] | 3 | 2021-04-28T14:37:22.000Z | 2022-01-20T20:16:57.000Z | tests/test_main.py | thiaghenr/pokemon-api | f915b2db0a73133dd13b0529ec25fdc602334829 | [
"MIT"
] | null | null | null | tests/test_main.py | thiaghenr/pokemon-api | f915b2db0a73133dd13b0529ec25fdc602334829 | [
"MIT"
] | null | null | null | import sys
sys.path.append('/home/user/Desktop/app') #/home/user/Desktop/app
import sys
from fastapi.testclient import TestClient
from test_database import test_engine, override_get_db
from app.main import app, pokemon, pokemon_type, user, team
from app.routers.pokemon import get_db
pokemon.Base.metadata.create_all(te... | 37.185185 | 65 | 0.815737 |
7f9c5084f89538634a98df1c39e0e6893ba8074f | 1,490 | py | Python | test/facet_extraction_test.py | Coveochatbot/megageniale-mlapi | 61666c33a4313c9906d874fa04dd6c6bd45df583 | [
"MIT"
] | null | null | null | test/facet_extraction_test.py | Coveochatbot/megageniale-mlapi | 61666c33a4313c9906d874fa04dd6c6bd45df583 | [
"MIT"
] | 3 | 2018-10-20T23:10:14.000Z | 2018-12-15T00:44:49.000Z | test/facet_extraction_test.py | Coveochatbot/megageniale-mlapi | 61666c33a4313c9906d874fa04dd6c6bd45df583 | [
"MIT"
] | 1 | 2018-11-12T14:38:09.000Z | 2018-11-12T14:38:09.000Z | import unittest
from mlapi.facet_extractor import FacetExtractor
from definitions import Definitions
from pathlib import Path
| 40.27027 | 115 | 0.710067 |
7f9c8dc6502277cee6d449f6878ecff4b464a9ee | 1,782 | py | Python | assets/lib/functions/database.py | Nuk3lar/NATO-Bot | 3775ae42055c5e91f8c071af5f5973b17abccc31 | [
"MIT"
] | null | null | null | assets/lib/functions/database.py | Nuk3lar/NATO-Bot | 3775ae42055c5e91f8c071af5f5973b17abccc31 | [
"MIT"
] | null | null | null | assets/lib/functions/database.py | Nuk3lar/NATO-Bot | 3775ae42055c5e91f8c071af5f5973b17abccc31 | [
"MIT"
] | null | null | null | # SQL Module
import MySQLdb
| 26.597015 | 85 | 0.609428 |
7f9cccab203776821b2694f234e1f2bff5bb56c8 | 913 | py | Python | urizen/core/thing.py | vurmux/urizen | 28b1e60cf8fa2f15622537f6df0290e2ac890d5f | [
"Apache-2.0"
] | 107 | 2020-01-08T21:27:59.000Z | 2022-03-19T07:59:23.000Z | urizen/core/thing.py | hanok2/urizen | 28b1e60cf8fa2f15622537f6df0290e2ac890d5f | [
"Apache-2.0"
] | 1 | 2020-05-22T17:54:12.000Z | 2021-06-27T01:02:39.000Z | urizen/core/thing.py | hanok2/urizen | 28b1e60cf8fa2f15622537f6df0290e2ac890d5f | [
"Apache-2.0"
] | 7 | 2020-01-08T21:12:11.000Z | 2022-03-19T07:59:27.000Z | #!/usr/bin/python3
| 25.361111 | 66 | 0.631982 |
7f9cd9fd3b819d0be208a54f23cb4903da617f11 | 1,306 | py | Python | src/utils/data_utils.py | vikigenius/neural_speaker_identification | a723290808d748daf65163b71aef2c5376319db3 | [
"MIT"
] | 1 | 2019-07-27T00:32:02.000Z | 2019-07-27T00:32:02.000Z | src/utils/data_utils.py | vikigenius/neural_speaker_identification | a723290808d748daf65163b71aef2c5376319db3 | [
"MIT"
] | null | null | null | src/utils/data_utils.py | vikigenius/neural_speaker_identification | a723290808d748daf65163b71aef2c5376319db3 | [
"MIT"
] | 1 | 2019-07-27T00:32:06.000Z | 2019-07-27T00:32:06.000Z | #!/usr/bin/env python
import os
| 30.372093 | 76 | 0.573507 |
7f9daeb349895404f5b7f1caac11b430bed8be01 | 9,428 | py | Python | orpheus/clt/click_entry.py | ailyntong/implementation | ef535bf9dcff6b97252fb6b27614c7d262d05ea6 | [
"MIT",
"Unlicense"
] | 84 | 2017-01-06T14:30:45.000Z | 2021-10-08T18:13:40.000Z | orpheus/clt/click_entry.py | ailyntong/implementation | ef535bf9dcff6b97252fb6b27614c7d262d05ea6 | [
"MIT",
"Unlicense"
] | 9 | 2017-06-13T02:04:45.000Z | 2021-03-24T20:21:33.000Z | orpheus/clt/click_entry.py | ailyntong/implementation | ef535bf9dcff6b97252fb6b27614c7d262d05ea6 | [
"MIT",
"Unlicense"
] | 11 | 2017-09-10T16:10:25.000Z | 2021-01-19T20:03:52.000Z | import os
import yaml
import click
from orpheus.core.executor import Executor
from orpheus.core.user_control import UserManager
from orpheus.core.orpheus_exceptions import BadStateError, NotImplementedError, BadParametersError
from orpheus.core.orpheus_sqlparse import SQLParser
from db import DatabaseManager
# t... | 39.283333 | 152 | 0.66398 |
7f9e407ceecae71657a1dd2344249aa874aaa1dc | 6,150 | py | Python | lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 48 | 2021-11-27T05:28:31.000Z | 2022-02-06T16:08:30.000Z | lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 15 | 2021-03-03T10:50:59.000Z | 2021-06-21T07:47:47.000Z | lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 25 | 2021-03-02T15:08:11.000Z | 2022-03-29T14:34:20.000Z | import time
import os
import logging
import compas_slicer.utilities as utils
from compas_slicer.pre_processing import move_mesh_to_point
from compas_slicer.slicers import PlanarSlicer
from compas_slicer.post_processing import generate_brim
from compas_slicer.post_processing import generate_raft
from compas_slicer.post... | 46.946565 | 100 | 0.457886 |
7f9eb6f7adcc1dc6f1a2c4b1891e1af52de709d2 | 566 | py | Python | library/lib/library/genre.py | efulet/library-sample | d855247028a8b1c5408fc54a5a39c4abe73d24e7 | [
"MIT"
] | null | null | null | library/lib/library/genre.py | efulet/library-sample | d855247028a8b1c5408fc54a5a39c4abe73d24e7 | [
"MIT"
] | null | null | null | library/lib/library/genre.py | efulet/library-sample | d855247028a8b1c5408fc54a5a39c4abe73d24e7 | [
"MIT"
] | null | null | null | """
Define the implementation for Genre.
Enums have been added to Python 3.4 as described in PEP 435. It has also been
backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4 on pypi.
Please install:
$> pip install enum34
@created_at 2015-05-16
@author Exequiel Fuentes Lettura <efulet@gmail.com>
"""
from enum import ... | 21.769231 | 78 | 0.69258 |
7f9ee4cce3e5875aad64421d7f4c59c9aad2f69d | 2,809 | py | Python | zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py | qinningfx/zfused_outsource | bfc5558f05e3d6005653794a47bd863b61b009b1 | [
"Apache-2.0"
] | 2 | 2019-02-22T03:33:26.000Z | 2019-02-23T03:29:26.000Z | zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py | qinningfx/zfused_outsource | bfc5558f05e3d6005653794a47bd863b61b009b1 | [
"Apache-2.0"
] | null | null | null | zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py | qinningfx/zfused_outsource | bfc5558f05e3d6005653794a47bd863b61b009b1 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
# --author-- lanhua.zhou
from __future__ import print_function
import logging
from qtpy import QtWidgets, QtGui, QtCore
import zfused_api
import zfused_maya.core.record as record
import zfused_maya.core.resource as resource
import zfused_maya.widgets.widgets as widgets
from . import assetlistmodel
fr... | 31.561798 | 99 | 0.684229 |
7fa00aca19352a3c3bb64086161e93228165267a | 12,275 | py | Python | CombineFomApp.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | 5 | 2017-03-24T21:05:22.000Z | 2021-09-15T18:18:05.000Z | CombineFomApp.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | null | null | null | CombineFomApp.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | null | null | null | import csv
import os, os.path
import sys
import numpy
from PyQt4.QtCore import *
from PyQt4.QtGui import *
if __name__ == "__main__":
import os, sys
projectpath=os.path.split(os.path.abspath(__file__))[0]
sys.path.append(os.path.join(projectpath,'AuxPrograms'))
from fcns_math import *
from fcns_io import ... | 35.37464 | 157 | 0.582892 |
7fa05b2a5eaa254783f5987a4ee647edeaf6173a | 2,467 | py | Python | eland/tests/series/test_hist_pytest.py | redNixon/eland | 1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3 | [
"Apache-2.0"
] | null | null | null | eland/tests/series/test_hist_pytest.py | redNixon/eland | 1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3 | [
"Apache-2.0"
] | null | null | null | eland/tests/series/test_hist_pytest.py | redNixon/eland | 1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Elasticsearch BV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 33.794521 | 83 | 0.689501 |
7fa1255aeed1640b6a22639a447638509e1708d4 | 2,108 | py | Python | glitchtip/pagination.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | glitchtip/pagination.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | glitchtip/pagination.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | import logging
import urllib.parse as urlparse
from urllib.parse import parse_qs
from rest_framework.exceptions import ValidationError
from rest_framework.pagination import CursorPagination
from rest_framework.response import Response
logger = logging.getLogger(__name__)
| 34 | 85 | 0.604839 |
7fa2950d2c1947708703dac582e56abc5bd22d7c | 1,336 | py | Python | rzeczownik_zwiazek.py | alkamid/wiktionary | ce242da609a1001ae7462b07da2f6e83f1a7281b | [
"MIT"
] | 3 | 2015-01-06T22:00:22.000Z | 2016-08-14T08:07:32.000Z | rzeczownik_zwiazek.py | alkamid/wiktionary | ce242da609a1001ae7462b07da2f6e83f1a7281b | [
"MIT"
] | 56 | 2015-07-12T10:21:38.000Z | 2020-02-23T18:51:01.000Z | rzeczownik_zwiazek.py | alkamid/wiktionary | ce242da609a1001ae7462b07da2f6e83f1a7281b | [
"MIT"
] | 2 | 2015-01-06T21:25:06.000Z | 2018-01-17T12:03:17.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('/home/adam/wikt/pywikipedia')
#sys.path.append('/home/alkamid/wikt/pywikipedia')
import pywikibot
from pywikibot import Category
from pywikibot import pagegenerators
import re
from pywikibot import xmlreader
from klasa import *
if __name__ == '__ma... | 29.688889 | 104 | 0.567365 |
7fa45120566f6e66b1161eb3ddc49d8249a2ea66 | 3,901 | py | Python | mi/dataset/parser/flort_kn__stc_imodem.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 1 | 2015-05-10T01:08:44.000Z | 2015-05-10T01:08:44.000Z | mi/dataset/parser/flort_kn__stc_imodem.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/flort_kn__stc_imodem.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 9 | 2015-04-15T21:09:08.000Z | 2019-11-15T03:18:53.000Z | #!/usr/bin/env python
"""
@package mi.dataset.parser.flort_kn__stc_imodem
@file marine-integrations/mi/dataset/parser/flort_kn__stc_imodem.py
@author Emily Hahn
@brief Parser for the FLORT_KN__STC_IMODEM dataset driver (both recovered and telemetered)
Release notes:
initial release
"""
__author__ = 'Emil... | 37.873786 | 118 | 0.719046 |
7fa52d2551135b3c9ef42b725887c7c6e432166a | 834 | py | Python | kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py | wusung/ipython-notebook-tabs | ee7b3922c7d01cf6182bce63ef69e8a20f7229f9 | [
"Apache-2.0"
] | null | null | null | kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py | wusung/ipython-notebook-tabs | ee7b3922c7d01cf6182bce63ef69e8a20f7229f9 | [
"Apache-2.0"
] | null | null | null | kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py | wusung/ipython-notebook-tabs | ee7b3922c7d01cf6182bce63ef69e8a20f7229f9 | [
"Apache-2.0"
] | null | null | null | c = get_config()
#Export all the notebooks in the current directory to the sphinx_howto format.
c.NbConvertApp.notebooks = ['Untitled.ipynb']
c.NbConvertApp.export_format = 'notebook'
#c.NbConvertApp.writer = 'stdoutwriter'
c.Exporter.default_preprocessors = ['kyper.nbconvert.preprocessors.coalesce_streams', 'kyper.nb... | 75.818182 | 424 | 0.833333 |
7fa541c36336e94cfd1cde616a593d1859f31c6d | 962 | py | Python | scripts/reader/extract_eval_results.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 166 | 2018-08-07T03:35:02.000Z | 2022-01-11T10:40:09.000Z | scripts/reader/extract_eval_results.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 16 | 2018-08-17T09:53:37.000Z | 2019-06-17T12:58:00.000Z | scripts/reader/extract_eval_results.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 45 | 2018-08-27T06:38:42.000Z | 2021-01-17T11:12:39.000Z | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import re
import numpy as np
import pandas as pd
if __name__ == '__main__':
compare_result(sys.argv[1:])
| 28.294118 | 95 | 0.564449 |
7fa656207915017887d981061398ba3f4a5e4115 | 1,332 | py | Python | tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 27 | 2015-03-30T14:17:26.000Z | 2022-02-19T17:30:44.000Z | tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 483 | 2015-03-09T16:58:03.000Z | 2022-03-14T09:29:06.000Z | tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 6 | 2015-04-07T07:38:30.000Z | 2020-04-01T12:45:53.000Z | from contextlib import closing
import pytest
import sqlalchemy
from tests.conversion.converters.inside_worker_test.conftest import slow
international_text_strings = [
('ascii', 'some normal ascii', 'some normal ascii'),
('umlaut', '', ''),
('special_chars', "*+?'^'%#", "*+?'^'%#"),
('japanese', "", '... | 35.052632 | 161 | 0.688438 |
7fa65a7d3751f2bd316d7300a9d99b95b40fb832 | 979 | py | Python | info/models.py | ycy-tw/python-django-stock | 263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0 | [
"MIT"
] | 2 | 2021-04-25T07:01:01.000Z | 2021-05-07T10:17:26.000Z | info/models.py | ycy-tw/python-django-stock | 263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0 | [
"MIT"
] | null | null | null | info/models.py | ycy-tw/python-django-stock | 263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0 | [
"MIT"
] | null | null | null | from django.db import models
| 25.763158 | 47 | 0.695608 |
7fa71b0b3f054bcdd23fb5a4941606959b1e3af7 | 1,123 | py | Python | python/example_code/iam/get_pub_keys.py | dlo/aws-doc-sdk-examples | 305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c | [
"Apache-2.0"
] | 9 | 2018-09-29T11:44:19.000Z | 2019-11-06T21:41:34.000Z | python/example_code/iam/get_pub_keys.py | dlo/aws-doc-sdk-examples | 305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c | [
"Apache-2.0"
] | 1 | 2018-10-30T06:11:07.000Z | 2018-10-30T06:11:07.000Z | python/example_code/iam/get_pub_keys.py | dlo/aws-doc-sdk-examples | 305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c | [
"Apache-2.0"
] | 2 | 2018-12-25T10:13:56.000Z | 2021-06-24T11:26:38.000Z | # Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... | 32.085714 | 78 | 0.741763 |
7fa7f852d4cb0a061dab991f8c7bedad11c82bbc | 727 | py | Python | tests/test_tools/test_sort.py | Massiil/wordlistools | 45edc94200130e87b444fd5c04e24e6093160f93 | [
"MIT"
] | 17 | 2022-02-06T21:23:27.000Z | 2022-02-07T22:33:40.000Z | tests/test_tools/test_sort.py | Massiil/wordlistools | 45edc94200130e87b444fd5c04e24e6093160f93 | [
"MIT"
] | 1 | 2022-02-06T21:52:30.000Z | 2022-02-06T21:52:30.000Z | tests/test_tools/test_sort.py | Massiil/wordlistools | 45edc94200130e87b444fd5c04e24e6093160f93 | [
"MIT"
] | 2 | 2022-02-06T21:29:42.000Z | 2022-02-06T21:31:06.000Z | from wordlistools.helpertest import AsStdinWordlist, AsWordlist, runtest
| 25.964286 | 84 | 0.518569 |
7fa94d0c36ae17fb7490233a6caf6c47c8509aba | 5,305 | py | Python | supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | 1 | 2020-04-02T17:03:39.000Z | 2020-04-02T17:03:39.000Z | supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import re
from ..base.decrypter import BaseDecrypter
| 38.165468 | 141 | 0.531008 |
7fa9f0e8cb2ce25f47bfafc2286cfa382e9eef68 | 62,700 | py | Python | build_rdkit_csharp.py | kazuyaujihara/playfield | 2ef34dcfde820461c1f7fa47415f83dbea4481cc | [
"BSD-3-Clause"
] | null | null | null | build_rdkit_csharp.py | kazuyaujihara/playfield | 2ef34dcfde820461c1f7fa47415f83dbea4481cc | [
"BSD-3-Clause"
] | null | null | null | build_rdkit_csharp.py | kazuyaujihara/playfield | 2ef34dcfde820461c1f7fa47415f83dbea4481cc | [
"BSD-3-Clause"
] | null | null | null | """Script to make RDKit.DotNetWrapper.
Notes:
This is developed with rdkit-Release_2021_09_4.
"""
from enum import Enum
import argparse
import glob
import logging
import os
import platform
import re
import shutil
import subprocess
import sys
import typing
import xml.etree.ElementTree as ET
from os import PathLike
... | 37.299227 | 120 | 0.567321 |
7faa85dd7164abc5cf2a876e02a9cd836cf45628 | 5,624 | py | Python | DataVisualization/GraphGenerator.py | DavidHdezU/TwitterDataAnalyser | a003c046a39cdb18f8b4efe7f7db1a5959736fe5 | [
"MIT"
] | null | null | null | DataVisualization/GraphGenerator.py | DavidHdezU/TwitterDataAnalyser | a003c046a39cdb18f8b4efe7f7db1a5959736fe5 | [
"MIT"
] | null | null | null | DataVisualization/GraphGenerator.py | DavidHdezU/TwitterDataAnalyser | a003c046a39cdb18f8b4efe7f7db1a5959736fe5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os
from PIL import Image
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
import matplotlib.pyplot as plt
import seaborn as sns
| 33.278107 | 153 | 0.602596 |
7fae89a2e7b33a8349cff26d3637eccd5dfa7ee7 | 2,734 | py | Python | pkg/win/build_pillow-simd.py | milkey-mouse/swood.exe | 6e691c2e9c4a42845b13c83d216022897aca97c5 | [
"MIT"
] | 12 | 2016-06-09T22:08:49.000Z | 2022-01-15T16:58:42.000Z | pkg/win/build_pillow-simd.py | milkey-mouse/swood.exe | 6e691c2e9c4a42845b13c83d216022897aca97c5 | [
"MIT"
] | 29 | 2016-04-17T01:25:09.000Z | 2021-03-12T23:22:35.000Z | pkg/win/build_pillow-simd.py | milkey-mouse/swood.exe | 6e691c2e9c4a42845b13c83d216022897aca97c5 | [
"MIT"
] | 1 | 2020-12-22T00:16:05.000Z | 2020-12-22T00:16:05.000Z | import subprocess
import requests
import tempfile
import tarfile
import shutil
import sys
import os
if os.name != "nt":
print("Error: Can only build pillow-simd on a Windows system")
repo_url = "https://api.github.com/repos/uploadcare/pillow-simd/tags"
tarball_url = requests.get(repo_url).json()[0]["tarball_url"]... | 36.453333 | 94 | 0.63387 |
7faef27d00dc089e93362f99e786f4406c15fa41 | 559 | py | Python | irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | null | null | null | irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | null | null | null | irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | 1 | 2015-12-17T19:18:28.000Z | 2015-12-17T19:18:28.000Z | """add ambiguous affiliation flag
Revision ID: 52b38830e4f1
Revises: None
Create Date: 2014-08-23 20:08:30.702574
"""
# revision identifiers, used by Alembic.
revision = '52b38830e4f1'
down_revision = None
from alembic import op # NOQA
import sqlalchemy as sa # NOQA
| 20.703704 | 77 | 0.699463 |
7faf000a12cfb8382d4089e48ea4a9fb68db6a0d | 7,118 | py | Python | DSN/config_DSN.py | JerrySchonenberg/DSN | 4b79ac4beada888a859f76bfdcb1c08cefd4f02d | [
"MIT"
] | 4 | 2021-03-18T13:02:28.000Z | 2021-12-02T14:49:39.000Z | DSN/config_DSN.py | JerrySchonenberg/DSN | 4b79ac4beada888a859f76bfdcb1c08cefd4f02d | [
"MIT"
] | null | null | null | DSN/config_DSN.py | JerrySchonenberg/DSN | 4b79ac4beada888a859f76bfdcb1c08cefd4f02d | [
"MIT"
] | 1 | 2021-07-21T06:19:08.000Z | 2021-07-21T06:19:08.000Z | #configure DSN based on the velocities of the commands
import configparser
import os
import time
import tensorflow as tf
import subprocess
import numpy as np
import cv2
import sys
import math
import matplotlib.pyplot as plt
sys.path.append("../coppelia_sim")
from API_coppeliasim import CoppeliaSim
from PIL import Ima... | 32.208145 | 107 | 0.618573 |
7faf132493fb997a22585fcc1b6f5221296ea124 | 1,012 | py | Python | spammer/vcspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | null | null | null | spammer/vcspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | null | null | null | spammer/vcspam.py | 00-00-00-11/Raid-Toolbox | 4d24841de5ef112dc15b858f62607e0d6b5277cd | [
"0BSD"
] | 1 | 2021-05-15T11:32:24.000Z | 2021-05-15T11:32:24.000Z | import discord
import asyncio
import sys
import random
import aiohttp
token = sys.argv[1]
tokenno = sys.argv[2]
voice_id = sys.argv[3]
useproxies = sys.argv[4] # proxies for voice chats smh
if useproxies == 'True':
proxy_list = open("proxies.txt").read().splitlines()
proxy = random.choice(proxy_... | 27.351351 | 60 | 0.657115 |
7faf5789a456612c7591dd05136e4084bf218d95 | 4,912 | py | Python | recommendation_engines/movie_recommendation/movie_recommender.py | DKMalungu/python_ml | 4df7b6ddaa7ae072db27799a9226f6f8fab40452 | [
"Apache-2.0"
] | null | null | null | recommendation_engines/movie_recommendation/movie_recommender.py | DKMalungu/python_ml | 4df7b6ddaa7ae072db27799a9226f6f8fab40452 | [
"Apache-2.0"
] | null | null | null | recommendation_engines/movie_recommendation/movie_recommender.py | DKMalungu/python_ml | 4df7b6ddaa7ae072db27799a9226f6f8fab40452 | [
"Apache-2.0"
] | null | null | null | """
The dataset can be downloaded from: https://grouplens.org/datasets/movielens/100k/
"""
# Importing Libraries
import pandas as pd
import numpy as np
# Step 1: Loading the dataset into python
# Loading users file
"""
This information is from the read me doc of the dataset
u.user -- Demographic information about... | 43.087719 | 140 | 0.643119 |
7fb292a14c4c1af1a6114d6ef6dda19af9eebf1c | 673 | py | Python | 266_palindrome_permutation.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 266_palindrome_permutation.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 266_palindrome_permutation.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # 266. Palindrome Permutation
#
# Given a string, determine if a permutation of the string could form a palindrome.
#
# Example 1:
#
# Input: "code"
# Output: false
#
# Example 2:
#
# Input: "aab"
# Output: true
#
# Example 3:
#
# Input: "carerac"
# Output: true
# https://leetcode.com/articles/palindrome-permutation/
... | 17.710526 | 83 | 0.579495 |
7fb2f08441bee9b4f2cc7afeea8869dbc1d391ef | 312 | py | Python | setup.py | allrod5/extra-trees | ba7d94bd8a77daaa2357241f343c3b571a900131 | [
"MIT"
] | 4 | 2017-08-18T04:07:43.000Z | 2022-01-17T01:41:29.000Z | setup.py | allrod5/extra-trees | ba7d94bd8a77daaa2357241f343c3b571a900131 | [
"MIT"
] | 2 | 2017-08-15T06:42:05.000Z | 2017-08-24T16:44:49.000Z | setup.py | allrod5/extra-trees | ba7d94bd8a77daaa2357241f343c3b571a900131 | [
"MIT"
] | 3 | 2019-08-15T06:21:59.000Z | 2021-11-25T09:55:38.000Z | #!/usr/bin/env python3
from distutils.core import setup
setup(name='Extremely Randomized Trees',
version='0.2',
description='Implementation of Extremely Randomized Trees',
author='Rodrigo',
author_email='allrod5@gmail.com',
packages=['extra_trees.ensemble', 'extra_trees.tree']
)
| 26 | 65 | 0.701923 |
7fb526a62b477c606c93725191f3522b82d53a95 | 10,522 | py | Python | mediumbackup/__init__.py | lucafrance/mediumbackup | 7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192 | [
"MIT"
] | null | null | null | mediumbackup/__init__.py | lucafrance/mediumbackup | 7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192 | [
"MIT"
] | null | null | null | mediumbackup/__init__.py | lucafrance/mediumbackup | 7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192 | [
"MIT"
] | null | null | null | import os
import logging
import medium
from markdownify import markdownify as md
from bs4 import BeautifulSoup as bs
import requests
MAX_FILENAME_LENGTH = 30 # Ignores date and extension, e.g. 2020-10-31<-- 30 characthers -->.md
FORBIDDEN_FILENAME_CHARS = "*?"
DEFAULT_BACKUP_DIR = "backup"
DEFAULT_FORMAT = "html"
... | 39.70566 | 133 | 0.563676 |
7fb8436c321cd41d538c60fc97d0a72987f9c800 | 1,837 | py | Python | app.py | dev-ng/report-text-extraction | 1a476bdd3c5d835ccdf736588184b014bd8a20f1 | [
"BSD-3-Clause"
] | null | null | null | app.py | dev-ng/report-text-extraction | 1a476bdd3c5d835ccdf736588184b014bd8a20f1 | [
"BSD-3-Clause"
] | null | null | null | app.py | dev-ng/report-text-extraction | 1a476bdd3c5d835ccdf736588184b014bd8a20f1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
import os
from flask import Flask, request, jsonify, send_from_directory, redirect # , send_file
from flask_cors import CORS
from flask_httpauth import HTTPBasicAuth
import lng
import pdf
import storage
import services
app = Flask(__name__)
auth = HTTPBasicAuth()
CORS(app)
... | 26.623188 | 105 | 0.686445 |
7fb891be986425209fac4babd0667c2c41294a2b | 683 | py | Python | setup.py | simon-weber/kleroteria | 750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5 | [
"Apache-2.0"
] | 6 | 2020-12-01T01:41:07.000Z | 2021-03-10T05:18:22.000Z | setup.py | simon-weber/kleroteria | 750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5 | [
"Apache-2.0"
] | null | null | null | setup.py | simon-weber/kleroteria | 750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5 | [
"Apache-2.0"
] | null | null | null | from codecs import open
import re
from setuptools import setup, find_packages
setup(
name='kleroteria',
# this version doesn't really mean anything since this ships as an app.
# it's also hardcoded in the requirements files.
version='0.0.1',
description='An email lottery and spiritual successor to ... | 23.551724 | 77 | 0.660322 |
7fb8a2d01a0b8780de371becc7f40508be277d45 | 8,596 | py | Python | Algorithms/Off-Policy/DDPG-TD3/main.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | Algorithms/Off-Policy/DDPG-TD3/main.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | Algorithms/Off-Policy/DDPG-TD3/main.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | import argparse
import os
import socket
import gym
import numpy as np
import torch
import DDPG
import TD3
import DISCOVER_DDPG
import DISCOVER_TD3
import utils
# DDPG tuned hyper-parameters are imported from
# OpenAI Baselines3 Zoo: https://github.com/DLR-RM/rl-baselines3-zoo
# Runs policy for X episodes and ret... | 40.168224 | 136 | 0.620405 |
7fbb4e52d64906788fb583d0d26e7df5468dcdca | 1,590 | py | Python | setup.py | PlaidCloud/sqlalchemy-greenplum | b40beeee8b775290b262d3b9989e8faeba8b2d20 | [
"BSD-3-Clause"
] | 6 | 2019-05-10T18:31:05.000Z | 2021-09-08T16:59:46.000Z | setup.py | PlaidCloud/sqlalchemy-greenplum | b40beeee8b775290b262d3b9989e8faeba8b2d20 | [
"BSD-3-Clause"
] | 2 | 2018-06-04T23:28:16.000Z | 2022-03-08T14:20:14.000Z | setup.py | PlaidCloud/sqlalchemy-greenplum | b40beeee8b775290b262d3b9989e8faeba8b2d20 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T10:12:44.000Z | 2019-06-13T10:12:44.000Z |
import os
from setuptools import setup, find_packages
source_location = os.path.abspath(os.path.dirname(__file__))
setup(
name="sqlalchemy-greenplum",
version=get_version(),
license="LICENSE.txt",
url="https://github.com/PlaidCloud/sqlalchemy-greenplum",
author="Patrick Buxton",
author_email=... | 33.829787 | 78 | 0.648428 |
7fbd170ddca2f532e47d512537a2706fb3db9b79 | 4,976 | py | Python | src/cray/cfs/operator/__main__.py | Cray-HPE/cfs-operator | 16cd12155ba52b89e504ed668c49b544b92d3794 | [
"MIT"
] | null | null | null | src/cray/cfs/operator/__main__.py | Cray-HPE/cfs-operator | 16cd12155ba52b89e504ed668c49b544b92d3794 | [
"MIT"
] | 2 | 2021-12-16T19:29:28.000Z | 2022-03-02T22:38:35.000Z | src/cray/cfs/operator/__main__.py | Cray-HPE/cfs-operator | 16cd12155ba52b89e504ed668c49b544b92d3794 | [
"MIT"
] | 1 | 2021-11-10T22:28:36.000Z | 2021-11-10T22:28:36.000Z | #!/usr/bin/env python
#
# MIT License
#
# (C) Copyright 2019-2022 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including wi... | 33.395973 | 94 | 0.712018 |
7fbd6c101c88c86adca08569b698ed439f1e762d | 25,986 | py | Python | disco_aws_automation/disco_metanetwork.py | amplifylitco/asiaq | a1a292f6e9cbf32a30242405e4947b17910e5369 | [
"BSD-2-Clause"
] | 27 | 2016-03-08T16:50:22.000Z | 2018-11-26T06:33:25.000Z | disco_aws_automation/disco_metanetwork.py | amplifylitco/asiaq | a1a292f6e9cbf32a30242405e4947b17910e5369 | [
"BSD-2-Clause"
] | 202 | 2016-03-08T17:13:08.000Z | 2019-02-01T00:49:06.000Z | disco_aws_automation/disco_metanetwork.py | amplify-education/asiaq | fb6004bc4da0acef40e7bc18b148db4f72fa2f32 | [
"BSD-2-Clause"
] | 2 | 2016-03-17T18:52:37.000Z | 2016-10-06T20:36:37.000Z | """
Network abstraction
"""
import logging
from random import choice
from netaddr import IPNetwork, IPAddress
from boto.ec2.networkinterface import (
NetworkInterfaceSpecification,
NetworkInterfaceCollection
)
from boto.exception import EC2ResponseError
from boto.vpc import VPCConnection
import boto3
from di... | 42.881188 | 109 | 0.619949 |
7fbda92d5e5b22dc691a6f5f033c42ec9d5340cb | 602 | py | Python | examples/docs/example1.py | jzuhone/xija | 1e423d0c48056cc4ea9e4993d28e34794c1420fa | [
"BSD-3-Clause"
] | 2 | 2016-01-05T19:20:43.000Z | 2021-06-04T08:23:08.000Z | examples/docs/example1.py | jzuhone/xija | 1e423d0c48056cc4ea9e4993d28e34794c1420fa | [
"BSD-3-Clause"
] | 61 | 2015-02-24T02:27:11.000Z | 2022-03-23T13:52:15.000Z | examples/docs/example1.py | jzuhone/xija | 1e423d0c48056cc4ea9e4993d28e34794c1420fa | [
"BSD-3-Clause"
] | 1 | 2016-01-04T21:08:17.000Z | 2016-01-04T21:08:17.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Example with a single node (ACA CCD temperature) with solar heating
(2 bins).
"""
import xija
name = __file__[:-3]
model = xija.XijaModel(name, start='2015:001', stop='2015:050')
model.add(xija.Node, 'aacccdpt')
model.add(xija.Pitch)
model.add(xi... | 20.066667 | 67 | 0.607973 |
7fbe5ab33f430353b7e3d2a97fe210687b0799f6 | 856 | py | Python | Flask/Graph/flask_graph.py | stanman71/Python | fe442e421362b22f61d05235e835a568d9ce3aef | [
"MIT"
] | 1 | 2019-02-18T18:56:07.000Z | 2019-02-18T18:56:07.000Z | Flask/Graph/flask_graph.py | stanman71/Python | fe442e421362b22f61d05235e835a568d9ce3aef | [
"MIT"
] | null | null | null | Flask/Graph/flask_graph.py | stanman71/Python | fe442e421362b22f61d05235e835a568d9ce3aef | [
"MIT"
] | null | null | null | # https://technovechno.com/creating-graphs-in-python-using-matplotlib-flask-framework-pythonanywhere/
# https://stackoverflow.com/questions/50728328/python-how-to-show-matplotlib-in-flask
from flask import Flask, render_template
from graph import build_graph
app = Flask(__name__)
if __name__ == '__main__... | 27.612903 | 102 | 0.625 |
7fc041998c5f911ec0835b904ff421afbc6ae394 | 594 | py | Python | webapp/extensions.py | openbikebox/open-bike-box-connect | ed153dd191c75810cbd2d9b74aee2962380a54d0 | [
"MIT"
] | 1 | 2021-04-07T18:42:41.000Z | 2021-04-07T18:42:41.000Z | webapp/extensions.py | openbikebox/open-bike-box-connect | ed153dd191c75810cbd2d9b74aee2962380a54d0 | [
"MIT"
] | null | null | null | webapp/extensions.py | openbikebox/open-bike-box-connect | ed153dd191c75810cbd2d9b74aee2962380a54d0 | [
"MIT"
] | 1 | 2021-04-07T18:42:55.000Z | 2021-04-07T18:42:55.000Z | # encoding: utf-8
"""
open booking connect
Copyright (c) 2021, binary butterfly GmbH
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
"""
from .common.database import QuartDatabase
db = QuartDatabase()
from .common.logger import Logger
logger = Logger()
from .common... | 22.846154 | 98 | 0.781145 |
f68110d06e89b1eedf0ec730b2d3342465b0961c | 2,687 | py | Python | inventory-check.py | jwnichols3/s3-batch-ops-restore-status-check | 0331cdbf68f5b7dc71042aece8d128af4cd523f0 | [
"Apache-2.0"
] | null | null | null | inventory-check.py | jwnichols3/s3-batch-ops-restore-status-check | 0331cdbf68f5b7dc71042aece8d128af4cd523f0 | [
"Apache-2.0"
] | null | null | null | inventory-check.py | jwnichols3/s3-batch-ops-restore-status-check | 0331cdbf68f5b7dc71042aece8d128af4cd523f0 | [
"Apache-2.0"
] | null | null | null | import argparse
import boto3
from botocore.exceptions import ClientError
from urllib.parse import unquote
import time
from smart_open import open
import os
import sys
s3 = boto3.resource('s3')
parser = argparse.ArgumentParser(
description="Analyze Inventory Files")
parser.add_argument('--inventory_file', '-i',
... | 33.5875 | 226 | 0.694827 |
f6827b188401595203a70b0eec5054bb98bd151d | 999 | py | Python | source/faker_extensions/tattoo_provider.py | UKHomeOffice/PythonFakerExtensions | 7b515956e36608a9344ab2a8a57b48387a1be54c | [
"MIT"
] | null | null | null | source/faker_extensions/tattoo_provider.py | UKHomeOffice/PythonFakerExtensions | 7b515956e36608a9344ab2a8a57b48387a1be54c | [
"MIT"
] | null | null | null | source/faker_extensions/tattoo_provider.py | UKHomeOffice/PythonFakerExtensions | 7b515956e36608a9344ab2a8a57b48387a1be54c | [
"MIT"
] | 1 | 2021-04-11T09:14:48.000Z | 2021-04-11T09:14:48.000Z | from enum import Enum
from random import randint
from faker import Faker
from faker_extensions.abstract_providers import WeightedProvider
from faker_extensions.common_categories import Gender
from faker_extensions.distinguishing_features_provider import BodyArea
def main():
""" Get tattoo's by gender and distri... | 27 | 74 | 0.704705 |
f6871130aca8bc035570cfce18414c9e75c78265 | 238 | py | Python | lpthw/ex15p2.py | jaredmanning/learning | 1d1767ea78a8f9f72275b18147d47bfc44a1696e | [
"MIT"
] | null | null | null | lpthw/ex15p2.py | jaredmanning/learning | 1d1767ea78a8f9f72275b18147d47bfc44a1696e | [
"MIT"
] | null | null | null | lpthw/ex15p2.py | jaredmanning/learning | 1d1767ea78a8f9f72275b18147d47bfc44a1696e | [
"MIT"
] | null | null | null | from sys import argv
script, filename = argv
# First we open the file that was created in the normal excercise
textfile = open(filename)
#Next we print its contents
print textfile.read()
# Now we close the damn thing
textfile.close()
| 18.307692 | 65 | 0.760504 |
f687363bbe027e7fee10fb9ed06c03c8bca72792 | 1,626 | py | Python | dbas/helper/tests/test_query.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 23 | 2017-05-18T13:33:51.000Z | 2021-12-26T18:04:09.000Z | dbas/helper/tests/test_query.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 8 | 2019-12-26T17:19:44.000Z | 2020-05-28T15:38:31.000Z | dbas/helper/tests/test_query.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 7 | 2017-09-27T11:15:42.000Z | 2021-12-26T18:12:38.000Z | from dbas.database import DBDiscussionSession
from dbas.database.discussion_model import ShortLinks
from dbas.helper.query import set_user_language, generate_short_url
from dbas.tests.utils import TestCaseWithConfig
| 36.954545 | 86 | 0.686962 |
f687ceae557a30b4c24e95330633294a15df8931 | 1,029 | py | Python | src/lib/StandardSensorSweep.py | sredbull/steep-hooked | 8a624927a22f39c728dc116e059ab1639daadbc1 | [
"MIT"
] | null | null | null | src/lib/StandardSensorSweep.py | sredbull/steep-hooked | 8a624927a22f39c728dc116e059ab1639daadbc1 | [
"MIT"
] | 16 | 2021-12-22T20:26:29.000Z | 2022-03-01T00:08:04.000Z | src/lib/StandardSensorSweep.py | sredbull/steep-hooked | 8a624927a22f39c728dc116e059ab1639daadbc1 | [
"MIT"
] | null | null | null | from sensorSimulation import sweeper
from System.Timers import Timer
eventTimer = Timer(1000)
sweepCadence = sweeper()
sweepCadence.minValue = 0.0
sweepCadence.maxValue = 254.0
sweepCadence.sweepTime = 60
sweepCadence.constantTime = 5.0
eventCount = 1
logScriptEvent("Sweeping Instantaneous Power & Inst... | 27.810811 | 74 | 0.782313 |
f68b865589b413c178df9c90f4d9076655b75ea3 | 4,036 | py | Python | hw2/test.py | zeynepCankara/NTU_DLCV2019 | 2dc44584ec7b9e1d84e688551eb8cef48d501b45 | [
"MIT"
] | 1 | 2022-01-17T14:28:46.000Z | 2022-01-17T14:28:46.000Z | hw2/test.py | zeynepCankara/NTU_DLCV2019 | 2dc44584ec7b9e1d84e688551eb8cef48d501b45 | [
"MIT"
] | null | null | null | hw2/test.py | zeynepCankara/NTU_DLCV2019 | 2dc44584ec7b9e1d84e688551eb8cef48d501b45 | [
"MIT"
] | 2 | 2021-11-08T19:05:57.000Z | 2022-01-17T14:28:48.000Z | import os
import parser
import models
import data
import data_test
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from sklearn.metrics import accuracy_score
import skimage
from mean_iou_evaluate import mean_iou_score
# import torch library
import torch
# model... | 30.345865 | 106 | 0.557483 |
f68c0aed306b7f3cb69cdebd512e4da33319782f | 7,028 | py | Python | config/custom_components/ir_fan/fan.py | Poeschl/home-assistant-config | 380640bc46b14542866fbf8bbdc4218b2d58b55c | [
"MIT"
] | 7 | 2020-05-29T11:54:36.000Z | 2021-11-20T06:24:31.000Z | config/custom_components/ir_fan/fan.py | Poeschl/home-assistant-config | 380640bc46b14542866fbf8bbdc4218b2d58b55c | [
"MIT"
] | null | null | null | config/custom_components/ir_fan/fan.py | Poeschl/home-assistant-config | 380640bc46b14542866fbf8bbdc4218b2d58b55c | [
"MIT"
] | 1 | 2022-02-17T03:13:52.000Z | 2022-02-17T03:13:52.000Z | import logging
import asyncio
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.fan import (
FanEntity, PLATFORM_SCHEMA, SPEED_OFF, SUPPORT_SET_SPEED, SUPPORT_OSCILLATE, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH)
from homeassistant.const import (
CONF_NAME, ... | 33.788462 | 140 | 0.652675 |
f68c414cfe15c93050fbef9ed4e125294af5c073 | 2,405 | py | Python | billingclient/v1/client.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | 1 | 2018-01-04T16:20:51.000Z | 2018-01-04T16:20:51.000Z | billingclient/v1/client.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | null | null | null | billingclient/v1/client.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | null | null | null | # NubeliU Billing SDK
# @autor: Sergio Colinas
from stevedore import extension
from billingclient import client as ckclient
from billingclient.openstack.common.apiclient import client
from billingclient.v1 import chart
from billingclient.v1 import core
from billingclient.v1 import metric
from billingclient.v1.rating.g... | 38.790323 | 74 | 0.664449 |
f68c7b6a1c337b78b3059bef1f2eeb2a9a2ad6e5 | 208 | py | Python | stackoverflow/__init__.py | wereii/we-cogs | 327ef21f0a777b7411bbe51f6df69ef46433f597 | [
"MIT"
] | null | null | null | stackoverflow/__init__.py | wereii/we-cogs | 327ef21f0a777b7411bbe51f6df69ef46433f597 | [
"MIT"
] | 1 | 2019-11-13T18:55:10.000Z | 2019-11-13T18:55:10.000Z | stackoverflow/__init__.py | wereii/we-cogs | 327ef21f0a777b7411bbe51f6df69ef46433f597 | [
"MIT"
] | null | null | null | # This init is required for each cog.
# Import your main class from the cog's folder.
from .stackoverflow import StackOverflow
| 23.111111 | 47 | 0.725962 |
f68ee06b4403b24127d1bc436027460ec0d3f2b5 | 2,658 | py | Python | Console/Module/ClassBroadcast.py | yangzhongtian001/PYCM | 081e200cf53024c45d94f9896bafdde0e23e0aa4 | [
"Apache-2.0"
] | 29 | 2021-02-01T12:30:19.000Z | 2022-03-24T13:40:34.000Z | Console/Module/ClassBroadcast.py | yangzhongtian001/PYCM | 081e200cf53024c45d94f9896bafdde0e23e0aa4 | [
"Apache-2.0"
] | 4 | 2021-02-01T12:33:52.000Z | 2021-11-06T02:27:21.000Z | Console/Module/ClassBroadcast.py | yangzhongtian001/PYCM | 081e200cf53024c45d94f9896bafdde0e23e0aa4 | [
"Apache-2.0"
] | 18 | 2021-11-16T15:28:27.000Z | 2022-03-17T00:09:42.000Z | from PyQt5.QtCore import QObject
import socket
import struct
import base64
from Module.Packages import ClassBroadcastFlag
| 39.671642 | 100 | 0.701279 |
f6908dcaaa5d2842b23cd9c05cdda3c923e0e6a0 | 3,572 | py | Python | main.py | berkurka/chameleon | ee84a5a7da1e49734ffd885606aa39db73e6ae9d | [
"MIT"
] | null | null | null | main.py | berkurka/chameleon | ee84a5a7da1e49734ffd885606aa39db73e6ae9d | [
"MIT"
] | null | null | null | main.py | berkurka/chameleon | ee84a5a7da1e49734ffd885606aa39db73e6ae9d | [
"MIT"
] | 1 | 2020-11-16T01:07:33.000Z | 2020-11-16T01:07:33.000Z | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
# pip install pypdf2
# conda install -c conda-forge pypdf2
# In[ ]:
import os
import re
import pandas as pd
import PyPDF2
# In[ ]:
INP_PATH = './input/'
OUT_PATH = './output/'
# In[ ]:
def load_pdf_files(file_path:str):
'''
Loads pdf files and into P... | 22.049383 | 84 | 0.468085 |
f690fdd47205b08324635e05a16d09bdf0637cc9 | 8,913 | py | Python | pydyn/solvers/RungeKuttaFehlberg.py | rwl/PyDyn | 87f89c63fdb1bc9449c05430dd4265eece771739 | [
"Apache-2.0"
] | 4 | 2017-04-12T05:19:19.000Z | 2021-08-28T18:41:53.000Z | pydyn/solvers/RungeKuttaFehlberg.py | rwl/PyDyn | 87f89c63fdb1bc9449c05430dd4265eece771739 | [
"Apache-2.0"
] | null | null | null | pydyn/solvers/RungeKuttaFehlberg.py | rwl/PyDyn | 87f89c63fdb1bc9449c05430dd4265eece771739 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2009 Stijn Cole
# Copyright (C) 2010-2011 Richard Lincoln
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 32.889299 | 131 | 0.556042 |
f692b2b698a75b104d98d5b6025c0874f29e10b4 | 279 | py | Python | ArticleSpider/utils/zhihu_login.py | zxjlm/ArticleSpider | 0fdfa29733c1739ddb230cf15f9331ea2122905c | [
"MIT"
] | null | null | null | ArticleSpider/utils/zhihu_login.py | zxjlm/ArticleSpider | 0fdfa29733c1739ddb230cf15f9331ea2122905c | [
"MIT"
] | null | null | null | ArticleSpider/utils/zhihu_login.py | zxjlm/ArticleSpider | 0fdfa29733c1739ddb230cf15f9331ea2122905c | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
__author__ = 'harumonia'
import requests
import cookiejar as cookielib
import re
| 18.6 | 47 | 0.666667 |
f69362c8e53efb7e2fecf441d12805e528ccf267 | 188 | py | Python | util/tokenizer/base_tokenizer.py | Kimgijoon/Product-recommendation-system | 6163dc8ff46f8f4b003c13f56eb7ed30943d03b0 | [
"Apache-2.0"
] | 2 | 2021-04-03T13:32:55.000Z | 2021-04-04T07:20:12.000Z | util/tokenizer/base_tokenizer.py | Kimgijoon/Product-recommendation-system | 6163dc8ff46f8f4b003c13f56eb7ed30943d03b0 | [
"Apache-2.0"
] | null | null | null | util/tokenizer/base_tokenizer.py | Kimgijoon/Product-recommendation-system | 6163dc8ff46f8f4b003c13f56eb7ed30943d03b0 | [
"Apache-2.0"
] | null | null | null | from abc import abstractmethod
from typing import List
| 18.8 | 45 | 0.723404 |
f695a0f7bbf428a5741cd48621797ea600fe6aa3 | 1,898 | py | Python | twitter/dbconnect.py | madeleinel/womentor | 3623ced61a2ee81e9d403d4011e3830c36e50918 | [
"MIT"
] | 2 | 2017-03-16T09:11:54.000Z | 2017-03-24T13:29:15.000Z | twitter/dbconnect.py | madeleinel/womentor | 3623ced61a2ee81e9d403d4011e3830c36e50918 | [
"MIT"
] | 42 | 2017-03-12T10:08:18.000Z | 2017-04-05T11:08:21.000Z | twitter/dbconnect.py | madeleinel/womentor | 3623ced61a2ee81e9d403d4011e3830c36e50918 | [
"MIT"
] | 1 | 2017-04-03T17:12:37.000Z | 2017-04-03T17:12:37.000Z | from configvars import database_url
from sqlalchemy import *
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.session import sessionmaker
engine = create_engine(database_url)
Session = sessionmaker(bind=engine)
session = Session()
# # now session is a... | 34.509091 | 78 | 0.721286 |
f696efa59729939ba926957507833fcd86d29ed3 | 288,902 | py | Python | google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/services/google_ads_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from g... | 89.3051 | 38,948 | 0.833279 |
f69743b787b702578c7ba56ec9b8b5874bcafb55 | 6,668 | py | Python | main.py | foobarbazblarg/subreddit-grabber | 03d240c824e5dd810ccd40674df950f3e26d02c6 | [
"MIT"
] | null | null | null | main.py | foobarbazblarg/subreddit-grabber | 03d240c824e5dd810ccd40674df950f3e26d02c6 | [
"MIT"
] | null | null | null | main.py | foobarbazblarg/subreddit-grabber | 03d240c824e5dd810ccd40674df950f3e26d02c6 | [
"MIT"
] | null | null | null | import praw
import datetime
from ConfigParser import ConfigParser
import OAuth2Util
import os
import markdown
import bleach
import sys
import mysql.connector
from mysql.connector import errorcode
reload(sys)
sys.setdefaultencoding('utf8')
config = ConfigParser()
config.read("./subreddit-grabber.cfg")
subredditName = ... | 42.471338 | 275 | 0.673965 |
f697747af011ec78b14bc18aa233c9ce0da6df30 | 205 | py | Python | tests/unit/test_module.py | briancline/jmap | 475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1 | [
"MIT"
] | 6 | 2017-07-31T20:01:59.000Z | 2021-07-10T21:48:11.000Z | tests/unit/test_module.py | briancline/jmap | 475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1 | [
"MIT"
] | 1 | 2017-05-13T07:30:00.000Z | 2017-05-13T07:30:00.000Z | tests/unit/test_module.py | briancline/jmap | 475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1 | [
"MIT"
] | 3 | 2017-10-31T15:25:55.000Z | 2020-12-10T16:58:52.000Z | import unittest
import jmap
| 20.5 | 49 | 0.721951 |
f697902655c546a9b52d9b54de085df083209dfb | 2,120 | py | Python | app.py | zelihaerim/ToDoAppWithFlask | c4c904976a25e4781a6366ec753f2ac7774be2c3 | [
"Apache-2.0"
] | null | null | null | app.py | zelihaerim/ToDoAppWithFlask | c4c904976a25e4781a6366ec753f2ac7774be2c3 | [
"Apache-2.0"
] | null | null | null | app.py | zelihaerim/ToDoAppWithFlask | c4c904976a25e4781a6366ec753f2ac7774be2c3 | [
"Apache-2.0"
] | null | null | null |
from flask import Flask,render_template,request
from flask.globals import request
from flask.helpers import url_for
from werkzeug.utils import redirect
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////Users/Zeliha/Desktop/TodoApp/todo.db'
db = SQLAlchem... | 32.121212 | 89 | 0.690566 |
f697ec6fc787c238ea294d841019f5bb361224e4 | 4,558 | py | Python | knn_kdtree.py | zhoucen/ml | 8f0386f57597f3f25ff2e844f682325ed7d97f20 | [
"MIT"
] | 1 | 2015-06-17T04:30:40.000Z | 2015-06-17T04:30:40.000Z | knn_kdtree.py | zhoucen/ml | 8f0386f57597f3f25ff2e844f682325ed7d97f20 | [
"MIT"
] | null | null | null | knn_kdtree.py | zhoucen/ml | 8f0386f57597f3f25ff2e844f682325ed7d97f20 | [
"MIT"
] | null | null | null | #coding=utf-8
import os
import math
import collections
def initial():
train_set = [((2, 3), 0), ((5, 4), 0), ((9, 6), 1), ((4, 7), 0), ((8, 1), 1), ((7, 2), 1)] #
k = 3 # k
dist = Euclidean_dist #
dot = (1, 1.9) #
kd_tree = KdTree(train_set) # Kd Tree
return train_set, k, dist, dot, ... | 31.652778 | 126 | 0.529399 |
f697fcf33036f0447c00db52e0fcc8aab5a7c40c | 3,488 | py | Python | utils/build_nfr_dataset.py | chaiyujin/AudioDVP | 1b7a6bc85bda6df16c9709d08d7b1415b449c584 | [
"MIT"
] | 200 | 2020-11-14T16:23:11.000Z | 2022-03-31T17:40:37.000Z | utils/build_nfr_dataset.py | chaiyujin/AudioDVP | 1b7a6bc85bda6df16c9709d08d7b1415b449c584 | [
"MIT"
] | 36 | 2020-11-15T14:17:51.000Z | 2022-01-04T08:22:43.000Z | utils/build_nfr_dataset.py | chaiyujin/AudioDVP | 1b7a6bc85bda6df16c9709d08d7b1415b449c584 | [
"MIT"
] | 42 | 2020-11-14T16:29:18.000Z | 2022-03-20T01:16:39.000Z | """
Following https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/blob/master/datasets/combine_A_and_B.py
"""
import os
import cv2
import numpy as np
from tqdm import tqdm
import sys
sys.path.append(".")
from models import networks
from options.options import Options
from utils.util import create_dir, load_coef,... | 39.191011 | 106 | 0.639335 |
f698dad22020589950c8089c9875710976db064e | 502 | py | Python | lit_main.py | Mindful/gector | 92d13263a9ccf402070ee1ec5825de1f8c28fc14 | [
"Apache-2.0"
] | null | null | null | lit_main.py | Mindful/gector | 92d13263a9ccf402070ee1ec5825de1f8c28fc14 | [
"Apache-2.0"
] | null | null | null | lit_main.py | Mindful/gector | 92d13263a9ccf402070ee1ec5825de1f8c28fc14 | [
"Apache-2.0"
] | null | null | null | from lit_nlp import dev_server
from lit_nlp import server_flags
from absl import app
from lit_classes import GectorBertModel, GeceProdigyData
if __name__ == "__main__":
app.run(main)
| 26.421053 | 78 | 0.741036 |
f699061b2bbf5ff76fa79f4d51d6a690622f7110 | 666 | py | Python | pyxrd/file_parsers/goniometer_parsers/__init__.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 27 | 2018-06-15T15:28:18.000Z | 2022-03-10T12:23:50.000Z | pyxrd/file_parsers/goniometer_parsers/__init__.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 22 | 2018-06-14T08:29:16.000Z | 2021-07-05T13:33:44.000Z | pyxrd/file_parsers/goniometer_parsers/__init__.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 8 | 2019-04-13T13:03:51.000Z | 2021-06-19T09:29:11.000Z | # coding=UTF-8
# ex:ts=4:sw=4:et=on
# Copyright (c) 2013, Mathijs Dumon
# All rights reserved.
# Complete license can be found in the LICENSE file.
import zipfile
from pyxrd.generic.io import get_case_insensitive_glob, COMPRESSION
from pyxrd.file_parsers.json_parser import JSONParser
from pyxrd.file_parsers.registr... | 26.64 | 67 | 0.780781 |
f69a0402d79e3e6e23987987a39cea442751a085 | 5,650 | py | Python | src/genotype/mutagen/option.py | sash-a/CoDeepNEAT | 3476078a48986107ea1fc1a7ab1b42a55ac4f62f | [
"MIT"
] | 28 | 2019-10-18T06:44:00.000Z | 2021-11-09T18:54:52.000Z | src/genotype/mutagen/option.py | sash-a/CoDeepNEAT | 3476078a48986107ea1fc1a7ab1b42a55ac4f62f | [
"MIT"
] | 2 | 2019-10-21T07:21:52.000Z | 2022-01-12T22:34:03.000Z | src/genotype/mutagen/option.py | sash-a/CoDeepNEAT | 3476078a48986107ea1fc1a7ab1b42a55ac4f62f | [
"MIT"
] | 11 | 2019-07-01T13:01:32.000Z | 2022-03-31T20:18:56.000Z | import random
from typing import Dict, Any, Union, List
from src.genotype.mutagen import mutagen as MutagenFile
from src.genotype.mutagen.mutagen import Mutagen
from src.genotype.neat.operators.mutators.mutation_report import MutationReport
def interpolate_submutagens(mutagen_a: Option, mutagen_b: Option):
su... | 37.417219 | 120 | 0.641239 |
f69a6a8b42d76e0e9d08c5bd6c7c15447c9d0847 | 1,351 | py | Python | solutions/0169-majority-element/majority-element.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0169-majority-element/majority-element.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0169-majority-element/majority-element.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | # Given an array of size n, find the majority element. The majority element is the element that appears more than n/2 times.
#
# You may assume that the array is non-empty and the majority element always exist in the array.
#
# Example 1:
#
#
# Input: [3,2,3]
# Output: 3
#
# Example 2:
#
#
# Input: [2,2,1,1,1,2... | 18.506849 | 129 | 0.592894 |
f69a7073c8aa756b577c30107b1f581b0badf39a | 1,709 | py | Python | servers/viewset.py | foundations/nodequery-server | f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1 | [
"MIT"
] | 81 | 2021-01-05T14:30:23.000Z | 2021-11-10T23:26:38.000Z | servers/viewset.py | foundations/nodequery-server | f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1 | [
"MIT"
] | 2 | 2021-02-09T05:16:10.000Z | 2021-02-26T02:21:11.000Z | servers/viewset.py | foundations/nodequery-server | f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1 | [
"MIT"
] | 32 | 2021-01-05T15:23:20.000Z | 2021-10-20T08:17:14.000Z | from django.http import Http404
from django.db.models import Q
from rest_framework.response import Response
from rest_framework import status, generics, viewsets
from django_filters.rest_framework import DjangoFilterBackend
# from rest_framework_filters.backends import DjangoFilterBackend as rsf_DjangoFilterBackend
... | 37.152174 | 96 | 0.800468 |
f69b35574cfb6a7f842438c399bfb0ddf88909e6 | 3,972 | py | Python | old_phase_gen.py | cthom055/gen_audio_rnn | bb244a538cf83ae283bc490d6f9f0d245f4e6cc0 | [
"MIT"
] | 1 | 2020-01-09T06:45:18.000Z | 2020-01-09T06:45:18.000Z | old_phase_gen.py | cthom055/gen_audio_rnn | bb244a538cf83ae283bc490d6f9f0d245f4e6cc0 | [
"MIT"
] | null | null | null | old_phase_gen.py | cthom055/gen_audio_rnn | bb244a538cf83ae283bc490d6f9f0d245f4e6cc0 | [
"MIT"
] | null | null | null | #This python script acts a function library used by the other files to the generate phases.
# coding: utf-8
# In[13]:
#inport nessessary libraries.
import os
import numpy as np
import librosa
# In[9]:
#Polar to read convertion of numpy matricies
# In[10]:
#this function output the frequency increment of each bi... | 43.173913 | 171 | 0.73716 |
f69b801d1aad3f7c50691c620ba96ade26870d95 | 8,145 | py | Python | kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | import inspect
import logging
import re
import sys
from .runtime.qualname import get_qualname
from .runtime.decorated import get_decorated
try: # py2/3 compatibility
basestring
except NameError:
basestring = (str, bytes)
try:
import builtins
except ImportError:
import __builtin__ as builtins
_PY3 =... | 31.206897 | 130 | 0.641621 |
f69d50b79bb2cf94bbd6f6e08bfe1cc9753de50a | 3,929 | py | Python | tests/st/ops/gpu/test_dropout_nd.py | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/st/ops/gpu/test_dropout_nd.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | tests/st/ops/gpu/test_dropout_nd.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 39.29 | 114 | 0.694833 |
f69d983260154b7c587e7a2f65e955149432f5db | 99 | py | Python | CodeChef/Python Codes/TSORT.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | CodeChef/Python Codes/TSORT.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | CodeChef/Python Codes/TSORT.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | import sys
n=int(raw_input())
a=[]
a=map(int,sys.stdin)
a.sort()
for _ in a:
print _
| 11 | 21 | 0.565657 |
f69f1fed5cdb673fcdaeff3944d87246ff0fa59c | 1,846 | py | Python | custom_components/envoystream/config_flow.py | PoppyPop/integration_envoystream | 8faf951e30c9fae5cea1cf13a56255cd291dd569 | [
"MIT"
] | null | null | null | custom_components/envoystream/config_flow.py | PoppyPop/integration_envoystream | 8faf951e30c9fae5cea1cf13a56255cd291dd569 | [
"MIT"
] | 28 | 2022-01-26T18:22:37.000Z | 2022-03-31T18:23:34.000Z | custom_components/envoystream/config_flow.py | PoppyPop/integration_envoystream | 8faf951e30c9fae5cea1cf13a56255cd291dd569 | [
"MIT"
] | null | null | null | """Config flow for IRegul integration."""
from __future__ import annotations
import logging
from typing import Any
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from .const import CONF_HOST
from .const import CONF_PASSWORD
from .const import CONF_USERN... | 27.969697 | 86 | 0.686891 |
f69f531965456d98859d0057da7c70b698a88862 | 4,940 | py | Python | controllers/vessel/vessel_vpn_update.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | null | null | null | controllers/vessel/vessel_vpn_update.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | 6 | 2020-03-30T23:11:27.000Z | 2022-03-12T00:21:45.000Z | controllers/vessel/vessel_vpn_update.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=too-many-arguments, too-many-locals, too-many-statements, too-many-instance-attributes, too-many-branches, no-member, no-name-in-module, anomalous-backslash-in-string, too-many-function-args, no-self-use
"""VPN Update"""
import time
import urllib.request
from configparser import ConfigParser
from... | 31.666667 | 222 | 0.548583 |
f6a1ab7a5685a3961db0eeae7e99d46d7957d6a0 | 1,297 | py | Python | d12p1.py | Maselkov/advent-of-code-2020 | a719127ce21e4731ddb9132c8c7f42856c972220 | [
"MIT"
] | null | null | null | d12p1.py | Maselkov/advent-of-code-2020 | a719127ce21e4731ddb9132c8c7f42856c972220 | [
"MIT"
] | null | null | null | d12p1.py | Maselkov/advent-of-code-2020 | a719127ce21e4731ddb9132c8c7f42856c972220 | [
"MIT"
] | null | null | null | import puzzleinput
x = 0
y = 0
x_direction = 1
y_direction = 0
for line in puzzleinput.lines:
action = line[0]
value = int(line[1:])
if action == "F":
x += x_direction * value
y += y_direction * value
if action == "N":
y -= value
if action == "S":
y += value
if a... | 25.431373 | 36 | 0.428682 |
f6a218a53ac1edd1067e3e1d89028beb187d4302 | 47 | py | Python | football/__init__.py | Zebfred/DS-OOP-Review | e44577d145f40039457793caa484016443bb39c6 | [
"MIT"
] | null | null | null | football/__init__.py | Zebfred/DS-OOP-Review | e44577d145f40039457793caa484016443bb39c6 | [
"MIT"
] | null | null | null | football/__init__.py | Zebfred/DS-OOP-Review | e44577d145f40039457793caa484016443bb39c6 | [
"MIT"
] | 4 | 2019-12-04T22:35:09.000Z | 2020-01-21T08:53:34.000Z | """
Still empty, but will keep you updated
""" | 15.666667 | 39 | 0.659574 |
f6a2c7e0854b4bfb4bdf91f358afcc75ceac053b | 167 | py | Python | app.py | Pandelytics/pandelytics | 5950d4a95595dadf076ac9270be0dbcdcfa59a1a | [
"Apache-2.0"
] | null | null | null | app.py | Pandelytics/pandelytics | 5950d4a95595dadf076ac9270be0dbcdcfa59a1a | [
"Apache-2.0"
] | 11 | 2020-04-02T22:36:36.000Z | 2020-09-27T11:19:23.000Z | app.py | Pandelytics/pandelytics | 5950d4a95595dadf076ac9270be0dbcdcfa59a1a | [
"Apache-2.0"
] | 1 | 2020-10-07T15:48:06.000Z | 2020-10-07T15:48:06.000Z | import json
from pandelytics import search
if __name__ == "__main__":
news = search.search("jhu", "Data")
if news:
print(json.dumps(news, indent=4))
| 18.555556 | 41 | 0.652695 |
f6a31c2011000a082736d9d587f09c391b1c8680 | 900 | py | Python | 5-python-dataviz-notebook/4-matplotlib_decorating_plots.py | reetasharma11/winter2020-code | 6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7 | [
"MIT"
] | 1 | 2020-02-11T04:29:14.000Z | 2020-02-11T04:29:14.000Z | 5-python-dataviz-notebook/4-matplotlib_decorating_plots.py | reetasharma11/winter2020-code | 6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7 | [
"MIT"
] | null | null | null | 5-python-dataviz-notebook/4-matplotlib_decorating_plots.py | reetasharma11/winter2020-code | 6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7 | [
"MIT"
] | 5 | 2020-01-18T21:22:04.000Z | 2020-02-27T23:00:07.000Z | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
import os
linear = np.arange(1, 20)
square = linear ** 2
log = np.log(linear)
random = np.random.randint(0, 100, 20)
fig, axes = plt.subplots(2, 1, figsize=(5, 5))
# In order to decorate plots we can set the title, the x/y label and the ticks... | 27.272727 | 84 | 0.735556 |
f6a5507a124cc84322328feab772d57c8ebeb1a8 | 772 | py | Python | markdown2pdf/css_styles.py | simao-ferreira/markdown-resume | c01fd8700e40d2eda4ba7ea3a03be13b00d0709c | [
"MIT"
] | null | null | null | markdown2pdf/css_styles.py | simao-ferreira/markdown-resume | c01fd8700e40d2eda4ba7ea3a03be13b00d0709c | [
"MIT"
] | null | null | null | markdown2pdf/css_styles.py | simao-ferreira/markdown-resume | c01fd8700e40d2eda4ba7ea3a03be13b00d0709c | [
"MIT"
] | null | null | null | import os
from settings import STYLES_DIR
| 29.692308 | 69 | 0.651554 |
f6a5f9427bcd35cf17e213bb60dc81bb58e7cdee | 783 | py | Python | forecast/util/univariate_forecast_item.py | jobine/smartAI-plugin | b19709315eccf553518fceed1b369be709b113ce | [
"MIT"
] | null | null | null | forecast/util/univariate_forecast_item.py | jobine/smartAI-plugin | b19709315eccf553518fceed1b369be709b113ce | [
"MIT"
] | null | null | null | forecast/util/univariate_forecast_item.py | jobine/smartAI-plugin | b19709315eccf553518fceed1b369be709b113ce | [
"MIT"
] | null | null | null | from common.util.constant import TIMESTAMP
FORECAST_VALUE = 'forecastValue'
CONFIDENCE = 'confidence'
UPPER_BOUNDARY = 'upperBoundary'
LOWER_BOUNDARY = 'lowerBoundary'
| 41.210526 | 116 | 0.739464 |
f6a60d0fa2163b6eee0c0cf66c93273831f0ea5e | 33,075 | py | Python | configuration_driver.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | configuration_driver.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | configuration_driver.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | """
Data base save and recall motor positions
Author: Friedrich Schotte
Date created: 2013-11-29
Date last modified: 2019-05-28
"""
__version__ = "4.1.2" # "%s.line%d.%s" % (..,int(row),..): ValueError: cannot convert float NaN to integer
from logging import debug,info,warn,error
import numpy
numpy.warnings.filterwarn... | 39.993954 | 106 | 0.641391 |
f6a6f92bdae1e2320d7606a320a1b644f61b3a4d | 191 | py | Python | python_tuto_variables.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | python_tuto_variables.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | python_tuto_variables.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | # global variables
x = "awesome"
myfunc()
print("Python is " + x)
# Global Keyword
func() | 10.611111 | 25 | 0.560209 |
f6a6f96660b59865f95a5c11e6f5b37b62d8c6b8 | 19,911 | py | Python | glycan_profiling/composition_distribution_model/glycome_network_smoothing.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 4 | 2019-04-26T15:47:57.000Z | 2021-04-20T22:53:58.000Z | glycan_profiling/composition_distribution_model/glycome_network_smoothing.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 8 | 2017-11-22T19:20:20.000Z | 2022-02-14T01:49:58.000Z | glycan_profiling/composition_distribution_model/glycome_network_smoothing.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 3 | 2017-11-21T18:05:28.000Z | 2021-09-23T18:38:33.000Z | import numpy as np
from glypy import GlycanComposition
from glycan_profiling.database.composition_network import (
CompositionGraphNode, NeighborhoodWalker)
from glycan_profiling.task import log_handle
from .constants import (
DEFAULT_LAPLACIAN_REGULARIZATION,
NORMALIZATION,
DEFAULT_RHO,
RESET_T... | 46.412587 | 114 | 0.657626 |
f6a940ae1fea232392cf90b5597c48422a8248e7 | 626 | py | Python | 37_function.py | onowdev/python-selflearning | 3d7245de0207a5bfcbce4f7adde60e7316b70a8e | [
"MIT"
] | null | null | null | 37_function.py | onowdev/python-selflearning | 3d7245de0207a5bfcbce4f7adde60e7316b70a8e | [
"MIT"
] | null | null | null | 37_function.py | onowdev/python-selflearning | 3d7245de0207a5bfcbce4f7adde60e7316b70a8e | [
"MIT"
] | null | null | null | # A function is a block of organized, reusable code that is used to perform a single, related action.
# Functions provide better modularity for your application and a high degree of code reusing.
# As you already know, Python gives you many built-in functions like print(),
# etc. but you can also create your own func... | 41.733333 | 102 | 0.758786 |
f6ab1104eb009ad9680af17ef349cc7bccac8a09 | 204 | py | Python | Inventario/baixa/urls.py | FuryAndRage/InventarioTeste | 6ee92fc2e209863558082f8bd88be88dfaaa1c76 | [
"Unlicense"
] | null | null | null | Inventario/baixa/urls.py | FuryAndRage/InventarioTeste | 6ee92fc2e209863558082f8bd88be88dfaaa1c76 | [
"Unlicense"
] | null | null | null | Inventario/baixa/urls.py | FuryAndRage/InventarioTeste | 6ee92fc2e209863558082f8bd88be88dfaaa1c76 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
app_name='baixa'
urlpatterns = [
path('log/', views.log_baixa, name='log_baixa'),
path('<int:pk>/produto/', views.baixa_produto, name='baixa_produto')
] | 25.5 | 69 | 0.72549 |
f6abd2bb70c830656d6dec419339541fc37671cc | 97 | py | Python | office365/sharepoint/lists/list_rule.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | office365/sharepoint/lists/list_rule.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | office365/sharepoint/lists/list_rule.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | from office365.sharepoint.base_entity import BaseEntity
| 16.166667 | 55 | 0.814433 |
f6ad4eb8b29be724bdb073d946e7e0063a5425fb | 95 | py | Python | classTest.py | csitedexperts/Python2.xPractice | fd03ceebe920a76ca47aec3651a69ba5a1cc412b | [
"Apache-2.0"
] | 3 | 2019-04-13T04:00:42.000Z | 2020-10-02T01:14:42.000Z | classTest.py | csitedexperts/Python2.xPractice | fd03ceebe920a76ca47aec3651a69ba5a1cc412b | [
"Apache-2.0"
] | null | null | null | classTest.py | csitedexperts/Python2.xPractice | fd03ceebe920a76ca47aec3651a69ba5a1cc412b | [
"Apache-2.0"
] | 2 | 2019-03-30T18:55:32.000Z | 2020-05-10T16:30:34.000Z |
t = things()
t.test("hello world")
| 13.571429 | 21 | 0.578947 |
f6ae515cfe79c68afb075360cf5f75341ab00831 | 1,497 | py | Python | tests/test_wrappers.py | chrisbrake/aerial | 6a33cf048820aab948dd24d5867e53f0f1eaa11d | [
"BSD-3-Clause"
] | null | null | null | tests/test_wrappers.py | chrisbrake/aerial | 6a33cf048820aab948dd24d5867e53f0f1eaa11d | [
"BSD-3-Clause"
] | 1 | 2018-09-20T04:39:02.000Z | 2018-09-21T04:19:15.000Z | tests/test_wrappers.py | chrisbrake/aerial | 6a33cf048820aab948dd24d5867e53f0f1eaa11d | [
"BSD-3-Clause"
] | null | null | null | import signal as s
from aerial import Feed, wrappers as w
def test_feed_init():
""" Confirm feed is initialized if it is None """
w.feed = None
w.received(s.SIGINT)
assert isinstance(w.feed, Feed)
def test_received_false():
""" Confirm the method returns False if no signal recieved """
asser... | 29.352941 | 78 | 0.678023 |
f6aee9f9d96c710dc628f8ed454d998f3e896d5b | 923 | py | Python | setup.py | newliver/tencentyun-porndetect | 0941931fd78f49c530e2071248114721154b3c9e | [
"MIT"
] | 18 | 2016-05-11T12:19:42.000Z | 2021-10-03T10:43:21.000Z | setup.py | newliver/tencentyun-porndetect | 0941931fd78f49c530e2071248114721154b3c9e | [
"MIT"
] | null | null | null | setup.py | newliver/tencentyun-porndetect | 0941931fd78f49c530e2071248114721154b3c9e | [
"MIT"
] | 5 | 2015-12-01T04:00:28.000Z | 2020-01-19T13:18:34.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from os import path
from codecs import open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description =... | 23.666667 | 63 | 0.704225 |
f6b06e24315b971b76d107d8572119071dcbbe2e | 7,230 | py | Python | heredity/heredity.py | immortal-zeus/CS50-AI_Projects | cac627ea75650960ddc22f9dd60777e3ee64eacf | [
"BSD-3-Clause"
] | 1 | 2021-06-22T06:31:59.000Z | 2021-06-22T06:31:59.000Z | heredity/heredity.py | immortal-zeus/CS50-AI_Projects | cac627ea75650960ddc22f9dd60777e3ee64eacf | [
"BSD-3-Clause"
] | null | null | null | heredity/heredity.py | immortal-zeus/CS50-AI_Projects | cac627ea75650960ddc22f9dd60777e3ee64eacf | [
"BSD-3-Clause"
] | null | null | null | import csv
import itertools
import sys
PROBS = {
# Unconditional probabilities for having gene
"gene": {
2: 0.01,
1: 0.03,
0: 0.96
},
"trait": {
# Probability of trait given two copies of gene
2: {
True: 0.65,
False: 0.35
},
... | 31.572052 | 117 | 0.547303 |
f6b0f025ad48f88945b93b850eb2f1bf03a9f188 | 2,977 | py | Python | Lab5_7/Repositories/PickleRepo.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | 4 | 2018-02-19T13:57:38.000Z | 2022-01-08T04:10:54.000Z | Lab5_7/Repositories/PickleRepo.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | null | null | null | Lab5_7/Repositories/PickleRepo.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | null | null | null | import pickle
from Repositories.BaseRepository import Repository
| 31.336842 | 102 | 0.575076 |
f6b2c3a5a820b975a2e3e297c5d76cb1dc060bb6 | 5,322 | py | Python | bibtex_interface/import_bibtex_file.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | 1 | 2020-09-23T11:54:16.000Z | 2020-09-23T11:54:16.000Z | bibtex_interface/import_bibtex_file.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | null | null | null | bibtex_interface/import_bibtex_file.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | null | null | null | #Copyright 2018 Julio Navarro
#Built at the University of Strasbourg (France). CSTB team @ ICube laboratory
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0,'../')
sys.path.insert(0,'../database_queries/')
from database_queries_biblio import *
import bibtexparser
import codecs
import unidecode
if __name__ ... | 29.731844 | 105 | 0.649192 |
f6b3328c566ef126d74431b64f1f2183ec8ed890 | 9,565 | py | Python | src/tests/ftest/security/container_security_acl.py | sherintg/daos | a54e347938a0a7b2fe8771c982336f1d28654b1f | [
"BSD-2-Clause-Patent"
] | 2 | 2021-07-14T12:21:50.000Z | 2021-07-14T12:21:52.000Z | src/tests/ftest/security/container_security_acl.py | sherintg/daos | a54e347938a0a7b2fe8771c982336f1d28654b1f | [
"BSD-2-Clause-Patent"
] | null | null | null | src/tests/ftest/security/container_security_acl.py | sherintg/daos | a54e347938a0a7b2fe8771c982336f1d28654b1f | [
"BSD-2-Clause-Patent"
] | 1 | 2021-11-03T05:00:42.000Z | 2021-11-03T05:00:42.000Z | #!/usr/bin/python3
"""
(C) Copyright 2020-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
import os
import security_test_base as secTestBase
from cont_security_test_base import ContSecurityTestBase
from pool_security_test_base import PoolSecurityTestBase
| 46.658537 | 79 | 0.612964 |
f6b3c15f1c2351ca221f6a3291a1eb60723fa6bc | 1,205 | py | Python | get_links.py | jabbalaci/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 73 | 2015-03-31T01:12:26.000Z | 2021-07-10T19:45:04.000Z | get_links.py | doc22940/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 2 | 2017-01-06T17:17:42.000Z | 2017-08-23T18:35:55.000Z | get_links.py | doc22940/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 27 | 2015-01-03T18:51:23.000Z | 2020-11-15T11:49:51.000Z | #!/usr/bin/env python3
"""
Extract all links from a web page
=================================
Author: Laszlo Szathmary, 2011 (jabba.laci@gmail.com)
Website: https://pythonadventures.wordpress.com/2011/03/10/extract-all-links-from-a-web-page/
GitHub: https://github.com/jabbalaci/Bash-Utils
Given a webpage, extract ... | 24.1 | 99 | 0.6 |
f6b6c0f6b1a695df96a661e8da3cdd75b9963602 | 2,563 | py | Python | texas/views/AnnotationViewSet.py | HeglerTissot/TEXAS | fdcfc4e4042b9c6de49d50324937858d7c1a7c45 | [
"Apache-2.0"
] | null | null | null | texas/views/AnnotationViewSet.py | HeglerTissot/TEXAS | fdcfc4e4042b9c6de49d50324937858d7c1a7c45 | [
"Apache-2.0"
] | null | null | null | texas/views/AnnotationViewSet.py | HeglerTissot/TEXAS | fdcfc4e4042b9c6de49d50324937858d7c1a7c45 | [
"Apache-2.0"
] | 1 | 2021-02-11T15:54:35.000Z | 2021-02-11T15:54:35.000Z | #!/usr/bin/python
#-*- coding: utf-8 -*-
from texas.annotations.AnnotationSet import AnnotationSet
from texas.views.AnnotationView import AnnotationView
from texas.views.CharView import CharView
from texas.views.TokenView import TokenView
from texas.views.SpanView import SpanView
from texas.views.RelationView import R... | 40.046875 | 123 | 0.633632 |
f6b8ddf5ee17747909885ae7a8e492c2e777ab81 | 1,496 | py | Python | examples/todo_react/app.py | Lothiraldan/ZeroServices | c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37 | [
"MIT"
] | 21 | 2015-01-31T17:45:42.000Z | 2017-11-12T05:02:44.000Z | examples/todo_react/app.py | Lothiraldan/ZeroServices | c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37 | [
"MIT"
] | 7 | 2015-01-07T09:52:06.000Z | 2015-02-01T00:59:35.000Z | examples/todo_react/app.py | Lothiraldan/ZeroServices | c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37 | [
"MIT"
] | 2 | 2017-06-29T19:40:42.000Z | 2019-06-01T12:18:56.000Z | import pymongo
from zeroservices import ResourceService, ZeroMQMedium
from zeroservices.backend.mongodb import MongoDBCollection, MongoDBResource
from zeroservices.memory import MemoryCollection, MemoryCollection
from zeroservices.resources import is_callable
import sys
from zmq.eventloop import ioloop, zmqstream
iol... | 27.703704 | 87 | 0.760027 |
f6ba94639224284f876fee2bcfe84861cc05d4cf | 2,743 | py | Python | slideshows/views.py | hossein20s/emencia-django-slideshows | 83b194be3943573bf3b6ed7a3839bbbcc949df67 | [
"MIT"
] | null | null | null | slideshows/views.py | hossein20s/emencia-django-slideshows | 83b194be3943573bf3b6ed7a3839bbbcc949df67 | [
"MIT"
] | null | null | null | slideshows/views.py | hossein20s/emencia-django-slideshows | 83b194be3943573bf3b6ed7a3839bbbcc949df67 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Views
"""
import random
from django.db.models import Count
from django import template
from django.views.generic.detail import DetailView
from django.utils.safestring import mark_safe
from slideshows.models import Slideshow, DEFAULT_SLIDESHOWS_TEMPLATE, DEFAULT_SLIDESHOWS_RANDOM_SLIDE_TEMP... | 31.895349 | 110 | 0.683558 |
f6baeadb060a169301ac91bc55252c337b0c1960 | 12,212 | py | Python | preprocessing_2.0/entityExtraction/code/addEntitiesToText.py | ahsi/Multilingual_Event_Extraction | eed002e864e16dc06c2b2970267b1465adcf825c | [
"MIT"
] | 34 | 2017-11-28T12:23:00.000Z | 2022-01-19T16:10:52.000Z | preprocessing_2.0/entityExtraction/code/addEntitiesToText.py | ahsi/Multilingual_Event_Extraction | eed002e864e16dc06c2b2970267b1465adcf825c | [
"MIT"
] | 3 | 2018-12-24T09:53:45.000Z | 2019-11-19T03:26:41.000Z | preprocessing_2.0/entityExtraction/code/addEntitiesToText.py | ahsi/Multilingual_Event_Extraction | eed002e864e16dc06c2b2970267b1465adcf825c | [
"MIT"
] | 9 | 2018-01-16T03:37:17.000Z | 2021-11-05T21:18:07.000Z | import sys
import xml.etree.ElementTree as ET
import string
from xml.sax.saxutils import escape
# set to maintain unique coref labels across all entities
corefSet = set()
main()
| 34.016713 | 135 | 0.560432 |