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
eb5ccd73b62ac958c2eaef0bb0a5f829cbe6ee69
6,946
py
Python
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
"""AWS S3 Plugin.""" import os from typing import List from tempfile import NamedTemporaryFile from netskope.integrations.cls.plugin_base import ( PluginBase, ValidationResult, PushResult, ) from .utils.aws_s3_validator import ( AWSS3Validator, ) from .utils.aws_s3_client import AWSS3Client
36.366492
100
0.565073
eb5d8a81de7fb8524c15daf24c0d23dffb316345
160
py
Python
database/tests/open_alchemy/package_database/test_models/spec/conftest.py
open-alchemy/OpenAlchemyPackage
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
null
null
null
database/tests/open_alchemy/package_database/test_models/spec/conftest.py
open-alchemy/OpenAlchemyPackage
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
79
2020-11-28T04:02:25.000Z
2021-01-06T08:52:30.000Z
database/tests/open_alchemy/package_database/test_models/spec/conftest.py
open-alchemy/Package
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
null
null
null
"""Database fixtures.""" import pytest
17.777778
48
0.7625
eb5f27f70e1b8021f877eebe2821bbbc7ca9a3c6
2,626
py
Python
cdr_plugin_folder_to_folder/api/Server.py
lucia15/cdr-plugin-folder-to-folder
6dc245086d613a07e0fc63057d1ca1da965feccd
[ "Apache-2.0" ]
null
null
null
cdr_plugin_folder_to_folder/api/Server.py
lucia15/cdr-plugin-folder-to-folder
6dc245086d613a07e0fc63057d1ca1da965feccd
[ "Apache-2.0" ]
null
null
null
cdr_plugin_folder_to_folder/api/Server.py
lucia15/cdr-plugin-folder-to-folder
6dc245086d613a07e0fc63057d1ca1da965feccd
[ "Apache-2.0" ]
1
2022-02-21T15:48:51.000Z
2022-02-21T15:48:51.000Z
import logging import uvicorn from fastapi_offline import FastAPIOffline as FastAPI #from cdr_plugin_folder_to_folder.api.users import router from osbot_utils.utils.Misc import to_int from cdr_plugin_folder_to_folder.api.routes.Processing import router as router_processing from cdr_plugin_folder_to_folder.api.routes...
44.508475
162
0.686976
eb6026d99e12af7beda1b40e5de9c9f9ef6b3948
751
py
Python
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
# Evaluate using Shuffle Split Cross Validation from pandas import read_csv from sklearn.model_selection import ShuffleSplit from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression filename = 'pima-indians-diabetes.data.csv' names = ['preg', 'plas', 'pres', 'skin', 'test'...
41.722222
80
0.747004
eb61d5d7e4bf28a8a1ca4a73ac750956135f0ec5
4,178
py
Python
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
15
2016-10-15T10:15:08.000Z
2021-04-06T08:31:02.000Z
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
7
2016-10-14T08:53:29.000Z
2016-11-09T23:43:31.000Z
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
3
2016-10-13T11:44:46.000Z
2016-10-14T08:58:03.000Z
# coding: utf-8 from __future__ import ( unicode_literals, division, print_function, absolute_import ) import re import pytest from ww import s, g, f
23.60452
78
0.514361
eb61d97f58614f8c6747182079791a3edd418075
566
py
Python
sherlock/codelib/system_function/implements.py
Luavis/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
55
2017-02-12T08:22:44.000Z
2022-01-08T12:34:53.000Z
sherlock/codelib/system_function/implements.py
Ronlin1/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
3
2017-02-24T16:23:40.000Z
2022-02-05T19:54:26.000Z
sherlock/codelib/system_function/implements.py
Ronlin1/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
7
2017-01-17T17:34:59.000Z
2022-02-15T15:23:17.000Z
import ast from sherlock.codelib.analyzer.variable import Type from sherlock.codelib.system_function import system_function
33.294118
75
0.706714
eb61e320d9b1fecbed0efae579b389e9a7594789
370
py
Python
drf_localize/commons/errors.py
ebs-integrator/DRF-Localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
3
2022-03-10T12:34:18.000Z
2022-03-14T08:52:22.000Z
drf_localize/commons/errors.py
ebs-integrator/drf-localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
null
null
null
drf_localize/commons/errors.py
ebs-integrator/drf-localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException from django.utils.translation import ugettext_lazy as _ from rest_framework.status import HTTP_423_LOCKED # Create your errors here.
30.833333
76
0.805405
eb62f7a6a5283024ec8152b88db4515eb8b7c676
1,373
py
Python
xos/tosca/resources/accessdevice.py
pan2za/olt
54f110f81849b6393f3055755876cd01b4c6dac5
[ "Apache-2.0" ]
null
null
null
xos/tosca/resources/accessdevice.py
pan2za/olt
54f110f81849b6393f3055755876cd01b4c6dac5
[ "Apache-2.0" ]
null
null
null
xos/tosca/resources/accessdevice.py
pan2za/olt
54f110f81849b6393f3055755876cd01b4c6dac5
[ "Apache-2.0" ]
null
null
null
from services.volt.models import AccessDevice, VOLTDevice from xosresource import XOSResource
40.382353
134
0.697014
eb63e2b82821e62051f86e67479c30cbd653b398
587
py
Python
1_Einstieg/passengers/naiveForecast.py
DavidStahl97/Predictive-Analytics
c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0
[ "MIT" ]
null
null
null
1_Einstieg/passengers/naiveForecast.py
DavidStahl97/Predictive-Analytics
c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0
[ "MIT" ]
null
null
null
1_Einstieg/passengers/naiveForecast.py
DavidStahl97/Predictive-Analytics
c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0
[ "MIT" ]
null
null
null
import pandas as pd import math from matplotlib import pyplot ts = pd.read_csv("airline-passengers.csv", header=0, index_col=0) nOfPassengers = ts["Passengers"] values = nOfPassengers.values.tolist() forecast = [math.nan] for i in range(0, len(values) - 1): forecast.append(values[i]) pyplot.plot(values) pyplot...
17.264706
65
0.664395
eb64352202a6b429c03980e77f840c5767dfc418
513
py
Python
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
"""create exchange table Revision ID: bfa53193d3bf Revises: b97a89b20fa2 Create Date: 2019-09-22 01:17:06.735174 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bfa53193d3bf' down_revision = 'b97a89b20fa2' branch_labels = None depends_on = None
17.689655
54
0.695906
eb6486b781e8bb7e961d09b57c4d80fc18e300da
2,831
py
Python
rpeak_seg_simple_v1.0.py
ziyi-bear/ECG-ML-DL-Algorithm-Python
e1cc28c09fcd9330470b30c240ab7fb331c8ea0c
[ "Apache-2.0" ]
180
2018-05-18T12:18:53.000Z
2022-03-30T11:02:48.000Z
rpeak_seg_simple_v1.0.py
Aiwiscal/ECG-ML-DL-Algorithm-Python-version
23b24a965fdede3552d33943a26ad824a8c03325
[ "Apache-2.0" ]
null
null
null
rpeak_seg_simple_v1.0.py
Aiwiscal/ECG-ML-DL-Algorithm-Python-version
23b24a965fdede3552d33943a26ad824a8c03325
[ "Apache-2.0" ]
61
2018-06-08T08:19:34.000Z
2022-03-18T10:34:02.000Z
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import time import logging import numpy as np from biosppy.signals import ecg from biosppy.storage import load_txt import matplotlib.pyplot as plt logging.basicConfig(level = logging.DEBUG,format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s') ...
36.766234
107
0.657718
eb6591f825c57a68f6992dbbedf4b1b854a25935
153
py
Python
book_store/book_outlet/apps.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
book_store/book_outlet/apps.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
book_store/book_outlet/apps.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
from django.apps import AppConfig
21.857143
56
0.771242
eb689c0f5ae5483dbf370934ef7f938d7073e716
1,076
py
Python
app/models/file.py
dhardtke/pyEncode
5db3813bfa2bae11a353dd63a10577413d41cdbe
[ "MIT" ]
5
2016-02-17T15:19:00.000Z
2020-01-22T06:10:39.000Z
app/models/file.py
dhardtke/pyEncode
5db3813bfa2bae11a353dd63a10577413d41cdbe
[ "MIT" ]
19
2016-02-18T00:26:37.000Z
2016-09-07T15:36:04.000Z
app/models/file.py
dhardtke/pyEncode
5db3813bfa2bae11a353dd63a10577413d41cdbe
[ "MIT" ]
1
2020-02-13T15:44:17.000Z
2020-02-13T15:44:17.000Z
from app import db from app.models.base_model import BaseModel
28.315789
89
0.63197
eb68b9676e0d03d63bb33be1aab4650e1c5fefb7
3,126
py
Python
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
null
null
null
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
11
2019-09-27T15:19:28.000Z
2022-01-04T13:27:19.000Z
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
3
2019-05-07T09:42:56.000Z
2022-01-27T13:14:59.000Z
import time import json from copy import deepcopy
30.950495
78
0.570377
eb69a63e704e44ba8a523693de06b874425f56d2
2,791
py
Python
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
import math import torch from .Module import Module from .utils import clear
31.715909
118
0.607668
eb6c5cabf7aff4e46d0f69f924e5ecdb4193cfdc
2,349
py
Python
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
1
2021-08-13T15:41:58.000Z
2021-08-13T15:41:58.000Z
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
18
2021-08-12T00:09:36.000Z
2022-02-24T21:11:18.000Z
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
null
null
null
""" Utilities for testing """ import numpy as np from astropy.table import Table as apTable from astropy.utils.diff import report_diff_values def compare_tables(t1, t2): """ Compare all the tables in two `astropy.table.Table`) Parameters ---------- t1 : `astropy.table.Table` One table t2 ...
27.964286
93
0.61175
eb6cf5fe7c51c4edd9875792fb5d69a2d5f20030
185
py
Python
hello.py
khumphries/cs3240-labdemo
debc8fcb5d78ee5d8c5d3d809d2e57cac6c6762c
[ "MIT" ]
null
null
null
hello.py
khumphries/cs3240-labdemo
debc8fcb5d78ee5d8c5d3d809d2e57cac6c6762c
[ "MIT" ]
null
null
null
hello.py
khumphries/cs3240-labdemo
debc8fcb5d78ee5d8c5d3d809d2e57cac6c6762c
[ "MIT" ]
null
null
null
__author__ = '__knh4vu__' from helper import greeting from helper3 import greeting3 from helper2 import greeting2 if __name__ == '__main__': greeting('hello') greeting2('There')
14.230769
29
0.762162
eb6e417ff1d33694d2432e18852dc6a0bbbf5837
746
py
Python
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox # Base cases from https://github.com/munificent/craftinginterpreters/blob/master/test/inheritance/constructor.lox TEST_SRC = dedent( """\ class A { init(param) { this.field = param; } test() { print this.fi...
19.128205
113
0.648794
eb70f9263d22391becf954191090f791229ce937
209
py
Python
byq_trial/__init__.py
huandzh/byq_trial
e0bede817654e17b48e8387ce1f6afce505e4602
[ "MIT" ]
null
null
null
byq_trial/__init__.py
huandzh/byq_trial
e0bede817654e17b48e8387ce1f6afce505e4602
[ "MIT" ]
1
2018-05-15T09:41:18.000Z
2018-05-15T09:44:49.000Z
byq_trial/__init__.py
huandzh/byq_trial
e0bede817654e17b48e8387ce1f6afce505e4602
[ "MIT" ]
null
null
null
#! -*- coding:utf-8 -*- """Shortcuts for yuqing trials .. moduleauthor:: Huan Di <hd@iamhd.top> """ from byq_trial.auth import SimpleAuth from byq_trial.call import APICall __all__ = [SimpleAuth, APICall]
17.416667
40
0.712919
eb71982888d5f8510697907e9a0d0ca96fdd5ff9
1,196
py
Python
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
4
2020-11-19T12:17:10.000Z
2020-12-15T19:34:04.000Z
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
1
2020-11-26T01:25:28.000Z
2020-11-26T01:25:28.000Z
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
1
2020-11-19T21:18:43.000Z
2020-11-19T21:18:43.000Z
#!/usr/bin/env python3 """ Import comunity modules. """ import os import sys import jinja2 import re HERE = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, f"{HERE}") def get_template(file_name, searchpath=f"{HERE}/templates"): """ Load and return a Jinja template file. """ templateLoader ...
26
67
0.705686
eb73593abc8f876baf0bf2e515008f8778305aa4
1,988
py
Python
exercicio07.py
Matheus2037/infosatc-lp-avaliativo-02
88121a8f4f294d1125492c085a15cf3a033fc919
[ "MIT" ]
null
null
null
exercicio07.py
Matheus2037/infosatc-lp-avaliativo-02
88121a8f4f294d1125492c085a15cf3a033fc919
[ "MIT" ]
null
null
null
exercicio07.py
Matheus2037/infosatc-lp-avaliativo-02
88121a8f4f294d1125492c085a15cf3a033fc919
[ "MIT" ]
null
null
null
lista_filmes = ['vingadores ultimato', 'star wars', 'as branquelas', 'vov... zona']#Criando as 4 listas print("lista filmes: " ,lista_filmes) print("\n") lista_jogos = ['genshin impact', 'the witcher 3', 'dying light', 'destiny']#Criando as 4 listas print("lista jogos: " ,lista_jogos) print("\n") lista_livros = ['o ult...
41.416667
158
0.755533
eb736abfcc0d07e773852cad1abeb9d44fd78b29
2,770
py
Python
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
2
2018-11-14T16:25:01.000Z
2019-03-22T08:18:43.000Z
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
1
2018-10-31T08:44:10.000Z
2018-11-03T08:37:35.000Z
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
1
2018-10-16T09:18:20.000Z
2018-10-16T09:18:20.000Z
from django.test import TestCase from django.test.client import Client from django.core.urlresolvers import reverse from ipaymu.forms import IpaymuForm from ipaymu.models import IpaymuSessionID from ipaymu.utils import save_session, verify_session, IpaymuParamsBuilder
33.373494
157
0.642599
eb7466ed23ae7f0e3c3ac0530fad95b5be3ab94b
10,643
py
Python
notebooks/eppy_residential_archetypes.py
rdmolony/energyplus-archetypes
1270db12c9e4c32a2b1ea77ba578ecc9f6dbf76e
[ "MIT" ]
1
2021-02-01T09:25:42.000Z
2021-02-01T09:25:42.000Z
notebooks/eppy_residential_archetypes.py
rdmolony/energyplus-archetypes
1270db12c9e4c32a2b1ea77ba578ecc9f6dbf76e
[ "MIT" ]
1
2021-01-26T17:33:58.000Z
2021-01-26T17:33:58.000Z
notebooks/eppy_residential_archetypes.py
rdmolony/energyplus-archetypes
1270db12c9e4c32a2b1ea77ba578ecc9f6dbf76e
[ "MIT" ]
2
2021-01-13T15:31:50.000Z
2021-01-14T09:53:45.000Z
# --- # jupyter: # jupytext: # formats: ipynb,md # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.10.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # # Eppy is ...
47.513393
1,517
0.807855
eb763354ab5b452fa95155e1fea3cdf2157a1123
2,535
py
Python
.local/bin/word-clock.py
hghann/osxrice
78f32f35dd68ee400025c0e61b22ab4cc78a8ac9
[ "MIT" ]
1
2021-12-25T10:57:55.000Z
2021-12-25T10:57:55.000Z
.local/bin/word-clock.py
hghann/osxrice
78f32f35dd68ee400025c0e61b22ab4cc78a8ac9
[ "MIT" ]
null
null
null
.local/bin/word-clock.py
hghann/osxrice
78f32f35dd68ee400025c0e61b22ab4cc78a8ac9
[ "MIT" ]
1
2021-12-25T10:57:54.000Z
2021-12-25T10:57:54.000Z
# MINUTES IT_IS = [[0,0],[0,1],[0,3],[0,4]] FIVE = [[3,i] for i in range(7,11)] TEN = [[1,i] for i in range(6,9)] QUARTER = [[2,i] for i in range(2,9)] TWENTY = [[3,i] for i in range(1,7)] HALF = [[1,i] for i in range(2,6)] TO = [[4,i] for i in range(1,3)] PAST = [[4,i] for i in range(3,7)] MINUTES = [ [], FI...
26.684211
101
0.50927
eb772658ca94856431b34ba889686158bd95aa78
1,884
py
Python
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
8
2019-03-28T11:54:59.000Z
2022-03-19T03:31:37.000Z
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
39
2018-10-31T23:02:18.000Z
2021-12-12T22:11:37.000Z
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
9
2018-03-12T20:51:50.000Z
2022-02-28T15:18:34.000Z
# TCE CCSD(T) and CCSD[T] calculations import os import sys import qcdb from ..utils import *
34.254545
105
0.638004
eb7c5cbf4a4be6c62f0ee77abad0dd0ba1cedf55
6,246
py
Python
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
1
2018-07-08T10:39:51.000Z
2018-07-08T10:39:51.000Z
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
null
null
null
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import time import multiprocessing import os import vim from async_worker import AsyncWorker import utils # Global map for host (source code) window ID -> Squeezer instance squeezers = {} # set of Squeezer instances that are waiting for updates polling_squeezers = set()
30.468293
75
0.590618
eb8028a8b7b945f7ec2d911683799e73bf046fb9
1,781
py
Python
loopingTechniques.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
loopingTechniques.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
loopingTechniques.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
# python code to demonstrate working of enumerate() for key, value in enumerate(['The', 'Big', 'Bang', 'Theory']): print(key, value) print('\n') # python code to demonstrate working of enumerate() for key, value in enumerate(['Geeks', 'for', 'Geeks', 'is', 'the', 'Best', 'Coding', 'Platform']): print(value, e...
30.186441
98
0.662549
eb81a639415e736f223f1c5d8de1dac03d696391
131
py
Python
tests/test_a.py
keik/sandbox-python-structure
8a112b68ad6f42fdc2736553c4914e7ab59462fc
[ "MIT" ]
1
2016-08-15T08:19:43.000Z
2016-08-15T08:19:43.000Z
tests/test_a.py
keik/sandbox-python-structure
8a112b68ad6f42fdc2736553c4914e7ab59462fc
[ "MIT" ]
null
null
null
tests/test_a.py
keik/sandbox-python-structure
8a112b68ad6f42fdc2736553c4914e7ab59462fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sandbox_python_structure import f
14.555556
38
0.633588
eb821deb2b5a5317016e2098eafebee1b6e630ed
18,063
py
Python
alembic/versions/9e7ee952f6ae_initial_tables.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
5
2017-03-30T18:02:11.000Z
2021-07-20T16:02:34.000Z
alembic/versions/9e7ee952f6ae_initial_tables.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
15
2016-02-24T13:16:59.000Z
2021-09-03T11:47:15.000Z
alembic/versions/9e7ee952f6ae_initial_tables.py
Winking-maniac/lingvodoc
f037bf0e91ccdf020469037220a43e63849aa24a
[ "Apache-2.0" ]
22
2015-09-25T07:13:40.000Z
2021-08-04T18:08:26.000Z
"""initial tables Revision ID: 9e7ee952f6ae Revises: Create Date: 2016-10-21 17:20:27.709284 """ # revision identifiers, used by Alembic. revision = '9e7ee952f6ae' down_revision = None branch_labels = None depends_on = None from alembic import op from sqlalchemy.types import Text import sqlalchemy as sa from sqlalc...
55.75
172
0.716548
eb823a3ab1cfe40fa4039cd8121d4b7741953f43
14,233
py
Python
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
18
2021-09-22T04:50:09.000Z
2022-03-26T03:54:26.000Z
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
62
2021-11-12T21:25:10.000Z
2022-03-31T22:41:17.000Z
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
19
2021-09-22T22:05:59.000Z
2022-03-29T04:37:54.000Z
#!/usr/bin/env python3 try: import os import json import argparse import shutil from git import Repo from jinja2 import Template, Environment, FileSystemLoader except ImportError as ie: print("Import failed for " + ie.name) exit(1) NAME_TAG = 'name' TABLES_TAG = 'tables' BITWIDTH_TAG =...
38.158177
140
0.644488
eb85b2b61c540dec30a5ddbb7a6f5bca969046a6
399
py
Python
setup.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
null
null
null
setup.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
2
2019-05-21T14:46:25.000Z
2021-06-01T23:54:24.000Z
setup.py
mapogolions/pyreact
8d91f8397e6bec3fb02140015c68b50f6cb8ea62
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='event_loop', version='0.1', author='mapogolions', author_email='ivanovpavelalex45@gmail.com', description='Simple event loop', license='LICENSE.txt', long_description=readme(), packages=['event_loop'], install_requires=['mood.event', 'pyuv...
19.95
47
0.646617
eb85bad7014ffa6c1d37965f545f670fc38b8748
382
py
Python
essentials/oo-programming/simple_class.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
essentials/oo-programming/simple_class.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
essentials/oo-programming/simple_class.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
harry = Person('Harry', 'Male', 47) print(harry)
21.222222
78
0.589005
eb865cf2e7668259a91927012b67adf757085745
1,121
py
Python
Python/ITChallenge/2011/3.py
TRex22/random
97d74c57bad4e2046d940a92d71f38f202cdb70b
[ "Unlicense" ]
2
2015-11-05T21:23:12.000Z
2019-12-03T07:02:41.000Z
Python/ITChallenge/2011/3.py
TRex22/random
97d74c57bad4e2046d940a92d71f38f202cdb70b
[ "Unlicense" ]
null
null
null
Python/ITChallenge/2011/3.py
TRex22/random
97d74c57bad4e2046d940a92d71f38f202cdb70b
[ "Unlicense" ]
null
null
null
#a = raw_input() num = input() for jjj in range(num): a = raw_input() b = a.split(" ") l = int(b[0]) b = b[1:] c = len(b)-1 pp = 1 t = [] for i in range(c): t.append(i%2) qq = len(t) q = {} ls = 99999999 lo = "" while not (addone() == qqq): out = makestring() if (out != ""): gg = calcscore(...
14.558442
66
0.486173
eb87aab9a356ed1a7a06480dce0810bf77f27d97
1,658
py
Python
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys,os,re,fileinput,argparse import csv import random parser = argparse.ArgumentParser(description="takes a file of CYC data, and produces pairwise info for cytoscape network viewing" ) parser.add_argument("--fi",help="the file, must be headered as \"Pathway-id Pathway-name Gene-id Gene-nam...
23.027778
131
0.575392
eb888ccd4d5150a074b0d771eabcba3d7b0bf69d
564
py
Python
src/util.py
abeakkas/ipho-unofficial.org
803ab3cc20670304f7be899ecc48b753765c2ddc
[ "MIT" ]
5
2020-04-10T19:32:43.000Z
2021-05-08T23:39:21.000Z
src/util.py
abeakkas/ipho-unofficial.org
803ab3cc20670304f7be899ecc48b753765c2ddc
[ "MIT" ]
5
2016-09-01T04:38:53.000Z
2019-01-31T15:51:39.000Z
src/util.py
abeakkas/ipho-unofficial.org
803ab3cc20670304f7be899ecc48b753765c2ddc
[ "MIT" ]
7
2016-08-10T10:30:59.000Z
2020-02-21T14:12:35.000Z
import os
19.448276
35
0.526596
eb88dcaec82b7d18b2e8efb0e331cee8cbb15f9e
7,873
py
Python
pysocksproto/tools.py
fkohs/py_socksproto
343ae1e2fee66cdb87c510d13e8d27db60991ab4
[ "MIT" ]
null
null
null
pysocksproto/tools.py
fkohs/py_socksproto
343ae1e2fee66cdb87c510d13e8d27db60991ab4
[ "MIT" ]
null
null
null
pysocksproto/tools.py
fkohs/py_socksproto
343ae1e2fee66cdb87c510d13e8d27db60991ab4
[ "MIT" ]
null
null
null
from .exceptions import UnexpectedValue from .constants import * import socket, struct, threading, time
42.556757
150
0.585164
eb893239a685151332f8c8b4695d9a76a757792e
1,402
py
Python
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
1
2021-11-19T13:45:59.000Z
2021-11-19T13:45:59.000Z
def binary_search(search_num, sorted_arr): """ https://runestone.academy/runestone/books/published/pythonds/SortSearch/TheBinarySearch.html First Q at https://dev.to/javinpaul/20-basic-algorithms-problems-from-coding-interviews-4o76 """ if sorted_arr[0] == search_num: return True arr_l...
26.45283
96
0.617689
eb89523d17723f3e6a6db454cea7c75b5abcf4eb
3,292
py
Python
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
33
2015-02-20T11:36:48.000Z
2022-02-16T17:02:06.000Z
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
108
2015-02-18T14:15:44.000Z
2020-05-08T10:39:58.000Z
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
41
2015-02-18T13:40:04.000Z
2021-05-31T06:08:10.000Z
import unittest import axelrod
36.577778
89
0.59599
eb89728654ff6fe0b167e3b43a91c36391a5c80e
814
py
Python
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
#There is a collection of #input strings and a collection of query strings. For each query string, determine how many times it occurs in the list of input strings f() #2nd solution
20.35
136
0.503686
eb8a1d7c0343c248c39a269df6093c8c26b1c2e1
1,494
py
Python
MAOL/personal_list/migrations/0001_initial.py
noxlock/my-anime-openings-list
4ab7660f226af5f06b941c657b8ff611ec8c63bc
[ "MIT" ]
null
null
null
MAOL/personal_list/migrations/0001_initial.py
noxlock/my-anime-openings-list
4ab7660f226af5f06b941c657b8ff611ec8c63bc
[ "MIT" ]
4
2021-12-31T07:56:10.000Z
2021-12-31T09:43:27.000Z
MAOL/personal_list/migrations/0001_initial.py
noxlock/my-anime-openings-list
4ab7660f226af5f06b941c657b8ff611ec8c63bc
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-30 14:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
41.5
248
0.595047
eb8c05f5a993f660ca7de8d026f690e8d7461195
4,658
py
Python
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
1
2022-01-03T15:15:58.000Z
2022-01-03T15:15:58.000Z
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
null
null
null
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
null
null
null
'''Ref: https://arxiv.org/pdf/2003.00295.pdf''' from typing import Callable, Dict, List, Optional, Tuple import numpy as np from flwr.common import ( EvaluateIns, EvaluateRes, FitIns, FitRes, Weights, parameters_to_weights, weights_to_parameters, ) from flwr.server.strategy.aggregate imp...
34
160
0.607342
eb8c8d68ae724529208f6f7e11037b7998a2407e
48
py
Python
nsq/version.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
nsq/version.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
nsq/version.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
# also update in setup.py __version__ = '0.6.9'
16
25
0.6875
eb8d0654d1d205d5f73cc68270c3fb56a4a831b9
786
py
Python
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() long_description = """ Short description... """ setuptools.setup( name='test_package_kthdesa', version='1.0.0', author='Alexandros Korkovelos', author_email='alekor@desa.kth.se', description='This is a test pack...
27.103448
75
0.651399
eb8d74b25be29cc19bd8b5df08384b2634717dc4
5,801
py
Python
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
import torch from torch.nn import LeakyReLU from torch.nn.functional import interpolate from gan.EqualizedLayers import EqualizedConv2d, EqualizedDeconv2d
37.185897
119
0.651957
eb8f42714ac932cdfc292aeae7792fbd941d3a70
1,316
py
Python
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
"""Linguistic data for statistical pre-processing. Frequency statistics, as seen in data/, are provided by: a) Mark Mayzner, 1965: ------------------------------------------------------------------------------ METHODOLOGY: Starting at a random place in a given newspapers/magazines/book, record three- to seven-letter...
38.705882
89
0.592705
eb9292b5b15148056f496da1f3e38d544c9ca3dc
846
py
Python
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
189
2019-06-11T02:13:53.000Z
2022-03-30T15:41:47.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
15
2019-06-29T19:22:07.000Z
2021-07-19T03:26:51.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
28
2019-07-15T12:52:52.000Z
2022-03-07T16:50:02.000Z
from keras import backend as K import numpy as np def Active_Contour_Loss(y_true, y_pred): """ lenth term """ x = y_pred[:,:,1:,:] - y_pred[:,:,:-1,:] # horizontal and vertical directions y = y_pred[:,:,:,1:] - y_pred[:,:,:,:-1] delta_x = x[:,:,1:,:-2]**2 delta_y = y[:,:,:-2,1:]**2 delta_u = K.abs(delta...
24.171429
105
0.574468
eb9398224cfe1d36acebb90ab93ee6b57c3b5626
7,584
py
Python
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
70
2020-12-11T03:13:09.000Z
2022-03-16T21:17:26.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
8
2021-01-15T14:24:00.000Z
2022-01-16T14:43:52.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
18
2020-11-24T00:37:49.000Z
2022-03-13T15:52:51.000Z
# -*- coding: utf-8 -*- # Imports import pandas as pd from .pd_utils import load_csv_or_excel from .pd_utils import load_experiment_results from .pd_utils import to_torch from .math_utils import standard # Objective function class
33.706667
86
0.548655
eb94674e627c9637e3631827dccad31e43dbeafa
1,983
py
Python
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
import osmnx as ox import networkx as nx
34.789474
95
0.646999
eb951abd2dd3908e69458a1b26cb28c1b3944745
664
py
Python
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from time import time if __name__ == '__main__': start = time() solu = fib_sum(4e6) elapse = time() - start print('Solution: {}'.format(solu)) print('Solution found in {:.8f}s'.format(elapse))
25.538462
77
0.593373
eb9525194e5e12addc0e82651317e86bd9db3fd2
15,221
py
Python
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
1
2022-03-01T10:59:11.000Z
2022-03-01T10:59:11.000Z
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
null
null
null
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
3
2021-06-15T17:23:36.000Z
2021-07-07T11:45:46.000Z
from tkinter import filedialog, ttk, messagebox from tkinter import * import traceback import requests import zipfile import json import os from source.Game import Game, RomAlreadyPatched, InvalidGamePath, InvalidFormat, in_thread, VERSION_FILE_URL from source.Option import Option from source.definition import get_ver...
52.66782
245
0.648183
eb967e24d2a33e6b84541055a8e1fda35b50d6bc
1,236
py
Python
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms
47.538462
84
0.786408
eb974878838a569a2d9cf63b612ccad301b890eb
1,612
py
Python
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
1
2020-07-13T19:20:45.000Z
2020-07-13T19:20:45.000Z
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
import os, sys, re, transaction, base64, zlib from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from .models import ( DBSession, CIA, Entry, User, Group, Base, ) from .security import hash_password
26
103
0.581266
eb9805e46c99a38df84681449ccdcec4ab9e7a42
3,297
py
Python
src/modeling/models_cv.py
sebasjp/octopus-ml
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
1
2021-05-15T22:35:51.000Z
2021-05-15T22:35:51.000Z
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier import xgboost as xgb from sklearn.model_selection import cross_val_score from sklearn.pipeline import Pipeline import numpy as np # ============================================================= # Modeling tools for cross validation # Reference: https://github.com/fm...
33.30303
102
0.558386
eb98399d5d514cad736c35a8e1b08c45e1e0717f
4,089
py
Python
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Oli Wright <oli.wright.github@gmail.com> # # 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 # ...
41.72449
108
0.705062
eb999df27e58e23913b51b8bb91c7eb0ee53cf08
1,201
py
Python
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
#reads in the protocol requirements and stores the information in a class import yaml import logging logger = logging.getLogger(__name__)
31.605263
77
0.631973
eb99f86622cecc9f033b1bea66381c9d93c350c4
9,225
py
Python
pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.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/CADANT-CMTS-NOTIFICATION-MIB.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/CADANT-CMTS-NOTIFICATION-MIB.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 CADANT-CMTS-NOTIFICATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-CMTS-NOTIFICATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:45:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
139.772727
717
0.776802
eb9b09f7ae8cd2422a36c30cbe319e6b1bdb760a
179
py
Python
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
n1 = int(input('Digite o primeiro termo da PA: ')) n2 = int(input('Digite a razo da PA: ')) for c in range(1, 11): o = n1 + (c - 1)*n2 print(o, end=' - ') print('ACABOU')
29.833333
50
0.564246
eb9c34327c8ded8bca2d41bbc276bd049672bbd7
1,729
py
Python
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
import requests import sys import os import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) requests.adapters.DEFAULT_RETRIES = 10
30.875
111
0.604974
eb9c7f642d7fd9e4d6c05d5178d9f6237379f4fa
2,087
py
Python
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
import logging import io from asyncio import Queue from sse_starlette.sse import ( EventSourceResponse as _EventSourceResponse, AppStatus, ServerSentEvent, ) from .endec import Encode logger = logging.getLogger("app_server")
30.691176
88
0.595592
eb9cf0127ef5ed427d9efbbfab74a2a9d0c4ae7e
2,088
py
Python
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Packet Commands """ COMMAND_CPU_WRITE = 1 COMMAND_CPU_READ = 2 COMMAND_DAQ_WRITE = 3 COMMAND_DAQ_READ = 4 """ RAM ADDRESSES """ RAM0_BASE_ADDRESS = 0x90000000 RAM1_BASE_ADDRESS = 0x90002000 RAM2_BASE_ADDRESS = 0x90004000 RAM3_BASE_ADDRESS = 0x90006000 """ GPIO """ GPIO_BASE_ADDRESS = 0x40...
26.769231
55
0.815134
eb9dfa5d0a36f0ca4db0ee5aca27a1643f342549
257
py
Python
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
from .figure import Figure from .subplot import Subplot from .subplot_time import SubplotTime from .csv_reader import CsvReader, matchCsv from .excel_reader import ExcelReader from .get_path import getFileList, PathList from .save_plot import actionSavePNG
32.125
43
0.848249
eb9fd0269907f86d115d62e0ea0520c852272710
249
py
Python
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
import os
20.75
75
0.658635
eba03f73105a14dca36c64eedfaaba318422e180
648
py
Python
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-22 08:11 from django.db import migrations, models
24
79
0.520062
eba40c7836d02b53113b113f1c42b28c5c259a93
404
py
Python
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
from .app import create_app # APP = create_app() # python commands: # in app dir #FLASKAPP=twitoff flask run # in root dir # FLASK_APP=twitoff flask shell ''' Notes for setup: in root, FLASK_APP=twitoff flask shell import create_app init create_app() import DB DB.create_all() creates tables ''' ''' Other commands...
14.428571
46
0.725248
eba6b8526a7352b129d62e67953fbea4c4064fb0
1,945
py
Python
tellapart/aurproxy/config/route.py
thinker0/aurproxy
7387bb3ac7decd9d0034f9ca6b4dfea4384ce59d
[ "Apache-2.0" ]
1
2020-02-25T04:09:48.000Z
2020-02-25T04:09:48.000Z
tellapart/aurproxy/config/route.py
aurora-scheduler/aurproxy
73a1e7086cc4dd171456f50724246a9261febaf8
[ "Apache-2.0" ]
null
null
null
tellapart/aurproxy/config/route.py
aurora-scheduler/aurproxy
73a1e7086cc4dd171456f50724246a9261febaf8
[ "Apache-2.0" ]
2
2020-09-12T13:06:45.000Z
2021-01-19T09:42:58.000Z
# Copyright 2015 TellApart, 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 or agreed to in writi...
29.029851
74
0.728021
eba7e9b9d2ce20a664ab35ed0b3544b8abc90d3f
4,394
py
Python
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
7
2020-09-21T13:02:23.000Z
2022-03-23T19:26:41.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
116
2019-11-21T17:20:52.000Z
2022-03-30T11:21:54.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
6
2020-01-24T17:14:43.000Z
2022-03-30T11:27:20.000Z
import numpy as np import pandas as pd from rail.creation.engines import Engine from typing import Callable
37.237288
107
0.60924
eba86bf586aecd5b8c7e0131858b6b347ef52969
834
py
Python
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
null
null
null
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/python3 # Perform the unit tests on SV import subprocess import os import pathlib import traceback import pipetestutils if __name__ == '__main__': main()
23.828571
72
0.581535
ebaa426765a7f0d350ab28d87557159798371f08
2,439
py
Python
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
6
2016-05-18T05:53:44.000Z
2019-06-13T18:27:50.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
64
2015-02-13T18:29:04.000Z
2018-06-15T19:48:56.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
2
2015-05-08T19:22:12.000Z
2016-07-11T16:57:49.000Z
from . import base from . import mixins from datetime import date transform = base.transform_factory(TransformedRecord)
29.385542
77
0.627306
ebac27508f66c5ff713c821f2b877ebdbc6660c6
2,912
py
Python
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
from django.db.models import Count, Sum from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 # Create your views here. from django.views import generic from accountingsubject.forms import AccountingSubjectForm from accountingsubject.models import AccountingSubject from c...
44.121212
119
0.714629
ebad0fa39828f876d9327badae6cbb23b3a1f522
258
py
Python
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
print(duree ((14, 39), (18, 45))) print(duree ((6, 0), (5, 15)))
17.2
33
0.410853
ebaeccfe37530d080542e9861760ac1b8264f12f
31,392
py
Python
utils.py
val-iisc/ss_human_mesh
f9c7fcf577c83316eb610753e3f5678b7b5e24c5
[ "MIT" ]
31
2020-08-31T11:32:33.000Z
2021-12-05T08:47:33.000Z
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
null
null
null
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
7
2020-09-25T03:50:59.000Z
2021-12-10T05:24:58.000Z
""" General Utilities file. """ import sys import os ############################ NON-TF UTILS ########################## from skimage.util import img_as_float import numpy as np import cv2 import pickle from PIL import Image from io import BytesIO import math import tqdm import scipy import json import matplo...
33.538462
195
0.618374
ebb024cf3162a7ae7533de24c182385e63946496
8,389
py
Python
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
4
2019-11-14T21:30:35.000Z
2021-12-13T08:34:33.000Z
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
import queue import multiprocessing import itertools import sys __all__ = ["QConnect", "CConnect"] pulse_length_default = 10 * 10 ** -12 # 10 ps photon pulse length signal_speed = 2.998 * 10 ** 5 #speed of light in km/s fiber_length_default = 0.0
39.947619
119
0.619383
ebb199161cfe0fe5c616a4c065ef5c14803d10c1
2,035
py
Python
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
94
2018-11-17T22:40:16.000Z
2022-03-28T05:09:16.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
17
2019-04-10T18:06:46.000Z
2022-03-03T03:25:08.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
14
2019-04-10T21:33:14.000Z
2022-02-16T14:42:56.000Z
import typing as T from pqcli.mechanic import Player, StatType from pqcli.ui.curses.widgets import Focusable from .progress_bar_window import DataTableProgressBarWindow
30.373134
75
0.615725
ebb3616f90465bce3896df5538302b23c8d738c6
1,668
py
Python
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
import yaml import pathlib import json import math
27.8
97
0.522182
ebb36f491c315700e82d95483ecfc1489b55b959
2,479
py
Python
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
1
2019-02-18T21:51:58.000Z
2019-02-18T21:51:58.000Z
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2019-06-26T13:56:22.000Z
2022-02-17T16:40:48.000Z
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2017-10-17T12:44:32.000Z
2020-02-07T20:45:00.000Z
import unittest from tests.unit.test_account import TestAccount from tests.unit.test_application import TestApplication from tests.unit.test_usages import TestUsages from tests.unit.test_conferences import TestConferences from tests.unit.test_mms_messages import TestMmsMessages from tests.unit.test_sms_messages import ...
47.673077
76
0.835418
ebb41e91a8e2783d3b37bf3b6b979d65654f5089
262
py
Python
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
1
2020-10-12T18:33:22.000Z
2020-10-12T18:33:22.000Z
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
print(_get_square([1, 2, 3, 4, 5])) print(get_square([1, 2, 3, 4, 5]))
23.818182
58
0.557252
ebb439a6545138904530c4467b730cf8637621d9
391
py
Python
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
1
2021-03-26T14:06:52.000Z
2021-03-26T14:06:52.000Z
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
import json if __name__ == "__main__": main('data/train-v1.1.json', 10) main('data/dev-v1.1.json', 2)
23
45
0.56266
ebb54d34edb14bf6d75544e3fae03ac69c069a8f
15,289
py
Python
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
15
2021-05-15T21:58:26.000Z
2022-03-17T08:26:48.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
22
2021-02-04T20:02:33.000Z
2021-09-14T13:29:30.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
3
2021-01-11T15:11:31.000Z
2021-06-07T17:36:51.000Z
"""Provides ability to run jobs locally or on HPC.""" from collections import OrderedDict import datetime import fileinput import importlib import logging import os import shutil import jade from jade.common import ( CONFIG_FILE, JOBS_OUTPUT_DIR, OUTPUT_DIR, RESULTS_FILE, HPC_CONFIG_FILE, ) from j...
35.473318
99
0.608738
ebb61e698b97baa6c67673863e148e21ab80d713
1,364
py
Python
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
import os import pytest from starkware.starknet.compiler.compile import ( compile_starknet_files) from starkware.starknet.testing.starknet import Starknet from starkware.starknet.testing.contract import StarknetContract # The path to the contract source code. CONTRACT_FILE = os.path.join( os.path.dirname(__fi...
30.311111
79
0.73827
ebb6654546e2771ea9a8d0a98c2ca7dabc9a83dc
230
py
Python
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
1
2021-01-05T09:11:42.000Z
2021-01-05T09:11:42.000Z
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
__version__ = '0.1.12' from ._useragent import UserAgentMiddleware from ._markdown import MarkdownPipeline from ._cookies import FirefoxCookiesMiddleware from ._mongodb import MongoDBPipeline from ._redis import RedisDupeFilter
25.555556
46
0.847826
ebb6bb07248128010f898b3fb588b1cee8d3c6cc
1,930
py
Python
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
1
2022-03-22T23:49:17.000Z
2022-03-22T23:49:17.000Z
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
null
null
null
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
3
2021-11-29T21:19:31.000Z
2022-01-13T16:31:06.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
33.275862
77
0.698964
ebb7280816985728a4a272af67774f62eef9667c
1,146
py
Python
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
6
2018-11-14T22:41:58.000Z
2021-12-08T11:01:32.000Z
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
null
null
null
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
1
2020-05-22T16:10:00.000Z
2020-05-22T16:10:00.000Z
import torch.optim from numpy import ndarray
33.705882
69
0.624782
ebb8162cb09b68c8030371823ad7d00d0561cc03
1,941
py
Python
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
2
2018-05-20T00:08:14.000Z
2018-06-13T22:42:14.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2021-06-22T15:03:01.000Z
2021-06-22T20:26:52.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2019-02-21T20:22:32.000Z
2019-02-21T20:22:32.000Z
from celery import Celery, Task from microengine_utils import errors from microengine_utils.datadog import configure_metrics from microengine_utils.constants import SCAN_FAIL, SCAN_SUCCESS, SCAN_TIME, SCAN_VERDICT from microengineclamav.models import Bounty, ScanResult, Verdict, Assertion, Phase from microengineclamav...
35.944444
104
0.663575
ebb9e939ebab9f1ac907089a906eafebd3d40188
18,835
py
Python
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
2
2019-05-11T16:25:54.000Z
2019-05-13T01:19:16.000Z
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
import datetime import os, sys, six, base64, copy from jinja2 import Environment, FileSystemLoader, Template from google.auth.transport import requests from google.cloud import datastore from google.cloud import storage from google.cloud import bigquery import google.oauth2.id_token from flask import Flask, render_t...
40.945652
156
0.623042
ebbaa88673070e1877aabf5581d29c7b6749d413
982
py
Python
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
NotaParcial1 = int(input("Nota primer Parcial: ")) NotaParcial2 = int(input("Nota segundo Parcial: ")) NotaTaller = int(input("Nota del Taller: ")) NotaProyecto = int(input("Nota del Proyecto: ")) Parcial1 = NotaParcial1*(25/100) Parcial2 = NotaParcial2*(25/100) Taller = NotaTaller*(20/100) Proyecto = NotaPr...
24.55
99
0.729124
ebbeecd7804589e9d66d63e0bc0c0723583222d7
1,395
py
Python
build/package.py
weijiekoh/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
15
2018-01-15T14:22:46.000Z
2022-03-20T19:05:27.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
1
2018-01-21T09:56:04.000Z
2018-06-21T06:20:23.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
6
2018-01-21T10:00:48.000Z
2021-07-26T00:03:45.000Z
#!/usr/bin/env python3 """ This script checksums, signs, and compresses malvarma-<version>.img, and creates malvarma-<version>.tar.bz2. The author's GPG signature is hardcoded below. """ import os import shutil import sys import subprocess if __name__ == "__main__": if len(sys.argv) == 1: print("Usage: ...
31.704545
120
0.665233
ebc2424c2e78916d3caf093c64b2223284f39d93
1,955
py
Python
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
31
2020-12-18T16:35:15.000Z
2022-03-25T18:41:19.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
17
2020-11-18T16:10:36.000Z
2022-02-01T22:19:11.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
4
2021-01-18T17:25:02.000Z
2021-11-01T13:25:45.000Z
import os import time from signal import signal, SIGINT from TauLidarCommon.frame import FrameType from TauLidarCamera.camera import Camera outputDir = './samples' runLoop = True if __name__ == "__main__": camera = setup() signal(SIGINT, handler) if camera: try: run(camera) ...
26.066667
89
0.586189
ebc29b44ef030ad4cf5e8ff010606f3919b7f18d
1,038
py
Python
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/Morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
1
2021-07-29T01:33:44.000Z
2021-07-29T01:33:44.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-NTO/NTO
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
150
2020-09-28T13:11:29.000Z
2021-08-05T23:28:36.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
3
2020-09-30T14:05:56.000Z
2021-07-29T01:33:53.000Z
import sys from collections import deque if __name__ == '__main__': N = int(input()) a = [[] for _ in range(N + 1)] result = 1000000 res = [] while True: u, v = map(int, sys.stdin.readline().split()) if u == -1 and v == -1: break a[u].append(v) a[v].appen...
24.714286
54
0.421002
ebc743c4294c3b10ce8684625c881a47ded3ea8a
5,235
py
Python
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
1
2017-06-10T13:27:44.000Z
2017-06-10T13:27:44.000Z
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
10
2019-12-28T18:06:18.000Z
2022-03-25T18:48:20.000Z
tests/test_bokeh_wamp.py
ricorx7/rti_python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
null
null
null
import json from twisted.logger import Logger from twisted.internet.defer import inlineCallbacks from autobahn.twisted.wamp import ApplicationSession from autobahn.twisted.wamp import ApplicationRunner from bokeh.client import push_session from bokeh.plotting import figure, curdoc from bokeh.models.widgets import Pan...
41.547619
110
0.637631
ebc77323d31536c2b311a55342b7c92b4fa87b56
5,875
py
Python
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
from pathlib import Path import sys from unittest.mock import patch from nornir import InitNornir import nornsible from nornsible import InitNornsible, nornsible_delegate, nornsible_task NORNSIBLE_DIR = nornsible.__file__ TEST_DIR = f"{Path(NORNSIBLE_DIR).parents[1]}/tests/" def test_nornsible_task_skip_task()...
36.042945
88
0.589787
ebc7a37f046171aa884cf21a18cce4f0bbd74515
8,338
py
Python
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
## Web File ## Helper Functions
32.570313
133
0.71444
ebc8ad73bf53731e4e6de57101a7b654d219529d
21,541
py
Python
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
2,611
2018-10-16T20:14:10.000Z
2022-03-31T14:48:41.000Z
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
249
2018-10-27T06:02:29.000Z
2022-03-30T18:00:39.000Z
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
436
2018-10-25T05:31:45.000Z
2022-03-31T07:26:03.000Z
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. 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 ...
44.506198
80
0.611346
ebc8be7f524d02d68beecb4c56841bf72041c9e6
1,148
py
Python
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
eduardojdiniz/CompNeuro
20269e66540dc4e802273735c97323020ee37406
[ "CC-BY-4.0", "BSD-3-Clause" ]
2,294
2020-05-11T12:05:35.000Z
2022-03-28T21:23:34.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
629
2020-05-11T15:42:26.000Z
2022-03-29T12:23:35.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
917
2020-05-11T12:47:53.000Z
2022-03-31T12:14:41.000Z
# computes equilibrium variance of ddm # returns variance np.random.seed(2020) # set random seed # sweep through values for lambda lambdas = np.arange(0.05, 0.95, 0.01) empirical_variances = np.zeros_like(lambdas) analytical_variances = np.zeros_like(lambdas) sig = 0.87 # compute empirical equilibrium variance for...
30.210526
89
0.691638
ebca2dfaedf3312d1fbafc3bbd62cb313012d5a5
129
py
Python
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
null
null
null
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
1
2021-03-31T18:51:21.000Z
2021-03-31T18:51:21.000Z
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
1
2017-12-13T13:30:29.000Z
2017-12-13T13:30:29.000Z
__version__ = '0.0.11b' from .base import * from .context import * from .task import * from .env import * from .parse import *
14.333333
23
0.689922
ebcd555eb93d05d6fa9188af7a083640c3b0d772
2,829
py
Python
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.font import BOLD from algoritmos.vrc import * from algoritmos.noise_1_bits import * ###################################################################################################### # Pagina 1
34.084337
164
0.618593
ebcd560a4b989401a8f15f7d602324e8d9dfe946
889
py
Python
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
1
2019-05-08T14:53:27.000Z
2019-05-08T14:53:27.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
2
2020-08-26T09:16:47.000Z
2020-10-30T16:47:03.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch import numpy as np from auxein.population.dna_builders import UniformRandomDnaBuilder, NormalRandomDnaBuilder
29.633333
90
0.725534
ebcf09fa50c43679cec20b34ad768687dfbb66a1
322
py
Python
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
1
2020-10-08T09:29:59.000Z
2020-10-08T09:29:59.000Z
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
1
2021-01-30T12:04:51.000Z
2021-01-30T12:05:37.000Z
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
null
null
null
# Written by Yunfei LIU # Sep 23, 2020 # Please obey the license GPLv3 # This allows to input four integers with space between them number1,number2,number3,number4 = map(int,input().split()) # Add them up sum = number1 + number2 + number3 + number4 # Get the unit digit result = sum%10 # Output the result print(result...
24.769231
61
0.736025
ebd069b822c585c6ef2aa742b9a5c038a0110139
445
py
Python
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
8
2018-10-17T18:17:25.000Z
2022-03-18T09:02:53.000Z
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
null
null
null
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
3
2020-07-01T13:52:42.000Z
2022-03-18T09:10:59.000Z
#!/usr/bin/env python # https://en.wikipedia.org/wiki/Champernowne_constant # sequences below are related to these constants # counts how many numbers between two 10**n and 10**(n-1) # http://oeis.org/A033714 # This sequence also gives the total count of digits of n below 10^n. for i in range(0, 32): print(i, A0(i...
22.25
69
0.669663
ebd0835b63b438a8287b71effbf6286cc7da50d9
5,393
py
Python
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
from model import * from config import * from utils import * if __name__ == "__main__": ''' GPU(s) ''' gpus = tf.config.experimental.list_physical_devices('GPU') GPU_N = 3 if gpus: try: tf.config.experimental.set_visible_devices(gpus[GPU_N:], 'GPU') logical_gpus = tf.config.experimental.list_logical_devi...
29.631868
139
0.708511
ebd099ec453489fa4bd88bc8afe52c94a368779d
1,862
py
Python
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/reverse-integer/ # Runtime: 32 ms, faster than 96.20% of Python3 online submissions for Reverse Integer. # Runtime: 36 ms, faster than 84.28% of Python3 online submissions for Reverse Integer. # Runtime: 44 ms, faster than 22.92% of Python3 online submissions for Reverse Integer. x ...
25.506849
87
0.486574