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
0e9715b939023c2f60d9e725e63e63323e77455b
2,591
py
Python
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
1
2021-03-01T07:33:45.000Z
2021-03-01T07:33:45.000Z
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
import random from src.datastruct.bin_treenode import TreeNode import unittest if __name__ == '__main__': unittest.main()
30.845238
94
0.521034
0e97700b68b96eb221fafae3d8068522c2cf22b7
728
py
Python
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Alex Loosley <a.loosley@reply.de>" from setuptools import setup, find_packages setup( name='python-highcharts_df', version='0.1.0', description='python-highcharts_df wrapper for customizable pretty plotting quickly from pandas dataframes', a...
26.962963
111
0.656593
0e97a5a6084ace1e9c1382face6d45b053e07a8c
4,013
py
Python
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
# /usr/bin/env python # -*- coding: utf-8 -*- import glob import logging import os import shutil import tarfile import tempfile import docker from flask import Flask, jsonify, request, send_file, abort app = Flask(__name__) port = 8765 download_folder = "./debs" if not os.path.exists(download_folder): os.mkdir(do...
37.157407
117
0.56616
0e97bd1c773c1a5622d071293cbf5def12d114a3
3,101
py
Python
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
3
2017-06-10T15:49:47.000Z
2019-03-15T10:04:31.000Z
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
11
2017-06-05T20:19:32.000Z
2018-06-16T21:03:37.000Z
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
2
2017-07-17T18:03:45.000Z
2021-11-12T03:36:58.000Z
from django.db import models # Description of an object in the arena # Description of an object in the arena
46.984848
119
0.741696
0e97d08d8c72216b971d686bd4bb0a40920e98b4
1,134
py
Python
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-01-30T01:52:46.000Z
2021-01-30T01:52:46.000Z
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-12-15T14:54:06.000Z
2021-12-15T14:54:06.000Z
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
2
2021-04-19T03:32:18.000Z
2021-06-22T07:06:01.000Z
# @Title: (Reorder List) # @Author: 18015528893 # @Date: 2021-02-12 16:05:36 # @Runtime: 100 ms # @Memory: 23.9 MB # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next
22.68
61
0.444444
0e9b3e893453a362db8cc46d3b47dec9fab0247b
662
py
Python
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from JumpScale import j from .ChangeTrackerClient import ChangeTrackerClient
28.782609
78
0.678248
0e9c0c6abc17a0bcd1785e2bfd3e4fe09ec9ea9b
322
py
Python
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
import os import psycopg2 DATABASE_URL = os.environ.get('DATABASE_URL') if __name__ == '__main__': test_db()
16.1
45
0.645963
0e9c65c00eed8b90cbe776879ddc8f8c8c52fe94
1,108
py
Python
VanillaGift.py
ytcrackers/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
2
2021-04-21T04:50:44.000Z
2022-03-23T14:23:16.000Z
VanillaGift.py
ytcrackers/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
1
2020-04-13T22:43:01.000Z
2020-04-13T22:43:01.000Z
VanillaGift.py
rip/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
null
null
null
from requests_html import HTMLSession from sys import argv if len(argv) != 2: print("Usage: python3 VanillaGift.py VanillaGift.txt") else: # VanillaGift card balance checker for card in reversed(list(open(argv[1]))): cardNumber, expMonth, expYear, cvv = card.rstrip().split(':') c = cardNumber + ' ' + expMo...
25.181818
68
0.626354
0e9c8f54c4bfa1885450e92bd3ef2811ccdb169b
30,069
py
Python
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
1
2021-07-01T13:34:59.000Z
2021-07-01T13:34:59.000Z
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
17
2020-12-29T15:04:09.000Z
2022-03-01T10:21:54.000Z
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Testing module for ACME's `ParallelMap` interface # # Builtin/3rd party package imports from multiprocessing import Value import os import sys import pickle import shutil import inspect import subprocess import getpass import time import itertools import logging from typing import Type impo...
45.697568
135
0.587083
0e9e025b01eb969d408f82347a8fc498cac9ab24
766
py
Python
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
1
2019-09-26T08:16:30.000Z
2019-09-26T08:16:30.000Z
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the analysis front-end object.""" import unittest from plaso.frontend import analysis_frontend from plaso.storage import zip_file as storage_zip_file from tests.frontend import test_lib if __name__ == '__main__': unittest.main()
25.533333
74
0.763708
0ea2730c361b568ac507b349f4219e90dc8e1b4e
388
py
Python
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
null
null
null
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
1
2021-10-03T10:23:17.000Z
2021-10-03T10:23:17.000Z
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
null
null
null
"""Stores constants used as numbers for readability that are used across all apps"""
24.25
84
0.615979
0ea30d061c0f6731c0b56ded5ff02ccd54a258dd
647
py
Python
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
1
2021-06-08T06:53:50.000Z
2021-06-08T06:53:50.000Z
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
null
null
null
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
null
null
null
import numpy as np from numpy import log #Se define la funcin a integrar #Implementacin del mtodo de Simpson #Parmetros: #f es la funcin a integrar #a el lmite inferior de la integral #b el lmite superior de la integral #n el nmero de intervalos main()
22.310345
46
0.525502
0ea3b1c8782a586b2613aff8826b4b27c668ede7
1,517
py
Python
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
2
2020-11-28T11:48:36.000Z
2020-11-28T11:48:38.000Z
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
5
2020-10-12T16:48:09.000Z
2021-09-13T15:17:28.000Z
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2020 Cloudify Platform Ltd. 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
30.34
79
0.678972
0ea7201b51048203ec576eca4a186c7f31e54813
169
py
Python
practice/bitwise_operations/ex2.py
recursivelycurious/wordnik-repl
9d9e96a8ebc79b95f135d5bc871602b65d2d2b79
[ "MIT" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 10/2-Introduction to Bitwise Operators/Binary representation/2-Lesson I0_ The Base 2 Number System_.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 10/2-Introduction to Bitwise Operators/Binary representation/2-Lesson I0_ The Base 2 Number System_.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
print 0b1, #1 print 0b10, #2 print 0b11, #3 print 0b100, #4 print 0b101, #5 print 0b110, #6 print 0b111 #7 print "******" print 0b1 + 0b11 print 0b11 * 0b11
15.363636
17
0.609467
0ea75c30072eee31077e1649933e02a8c3a47e21
2,617
py
Python
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
1
2020-11-10T07:22:42.000Z
2020-11-10T07:22:42.000Z
# from django.shortcuts import render # import os # from django.conf import settings # from goods.models import SKU # from contents.utils import get_categories # from goods.utils import get_breadcrumb # # def generate_static_sku_detail_html(sku_id): # # sku = SKU.objects.get(id=sku_id) # # category = sku.catego...
37.927536
101
0.620558
0ea886e8f085826ecb3e920ac582aec32c17c562
1,990
py
Python
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
import os import joblib import numpy as np import pandas as pd import sklearn_crfsuite from sklearn_crfsuite import metrics from chatbot.algorithm.question_answering.utils.ner import collate, sent2features, sent2labels if __name__ == "__main__": ner = MoviesNER() ner.fit() ner.save_model('./output/ner_...
39.019608
103
0.68995
0ea910932de6945668274ae7ffdc58e15331f4f5
393
py
Python
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
1
2020-07-24T17:53:25.000Z
2020-07-24T17:53:25.000Z
def _check_inplace(trace): """Checks that all PythonOps that were not translated into JIT format are out of place. Should be run after the ONNX pass. """ graph = trace.graph() for node in graph.nodes(): if node.kind() == 'PythonOp': if node.i('inplace'): raise R...
32.75
95
0.620865
0ea94d6989972b8a0054db5ba41efd5546eaa245
219
py
Python
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
31
2018-07-16T15:03:14.000Z
2022-03-10T08:36:09.000Z
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
216
2018-07-18T20:00:34.000Z
2021-10-05T17:40:47.000Z
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
10
2019-02-17T00:56:58.000Z
2021-11-05T13:31:37.000Z
import fault.logging
24.333333
45
0.716895
0eaa19e87c71dad721ec740eabbb2e6449cdf569
5,600
py
Python
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
1
2022-02-03T18:41:49.000Z
2022-02-03T18:41:49.000Z
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
6
2018-03-01T23:21:24.000Z
2018-03-07T18:35:52.000Z
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
null
null
null
import argparse import i18n import logging import os import rdflib import sys from termcolor import colored from timeit import default_timer as timer __VERSION__ = '0.2.0' __LOG__ = None FORMATS = ['nt', 'n3', 'turtle', 'rdfa', 'xml', 'pretty-xml'] HEADER_SEP = '=' COLUMN_SEP = '|' EMPTY_LINE = '' COLUMN_SPEC = '{:...
30.601093
78
0.637321
0eaded91ac94008a42cad76b8f191ad6073a2d0e
681
py
Python
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
null
null
null
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
7
2020-12-07T09:11:01.000Z
2022-03-02T18:15:01.000Z
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
null
null
null
from loguru import logger from scrapy.crawler import CrawlerProcess from scrapy.utils.log import DEFAULT_LOGGING from scrapy.utils.project import get_project_settings from scrape_magic.spiders.gatherer_spider import GathererSpider from scrape_magic.spiders.starcity_spider import StarcitySpider settings = get_project_...
32.428571
87
0.790015
0eae926a9f1f0cb7eec42a2b4785dbee7f9eaa01
1,842
py
Python
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
1
2022-01-16T15:03:48.000Z
2022-01-16T15:03:48.000Z
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
null
null
null
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
1
2021-11-30T08:08:02.000Z
2021-11-30T08:08:02.000Z
from flask import ( Blueprint, request, jsonify, render_template, session, redirect, url_for ) from app.models import User bp = Blueprint('auth', __name__, url_prefix='/auth')
29.709677
480
0.445711
0eafba60413846c138910dc0d814f1ad191425ea
1,841
py
Python
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
1
2020-10-01T01:07:11.000Z
2020-10-01T01:07:11.000Z
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
import json import pathlib from src.extract_old_site.extract import run_extraction from src.generate_new_site.generate import generate_site if __name__ == "__main__": script_root_dir = pathlib.Path(__file__).parent config = None with open((script_root_dir / "config.json")) as f: config = json.load...
38.354167
105
0.612167
0eaff1b214599d29b4c8677703247eacd71b69b2
671
py
Python
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
128
2017-03-20T12:42:38.000Z
2022-03-12T07:06:55.000Z
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
4
2017-03-18T04:37:36.000Z
2017-07-09T14:11:18.000Z
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
77
2017-03-19T06:49:39.000Z
2022-03-12T07:06:56.000Z
from sklearn.neural_network import MLPClassifier from commons import variables from commons import tools from scipy.stats import mode
39.470588
127
0.746647
0eb0a8f9ad766e5dfaab13e68e0f57e269d67f78
981
py
Python
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
2
2021-01-03T04:21:56.000Z
2021-02-12T12:54:58.000Z
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
"""Environments.""" import gin from alpacka.envs import bin_packing from alpacka.envs import cartpole from alpacka.envs import gfootball from alpacka.envs import octomaze from alpacka.envs import sokoban from alpacka.envs.base import * from alpacka.envs.wrappers import * # Configure envs in this module to ensure th...
35.035714
93
0.796126
0eb0ceb7a9d1916d4e8a0ee0147a33ecff45bec7
7,294
py
Python
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function __copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ 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 r...
28.271318
84
0.559364
0eb181bcfa8fca128622c8a736645617de6b33ea
1,398
py
Python
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
1
2019-03-25T11:56:05.000Z
2019-03-25T11:56:05.000Z
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
null
null
null
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
null
null
null
import os import numpy as np import random as rn from environment import Environment from keras.models import load_model os.environ['PYTHONHASHSEED'] = '0' np.random.seed(42) rn.seed(12345) number_actions = 5 direction_boundary = (number_actions - 1) / 2 temperature_step = 1.5 env = Environment(initial_number_users ...
29.744681
88
0.723891
7eba7ca1ca7a464de4552b722ba1235657cc1c18
126
py
Python
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from roomlistwatcher.common import utility
15.75
42
0.698413
7ebae62d64d2c33a33e2537a143db8237e76925d
3,992
py
Python
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
******************* PARTE I ******************************* #Instalamos git en la terminal de VSC $sudo apt-get install git -y #Revisamos la versin del Git que hemos instalado $git --version # Podemos ver tambin un resumen de las principales funcionalidades de Git $git #Creamos una carpeta $mkdir ChallengePython #Ac...
31.68254
132
0.667585
7ebbd0a9762fef47be2234772336bb6ea7cc2c82
11,661
py
Python
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
null
null
null
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
1
2021-11-11T16:38:33.000Z
2021-11-11T16:38:33.000Z
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
1
2021-11-11T00:09:55.000Z
2021-11-11T00:09:55.000Z
from typing import List, Tuple import mlflow import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from interpret.glassbox import ExplainableBoostingClassifier, ExplainableBoostingRegressor from ..OEA_model import OEAModelInterface, ModelType, ExplanationType from ..modeling_ut...
31.346774
141
0.597119
7ebe8e1bd51003adafc28a2457a39de43d5df82f
580
py
Python
Problemset/rotate-array/rotate-array.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/rotate-array/rotate-array.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/rotate-array/rotate-array.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: (Rotate Array) # @Author: KivenC # @Date: 2019-03-14 16:57:56 # @Runtime: 124 ms # @Memory: 13.4 MB
23.2
61
0.453448
7ebed46683710a9ebe0c25178b513a5b2e2bee9a
6,940
py
Python
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
23
2020-03-30T11:48:33.000Z
2022-03-11T06:34:31.000Z
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
9
2020-09-28T07:15:16.000Z
2022-03-25T08:11:06.000Z
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
10
2020-03-30T11:48:34.000Z
2021-06-02T06:12:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import collections import time import copy from caffe2.python import workspace, core from caffe2.proto import caffe2_pb2 import logging import caffe2.python._import_c_ext...
31.402715
87
0.602305
7ebf6d3e2be8c328592cef72dbeeecb3c71dccf2
1,346
py
Python
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
null
null
null
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
null
null
null
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
2
2021-06-07T23:09:19.000Z
2021-06-09T21:27:55.000Z
import os import sys from optparse import make_option from django.core.management import BaseCommand, call_command from django.conf import settings
38.457143
92
0.658247
7ec2240f63eb96b7be86ac80819b426a891d9e4a
7,341
py
Python
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
from .support import HPyTest
33.368182
90
0.48522
7ec2bfc9ccb6ee726f5d61b2d45451c02e9d41ea
553
py
Python
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-21 05:43 from django.db import migrations, models
24.043478
100
0.605787
7ec4be3802281f0f009f1059ea1169959c79b1bc
92
py
Python
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
from time import sleep for i in range(10, 0, -1): print(i) sleep(1) print('Yeey!!')
15.333333
26
0.597826
7ec5bb3ee6e56981cd97f19bc1f1b34b98f31935
631
py
Python
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
"""Add contact_details to House Revision ID: 1f97f799a477 Revises: 2df9ce70bad Create Date: 2018-08-08 10:58:44.869939 """ # revision identifiers, used by Alembic. revision = '1f97f799a477' down_revision = '2df9ce70bad' from alembic import op import sqlalchemy as sa
23.37037
82
0.70206
7ec8bcdeff170d91a374ba018e5e6426dc9a2e70
725
py
Python
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
3
2018-01-24T08:16:55.000Z
2018-01-30T06:55:59.000Z
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 from JYTools.JYWorker import AsyncRedisWorker __author__ = 'meisanggou' p_w = PlusWorker(conf_path="redis_worker.conf", heartbeat_value="FFFFFF", work_tag="Plus", stat_work_tag="STAT") p_w.work()
25.892857
90
0.613793
7ec971469d93f6ab0b3357bd1986c1d75f158264
1,336
py
Python
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
null
null
null
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
4
2020-02-07T08:26:32.000Z
2021-02-28T21:04:22.000Z
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
null
null
null
import discord
24.740741
70
0.765719
7ec9f217b2ef0eef366902d1d8043f6411d178a9
143
py
Python
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
4
2021-02-20T10:55:33.000Z
2021-09-25T06:20:16.000Z
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
7
2021-01-07T13:57:21.000Z
2021-09-30T06:28:15.000Z
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
5
2021-01-19T12:27:49.000Z
2021-09-23T12:29:44.000Z
from random import randint
28.6
98
0.692308
7ec9fcf9ceb86315712a57bbd849628caaaffa4f
3,535
py
Python
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
47
2015-06-08T20:34:18.000Z
2021-09-26T17:59:06.000Z
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
65
2015-07-27T18:16:31.000Z
2021-10-04T14:02:51.000Z
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
13
2015-07-27T13:27:03.000Z
2022-03-15T02:18:10.000Z
""" This module contains utility functions used in the example scripts. They are implemented separately because they use scipy and numpy and we want to remove external dependencies from within the core library. """ from __future__ import print_function from __future__ import unicode_literals from __future__ impo...
33.037383
82
0.600566
7ecc4036bf06e228f69ff0e22a8350689c78b5b3
1,082
py
Python
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
2
2018-05-28T14:15:00.000Z
2018-10-15T09:33:38.000Z
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
from aiohttp import web from avio.app_builder import AppBuilder from avio.default_handlers import InfoHandler
26.390244
73
0.689464
7ecc93eabbbc809f0893cd5190e4fc2c1e5b2a52
665
py
Python
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
12
2021-05-19T10:20:05.000Z
2021-12-18T07:51:35.000Z
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
1
2021-06-22T17:37:35.000Z
2021-06-23T13:16:39.000Z
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
1
2021-09-01T09:04:34.000Z
2021-09-01T09:04:34.000Z
#! /usr/bin/python3 import sys import numpy import argparse import logging if __name__ == '__main__': main()
17.972973
106
0.664662
7ecf3dcc1c0914b06bad4a9556b6b06a68e54449
2,612
py
Python
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google Inc. # # 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 ...
36.788732
77
0.745023
7ecfee91de6afd15c9b4944fc8130ce2c7df090a
162
py
Python
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
1,011
2016-12-30T09:37:45.000Z
2022-03-31T02:50:09.000Z
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
111
2018-04-13T02:02:09.000Z
2022-02-21T05:07:39.000Z
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
739
2017-12-27T03:30:18.000Z
2022-03-22T14:09:04.000Z
from getters import * from parsers import * if __name__ == '__main__': main()
16.2
43
0.654321
7ed1533d1fe94afa39fdc1263bf8dee1d5e7d532
2,372
py
Python
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
#!/usr/bin/env python from collections import defaultdict import gzip import os import pandas as pd import sys import pdb if (__name__ == "__main__"): annotated_PM_proteins, blast_directory, output_tsv = sys.argv[1:] # Record which regions of each HMPAS protein aligned to which pORFs pORF_to_PM_...
37.650794
136
0.685497
7ed1dd5c13dcf775a1baf193fd62b210cf6a5965
818
py
Python
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
skforest/intro_ds
478a6b236c2e33c4baffec8aafa8e0a8ed68dca8
[ "Apache-2.0" ]
314
2018-02-11T09:44:21.000Z
2022-03-31T02:55:34.000Z
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
5
2018-05-27T07:18:09.000Z
2019-03-29T14:07:55.000Z
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
262
2018-03-20T07:36:22.000Z
2022-03-08T06:51:58.000Z
# -*- coding: UTF-8 -*- import numpy as np from numpy.testing import assert_array_almost_equal from spectral_clustering.spectral_embedding_ import spectral_embedding def test_spectral_embedding(): """ spectral embedding """ adjacency = np.array([ [0., 0.8, 0.9, 0.], [0.8, 0., 0., 0.],...
30.296296
75
0.662592
7ed22c3a12b83e7e397a2f42645d4d28f20c10a1
1,028
py
Python
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
2
2021-07-14T22:16:11.000Z
2021-07-15T13:59:16.000Z
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
null
null
null
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
1
2021-11-08T17:51:56.000Z
2021-11-08T17:51:56.000Z
from setuptools import setup, find_packages setup( name='pyschemavalidator', version='1.0.4', description='Decorator for endpoint inputs on APIs and a dictionary/JSON validator.', long_description=readme(), long_description_content_type="text/markdown", url='https://github.com/albarsil/pyschema...
34.266667
98
0.640078
7ed2f5da954583e80a42f4d878be91fafc750834
278
py
Python
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
# # def test(): # while True: # test1(arr) test1()
16.352941
65
0.435252
7ed5ebddc6457b559b508614ad321953960871a9
1,012
py
Python
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
11
2021-05-07T01:28:26.000Z
2022-03-10T08:23:16.000Z
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
2
2021-08-13T10:12:13.000Z
2021-08-31T02:03:20.000Z
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
1
2021-06-08T07:23:22.000Z
2021-06-08T07:23:22.000Z
############################################################################### # Utils functions for language models. # # NOTE: source from https://github.com/litian96/FedProx ############################################################################### ALL_LETTERS = "\n !\"&'(),-.0123456789:;>?ABCDEFGHIJKLMNOPQRST...
25.948718
98
0.559289
7ed622001a9b3fee28a3830ea934fc1222ee2519
12,347
py
Python
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
""" Specification for what parameters are used at what location within the Cascade. """ from os import linesep from types import SimpleNamespace import networkx as nx from cascade.core import getLoggers from cascade.core.parameters import ParameterProperty, _ParameterHierarchy from cascade.input_data import InputData...
40.615132
100
0.703734
7ed6592b4557770826c2b857640043319d38c35b
8,757
py
Python
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
import os import pickle as pickle import datetime import time # from contextlib import contextmanger import torch from torch.autograd import Variable import random import numpy as np def to_scalar(vt): """ transform a 1-length pytorch Variable or Tensor to scalar """ if isinstance(vt, Variable): ...
31.387097
91
0.595524
7ed68a92c00d63af048a398460040921d4a594c2
152
py
Python
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
from .deco_entries import deco_dict, deco_entries from .deco_matrix import deco_matrix from .deco_node import deco from .deco_vector import deco_vector
30.4
49
0.855263
7ed76cffa617d7dbb0eb5704950de02465bd2acc
239
py
Python
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
107
2019-10-25T07:46:59.000Z
2022-03-29T11:10:56.000Z
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
1
2021-08-13T05:42:27.000Z
2021-08-13T05:42:27.000Z
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
18
2020-12-09T14:24:22.000Z
2022-03-30T06:56:01.000Z
a = str(input()) b = {'0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6': 0, '7': 0, '8': 0, '9': 0} for i in a: b[i] = b[i] + 1 for i in range(len(b)): if b[str(i)] == 0: continue print(str(i) + ':' + str(b[str(i)]))
26.555556
84
0.376569
7ed934e50ac37fe2f6bc49fc6b26c673d5bef545
3,635
py
Python
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
null
null
null
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
null
null
null
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
1
2020-09-24T20:07:11.000Z
2020-09-24T20:07:11.000Z
from discord import Role, Embed, Color from discord.ext import commands from discord.utils import get from sqlite3 import connect
54.253731
174
0.630261
7eda15ab90c17c289351ca4660c59723a26e49ce
5,793
py
Python
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
1
2022-01-06T09:38:13.000Z
2022-01-06T09:38:13.000Z
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Iterable, List from torch import random from ppq.core import NetworkFramework, is_file_exist from ppq.IR import BaseGraph, GraphBuilder, Operation, Variable import onnx from onnx import helper, mapping, numpy_helper
43.886364
120
0.615398
7edaeae2fc38a800bb95865424b3192bce1ad4c5
96
py
Python
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
1,020
2015-01-02T03:05:26.000Z
2022-02-12T18:48:51.000Z
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
259
2015-01-02T22:35:14.000Z
2021-09-02T04:20:41.000Z
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
288
2015-01-08T00:42:26.000Z
2022-03-31T17:25:10.000Z
from .browser import * from .cells import * from .computation import * from .statutils import *
19.2
26
0.75
7edcf59eb18eef02bdb316448f6adea4f05d6570
130
py
Python
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
762
2018-06-05T20:56:09.000Z
2021-09-14T09:09:42.000Z
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
176
2018-09-05T18:37:05.000Z
2021-09-14T01:18:43.000Z
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
160
2018-08-05T05:31:20.000Z
2021-09-14T09:09:45.000Z
from pymoo.core.mutation import Mutation
16.25
40
0.684615
7edd2d6611c190c72458a52ee8280a39a0f6019d
2,893
py
Python
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
import re from sys import argv import sys script, filename=argv text=open(filename) s=text.read() y= re.split('\s+',s) '''rite=open("new.txt", 'w')''' temp=[] values=[0,1,2,3,4,5,6,7,8,9,10,11,12,13] stopword1=['with','more','than','for','a','an','the','then','to','I','as','am','and','is'] for word in y: m=0...
38.573333
418
0.382993
7edd3771e2b51e9d09b225c2a3e4394114478f19
5,304
py
Python
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
import os import copy from parser import Parser import json import argparse from tqdm import tqdm if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--data', help="Path of ACE2005 Chinese data", default='./data/Chinese') args = parser.parse_args() test_files, dev_fi...
33.783439
96
0.558258
7ede2a1e09a4811ae478f01a896fc0510aa9e87d
360
py
Python
HPOBenchExperimentUtils/core/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
HPOBenchExperimentUtils/core/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
1
2021-09-01T16:35:21.000Z
2021-11-05T19:53:25.000Z
HPOBenchExperimentUtils/core/__init__.py
automl/HPOBenchExperimentUtils
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
WORKER_WAIT_FOR_SCHEDULER_TO_START_IN_S = 600 WORKER_WAIT_FOR_NAMESERVER_TO_START_IN_S = 300 SCHEDULER_PING_WORKERS_INTERVAL_IN_S = 10 SCHEDULER_TIMEOUT_WORKER_DISCOVERY_IN_S = 600 # See Explanation in HPOBenchExperimentUtils/__init__.py try: from HPOBenchExperimentUtils.optimizer.autogluon_optimizer import _obj_f...
32.727273
78
0.875
7ee00fb2a41f748e6f16cd24d5dbedd13ee2a74c
155
py
Python
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
from .contact import Contact from .project import Project from .link import Link from .category import Category from .project_image import ProjectImage
31
39
0.819355
7ee0306bca45832afc48ed42c697d3140fcc48e9
5,061
py
Python
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
3
2016-04-28T06:25:57.000Z
2016-09-27T23:08:53.000Z
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
null
null
null
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
4
2016-07-29T11:54:43.000Z
2019-04-16T23:27:47.000Z
#!/usr/bin/env python import sys import os import urllib import requests import shutil import json import datetime from ftplib import FTP, error_perm, error_reply API_URL = 'http://localhost/cgi-bin' TIMEOUT_MINUTES = 15 HOURS_BEFORE_PROCESS = 24 if len(sys.argv) < 4: sys.stderr.write('Usage : ./main.py FTP_SERV...
36.941606
108
0.648093
7ee047a7066708d1b0437ff3c15225bede21aaf2
1,234
py
Python
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
2
2018-07-08T17:32:33.000Z
2018-08-20T18:07:21.000Z
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
null
null
null
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
2
2020-04-21T20:35:43.000Z
2021-08-28T01:46:28.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 6 21:00:25 2018 @author: Vishwesh """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data DATA_DIR = "/tmp/data" NUM_STEPS=1000 MINIBATCH_SIZE=32 data = input_data.read_data_sets(DATA_DIR,one_hot=True) x = tf.placeholder...
28.045455
73
0.664506
7ee0ad4229cbb8785cc665b7f1d02577367e5533
6,358
py
Python
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
# coding: utf-8 """ Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel
27.885965
124
0.596886
7ee0d66cd69f9cc4f31be7268f2139f698f3ce65
1,568
py
Python
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
829
2015-03-10T12:28:42.000Z
2022-03-28T02:44:12.000Z
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
460
2015-01-26T18:03:19.000Z
2022-03-30T08:30:41.000Z
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
177
2015-02-02T13:58:12.000Z
2022-03-30T20:56:21.000Z
# Copyright FuseSoC contributors # Licensed under the 2-Clause BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-2-Clause import os from setuptools import setup setup( name="fusesoc", packages=["fusesoc", "fusesoc.capi2", "fusesoc.provider"], use_scm_version={ "relative_to": ...
25.704918
72
0.595026
7ee162a59b2d4c88fd31a1e5da83b93341c5641c
2,980
py
Python
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
4
2019-08-26T01:20:35.000Z
2022-01-26T09:18:27.000Z
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
null
null
null
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
1
2020-07-27T16:14:01.000Z
2020-07-27T16:14:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-28 09:09 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion
59.6
171
0.667785
7ee1d07b4bc413cb7389c911457d3de03b101227
2,460
py
Python
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
7
2020-01-24T13:15:51.000Z
2021-11-18T00:59:14.000Z
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
null
null
null
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
3
2017-12-11T08:42:20.000Z
2021-05-23T22:16:37.000Z
""" This code will read file given as parameter and list what mana symbols it contains. created Apr 2017 by CheapskateProjects --------------------------- The MIT License (MIT) Copyright (c) 2017 CheapskateProjects Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
46.415094
460
0.742683
7ee1d369253b685eb3c0ced8fa15abb487773d16
2,922
py
Python
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
import pprint #Dictionary to hold impact, severe impact and output data data=dict() impactDict=dict() severeImpactDict=dict() estimate=dict() keylist=["currentlyInfected","infectionsByRequestedTime","severeCasesByRequestedTime","hospitalBedsByRequestedTime", "casesForICUByRequestedTime","casesForVentilatorsByReque...
27.566038
116
0.826489
7ee23d44668fd487a80e9214c2ad17038e0da11f
3,739
py
Python
src/tests/control/test_auth.py
abrock/pretix
cd9c048458afce1198276e5936bf583578855a4f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-23T07:44:54.000Z
2021-06-23T07:44:54.000Z
src/tests/control/test_auth.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_auth.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.test import Client, TestCase from tests.base import BrowserTest from pretix.base.models import User
34.62037
95
0.622626
7ee657d8672c3d1e01a4a553eebf1a0a57578480
1,871
py
Python
python/example_code/iam/create_policy.py
Ciul/aws-doc-sdk-examples
0ee496eb93b0404e214d387c1933ca4e231503cb
[ "Apache-2.0" ]
1
2019-01-09T01:32:02.000Z
2019-01-09T01:32:02.000Z
python/example_code/iam/create_policy.py
cloudcansee/aws-doc-sdk-examples
571fe9a546ab24ccac8e865190dce127f457f587
[ "Apache-2.0" ]
null
null
null
python/example_code/iam/create_policy.py
cloudcansee/aws-doc-sdk-examples
571fe9a546ab24ccac8e865190dce127f457f587
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2019 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"...
30.177419
116
0.638696
7ee6a44163dee19b7f4b3895d2366e18514d868b
1,451
py
Python
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
2
2021-11-20T11:28:22.000Z
2022-02-07T21:56:46.000Z
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
null
null
null
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
4
2021-11-20T11:28:25.000Z
2022-03-12T04:10:54.000Z
# 11/03/21 # What does this code do? # This code introduces a new idea, Dictionaries. The codes purpose is to take an input, and convert it into the numbers you'd need to press # on an alphanumeric keypad, as shown in the picture. # How do Dictionaries work? # To use our dictionary, we first need to initial...
43.969697
148
0.594762
7ee771d4ce34d997b16dc36b66c0cfae9cd23bd9
1,177
py
Python
typhon/core/type_system/constraints/member_constraint.py
strongrex2001/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
4
2021-03-03T12:44:34.000Z
2021-07-03T10:15:43.000Z
typhon/core/type_system/constraints/member_constraint.py
eliphatfs/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
null
null
null
typhon/core/type_system/constraints/member_constraint.py
eliphatfs/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 14 09:40:01 2021 @author: eliphat """ from ..type_var import TypeVar from ..type_repr import RecordType, BottomType from ..system import TypeSystem from .base_constraint import BaseConstraint from .equality_constraint import EqualityConstraint
28.02381
74
0.607477
7ee7f3867098c176134098cbe45484ecb33e7f96
3,592
py
Python
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
from __future__ import annotations from conflowgen.posthoc_analyses.inbound_and_outbound_vehicle_capacity_analysis import \ InboundAndOutboundVehicleCapacityAnalysis from conflowgen.reporting import AbstractReportWithMatplotlib
44.345679
119
0.69794
7ee8718c462fcdfabadd0e929c133270742ee1d3
15,799
py
Python
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
null
null
null
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
null
null
null
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
1
2022-03-18T09:26:05.000Z
2022-03-18T09:26:05.000Z
"""Transformer from 'Attention is all you need' (Vaswani et al., 2017)""" # Reference: https://www.tensorflow.org/text/tutorials/transformer # Reference: https://keras.io/examples/nlp/text_classification_with_transformer/ import numpy as np import tensorflow as tf def _point_wise_feed_forward_network(d_model, d...
35.344519
91
0.648269
7eea074d109ec1681ca547e782a6c5293f0db45e
43,464
py
Python
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
import inspect import pytest from django.db.models import TextField from django.urls import reverse from rest_framework.status import HTTP_200_OK, HTTP_204_NO_CONTENT from baserow.contrib.database.table.cache import ( generated_models_cache, ) from baserow.contrib.database.fields.dependencies.handler import Field...
35.108239
88
0.649802
7eec16b6d1d11372ab91abbcfdb3714c1f54cf45
2,647
py
Python
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
6
2022-02-14T04:52:59.000Z
2022-03-08T05:11:34.000Z
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
null
null
null
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
null
null
null
from oil.utils.utils import export import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.animation as animation import numpy as np
41.359375
111
0.548546
7eedd09fb3c8d92730036810d13bd71098a0604a
1,791
py
Python
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
3
2021-02-07T02:55:46.000Z
2021-11-25T21:32:19.000Z
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
null
null
null
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
null
null
null
from functools import wraps from opentracing import global_tracer, tags, logs from contextlib import contextmanager
27.553846
78
0.627024
7eee18f21f85e2ef6c713447b04ed57350a47292
3,281
py
Python
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Juniper-V35-CONF (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-V35-CONF # Produced by pysmi-0.3.4 at Wed May 1 14:04:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
105.83871
477
0.772021
7eeeeddb273daae8d265bebeae3ae172280c5d3f
3,588
py
Python
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
"""Defines commonly used segment predicates for rule writers. For consistency, all the predicates in this module are implemented as functions returning functions. This avoids rule writers having to remember the distinction between normal functions and functions returning functions. This is not necessarily a complete ...
26.382353
85
0.687291
7eef35921fa0ede03616e146e1295177bb83c0f6
28,152
py
Python
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
9
2015-12-18T09:55:35.000Z
2018-12-02T07:04:07.000Z
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
null
null
null
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
4
2016-01-18T08:16:38.000Z
2019-02-12T02:29:47.000Z
""" uncond_dcgan1 made with 64x64 images from https://s3.amazonaws.com/udipublic/acro.images.tgz for train.tar.gz """ import argparse parser = argparse.ArgumentParser(description='train uncoditional dcgan') parser.add_argument('--desc', default='uncond_dcgan', help='name to uniq...
39.318436
122
0.577472
7ef212a3bbd72af3407c75992543ad244f5853aa
686
py
Python
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
4
2019-09-11T10:39:19.000Z
2020-01-26T14:46:04.000Z
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
134
2020-08-04T06:56:25.000Z
2022-03-28T19:59:10.000Z
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
8
2019-09-11T09:52:01.000Z
2020-05-15T07:49:20.000Z
# Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT import os import shutil from requre import RequreTestCase from requre.utils import get_datafile_filename
29.826087
79
0.708455
7ef2a68b302b035e6c0797abb0c9b533ef0cc00f
1,098
py
Python
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
null
null
null
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
2
2022-01-31T21:22:17.000Z
2022-02-04T20:20:12.000Z
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
1
2021-07-20T15:01:14.000Z
2021-07-20T15:01:14.000Z
from collections import OrderedDict from evidence import Evidence
36.6
99
0.666667
7ef2ed2970e3ddb3c9692d6c9d5d53f3c44e44e9
93
py
Python
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
125
2018-04-09T07:27:24.000Z
2022-02-22T11:45:20.000Z
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
58
2018-03-29T14:58:01.000Z
2022-03-17T10:18:07.000Z
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
58
2018-04-06T10:56:20.000Z
2022-03-04T01:23:24.000Z
from ._flight_availabilities import FlightAvailabilities __all__ = ['FlightAvailabilities']
23.25
56
0.849462
7ef39b3ab7e84f40561ab285091ba87a5ffe2c50
6,523
py
Python
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
35
2018-10-07T09:51:42.000Z
2021-09-08T14:13:38.000Z
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
119
2018-10-05T14:49:39.000Z
2022-03-11T23:49:51.000Z
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
32
2018-10-18T12:02:55.000Z
2020-03-01T10:27:06.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
43.198675
155
0.706883
7ef3adf21ab396cb7c21eb61dae297a4ea72dd49
20,228
py
Python
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
29
2018-12-10T22:40:07.000Z
2022-03-30T02:56:28.000Z
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
2
2020-02-21T09:48:37.000Z
2021-03-06T22:33:45.000Z
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
7
2019-08-09T09:19:12.000Z
2022-03-30T02:56:27.000Z
#!/usr/bin/env python3 from dataknead import Knead from facetool import config, media, util from facetool.constants import * from facetool.path import Path from facetool.profiler import Profiler from facetool.errors import ArgumentError from facetool.util import message, force_mkdir, sample_remove, is_json_path from r...
33.939597
100
0.606041
7ef3b3d381094bf85b4cc0de564bd90a29ffa484
26,538
py
Python
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
1
2022-02-04T08:47:40.000Z
2022-02-04T08:47:40.000Z
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
null
null
null
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
3
2020-07-14T18:41:50.000Z
2022-01-27T17:52:25.000Z
from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.shortcuts import render, redirect, get_object_or_404 from _datetime import datetime # from django.http import HttpResponse, HttpResponseNotAllowed from django.contrib...
32.601966
115
0.585915
7ef4e804662096ec1a9ee780599e15a0cae458b8
3,106
py
Python
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
"""Frame to show all service\'s register\'s. """ import tkinter.ttk from src.view import constants from src.view.services_page import ServicesPage
28.236364
106
0.59369
7ef51c0080ffee9c24edcdbb55e7295f1c8931e0
6,649
py
Python
datamodules/dataset.py
ayhokuyan/CartooNet
61f0ed752a52a9667bc0dd4f8eff2ba708765594
[ "MIT" ]
2
2021-04-25T19:04:38.000Z
2021-04-26T01:13:15.000Z
datamodules/dataset.py
ofirkris/CartooNet
3bda4a4a57148fc1ee9edaccbae25e921132c2ce
[ "MIT" ]
2
2021-01-09T20:43:45.000Z
2021-10-12T16:23:19.000Z
datamodules/dataset.py
ofirkris/CartooNet
3bda4a4a57148fc1ee9edaccbae25e921132c2ce
[ "MIT" ]
3
2021-01-07T10:35:47.000Z
2021-12-12T03:45:58.000Z
from torchvision.datasets import VisionDataset from datamodules.dsfunction import imread from torch.utils.data import Dataset, RandomSampler, Sampler, DataLoader, TensorDataset, random_split, ConcatDataset import os import glob from typing import List, Sequence, Tuple from itertools import cycle, islice import torch fr...
31.661905
116
0.689277
7efb31a8e8af90737b8da1f5791e1e718e4838b5
5,251
py
Python
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
1
2015-05-12T13:05:04.000Z
2015-05-12T13:05:04.000Z
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """ Common user interface operations. Author: Eduardo Ferreira License: MIT (see LICENSE for details) """ # Module import # -------------------------------------------------------------------------------------------------- from os import walk from os.path import isdir, isfile, join import argp...
34.546053
102
0.607503
7efc02867d62088c24fe38cb0e01aef98549a474
585
py
Python
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
from intentionally_blank.formatter import Formatter
25.434783
81
0.635897
7efefef66bd1feb3647085e8c53cf1e989e233d5
5,049
py
Python
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
5
2018-04-23T02:57:02.000Z
2019-06-17T01:26:34.000Z
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
null
null
null
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
null
null
null
""" Script for analyzing model's performance """ import argparse import sys import collections import yaml import tensorflow as tf import tqdm import numpy as np import net.data import net.ml import net.utilities def report_iou_results(categories_intersections_counts_map, categories_unions_counts_map): """ ...
37.4
110
0.754011
7eff1983d7fbe1e52b15da6db6b21e34c240b7dd
5,095
py
Python
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
# --- Day 12: Rain Risk --- # https://adventofcode.com/2020/day/12 import time simple = False verbose = 1 if simple: data = 'F10\nN3\nF7\nR90\nF11'.splitlines() else: file = open('12_input.txt', 'r') data = file.read().splitlines() if __name__ == '__main__': main()
35.137931
93
0.366045
7d0038100c8c0111fa664f6eb6cc9dd2beee4fca
335
py
Python
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User # Create your models here.
30.454545
58
0.776119
7d01524893d64dff4161903aeece165ee10064d8
4,118
py
Python
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from .abstract_model_helper import ModelHelper from tflite.Tensor import Tensor from tflite.Model import Model from tflite.TensorType import TensorType from typing import List
41.59596
159
0.678728
7d02e19d26499fd9832ccc2e030ef3666288dfd1
584
py
Python
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
7
2019-01-02T16:47:31.000Z
2020-10-10T10:06:15.000Z
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
9
2019-01-13T20:11:23.000Z
2019-10-10T21:38:58.000Z
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
1
2018-12-27T14:20:36.000Z
2018-12-27T14:20:36.000Z
import numpy as np def mean_momentcoefficient(wing, airfoil_db): """calculate mean coefficient of moment for wing Parameters ---------- wing : Wing object describing wing airfoil_db : dict dictionary containing airfoil data """ try: c_m0s = [airfoil_db[sec.airf...
24.333333
82
0.630137
7d037a52977d0f0954d115a4089354137b1a38db
22,333
py
Python
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
1
2021-12-09T06:32:14.000Z
2021-12-09T06:32:14.000Z
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
null
null
null
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
null
null
null
from typing import List, Tuple import sqlite3 import os import random import json from vqa_benchmarking_backend.datasets.dataset import DatasetModelAdapter, DiagnosticDataset, DataSample from vqa_benchmarking_backend.metrics.bias import eval_bias, inputs_for_image_bias_featurespace, inputs_for_image_bias_wordspace, in...
53.685096
240
0.680697
7d046d7646f874b0a9f0b4e92ebdd10a5f1eb202
268
py
Python
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
4
2020-07-18T18:09:32.000Z
2021-05-01T02:12:40.000Z
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
5
2021-03-30T13:56:57.000Z
2021-09-22T19:27:22.000Z
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
1
2020-11-15T05:08:21.000Z
2020-11-15T05:08:21.000Z
from django.urls import path from . import views app_name = "hospitals" urlpatterns = [ path("hospitalList", views.HospitalDetailedList.as_view(), name="hospital_list"), path("hospitalDetail", views.HospitalDetailedSingle.as_view(), name="hospital_read"), ]
26.8
89
0.75
7d053dd93a0611a4a0e532ea4d23bee17151532c
1,613
py
Python
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
from .. import Globals import PyFileIO as pf import os import numpy as np def _ReadSPDF(sc='a'): ''' Reads the SPDF SSCWeb text files (scraped from their HTML output). Input: sc: Spacecraft 'a' or 'b' Returns: numpy.recarray ''' #set up dtype to load dtype = [('Year','int32'),('DOY','int32'),('ut','U...
31.019231
169
0.610663
7d06085df3fe41964096c1793c9b3fba869163aa
273
py
Python
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
1
2019-06-28T17:47:43.000Z
2019-06-28T17:47:43.000Z
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
null
null
null
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup( name='python-dmenuwrap', author='Klaas Boesche', author_email='klaas-dev@boesche.me', url='https://github.com/KaGeBe/python-dmenuwrap', version='0.1.0', license='BSD 2-clause', py_modules=['dmenuwrap'] )
22.75
53
0.67033
7d0655be98836fde86e8a90e510ed3097683aff2
967
py
Python
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^remove/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.remove_comment, name='crits-comments-views-remove_comment'), url(r'^(?P<method>\S+)/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.add_update_comment, name='crits-comments-views-add_upda...
64.466667
139
0.688728