hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e468b2b5e8f04b80c414c4137b991f429ffae653
2,508
py
Python
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
"""A logging handler class which produces coloured logs.""" import logging import click class ColorHandler(logging.StreamHandler): """A color log handler. You can use this handler by incorporating the example below into your logging configuration: ``conf/project/logging.yml``: :: for...
26.125
74
0.548644
2,414
0.96252
0
0
0
0
0
0
1,485
0.592105
e46b6c69ae3a4c3f1fee528d4d729291bff4cf8d
1,468
py
Python
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore import numpy as np from matplotlib.figure import Figure import time import matplotlib matplotlib.use("Qt5Agg") # 声明使用QT5 from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas class QtFigure(FigureCanvas): def __init__(self, width=5, he...
32.622222
83
0.636921
1,368
0.838235
0
0
95
0.058211
0
0
380
0.232843
e46c1072625294f177cc250fe85584da3ad9a985
124,267
py
Python
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
3
2020-07-07T01:38:59.000Z
2020-11-24T21:46:58.000Z
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
26
2020-05-28T07:18:54.000Z
2021-11-30T18:36:10.000Z
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: Tom Dwelly # @Date: 2020-03-03 # @Filename: bhm_spiders_agn.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) # derived from guide.py # ### flake8: noqa # isort: skip_file import peewee from peewee import JOIN from peewee import fn...
41.325906
388
0.500036
116,562
0.937996
0
0
0
0
0
0
36,243
0.291654
e47016cbd72e7098c0941f4e47d79ce1b7c698d1
776
py
Python
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
7
2021-02-06T21:06:23.000Z
2022-01-31T09:33:26.000Z
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
null
null
null
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
5
2021-05-07T15:35:25.000Z
2022-03-21T09:11:24.000Z
# Generated by Django 3.1.6 on 2021-04-22 00:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('emails', '0037_remove_emailstats_connected_count'), ] operations = [ migrations.AddField( model_name='emailstats', n...
28.740741
117
0.619845
683
0.880155
0
0
0
0
0
0
252
0.324742
e4705f3acb58336e0e7ad1a046d3910433815d04
1,488
py
Python
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
""" Data terrain model (DTM). Examples:: >>> from worldmap import DTM >>> dtm = DTM() >>> print(dtm["NOR"]) Location('Norway') """ from typing import Dict, List, Tuple, Set, Optional from bokeh.models import Model from bokeh.models import ColumnDataSource, Patches, LabelSet import logging import num...
25.220339
74
0.638441
1,008
0.677419
0
0
0
0
0
0
334
0.224462
e4710ca29b9a5a6a2747143e02042c64942aa376
1,865
py
Python
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
""" """ from Crypto.PublicKey import RSA from Crypto.Hash import SHA256 from Crypto.Signature import PKCS1_v1_5 from base58 import b58encode, b58decode # ================= cryptography helpers ====================================== def hash(data): """Hash some data """ # Hash the stuff we need to hash ...
26.267606
92
0.642895
0
0
0
0
0
0
0
0
788
0.42252
e472ad25bd9133e0e1fe623219e0826f24f2f7ef
365
py
Python
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
8
2018-03-21T12:26:44.000Z
2019-10-05T08:46:20.000Z
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def mandelbrot(threshold, density): atlas = np.empty((density, density)) with open('set', 'r') as f: for line in f.readlines(): i, j, val = line.split(",") atlas[int(i), int(j)] = val plt.imshow(atlas.T, interpolation="ne...
22.8125
48
0.60274
0
0
0
0
0
0
0
0
20
0.054795
e472f3485c0e5680d2198a1ae932c5d7712b5057
19,303
py
Python
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-04-03T20:45:26.000Z
2022-02-07T19:53:42.000Z
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
3
2016-11-15T10:41:43.000Z
2020-03-16T07:49:03.000Z
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-07-04T11:37:12.000Z
2022-02-07T19:53:43.000Z
import unittest import copy import os import tempfile from config_tool.utils import * class TestConfigurationTransformation(unittest.TestCase): @classmethod def setUpClass(cls): base_path = os.path.dirname(os.path.realpath(__file__)) file_path = os.path.join(base_path, 'files') def f...
38.528942
80
0.600425
19,165
0.992851
0
0
850
0.044035
0
0
8,277
0.428793
e47311462a03c6a7eb9b40addcc16befdf99f631
2,133
py
Python
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v2.model_utils import ( ModelNormal, cached_property, ...
30.042254
108
0.61369
1,794
0.841069
0
0
565
0.264885
0
0
1,254
0.587904
e4751dd89498b1da7109ee5f07994f5fbd04447a
95
py
Python
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
2,081
2017-03-06T14:45:21.000Z
2022-03-31T13:29:34.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
248
2017-03-06T12:13:37.000Z
2022-03-15T11:21:27.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
111
2017-03-06T20:48:04.000Z
2022-03-17T09:49:32.000Z
import logging logging.Filter.filter logging.getLogger().propagate logging.StreamHandler.emit
15.833333
29
0.852632
0
0
0
0
0
0
0
0
0
0
e479315b2fec6b1b30374526a8f3ec4a57556364
536
py
Python
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
176
2017-01-30T16:21:48.000Z
2022-02-10T05:32:57.000Z
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
49
2017-01-21T20:27:03.000Z
2022-01-16T02:57:51.000Z
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
21
2017-01-26T06:08:54.000Z
2022-01-04T19:53:25.000Z
import platform import pytest @pytest.mark.skipif( platform.system() == "Windows", reason="cannot test this on windows" ) def test_set_key(set_key, pb_api, mocker): import keyring import getpass import six prev_token = six.text_type(keyring.get_password("pushbullet", "cli")) try: moc...
25.52381
73
0.673507
0
0
0
0
502
0.936567
0
0
108
0.201493
e4797fdc0550e8c83ce7e94b28483dfdbf77d5d3
344
py
Python
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
def cargar_fecha(): dd=int(input("Ingrese numero de dia:")) mm=int(input("Ingrese numero de mes:")) aa=int(input("Ingrese numero de año:")) tupla = (dd,mm,aa) return tupla def imprimir_fecha(fecha): print(fecha[0],fecha[1],fecha[2],sep="/") # bloque principal fecha=cargar_fecha(...
22.933333
46
0.639535
0
0
0
0
0
0
0
0
95
0.275362
e47c17dddcd00889d223b3d8fce4a9d9c3d285a3
356
py
Python
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
# %% l = [38,32,49,15,806,806] sum(l) # %% len(l) # %% sum(l)//len(l) # %% l.sort() # %% l # %% # %% l.most_common(1) # %% ''' 求众数:出现频率最高的数据 ''' from collections import Counter l = ['38','32','49','15','806','806'] c = Counter(l) print(c.most_common()[0][0]) print(c.most_common(1)) print(c.most_common(2)) # %% c.m...
11.483871
37
0.530899
0
0
0
0
0
0
0
0
121
0.316754
e4813380bf2daa72d111c3321e1a0890661d1b92
5,475
py
Python
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
""" Network class is in charge of: 1. Storing M - User Cache Size, N - Number of Files, K - Number of Users 2. Storing User instances, Server instance, and attacker instance """ import numpy as np from scipy import special import itertools from Server import Server from User import User from tabulate import tabulate ...
36.993243
140
0.592146
3,898
0.711963
352
0.064292
0
0
0
0
1,072
0.195799
e4832a86e7db8f21257aa59834d215a8144ccb1f
23
py
Python
protonets/data/__init__.py
sripathisridhar/prototypical-networks
02a1379dceea896e23ecf21384d4a6ee2393f38c
[ "MIT" ]
889
2017-11-12T22:04:25.000Z
2022-03-31T09:42:13.000Z
protonets/data/__init__.py
Harzva/prototypical-networks
c9bb4d258267c11cb6e23f0a19242d24ca98ad8a
[ "MIT" ]
24
2017-12-06T19:28:23.000Z
2021-11-27T11:35:53.000Z
protonets/data/__init__.py
Harzva/prototypical-networks
c9bb4d258267c11cb6e23f0a19242d24ca98ad8a
[ "MIT" ]
240
2017-11-12T22:04:28.000Z
2022-03-26T09:25:42.000Z
from . import omniglot
11.5
22
0.782609
0
0
0
0
0
0
0
0
0
0
e483e0a6252d9a8ff4f77f42bb3708e55acf3498
330
py
Python
flask/part3_templates/ex3-app/students2.py
macloo/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
42
2018-03-25T22:41:57.000Z
2022-01-08T21:23:02.000Z
flask/part3_templates/ex3-app/students2.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
null
null
null
flask/part3_templates/ex3-app/students2.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
17
2018-03-20T00:56:57.000Z
2022-01-12T06:36:18.000Z
# two templates are used in this app from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/student/<idnum>') def student(idnum): return render_template('student.html', id=idnum) if __name__ == '__main__': app.run(de...
20.625
52
0.70303
0
0
0
0
172
0.521212
0
0
94
0.284848
e4884423f1f3c28f1f01d03c9e676127547b57c0
250
py
Python
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
19
2016-02-21T13:27:43.000Z
2020-02-19T17:22:38.000Z
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
9
2016-04-15T08:43:39.000Z
2022-01-06T10:43:08.000Z
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
6
2016-04-11T07:32:41.000Z
2019-09-28T10:59:51.000Z
import asyncio class MyClass: def my_func(self): """ Normal function """ @asyncio.coroutine def my_coro(self): """ This is my coroutine """ @asyncio.coroutine def coro(param): """ Module level async function """
14.705882
39
0.608
154
0.616
0
0
153
0.612
0
0
86
0.344
e488e12d7b940dac3d9db3e9a5b2cb31258d0310
25,266
py
Python
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
null
null
null
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
141
2021-03-03T01:38:10.000Z
2022-01-16T15:42:02.000Z
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
null
null
null
import json from io import BytesIO from app.ext.api.exceptions import ( ChefNotFound, InvalidToken, MaximumImageCapacityError, OperationNotAllowed, RecipeWithoutIngredient, RecipeWithoutPreparationMode, ) from app.ext.api.services import token_services def test_edit_recipe(client, admin_user)...
28.48478
87
0.566097
0
0
0
0
0
0
0
0
8,469
0.335008
e4892ccb409c7b541cbd948a9e9898c388a282c5
521
py
Python
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-28 09:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0017_auto_20161128_0242'), ] operations = [ migrations.AlterField...
24.809524
122
0.610365
363
0.696737
0
0
0
0
0
0
161
0.309021
e48a824fae829e3008efd9a9fbcb0f03d3adc45f
90
py
Python
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path sys.path.insert(0, 'exactdelaypathfinder')
15
42
0.8
0
0
0
0
0
0
0
0
22
0.244444
e48ba9fc67c09776260edc71cd67600e98eb63a9
1,885
py
Python
2017/day07/code.py
Fadi88/AoC
8b24f2f2cc7b4e1c63758e81e63d8670a261cc7c
[ "Unlicense" ]
12
2019-12-15T21:53:19.000Z
2021-12-24T17:03:41.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
1
2021-12-15T20:40:51.000Z
2021-12-15T22:19:48.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
5
2020-12-11T06:00:24.000Z
2021-12-20T21:37:46.000Z
import time from collections import defaultdict def profiler(method): def wrapper_method(*arg, **kw): t = time.time() method(*arg, **kw) print('Method ' + method.__name__ + ' took : ' + "{:2.5f}".format(time.time()-t) + ' sec') return wrapper_method @profiler def part1(...
22.176471
83
0.490716
0
0
0
0
1,295
0.687003
0
0
90
0.047745
e48e53ba04ff99bdd6227e182235f811ae1dc4ee
403
py
Python
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
from microbit import * import struct from time import sleep SENSORS = 2 def spi_read(sensor): pin16.write_digital(0) # Chip select ibuffer = struct.pack('<B', sensor) spi.write(ibuffer) result = spi.read(1) pin16.write_digital(1) # Chip select off return result spi.init(baudrate=100000) whi...
21.210526
45
0.652605
0
0
0
0
0
0
0
0
34
0.084367
e48f98c85bda6baa0cc86d71b689b55e8122a390
16,653
py
Python
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
1
2021-04-19T10:20:43.000Z
2021-04-19T10:20:43.000Z
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import typing as t import json from dataclasses import dataclass, field from mypy_boto3_dynamodb.service_resource import Table from boto3.dynamodb.conditions import Attr, Key """ Data transfer object classes to be used with dynamod...
32.273256
110
0.623311
16,098
0.966673
0
0
15,428
0.92644
0
0
4,336
0.260374
e48fad25c05c483e3b144a00ff76a128d96f4a18
89
py
Python
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
from .bucket_tensor_copy import BucketizedTensorCopy __all__ = ['BucketizedTensorCopy']
22.25
52
0.842697
0
0
0
0
0
0
0
0
22
0.247191
e49334330d41dc2dca73dcd98740a04934ce3d79
83
py
Python
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
null
null
null
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
8
2021-03-19T13:44:46.000Z
2022-03-12T00:55:03.000Z
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
1
2021-02-13T00:16:36.000Z
2021-02-13T00:16:36.000Z
from django.apps import AppConfig class AppyConfig(AppConfig): name = 'appy'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
e494747ad6589e1234241f26ac62dacfe6cecd8c
998
py
Python
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
1
2020-01-27T12:03:47.000Z
2020-01-27T12:03:47.000Z
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
import numpy as np import pytest from ddtruss import Truss, DataDrivenSolver points = np.array([[0, 0], [1, 0], [0.5, 0.5], [2, 1]]) lines = np.array([[0, 2], [1, 2], [1, 3], [2, 3]], dtype=int) truss = Truss(points, lines) E = 1.962e11 A = [2e-4, 2e-4, 1e-4, 1e-4] U_dict = {0: [0, 0], 1: [0, 0]} F_dict = {3: [0, -...
24.95
77
0.621242
0
0
0
0
450
0.450902
0
0
8
0.008016
e494dbf6ede35cd65a3c40c381a319f33cf3e78d
2,563
py
Python
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
from datetime import datetime from app import db class City(db.Model): __tablename__ = 'Cities' __table_args__ = {'sqlite_autoincrement': True} id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), index=True) class Venue(db.Model): __tablename__ = 'Venues' __table_arg...
37.144928
71
0.684354
2,497
0.974249
0
0
0
0
0
0
448
0.174795
e49516ca8ad700f85017d9325736d77d5ccd8a3d
2,326
py
Python
PTO-yelp/Modules/attention_classifier.py
LegendTianjin/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
50
2019-06-06T05:30:32.000Z
2021-11-18T07:24:36.000Z
PTO-yelp/Modules/attention_classifier.py
lancopku/Point-Then-Operate
1c04ec326b52fc65f97f5610a6f16f6e938d583e
[ "Apache-2.0" ]
2
2019-08-30T09:49:26.000Z
2020-01-17T04:20:53.000Z
PTO-yelp/Modules/attention_classifier.py
ChenWu98/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
7
2019-06-17T06:20:47.000Z
2020-10-26T03:19:44.000Z
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from utils.utils import gpu_wrapper from Modules.subModules.attention import AttentionUnit from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_pa...
41.535714
136
0.564488
1,979
0.850817
0
0
0
0
0
0
376
0.161651
e4954716a9c58078b2bd1d9c30cda00cbdaf306f
122
py
Python
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
def continueLearning(losses): improving = losses[0] < losses[1] or losses[1] < losses[2] return improving
30.5
66
0.647541
0
0
0
0
0
0
0
0
0
0
e4954d56f09841ccf54e7784967df8b418345b0e
569
py
Python
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
49
2016-03-07T06:42:40.000Z
2021-03-06T02:43:02.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
16
2016-03-08T07:20:52.000Z
2017-04-21T18:15:12.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
9
2016-03-29T22:08:52.000Z
2021-06-16T16:29:30.000Z
""" `minion-ci` is a minimalist, decentralized, flexible Continuous Integration Server for hackers. This module contains the parser to parse the `minion.yml` file. :copyright: (c) by Timo Furrer :license: MIT, see LICENSE for details """ import yaml from .errors import MinionError def parse(path):...
24.73913
99
0.681898
0
0
0
0
0
0
0
0
339
0.595782
e4966893077ea1b5b172e99b11516e9d34d31ec5
585
py
Python
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
class Solution: def peakIndexInMountainArray(self, A: List[int]) -> int: if not A: return None #前向差分 for k in range(1, len(A)-1): if A[k-1]<A[k] and A[k]>A[k+1]: return k return None #最大值 return A.index(max(A)) ...
20.892857
60
0.362393
604
0.995058
0
0
0
0
0
0
36
0.059308
e49a3917364c39b81a8dd470087dc69990edf5b7
1,431
py
Python
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
1
2020-08-18T01:55:14.000Z
2020-08-18T01:55:14.000Z
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
null
null
null
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pymongo import MongoClient from finace import settings class SpiderCity(object): """获取所有城市列表""" def __init__(self, ip=settings.MONGODB_HOST, port=settings.MONGODB_PORT, db_name=settings.MONGO_DATA_BASE, user=settings.MONGO_USER, password=settings.MONGO_PWD): ...
26.018182
110
0.583508
1,353
0.876863
0
0
0
0
0
0
428
0.277382
e49b044e4f3bdfef09e6426d0ff3c5f755aa63ae
1,464
py
Python
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
1
2021-02-08T12:53:43.000Z
2021-02-08T12:53:43.000Z
import structlog import logging import sys import os from structlog.processors import JSONRenderer from structlog.stdlib import filter_by_level from structlog.stdlib import add_log_level_number from .datadog import tracer_injection def rename_message_key(_, __, event_dict): event_dict["message"] = event_dict["e...
24.4
57
0.705601
0
0
0
0
0
0
0
0
88
0.060109
e49cb572bd1c712b03397fca3826c3ed98801ce6
990
py
Python
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
""" templator.py reads in an excel file and a template and outputs a file for each row in the excel file, by substituting the template variables with the values in the columns. This technique uses pandas to read the excel file into a DataFrame and the python format operator ``%``` to apply the values. """ import sys ...
34.137931
104
0.706061
0
0
0
0
0
0
0
0
477
0.481818
e4a25083351a643d4c8f2b90bb9ef5552f4ba55d
483
py
Python
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
3
2020-02-19T08:02:04.000Z
2021-06-08T13:27:51.000Z
import unittest from test_base import TestBaseImporter from test_child import TestChildImporter if __name__ == '__main__': test_loader = unittest.TestLoader() test_classes_to_run = [TestBaseImporter, TestChildImporter] suites_list = [] for test_class in test_classes_to_run: suite = test_loader...
30.1875
63
0.766046
0
0
0
0
0
0
0
0
10
0.020704
e4a318b6cae44face6ae5927fa38829adbecfa61
1,015
py
Python
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
# import tensorflow as tf # print(tf.__version__) # # # with tf.name_scope('scalar_set_one') as scope: # tf_constant_one = tf.constant(10, name="ten") # tf_constant_two = tf.constant(20, name="twenty") # scalar_sum_one = tf.add(tf_constant_one, tf_constant_two, name="scalar_ten_plus_twenty") # # # # with tf...
27.432432
100
0.719212
0
0
0
0
0
0
0
0
832
0.819704
e4a3bd3abdfaed582c987ca4af954c061d659067
24,952
py
Python
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
2
2021-07-02T19:49:24.000Z
2021-07-08T02:59:25.000Z
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
from objects.user.User import User from objects.interface.dbconn import DB from objects.user.Currency import get_currency_symbol from objects.threads.UploadThread import UploadThread import utils.globals as _globals from utils.print import print_message, print_error from utils.enums import Months, SettingsSelection, is...
42.726027
142
0.631412
14,791
0.592778
0
0
0
0
0
0
9,555
0.382935
e4a69e3428e588c7d00739ddb17751edb51f6451
1,717
py
Python
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import base64 from functools import wraps import pyaes from flask import request from werkzeug.utils import redirect from website.domain.UserVO import UserVO class CookieHelper(object): def init_app(self, app): self.app = app self.app.cookie_helper = self def SetCook...
28.616667
90
0.594059
1,569
0.894017
0
0
204
0.116239
0
0
153
0.087179
e4a6e1bb797c7875ed388c77bf15d0c26b3189cb
3,652
py
Python
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
4
2016-08-03T18:20:59.000Z
2020-05-24T04:38:47.000Z
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
null
null
null
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
2
2017-10-23T08:23:36.000Z
2020-05-24T04:38:57.000Z
#!/usr/bin/env python """ export_resized_ios_images Gimp plugin to export image to icon files usable on iOS. Author: ------- Tobias Blom, Techne Development AB <tobias.blom@techne-dev.se> Installation: ------------- Under Mac OS X, copy this file to ~/Library/Application Support/GIMP/x.x/plug-ins and make it exec...
33.504587
85
0.659639
0
0
0
0
0
0
0
0
2,563
0.701807
e4a86bcd74faf3a16d79362c4832a1d23917c50f
3,696
py
Python
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
null
null
null
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
10
2020-03-15T20:17:04.000Z
2020-06-05T01:58:35.000Z
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
37
2020-03-15T17:30:40.000Z
2020-04-11T20:16:28.000Z
from timeit import default_timer as timer import random def insertion_sort(list_to_sort): for step in range(1, len(list_to_sort)): key = list_to_sort[step] j = step - 1 while j >= 0 and list_to_sort[j] > key: list_to_sort[j + 1] = list_to_sort[j] j -= 1 list...
33.297297
103
0.619048
0
0
0
0
0
0
0
0
133
0.035985
e4a93421928eb84ea60e2492daf9f320c6c9d564
8,417
py
Python
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
19
2020-01-12T23:57:22.000Z
2022-03-30T16:35:17.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
59
2020-01-13T00:45:27.000Z
2022-02-20T04:10:05.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
7
2020-01-21T21:12:03.000Z
2021-10-24T01:15:50.000Z
import datetime from django.utils.functional import cached_property from django.utils.safestring import mark_safe from office.offices import Office, OfficeSection from psalter.utils import get_psalms class Compline(Office): name = "Compline" office = "compline" def __init__(self, *args, **kwargs): ...
43.386598
345
0.640489
8,186
0.972094
0
0
2,482
0.294739
0
0
3,674
0.43629
e4a98810c99783995caf35d9ff70ccf375552008
1,735
py
Python
src/tide_constituents/water_level_prediction.py
slawler/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T07:51:44.000Z
2020-03-13T07:51:44.000Z
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
null
null
null
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T14:44:57.000Z
2020-03-13T14:44:57.000Z
import tide_constituents as tc from py_noaa import coops import pandas as pd import numpy as np import tappy start = '20180201' end = '20180228' interval = 1 start = pd.to_datetime(start) end = pd.to_datetime(end) d = start w, t, p, r = [], [], [], [] while d < end: start_ = d end_ = start_ + pd.DateOffs...
30.438596
93
0.663977
0
0
0
0
0
0
0
0
182
0.104899
e4ab8e400d3a8428f396d10f517cf745bdb624df
24,862
py
Python
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
48.558594
238
0.662376
24,386
0.980854
0
0
21,722
0.873703
0
0
13,577
0.546094
e4ad4d1b1a19faa8dce0b003b788008a58802470
10,457
py
Python
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
5
2021-11-26T10:05:03.000Z
2022-03-17T11:45:46.000Z
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
null
null
null
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
1
2022-01-09T02:17:19.000Z
2022-01-09T02:17:19.000Z
# -*- coding: utf-8 -*- """「hw10_adversarial_attack.ipynb」的副本 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1yPa2ushzqw8FNobfonL79PHzudn0vjrN # **Homework 10 - Adversarial Attack** Slides: https://reurl.cc/v5kXkk Videos: TA: ntu-ml-2021spring-ta@g...
38.025455
286
0.67505
908
0.086451
0
0
0
0
0
0
5,432
0.517186
e4ae21080507e35b553b7b372118c5c586495e00
7,867
py
Python
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse, os, sys, pickle import numpy as np, pathos.multiprocessing as mp, torch import gym_util.common_util as cou, polnet as pn, util_bwopt as u from collections import defaultdict from poleval_pytorch import get_rpi_s, get_Ppi_ss, get_ppisteady_s, get_Qsa def main(): arg = parse_a...
45.473988
109
0.645862
0
0
0
0
0
0
0
0
1,614
0.205161
e4b424d5ad2b323394201895d8483eb6857e159f
3,158
py
Python
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class StaticSpring(object): __slots__ = ['_tab'] @classmethod def GetRootAsStaticSpring(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, buf, offset)...
38.048193
129
0.679227
2,278
0.721343
0
0
221
0.069981
0
0
207
0.065548
e4b481ea04167900e771c376b8996b0f7e02b22f
221
py
Python
models/locobuyticketresponse.py
jujinesy/Empier_PythonKakaoBot
80d2951955002b1a0b5d77b5c2830bc8def63ea3
[ "MIT" ]
3
2017-03-30T15:20:18.000Z
2018-01-04T12:46:05.000Z
models/locobuyticketresponse.py
skdltmxn/kakaobot
e738b4a8d994fc4125bbd471bd48378a11a8d371
[ "MIT" ]
1
2020-08-06T08:13:22.000Z
2020-08-06T08:13:22.000Z
models/locobuyticketresponse.py
skdltmxn/kakaobot
e738b4a8d994fc4125bbd471bd48378a11a8d371
[ "MIT" ]
5
2020-08-06T08:18:02.000Z
2021-02-28T03:59:45.000Z
# -*- coding: utf-8 -*- from locoresponse import LocoResponse class LocoBuyTicketResponse(LocoResponse): def host(self): return self._data["host"] def port(self): return self._data["port"]
18.416667
42
0.642534
155
0.701357
0
0
0
0
0
0
35
0.158371
e4b4e1f9c8eb01d9ce9d5ca44f6c9f1bce4a4c9a
91
py
Python
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
2
2022-03-08T20:50:08.000Z
2022-03-08T20:50:13.000Z
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
null
null
null
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
2
2021-03-10T18:43:53.000Z
2021-12-18T13:31:22.000Z
RESOURCE_TYPES = ['lumber', 'clay', 'iron', 'crop'] LUMBER = 0 CLAY = 1 IRON = 2 CROP = 3
13
51
0.593407
0
0
0
0
0
0
0
0
26
0.285714
e4b5033ef04e9a7be53412dd0c2573434a49130e
4,716
py
Python
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
"""Check the syntax and execute Pikachu commands. Methods: run -- The main context for the pikachu vm. """ from pikapy.utils import pika_error, pika_print from pikapy.reader import PikaReader from pikapy.stack import PikaStack def run(file_name, args, debug): """ Run a specified Pikachu file in a virtual en...
37.133858
116
0.496395
0
0
0
0
0
0
0
0
828
0.175573
e4b53b56c59f025bc7d30fa6a90cb388b81c2484
1,865
py
Python
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-04T21:18:31.000Z
2020-02-04T21:18:31.000Z
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
12
2020-01-01T11:46:33.000Z
2022-03-12T00:10:01.000Z
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-18T11:12:48.000Z
2020-02-18T11:12:48.000Z
from rest_framework import status from rest_framework.generics import ListAPIView, RetrieveAPIView, CreateAPIView, UpdateAPIView from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.viewsets import GenericViewSet from _helpers.permissions imp...
40.543478
95
0.790885
1,284
0.688472
0
0
0
0
0
0
6
0.003217
e4b72c3c2f5a5bbfee4b0bb9f47cf02969cbd82b
31,394
py
Python
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
307
2019-04-03T10:51:41.000Z
2022-03-28T05:35:09.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
27
2019-05-11T08:53:32.000Z
2022-02-07T22:43:21.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
21
2019-08-29T21:50:23.000Z
2022-03-03T05:21:15.000Z
""" Tkinter UI for PlotOptiX raytracer. https://github.com/rnd-team-dev/plotoptix/blob/master/LICENSE.txt Have a look at examples on GitHub: https://github.com/rnd-team-dev/plotoptix. """ import logging import numpy as np import tkinter as tk from PIL import Image, ImageTk from ctypes import byref, c_float, c_uint ...
46.099853
183
0.580334
30,914
0.98471
0
0
0
0
0
0
8,543
0.272122
e4b892cce045d4a84ff88607bc919a58e081ea7c
453
py
Python
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
#!/usr/bin/python # Author: Luisxue <luisxue@gmail.com> # BLOG: https://luisxue.xcodn.com # # Notes: TreesShell for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+ # # Project home page: # http://trees.org.cn # https://github.com/luisxue/TreesShell import socket,sys sk = socket.socket(socket.AF_INET, socket.SO...
22.65
65
0.688742
0
0
0
0
0
0
0
0
256
0.565121
e4ba683b1acdb8fa2966f9142fd6e41d884299cc
4,144
py
Python
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
1
2020-09-30T02:56:29.000Z
2020-09-30T02:56:29.000Z
import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func import os import requests import urllib.parse # API key introduction # API_KEY = os.environ.get('API_KEY', '') finnhub_API_Key = os.environ.get('finnhub_API_Key', '') from...
36.034783
341
0.707288
0
0
0
0
3,175
0.766168
0
0
1,920
0.46332
e4ba6ef688aa37560a69eb7860a151045a256156
1,156
py
Python
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
import json from difflib import get_close_matches data = json.load(open("data.json")) word = input("Enter a word: ") try: def translate(word): word = word.lower() if word in data: return data[word] elif word.title() in data: return data[word.title()] ...
28.195122
85
0.50519
0
0
0
0
0
0
0
0
230
0.198962
e4bd27232f18521dba7be29751865723323f35e8
94
py
Python
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
5
2018-02-08T04:31:52.000Z
2020-05-08T00:59:05.000Z
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
2
2019-03-23T03:14:06.000Z
2019-04-19T07:51:55.000Z
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
4
2019-02-20T04:35:33.000Z
2020-05-07T13:46:27.000Z
#coding: utf8 """ built-in资源采用按需加载策略, 无需在此引入. 如要启用对应的资源, 请在项目的settings文件中配置RUST_RESOURCES """
15.666667
43
0.787234
0
0
0
0
0
0
0
0
162
0.987805
e4be20e88f19e786bc1af90364e0539952a470e3
88
py
Python
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
__version_info__ = (0, 1, 5) __version__ = '.'.join([str(v) for v in __version_info__])
29.333333
58
0.681818
0
0
0
0
0
0
0
0
3
0.034091
e4c0d071d3b7e4c6ad479ab79343874462a2daf0
2,173
py
Python
tests/openwisp2/settings.py
MiHiR151203/django-x509
fed09c9948fb81ab79ab9e541590ce2e398dd81e
[ "BSD-3-Clause" ]
410
2016-07-18T20:07:34.000Z
2022-03-28T11:21:58.000Z
tests/openwisp2/settings.py
devkapilbansal/django-x509
fe67255028a5437ac8e918831e39698c7e6c661a
[ "BSD-3-Clause" ]
120
2016-09-13T10:36:10.000Z
2022-02-24T15:36:42.000Z
tests/openwisp2/settings.py
devkapilbansal/django-x509
fe67255028a5437ac8e918831e39698c7e6c661a
[ "BSD-3-Clause" ]
85
2016-09-05T21:36:12.000Z
2022-03-19T13:44:13.000Z
import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = True ALLOWED_HOSTS = [] DATABASES = { 'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'djangox509.db'} } SECRET_KEY = 'fn)t*+$)ugeyip6-#txyy$5wf2ervc0d2n#h)qb)y5@ly$t*@w' INSTALLED_APPS = [ 'django.contrib.auth', 'djan...
28.592105
81
0.678785
0
0
0
0
0
0
0
0
1,275
0.586746
e4c31aee7bfbc8595d53ad5906b60459c10165ee
3,472
py
Python
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
6
2018-09-27T07:12:28.000Z
2019-08-14T10:13:13.000Z
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
import config import recv_db import node_rpc_helper import threading from time import sleep, time setup_check_background_result = {"msg": "(uninitialized)"} config = config.readConfig() last_check_time = time() - 10000 def get_setup_check_background(): global setup_check_background_result return setup_check_...
32.754717
93
0.616647
0
0
0
0
0
0
0
0
1,060
0.3053
e4c4cb3330bd82155cdbb03b29afb2dbeedea99b
23,602
py
Python
pysnmp-with-texts/NSCHippiSonet-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/NSCHippiSonet-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/NSCHippiSonet-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 NSCHippiSonet-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NSCHippiSonet-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:25:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
125.542553
3,243
0.800398
0
0
0
0
0
0
0
0
5,914
0.250572
e4c4f544669d2e4b222ccb9bd7786787ddb72fee
784
py
Python
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") lines = file.readlines() lines = [line.strip() for line in lines] # lines = ["2x3x4", "1x1x10"] total = 0 for line in lines: l, w, h = [int(v) for v in line.split('x')] side1 = ...
21.777778
54
0.598214
0
0
0
0
0
0
0
0
104
0.132653
e4c526448ad55197755fe945ed7cc9cdffa6ce97
1,522
py
Python
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
6
2018-04-17T03:07:06.000Z
2022-01-11T00:14:42.000Z
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
23
2018-05-14T21:13:58.000Z
2022-03-21T22:16:40.000Z
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
2
2019-09-18T05:48:03.000Z
2020-03-19T07:06:29.000Z
import os from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES from setuptools import find_packages from hypermap import __version__, __description__ def read(*rnames): with open(os.path.join(os.path.dirname(__file__), *rnames)) as ff: return ff.read() setup( name=_...
24.548387
70
0.581472
0
0
0
0
0
0
0
0
595
0.390933
e4c67370682280607f52d85bc867fcf1b22bcd29
2,611
py
Python
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
from creeps.scheduled_action import ScheduledAction def part_count(creep, of_type): count = 0 for part in creep.body: if part['type'] == of_type: count += 1 return count def get_first_spawn(room): for s in room.find(FIND_MY_STRUCTURES): if s.structureType == STRUCTURE_SPAWN...
23.522523
91
0.550747
76
0.029108
0
0
0
0
0
0
131
0.050172
e4c8185a2c9690234bd9c6872e272faa663e2d58
2,419
py
Python
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import logging import os from sockjs.tornado import SockJSRouter, SockJSConnection from tornado.web import RequestHandler, StaticFileHandler from tornado.web import Application from tornado.ioloop import IOLoop from sidecar.utils import log class WebHandler(RequestHandler): d...
26.582418
76
0.613477
2,128
0.879702
0
0
839
0.346838
0
0
148
0.061182
e4c821a03a137cb22747cf95a778dd8018d7963b
1,210
py
Python
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def nextPermutation(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ flag = False for i in range(len(nums)-2, -1, -1): if nums[i] < nums[i+1]: flag = True...
30.25
74
0.400826
1,210
1
0
0
0
0
0
0
240
0.198347
e4c9e7db24e7faa2d384c8fed0def5b98126bad5
4,584
py
Python
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
import time from z3 import Solver, Implies, sat, Const, Function, IntSort, ForAll, DeclareSort from recognizer.pddl.pddl_planner import applicable from recognizer.pddl.sat_planner import SATPlanner from recognizer.plan_recognizer import PlanRecognizer class SATPlanRecognizer(PlanRecognizer): name = "sat" ...
43.245283
123
0.610384
4,327
0.943935
0
0
0
0
0
0
654
0.14267
e4cb77ef15c6281746b9224f3a653571c3753950
925
py
Python
USPTO-15K/scripts/coverage.py
wengong-jin/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
113
2017-09-22T19:42:50.000Z
2022-02-05T03:11:27.000Z
USPTO-15K/scripts/coverage.py
wibrow/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
6
2017-11-18T05:54:49.000Z
2021-03-04T08:28:46.000Z
USPTO-15K/scripts/coverage.py
wibrow/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
41
2017-12-13T02:32:10.000Z
2022-01-09T06:39:40.000Z
cand = open('lbp-bond/data.cbond') gold = open('data/connor_split.csv') tot,good = 0,0 for line in cand: cand_bonds = [] for v in line.split(): x,y = v.split('-') cand_bonds.append((int(x),int(y))) line = gold.readline() items = line.split() if items[1] != 'test': continue ...
25
46
0.484324
0
0
0
0
0
0
0
0
71
0.076757
e4cbdc38c4ab5669908483516a67bda51e21ba7f
1,431
py
Python
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
2
2019-06-03T21:09:24.000Z
2020-05-29T20:53:22.000Z
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
4
2019-07-14T02:44:40.000Z
2020-05-28T18:05:26.000Z
import os.path as op import numpy as np import matplotlib.pyplot as plt import mne from nilearn.plotting import plot_anat from config import fname, subject_id, n_jobs report = mne.open_report(fname.report) epochs = mne.read_epochs(fname.epochs) noise_cov = mne.compute_covariance(epochs, tmin=-0.2, tmax=0, method='s...
36.692308
91
0.750524
0
0
0
0
0
0
0
0
177
0.12369
e4cbe718ce99cfda8db68cebd8b2f70d40be2a56
299
py
Python
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
# Faça um programa que verifique se uma letra digitada é vogal ou consoante. vogais = ['A', 'E', 'I', 'O', 'U'] letra = input('Digite uma letra: ').strip() letra = letra.capitalize() if letra in vogais: print(f'A letra {letra} é uma vogal') else: print(f'A letra {letra} é uma consoante')
27.181818
76
0.655518
0
0
0
0
0
0
0
0
179
0.590759
e4cc0d2e30cb90d31f4c75e015c940d7ee00182a
19,236
py
Python
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2015 The Android Open Source Project # # 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 req...
32.548223
78
0.629289
12,319
0.640414
0
0
0
0
0
0
3,103
0.161312
e4cc48259575ae3ff337d2ba3e8068256382c270
21,443
py
Python
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
5
2021-12-13T18:21:35.000Z
2022-03-27T17:18:09.000Z
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
import ast import hashlib import json import os from collections import defaultdict from typing import Tuple, Sequence, Dict, Optional, Union, Any, Set import compress_pickle import matplotlib.pyplot as plt import numpy as np import pandas import pandas as pd from filelock import FileLock from allenact.utils.misc_uti...
36.221284
88
0.533834
0
0
0
0
0
0
0
0
1,907
0.088933
e4d1a5ffa7594bfb272d1e801de25c346e704f41
159
py
Python
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
8
2021-05-29T23:30:12.000Z
2021-09-24T03:25:44.000Z
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
null
null
null
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
6
2021-06-02T14:20:24.000Z
2021-08-19T00:49:26.000Z
def addition(x: int, y: int) -> int: return x + y # addition_lambda = lambda x, y: x + y # Test: if __name__ == "__main__": print(addition(78, 98))
15.9
38
0.591195
0
0
0
0
0
0
0
0
55
0.345912
e4d249940b5e4b94dccb108c35a99b6f1dfb8b25
899
py
Python
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
import datetime def format_time(t): return f'{t.seconds:2}.{t.microseconds:06}' def log(message): ''' prints a line with: elapsed time since this function was first called elapsed time since this function was previously called message Elapsed times are shown in seconds with mi...
24.972222
66
0.694105
0
0
0
0
0
0
0
0
329
0.365962
e4d3a3a4b5231dc56cb563722643de1889b8ff1c
9,563
py
Python
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
1
2016-06-25T13:13:01.000Z
2016-06-25T13:13:01.000Z
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
null
null
null
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, re # init def printHelp(): sys.stderr.write("""\ lmpsizes.py, a tool for adjusting the size of a .lmp file Syntax: lmpsizes.py <source.lmp> (operation)... lmpsizes.py -h|--help Description: This script reads the size limits from basis.lmp, alters them using any numbe...
24.583548
233
0.594165
0
0
0
0
0
0
0
0
4,027
0.421102
e4d4b64f36bac32559212d9f09ad4caa0d9bfce2
286
py
Python
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
11
2021-05-07T16:34:52.000Z
2022-03-17T07:54:56.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
10
2021-10-08T20:03:59.000Z
2022-03-18T18:28:09.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
6
2021-07-09T18:23:09.000Z
2022-03-19T09:23:19.000Z
"""Configuration for tests""" import tempfile DEBUG = True TESTING = True WTF_CSRF_ENABLED = False # APP CONFIG # Creating a tempfile SQLALCHEMY_DATABASE_URI = f"sqlite://{tempfile.mkdtemp()}/test.db" # WEBSERVER SUPERSET_WEBSERVER_ADDRESS = "0.0.0.0" SUPERSET_WEBSERVER_PORT = 8080
19.066667
66
0.765734
0
0
0
0
0
0
0
0
122
0.426573
e4d7188d1126cf74926c3e66a423812722a2540a
22,051
py
Python
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present Kensho Technologies, LLC. from datetime import datetime import glob import os import time from unittest.mock import Mock import funcy import gpg import pytest from . import _UNSAFE_KEY_PASSPHRASE, FAKE_KEYS_DIR, TESTING_ENVVAR, TRUSTED_DIR_ENVVAR from ..check_gpg_keys import ( _verify_tru...
42.984405
100
0.655072
17,585
0.79747
0
0
732
0.033196
0
0
7,287
0.330461
e4d7579cdae9a7c92d24f6e21579f1d1d07cf7c1
4,054
py
Python
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
import os import re from setuptools import find_packages, setup root = os.path.dirname(__file__) settingsf = open(os.path.join(root, 'qatrack', 'settings.py'), 'r') __version__ = re.findall(r"""VERSION\s+=\s+['"]+(.*)['"]""", settingsf.read())[0] setup( name='qatrackplus', version=__version__, packages...
37.192661
149
0.580168
0
0
0
0
0
0
0
0
2,722
0.671436
e4d7953efcb7408bce5180ef4d3341f1a6b7b1ad
4,603
py
Python
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import argparse from torch.utils.data import DataLoader from .model import BERT from .trainer import BERTTrainer from .dataset import DataReader, UnitedVocab, CORALDataset, my_collate, key_lib import pdb import os import json import torch class Session(): def __init__(self, dataset, mod...
38.358333
142
0.582663
4,299
0.933956
0
0
0
0
0
0
209
0.045405
e4d9a9c56221ae7e0e31c377fd09796258aef2bc
532
py
Python
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
9
2020-10-23T14:39:45.000Z
2021-11-16T10:37:11.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
12
2020-10-07T08:07:51.000Z
2020-10-22T14:20:19.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
null
null
null
from haystack import Pipeline from haystack.retriever.anserini import DenseAnseriniRetriever # LOAD COMPONENTS retriever = DenseAnseriniRetriever(prebuilt_index_name="wikipedia-bpr-single-nq-hash", binary=True, query_encoder="castorini/bpr-nq-questi...
31.294118
86
0.682331
0
0
0
0
0
0
0
0
166
0.31203
e4da6f2e214530239d7254ffdc625a7c298a5b02
854
py
Python
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
7
2016-12-15T22:24:04.000Z
2018-12-27T05:48:45.000Z
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String, Float32 import time import subprocess def voltage_monitor(): rospy.init_node('voltage_monitor') info_pub = rospy.Publisher('bus_comm', String, queue_size=1) voltage_pub = rospy.Publisher('voltage', Float32, queue_size=1) while True:...
27.548387
124
0.661593
0
0
0
0
0
0
0
0
162
0.189696
e4db245f6a04cd11be89f16f10ad98de90bdf524
2,739
py
Python
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
1
2021-11-18T18:06:45.000Z
2021-11-18T18:06:45.000Z
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
36.52
86
0.717415
2,376
0.86747
0
0
0
0
0
0
1,976
0.721431
e4dde971f2e70ab06559858e0fab7f650c0ab505
94,984
py
Python
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
import datetime import hashlib import json import os import random import string from PIL import Image from urlparse import urlparse from django.conf import settings from django.db import models, connection from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserManager from django.core.mail imp...
43.411335
186
0.685263
82,998
0.87381
0
0
21,789
0.229397
0
0
8,962
0.094353
e4de17c6c2bcdd5dac773b36cd590020f73017b2
322
py
Python
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
15
2018-11-26T14:35:29.000Z
2021-06-07T04:48:42.000Z
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
10
2020-01-28T22:29:29.000Z
2021-12-13T19:52:10.000Z
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
4
2020-02-14T13:01:57.000Z
2021-01-01T19:06:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .model import Base from .model import Dense from .model import SeriesNet from .model import NP from .model import CNP from .model import RNN from .model import Seq2Seq from .model import DARNN from .model import RGAN from .model import CRGAN from .model import CGAN...
16.947368
28
0.748447
0
0
0
0
0
0
0
0
44
0.136646
e4de733e5c0ae2e4678e9cda8d9bbc096dd360a5
594
py
Python
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
53
2021-07-20T04:01:57.000Z
2022-03-13T17:31:08.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
58
2021-08-20T02:22:16.000Z
2021-12-13T10:38:58.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
13
2021-08-23T20:16:14.000Z
2022-01-31T23:59:21.000Z
import logging import time # import the original example.py from handler import DigitalBeing as DB logger = logging.getLogger('server_logger') logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler('grpc_server.log') fh.setLevel(logging.DEBUG) logger.addHandler(f...
22.846154
61
0.754209
75
0.126263
0
0
0
0
0
0
250
0.420875
e4debd4280513f51ffae81a74e479547f07c0088
2,679
py
Python
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
30
2017-09-14T20:25:43.000Z
2022-03-12T09:55:35.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
59
2018-01-12T18:29:24.000Z
2019-03-08T21:08:40.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
8
2017-12-01T18:36:04.000Z
2020-11-22T00:36:15.000Z
import logging from json import loads from time import time from flask import request, abort from telebot.apihelper import ApiException from telebot.types import Update from app import db, new_functions as nf from app.constants import ( webhook_url_base, webhook_url_path, ids, other_error_answer ) from app.models...
28.806452
75
0.591639
0
0
0
0
812
0.299742
0
0
298
0.110004
e4df95cc2cdc1f1463a8b2b8946b91a69dbe5207
7,391
py
Python
prysm/segmented.py
deisenroth/prysm
53a400ef89697041f67192e879e61ad28c451318
[ "MIT" ]
110
2017-09-28T05:24:22.000Z
2022-03-17T17:34:08.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
82
2018-01-03T03:52:42.000Z
2022-02-02T02:30:19.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
28
2017-12-28T02:47:55.000Z
2022-03-29T02:10:11.000Z
"""Tools for working with segmented systems.""" from collections import namedtuple import numpy as truenp from .geometry import regular_polygon from .mathops import np Hex = namedtuple('Hex', ['q', 'r', 's']) def add_hex(h1, h2): """Add two hex coordinates together.""" q = h1.q + h2.q r = h1.r + h2.r ...
32.134783
117
0.613043
1,603
0.216885
0
0
0
0
0
0
2,395
0.324043
e4dfb95f04467bee0420411aa09bbdd150a3b575
1,156
py
Python
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit import random as rd import plotter def model_function(X, a, b, c): """ - the analytical expression for the model that aims at describing the experimental data - the X argument is an array of tuples of the form X=...
23.12
91
0.624567
0
0
0
0
0
0
0
0
193
0.166955
e4e19e9928517728d0a9a1ccaaa4cb714b4df75b
197
py
Python
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
1
2020-04-29T06:19:44.000Z
2020-04-29T06:19:44.000Z
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
class Solution: def countNegatives(self, grid): ans = 0 for row in grid: for ele in row: if ele < 0: ans += 1 return ans
21.888889
35
0.426396
196
0.994924
0
0
0
0
0
0
0
0
e4e259912dc8fab0fc123e2bde02cc765fe32ec1
3,740
py
Python
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
2
2022-03-27T19:24:30.000Z
2022-03-29T16:15:31.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
1
2021-04-23T21:03:45.000Z
2021-04-23T21:03:45.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Simple script to compute correlations for inserted and removed tokens import numpy as np import pandas as pd from tqdm import tqdm import os import sqlite3 from datetime import datetime import scipy.stats import scipy.sparse def create_array(token_index, db, total=9584147): token_indicat...
46.17284
191
0.699465
0
0
0
0
0
0
0
0
828
0.22139
e4e47a927be1df6a8c7ab23bada3a5ee286f11b3
590
py
Python
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases import os import shutil class EnableInsecureAccess(Task): description = 'Enabling shell access via /dev/ttyS1' phase = phases.system_modification @classmethod def run(cls, info): # Append a line to /etc/inittab launching /bin/bash on # /...
31.052632
81
0.754237
491
0.832203
0
0
365
0.618644
0
0
140
0.237288
e4e647dd3b9fc6ab9ed936f939be2c4d02a9c3ed
446,260
py
Python
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
serialized_string = b'gAN9cQBYEAAAAG1vZGVsX3N0YXRlX2RpY3RxAWNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxAilScQMoWCEAAABiYXNlLmxheWVycy4wLm1lc3NhZ2VfcGFzc2luZ19tYXRxBGN0b3JjaC5fdXRpbHMKX3JlYnVpbGRfdGVuc29yX3YyCnEFKGN0b3JjaC5zdG9yYWdlCl9sb2FkX2Zyb21fYnl0ZXMKcQZCPJ0AAIACigps/JxG+SBqqFAZLoACTekDLoACfXEAKFgQAAAAcHJvdG9jb2xfdmVyc2lvbn...
1,576.890459
434,799
0.935325
11,075
0.024817
0
0
0
0
0
0
436,066
0.977157
e4e8ee9a0f629d72298e4d9e7b1a98a2e8e24f7f
368
py
Python
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Gallery(models.Model): """ Model for gallery. Cards with title and thumbnail along with a link to google album """ title = models.CharField(max_length=200) thumbnail = models.CharField(max_length=100) url = models.URLField() ...
21.647059
53
0.682065
309
0.839674
0
0
0
0
0
0
129
0.350543
e4ea2ae722c04bf641f0c113ed3f17b5c66cdf13
1,687
py
Python
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
6
2018-06-21T00:50:23.000Z
2021-07-06T06:21:04.000Z
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
null
null
null
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
3
2018-10-27T13:12:49.000Z
2021-06-02T05:37:12.000Z
from pwn import * g_local=False e=ELF('/lib/x86_64-linux-gnu/libc-2.23.so') context.log_level='debug' if g_local: sh = process('./candcpp')#, env={'LD_PRELOAD':'./libc-2.23.so'}) gdb.attach(sh) else: sh = remote('154.8.222.144', 9999) MAIN_FUNC = 0x4009A0 LEAK_FUNC = 0x400E10 NAME_BUF = 0x602328 def init_name(nam...
20.325301
65
0.665086
0
0
0
0
0
0
0
0
344
0.203912
e4ea6b87c9f84a19ddcae37e83769662706b405e
2,164
py
Python
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
def player_interaction(player, object): if object[0] == 'coin': old_objects.append(object) game_objects[player]['coins'] += 1 def wave_interaction(wave, object): if object[0] == 'player' or object[0] == 'soft_wall': old_objects.append(object) ################3 old_objects = [] ga...
26.390244
103
0.636322
0
0
0
0
0
0
0
0
503
0.23244
e4eb75089052398010f0fca752c0fa03e64af7f4
206
py
Python
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
from django.contrib import admin from trade_system.users.models import Wallet from django.contrib.auth import get_user_model User = get_user_model() admin.site.register(User) admin.site.register(Wallet)
20.6
46
0.825243
0
0
0
0
0
0
0
0
0
0
e4ec28c7bf7bd90f9b875de7df12fd87fba4eede
4,961
py
Python
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
import unittest from mock import Mock from foundations_spec.helpers import let, let_patch_mock, let_patch_instance, set_up from foundations_spec.helpers.spec import Spec from foundations_contrib.models.queued_job import QueuedJob from fakeredis import FakeRedis class TestQueuedJob(Spec): mock_time = let_patc...
31.598726
97
0.702882
4,692
0.945777
0
0
1,752
0.353155
0
0
106
0.021367
e4efdb84b5f54430d099fe1b59a9b2291a76ef7a
1,400
py
Python
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
""" Defines caching before for user preferences """ import jwt import time from cachetools import TTLCache from typing import Optional class CredentialCache(TTLCache): """ Subclass of TTLCache that temporarily stores and retreives user login credentials Arguments: TTLCache {TTLCache} -- A TTLCac...
27.45098
102
0.534286
1,261
0.900714
0
0
0
0
0
0
664
0.474286
e4f1e6378706bc71078bf3d61ef72f03d3aa0d3c
3,013
py
Python
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
3
2016-07-12T13:22:53.000Z
2019-09-20T07:48:02.000Z
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
3
2016-12-07T07:20:33.000Z
2017-02-08T09:14:58.000Z
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
5
2016-07-13T10:40:29.000Z
2020-07-01T07:20:41.000Z
# -*- coding: utf-8 -*- from numpy import array from numpy.testing import assert_allclose from python_geometry.simple_polygon import SimplePolygon class TestEquality(object): def test_SelfPolygon_ReturnTrue(self): polygon = SimplePolygon( vertices=[ (0, 0, 0), ...
27.144144
71
0.419184
2,859
0.948888
0
0
0
0
0
0
23
0.007634
e4f26ad224253d8b9e159c457b1fb5ec0f23c562
3,432
py
Python
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2019-01-02T20:18:17.000Z
2019-01-02T20:18:17.000Z
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2018-12-26T19:50:41.000Z
2018-12-30T18:51:43.000Z
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2021-08-19T02:29:43.000Z
2021-08-19T02:29:43.000Z
#!/usr/bin/env python3 # validation_curve.py """ Generates the validation curve visualizations for the documentation """ ########################################################################## ## Imports ########################################################################## import os import numpy as np import...
28.840336
89
0.595862
0
0
0
0
0
0
0
0
1,016
0.296037
e4f3f5b2d09517330825637d500809f9259e85f8
14,722
py
Python
eval/vqa_data_provider_layer.py
minsuu/vqa_mcb
cb04e7cd1ceba4e7508024e5dbdfe08d1575b007
[ "BSD-2-Clause" ]
214
2016-07-13T00:17:44.000Z
2022-01-28T07:06:07.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
23
2016-07-14T07:45:59.000Z
2019-08-15T02:56:34.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
87
2016-07-12T18:20:32.000Z
2021-10-30T16:44:33.000Z
import caffe import numpy as np import random import os import sys import re import json import spacy from operator import mul GLOVE_EMBEDDING_SIZE = 300 CURRENT_DATA_SHAPE = None SPATIAL_COORD = None GLOVE = None class LoadVQADataProvider: def __init__(self, ques_file_path, img_file_pre, vdict_path, adict_pat...
35.73301
111
0.53831
14,499
0.984853
0
0
0
0
0
0
2,285
0.15521
e4f43253efd72ee6f97db976bf7d874a78157c8f
347
py
Python
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
""" tictoc matlab-like tic and toc functions see https://stackoverflow.com/questions/5849800/what-is-the-python-equivalent-of-matlabs-tic-and-toc-functions """ import time tics = [] def tic(): tics.append(time.process_time()) def toc(): if len(tics) == 0: return None else: return time.p...
17.35
110
0.665706
0
0
0
0
0
0
0
0
159
0.458213