hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
17f3b5ec7edd4677da1f25a80f110ecb23dbe5a3
7,105
py
Python
shape/bbox.py
smidm/shapes
2b0d03044df32ae4f2e7d7ebfb45b5baa1125e0d
[ "MIT" ]
null
null
null
shape/bbox.py
smidm/shapes
2b0d03044df32ae4f2e7d7ebfb45b5baa1125e0d
[ "MIT" ]
null
null
null
shape/bbox.py
smidm/shapes
2b0d03044df32ae4f2e7d7ebfb45b5baa1125e0d
[ "MIT" ]
null
null
null
import cv2 import numpy as np from shape.ep import column, e2p, p2e from shape.shape import Shape class BBox(Shape): @classmethod def from_planar_object(cls, another_object): xmin, ymin, width, height = cv2.boundingRect(another_object.to_poly()) xmax = xmin + width ymax = ymin + heigh...
32.591743
108
0.560732
485ef85897fb70bdcd0768e2123b711bc9db7955
132,090
py
Python
verification/flopy/modflow/mfsfr2.py
INTERA-Inc/mf6cts
13967af777e88b112b1a9026b35841c322d34bf4
[ "Unlicense" ]
2
2021-09-06T01:08:58.000Z
2021-09-06T06:02:15.000Z
verification/flopy/modflow/mfsfr2.py
INTERA-Inc/mf6cts
13967af777e88b112b1a9026b35841c322d34bf4
[ "Unlicense" ]
null
null
null
verification/flopy/modflow/mfsfr2.py
INTERA-Inc/mf6cts
13967af777e88b112b1a9026b35841c322d34bf4
[ "Unlicense" ]
null
null
null
__author__ = "aleaf" import os import numpy as np import warnings import copy from numpy.lib import recfunctions from ..pakbase import Package from ..utils import MfList from ..utils.flopy_io import line_parse from ..utils.recarray_utils import create_empty_recarray from ..utils.optionblock import OptionBlock try: ...
36.458736
118
0.519994
ec03ee1d176c422e1613970d6dd5820aae597912
382
py
Python
aerosandbox/numpy/conditionals.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/conditionals.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/conditionals.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
1
2021-09-11T03:28:45.000Z
2021-09-11T03:28:45.000Z
import numpy as onp import casadi as cas def where( condition, value_if_true, value_if_false, ): try: return onp.where( condition, value_if_true, value_if_false ) except Exception: return cas.if_else( condition, ...
17.363636
27
0.515707
a372fe3fb1e91ecdc550bb176361ed78116a79d4
29,866
py
Python
core/dbt/main.py
tpilewicz/dbt
479ae839ae20e469f39cc6fa96811f4d08ce7906
[ "Apache-2.0" ]
null
null
null
core/dbt/main.py
tpilewicz/dbt
479ae839ae20e469f39cc6fa96811f4d08ce7906
[ "Apache-2.0" ]
null
null
null
core/dbt/main.py
tpilewicz/dbt
479ae839ae20e469f39cc6fa96811f4d08ce7906
[ "Apache-2.0" ]
null
null
null
from typing import List from dbt.logger import GLOBAL_LOGGER as logger, log_cache_events, log_manager import argparse import os.path import sys import traceback from contextlib import contextmanager from pathlib import Path import dbt.version import dbt.flags as flags import dbt.task.run as run_task import dbt.task.c...
28.689721
79
0.610661
ce68b4daffd2093842612eb1a1c958bbc4cd19f1
405
py
Python
Beginner/1049.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Beginner/1049.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Beginner/1049.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
S1 = input() S2 = input() S3 = input() if S1 == "vertebrado": if S2 == "ave": if S3 == "carnivoro": print("aguia") else: print("pomba") elif S3 == "onivoro": print("homem") else: print("vaca") else: if S2 == "inseto": if S3 == "hematofago": print("pulga") else: print("la...
23.823529
49
0.535802
60e4cad021ec99afac477d7f7838b4547d3f23bf
466
py
Python
garbageday/migrations/0002_auto_20191128_2318.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
24
2020-02-01T17:22:47.000Z
2020-10-24T19:49:36.000Z
garbageday/migrations/0002_auto_20191128_2318.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
16
2020-02-01T14:30:15.000Z
2020-08-13T20:49:56.000Z
garbageday/migrations/0002_auto_20191128_2318.py
aaronspindler/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
6
2020-02-01T22:07:46.000Z
2021-03-05T14:05:27.000Z
# Generated by Django 2.2.7 on 2019-11-29 04:18 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('garbageday', '0001_initial'), ] operations = [ migrations.AlterField( model_name='garbageday', ...
24.526316
103
0.637339
8405d54631753ec477cdbf5f6439e8a75c599fca
1,293
py
Python
pyteste/test_Bhascara.py
Gikeda2016/CursoPython-USP
973d3059907d4cf26226d7ef200851dd26b383dd
[ "MIT" ]
null
null
null
pyteste/test_Bhascara.py
Gikeda2016/CursoPython-USP
973d3059907d4cf26226d7ef200851dd26b383dd
[ "MIT" ]
null
null
null
pyteste/test_Bhascara.py
Gikeda2016/CursoPython-USP
973d3059907d4cf26226d7ef200851dd26b383dd
[ "MIT" ]
null
null
null
from calculo import Mathik import pytest class Test_Bhaskara: @pytest.fixture def mat(self): return Mathik() # dados parametrizados testdata = [( 1, -2, 1, 1, 1, ''), ( 1, -5, 6, 2, 3, 2), (10, 10, 10, 0,'', ''), (10, 20, 10, 1, ...
28.733333
74
0.459397
e56b6b9ada5e44ed0f8cdb6134306334646a5f0b
226
py
Python
config/routers.py
MahmoudFarid/rss_feed
d722b538977d419c89622c213059595ec07f5a2a
[ "MIT" ]
null
null
null
config/routers.py
MahmoudFarid/rss_feed
d722b538977d419c89622c213059595ec07f5a2a
[ "MIT" ]
null
null
null
config/routers.py
MahmoudFarid/rss_feed
d722b538977d419c89622c213059595ec07f5a2a
[ "MIT" ]
1
2021-12-28T03:22:49.000Z
2021-12-28T03:22:49.000Z
from django.urls import include, path app_name = "api" urlpatterns = [ path('auth/', include('djoser.urls.authtoken')), path('auth/', include('djoser.urls')), path('feeds/', include('rss_feed.feeds.routers')), ]
22.6
54
0.654867
d8cc2ad9efc888d53cc61e05a135cd0f7a2772b8
1,077
py
Python
articles/forms.py
ycyoondev/nurse-duty
3e536430bbe17fe6f41bb1e0b96fa7579ce43185
[ "Apache-1.1" ]
null
null
null
articles/forms.py
ycyoondev/nurse-duty
3e536430bbe17fe6f41bb1e0b96fa7579ce43185
[ "Apache-1.1" ]
null
null
null
articles/forms.py
ycyoondev/nurse-duty
3e536430bbe17fe6f41bb1e0b96fa7579ce43185
[ "Apache-1.1" ]
null
null
null
from django import forms from .models import Article, Comment class ArticleForm(forms.ModelForm): title = forms.CharField( label='제목', widget=forms.TextInput( attrs={ 'class': 'mt-2 form-control', } ) ) content = forms.CharField( label...
21.54
45
0.470752
487fc59b6689057624aa04368adade2c02e8abcd
9,467
py
Python
src/bme280.py
birds-on-mars/diy-iot2ds
fae39290261a1638f0c173c39d4e1ec175fbc8d0
[ "MIT" ]
1
2019-07-30T11:28:33.000Z
2019-07-30T11:28:33.000Z
src/bme280.py
wilkehartmut/diy-iot2ds
319fa254146e7653df12ad61daf31b48ff7f4193
[ "MIT" ]
null
null
null
src/bme280.py
wilkehartmut/diy-iot2ds
319fa254146e7653df12ad61daf31b48ff7f4193
[ "MIT" ]
1
2020-07-16T13:52:51.000Z
2020-07-16T13:52:51.000Z
import time import smbus # pylint: disable=import-error ADDR = 0x77 # 7bit address of the BME280 for SDO=0, else 0x77 REGISTER_ID = 0xD0 REGISTER_RESET = 0xE0 REGISTER_CTRL_HUM = 0xF2 REGISTER_STATUS = 0xF3 REGISTER_CTRL_MEAS = 0xF4 REGISTER_CONFIG = 0xF5 HO_SKIPPED = 0x00 HO_1 = 0x01 HO_2 = 0x02 HO_4 = 0x03 HO_8 =...
36.272031
195
0.631457
2c268e920702107bc7c83154c89955fed2562988
698
py
Python
src/pyqt/models/LabelModel.py
polzbit/PacketBuilder
fc7d2225fe7ef38acd537522795ed084922f40da
[ "MIT" ]
null
null
null
src/pyqt/models/LabelModel.py
polzbit/PacketBuilder
fc7d2225fe7ef38acd537522795ed084922f40da
[ "MIT" ]
null
null
null
src/pyqt/models/LabelModel.py
polzbit/PacketBuilder
fc7d2225fe7ef38acd537522795ed084922f40da
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QLabel from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont class Label(QLabel): def __init__(self, parent=None, name='', text='', width=50, height=50, bold=False, align=Qt.AlignCenter): super().__init__(parent) self.setText(text) self.setAlignment(a...
34.9
110
0.614613
cbb0042012bfb75303ced7ee90254995ebaf69ba
3,588
py
Python
handrecong.py
AshwinRaam/handwrittendigitrecog
c5211b0b47db8c4af3ec0b0dcebcbaac2dbc6302
[ "MIT" ]
5
2019-06-10T09:40:19.000Z
2019-07-08T12:08:22.000Z
handrecong.py
Abineshdotcom/handwrittendigitrecog
c5211b0b47db8c4af3ec0b0dcebcbaac2dbc6302
[ "MIT" ]
null
null
null
handrecong.py
Abineshdotcom/handwrittendigitrecog
c5211b0b47db8c4af3ec0b0dcebcbaac2dbc6302
[ "MIT" ]
1
2019-07-08T12:08:26.000Z
2019-07-08T12:08:26.000Z
import cv2 from keras.models import load_model import numpy as np from collections import deque # Load pretrained model on MNIST dataset model = load_model('mnistdawk.h5') def main(): cap = cv2.VideoCapture(0) # Color range in HSV for color detection lower_blue = np.array([110, 50, 50]) upper_blue = n...
41.241379
113
0.564103
4b09972f42a342a2bce87f5142a0f4461e57be7f
675
py
Python
kaldibin/__init__.py
rcgale/kaldibin
d7ea0fc512f4d6ac1b1345adfeb6d441173815b1
[ "MIT" ]
null
null
null
kaldibin/__init__.py
rcgale/kaldibin
d7ea0fc512f4d6ac1b1345adfeb6d441173815b1
[ "MIT" ]
null
null
null
kaldibin/__init__.py
rcgale/kaldibin
d7ea0fc512f4d6ac1b1345adfeb6d441173815b1
[ "MIT" ]
null
null
null
import atexit import os from kaldibin.adapters.io import KaldiBytes, KaldiFile, KaldiGzFile, KaldiPipe, KaldiBytesArk from kaldibin.adapters.context import KaldiContext, _magic_parse_args from kaldibin.featbin import compute_cmvn_stats, compute_mfcc_feats, wav_copy from kaldibin.latbin import lattice_1best, lattice_al...
45
115
0.856296
7747f6392760afeae5da32646ab382b7fe729b76
2,525
py
Python
websearcher/regex_search.py
beepscore/websearcher
f8b792caf1dd835302fbb22011ee6b7a147ba210
[ "MIT" ]
null
null
null
websearcher/regex_search.py
beepscore/websearcher
f8b792caf1dd835302fbb22011ee6b7a147ba210
[ "MIT" ]
1
2020-02-16T20:50:46.000Z
2020-02-16T20:50:46.000Z
websearcher/regex_search.py
beepscore/websearcher
f8b792caf1dd835302fbb22011ee6b7a147ba210
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import csv import os class RegexSearch: """ Reads a csv file and creates regular expressions (regex). """ def __init__(self): """ Initialize the class. """ pass def write_regex(self): """ Reads a csv file and creates regular...
33.223684
100
0.562376
ed09c1d10be5a8e9dc0a7bc768e66970eeb1f2a0
394
py
Python
boards/migrations/0004_topic_description.py
Gom3rye/final
8ea9e6fb0efbf5e6d6380919d79a4458a9c9c799
[ "MIT" ]
null
null
null
boards/migrations/0004_topic_description.py
Gom3rye/final
8ea9e6fb0efbf5e6d6380919d79a4458a9c9c799
[ "MIT" ]
null
null
null
boards/migrations/0004_topic_description.py
Gom3rye/final
8ea9e6fb0efbf5e6d6380919d79a4458a9c9c799
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-13 04:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('boards', '0003_topic_views'), ] operations = [ migrations.AddField( model_name='topic', name='description', ...
20.736842
64
0.593909
1d5ec5d424dff9c2bb4c4ecd4fd9f998dfae901c
48,771
py
Python
cgio/answers.py
prplz/cgio.py
b96f49878e0d8a23b571f6148503d35d7324cc0e
[ "MIT" ]
null
null
null
cgio/answers.py
prplz/cgio.py
b96f49878e0d8a23b571f6148503d35d7324cc0e
[ "MIT" ]
null
null
null
cgio/answers.py
prplz/cgio.py
b96f49878e0d8a23b571f6148503d35d7324cc0e
[ "MIT" ]
1
2021-01-19T19:58:02.000Z
2021-01-19T19:58:02.000Z
arabic_to_roman_args = [ "813", "2176", "757", "407", "1670", "40", "9", "3828", "3154", "3368", "168", "1292", "2383", "2116", "1202", "900", "2033", "90", "4", "400", ] arabic_to_roman = """DCCCXIII MMCLXXVI DCCLVII CDVII MDCLXX XL IX MM...
27.569813
1,023
0.497939
1b900c575b9ecd498fc62d7884abc2790b62c65f
3,978
py
Python
browser.py
TonkWorks/pepper_autocomplete
184de2ae65216f2e3a05e3ca508be50395388b62
[ "MIT" ]
1
2015-03-27T23:51:27.000Z
2015-03-27T23:51:27.000Z
browser.py
TonkWorks/pepper_autocomplete
184de2ae65216f2e3a05e3ca508be50395388b62
[ "MIT" ]
null
null
null
browser.py
TonkWorks/pepper_autocomplete
184de2ae65216f2e3a05e3ca508be50395388b62
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.dirname(__file__)) from .selenium.webdriver import Chrome from .selenium.webdriver import Firefox class Browser: def __init__(self): from .pepper import status status("Intializing Browser instance.") self.webdriver = None self.selecte...
25.831169
78
0.565108
aedfdbce15fa0c9dacc25b333a6aefffb337a265
6,410
py
Python
pair/Reconstruction/models/SEResNet101AE.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
pair/Reconstruction/models/SEResNet101AE.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
pair/Reconstruction/models/SEResNet101AE.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
""" Based on ResNetAE, release the backbone to SE_ResNet101. """ import torch import torch.nn as nn import torch.nn.functional as F import pydiffvg from torchvision.models import resnet50 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from .backbone import se_resnet101 pydiffvg.set_use_gpu(tor...
41.089744
119
0.592044
b96afc8e122b0a818125d8106291c3a155b96a07
3,403
py
Python
main.py
milesaturpin/lm-evaluation-harness
c64535860d852e55c94c2865ffbff3b302655c76
[ "MIT" ]
null
null
null
main.py
milesaturpin/lm-evaluation-harness
c64535860d852e55c94c2865ffbff3b302655c76
[ "MIT" ]
null
null
null
main.py
milesaturpin/lm-evaluation-harness
c64535860d852e55c94c2865ffbff3b302655c76
[ "MIT" ]
null
null
null
import argparse import json import logging import fnmatch from lm_eval import tasks, evaluator logging.getLogger("openai").setLevel(logging.WARNING) class MultiChoice: def __init__(self, choices): self.choices = choices # Simple wildcard support (linux filename patterns) def __contains__(self, ...
30.936364
115
0.679401
9c9704d1a1ab52907106e7c74fabb8619038e980
181
py
Python
apps/sso/urls.py
froi/horas
39980eb90738f4c9a578bdcfbc56bc1ce373dcab
[ "MIT" ]
null
null
null
apps/sso/urls.py
froi/horas
39980eb90738f4c9a578bdcfbc56bc1ce373dcab
[ "MIT" ]
14
2019-10-09T19:33:25.000Z
2021-07-14T10:42:31.000Z
apps/sso/urls.py
froi/horas
39980eb90738f4c9a578bdcfbc56bc1ce373dcab
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url urlpatterns = patterns( '', # Empty string as prefix url('^sso/$', 'apps.sso.views.single_sign_on', name='single_sign_on'), )
20.111111
74
0.679558
49bbc5fcb52eb41f9bc1dfdf521d6dbae2bac80d
4,260
py
Python
extract_regions.py
vsomlev/tf_equip_regions
f9dd7acbbe8c3e9bd5d24252ffb54019e888fe66
[ "MIT" ]
null
null
null
extract_regions.py
vsomlev/tf_equip_regions
f9dd7acbbe8c3e9bd5d24252ffb54019e888fe66
[ "MIT" ]
null
null
null
extract_regions.py
vsomlev/tf_equip_regions
f9dd7acbbe8c3e9bd5d24252ffb54019e888fe66
[ "MIT" ]
null
null
null
#!/usr/bin/python2 import vdf import json client_schema_file = 'schema_client.vdf' main_schema_file = 'schema_main.json' ignore_item_classes = ['tool', 'supply_crate'] accept_item_classes = ['tf_wearable', 'tf_weapon_medigun', 'tf_powerup_bottle'] # does 'whole head' conflict with 'lenses' by transitivity? conflicts...
37.043478
90
0.578638
c349e7189da508019c3ee1ab1831ebef36c2410d
120
py
Python
pylearn2/datasets/tests/test_imports.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
2,045
2015-01-01T14:07:52.000Z
2022-03-08T08:56:41.000Z
pylearn2/datasets/tests/test_imports.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
305
2015-01-02T13:18:24.000Z
2021-08-20T18:03:28.000Z
pylearn2/datasets/tests/test_imports.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
976
2015-01-01T17:08:51.000Z
2022-03-25T19:53:17.000Z
def test_mnist_imports(): from pylearn2.datasets.mnist import MNIST MNIST.shut_up_the_syntax_highlighting = 1
20
45
0.783333
4a5567dacb22a8d71599f0a328e536fc7dae6923
445
py
Python
ModularER_2D/setup.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
27
2020-07-15T10:43:02.000Z
2021-04-15T15:01:12.000Z
ModularER_2D/setup.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
3
2021-06-08T22:44:19.000Z
2021-09-15T08:50:44.000Z
ModularER_2D/setup.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
6
2020-07-22T01:25:49.000Z
2021-09-21T12:07:31.000Z
#!/usr/bin/env python from setuptools import setup setup(name='Modular_robtics_2D', description="Modular robotics 2D environment for OpenAi-Gym", version='0.1.0', keywords="modular robotics gym openai-gym", author="Frank Veenstra and Joergen Nordmoen", author_email="frankvee@uio.no", ...
34.230769
69
0.683146
80dd1790adc6ed64daf4c8562ac1f1e1dc565910
190
py
Python
backend/apps/account/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
backend/apps/account/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
backend/apps/account/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class AccountConfig(AppConfig): name = 'apps.account' verbose_name = _('Kundenverwaltung')
23.75
54
0.773684
82c3e7a83a64473d0763bef3a80202f387c7599f
3,263
py
Python
paddlevideo/modeling/heads/pptsm_head.py
txyugood/PaddleTableTennis
be4d33b5990da9c75fcd11f341ae09a73bfdbaba
[ "Apache-2.0" ]
883
2020-11-12T11:46:46.000Z
2022-03-31T18:27:10.000Z
paddlevideo/modeling/heads/pptsm_head.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
233
2020-12-09T06:04:59.000Z
2022-03-28T08:16:51.000Z
paddlevideo/modeling/heads/pptsm_head.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
225
2020-11-13T06:21:55.000Z
2022-03-31T05:36:11.000Z
# Copyright (c) 2020 PaddlePaddle 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 required by applic...
36.255556
92
0.578609
14f028293766d7c76b6e9c318e402e76351e20b3
2,936
py
Python
userbot/modules/spam.py
Egazaky/OpenUbot
11c9aef811c521e6966447600556616c3c692f28
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-03-29T10:04:48.000Z
2020-03-29T10:04:48.000Z
userbot/modules/spam.py
Egazaky/OpenUbot
11c9aef811c521e6966447600556616c3c692f28
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2020-07-31T10:23:15.000Z
2020-08-03T04:56:37.000Z
userbot/modules/spam.py
Egazaky/OpenUbot
11c9aef811c521e6966447600556616c3c692f28
[ "Naumen", "Condor-1.1", "MS-PL" ]
10
2020-03-29T05:36:36.000Z
2021-03-04T08:35:35.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. import asyncio from asyncio import sleep from userbot import BOTLOG, BOTLOG_CHATID, CMD_HELP from userbot.events import...
31.234043
78
0.624659
67f1defbc196193bb4996a783cad16c43114459e
413
py
Python
log_api/migrations/0008_auto_20200728_2126.py
mpupo/oh-my-log
36327bdcb5e2e7f36294a4893ea6b5327bedcb47
[ "MIT" ]
null
null
null
log_api/migrations/0008_auto_20200728_2126.py
mpupo/oh-my-log
36327bdcb5e2e7f36294a4893ea6b5327bedcb47
[ "MIT" ]
9
2020-07-09T01:24:52.000Z
2020-07-14T03:18:57.000Z
log_api/migrations/0008_auto_20200728_2126.py
mpupo/oh-my-log
36327bdcb5e2e7f36294a4893ea6b5327bedcb47
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-29 00:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('log_api', '0007_auto_20200728_2115'), ] operations = [ migrations.AlterField( model_name='execution', name='success'...
21.736842
73
0.612591
1253ec0ab0ad5980aa950f7de5292691ff3ca399
23,901
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/aio/operations/_runs_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/aio/operations/_runs_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/aio/operations/_runs_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
1
2019-04-05T18:17:43.000Z
2019-04-05T18:17:43.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.284848
215
0.659554
f037aef96042c365c9383b73d257000a0f211b63
5,762
py
Python
tests/unit/test_helper.py
4un98737/jina
199445efe66f9fea307dc4cb49edaec5f2149ea9
[ "Apache-2.0" ]
1
2020-12-23T12:34:00.000Z
2020-12-23T12:34:00.000Z
tests/unit/test_helper.py
4un98737/jina
199445efe66f9fea307dc4cb49edaec5f2149ea9
[ "Apache-2.0" ]
null
null
null
tests/unit/test_helper.py
4un98737/jina
199445efe66f9fea307dc4cb49edaec5f2149ea9
[ "Apache-2.0" ]
null
null
null
import random import time from types import SimpleNamespace import pytest from cli import _is_latest_version from jina import NdArray, Request from jina.clients.helper import _safe_callback, pprint_routes from jina.drivers.querylang.queryset.dunderkey import dunder_get from jina.excepts import BadClientCallback from ...
29.397959
97
0.658973
2443a8bcd3e5a5a0ef002d56578273b0435b0fea
831
py
Python
erpnext_mfg/events/replenish_auto_order.py
bailabs/erpnext_mfg
de0146eebd5d1d0dbc4bfad78530d943f07e3253
[ "MIT" ]
1
2021-06-22T15:09:14.000Z
2021-06-22T15:09:14.000Z
erpnext_mfg/events/replenish_auto_order.py
bailabs/erpnext_mfg
de0146eebd5d1d0dbc4bfad78530d943f07e3253
[ "MIT" ]
null
null
null
erpnext_mfg/events/replenish_auto_order.py
bailabs/erpnext_mfg
de0146eebd5d1d0dbc4bfad78530d943f07e3253
[ "MIT" ]
4
2021-06-30T21:37:51.000Z
2022-02-16T21:47:32.000Z
import frappe from frappe import _ from erpnext_mfg.api.replenishment import order_item, with_qty_details # bench execute erpnext_mfg.events.replenish_auto_order.replenish_auto_order def replenish_auto_order(): replenishment_items = frappe.get_all( "Replenishment Rule", filters={"disabled": 0}, ...
34.625
76
0.637786
026370a2e67916017615904e1f3f7335f9fb155f
2,421
py
Python
callbacks/output_checkpoint.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
null
null
null
callbacks/output_checkpoint.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
10
2020-01-28T22:47:22.000Z
2022-02-10T00:15:47.000Z
callbacks/output_checkpoint.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
null
null
null
import os import utils import const from tf_imports import tf, K, Callback, losses class OutputCheckpoint(Callback): def __init__(self, tensor_board_writer, val_data, test_data_input_word2vec, print_every=1): super().__init__() self.writer = tensor_board_writer self.val_data = val_data ...
34.098592
104
0.648079
b89928ede33d49a9c6b44e091acc323d2aa50aee
84
py
Python
loop/alphabets using while.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
loop/alphabets using while.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
loop/alphabets using while.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
i = 97 print("The alphabets are") while i <= 122: print(chr(i)) i += 1
14
27
0.511905
e8dea0b08572b8a86aa6d1af5e52c64f3946fd5d
111,178
py
Python
mne/source_space.py
vagechirkov/mne-python
f20ffa0eb46e76baf4e30437bc03d765da83b38a
[ "BSD-3-Clause" ]
1
2020-06-18T14:05:26.000Z
2020-06-18T14:05:26.000Z
mne/source_space.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
2
2017-01-18T16:29:02.000Z
2017-01-19T16:03:25.000Z
mne/source_space.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
4
2021-09-08T14:35:26.000Z
2022-02-25T22:34:52.000Z
# Authors: Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD-3-Clause # Many of the computations in this code were derived from Matti Hämäläinen's # C code. from copy import deepcopy from functools import partial import os import os.path as op imp...
39.438808
79
0.574709
b83ed9e58b5550192cd2758b5c0f8bec09a52233
16,501
py
Python
solariot.py
scottah/solariot
8192d16a2a0cd418aa5ef4a72662f95f89147dda
[ "MIT" ]
null
null
null
solariot.py
scottah/solariot
8192d16a2a0cd418aa5ef4a72662f95f89147dda
[ "MIT" ]
null
null
null
solariot.py
scottah/solariot
8192d16a2a0cd418aa5ef4a72662f95f89147dda
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 Dennis Mellican # # 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, mod...
34.23444
139
0.634446
2bc3258876352b681652b92c4acd0c8dc5604491
14,692
py
Python
rfi_file_monitor/engines/aws_s3_bucket_engine.py
tschoonj/rfi-file-monitor
b73dd80327dbc72e96fc0d71ef0d3dbf04fde0b6
[ "BSD-3-Clause" ]
1
2020-06-04T10:28:53.000Z
2020-06-04T10:28:53.000Z
rfi_file_monitor/engines/aws_s3_bucket_engine.py
tschoonj/rfi-file-monitor
b73dd80327dbc72e96fc0d71ef0d3dbf04fde0b6
[ "BSD-3-Clause" ]
160
2020-06-18T06:52:47.000Z
2022-03-24T09:38:33.000Z
rfi_file_monitor/engines/aws_s3_bucket_engine.py
tschoonj/rfi-file-monitor
b73dd80327dbc72e96fc0d71ef0d3dbf04fde0b6
[ "BSD-3-Clause" ]
3
2020-07-13T16:07:10.000Z
2021-06-11T10:16:53.000Z
from __future__ import annotations import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GLib import boto3 import string import random import time import json from copy import deepcopy import logging from .aws_s3_bucket_engine_advanced_settings import ( AWSS3BucketEngineAdvancedSettings, ) fr...
31.193206
137
0.512592
7edcad1762ca7666cf5ad13c097d2c3eba82bd89
9,749
py
Python
webpage/lib/python3.5/site-packages/dask/dataframe/tests/test_rolling.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
2
2017-03-30T11:22:11.000Z
2019-03-03T05:18:01.000Z
webpage/lib/python3.5/site-packages/dask/dataframe/tests/test_rolling.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
webpage/lib/python3.5/site-packages/dask/dataframe/tests/test_rolling.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
import pandas as pd import pytest import numpy as np import dask.dataframe as dd from dask.dataframe.utils import assert_eq from dask.utils import ignoring def mad(x): return np.fabs(x - x.mean()).mean() def rolling_functions_tests(p, d): # Old-fashioned rolling API assert_eq(pd.rolling_count(p, 3), dd...
42.203463
86
0.612883
c1809af58c0fd4912e150780d80dc78037d981b1
6,010
py
Python
sdk/python/pulumi_aws_native/amplifyuibuilder/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/amplifyuibuilder/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/amplifyuibuilder/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
29.460784
104
0.664725
653c4a6f12754f0e6c40d81a140eb97c27bd425c
1,664
py
Python
locations/migrations/0001_initial.py
rindi/sf-movie-locations
0a7b8d885bbb7507ad7d5868a2ea00ec78ba8336
[ "MIT" ]
null
null
null
locations/migrations/0001_initial.py
rindi/sf-movie-locations
0a7b8d885bbb7507ad7d5868a2ea00ec78ba8336
[ "MIT" ]
null
null
null
locations/migrations/0001_initial.py
rindi/sf-movie-locations
0a7b8d885bbb7507ad7d5868a2ea00ec78ba8336
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-27 05:01 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
36.173913
114
0.578726
ea741700a5c33c76a7d0ad307682133ed3dea253
12,059
py
Python
lib/simple_config.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
6
2019-02-12T11:28:53.000Z
2021-05-01T09:35:17.000Z
lib/simple_config.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
96
2018-11-09T12:46:17.000Z
2019-04-16T21:26:59.000Z
lib/simple_config.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
4
2018-12-07T12:54:20.000Z
2019-02-28T01:54:56.000Z
import json import threading import time import os import stat from . import util from copy import deepcopy from .util import user_dir, make_dir, print_error, PrintError from .bitcoin import MAX_FEE_RATE, FEE_TARGETS config = None def get_config(): global config return config def set_config(c): globa...
33.684358
117
0.611245
6127732821fca0f0b2f69254afe1429fbe7f1123
3,418
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/OrderedMultiSet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/OrderedMultiSet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/OrderedMultiSet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2011-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.eclipse.org/legal/epl-2....
29.982456
77
0.594792
c18481e23fd4dc4f4a9cf2694b366e2310bec5b3
6,126
py
Python
src/gluonts/block/cnn.py
goriccardo/gluon-ts
35cc49bc66fcf0ebc7225916fc2d3edd58f5cb49
[ "Apache-2.0" ]
1
2021-09-16T09:16:48.000Z
2021-09-16T09:16:48.000Z
src/gluonts/block/cnn.py
satarii/gluon-ts
77273999d5e7b09b14f98a0773355fb19e3efcb4
[ "Apache-2.0" ]
null
null
null
src/gluonts/block/cnn.py
satarii/gluon-ts
77273999d5e7b09b14f98a0773355fb19e3efcb4
[ "Apache-2.0" ]
2
2019-10-12T21:52:14.000Z
2019-11-20T18:47:56.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
29.594203
119
0.607248
ab2ebd4474edf2c98cb723895c0cbf93c8919f89
1,142
py
Python
tests/fixtures/test_cli.py
ines-cruz/invenio-rdm-records
9c578453c47faa97eaca9c4b3d789e19952750d0
[ "MIT" ]
null
null
null
tests/fixtures/test_cli.py
ines-cruz/invenio-rdm-records
9c578453c47faa97eaca9c4b3d789e19952750d0
[ "MIT" ]
null
null
null
tests/fixtures/test_cli.py
ines-cruz/invenio-rdm-records
9c578453c47faa97eaca9c4b3d789e19952750d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2021 Northwestern University. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Tests for the CLI.""" from pathlib import Path from invenio...
27.853659
79
0.631349
395ec5729558b64ae7aea824a65dcd38bfd11c97
2,843
py
Python
classification/models/classification_share_flag_hooks.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
classification/models/classification_share_flag_hooks.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
classification/models/classification_share_flag_hooks.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
from django.conf import settings from django.db.models.signals import post_save from django.dispatch.dispatcher import receiver from classification.enums.classification_enums import ShareLevel, SpecialEKeys, ClinicalSignificance from classification.models.classification import \ Classification, classification_post...
49.017241
154
0.783327
53579e0764c24ec6ef99fb3fc347f00d10d25eff
1,600
py
Python
code/loss_fn.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/loss_fn.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/loss_fn.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
from torchvision import models import torch.nn as nn import torch as T class GeneratorLoss(nn.Module): def __init__(self): super(GeneratorLoss, self).__init__() vgg = models.vgg19(pretrained=True) loss_network = nn.Sequential(*list(vgg.features)[:31]).eval() for param in loss_netwo...
38.095238
104
0.605625
a49e5d5089d655b40f7bd066e9f86680a1fc1189
5,716
py
Python
PyFin/tests/Math/Distributions/testDistribution.py
rpatil524/Finance-Python
687538015eb597575b872cd652aada5047e84ef3
[ "MIT" ]
325
2017-11-02T19:08:46.000Z
2022-03-22T21:00:45.000Z
PyFin/tests/Math/Distributions/testDistribution.py
smileboy510/Finance-Python
96d9984f1a9bb7b02c057c8e056a993b1c211945
[ "MIT" ]
6
2019-05-22T07:23:02.000Z
2021-06-23T11:27:57.000Z
PyFin/tests/Math/Distributions/testDistribution.py
smileboy510/Finance-Python
96d9984f1a9bb7b02c057c8e056a993b1c211945
[ "MIT" ]
78
2017-11-27T01:27:48.000Z
2022-03-26T15:34:09.000Z
# -*- coding: utf-8 -*- u""" Created on 2015-7-23 @author: cheng.li """ import unittest import math import copy import tempfile import pickle import os from PyFin.Math.Distributions import InverseCumulativeNormal from PyFin.Math.Distributions import NormalDistribution from PyFin.Math.Distributions import CumulativeNo...
37.854305
113
0.55161
b9823084ef7d0a29c5c5ec4c2dbd42aeb4fd77d4
119
py
Python
simple/scrapers/private_laws/predicates.py
MeirKriheli/Open-Knesset
0e1de0b0c47ae3fb341bd3afc6030d532fff6945
[ "BSD-3-Clause" ]
69
2015-02-03T12:02:56.000Z
2022-02-16T13:08:01.000Z
simple/scrapers/private_laws/predicates.py
OriHoch/Open-Knesset
538bcdc2632d8d17a8ddddbc4567106684b9996b
[ "BSD-3-Clause" ]
446
2015-01-01T11:10:33.000Z
2021-11-01T08:15:39.000Z
simple/scrapers/private_laws/predicates.py
OriHoch/Open-Knesset
538bcdc2632d8d17a8ddddbc4567106684b9996b
[ "BSD-3-Clause" ]
67
2015-01-01T09:13:58.000Z
2021-11-01T07:51:08.000Z
# -*- coding: utf-8 -* import re def proposal_has_joiners(name_str): return re.search('ONMOUSEOUT', name_str) > 0
19.833333
48
0.689076
8832023d837d0a54ad2641627ad16ccb18f1411e
5,257
py
Python
homepairs/HomepairsApp/Apps/ServiceProvider/test_update.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2021-01-19T00:48:10.000Z
2021-01-19T00:48:10.000Z
homepairs/HomepairsApp/Apps/ServiceProvider/test_update.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
17
2020-01-23T05:51:18.000Z
2020-06-16T02:33:41.000Z
homepairs/HomepairsApp/Apps/ServiceProvider/test_update.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2020-08-06T02:10:58.000Z
2020-08-06T02:10:58.000Z
################################################################################ # Imports from django.test import TestCase from ..helperFuncsForTesting import getInfoPost, getInfoPut, setUpHelper from .views import ERROR, FAIL, INVALID_DATE, SERVPRO_DOESNT_EXIST, STATUS, SUCCESS # from .views import FAIL #########...
32.054878
83
0.50466
22e49ec7b51a9fbf75dc1d062ae0f79dcaecc6bf
5,812
py
Python
audio/base.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
audio/base.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
audio/base.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
import enum import typing import asyncio import functools import numpy as np from asyio import StateWatcher from interface import Interface from dataclasses import dataclass from typing import Any, Union, Callable, TypeVar @dataclass class Properties: dtype: str fmt: str channels: int samplerate: int ...
30.914894
110
0.595664
9e253fcfc740acf39589ead3247556330534eee7
6,213
py
Python
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
1
2019-12-25T16:45:54.000Z
2019-12-25T16:45:54.000Z
""" Reference: https://github.com/openai/imitation I follow the architecture from the official repository """ import tensorflow as tf import numpy as np from stable_baselines.common.mpi_running_mean_std import RunningMeanStd from stable_baselines.common import tf_util as tf_util def logsigmoid(input_tensor): """...
44.697842
119
0.647835
dc542e022c7024f4343d59ed42381ac89de77e12
61,451
py
Python
Python/windwardrestapi/Model/Variable.py
windward-studios/Windward-REST-version-2-Clients
8fd467e6f4ece6fcc435609ffb23448d07af3131
[ "MIT" ]
null
null
null
Python/windwardrestapi/Model/Variable.py
windward-studios/Windward-REST-version-2-Clients
8fd467e6f4ece6fcc435609ffb23448d07af3131
[ "MIT" ]
1
2020-10-12T20:32:05.000Z
2020-10-12T20:38:04.000Z
Python/windwardrestapi/Model/Variable.py
windward-studios/Windward-REST-version-2-Clients
8fd467e6f4ece6fcc435609ffb23448d07af3131
[ "MIT" ]
null
null
null
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x08\x00\x55\x0d\x0d\x0a\x04\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\xb9\x3b\x00\x00\x00\x00\x00\x10\x3e\xaa\xa7\x5c\xa1\xd9\x46\xd5\xc8\xe3\xb0\x8d\xe2\x2c\x50\x6f\x00\x00\x00\x00\x00\x00\x00\x00\xb7\x1c\x21\xc6\x26\xbf\xec\x...
61,451
61,451
0.749996
e10f577e4fdf5962e663b4e018041af2873d9112
414
py
Python
Python/pybind/MonteCarloPi.py
tstraus/monteCarloPi
9990cb238d6d69aae0fd53d07a669c17e08d8ec8
[ "MIT" ]
1
2019-10-04T08:02:05.000Z
2019-10-04T08:02:05.000Z
Python/pybind/MonteCarloPi.py
tstraus/monteCarloPi
9990cb238d6d69aae0fd53d07a669c17e08d8ec8
[ "MIT" ]
null
null
null
Python/pybind/MonteCarloPi.py
tstraus/monteCarloPi
9990cb238d6d69aae0fd53d07a669c17e08d8ec8
[ "MIT" ]
null
null
null
import MonteCarloPi import multiprocessing from multiprocessing import Pool from sys import argv def wrapper (reps: int): return MonteCarloPi.pi(reps) if __name__ == '__main__': reps = int(argv[1]) cores = multiprocessing.cpu_count() pool = Pool(cores) subReps = [int(reps/cores)]*cores resul...
20.7
40
0.673913
8cfa373cb2f54cbef29de5a72954eaecbb6d85db
767
py
Python
problems.py
wpwei/attention_to_route
022020cd44f4ae3c84b95c680a3c3b0cffffa1f5
[ "MIT" ]
5
2020-04-19T03:56:30.000Z
2021-09-10T11:52:27.000Z
problems.py
wpwei/attention_to_route
022020cd44f4ae3c84b95c680a3c3b0cffffa1f5
[ "MIT" ]
null
null
null
problems.py
wpwei/attention_to_route
022020cd44f4ae3c84b95c680a3c3b0cffffa1f5
[ "MIT" ]
1
2020-06-07T07:31:43.000Z
2020-06-07T07:31:43.000Z
import torch def TSP(graphs, permutations): """ Author: wouterkool Copied from https://github.com/wouterkool/attention-learn-to-route """ # Check that tours are valid, i.e. contain 0 to n -1 assert (torch.arange( permutations.size(1), out=permutations.data.new()).view( 1, ...
33.347826
77
0.606258
9b284733928c8d37cee3799a1e4e6828c1e7b1d6
861
py
Python
Ibanfox/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
Ibanfox/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
Ibanfox/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
import unittest import requests class UnitTestsIbanfoxAPI(unittest.TestCase): # https://ibanfox.com/docs/api-reference/#operation/validateIban def test_get_validateIban(self): print('test_get_validateIban') headers = { 'x-api-key': '46w4e65e4q54e6', } response = r...
26.090909
116
0.666667
8dd69a1c73630188b729321d05f7af65713b97ee
161
py
Python
django_zombodb/operations.py
vintasoftware/django-zombodb
793ed2f4df6e14b70237d8b973a6aecb8c890bb9
[ "MIT" ]
149
2019-02-07T21:36:00.000Z
2022-03-03T13:07:42.000Z
django_zombodb/operations.py
Zeeshan138063/django-zombodb
793ed2f4df6e14b70237d8b973a6aecb8c890bb9
[ "MIT" ]
34
2019-02-07T01:00:47.000Z
2021-06-10T22:32:10.000Z
django_zombodb/operations.py
Zeeshan138063/django-zombodb
793ed2f4df6e14b70237d8b973a6aecb8c890bb9
[ "MIT" ]
13
2019-02-14T11:40:38.000Z
2021-09-11T07:53:48.000Z
from django.contrib.postgres.operations import CreateExtension class ZomboDBExtension(CreateExtension): def __init__(self): self.name = 'zombodb'
20.125
62
0.757764
3359d8258414e7c9ba6832b566de415d962ee1cc
4,121
py
Python
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
34.341667
86
0.694734
523a475339ecc1422295269c4fa9811aa46da6b9
218
py
Python
engine/common/__init__.py
datapunk2078/torro_community
97a97c9d089b0a7b47ccdc28e4e077da36d4b85c
[ "MIT" ]
1
2022-01-12T08:31:59.000Z
2022-01-12T08:31:59.000Z
engine/common/__init__.py
datapunk2078/torro_community
97a97c9d089b0a7b47ccdc28e4e077da36d4b85c
[ "MIT" ]
null
null
null
engine/common/__init__.py
datapunk2078/torro_community
97a97c9d089b0a7b47ccdc28e4e077da36d4b85c
[ "MIT" ]
2
2022-01-19T06:26:32.000Z
2022-01-26T15:25:15.000Z
#!/usr/bin/python # -*- coding: UTF-8 -* """ @author:li-boss @file_name: __init__.py.py @create date: 2019-10-27 13:27 @blog https://leezhonglin.github.io @csdn https://blog.csdn.net/qq_33196814 @file_description: """
21.8
39
0.697248
761a2d938ced75e3172b577d921450f76ff79935
9,451
py
Python
examples/sudoku/sudoku.py
boukeas/searchtoy
20beb3009a710e546b7b2e70034a76c4d073ab3b
[ "MIT" ]
2
2019-02-22T09:53:39.000Z
2020-01-26T04:21:13.000Z
examples/sudoku/sudoku.py
boukeas/searchtoy
20beb3009a710e546b7b2e70034a76c4d073ab3b
[ "MIT" ]
null
null
null
examples/sudoku/sudoku.py
boukeas/searchtoy
20beb3009a710e546b7b2e70034a76c4d073ab3b
[ "MIT" ]
null
null
null
""" SUDOKU Fill the squares of a 9x9 board with numbers 1-9, so that no two rows, columns or 3x3 blocks contain the same number twice. Copyright 2017 George Boukeas (boukeas@gmail.com) Licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
33.514184
80
0.610412
57ae85c05c4a3b2d963284ed12f06a56c5382755
3,504
py
Python
booksite/settings.py
mikkoim/booksite
5d771265787ef23e0fee4e90dff19c609fc697d7
[ "MIT" ]
null
null
null
booksite/settings.py
mikkoim/booksite
5d771265787ef23e0fee4e90dff19c609fc697d7
[ "MIT" ]
null
null
null
booksite/settings.py
mikkoim/booksite
5d771265787ef23e0fee4e90dff19c609fc697d7
[ "MIT" ]
null
null
null
""" Django settings for booksite project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ ...
27.375
103
0.663242
8cf8c3b0ca7a51881e36d48517a9e4c113a2b8a4
10,270
py
Python
Programmable_Force_Sequences/bluelake1-6/mod_force_seq.py
Moreno-HerreroLab/C-TrapAutomation
6392889d90fd1afed1be355cbe474ec3e51a4678
[ "BSD-2-Clause" ]
null
null
null
Programmable_Force_Sequences/bluelake1-6/mod_force_seq.py
Moreno-HerreroLab/C-TrapAutomation
6392889d90fd1afed1be355cbe474ec3e51a4678
[ "BSD-2-Clause" ]
null
null
null
Programmable_Force_Sequences/bluelake1-6/mod_force_seq.py
Moreno-HerreroLab/C-TrapAutomation
6392889d90fd1afed1be355cbe474ec3e51a4678
[ "BSD-2-Clause" ]
null
null
null
# coding=utf-8 """ BSD 2-Clause License Copyright (c) 2021, SB FMH-lab (CNB-CSIC) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyr...
42.263374
139
0.686368
c6a72cc2c4ce09c80a4442a5eb9b45e0b6962a0e
8,726
py
Python
pymatgen/analysis/tests/test_bond_dissociation.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
1
2021-01-12T03:17:58.000Z
2021-01-12T03:17:58.000Z
pymatgen/analysis/tests/test_bond_dissociation.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
pymatgen/analysis/tests/test_bond_dissociation.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os from monty.serialization import loadfn from pymatgen.analysis.bond_dissociation import BondDissociationEnergies try: import openbabel as ob except ImportError: ob = None mo...
66.610687
120
0.571052
1ce84b23ac6627f51607bfd4c33518b9e0c36575
1,910
py
Python
src/nacl/exceptions.py
silasary/pynacl
a5fe769ef4c5427ad5a5ec876c62401f0b4a5cb9
[ "Apache-2.0" ]
2
2016-04-02T09:13:05.000Z
2018-11-30T00:15:43.000Z
src/nacl/exceptions.py
silasary/pynacl
a5fe769ef4c5427ad5a5ec876c62401f0b4a5cb9
[ "Apache-2.0" ]
1
2017-05-28T17:25:37.000Z
2017-05-28T17:25:37.000Z
src/nacl/exceptions.py
silasary/pynacl
a5fe769ef4c5427ad5a5ec876c62401f0b4a5cb9
[ "Apache-2.0" ]
1
2019-10-05T08:35:31.000Z
2019-10-05T08:35:31.000Z
# Copyright 2013 Donald Stufft and individual contributors # # 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...
26.164384
75
0.718848
179e829bb5791d3e2585ebf4db8b9c94eaaa1a93
896
py
Python
graphbrain/constants.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
graphbrain/constants.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
graphbrain/constants.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
# Knowledge source = 'src/p/.' # Relations is_type_of = 'is_type_of/p/.' is_instance_of = 'is_instance_of/p/.' are_synonyms = 'are_synonyms/p/.' are_antonyms = 'are_antonyms/p/.' has_part = 'has_part/p/.' has_member = 'has_member/p/.' has_substance = 'has_substance/p/.' are_related = 'are_related/p/.' pos = 'pos/p/.' ...
26.352941
71
0.621652
dfb7c0645a32a2e909568445c827fdaefb70ff36
7,093
py
Python
gui/qt/seed_dialog.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
null
null
null
gui/qt/seed_dialog.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2021-11-15T17:47:29.000Z
2021-11-15T17:47:29.000Z
gui/qt/seed_dialog.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2017-11-13T23:19:46.000Z
2017-11-13T23:19:46.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2013 ecdsa@github # # 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 li...
38.972527
128
0.612999
0ec5d395f46adbdea6fbbdcacea2525a072aee7b
2,809
py
Python
applications/kpax/controllers/members.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
applications/kpax/controllers/members.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
applications/kpax/controllers/members.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
1
2019-03-13T08:20:25.000Z
2019-03-13T08:20:25.000Z
# coding: utf8 if not session.token: redirect(LOGIN) def sync_ldap(): return dict(names_added=names_added, names_in_db=names_in_db, extra_users=extra_users) def import_csv(): form=FORM(TABLE(TR(" ",TEXTAREA(_name="csv",value="write something here")), TR("",INPUT(_type="submit",_value="...
46.816667
105
0.590246
b2a109274e731decbfc6a9f95f7669cc3d8118ae
14,828
py
Python
swift/container/updater.py
masoud91/swift
19b2e3756521d050a95fb2808d4780d52e7be97f
[ "Apache-2.0" ]
3
2020-08-10T14:13:49.000Z
2021-08-08T10:21:31.000Z
swift/container/updater.py
masoud91/swift
19b2e3756521d050a95fb2808d4780d52e7be97f
[ "Apache-2.0" ]
1
2021-02-02T09:35:05.000Z
2021-02-02T09:35:05.000Z
swift/container/updater.py
masoud91/swift
19b2e3756521d050a95fb2808d4780d52e7be97f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
42.609195
79
0.557864
46ac4c75108056d67b319e497cfa4dcc1417a2fe
4,136
py
Python
userbot/modules/button.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-27T17:56:08.000Z
2022-03-27T17:56:08.000Z
userbot/modules/button.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/button.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-25T08:16:40.000Z
2022-03-25T08:16:40.000Z
# Copyright (C) 2020 sandeep.n(π.$) # button post makker for catuserbot thanks to uniborg for the base # by @sandy1709 (@mrconfused) import os import re from telethon import Button from userbot import BOT_USERNAME from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP, tgbot from userbot.utils import e...
36.928571
188
0.633946
77af9d2977dcbb466d426d7588dda09c8e8e11fa
2,337
py
Python
bin/mkchk2.py
newtonjoo/sann
941cd101a2613f1616b47e97253135e28492be9d
[ "BSD-3-Clause" ]
6
2018-11-01T17:31:00.000Z
2022-01-15T08:28:38.000Z
bin/mkchk2.py
newtonjoo/sann
941cd101a2613f1616b47e97253135e28492be9d
[ "BSD-3-Clause" ]
3
2020-04-26T20:04:32.000Z
2022-02-03T02:36:13.000Z
bin/mkchk2.py
newtonjoo/sann
941cd101a2613f1616b47e97253135e28492be9d
[ "BSD-3-Clause" ]
2
2019-12-13T17:09:40.000Z
2020-05-01T12:42:02.000Z
#!/usr/local/bin/python2.7 # # Programmed by Keehyoung Joo at KIAS # newton@kias.re.kr import os, sys, string import numpy.oldnumeric as N import array from math import log QIJ='%s/bin/qij' % (os.environ['SANN_HOME']) stdout=sys.stdout stderr=sys.stderr mapping=[0,4,3,6,13,7,8,9,11,10,12,2,14,5,1,15,16,19,17,18] aa...
27.174419
69
0.520753
d0f478abd1195cba335291576530c8ef4e8c86f0
11,693
py
Python
huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 from __future__ import absolute_import # import models into model package from huaweicloudsdkocr.v1.model.answer_block_list import AnswerBlockList from huaweicloudsdkocr.v1.model.auto_classification_request_body import AutoClassificationRequestBody from huaweicloudsdkocr.v1.model.auto_classification_r...
88.583333
125
0.922945
9dc3c8f6b6064c796cd8d215534d72471f3105fe
9,026
py
Python
WebSpider.py
galletitaoreo/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
5
2019-08-07T08:59:53.000Z
2021-05-14T19:35:57.000Z
WebSpider.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
null
null
null
WebSpider.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
2
2021-03-31T21:20:19.000Z
2021-08-28T04:21:12.000Z
import multiprocessing import sys from bs4 import BeautifulSoup import mechanize import argparse import urllib import urllib2 import time import MySQLdb class WebSpider(): def __init__(self, webSite, depth, proxyhost, proxyuser, proxypassword, proxyport,proxysecure="http"): try: self.webSite = webSite self.d...
40.657658
224
0.681476
b4bd68d9d03f27a22b5b6b366eeb28bae69af82c
2,018
py
Python
inst/PhyloProfile/scripts/ncbi_taxonomy_parser.py
gedankenstuecke/PhyloProfile
adb080efb75652ab363873657e8b534a4950f733
[ "MIT" ]
null
null
null
inst/PhyloProfile/scripts/ncbi_taxonomy_parser.py
gedankenstuecke/PhyloProfile
adb080efb75652ab363873657e8b534a4950f733
[ "MIT" ]
null
null
null
inst/PhyloProfile/scripts/ncbi_taxonomy_parser.py
gedankenstuecke/PhyloProfile
adb080efb75652ab363873657e8b534a4950f733
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # Parse info from taxonomy NCBI dmp files (names.dmp and nodes.dmp) # to create a mapping file taxonNamesFull.txt that contains # ncbiID fullName rank parentID # Author: Carla Mölbert {carla.moelbert@gmx.de} # Date: 10.07.2018 import argparse import subprocess # Get the ...
29.246377
90
0.694747
77b9e770a9fad621063dff2b68112c991302ffae
1,227
py
Python
caldavclientlibrary/protocol/webdav/definitions/headers.py
skarra/CalDAVClientLibrary
b925efdeee7aba581586a15544af12f399c59c9d
[ "Apache-2.0" ]
1
2015-05-26T04:15:19.000Z
2015-05-26T04:15:19.000Z
caldavclientlibrary/protocol/webdav/definitions/headers.py
skarra/CalDAVClientLibrary
b925efdeee7aba581586a15544af12f399c59c9d
[ "Apache-2.0" ]
null
null
null
caldavclientlibrary/protocol/webdav/definitions/headers.py
skarra/CalDAVClientLibrary
b925efdeee7aba581586a15544af12f399c59c9d
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2007-2013 Apple Inc. 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 required by applicable l...
29.926829
86
0.727791
49f37d47419e1c91b1ff4c58440f6bc02a783a30
5,223
py
Python
rdmo/projects/urls/__init__.py
cbittner/rdmo
1d6885ad2a69f6d24c9fca6446536e0c06de5486
[ "Apache-2.0" ]
null
null
null
rdmo/projects/urls/__init__.py
cbittner/rdmo
1d6885ad2a69f6d24c9fca6446536e0c06de5486
[ "Apache-2.0" ]
null
null
null
rdmo/projects/urls/__init__.py
cbittner/rdmo
1d6885ad2a69f6d24c9fca6446536e0c06de5486
[ "Apache-2.0" ]
null
null
null
from django.urls import re_path from ..views import (IntegrationCreateView, IntegrationDeleteView, IntegrationUpdateView, IntegrationWebhookView, IssueDetailView, IssueSendView, IssueUpdateView, MembershipCreateView, MembershipDeleteView, ...
79.136364
181
0.662455
b38c2b38c04778f8b248c9759fe2dc238fd42385
6,007
py
Python
tests/test_client.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
7
2019-10-23T17:22:50.000Z
2021-04-17T21:44:28.000Z
tests/test_client.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
8
2019-11-07T16:41:01.000Z
2021-09-13T14:33:28.000Z
tests/test_client.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
4
2019-11-08T13:59:55.000Z
2021-11-07T13:49:21.000Z
from unittest import TestCase import os import responses from pathlib import Path from unittest.mock import patch, MagicMock import tempfile import shutil from nextcode import config, Client from nextcode.client import get_api_key from nextcode.session import ServiceSession from nextcode.exceptions import ( Invali...
37.54375
88
0.636924
1b501017b2fa3c9cc61caddcffc8410618c4aca9
270
py
Python
forex/forex/doctype/sales_order_shipping_parameter/sales_order_shipping_parameter.py
finbyz/forex
46c248424fcf9625ef57f7ab05d356b2bed5abc8
[ "MIT" ]
null
null
null
forex/forex/doctype/sales_order_shipping_parameter/sales_order_shipping_parameter.py
finbyz/forex
46c248424fcf9625ef57f7ab05d356b2bed5abc8
[ "MIT" ]
null
null
null
forex/forex/doctype/sales_order_shipping_parameter/sales_order_shipping_parameter.py
finbyz/forex
46c248424fcf9625ef57f7ab05d356b2bed5abc8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, FinByz and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class SalesOrderShippingParameter(Document): pass
24.545455
49
0.792593
4fd5447857ae6eaf9a6085ea3415264f4572fb96
9,854
py
Python
faculdade2.0/aula 5/a.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
faculdade2.0/aula 5/a.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
faculdade2.0/aula 5/a.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
""" CEUB - Bacharelado em Ciência da Computação (BCC) - Prof. Barbosa Teclas de atalho: ctlr <d>, duplica linha. ctrl <y>, apaga linha. ctrl </>, comenta linha. Monitoria (plantão de dúvidas): https://monitoriaceub.github.io/Monitoria/index.html - Com base nos conceitos de POO, implemente a entidade pessoa ...
63.987013
99
0.598234
92cf7da1de441f5a9b17223fb277886b36e6ad3f
11,085
py
Python
Chapter02/code/utils_joint_angle.py
waltechel/KaggleStudy20220103
75d133c908fff5bcdc3d87dc5d5147934967aa8c
[ "MIT" ]
null
null
null
Chapter02/code/utils_joint_angle.py
waltechel/KaggleStudy20220103
75d133c908fff5bcdc3d87dc5d5147934967aa8c
[ "MIT" ]
null
null
null
Chapter02/code/utils_joint_angle.py
waltechel/KaggleStudy20220103
75d133c908fff5bcdc3d87dc5d5147934967aa8c
[ "MIT" ]
null
null
null
############################################################################### ### Useful function for converting 3D joint to joint angles ### Joint angle is then used for: ### 1) Gesture recognition ### 2) Hand ROM recognition ############################################################################### import c...
41.672932
110
0.541452
d7e991960f2d1d028f309460331adb474727e44a
1,783
py
Python
rooms_manager.py
RomeroRyan/PYTHON-HotelManagementApplication
3603d9b381eedc99960101864b0fe7ad2cf62a58
[ "MIT" ]
null
null
null
rooms_manager.py
RomeroRyan/PYTHON-HotelManagementApplication
3603d9b381eedc99960101864b0fe7ad2cf62a58
[ "MIT" ]
null
null
null
rooms_manager.py
RomeroRyan/PYTHON-HotelManagementApplication
3603d9b381eedc99960101864b0fe7ad2cf62a58
[ "MIT" ]
1
2021-05-08T17:38:13.000Z
2021-05-08T17:38:13.000Z
import json import os.path import datetime from hotel_room import HotelRoom def update_room(index, status, check_in=None, check_out=None): f = open(os.path.dirname(__file__) + '/data/rooms.json', 'r+') rooms = json.load(f) f.seek(0) f.truncate() if check_in is not None and check_out is not None: ...
29.716667
116
0.616377
cb58c30eb263c567d277116b2f8eed0689554ef7
3,778
py
Python
source/elimination.py
tehybel/DSol-decompiler
773e8f137f2489973b250d37354b7c3b20cf8c51
[ "MIT" ]
5
2018-08-13T15:04:12.000Z
2021-12-30T15:35:35.000Z
source/elimination.py
tehybel/DSol-decompiler
773e8f137f2489973b250d37354b7c3b20cf8c51
[ "MIT" ]
null
null
null
source/elimination.py
tehybel/DSol-decompiler
773e8f137f2489973b250d37354b7c3b20cf8c51
[ "MIT" ]
1
2019-03-13T09:34:30.000Z
2019-03-13T09:34:30.000Z
from middleend import Optimization import hlir import expr import dataflow import utils import vmcall class UnusedVariableElimination(Optimization): is_cheap = True def optimize(self, f): for node in f.nodes(): for ins in list(node.get_instructions()): if utils.is_unused(ins): node.remove_instruction(i...
25.527027
85
0.726575
d554f31b63fcc0a63dd8ff01f1b4418a19601bc1
62,934
py
Python
salt/client/ssh/__init__.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
3
2015-08-30T04:23:47.000Z
2018-07-15T00:35:23.000Z
salt/client/ssh/__init__.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
null
null
null
salt/client/ssh/__init__.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
1
2016-10-28T03:58:05.000Z
2016-10-28T03:58:05.000Z
""" Create ssh executor system """ import base64 import binascii import copy import datetime import getpass import hashlib import logging import multiprocessing import os import queue import re import subprocess import sys import tarfile import tempfile import time import uuid import salt.client.ssh.shell import salt...
36.315061
117
0.524836
494a3e7f8c9488497cd9756c4a67e9512cf778b1
9,660
py
Python
models/Box.py
midiskali/rtbHackM9
ba34aa34da8ddd07cbab0ee3f22cfaf345336595
[ "Apache-2.0" ]
1
2016-06-15T16:19:20.000Z
2016-06-15T16:19:20.000Z
models/Box.py
midiskali/rtbHackM9
ba34aa34da8ddd07cbab0ee3f22cfaf345336595
[ "Apache-2.0" ]
null
null
null
models/Box.py
midiskali/rtbHackM9
ba34aa34da8ddd07cbab0ee3f22cfaf345336595
[ "Apache-2.0" ]
1
2021-04-20T15:14:25.000Z
2021-04-20T15:14:25.000Z
# -*- coding: utf-8 -*- ''' Created on Mar 11, 2012 @author: moloch Copyright 2012 Root the Box 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/licen...
34.748201
104
0.597412
caa2ee904320f063146efce061eefb3d78072cb9
3,455
py
Python
halotools/empirical_models/phase_space_models/analytic_models/satellites/nfw/tests/test_nfw_phase_space/test_nfw_phase_space_functions.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
83
2015-01-15T14:54:16.000Z
2021-12-09T11:28:02.000Z
halotools/empirical_models/phase_space_models/analytic_models/satellites/nfw/tests/test_nfw_phase_space/test_nfw_phase_space_functions.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
579
2015-01-14T15:57:37.000Z
2022-01-13T18:58:44.000Z
halotools/empirical_models/phase_space_models/analytic_models/satellites/nfw/tests/test_nfw_phase_space/test_nfw_phase_space_functions.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
70
2015-01-14T15:15:58.000Z
2021-12-22T18:18:31.000Z
""" """ import numpy as np from ...nfw_phase_space import NFWPhaseSpace from ...kernels.unbiased_isotropic_velocity import ( dimensionless_radial_velocity_dispersion as dimless_vrad_disp_kernel) from ........mock_observables import relative_positions_and_velocities __all__ = ['test_mc_consistency1'] fixed_seed ...
34.89899
107
0.735745
28059b1a97f3c7e2796dbb2c534e625f9766001d
10,380
py
Python
cloud/losses/lovasz.py
aleksandrinvictor/drivendata-cloud
f85ac074cd9ace60aa4087d27fa281a931597e55
[ "MIT" ]
null
null
null
cloud/losses/lovasz.py
aleksandrinvictor/drivendata-cloud
f85ac074cd9ace60aa4087d27fa281a931597e55
[ "MIT" ]
null
null
null
cloud/losses/lovasz.py
aleksandrinvictor/drivendata-cloud
f85ac074cd9ace60aa4087d27fa281a931597e55
[ "MIT" ]
null
null
null
""" Lovasz-Softmax and Jaccard hinge loss in PyTorch Maxim Berman 2018 ESAT-PSI KU Leuven (MIT License) """ from __future__ import division, print_function import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from torch.autograd import Variable try: from ...
32.136223
110
0.596146
6c1f206be45449d7b13ed97a389e6167ae7a1ff0
15,956
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationtacacsaction.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationtacacsaction.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationtacacsaction.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
33.521008
270
0.716032
57cba368e621fed17a20133ab59354b1acad7387
98
py
Python
rebelykos.py
Takahiro-Yoko/rebelykos
3b58d11f733b20eee2ddd318068c76ced109cc90
[ "MIT" ]
1
2022-01-31T23:32:21.000Z
2022-01-31T23:32:21.000Z
rebelykos.py
Takahiro-Yoko/rebelykos
3b58d11f733b20eee2ddd318068c76ced109cc90
[ "MIT" ]
null
null
null
rebelykos.py
Takahiro-Yoko/rebelykos
3b58d11f733b20eee2ddd318068c76ced109cc90
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from rebelykos.__main__ import run if __name__ == "__main__": run()
14
34
0.683673
09f399690fd948842bb2f537a466f6e90d3dd4fe
1,374
py
Python
Topic-Modelling/SpellcheckAndCorrection.py
RudrakshTuwani/Twitter-Scripts
6477a4cddf1fdeb3ca6b9a23567446e9c1b03bd6
[ "MIT" ]
1
2017-09-15T02:07:18.000Z
2017-09-15T02:07:18.000Z
Topic-Modelling/SpellcheckAndCorrection.py
RudrakshTuwani/Twitter-Scripts
6477a4cddf1fdeb3ca6b9a23567446e9c1b03bd6
[ "MIT" ]
null
null
null
Topic-Modelling/SpellcheckAndCorrection.py
RudrakshTuwani/Twitter-Scripts
6477a4cddf1fdeb3ca6b9a23567446e9c1b03bd6
[ "MIT" ]
1
2020-05-09T12:50:07.000Z
2020-05-09T12:50:07.000Z
import pandas as pd import pickle # Reads tweets into a df. loc = "E:/Data Science/Safecity/Twitter/Tweets PreProcessed/TweetsTopicModelling.csv" tweets = pd.read_csv(loc) # Import corrected words as well as ignore list. loc = "E:/Data Science/Safecity/Twitter/Pickles/" corrected_words = pickle.load(open(l...
30.533333
110
0.638282
eec704e13439d0fb33c5162dc79d346cde4790bb
129
py
Python
app/__init__.py
TartuNLP/translation-api
b3eefb2daa7ce734078f48e5c4483e8d71adce12
[ "MIT" ]
2
2022-01-04T22:45:09.000Z
2022-01-28T22:33:17.000Z
app/__init__.py
TartuNLP/translation-api
b3eefb2daa7ce734078f48e5c4483e8d71adce12
[ "MIT" ]
null
null
null
app/__init__.py
TartuNLP/translation-api
b3eefb2daa7ce734078f48e5c4483e8d71adce12
[ "MIT" ]
null
null
null
from .config import api_settings, mq_settings, api_config, Workspace from .mq_connector import mq_connector from .app import app
32.25
68
0.837209
01419c6228e8056655b569f223e80b2bea1e7273
874
py
Python
learning_log/urls.py
valcal/learning_log
cdb9e6adf6f50c1a2f424a927ab2ae32f44bbbf3
[ "MIT" ]
null
null
null
learning_log/urls.py
valcal/learning_log
cdb9e6adf6f50c1a2f424a927ab2ae32f44bbbf3
[ "MIT" ]
null
null
null
learning_log/urls.py
valcal/learning_log
cdb9e6adf6f50c1a2f424a927ab2ae32f44bbbf3
[ "MIT" ]
null
null
null
"""learning_log URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
36.416667
78
0.681922
33ddd37dd02854f8d824c0c824982db41c3c17d4
167
py
Python
Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
a = [1, 2, 5, 10, 255, 3] total=0 for i in range(len(a)): total += a[i] print total/len(a) ''' for count in a[0:6]: total += a[count] print count/len(a) '''
12.846154
25
0.538922
660b3a5feb79716b8283c19317087508c4fa3d55
3,090
py
Python
sparkquantum/constants.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
2
2020-04-07T18:25:03.000Z
2020-04-07T18:25:21.000Z
sparkquantum/constants.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
sparkquantum/constants.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
__all__ = [ 'DumpingModeUniqueFile', 'DumpingModePartFiles', 'MatrixCoordinateDefault', 'MatrixCoordinateMultiplier', 'MatrixCoordinateMultiplicand', 'MatrixCoordinateIndexed', 'StateRepresentationFormatCoinPosition', 'StateRepresentationFormatPositionCoin', 'StateDumpingFormatIndex'...
41.756757
149
0.771521
4d073e341316d2d9c3857f9950f8bdea276ba932
62,848
py
Python
cctbx/maptbx/__init__.py
kirienko/cctbx_project
98e933193fb271c7a831a4a1450f1b69929c5863
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/__init__.py
kirienko/cctbx_project
98e933193fb271c7a831a4a1450f1b69929c5863
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/__init__.py
kirienko/cctbx_project
98e933193fb271c7a831a4a1450f1b69929c5863
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import cctbx.sgtbx import boost.python from six.moves import range from six.moves import zip ext = boost.python.import_ext("cctbx_maptbx_ext") from cctbx_maptbx_ext import * from cctbx import crystal from cctbx import sgtbx from cctbx.array_family impor...
35.13024
89
0.667404
f7b779c64d47ed8742f997f3976ee69056bd2145
3,242
py
Python
TitanicWebApp/TitanicWebApp/settings.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
TitanicWebApp/TitanicWebApp/settings.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
TitanicWebApp/TitanicWebApp/settings.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
""" Django settings for TitanicWebApp project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
25.730159
91
0.692782
cea07d06ff02b22560f63580de94e6840524d61a
76
py
Python
runserver.py
isabella232/projectmonitor
e5676e0408d81584b51d14423c149c6280041674
[ "MIT" ]
15
2015-01-16T01:17:33.000Z
2018-06-02T05:48:28.000Z
runserver.py
codeforamerica/projectmonitor
e5676e0408d81584b51d14423c149c6280041674
[ "MIT" ]
11
2015-01-12T23:48:27.000Z
2015-04-21T18:28:29.000Z
runserver.py
isabella232/projectmonitor
e5676e0408d81584b51d14423c149c6280041674
[ "MIT" ]
10
2015-02-20T18:50:07.000Z
2021-04-16T10:19:56.000Z
from projmon import app if __name__ == '__main__': app.run(debug=True)
15.2
26
0.697368
5f4505cef569481966fa32b0340824c9d953ef82
2,359
py
Python
manage.py
luviiv/Smaug
d26d837bb97ef583e05c43d16aed265356b7cf74
[ "Apache-2.0" ]
null
null
null
manage.py
luviiv/Smaug
d26d837bb97ef583e05c43d16aed265356b7cf74
[ "Apache-2.0" ]
null
null
null
manage.py
luviiv/Smaug
d26d837bb97ef583e05c43d16aed265356b7cf74
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 """ manager.py ~~~~~~~~~~~ manage the app from command line :copyright: (c) 2015 by Lu Tianchao. :license: Apache, see LICENSE for more details. """ from flask.ext.script import Manager, prompt, prompt_pass, \ prompt_bool, prompt_choices from Smaug import create_app from Smaug...
26.505618
78
0.582026
839e979ab7432a9cabb3c9a033a73286d9182f14
5,213
py
Python
src/ralph/util/reports.py
kula1922/ralph
08642714cc894025ba4792eeae63037a46f045b3
[ "Apache-2.0" ]
1
2018-09-01T14:14:08.000Z
2018-09-01T14:14:08.000Z
src/ralph/util/reports.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T10:03:45.000Z
2019-08-14T10:03:45.000Z
src/ralph/util/reports.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T09:59:42.000Z
2019-08-14T09:59:42.000Z
# -*- coding: utf-8 -*- """Utilities for asynchronous reports.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import django_rq import importlib import json import rq import copy from django.conf i...
33.632258
77
0.594859
d67c0e9faa1d5d226f1ddc45b819c75c2f4158d7
67
py
Python
url.py
behara/AquaRepo
cfd4316272c09d0c95621b538c27be608be9a940
[ "MIT" ]
null
null
null
url.py
behara/AquaRepo
cfd4316272c09d0c95621b538c27be608be9a940
[ "MIT" ]
null
null
null
url.py
behara/AquaRepo
cfd4316272c09d0c95621b538c27be608be9a940
[ "MIT" ]
1
2020-03-18T16:01:42.000Z
2020-03-18T16:01:42.000Z
'''This repo is for tastypie queries''' print("Hello tastypie !!!")
33.5
39
0.686567
c512d9b2e6307113307ec3d2b73b41804cb72f9b
3,826
py
Python
pricing.py
shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing
ab919dd12318721aebf02298edeca917400b56b9
[ "Unlicense" ]
1
2020-10-01T11:59:46.000Z
2020-10-01T11:59:46.000Z
pricing.py
shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing
ab919dd12318721aebf02298edeca917400b56b9
[ "Unlicense" ]
2
2021-05-06T05:51:12.000Z
2021-06-15T07:12:55.000Z
pricing.py
shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing
ab919dd12318721aebf02298edeca917400b56b9
[ "Unlicense" ]
2
2020-10-22T14:34:45.000Z
2021-12-22T00:51:28.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time : 2020/9/25 21:51 # Author: Zheng Shaoxiang # @Email : zhengsx95@163.com # Description: from gurobimodel import * from labelSetting import LabelSetting class Pricing: def __init__(self, s, use_model=False): self.data = None self.s =...
34.160714
120
0.512546
6377bfe9311be2bff024d322c4aa7c01a443cf87
2,261
py
Python
HW8/EX2/fairpy/cake/fe_cake_division_connected_pieces_demo.py
ShmuelLa/research-algorithms
43cab0e9c13ce9ddb9646f7539f1a865e86f9841
[ "MIT" ]
null
null
null
HW8/EX2/fairpy/cake/fe_cake_division_connected_pieces_demo.py
ShmuelLa/research-algorithms
43cab0e9c13ce9ddb9646f7539f1a865e86f9841
[ "MIT" ]
null
null
null
HW8/EX2/fairpy/cake/fe_cake_division_connected_pieces_demo.py
ShmuelLa/research-algorithms
43cab0e9c13ce9ddb9646f7539f1a865e86f9841
[ "MIT" ]
null
null
null
#!python3 """ Demonstration of the Fair and Efficient Cake Division with Connected Pieces protocol. Programmer: Ori Zitzer Since: 2020-1 """ from fairpy.agents import PiecewiseConstantAgent from fairpy.cake.fe_cake_division_connected_pieces import ALG, efCheck from fairpy.cake import fe_cake_division_connected_piec...
34.257576
86
0.708094
ad8213cad0a323ad96d66a2e28f42d3a025e5cad
1,456
py
Python
src/ui/ColorFade.py
Taffer/skelly
e29725d198306a57610c52774093e5b04bc14608
[ "MIT" ]
null
null
null
src/ui/ColorFade.py
Taffer/skelly
e29725d198306a57610c52774093e5b04bc14608
[ "MIT" ]
6
2021-04-15T11:59:09.000Z
2021-04-18T13:06:50.000Z
src/ui/ColorFade.py
Taffer/skelly
e29725d198306a57610c52774093e5b04bc14608
[ "MIT" ]
null
null
null
''' Skelly colour fade the screen. By Chris Herborth (https://github.com/Taffer) MIT license, see LICENSE.md for details. ''' import pygame class ColorFade: def __init__(self, rgba1: pygame.Color, rgba2: pygame.Color, duration: float) -> None: self.rgba = tuple(rgba1) self.start_rgba = rgba1 ...
28
95
0.603709
1ed16b768eec7af1d0cd174b83bb548351b23381
9,180
bzl
Python
internal/node/npm_package_bin.bzl
ankitects/rules_nodejs
9a50cb694e39fba8874f991675ae7ca585108df5
[ "Apache-2.0" ]
null
null
null
internal/node/npm_package_bin.bzl
ankitects/rules_nodejs
9a50cb694e39fba8874f991675ae7ca585108df5
[ "Apache-2.0" ]
6
2021-09-02T20:32:14.000Z
2022-03-02T10:59:15.000Z
internal/node/npm_package_bin.bzl
ankitects/rules_nodejs
9a50cb694e39fba8874f991675ae7ca585108df5
[ "Apache-2.0" ]
null
null
null
"A generic rule to run a tool that appears in node_modules/.bin" load("//:providers.bzl", "JSModuleInfo", "NpmPackageInfo", "node_modules_aspect", "run_node") load("//internal/common:expand_variables.bzl", "expand_variables") load("//internal/linker:link_node_modules.bzl", "module_mappings_aspect") # Note: this API i...
49.621622
161
0.682898
053ce798d7d13a7357423650fc708d0b09876518
2,869
py
Python
playground/detection/coco/yolof/yolof.X101.64x4d.C5.1x/config.py
megvii-model/YOLOF
6189487b80601dfeda89302c22abac060f977785
[ "MIT" ]
758
2021-03-11T08:14:26.000Z
2022-03-31T07:24:13.000Z
playground/detection/coco/yolof/yolof.X101.64x4d.C5.1x/config.py
AsrarH/YOLOF
6189487b80601dfeda89302c22abac060f977785
[ "MIT" ]
44
2021-03-18T07:57:04.000Z
2022-03-10T06:33:33.000Z
playground/detection/coco/yolof/yolof.X101.64x4d.C5.1x/config.py
AsrarH/YOLOF
6189487b80601dfeda89302c22abac060f977785
[ "MIT" ]
110
2021-03-18T01:59:31.000Z
2022-03-18T21:26:56.000Z
from cvpods.configs.base_detection_config import BaseDetectionConfig _config_dict = dict( MODEL=dict( # Backbone NAME: "build_resnet_backbone" WEIGHTS="detectron2://ImageNetPretrained/FBResNeXt/X-101-64x4d.pkl", RESNETS=dict( DEPTH=101, NUM_GROUPS=64, WID...
28.979798
76
0.497037