hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
fc27b29cfbfd1ea2e06f38bfeb18691ed058b5af
5,579
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Algorthims for function optimisation great_deluge() is a hillclimbing algorithm based on: Gunter Dueck: New Optimization Heuristics, The Great Deluge Algorithm and the Record-to-Record Travel. Journal of Computational Physics, Vol. 104, 1993, pp. 86 - 92 ga_evolve(...
42.915385
80
0.661767
0
0
3,977
0.712852
0
0
0
0
3,602
0.645635
fc2801c140aa271fa4c9a495e831e1f55bb54ab3
6,871
py
Python
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
3
2021-04-09T12:37:13.000Z
2021-10-18T19:41:39.000Z
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
5
2019-04-30T13:08:43.000Z
2019-04-30T13:21:25.000Z
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
null
null
null
import argparse import boto3 import json import logging import os from progressbar import ProgressBar import sys """ Collects IAM Policies Evaluates policies looking for badness (*.*, Effect:Allow + NotAction) Need to add more tests/use cases """ def get_policies(profile): session = boto3.session.Session(profi...
33.193237
79
0.536603
0
0
0
0
0
0
0
0
2,410
0.35075
fc2ae536bffe1db19ce9b95cd5dd88a0d55394cd
3,556
py
Python
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
2
2018-11-12T22:00:56.000Z
2019-11-07T22:14:23.000Z
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
49
2018-10-02T18:14:58.000Z
2022-01-20T21:06:31.000Z
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
3
2019-05-10T13:06:59.000Z
2020-05-21T17:29:33.000Z
import json import os import re from testinfra.utils.ansible_runner import AnsibleRunner import util testinfra_hosts = AnsibleRunner(os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('agent-integrations') def _get_key_value(tag_list): for key, value in (pair.split(':', 1) for pair in tag_list): yield ke...
39.955056
119
0.604331
0
0
119
0.033465
0
0
0
0
1,193
0.335489
fc2b9cb9eed0c84da94b5402d4ee3d9ce1910b43
589
py
Python
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
null
null
null
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
null
null
null
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
1
2022-02-21T21:17:17.000Z
2022-02-21T21:17:17.000Z
import os import sys from contextlib import contextmanager from invoke import UnexpectedExit def git_commit(c, addstr, msg): try: c.run("git config --get user.email") c.run("git config --get user.name") except UnexpectedExit: c.run('git config --local user.email "[email protected]"') ...
22.653846
58
0.634975
0
0
148
0.251273
164
0.278438
0
0
182
0.308998
fc2d6707aecf302c38a120bd486580b956d4c75c
1,263
py
Python
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from ais_sdk.utils import encode_to_base64 from ais_sdk.utils import decode_to_wave_file from ais_sdk.distortion_correct import distortion_correct_aksk from ais_sdk.utils import init_global_env import json if __name__ == '__main__': # # access moderation distortion correct.post data by a...
39.46875
119
0.695962
0
0
0
0
0
0
0
0
479
0.379256
fc2e07191680875cf76ef21ec4089df4cb779bed
527
py
Python
exercise/migrations/0016_auto_20191025_1624.py
Arpit8081/Phishtray_Edited_Version
9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8
[ "MIT" ]
2
2020-03-31T12:38:10.000Z
2022-01-21T22:21:06.000Z
exercise/migrations/0016_auto_20191025_1624.py
Arpit8081/Phishtray_Edited_Version
9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8
[ "MIT" ]
252
2018-05-24T14:55:24.000Z
2022-02-26T13:02:10.000Z
exercise/migrations/0016_auto_20191025_1624.py
Arpit8081/Phishtray_Edited_Version
9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8
[ "MIT" ]
11
2018-06-23T14:54:42.000Z
2021-02-19T11:33:44.000Z
# Generated by Django 2.2.6 on 2019-10-25 16:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('exercise', '0015_exerciseemailproperties_date_received'), ] operations = [ migrations.AlterField( ...
26.35
131
0.666034
401
0.760911
0
0
0
0
0
0
143
0.271347
fc2e16e55954bef33913f1502bf7278f77489ed4
3,504
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class GeomCombinationSet(APIObject, IDisposable, IEnumerable): """ A set that contains GeomCombination objects. GeomCombinationSet() """ def Clear(self): """ Clear(self: GeomCombinationSet) Removes every item GeomCombination the set,rendering it empty. """ pass ...
22.901961
221
0.62871
3,502
0.999429
0
0
0
0
0
0
2,428
0.692922
fc2e4f714b9faba2c5ecf66e26fac9c7e7da6366
1,527
py
Python
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
35
2015-01-04T15:23:49.000Z
2020-11-24T16:10:33.000Z
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
10
2015-01-20T07:45:41.000Z
2015-06-23T15:03:42.000Z
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
17
2015-01-04T14:20:31.000Z
2020-11-24T16:10:36.000Z
from rainbow.cloudformation import Cloudformation from base import DataSourceBase __all__ = ['CfnOutputsDataSource', 'CfnResourcesDataSource', 'CfnParametersDataSource'] class CfnDataSourceBase(DataSourceBase): def __init__(self, data_source): super(CfnDataSourceBase, self).__init__(data_source) ...
30.54
108
0.717092
1,335
0.874263
0
0
0
0
0
0
140
0.091683
fc2e789c677ad0b86e4fb3d988a64d970401e0fa
401
py
Python
epio_commands/management/commands/epio_flush_redis.py
idan/pypostbin
61dd1c0960e8fb6e4460a5623971cbbc78a55ee7
[ "BSD-3-Clause" ]
2
2015-11-05T08:51:42.000Z
2016-03-01T22:13:25.000Z
epio_commands/management/commands/epio_flush_redis.py
idan/pypostbin
61dd1c0960e8fb6e4460a5623971cbbc78a55ee7
[ "BSD-3-Clause" ]
null
null
null
epio_commands/management/commands/epio_flush_redis.py
idan/pypostbin
61dd1c0960e8fb6e4460a5623971cbbc78a55ee7
[ "BSD-3-Clause" ]
null
null
null
import redis from bundle_config import config from django.core.management.base import NoArgsCommand class Command(NoArgsCommand): help = 'Flushes all keys in redis.' def handle_noargs(self, **options): r = redis.Redis(host=config['redis']['host'], port=int(config['redis']['port']), password=config['r...
30.846154
126
0.688279
298
0.743142
0
0
0
0
0
0
96
0.239401
fc2e92525a1caaa4ddf0a3ef664b415296525d97
2,338
py
Python
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
455
2018-12-09T01:57:46.000Z
2022-03-22T01:56:47.000Z
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
136
2019-04-19T08:24:27.000Z
2022-03-28T01:39:19.000Z
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
102
2018-12-22T07:38:05.000Z
2022-03-30T06:04:39.000Z
#!/usr/bin/env python # Copyright 2020 Stanford University, Los Alamos National Laboratory # # 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 ...
38.327869
116
0.727545
0
0
0
0
0
0
0
0
868
0.371257
fc2eebcbe5bb3cf4ff6427b453a41d0127cdd332
1,414
py
Python
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
"""This plugin extends Gaphor with XMI export functionality.""" import logging from gaphor.abc import ActionProvider, Service from gaphor.core import action, gettext from gaphor.plugins.xmiexport import exportmodel from gaphor.ui.filedialog import FileDialog logger = logging.getLogger(__name__) class XMIExport(Ser...
32.883721
83
0.666195
1,112
0.786421
0
0
833
0.589109
0
0
293
0.207214
fc2f49e15f4138f716bca2a01da611b02c245377
2,278
py
Python
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
import contextlib import os import pathlib import subprocess import sys import tempfile @contextlib.contextmanager def chdir(path): cwd = os.getcwd() try: os.chdir(path) yield finally: os.chdir(cwd) def prepare_files(files): for f in files: path = pathlib.Path(f['path...
24.76087
108
0.618086
0
0
277
0.121598
331
0.145303
0
0
423
0.185689
fc2f8d6fdf5321bc7fa432fe83690f0311e43ce9
303
py
Python
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
import os commit_string = "选择data的前多少个维度参与训练" not_add = ['results', 'data', 'weights'] for item in os.listdir(): if item in not_add: # print(item) continue else: os.system(f"git add {item}") os.system(f'git commit -m "{commit_string}"') os.system("git push origin main")
25.25
45
0.636964
0
0
0
0
0
0
0
0
155
0.471125
fc3035214a995b5b1335519d9f36c232352adce4
6,523
py
Python
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
from src.cmp.pycompiler import Grammar from src.ast_nodes import ( ProgramNode, ClassDeclarationNode, FuncDeclarationNode, AttrDeclarationNode, IfNode, WhileNode, LetNode, CaseNode, IsvoidNode, AssignNode, VarDeclarationNode, CaseItemNode, NotNode, ...
36.038674
87
0.559099
0
0
0
0
0
0
0
0
448
0.06868
fc30849700e1ea4826d82e5040dc0a3f7cab1d33
1,599
py
Python
userbot/plugins/selfdestruct.py
Aliensuniquebot/CatUserbot
93561a620fc1198c6fe6c259412088f4bc81d97b
[ "MIT" ]
1
2020-07-18T07:42:58.000Z
2020-07-18T07:42:58.000Z
userbot/plugins/selfdestruct.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
null
null
null
userbot/plugins/selfdestruct.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
2
2020-06-25T11:14:50.000Z
2021-04-04T13:49:13.000Z
# For @UniBorg # courtesy Yasir siddiqui """Self Destruct Plugin .sd <time in seconds> <text> """ import time from userbot import CMD_HELP from telethon.errors import rpcbaseerrors from userbot.utils import admin_cmd import importlib.util @borg.on(admin_cmd(pattern="sdm", outgoing=True)) async def selfdestruct(des...
28.052632
90
0.602251
0
0
0
0
1,070
0.669168
966
0.604128
402
0.251407
fc311bab55ecedbbd72f07232e73e6cac438a6b2
1,101
py
Python
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
import os class Template: template_name = '' context = None def __init__(self, template_name='', context=None, *args, **kwargs): self.template_name = template_name self.context = context def get_template(self): template_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), '...
30.583333
123
0.693006
852
0.773842
0
0
0
0
0
0
120
0.108992
fc3188873ff10721356aeaf7e965132781c78f98
793
py
Python
level_one/strings.py
jameskzhao/python36
855e8a6e164065702efa7773da1f089454fdcbcc
[ "Apache-2.0" ]
null
null
null
level_one/strings.py
jameskzhao/python36
855e8a6e164065702efa7773da1f089454fdcbcc
[ "Apache-2.0" ]
null
null
null
level_one/strings.py
jameskzhao/python36
855e8a6e164065702efa7773da1f089454fdcbcc
[ "Apache-2.0" ]
null
null
null
#Basics a = "hello" a += " I'm a dog" print(a) print(len(a)) print(a[1:]) #Output: ello I'm a dog print(a[:5]) #Output: hello(index 5 is not included) print(a[2:5])#Output: llo(index 2 is included) print(a[::2])#Step size #string is immutable so you can't assign a[1]= b x = a.upper() print(x) x = a.capitalize() prin...
22.027778
63
0.631778
0
0
0
0
0
0
0
0
442
0.557377
fc321e4d24702ee71bce5b7e534a97061ead9698
2,950
py
Python
tests/test_01_accept_time_get_headers.py
glushkovvv/test_2gis
2affff49411a3c7ff77e9d399ec86eb314aa3757
[ "MIT" ]
null
null
null
tests/test_01_accept_time_get_headers.py
glushkovvv/test_2gis
2affff49411a3c7ff77e9d399ec86eb314aa3757
[ "MIT" ]
1
2020-08-05T06:27:23.000Z
2020-08-05T06:27:42.000Z
tests/test_01_accept_time_get_headers.py
glushkovvv/test_2gis
2affff49411a3c7ff77e9d399ec86eb314aa3757
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_01_accept_time_get_headers ~~~~~~~~~~~~~~ The 2GIS API Test Check time get headers :author: Vadim Glushkov :copyright: Copyright 2019, The2GIS API Test" :license: MIT :version: 1.0.0 :maintainer: Vadim Glushkov :email: [email protected] :status: Development """ import pytest import a...
38.815789
116
0.649831
0
0
0
0
3,050
0.889991
0
0
2,186
0.637876
fc3233cb1459781c899740baf647a5f25ec92581
541
py
Python
transformers/string/strlen_transformer.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
transformers/string/strlen_transformer.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
transformers/string/strlen_transformer.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
"""Returns the string length of categorical values""" from h2oaicore.transformer_utils import CustomTransformer import datatable as dt import numpy as np class MyStrLenEncoderTransformer(CustomTransformer): @staticmethod def get_default_properties(): return dict(col_type="any", min_cols=1, max_cols=1,...
31.823529
82
0.724584
384
0.709797
0
0
130
0.240296
0
0
58
0.107209
fc34bcbcfb8ac1f6bc09817c52d24607717e7ad1
235
py
Python
geometry/eolearn/geometry/__init__.py
eerzin/eo-learn
53c5cc229de13b98b5778aeb1d45950c25bf2f95
[ "MIT" ]
1
2019-04-12T09:03:52.000Z
2019-04-12T09:03:52.000Z
geometry/eolearn/geometry/__init__.py
eerzin/eo-learn
53c5cc229de13b98b5778aeb1d45950c25bf2f95
[ "MIT" ]
null
null
null
geometry/eolearn/geometry/__init__.py
eerzin/eo-learn
53c5cc229de13b98b5778aeb1d45950c25bf2f95
[ "MIT" ]
3
2019-05-03T09:43:57.000Z
2019-09-10T17:29:39.000Z
""" Subpackage containing EOTasks for geometrical transformations """ from .utilities import ErosionTask, VectorToRaster, RasterToVector from .sampling import PointSamplingTask, PointSampler, PointRasterSampler __version__ = '0.4.2'
26.111111
73
0.821277
0
0
0
0
0
0
0
0
76
0.323404
fc35043bdda56bc264f387918b5687e34dea2849
1,152
py
Python
api/models/users.py
felipebarraza6/startup_comedy
42b4a4547bffc0d7cf34ace520355d80053bbd9e
[ "MIT" ]
null
null
null
api/models/users.py
felipebarraza6/startup_comedy
42b4a4547bffc0d7cf34ace520355d80053bbd9e
[ "MIT" ]
null
null
null
api/models/users.py
felipebarraza6/startup_comedy
42b4a4547bffc0d7cf34ace520355d80053bbd9e
[ "MIT" ]
null
null
null
"""User Model.""" # Django from django.db import models from django.contrib.auth.models import AbstractUser # Utilities from .utils import ApiModel class User(ApiModel, AbstractUser): email = models.EmailField( 'email', unique = True, ) USERNAME_FIELD = 'email' REQUIRED_FIELDS = [...
24
71
0.667535
994
0.862847
0
0
0
0
0
0
216
0.1875
fc3539d71d659a16209a54fcd5f9758f5e36c76b
3,993
py
Python
tests/test_server.py
m-bo-one/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
21
2017-07-24T15:45:03.000Z
2019-09-21T16:18:48.000Z
tests/test_server.py
m-bo-one/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
11
2017-07-24T20:14:16.000Z
2019-02-10T22:52:32.000Z
tests/test_server.py
DeV1doR/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
8
2018-02-17T13:33:15.000Z
2020-08-16T05:21:34.000Z
from collections import namedtuple import json from asynctest.mock import patch import pytest from ethereumd.server import RPCServer from ethereumd.proxy import EthereumProxy from aioethereum.errors import BadResponseError from .base import BaseTestRunner Request = namedtuple('Request', ['json']) class TestServe...
33.554622
76
0.596043
3,687
0.923366
0
0
3,396
0.850488
3,467
0.868269
615
0.15402
fc371494e70184822be6d1e222d5e8799a784228
973
py
Python
neorl/rl/baselines/readme.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
20
2021-04-20T19:15:33.000Z
2022-03-19T17:00:12.000Z
neorl/rl/baselines/readme.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
17
2021-04-07T21:52:41.000Z
2022-03-06T16:05:31.000Z
neorl/rl/baselines/readme.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
8
2021-05-07T03:36:30.000Z
2021-12-15T03:41:41.000Z
# This file is part of NEORL. # Copyright (c) 2021 Exelon Corporation and MIT Nuclear Science and Engineering # NEORL is free software: you can redistribute it and/or modify # it under the terms of the MIT LICENSE # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # ...
54.055556
94
0.74409
0
0
0
0
0
0
0
0
952
0.978417
fc3a04cfd338f72934bd5d86f8126f4adfa55c05
1,330
py
Python
Compare.py
sushantPatrikar/WaveCompartor
112395287b41c1b5533924ebe293c5641647a5e3
[ "MIT" ]
3
2019-10-27T03:45:18.000Z
2022-02-21T18:50:58.000Z
Compare.py
sushantPatrikar/WaveComparator
112395287b41c1b5533924ebe293c5641647a5e3
[ "MIT" ]
null
null
null
Compare.py
sushantPatrikar/WaveComparator
112395287b41c1b5533924ebe293c5641647a5e3
[ "MIT" ]
1
2021-04-20T07:39:37.000Z
2021-04-20T07:39:37.000Z
from scipy.io import wavfile import numpy as np import pingouin as pg import pandas as pd _,data = wavfile.read('wav//ed//mp3baked.wav') _,data1 = wavfile.read('wav//ing//ingeating.wav') i= data.shape[0]-1 j = data1.shape[0]-1 index_1 = -1 index_2 = -1 try: data.shape[1] except IndexError: ...
15.647059
50
0.552632
0
0
0
0
0
0
0
0
472
0.354887
fc3abec567aafacd5d2829eabdf814ac53962d6d
495
py
Python
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox TEST_SRC = dedent( """\ /* This is a multiline block comment */ """ ) EXPECTED_STDOUTS: list[str] = [] def test_block_comment_at_eof(capsys: pytest.CaptureFixture) -> None: interpreter = Lox() interpreter.run(TEST_SRC)...
18.333333
69
0.70101
0
0
0
0
0
0
0
0
64
0.129293
fc3c853df2b1d6ee609b09518a9278f9e15018c1
114
py
Python
mlbase/lazy.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
null
null
null
mlbase/lazy.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
2
2018-09-23T18:39:01.000Z
2018-09-24T18:02:21.000Z
mlbase/lazy.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
null
null
null
from mlbase.utils.misc import lazy tensorflow = lazy("tensorflow") numpy = lazy("numpy") gensim = lazy("gensim")
19
34
0.72807
0
0
0
0
0
0
0
0
27
0.236842
fc3d1481782a2c4ff97885d3937f7846223c55ab
1,082
py
Python
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
33
2015-04-29T08:11:42.000Z
2022-02-01T16:50:25.000Z
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
15
2015-02-04T15:11:17.000Z
2022-01-26T19:58:29.000Z
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
6
2017-06-11T19:40:31.000Z
2021-08-05T07:57:28.000Z
import re import setuptools README_FILENAME = "README.md" VERSION_FILENAME = "observed.py" VERSION_RE = r"^__version__ = ['\"]([^'\"]*)['\"]" # Get version information with open(VERSION_FILENAME, "r") as version_file: mo = re.search(VERSION_RE, version_file.read(), re.M) if mo: version = mo.group(1) else: ...
27.05
67
0.685767
0
0
0
0
0
0
0
0
433
0.400185
fc3d20f3595ad33d1e9d9bf80ce974904075e7ce
3,536
py
Python
src/coco.py
catalyst-team/detector
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
15
2019-05-15T13:42:51.000Z
2020-11-09T23:13:06.000Z
src/coco.py
catalyst-team/detector
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
1
2020-01-09T08:53:49.000Z
2020-01-16T19:41:16.000Z
src/coco.py
catalyst-team/detection
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
null
null
null
import os import json import numpy as np import pickle from typing import Any from pycocotools.coco import COCO from torch.utils.data import Dataset class DetectionMSCOCODataset(Dataset): def __init__(self, annotation_file: str, image_dir: str): self._annotation_file = annotation_file self._imag...
32.440367
97
0.588235
3,383
0.956731
0
0
0
0
0
0
206
0.058258
fc3d3b9be540fd17668cfe15a94b53ed79b67b0a
328
py
Python
UVa 10105 polynomial coefficients/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 10105 polynomial coefficients/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 10105 polynomial coefficients/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import sys import operator sys.stdin = open('input.txt') fact = [1, 1] for i in range(2, 15): fact.append(fact[-1] * i) while True: try: n, k = map(int, raw_input().split()) coef = map(int, raw_input().split()) except: break print fact[n] / reduce(operator.mul, [fact[c] for c in...
21.866667
65
0.579268
0
0
0
0
0
0
0
0
11
0.033537
fc3d8c49e88cab357d3bb76422dab0b50f4b1b22
702
py
Python
pynotes/note/models.py
wallaceleonel/Flash-Cards
fd563455d437f77e42ddf96133214cf752b62bb6
[ "MIT" ]
2
2020-08-06T15:03:31.000Z
2020-10-18T14:40:19.000Z
pynotes/note/models.py
wallaceleonel/Flash-Cards
fd563455d437f77e42ddf96133214cf752b62bb6
[ "MIT" ]
1
2020-08-06T16:15:12.000Z
2020-08-06T16:15:12.000Z
pynotes/note/models.py
wallaceleonel/Flash-Cards
fd563455d437f77e42ddf96133214cf752b62bb6
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.urls import reverse # Create your models here. class Post(models.Model): title = models.CharField(max_length=255) slug = models.SlugField(max_length=255,unique=True) #meusite.com/blog;introducao-ao-django author = mo...
27
65
0.710826
566
0.806268
0
0
0
0
0
0
93
0.132479
fc3e56f1b6dc2446fe20c8456364bfd95e849dd0
7,538
py
Python
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ***************************************************************************** # # 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 A...
51.986207
122
0.628549
0
0
0
0
0
0
0
0
3,322
0.4407
fc403c27d1d4da0e66a446351a2e2650278bc62d
1,527
py
Python
pyACA/ToolFreq2Bark.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
81
2019-07-08T15:48:03.000Z
2022-03-21T22:52:25.000Z
pyACA/ToolFreq2Bark.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
24
2019-10-03T19:20:18.000Z
2022-02-28T17:20:40.000Z
pyACA/ToolFreq2Bark.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
26
2019-07-18T23:50:52.000Z
2022-03-10T14:59:35.000Z
# -*- coding: utf-8 -*- """ helper function: convert Hz to Bark scale Args: fInHz: The frequency to be converted, can be scalar or vector cModel: The name of the model ('Schroeder' [default], 'Terhardt', 'Zwicker', 'Traunmuller') Returns: Bark values of the input dimension """ import numpy as np imp...
28.811321
95
0.591356
0
0
0
0
0
0
0
0
370
0.242305
fc40aa5a0884df8e751f2fa5cfb93216f3c13768
16,560
py
Python
magenta/models/sketch_rnn/rnn.py
laurens-in/magenta
be6ed8d5b1eb2986ca277aa9c574a7912dd5ed0f
[ "Apache-2.0" ]
1
2021-12-27T10:43:39.000Z
2021-12-27T10:43:39.000Z
magenta/models/sketch_rnn/rnn.py
kyungyunlee/magenta
cf80d19fc0c2e935821f284ebb64a8885f793717
[ "Apache-2.0" ]
null
null
null
magenta/models/sketch_rnn/rnn.py
kyungyunlee/magenta
cf80d19fc0c2e935821f284ebb64a8885f793717
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Magenta Authors. # # 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 agreed to in ...
33.186373
80
0.634964
10,974
0.662681
0
0
495
0.029891
0
0
3,807
0.229891
fc412db90075a83ae4e5731ee32b0fb7611791ff
6,034
py
Python
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
# usr/bin/env python """Functions to cluster using UPGMA upgma takes an dictionary of pair tuples mapped to distances as input. UPGMA_cluster takes an array and a list of PhyloNode objects corresponding to the array as input. Can also generate this type of input from a DictArray using inputs_from_dict_array function....
36.569697
82
0.716937
0
0
0
0
0
0
0
0
3,189
0.528505
fc416ffd2f7c1bbdb707cd0d27fb98dd3ff367ba
881
py
Python
src/python/make_store_entry.py
kf7lsu/RegfileCompiler-public
0845f1458137cef06d584047bb4287a72c6afbab
[ "Apache-2.0" ]
null
null
null
src/python/make_store_entry.py
kf7lsu/RegfileCompiler-public
0845f1458137cef06d584047bb4287a72c6afbab
[ "Apache-2.0" ]
null
null
null
src/python/make_store_entry.py
kf7lsu/RegfileCompiler-public
0845f1458137cef06d584047bb4287a72c6afbab
[ "Apache-2.0" ]
null
null
null
#this code will generate the structural verilog for a single entry in the register file #takes in the output file manager, the entry number, the number of bits, the number of reads, and the width of the #tristate buffers on the read outputs #expects the same things as make_store_cell, ensure code is valid there #Matt...
31.464286
114
0.760499
0
0
0
0
0
0
0
0
481
0.54597
fc417b4336f77e529dd64d425d37722b3edade09
1,007
py
Python
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
"""API for AVB""" import json import sys import requests def actualite_found (): osm = "https://opendata.bruxelles.be/api/datasets/1.0/search/?q=" data = { "nhits":0, "parameters":{ "dataset":"actualites-ville-de-bruxelles", "timezone":"UTC", "q":"actualite", "langu...
19.365385
69
0.5571
0
0
0
0
0
0
0
0
334
0.331678
fc422cd23ef7241b5d35bfeb10b87ff16ba77128
7,782
py
Python
improver/cli/nbhood.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver/cli/nbhood.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver/cli/nbhood.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
42.758242
88
0.681187
0
0
0
0
5,972
0.767412
0
0
5,620
0.722179
fc43b75bb4a6cda564bcd320da8b77c8174105e4
58,644
py
Python
bonsai/model.py
ipa-mirb/bonsai
cb73317cdf779566f7c496fc39546c9c689aa09c
[ "MIT" ]
null
null
null
bonsai/model.py
ipa-mirb/bonsai
cb73317cdf779566f7c496fc39546c9c689aa09c
[ "MIT" ]
null
null
null
bonsai/model.py
ipa-mirb/bonsai
cb73317cdf779566f7c496fc39546c9c689aa09c
[ "MIT" ]
null
null
null
#Copyright (c) 2017 Andre Santos # #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 without limitation the rights #to use, copy, modify, merge, publish, distribute...
35.889841
81
0.60325
56,001
0.954931
3,925
0.066929
2,993
0.051037
0
0
30,428
0.51886
fc44182959538bc560fdd3758022cac4683b26ba
737
py
Python
api/views/todo_views.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
api/views/todo_views.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
api/views/todo_views.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import viewsets, status from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated, IsAdminUser from api.serializers import TODOListSerializer from api.models import TODOList class TODOListViewSet(viewsets.ModelVi...
33.5
86
0.766621
453
0.614654
0
0
0
0
0
0
19
0.02578
fc4539e7bc135f9ebeba5ee7c487446b450f5f15
35
py
Python
Python/Tests/TestData/ProjectHomeProjects/Subfolder/ProgramB.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/ProjectHomeProjects/Subfolder/ProgramB.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/ProjectHomeProjects/Subfolder/ProgramB.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
# ProgramB.py print('Hello World')
11.666667
20
0.714286
0
0
0
0
0
0
0
0
26
0.742857
fc461d0fe4c1ef7384477f1e053ae3080c54c6a9
1,541
py
Python
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
1
2019-04-23T01:29:26.000Z
2019-04-23T01:29:26.000Z
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
68
2017-02-10T21:33:39.000Z
2019-06-22T13:40:02.000Z
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
5
2016-11-08T01:35:47.000Z
2020-12-08T07:32:34.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion def copy_existing_referrals_into_new_field(apps, schema_editor): Pledge = apps.get_model('donation', 'Pledge') Referral = apps.get_model('donation', 'Referral') reason...
35.022727
171
0.658663
790
0.512654
0
0
0
0
0
0
260
0.168722
fc4647689f1b8d8a1248e0d89dd5fa8d84dedfbf
350
py
Python
python/is_even.py
c1m50c/twitter-examples
c3ed7cf88dacbb761fed1b0b0dc593d7d3648378
[ "MIT" ]
null
null
null
python/is_even.py
c1m50c/twitter-examples
c3ed7cf88dacbb761fed1b0b0dc593d7d3648378
[ "MIT" ]
null
null
null
python/is_even.py
c1m50c/twitter-examples
c3ed7cf88dacbb761fed1b0b0dc593d7d3648378
[ "MIT" ]
null
null
null
def is_even(i: int) -> bool: if i == 1: return False elif i == 2: return True elif i == 3: return False elif i == 4: return True elif i == 5: ... # Never do that! Use one of these instead... is_even = lambda i : i % 2 == 0 is_even = lambda i : not i & 1 is_o...
20.588235
44
0.511429
0
0
0
0
0
0
0
0
44
0.125714
fc46a91fda80741480960994acf3dbc98c9e618b
8,886
py
Python
wordpress-brute.py
RandomRobbieBF/wordpress-bf
fe78d4367b7baaf18a4200c5c040595d37b4100f
[ "MIT" ]
1
2020-07-27T11:30:23.000Z
2020-07-27T11:30:23.000Z
wordpress-brute.py
RandomRobbieBF/wordpress-bf
fe78d4367b7baaf18a4200c5c040595d37b4100f
[ "MIT" ]
null
null
null
wordpress-brute.py
RandomRobbieBF/wordpress-bf
fe78d4367b7baaf18a4200c5c040595d37b4100f
[ "MIT" ]
1
2020-05-17T12:40:13.000Z
2020-05-17T12:40:13.000Z
#!/usr/bin/env python # # Wordpress Bruteforce Tool # # By @random_robbie # # import requests import json import sys import argparse import re import os.path from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) session = requests.Se...
31.399293
388
0.679721
0
0
0
0
0
0
0
0
3,616
0.406932
fc48029eb6bc6d9c3b97d0e2970ae2bc11eb162e
5,626
py
Python
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
1
2021-01-18T19:35:48.000Z
2021-01-18T19:35:48.000Z
import heapq import time from os import path from math import floor class Heap: def __init__(self): self.size = 0 self.array = [] self.v2index_map = {} def __get_parent_index(self, idx): return int(floor((idx - 1) / 2)) def __get_left_child_index(self, idx): retur...
27.714286
119
0.551369
2,513
0.446676
0
0
0
0
0
0
566
0.100604
fc480677b321e1843fe0812d2b7ce6bbeeb5090e
4,345
py
Python
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
604
2021-08-09T03:00:35.000Z
2022-03-31T13:43:14.000Z
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
158
2021-08-29T07:58:22.000Z
2022-03-31T15:23:27.000Z
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
92
2021-08-24T07:29:37.000Z
2022-03-29T03:01:34.000Z
import warnings from collections import Counter, Mapping, Sequence from numbers import Number from typing import Dict, List import numpy as np import torch from mmdet.core.mask.structures import BitmapMasks from torch.nn import functional as F _step_counter = Counter() def list_concat(data_list: List[list]): if...
28.214286
88
0.607595
0
0
0
0
0
0
0
0
63
0.014499
fc49b99b0326493e147f5f9c2af303341e2290ed
2,422
py
Python
tests/tabular_output/test_terminaltables_adapter.py
zzl0/cli_helpers
266645937423225bdb636ef6aa659f1a40ceec5f
[ "BSD-3-Clause" ]
null
null
null
tests/tabular_output/test_terminaltables_adapter.py
zzl0/cli_helpers
266645937423225bdb636ef6aa659f1a40ceec5f
[ "BSD-3-Clause" ]
null
null
null
tests/tabular_output/test_terminaltables_adapter.py
zzl0/cli_helpers
266645937423225bdb636ef6aa659f1a40ceec5f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test the terminaltables output adapter.""" from __future__ import unicode_literals from textwrap import dedent import pytest from cli_helpers.compat import HAS_PYGMENTS from cli_helpers.tabular_output import terminaltables_adapter if HAS_PYGMENTS: from pygments.style import Style ...
34.6
86
0.547069
131
0.053513
0
0
1,614
0.659314
0
0
1,215
0.496324
fc4a04571ae8ad033810ff66b391deb8c9d55bed
1,642
py
Python
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
#! /usr/bin/env python # encoding: utf-8 # harald at klimachs.de import re from waflib import Utils,Errors from waflib.Tools import fc,fc_config,fc_scan from waflib.Configure import conf from waflib.Tools.compiler_fc import fc_compiler fc_compiler['aix'].insert(0, 'fc_xlf') @conf def find_xlf(conf): """Find the xlf...
25.261538
115
0.693057
0
0
0
0
1,215
0.739951
0
0
533
0.324604
fc4af8f087c68aec19d9b595aee4bd3178dfeac2
9,119
py
Python
tutorials/create_table/tests.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
13
2020-11-05T04:22:51.000Z
2022-02-27T08:44:50.000Z
tutorials/create_table/tests.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
null
null
null
tutorials/create_table/tests.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
2
2020-11-10T10:01:20.000Z
2021-04-07T02:33:29.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # __author__ = '__MeGustas__' from django.test import TestCase from django.db import connection from tutorials.create_table.models import * # Create your tests here. class TestHealthFile(TestCase): def setUp(self): cursor = connection.cursor() # Popul...
67.051471
154
0.665205
8,905
0.976533
0
0
0
0
0
0
7,156
0.784735
fc4b846e57d2910c0d4eb0a932e3548a8ac421c6
31,822
py
Python
hero/hero.py
tmfds/dfk
91b6f95a4630b57deecf87cf4850b6576646c7d1
[ "MIT" ]
null
null
null
hero/hero.py
tmfds/dfk
91b6f95a4630b57deecf87cf4850b6576646c7d1
[ "MIT" ]
null
null
null
hero/hero.py
tmfds/dfk
91b6f95a4630b57deecf87cf4850b6576646c7d1
[ "MIT" ]
null
null
null
import copy from web3 import Web3 from .utils import utils as hero_utils CONTRACT_ADDRESS = '0x5f753dcdf9b1ad9aabc1346614d1f4746fd6ce5c' ABI = """ [ {"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"addres...
117.859259
5,003
0.671139
0
0
0
0
0
0
0
0
23,757
0.746559
fc4c938deecee815416606c1468c7d127f759b88
364
py
Python
tests/test_langs_fr.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
3
2016-04-13T17:49:09.000Z
2017-11-10T22:26:17.000Z
tests/test_langs_fr.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
null
null
null
tests/test_langs_fr.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from tipi import tipi as _tipi tipi = lambda s: _tipi(s, lang='fr') def test_double_quotes(): assert tipi('''"brutal" "quote's"''') == ( '''«brutal» «quote's»''' ) def test_single_quotes(): assert tipi("""'brutal' 'quote's'""") ...
17.333333
46
0.56044
0
0
0
0
0
0
0
0
135
0.359043
fc50f97ead454f81e6290dc083d27cd62ab11353
2,878
py
Python
vendor/models.py
brethauer/mirage
396f61206bf76f997c0535277af918058aa1b827
[ "CC0-1.0" ]
8
2015-03-07T02:56:32.000Z
2016-08-30T17:09:30.000Z
vendor/models.py
brethauer/mirage
396f61206bf76f997c0535277af918058aa1b827
[ "CC0-1.0" ]
16
2015-02-25T16:09:39.000Z
2016-12-09T22:58:04.000Z
vendor/models.py
brethauer/mirage
396f61206bf76f997c0535277af918058aa1b827
[ "CC0-1.0" ]
13
2015-03-09T00:20:49.000Z
2021-02-14T11:02:32.000Z
from django.db import models VEHICLE_CHOICES = ( ('OASISSB', 'OASIS Small Business'), ('OASIS', 'OASIS Unrestricted') ) STATUS_CHOICES = ( ('P', 'In Progress'), ('C', 'Completed'), ('F', 'Cancelled') ) class Vendor(models.Model): name = models.CharField(max_length=128) duns = models.C...
33.858824
82
0.709173
2,635
0.915566
0
0
0
0
0
0
199
0.069145
fc515ce56fd34f4315010ae886d6091f5950eab2
610
py
Python
two_qubit_simulator/circuits.py
L-McCormack/two-qubit-simulator
d7115f0630c9931724aa660dba4b89a50db4e2e0
[ "MIT" ]
null
null
null
two_qubit_simulator/circuits.py
L-McCormack/two-qubit-simulator
d7115f0630c9931724aa660dba4b89a50db4e2e0
[ "MIT" ]
null
null
null
two_qubit_simulator/circuits.py
L-McCormack/two-qubit-simulator
d7115f0630c9931724aa660dba4b89a50db4e2e0
[ "MIT" ]
null
null
null
""" Contains the QuantumCircuit class boom. """ class QuantumCircuit(object): # pylint: disable=useless-object-inheritance """ Implements a quantum circuit. - - - WRITE DOCUMENTATION HERE - - - """ def __init__(self): """ Initialise a QuantumCircuit object """ pass def add_ga...
23.461538
74
0.598361
560
0.918033
0
0
0
0
0
0
356
0.583607
fc519cd073372b79ff5e315d6c117f1de77e8ef5
602
py
Python
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
2
2021-06-22T18:18:47.000Z
2021-09-25T18:16:26.000Z
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
null
null
null
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
null
null
null
import sys sys.path.append("..") # change environment to see tools from make_hydrodem import bathymetricGradient workspace = r"" # path to geodatabase to use as a workspace snapGrid = r"" # path to snapping grid hucPoly = r"" # path to local folder polygon hydrographyArea = r"" # path to NHD area feature class...
43
67
0.757475
0
0
0
0
0
0
0
0
278
0.461794
fc52596785d1ffc33b3982ed9e7fa9443b9fefb7
9,799
py
Python
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
1
2021-07-01T09:40:01.000Z
2021-07-01T09:40:01.000Z
# This is the OpenGL context for drawing flow calculation lines from Context import * from primitives import Vector2, Segment from OpenGL.GL import * from copy import deepcopy class GLFlowSegment( Segment ): '''The OpenGL representation of a flow line. Basically a segment with a direciton indicator. The dire...
37.98062
89
0.525462
9,619
0.981631
0
0
0
0
0
0
2,838
0.289621
fc526e31f18c99d7210b6012a52b4a8ccf202ae9
35
py
Python
instascrape/collectors/__init__.py
Paola351/instascrape
b4a50c9140fa9054187738f6d1564cecc32cbaab
[ "MIT" ]
1
2021-03-10T03:36:43.000Z
2021-03-10T03:36:43.000Z
examples/collectors/__init__.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
examples/collectors/__init__.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
from .interval_collectors import *
17.5
34
0.828571
0
0
0
0
0
0
0
0
0
0
fc5346e19911a49d8686625f457f771311d07483
324
py
Python
Codes/gracekoo/test.py
ghoslation/algorithm
5708bf89e59a80cd0f50f2e6138f069b4f9bc96e
[ "Apache-2.0" ]
256
2017-10-25T13:02:15.000Z
2022-02-25T13:47:59.000Z
Codes/gracekoo/test.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
56
2017-10-27T01:34:20.000Z
2022-03-01T00:20:55.000Z
Codes/gracekoo/test.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
83
2017-10-25T12:51:53.000Z
2022-02-15T08:27:03.000Z
# -*- coding: utf-8 -*- # @Time: 2020/11/8 23:47 # @Author: GraceKoo # @File: test.py # @Desc: from threading import Thread import time def print_numbers(): time.sleep(0.2) print("子线程结束") if __name__ == "__main__": t1 = Thread(target=print_numbers) t1.setDaemon(True) t1.start() # print("主线程结...
16.2
37
0.623457
0
0
0
0
0
0
0
0
143
0.415698
fc534b79cb83ef68a1a71a69fd50a17561f7b0a3
5,894
py
Python
src/_main_/settings.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/_main_/settings.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/_main_/settings.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
""" Django settings for massenergize_portal_backend project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/setting...
29.918782
165
0.69172
0
0
0
0
0
0
0
0
3,545
0.601459
fc545ada34aef15e72804247df9cc885de6ee820
2,657
py
Python
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
import asyncio # from aiorpcgrid.client import Client from aiorpcgrid.task import AsyncTask, State class AsyncClient: _provider = None _method = None _requests: dict = {} _running = True _request_queue: asyncio.Queue = asyncio.Queue() _loop = None def __init__(self, provider, loop=None):...
34.960526
77
0.546481
2,554
0.961234
0
0
0
0
1,670
0.628528
94
0.035378
fc557f84938097fbd8c0d95d4d05c57f1ad0bde0
4,093
py
Python
python/src/otel/otel_sdk/opentelemetry/instrumentation/aws_lambda/__init__.py
matt-tyler/opentelemetry-lambda
6b427d351fa721620fcd387e836e9f2f9f20cb60
[ "Apache-2.0" ]
null
null
null
python/src/otel/otel_sdk/opentelemetry/instrumentation/aws_lambda/__init__.py
matt-tyler/opentelemetry-lambda
6b427d351fa721620fcd387e836e9f2f9f20cb60
[ "Apache-2.0" ]
null
null
null
python/src/otel/otel_sdk/opentelemetry/instrumentation/aws_lambda/__init__.py
matt-tyler/opentelemetry-lambda
6b427d351fa721620fcd387e836e9f2f9f20cb60
[ "Apache-2.0" ]
1
2021-01-24T12:08:18.000Z
2021-01-24T12:08:18.000Z
# Copyright 2020, OpenTelemetry Authors # # 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 agreed to i...
34.108333
151
0.716101
2,307
0.563645
0
0
0
0
0
0
1,771
0.43269
fc572a69e6a41f7d2d8f4eb6c221dcaa2427e9e3
471
py
Python
instructors/migrations/0021_alter_user_avatar_url.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
instructors/migrations/0021_alter_user_avatar_url.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
instructors/migrations/0021_alter_user_avatar_url.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-04-01 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instructors', '0020_alter_user_description_alter_user_title'), ] operations = [ migrations.AlterField( model_name='user', ...
24.789474
108
0.651805
378
0.802548
0
0
0
0
0
0
174
0.369427
fc58e1c32b322dbf5e028fbcbb5c81a4dc6ff07a
1,348
py
Python
sopa/src/models/utils.py
SamplingAndEnsemblingSolvers/SamplingAndEnsemblingSolvers
5ad3cae76c3cc9cec4d347807012e61121ea61b9
[ "MIT" ]
25
2021-03-16T13:40:45.000Z
2021-08-12T04:54:39.000Z
sopa/src/models/utils.py
MetaSolver/icml2021
619774abe4a834ae371434af8b23379e9524e7da
[ "BSD-3-Clause" ]
null
null
null
sopa/src/models/utils.py
MetaSolver/icml2021
619774abe4a834ae371434af8b23379e9524e7da
[ "BSD-3-Clause" ]
1
2021-03-31T02:58:03.000Z
2021-03-31T02:58:03.000Z
import numpy as np import torch import random from .odenet_mnist.layers import MetaNODE def fix_seeds(seed=502): np.random.seed(seed) random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) torch.set_printoptions(precision=10) torch.backends.cudnn.deterministic = Tr...
27.510204
99
0.635015
452
0.335312
0
0
0
0
0
0
81
0.060089
fc5ae40661fc1b76d02d932d2ea414f59839b072
319
py
Python
packages/micropython-official/v1.10/esp32/stubs/ubinascii.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/micropython-official/v1.10/esp32/stubs/ubinascii.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/micropython-official/v1.10/esp32/stubs/ubinascii.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'ubinascii' on esp32 1.10.0 """ # MCU: (sysname='esp32', nodename='esp32', release='1.10.0', version='v1.10 on 2019-01-25', machine='ESP32 module with ESP32') # Stubber: 1.2.0 def a2b_base64(): pass def b2a_base64(): pass def crc32(): pass def hexlify(): pass def unhexlify(): pass
15.190476
126
0.623824
0
0
0
0
0
0
0
0
185
0.579937
fc5b4e12e35ec5a1123e4672989f9b50567b330a
3,141
py
Python
jv/test_jv.py
chenwang/QuantEcon.lectures.code
8832a74acd219a71cb0a99dc63c5e976598ac999
[ "BSD-3-Clause" ]
56
2017-05-09T10:45:23.000Z
2022-01-20T20:33:27.000Z
jv/test_jv.py
chenwang/QuantEcon.lectures.code
8832a74acd219a71cb0a99dc63c5e976598ac999
[ "BSD-3-Clause" ]
7
2017-06-30T01:52:46.000Z
2019-05-01T20:09:47.000Z
jv/test_jv.py
QuantEcon/QuantEcon.lectures.code
d61ac7bc54529dd5c77470c17539eb2418b047c9
[ "BSD-3-Clause" ]
117
2017-04-25T16:09:17.000Z
2022-03-23T02:30:29.000Z
""" @author : Spencer Lyon """ from __future__ import division import sys import unittest from nose.plugins.skip import SkipTest from jv import JvWorker from quantecon import compute_fixed_point from quantecon.tests import get_h5_data_file, write_array, max_abs_diff # specify params -- use defaults A = 1.4 alpha = 0...
28.044643
78
0.606176
1,210
0.385228
0
0
400
0.127348
0
0
760
0.241961
fc5bfb461089e67c5b2c46ef4db3208ad1a8b352
9,820
py
Python
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
null
null
null
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
null
null
null
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
1
2021-12-31T13:24:16.000Z
2021-12-31T13:24:16.000Z
"""Config This module is in charge of providing all the necessary settings to the rest of the modules in excentury. """ import os import re import sys import textwrap import argparse from collections import OrderedDict from excentury.command import error, trace, import_mod DESC = """Edit a configuration file for ex...
33.175676
77
0.559063
574
0.058452
0
0
0
0
0
0
3,245
0.330448
fc5d1f91e8b522de235f963587514841692890ab
4,696
py
Python
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
8
2020-10-12T02:59:03.000Z
2022-03-20T15:06:50.000Z
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
3
2020-10-13T16:30:09.000Z
2021-01-07T23:57:05.000Z
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
5
2020-10-12T14:57:41.000Z
2021-12-30T11:52:34.000Z
# -*- coding: utf-8 -*- ''' Created on Thu Nov 19 20:52:33 2015 @author: SW274998 ''' from nseta.common.commons import * import datetime import unittest import time from bs4 import BeautifulSoup from tests import htmls import json import requests import six from nseta.common.urls import * import nseta.common.urls as ...
34.277372
178
0.643526
3,721
0.792376
0
0
0
0
0
0
903
0.192291
fc5d4359e9534912a4f50ac4cf894cf8797005d0
3,207
py
Python
accounts/forms.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
2
2019-08-30T14:42:45.000Z
2019-09-01T01:49:38.000Z
accounts/forms.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
7
2021-03-31T20:01:14.000Z
2022-03-12T00:47:10.000Z
accounts/forms.py
gthreepwood/Django-CRM
12de7e6c622d9d7483c210212c8b7fe3dbde2739
[ "MIT" ]
1
2021-10-09T10:03:46.000Z
2021-10-09T10:03:46.000Z
from django import forms from .models import Account from common.models import Comment, Attachments from leads.models import Lead from contacts.models import Contact from django.db.models import Q class AccountForm(forms.ModelForm): def __init__(self, *args, **kwargs): account_view = kwargs.pop('account'...
41.115385
104
0.617399
3,001
0.935766
0
0
0
0
0
0
748
0.23324
fc5dc71b519a1377907665d2b2ecee494faf08a3
2,408
py
Python
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 PyWren Team # # 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 agreed to in writing...
34.898551
148
0.658638
1,689
0.701412
0
0
0
0
0
0
935
0.388289
fc5f5a1b908ccb47f94225746e71f15650a97363
4,160
py
Python
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
import os import random inputDirectory = "./original" outputDirectory = "./processed" #probability parameters TopLevel = 0.6 SecondLevel = 0.5 ThirdLevel = 0.4 FourAndAbove = 0.2 pickInside = 0.5 pickOutside = 0.25 topics = [] siteLevel = [] fileStructure = [] count = 0 def findPossibleIndex(toParse): toRetu...
33.821138
178
0.571394
0
0
0
0
0
0
0
0
122
0.029313
fc61f699dd50ec363bb2a766f77f3f5058fefd54
13,616
py
Python
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
null
null
null
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
1
2021-02-09T10:18:14.000Z
2021-02-17T08:28:58.000Z
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
3
2021-02-06T23:37:14.000Z
2022-01-19T15:26:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the Kramers-Kronig Calculator software package. # # Copyright (c) 2013 Benjamin Watts, Daniel J. Lauk # # The software is licensed under the terms of the zlib/libpng license. # For details see LICENSE.txt """This module implements the Kramers-Kronig...
47.608392
363
0.735238
0
0
0
0
0
0
0
0
6,183
0.454098
fc62c8d6aa28b5a801e73fa4abc1d1fe577304dd
1,884
py
Python
random-images/hexxy.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
random-images/hexxy.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
random-images/hexxy.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
from PIL import ImageDraw, Image from math import cos,sin,radians from random import randint import sys a = "a0A1b2B3c4C5d6D7e8E9f!F,g.G/h?H<i>I:j;J'k\"K\\l|L/m M\nn\tN@o#O$p%P^q&Q*r(R)s_S-t+T=u{U}v[V]w W x X y Y z Z" if len(a) > 128: print("TOO MANY CHARACTERS") sys.exit(1) # for i in a: # print("%s -> %...
28.545455
113
0.537686
0
0
0
0
0
0
0
0
554
0.294055
fc63326e97a96ff49b392fe1692ec3ec3a6b80ad
16,626
py
Python
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
import math from collections import defaultdict from typing import List, Dict, Any from nonebot import on_command, on_message, on_notice, on_regex, get_driver from nonebot.log import logger from nonebot.permission import Permission from nonebot.typing import T_State from nonebot.adapters import Event, Bot from nonebot...
33.318637
216
0.566582
0
0
0
0
13,721
0.74725
13,916
0.75787
6,060
0.330029
fc63dea630bc5c4125015a5d1d443364d31e7cfa
1,853
py
Python
trace_analysis/trace_analysis/architecture/interface.py
hsgwa/trace_analysis
16169f84e838af5202e2be8f4883dfca5bc7f592
[ "Apache-2.0" ]
null
null
null
trace_analysis/trace_analysis/architecture/interface.py
hsgwa/trace_analysis
16169f84e838af5202e2be8f4883dfca5bc7f592
[ "Apache-2.0" ]
null
null
null
trace_analysis/trace_analysis/architecture/interface.py
hsgwa/trace_analysis
16169f84e838af5202e2be8f4883dfca5bc7f592
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Research Institute of Systems Planning, 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 applica...
26.471429
81
0.72531
967
0.521856
0
0
630
0.339989
0
0
606
0.327037
fc652ca3b217323de609509cf9bf7a86e05a1571
28
py
Python
disrank/__init__.py
treehousekingcomic/disrank
6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7
[ "MIT" ]
1
2021-05-06T14:46:46.000Z
2021-05-06T14:46:46.000Z
disrank/__init__.py
treehousekingcomic/disrank
6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7
[ "MIT" ]
null
null
null
disrank/__init__.py
treehousekingcomic/disrank
6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7
[ "MIT" ]
null
null
null
from thkc_disrank import *
14
27
0.785714
0
0
0
0
0
0
0
0
0
0
fc66871c7a70ed30f6605efa0e99f0abf3ceaa25
4,854
py
Python
layers/gin_layer.py
JakeStevens/benchmarking-gnns
a17fdf1b1d758fc65d5eeaf3726f5efa747a4081
[ "MIT" ]
275
2020-10-22T22:03:33.000Z
2022-03-25T06:08:05.000Z
semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py
xgbt/GraphCL
d857849d51bb168568267e07007c0b0c8bb6d869
[ "MIT" ]
43
2020-10-30T08:28:01.000Z
2022-03-31T16:55:12.000Z
semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py
xgbt/GraphCL
d857849d51bb168568267e07007c0b0c8bb6d869
[ "MIT" ]
70
2020-10-28T19:14:18.000Z
2022-03-27T06:11:51.000Z
import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn """ GIN: Graph Isomorphism Networks HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019) https://arxiv.org/pdf/1810.00826.pdf """ class GINLayer(nn.Module):...
32.577181
124
0.581994
4,546
0.936547
0
0
0
0
0
0
1,621
0.333951
fc66cd08fbbe334f7cc1e76eb76063eb07e5b49e
673
py
Python
music/distance/aural/diatonic/__init__.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/distance/aural/diatonic/__init__.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/distance/aural/diatonic/__init__.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
""" *mus . it . dia* The simple diatonic intervals. """ from .second import MinorSecond from .second import MajorSecond from .third import MinorThird from .third import MajorThird from .fourth import PerfectFourth from .fifth import Tritone from .fifth import PerfectFifth from .sixth import MinorSixth from .s...
18.694444
33
0.708767
0
0
0
0
0
0
0
0
212
0.315007
fc6780fb69ebe4416f273d6821ceb9f2cb3226e8
760
py
Python
selenium_tests/test_functions.py
AriTheGuitarMan/AriTheGuitarMan.github.io
8348ad0c47e48477560e7e40ec7eac8bca6fcdfa
[ "MIT" ]
null
null
null
selenium_tests/test_functions.py
AriTheGuitarMan/AriTheGuitarMan.github.io
8348ad0c47e48477560e7e40ec7eac8bca6fcdfa
[ "MIT" ]
null
null
null
selenium_tests/test_functions.py
AriTheGuitarMan/AriTheGuitarMan.github.io
8348ad0c47e48477560e7e40ec7eac8bca6fcdfa
[ "MIT" ]
null
null
null
# this file holds some common testing functions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By depurl = "localhost:3000" def getElement(driver, xpath): return WebDriverWait(driver, 10).until(EC....
33.043478
93
0.727632
0
0
0
0
0
0
0
0
135
0.177632
fc68e0edf30588586dedbfe1358fdf97ab01598d
4,783
py
Python
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
#-- coding: utf-8 -- import sys reload(sys) sys.setdefaultencoding('utf-8') import os import time import collections from PIL import Image, ImageOps, ImageDraw, ImageFont code_2_icono = collections.defaultdict(lambda : '38') kor_2_eng = collections.defaultdict(lambda : 'UNKNOWN') code_2_icono['SKY_O00'] = ['38'] ...
32.986207
127
0.615931
2,941
0.612326
0
0
0
0
0
0
867
0.180512
fc69e4e9cacf2317d6b062809fbe0cb9a22ea2b1
72
py
Python
hydrobox/discharge/__init__.py
VForWaTer/hydrobox
ae7d10bf5aa48bf7daf3d1094e6bb66f0a7ce96b
[ "MIT" ]
4
2020-10-08T15:31:36.000Z
2021-06-25T00:46:40.000Z
hydrobox/discharge/__init__.py
joergmeyer-kit/hydrobox
af75a5ba87147e00656435c170535c69fc3298a8
[ "MIT" ]
5
2020-05-12T08:45:18.000Z
2021-05-20T07:18:47.000Z
hydrobox/discharge/__init__.py
joergmeyer-kit/hydrobox
af75a5ba87147e00656435c170535c69fc3298a8
[ "MIT" ]
3
2020-07-27T07:16:14.000Z
2021-04-28T21:57:48.000Z
from .catchment import regime, flow_duration_curve from . import indices
36
50
0.847222
0
0
0
0
0
0
0
0
0
0
fc69e76506c689aa4c8cc54b37cd338453f7483a
1,256
py
Python
scripts/convert_keras2onnx.py
ecmwf-lab/infero
4fec006175af48cd0313b2f89722c01636e961db
[ "Apache-2.0" ]
8
2021-12-20T06:24:16.000Z
2022-02-17T15:21:55.000Z
scripts/convert_keras2onnx.py
ecmwf-projects/infero
4c229a16ce75a249c83cbf43e0c953a7a42f2f83
[ "Apache-2.0" ]
null
null
null
scripts/convert_keras2onnx.py
ecmwf-projects/infero
4c229a16ce75a249c83cbf43e0c953a7a42f2f83
[ "Apache-2.0" ]
1
2021-10-04T10:14:23.000Z
2021-10-04T10:14:23.000Z
# # (C) Copyright 1996- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernme...
30.634146
95
0.72293
0
0
0
0
0
0
0
0
701
0.558121
fc6ae61e76507e8c85be28c293840912ca2612a4
7,683
py
Python
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
37
2021-09-30T16:47:15.000Z
2022-03-07T22:29:21.000Z
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
36
2021-11-04T16:54:55.000Z
2022-03-31T02:26:29.000Z
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
20
2021-10-29T22:55:58.000Z
2022-03-22T17:27:16.000Z
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Assistant utility for automatically load network from network description.""" import torch class Assistant: """Assistant that bundles training, validation and testing workflow. Parameters ---------- net : torch.nn.Mo...
29.436782
78
0.521281
7,504
0.976702
0
0
0
0
0
0
3,010
0.391774
fc6bbad5b323947c5f4946373831830060872620
5,961
py
Python
lstm-synthetic-wave-anomaly-detect.py
cse-icon-dataAnalytics/lstm-anomaly-detect
bcfb01db383698acbd5692f1a76a5f20ec3629a8
[ "MIT" ]
178
2016-03-31T05:32:07.000Z
2022-03-26T02:36:35.000Z
lstm-synthetic-wave-anomaly-detect.py
rob-med/lstm-anomaly-detect
bcfb01db383698acbd5692f1a76a5f20ec3629a8
[ "MIT" ]
4
2016-11-01T01:51:06.000Z
2018-04-24T13:42:33.000Z
lstm-synthetic-wave-anomaly-detect.py
rob-med/lstm-anomaly-detect
bcfb01db383698acbd5692f1a76a5f20ec3629a8
[ "MIT" ]
106
2016-03-31T05:32:11.000Z
2021-08-28T09:49:16.000Z
""" Inspired by example from https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent Uses the TensorFlow backend The basic idea is to detect anomalies in a time-series. """ import matplotlib.pyplot as plt import numpy as np import time from keras.layers.core import Dense, Activation, Dropout from keras.l...
30.258883
110
0.631102
0
0
0
0
0
0
0
0
1,551
0.260191
fc6bfc96896fcc886f4088ddc53f2aa20f638760
1,309
py
Python
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('historias', '0006_auto_20150413_0001'), ] operations = [ migrations.AlterField( model_name='hist...
38.5
290
0.593583
1,184
0.904507
0
0
0
0
0
0
371
0.283422
fc6d62eed45d350cb72c202ceedfb98394117cd4
315
py
Python
venv/Lib/site-packages/har2case/__about__.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
null
null
null
venv/Lib/site-packages/har2case/__about__.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
null
null
null
venv/Lib/site-packages/har2case/__about__.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
null
null
null
__title__ = 'har2case' __description__ = 'Convert HAR(HTTP Archive) to YAML/JSON testcases for HttpRunner.' __url__ = 'https://github.com/HttpRunner/har2case' __version__ = '0.2.0' __author__ = 'debugtalk' __author_email__ = '[email protected]' __license__ = 'Apache-2.0' __copyright__ = 'Copyright 2017 debugtalk'
39.375
84
0.771429
0
0
0
0
0
0
0
0
192
0.609524
fc6eb694558519bbe4bb770c6ebebf2c2317f744
2,160
py
Python
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
null
null
null
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
10
2021-05-01T19:57:06.000Z
2022-03-12T00:54:04.000Z
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
null
null
null
import os from pathlib import Path from data_utils import get_data_path, get_image_data_path, get_image_extension def app_id_to_image_filename(app_id, is_horizontal_banner=False): image_data_path = get_image_data_path(is_horizontal_banner) image_filename = image_data_path + str(app_id) + get_image_extension...
29.589041
115
0.747222
0
0
0
0
0
0
0
0
267
0.123611
fc6f65558ddc1ad343876953a1a42d3ab2c832a9
348
py
Python
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import boto3 import random import os BUCKET=os.environ.get('EXPORT_S3_BUCKET_URL') if (BUCKET != None): s3 = boto3.client('s3') with open("maze.txt", "rb") as f: s3.upload_fileobj(f, BUCKET, "maze"+str(random.randrange(100000))+".txt") else: print("EXPORT_S3_BUCKET_URL was not ...
29
81
0.692529
0
0
0
0
0
0
0
0
129
0.37069
fc709a454475435a2a06bba2371531a53e2d11c0
2,790
py
Python
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
1
2019-10-14T23:36:14.000Z
2019-10-14T23:36:14.000Z
import sys from typing import Any from argparse import ArgumentParser from zerver.models import Realm from zerver.lib.management import ZulipBaseCommand class Command(ZulipBaseCommand): help = """List realms in the server and it's configuration settings(optional). Usage examples: ./manage.py list_realms ./man...
37.702703
99
0.557348
2,632
0.943369
0
0
0
0
0
0
682
0.244444
fc7137abb720c86400bb993740cb9e14c54237f5
8,892
py
Python
tests/integration/ec2/test_connection.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
15
2015-03-25T05:24:11.000Z
2021-12-18T04:24:06.000Z
tests/integration/ec2/test_connection.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
null
null
null
tests/integration/ec2/test_connection.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
10
2015-04-26T17:56:37.000Z
2020-09-24T14:01:53.000Z
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2009, Eucalyptus Systems, Inc. # All rights reserved. # # 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 res...
36.743802
77
0.587607
7,481
0.841318
0
0
946
0.106388
0
0
3,101
0.34874
fc719b76ab94dd3be6cc776d78a4aa8bbc400d47
8,761
py
Python
docusign_esign/models/conditional_recipient_rule_filter.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
58
2017-10-18T23:06:57.000Z
2021-04-15T23:14:58.000Z
docusign_esign/models/conditional_recipient_rule_filter.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-10-27T05:54:09.000Z
2021-04-29T22:06:17.000Z
docusign_esign/models/conditional_recipient_rule_filter.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-09-16T07:23:41.000Z
2021-05-07T20:21:20.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.gi...
30.526132
140
0.604155
8,317
0.949321
0
0
4,629
0.528364
0
0
4,944
0.564319
fc72be3f56a4f14c061f7d67ae504148f309762b
407
py
Python
conman/routes/apps.py
meshy/django-conman
c739d09250d02d99068358e925ed8298a2a37a75
[ "BSD-2-Clause" ]
null
null
null
conman/routes/apps.py
meshy/django-conman
c739d09250d02d99068358e925ed8298a2a37a75
[ "BSD-2-Clause" ]
81
2015-07-27T23:21:49.000Z
2018-05-21T22:06:09.000Z
conman/routes/apps.py
meshy/django-conman
c739d09250d02d99068358e925ed8298a2a37a75
[ "BSD-2-Clause" ]
2
2015-10-06T09:18:06.000Z
2017-03-17T08:51:56.000Z
from django.apps import AppConfig from django.core.checks import register from . import checks class RouteConfig(AppConfig): """The AppConfig for conman routes.""" name = 'conman.routes' def ready(self): """Register checks for conman routes.""" register(checks.polymorphic_installed) ...
25.4375
48
0.712531
308
0.756757
0
0
0
0
0
0
93
0.228501
fc72c71783ded10cb6bea92ec124528a890dca34
627
py
Python
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
1
2019-05-30T10:10:20.000Z
2019-05-30T10:10:20.000Z
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
null
null
null
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
1
2017-09-01T03:35:18.000Z
2017-09-01T03:35:18.000Z
""" Get all TM1 transactions for all cubes starting to a specific date. """ import configparser config = configparser.ConfigParser() config.read('..\config.ini') from datetime import datetime from TM1py.Services import TM1Service with TM1Service(**config['tm1srv01']) as tm1: # Timestamp for Message-Log parsin...
24.115385
81
0.716108
0
0
0
0
0
0
0
0
211
0.336523
fc73faf5f8cb49244c505ccd988f122eb6b59c66
6,019
py
Python
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
12
2018-03-02T21:48:46.000Z
2022-01-31T02:58:59.000Z
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
2
2018-07-19T01:11:11.000Z
2019-04-08T23:54:08.000Z
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
5
2018-03-06T18:13:36.000Z
2021-01-08T20:54:28.000Z
import logging import numpy as np from scipy.stats import entropy from patteRNA.Transcript import Transcript from patteRNA import filelib logger = logging.getLogger(__name__) class Dataset: def __init__(self, fp_observations, fp_sequences=None, fp_references=None): self.fp_obs = fp_observations s...
39.339869
113
0.6104
5,840
0.970261
0
0
0
0
0
0
965
0.160326
fc74cac1c4d460520f828712a631b873e6f7c8d7
3,118
py
Python
src/Simulation/developer_0/main.py
GYRY-NEU/CS7610-Experiments
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
null
null
null
src/Simulation/developer_0/main.py
GYRY-NEU/CS7610-Experiments
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
1
2021-12-02T20:45:02.000Z
2021-12-02T20:45:02.000Z
src/Simulation/developer_0/main.py
GYRY-NEU/Simulation
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
null
null
null
import library import json @library.export def init(args): model = [[9.2, 0.21, 0.21], [8.2, 0.22, 0.21], [7.2, 1.21, 2.41], [1.2, 2.21, 0.29]] library.put("model", model) ROUND = 0 library.put("ROUND", ROUND) alpha = 0.2 library.put("alpha", alpha) @libr...
29.695238
109
0.645606
0
0
0
0
1,237
0.396729
0
0
1,080
0.346376
fc75b91ed00a53eb686038762f01dc7958ac5d5b
172
py
Python
molecule_ignite/test/unit/test_driver.py
ragingpastry/molecule-ignite
aaf005cabba9a8c933191458cf8553da9bac581d
[ "MIT" ]
17
2020-02-19T08:16:49.000Z
2022-02-05T08:16:42.000Z
molecule_ignite/test/unit/test_driver.py
ragingpastry/molecule-ignite
aaf005cabba9a8c933191458cf8553da9bac581d
[ "MIT" ]
15
2020-06-27T10:16:44.000Z
2022-01-04T10:37:54.000Z
molecule_ignite/test/unit/test_driver.py
ragingpastry/molecule-ignite
aaf005cabba9a8c933191458cf8553da9bac581d
[ "MIT" ]
11
2020-02-18T16:24:29.000Z
2022-03-28T11:44:51.000Z
from molecule import api def test_driver_is_detected(): driver_name = __name__.split(".")[0].split("_")[-1] assert driver_name in [str(d) for d in api.drivers()]
24.571429
57
0.686047
0
0
0
0
0
0
0
0
6
0.034884
fc7738cdaacc95969a1834885a266a49c73d4c6b
12,361
py
Python
coffeine/pipelines.py
dengemann/meegpowreg
e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39
[ "MIT" ]
6
2021-07-19T12:17:59.000Z
2021-08-09T15:50:18.000Z
coffeine/pipelines.py
dengemann/meegpowreg
e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39
[ "MIT" ]
23
2021-04-16T21:41:36.000Z
2021-07-13T10:08:47.000Z
coffeine/pipelines.py
dengemann/meegpowreg
e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39
[ "MIT" ]
5
2021-04-15T15:28:51.000Z
2021-06-28T21:17:11.000Z
import numpy as np from coffeine.covariance_transformers import ( Diag, LogDiag, ExpandFeatures, Riemann, RiemannSnp, NaiveVec) from coffeine.spatial_filters import ( ProjIdentitySpace, ProjCommonSpace, ProjLWSpace, ProjRandomSpace, ProjSPoCSpace) from sklearn.compose impor...
37.685976
77
0.659574
0
0
0
0
0
0
0
0
7,775
0.628994
fc78a988ef549d86a9021df34f1480ea70a43721
11,516
py
Python
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
1
2018-08-23T19:27:23.000Z
2018-08-23T19:27:23.000Z
from games import Game from math import nan, isnan from queue import PriorityQueue from copy import deepcopy from utils import isnumber from grading.util import print_table class GameState: def __init__(self, to_move, position, board, label=None): self.to_move = to_move self.position = position ...
27.951456
133
0.500174
3,860
0.335186
0
0
0
0
0
0
2,015
0.174974
fc798568d1c4c7d74cc7db30deace979155e8ddb
4,797
py
Python
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-02-18T04:02:52.000Z
2022-02-18T04:02:52.000Z
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
import os import df2img import disnake import numpy as np import pandas as pd from menus.menu import Menu from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import gst_imgur, logger from discordbot.helpers import autocrop_image from gamestonk_terminal.stocks.options imp...
29.429448
94
0.518449
0
0
0
0
0
0
4,458
0.92875
659
0.137292
fc7a203231a6818121284acfef4c18f0b9192863
2,312
py
Python
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
4
2021-05-03T16:03:24.000Z
2022-02-17T16:08:49.000Z
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
null
null
null
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
1
2021-06-30T11:27:56.000Z
2021-06-30T11:27:56.000Z
#%% import packages import numpy as np import pandas as pd import multiprocessing from time import time import json from premiumFinance.constants import ( MORTALITY_TABLE_CLEANED_PATH, PROCESSED_PROFITABILITY_PATH, ) from premiumFinance.financing import calculate_lender_profit, yield_curve mortality_experien...
26.574713
78
0.675606
0
0
0
0
0
0
0
0
244
0.105536
fc7acbb33a6b536b7d8fb8f0b3208c55dac034b1
5,700
py
Python
dashboard/dashboard/common/layered_cache.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/common/layered_cache.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1
2022-01-12T14:28:55.000Z
2022-01-12T14:28:55.000Z
dashboard/dashboard/common/layered_cache.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Caches processed query results in memcache and datastore. Memcache is not very reliable for the perf dashboard. Prometheus team explained that memcache is...
35.403727
80
0.759649
607
0.106491
536
0.094035
1,060
0.185965
0
0
2,859
0.501579
fc7af78333f9477d4091f8e1379313d34cf45c32
2,241
py
Python
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ """ import cudf from hypergbm import make_experiment from hypernets.tabular import get_tool_box from hypernets.tabular.datasets import dsutils def main(target='y', dtype=None, max_trials=3, drift_detection=False, clear_cache=True, **kwargs): tb = get_tool_box(cudf.DataFrame) asse...
35.571429
109
0.630076
0
0
0
0
0
0
0
0
675
0.301205
fc7dad2207dc0af9eee6f35c716072b33850e1f6
252
py
Python
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
def pictureInserter(og,address,list): j=0 for i in og: file1 = open(address+'/'+i, "a") x="\ncover::https://image.tmdb.org/t/p/original/"+list[j] file1.writelines(x) file1.close() j=j+1
25.2
66
0.503968
0
0
0
0
0
0
0
0
53
0.210317