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
69d1cd005aaaf49ee063eaef4256019e28e73ab2
4,880
py
Python
ml_editor/explanation_generation.py
johanjun/Building_ML_Powered_Applications
bcdcc769f4407ec9fbc729794ba84e8214d29027
[ "MIT" ]
18
2021-09-11T05:04:09.000Z
2022-03-20T23:41:42.000Z
ml_editor/explanation_generation.py
johanjun/Building_ML_Powered_Applications
bcdcc769f4407ec9fbc729794ba84e8214d29027
[ "MIT" ]
null
null
null
ml_editor/explanation_generation.py
johanjun/Building_ML_Powered_Applications
bcdcc769f4407ec9fbc729794ba84e8214d29027
[ "MIT" ]
7
2021-09-30T11:22:12.000Z
2022-03-20T23:49:43.000Z
import os from pathlib import Path import pandas as pd from lime.lime_tabular import LimeTabularExplainer from ml_editor.data_processing import get_split_by_author FEATURE_DISPLAY_NAMES = { "num_questions": "๋ฌผ์Œํ‘œ ๋นˆ๋„", "num_periods": "๋งˆ์นจํ‘œ ๋นˆ๋„", "num_commas": "์‰ผํ‘œ ๋นˆ๋„", "num_exclam": "๋А๋‚Œํ‘œ ๋นˆ๋„", "num_quot...
26.096257
80
0.582172
0
0
0
0
0
0
0
0
2,763
0.482199
69d1dab7f54ca1ad815eec0feddd2d80d74004a4
912
py
Python
straitlets/tests/test_test_utils.py
quantopian/serializable-traitlets
f7de75507978e08446a15894a8417997940ea7a6
[ "Apache-2.0" ]
13
2016-01-27T01:55:18.000Z
2022-02-10T12:09:46.000Z
straitlets/tests/test_test_utils.py
quantopian/serializable-traitlets
f7de75507978e08446a15894a8417997940ea7a6
[ "Apache-2.0" ]
5
2016-02-17T13:52:50.000Z
2018-12-13T21:30:26.000Z
straitlets/tests/test_test_utils.py
quantopian/serializable-traitlets
f7de75507978e08446a15894a8417997940ea7a6
[ "Apache-2.0" ]
10
2017-07-21T14:27:17.000Z
2022-03-16T11:19:47.000Z
""" Tests for the test utils. """ import pytest from straitlets import Serializable, Integer from straitlets.test_utils import assert_serializables_equal def test_assert_serializables_equal(): class Foo(Serializable): x = Integer() y = Integer() class Bar(Serializable): x = Integer(...
25.333333
64
0.625
136
0.149123
0
0
0
0
0
0
42
0.046053
69d291496a5d3377d9958e730dccf8026bc852c8
6,458
py
Python
projects/microphysics/docs/wandb_report_figures/non_limited_num_nonzero.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
projects/microphysics/docs/wandb_report_figures/non_limited_num_nonzero.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
projects/microphysics/docs/wandb_report_figures/non_limited_num_nonzero.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
""" In the last report, "bias_categories.py" I showed that offline bias of the limited RNN cannot be improved by thresholding large relative decreases of cloud to 0. Doing so increased the bias. What about the non-limited RNNS? It turns out that these RNNs have approximately 10x smaller bias. However, they produce ne...
34.351064
143
0.702694
1,286
0.199133
0
0
0
0
0
0
2,352
0.364199
69d2955809d68e17f8be812fa27e25216fd7813e
4,026
py
Python
fdm/analysis/tools.py
szajek/FDM
6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b
[ "MIT" ]
1
2017-11-12T09:57:52.000Z
2017-11-12T09:57:52.000Z
fdm/analysis/tools.py
szajek/FDM
6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b
[ "MIT" ]
null
null
null
fdm/analysis/tools.py
szajek/FDM
6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b
[ "MIT" ]
null
null
null
import numpy from fdm.geometry import create_close_point_finder def create_weights_distributor(close_point_finder): def distribute(point, value): close_points = close_point_finder(point) distance_sum = sum(close_points.values()) return dict( {p: (1. - distance/distance_sum)*va...
30.5
119
0.709389
472
0.117238
0
0
0
0
0
0
130
0.03229
69d2cf747c7a7036f97b7f91f7789d9373964e1b
1,300
py
Python
src/tests/sounds_test.py
dvsantoalla/atmospheres
f31bb636170dd8711e398b321a6416025bbd4de8
[ "Apache-2.0" ]
null
null
null
src/tests/sounds_test.py
dvsantoalla/atmospheres
f31bb636170dd8711e398b321a6416025bbd4de8
[ "Apache-2.0" ]
null
null
null
src/tests/sounds_test.py
dvsantoalla/atmospheres
f31bb636170dd8711e398b321a6416025bbd4de8
[ "Apache-2.0" ]
null
null
null
import unittest from csound import output, orchestra from csound.orchestra import gen08 from data import constants as c from data import get class TestSounds(unittest.TestCase): def test_simple_soundwaves(self): # Get all data place = "Madrid" mad2t = get(c.T, location=place) ma...
34.210526
96
0.590769
1,155
0.888462
0
0
0
0
0
0
281
0.216154
69d3674b80e0407aa5556ee4e06d257e26cbc733
1,058
py
Python
dht22.py
trihatmaja/dht22-raspi
7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219
[ "MIT" ]
null
null
null
dht22.py
trihatmaja/dht22-raspi
7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219
[ "MIT" ]
null
null
null
dht22.py
trihatmaja/dht22-raspi
7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219
[ "MIT" ]
null
null
null
import Adafruit_DHT as dht import time from influxdb import InfluxDBClient def get_serial(): cpu_serial = "0000000000000000" try: f = open('/proc/cpuinfo', 'r') for line in f: if line[0:6] == 'Serial': cpu_serial = line[10:26] f.close() except: cp...
23.511111
66
0.535917
0
0
0
0
0
0
0
0
224
0.21172
69d3ae6f2c3de09735086e056c7ecbd05c224a46
9,319
py
Python
quapy/data/base.py
pglez82/QuaPy
986e61620c7882e97245bd82d323e7615699d7b1
[ "BSD-3-Clause" ]
34
2021-01-06T14:01:06.000Z
2022-03-08T06:59:04.000Z
quapy/data/base.py
pglez82/QuaPy
986e61620c7882e97245bd82d323e7615699d7b1
[ "BSD-3-Clause" ]
4
2021-06-07T07:45:57.000Z
2021-06-21T11:16:10.000Z
quapy/data/base.py
pglez82/QuaPy
986e61620c7882e97245bd82d323e7615699d7b1
[ "BSD-3-Clause" ]
6
2021-06-07T10:08:17.000Z
2022-03-07T13:42:15.000Z
import numpy as np from scipy.sparse import issparse from scipy.sparse import vstack from sklearn.model_selection import train_test_split, RepeatedStratifiedKFold from quapy.functional import artificial_prevalence_sampling, strprev class LabelledCollection: ''' A LabelledCollection is a set of objects each w...
40.517391
137
0.653504
8,940
0.95933
1,503
0.161283
1,342
0.144007
0
0
1,297
0.139178
69d7a315854c9efb1fc746e30bff79237346d088
381
py
Python
corehq/apps/fixtures/exceptions.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/fixtures/exceptions.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/fixtures/exceptions.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
class FixtureException(Exception): pass class FixtureUploadError(FixtureException): pass class DuplicateFixtureTagException(FixtureUploadError): pass class ExcelMalformatException(FixtureUploadError): pass class FixtureAPIException(Exception): pass class FixtureTypeCheckError(Exception): ...
12.290323
55
0.774278
358
0.939633
0
0
0
0
0
0
0
0
69dcbd043965a22c5729ce122aacb8d9478b59fe
55,763
py
Python
feature_extractors.py
Askinkaty/text-readability
4d9d7c6cd3a07c7443ca24c67db981b4b4c9fff4
[ "MIT" ]
null
null
null
feature_extractors.py
Askinkaty/text-readability
4d9d7c6cd3a07c7443ca24c67db981b4b4c9fff4
[ "MIT" ]
null
null
null
feature_extractors.py
Askinkaty/text-readability
4d9d7c6cd3a07c7443ca24c67db981b4b4c9fff4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from process_gram import process_grammar import codecs first_pp = ['ะผั‹', 'ั', 'ะฝะฐัˆ', 'ะผะพะน'] second_pp = ['ั‚ั‹', 'ะฒั‹', 'ะฒะฐัˆ', 'ั‚ะฒะพะน'] third_pp = ['ะพะฝ', 'ะพะฝะฐ', 'ะพะฝะธ', 'ะพะฝะพ', 'ะธั…', 'ee', 'ะตะณะพ', 'ะธั…ะฝะธะน', 'ะธั…ะฝะธะผ', 'ะธั…ะฝะตะผ'] indef_pron = ['ะฝะตะบั‚ะพ', 'ะฝะตะบะพะณะพ', 'ะฝะตะบะพะผัƒ', 'ะฝะตะบะตะผ', 'ะฝะตั‡ั‚ะพ', 'ะฝะตั‡ะตะณะพ', 'ะฝะตั‡ะตะผัƒ...
42.053544
124
0.469451
0
0
0
0
0
0
0
0
20,675
0.336354
69e1d274afce02fe0eb56c0874758437df337b90
134
py
Python
graphs/__init__.py
kateshostak/expander-lib
c1c7c0bec977fdc6492e4e08a1d1757783462c76
[ "MIT" ]
null
null
null
graphs/__init__.py
kateshostak/expander-lib
c1c7c0bec977fdc6492e4e08a1d1757783462c76
[ "MIT" ]
null
null
null
graphs/__init__.py
kateshostak/expander-lib
c1c7c0bec977fdc6492e4e08a1d1757783462c76
[ "MIT" ]
null
null
null
from .abstract_graph import AbstractGraph from .matrix_graph import MatrixGraph __all__ = [ "AbstractGraph", "MatrixGraph", ]
19.142857
41
0.753731
0
0
0
0
0
0
0
0
28
0.208955
69e260f9ca6210cf18c090c8a49bc65255c0f206
856
py
Python
03-datatypes/examples/07-tuples.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/07-tuples.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/07-tuples.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # tuples is a type of list. # tuples is immutable. # the structure of a tuple: (1, "nice work", 2.3, [1,2,"hey"]) my_tuple = ("hey", 1, 2, "hey ho!", "hey", "hey") print("My tuple:", my_tuple) # to get a tuple value use it's index print("Second item in my_tuple:", my_tuple[1]) # to count how ...
35.666667
97
0.693925
0
0
0
0
0
0
0
0
721
0.84229
69e2f9e47e947283eba6f71f70baad174d0962cb
7,048
py
Python
retraction_synda.py
meteorologist15/synda_retraction
4a9174d2bc5d3573b5cdd39636380607120d586c
[ "CC0-1.0" ]
null
null
null
retraction_synda.py
meteorologist15/synda_retraction
4a9174d2bc5d3573b5cdd39636380607120d586c
[ "CC0-1.0" ]
null
null
null
retraction_synda.py
meteorologist15/synda_retraction
4a9174d2bc5d3573b5cdd39636380607120d586c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess import requests import json import os import re import argparse import logging import csv import shutil retracted_exps = "retracted_exps.csv" #Generic info list from file here. logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') handle_api = "https://...
36.518135
214
0.614784
4,355
0.617906
0
0
0
0
0
0
2,125
0.301504
69e335c70218134a69c091bf1b6b675a74eec632
9,485
py
Python
tests/integration/cqlengine/management/test_management.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/integration/cqlengine/management/test_management.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/integration/cqlengine/management/test_management.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.616788
122
0.714391
8,129
0.857037
0
0
0
0
0
0
2,076
0.218872
69e3ad1eebd1e1fccdf1e001090572086c5c45ba
366
py
Python
theboss/network_simulation_strategy/network_simulation_strategy.py
Tomev/BoSS
45db090345650741c85b39b47cbc7b391d6daa33
[ "Apache-2.0" ]
null
null
null
theboss/network_simulation_strategy/network_simulation_strategy.py
Tomev/BoSS
45db090345650741c85b39b47cbc7b391d6daa33
[ "Apache-2.0" ]
4
2020-07-10T00:28:43.000Z
2020-10-12T11:51:38.000Z
theboss/network_simulation_strategy/network_simulation_strategy.py
Tomev/BoSS
45db090345650741c85b39b47cbc7b391d6daa33
[ "Apache-2.0" ]
1
2020-09-12T15:35:09.000Z
2020-09-12T15:35:09.000Z
__author__ = "Tomasz Rybotycki" import abc from numpy import ndarray class NetworkSimulationStrategy(abc.ABC): @classmethod def __subclasshook__(cls, subclass): return hasattr(subclass, "simulate") and callable(subclass.simulate) @abc.abstractmethod def simulate(self, input_state: ndarray) ...
22.875
76
0.737705
292
0.797814
0
0
240
0.655738
0
0
28
0.076503
69e3ea4c1c7c901fc078c30d615b40492cfe71fd
769
py
Python
ecommerce/core/migrations/0020_auto_20200923_1948.py
berrondo/ecommerce
daa0fa3c336d7e1e9816cc187f858bab7122fb1b
[ "MIT" ]
1
2020-09-04T02:23:02.000Z
2020-09-04T02:23:02.000Z
ecommerce/core/migrations/0020_auto_20200923_1948.py
berrondo/ecommerce
daa0fa3c336d7e1e9816cc187f858bab7122fb1b
[ "MIT" ]
null
null
null
ecommerce/core/migrations/0020_auto_20200923_1948.py
berrondo/ecommerce
daa0fa3c336d7e1e9816cc187f858bab7122fb1b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-23 19:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0019_auto_20200923_1942'), ] operations = [ migrations.AlterField( model_name='orderite...
30.76
151
0.642393
643
0.836151
0
0
0
0
0
0
178
0.231469
69e536b2f665710fad652d1507cbb967f6b032a2
1,989
py
Python
framework.py
w1rtp/USMAnywhereAPI
d239fde894e085cfe5350800225ebe88297f922f
[ "MIT" ]
3
2019-02-04T18:15:00.000Z
2021-06-22T21:03:22.000Z
framework.py
w1rtp/USMAnywhereAPI
d239fde894e085cfe5350800225ebe88297f922f
[ "MIT" ]
1
2018-10-04T21:51:50.000Z
2018-10-06T18:17:00.000Z
framework.py
w1rtp/USMAnywhereAPI
d239fde894e085cfe5350800225ebe88297f922f
[ "MIT" ]
2
2019-12-23T16:03:01.000Z
2022-03-17T01:13:17.000Z
#!/usr/bin/env python """ Nicholas' Example API code for interacting with Alienvault API. This is just Example code written by NMA.IO. There isn't really much you can do with the API just yet, so this will be a work in progress. Grab your API key here: https://www.alienvault.com/documentation/usm-anywhere/api/ali...
31.078125
124
0.667672
0
0
0
0
0
0
0
0
1,269
0.638009
69e53fa5b831cecebc7667ff2b84745654c3a1c0
2,768
py
Python
Facility/Loader/loader_base.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
Facility/Loader/loader_base.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
Facility/Loader/loader_base.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
import yaml from Helper import Level from typing import List, Dict from os.path import join from ..action_information import ActionInformation class Loader: @classmethod def EnsureFolder(cls, path: str) -> [(Level, str)]: from Helper import IO validation = [] if not IO.EnsureFolder(pat...
35.487179
112
0.556358
2,622
0.947254
0
0
2,574
0.929913
0
0
361
0.130419
69e67f189f337a3cb0820bec91f37c72cf451cb4
2,140
py
Python
timebox/tests/test_timebox_pandas.py
BrianKopp/timebox
302c7f65fa0a2e35aab2412173b9081a1a3c324c
[ "MIT" ]
1
2018-07-09T18:42:57.000Z
2018-07-09T18:42:57.000Z
timebox/tests/test_timebox_pandas.py
BrianKopp/timebox
302c7f65fa0a2e35aab2412173b9081a1a3c324c
[ "MIT" ]
null
null
null
timebox/tests/test_timebox_pandas.py
BrianKopp/timebox
302c7f65fa0a2e35aab2412173b9081a1a3c324c
[ "MIT" ]
null
null
null
from timebox.timebox import TimeBox from timebox.utils.exceptions import InvalidPandasIndexError import pandas as pd import numpy as np import unittest import os import logging class TestTimeBoxPandas(unittest.TestCase): def test_save_pandas(self): file_name = 'save_pandas.npb' df = pd.read_csv('t...
31.940299
93
0.621963
1,912
0.893458
0
0
0
0
0
0
308
0.143925
69e74affdb03ba88f022aa14d7c8af457ff4e082
2,143
py
Python
flaskapp/utils/logs.py
argrecsys/decide-madrid-chatbot
8d44932f15e49902215e17982e5c1f4ffaa7a38b
[ "Apache-2.0" ]
4
2022-01-11T21:57:48.000Z
2022-01-13T21:52:28.000Z
flaskapp/utils/logs.py
argrecsys/decide-madrid-chatbot
8d44932f15e49902215e17982e5c1f4ffaa7a38b
[ "Apache-2.0" ]
null
null
null
flaskapp/utils/logs.py
argrecsys/decide-madrid-chatbot
8d44932f15e49902215e17982e5c1f4ffaa7a38b
[ "Apache-2.0" ]
null
null
null
from typing import Any from flaskapp.models import Activities, Logs, LogsToActivities, db from sqlalchemy.sql.expression import desc, func """ Este modulo contiene funciones para escribir y leer los logs desde el chatbot """ MAX_LOGS_PER_QUERY = 5 MAX_STR_SIZE_LOGS = 128 def write_log( chatid: int, intent: ...
24.352273
77
0.514232
0
0
0
0
0
0
0
0
114
0.053196
69e7b4ccf59b1c05b1102c31382c3994419c2af7
1,233
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/DS-n-Algos/hashes/luhn.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
hashes/luhn.py
randomprassanna/Python
bc09ba9abfa220c893b23969a4b8de05f5ced1e1
[ "MIT" ]
279
2020-02-12T20:51:09.000Z
2021-07-20T11:25:19.000Z
hashes/luhn.py
randomprassanna/Python
bc09ba9abfa220c893b23969a4b8de05f5ced1e1
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
""" Luhn Algorithm """ from typing import List def is_luhn(string: str) -> bool: """ Perform Luhn validation on input string Algorithm: * Double every other digit starting from 2nd last digit. * Subtract 9 if number is greater than 9. * Sum the numbers * >>> test_cases = [79927398710, ...
26.234043
76
0.596918
0
0
0
0
0
0
0
0
587
0.476075
69e81c899520bdfc0aa12c011c27b56eb5e31e55
2,477
py
Python
gen_files.py
qbosen/leetcode_file_generator
594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8
[ "MIT" ]
null
null
null
gen_files.py
qbosen/leetcode_file_generator
594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8
[ "MIT" ]
null
null
null
gen_files.py
qbosen/leetcode_file_generator
594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8
[ "MIT" ]
null
null
null
# coding=utf-8 # /usr/bin/python gen_files.py 100 import os import sys import time from settings import * from settings_advanced import * try: import cPickle as pickle except ImportError: import pickle from content_parser import DescriptionParser from content_parser_advance import AdvancedDescriptionParser ...
31.75641
99
0.686314
0
0
0
0
0
0
0
0
263
0.105665
69e933da38595f381a40d626b00d56311127794d
1,287
py
Python
interface/exemplos1/05.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/05.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/05.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
from tkinter import * import tkFileDialog root = Tk() menubar = Menu(root) root.config(menu=menubar) root.title('Tk Menu') root.geometry('150x150') filemenu = Menu(menubar) filemenu2 = Menu(menubar) filemenu3 = Menu(menubar) menubar.add_cascade(label='Arquivo', menu=filemenu) menubar.add_cascade(label='Cores', menu=...
33
61
0.724165
0
0
0
0
0
0
0
0
220
0.170675
69e9b7f3b724fc8a84cb33e494ceb8bad87452a5
349
py
Python
public/models.py
level09/yooo
deb8fbdd2d2114a9189e35ee5ab6014876f99438
[ "MIT" ]
6
2015-02-20T17:24:46.000Z
2020-05-21T18:23:25.000Z
public/models.py
level09/yooo
deb8fbdd2d2114a9189e35ee5ab6014876f99438
[ "MIT" ]
null
null
null
public/models.py
level09/yooo
deb8fbdd2d2114a9189e35ee5ab6014876f99438
[ "MIT" ]
null
null
null
from extensions import db import datetime import json class Link(db.Document): lid = db.SequenceField(unique=True) longUrl = db.StringField() shortUrl = db.StringField() date_submitted = db.DateTimeField(default=datetime.datetime.now) usage = db.IntField(default=0) def __unicode__(self): ...
26.846154
68
0.710602
294
0.842407
0
0
0
0
0
0
4
0.011461
69ea5b5cea2f3bde949a1ce25fc96a75ca9f7638
6,132
py
Python
script/python/lib/exhaust_generation/exhaustive_tpls.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
2
2016-09-14T00:23:53.000Z
2018-01-14T12:51:18.000Z
script/python/lib/exhaust_generation/exhaustive_tpls.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
script/python/lib/exhaust_generation/exhaustive_tpls.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: iso-8859-15 -*- ############################################################################## # Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II # Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI # # Distributed under the Boost ...
46.105263
95
0.379485
5,114
0.833986
0
0
0
0
0
0
3,897
0.635519
69ea7259b3d374e9cf30752c6716f0ff14c30c20
1,159
py
Python
automator.py
Mfdsix/GoHugo-Blog-Example
0bdb5396732b2cfcd5e8885a6e2dd65cab416a01
[ "Apache-2.0" ]
1
2021-08-24T13:45:45.000Z
2021-08-24T13:45:45.000Z
automator.py
Mfdsix/GoHugo-Blog-Example
0bdb5396732b2cfcd5e8885a6e2dd65cab416a01
[ "Apache-2.0" ]
null
null
null
automator.py
Mfdsix/GoHugo-Blog-Example
0bdb5396732b2cfcd5e8885a6e2dd65cab416a01
[ "Apache-2.0" ]
null
null
null
import requests import os, shutil import re folder = 'content/post' for filename in os.listdir(folder): file_path = os.path.join(folder, filename) try: if os.path.isfile(file_path) or os.path.islink(file_path): os.unlink(file_path) elif os.path.isdir(file_path): shutil.r...
34.088235
236
0.592752
0
0
0
0
0
0
0
0
382
0.329594
69ea995bb78ba1500d77b1d87bab05350042744d
1,530
py
Python
solutions/python/2017/possibleHeights.py
lucifer1198/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
2
2020-12-21T22:09:26.000Z
2021-01-01T15:40:01.000Z
solutions/python/2017/possibleHeights.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
null
null
null
solutions/python/2017/possibleHeights.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
1
2021-01-28T18:15:02.000Z
2021-01-28T18:15:02.000Z
def possibleHeights(parent): edges = [[] for i in range(len(parent))] height = [0 for i in range(len(parent))] isPossibleHeight = [False for i in range(len(parent))] def initGraph(parent): for i in range(1, len(parent)): edges[parent[i]].append(i) def calcHeight(v): fo...
32.553191
75
0.560131
0
0
0
0
0
0
0
0
0
0
69eaf97d49b7fab955a57a6eb5efeed97327c325
21,388
py
Python
geonode/geonode/maps/qgis_server_views.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/maps/qgis_server_views.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/maps/qgis_server_views.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 ...
35.119869
104
0.534412
14,442
0.675238
0
0
148
0.00692
0
0
4,803
0.224565
69eb8001ee863674c031e16f1d53ea9d8468e34b
14,203
py
Python
reframe/core/config.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
reframe/core/config.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
reframe/core/config.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import collections.abc import json import jsonschema import os import re import tempfile import reframe import reframe.core.d...
37.874667
79
0.553897
7,872
0.554249
0
0
118
0.008308
0
0
3,327
0.234246
69ede5a7a5d5e261a9c1ba0ddb8dc8c9e3cbfadd
1,224
py
Python
account/forms.py
hhdMrLion/crm_api
66df068821be36a17c3b0e0e9660b7f8408fa1bd
[ "Apache-2.0" ]
1
2021-06-18T03:03:38.000Z
2021-06-18T03:03:38.000Z
account/forms.py
hhdMrLion/crm_api
66df068821be36a17c3b0e0e9660b7f8408fa1bd
[ "Apache-2.0" ]
null
null
null
account/forms.py
hhdMrLion/crm_api
66df068821be36a17c3b0e0e9660b7f8408fa1bd
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth import authenticate, login from django.utils.timezone import now class LoginForm(forms.Form): """ ็™ปๅฝ•่กจๅ• """ username = forms.CharField(label='็”จๆˆทๅ', max_length=100, required=False, initial='admin') password = forms.CharField(label='ๅฏ†็ ', max_length=20...
30.6
101
0.591503
1,182
0.905054
0
0
0
0
0
0
172
0.1317
69eded2c37603527f5c2e4966e85000fb0b6519e
3,263
py
Python
fileshare/fileup/utils.py
nijatrajab/fileshare
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
1
2021-07-08T06:51:28.000Z
2021-07-08T06:51:28.000Z
fileshare/fileup/utils.py
nijatrajab/fileshareproject
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
null
null
null
fileshare/fileup/utils.py
nijatrajab/fileshareproject
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.db.models import Q from guardian.ctypes import get_content_type from guardian.shortcuts import get_perms, get_user_perms from guardian.utils import get_user_obj_perms_model, get_group_obj_perms_model def get_u...
44.69863
120
0.575544
0
0
0
0
0
0
0
0
245
0.075084
69ef030a305db0390a90f17929cad93e52de6059
2,090
py
Python
welly/__init__.py
agilescientific/welly
1ced65d6e7d48642112e72ec8b412687e5a910db
[ "Apache-2.0" ]
3
2022-03-17T08:42:25.000Z
2022-03-23T08:26:13.000Z
welly/__init__.py
agilescientific/welly
1ced65d6e7d48642112e72ec8b412687e5a910db
[ "Apache-2.0" ]
3
2022-03-08T13:01:14.000Z
2022-03-21T09:42:09.000Z
welly/__init__.py
agilescientific/welly
1ced65d6e7d48642112e72ec8b412687e5a910db
[ "Apache-2.0" ]
1
2022-03-16T03:51:39.000Z
2022-03-16T03:51:39.000Z
""" ================== welly ================== """ from .project import Project from .well import Well from .header import Header from .curve import Curve from .synthetic import Synthetic from .location import Location from .crs import CRS from . import tools from . import quality def read_las(path, **kwargs): "...
25.180723
79
0.596651
0
0
0
0
0
0
0
0
1,213
0.580383
69f057ed5c729374804cbd4b48a0e971199df0ac
784
py
Python
numpy/random/examples/cython/setup.py
IntelLabs/numpy
1b4a877449313761d3de75c1ad725fdf396b170e
[ "BSD-3-Clause" ]
7
2019-02-27T20:26:01.000Z
2020-09-27T04:37:44.000Z
numpy/random/examples/cython/setup.py
IntelLabs/numpy
1b4a877449313761d3de75c1ad725fdf396b170e
[ "BSD-3-Clause" ]
3
2019-12-23T09:26:27.000Z
2021-10-31T13:34:17.000Z
numpy/random/examples/cython/setup.py
IntelLabs/numpy
1b4a877449313761d3de75c1ad725fdf396b170e
[ "BSD-3-Clause" ]
3
2019-07-20T02:16:07.000Z
2020-08-17T20:02:30.000Z
#!/usr/bin/env python3 """ Build the demos Usage: python setup.py build_ext -i """ import numpy as np from distutils.core import setup from Cython.Build import cythonize from setuptools.extension import Extension from os.path import join extending = Extension("extending", sources=['extending.py...
28
77
0.590561
0
0
0
0
0
0
0
0
207
0.264031
69f1e9cbbe7a9063f003afdafb274eaf79f6665a
2,204
py
Python
code/mts_agent_python/config/mts_import.py
mtsquant/MTS
ab7ecab0f88c844289b5c81e5627326fe36e682f
[ "Apache-2.0" ]
8
2019-03-28T04:15:59.000Z
2021-03-23T14:29:43.000Z
code/mts_agent_python/config/mts_import.py
mtsquant/MTS
ab7ecab0f88c844289b5c81e5627326fe36e682f
[ "Apache-2.0" ]
null
null
null
code/mts_agent_python/config/mts_import.py
mtsquant/MTS
ab7ecab0f88c844289b5c81e5627326fe36e682f
[ "Apache-2.0" ]
5
2019-11-06T12:39:21.000Z
2021-01-28T19:14:14.000Z
#!/usr/bin/env python # encoding: utf-8 import signal import sys #import pandas as pd #import numpy as np def setGlobals(g): #print globals() globals().update(g) #print globals() def exit(): mtsExit(0) def quit(signum): sys.exit(signum) def quitNow(signum,frame): quit(signum) def initializ...
29.386667
136
0.596642
1,381
0.626588
0
0
0
0
0
0
831
0.377042
69f26355443efdf41ec0c1d1bd32986ecad1e099
8,949
py
Python
plumcot_prodigy/entity.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
1
2021-06-22T12:43:42.000Z
2021-06-22T12:43:42.000Z
plumcot_prodigy/entity.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
null
null
null
plumcot_prodigy/entity.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
null
null
null
import prodigy from prodigy.components.preprocess import add_tokens, split_sentences from plumcot_prodigy.custom_loaders import * import requests from plumcot_prodigy.video import mkv_to_base64 from typing import Dict, List, Text, Union from typing_extensions import Literal import spacy from pathlib import Path """ An...
39.422907
335
0.519835
0
0
6,216
0.694603
1,409
0.157448
0
0
3,197
0.357247
69f2d82b9190c2480e72ca0c8018cad49bc3a03e
3,326
py
Python
sandbox_code/viz_dashboard.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
sandbox_code/viz_dashboard.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
sandbox_code/viz_dashboard.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.3' # jupytext_version: 0.8.6 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import warnings import pandas as pd import numpy a...
22.02649
106
0.643115
0
0
0
0
253
0.076067
0
0
1,226
0.368611
69f44d6bb0d219787fb8b38bd11e93ce8f62ca75
1,694
py
Python
SCA11H/commands/bcg/RunCommand.py
ihutano/SCA11H
ee8a38ec9e47bc015851c20fa121651d2601cde0
[ "MIT" ]
null
null
null
SCA11H/commands/bcg/RunCommand.py
ihutano/SCA11H
ee8a38ec9e47bc015851c20fa121651d2601cde0
[ "MIT" ]
null
null
null
SCA11H/commands/bcg/RunCommand.py
ihutano/SCA11H
ee8a38ec9e47bc015851c20fa121651d2601cde0
[ "MIT" ]
null
null
null
from enum import Enum import json from SCA11H.commands.base.PostCommand import PostCommand class Command(Enum): # Restore BCG factory settings.(BCG parameters, direction and running mode) Restore = ('restore', 'restore') # Restore default BCG parameters SetDefaultParameters = ('set_default_pars', 'r...
33.88
111
0.652302
1,596
0.942149
0
0
1,063
0.627509
0
0
470
0.27745
69f45cc29efc997451ff86c0a0f571e78b3958e7
125
py
Python
tridu_py3.py
YuriSerrano/URI-1933
58fdc5e90293ef55afacb164b955551a72a81d78
[ "MIT" ]
null
null
null
tridu_py3.py
YuriSerrano/URI-1933
58fdc5e90293ef55afacb164b955551a72a81d78
[ "MIT" ]
null
null
null
tridu_py3.py
YuriSerrano/URI-1933
58fdc5e90293ef55afacb164b955551a72a81d78
[ "MIT" ]
null
null
null
import sys ''' Criado por Yuri Serrano ''' a,b = input().split() a = int(a) b = int(b) if b > a: print(b) else: print(a)
8.928571
23
0.568
0
0
0
0
0
0
0
0
31
0.248
69f7bdeeb4b750efdf8582dd89ae606aafbd7ff2
14,595
py
Python
qt4c/keyboard.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
53
2020-02-20T06:56:03.000Z
2022-03-03T03:09:25.000Z
qt4c/keyboard.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
6
2020-03-03T03:15:53.000Z
2021-01-29T02:24:06.000Z
qt4c/keyboard.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
17
2020-02-26T03:51:41.000Z
2022-03-24T02:23:51.000Z
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QT4C available. # Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. # QT4C is licensed under the BSD 3-Clause License, except for the third-party components listed below. # A copy of the BSD ...
32.945824
144
0.505653
13,841
0.874076
0
0
5,324
0.336217
0
0
4,825
0.304705
69f9c87dea73354181eadb4afd02ba8d68d76483
1,168
py
Python
piptui/custom/apNPSApplicationEvents.py
UltraStudioLTD/PipTUI
62f5707faa004ba6d330288656ba192f37516921
[ "MIT" ]
33
2019-07-11T13:19:29.000Z
2022-02-23T12:42:22.000Z
piptui/custom/apNPSApplicationEvents.py
UltraStudioLTD/PipTUI
62f5707faa004ba6d330288656ba192f37516921
[ "MIT" ]
6
2019-07-20T21:21:51.000Z
2021-09-24T16:24:34.000Z
piptui/custom/apNPSApplicationEvents.py
UltraStudioLTD/PipTUI
62f5707faa004ba6d330288656ba192f37516921
[ "MIT" ]
8
2019-07-21T07:38:08.000Z
2021-11-11T13:30:45.000Z
import collections from npyscreen import StandardApp, apNPSApplicationEvents class PipTuiEvents(object): def __init__(self): self.interal_queue = collections.deque() super(apNPSApplicationEvents).__init__() def get(self, maximum=None): if maximum is None: maximum = -1 ...
28.487805
69
0.576199
1,084
0.928082
276
0.236301
0
0
0
0
0
0
69fa2fbc965cdaf80ea59da7e32e4769409474b2
146
py
Python
web/apps.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
8
2020-01-11T15:25:25.000Z
2022-02-20T17:32:58.000Z
web/apps.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
72
2020-01-13T21:07:26.000Z
2022-03-28T10:17:50.000Z
web/apps.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
6
2020-01-11T16:50:04.000Z
2022-02-19T10:12:19.000Z
import logging from django.apps import AppConfig class WebConfig(AppConfig): name = 'web' def ready(self): import web.signals
13.272727
33
0.684932
93
0.636986
0
0
0
0
0
0
5
0.034247
69fb23cad56b8f09159f3a77a81d10b8408a289b
72
py
Python
audiotrans_transform_stft/__init__.py
keik/audiotrans-transform-stft
76db56dd78589170ea58bd59f8243dee76373ced
[ "MIT" ]
null
null
null
audiotrans_transform_stft/__init__.py
keik/audiotrans-transform-stft
76db56dd78589170ea58bd59f8243dee76373ced
[ "MIT" ]
null
null
null
audiotrans_transform_stft/__init__.py
keik/audiotrans-transform-stft
76db56dd78589170ea58bd59f8243dee76373ced
[ "MIT" ]
null
null
null
from .__main__ import STFTTransform __all__ = [ 'STFTTransform' ]
10.285714
35
0.708333
0
0
0
0
0
0
0
0
15
0.208333
69fbff5bd4e44ca32652d5e034cc628db3597195
544
py
Python
reformat/reformat-gexpnn-preds-STEP1B.py
jordan2lee/gdan-tmp-webdash
96f8a557bcbca597a816a98824fbc37a174ae838
[ "MIT" ]
null
null
null
reformat/reformat-gexpnn-preds-STEP1B.py
jordan2lee/gdan-tmp-webdash
96f8a557bcbca597a816a98824fbc37a174ae838
[ "MIT" ]
null
null
null
reformat/reformat-gexpnn-preds-STEP1B.py
jordan2lee/gdan-tmp-webdash
96f8a557bcbca597a816a98824fbc37a174ae838
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd ft_input='TEMP_DIR/tmp-predictions_reformatted_gexpnn20200320allCOHORTS.tsv' df = pd.read_csv(ft_input,sep='\t') # Get all tumors present in df (ACC, BRCA, ...) temp = df['Label'].unique() u_tumor = {} #k=tumor, v=1 for t in temp: t= t.split(":")[0] if t not in u_t...
24.727273
76
0.658088
0
0
0
0
0
0
0
0
246
0.452206
69fc9eb460e76e55a0c0964c725759eeda16183f
4,291
py
Python
src/genie/libs/parser/iosxr/tests/ShowIsisSpfLogDetail/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxr/tests/ShowIsisSpfLogDetail/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxr/tests/ShowIsisSpfLogDetail/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'instance': { 'isp': { 'address_family': { 'IPv4 Unicast': { 'spf_log': { 1: { 'type': 'FSPF', 'time_ms': 1, 'level': 1, ...
44.697917
78
0.158471
0
0
0
0
0
0
0
0
772
0.179911
69fdb392e5a9d445b9e1b7aaaada984049564da4
2,706
py
Python
monai/networks/utils.py
loftwah/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
1
2020-04-23T13:05:29.000Z
2020-04-23T13:05:29.000Z
monai/networks/utils.py
tranduyquockhanh/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
null
null
null
monai/networks/utils.py
tranduyquockhanh/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
1
2021-09-20T12:10:01.000Z
2021-09-20T12:10:01.000Z
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
39.794118
115
0.698817
0
0
0
0
0
0
0
0
1,763
0.651515
69ff596252a8b8e113d28bd580c7b37e667bbc98
5,670
py
Python
Python/Newton_Raphson/newraph.py
manas0522/sci-cpy
0fad37f577e6a744717b0185c5bcfffcc72bc5ee
[ "MIT" ]
8
2021-09-26T17:41:04.000Z
2021-10-17T14:07:22.000Z
Python/Newton_Raphson/newraph.py
manas0522/sci-cpy
0fad37f577e6a744717b0185c5bcfffcc72bc5ee
[ "MIT" ]
16
2021-09-29T15:15:33.000Z
2021-11-27T04:35:37.000Z
Python/Newton_Raphson/newraph.py
manas0522/sci-cpy
0fad37f577e6a744717b0185c5bcfffcc72bc5ee
[ "MIT" ]
11
2021-09-27T09:46:38.000Z
2022-02-22T13:42:55.000Z
# This file is also a independently runnable file in addition to being a module. # You can run this file to test NewRaphAlgorithm function. ''' This program demonstrates Newton Raphson Algorithm(NPA). It is advised to follow all rules of the algorithm while entering the input. (Either read rules provided in README.md ...
45.36
135
0.687302
51
0.008995
0
0
0
0
0
0
3,993
0.704233
0e0038faf589bc3f8391d7469e67376d79fd62bf
1,656
py
Python
scripts/conteo_go.py
Carlosriosch/BrucellaMelitensis
4f16755fbb3e3ba33010d1e0d9fa68803b377075
[ "MIT" ]
null
null
null
scripts/conteo_go.py
Carlosriosch/BrucellaMelitensis
4f16755fbb3e3ba33010d1e0d9fa68803b377075
[ "MIT" ]
null
null
null
scripts/conteo_go.py
Carlosriosch/BrucellaMelitensis
4f16755fbb3e3ba33010d1e0d9fa68803b377075
[ "MIT" ]
null
null
null
from __future__ import division from collections import Counter import numpy as np import glob path_input = "../GO_analysis_PPI_Brucella/2.GO_crudos_y_ancestors/" path_output = "../GO_analysis_PPI_Brucella/3.GO_proporciones/" files = glob.glob(path_input + "*CON_GEN_ID_ancestors*.txt") for f in files: # est...
31.245283
159
0.667271
0
0
0
0
0
0
0
0
776
0.468599
0e00c3eb801451c1ce0627716ddfcc5cdd941f89
988
py
Python
gmgc.analysis/strict-species.py
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
6
2021-12-16T09:20:28.000Z
2022-03-29T03:21:48.000Z
gmgc.analysis/strict-species.py
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
1
2022-02-18T01:56:56.000Z
2022-02-22T14:39:48.000Z
gmgc.analysis/strict-species.py
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
8
2021-12-17T02:14:50.000Z
2022-03-21T06:40:59.000Z
from itertools import groupby from taxonomic import lca from taxonomic import ncbi n = ncbi.NCBI() def read_relationships(): for line in open('cold/GMGC.relationships.txt'): a,_,b = line.rstrip().split() yield a,b fr12name = {} for line in open('cold/freeze12.rename.table'): i,g,_ = li...
31.870968
84
0.593117
0
0
134
0.135628
0
0
0
0
150
0.151822
0e01f695cd84ecfecf18aacb3df164a4f595c65f
1,001
py
Python
spreadsheet2csv.py
kamimura/py-spreadsheet2csv
135b703906e41d92b34b2444ba392974abf97674
[ "MIT" ]
null
null
null
spreadsheet2csv.py
kamimura/py-spreadsheet2csv
135b703906e41d92b34b2444ba392974abf97674
[ "MIT" ]
null
null
null
spreadsheet2csv.py
kamimura/py-spreadsheet2csv
135b703906e41d92b34b2444ba392974abf97674
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import openpyxl import csv path = os.curdir if len(sys.argv) > 1: path = sys.argv[1] for excel_file in os.listdir(path): if (not os.path.isfile(excel_file)) or not excel_file.endswith('.xlsx'): continue print('{0}: Writing to csv...
32.290323
76
0.591409
0
0
0
0
0
0
0
0
94
0.093906
0e026ffcf7e117885cffc525c99c91ed9f7c0054
5,132
py
Python
thecube/fortnitecube.py
martinohanlon/thecube
41f7788cc0a754f3fc380d6a9db2fe1672d4b941
[ "MIT" ]
2
2021-12-27T18:19:46.000Z
2021-12-27T18:19:47.000Z
thecube/fortnitecube.py
martinohanlon/thecube
41f7788cc0a754f3fc380d6a9db2fe1672d4b941
[ "MIT" ]
null
null
null
thecube/fortnitecube.py
martinohanlon/thecube
41f7788cc0a754f3fc380d6a9db2fe1672d4b941
[ "MIT" ]
null
null
null
from gpiozero import Button from time import sleep, time import blinkt import random import requests import sys from constants import * FNT_URL = "https://api.fortnitetracker.com/v1/profile/{}/{}" FNT_REFRESH_TIME_SECS = 30 # debug shorter refresh # FNT_REFRESH_TIME_SECS = 10 class FortniteAPIError(Exception): pa...
25.788945
110
0.571707
91
0.017732
0
0
0
0
0
0
1,087
0.211808
0e04b755a0e6d8844b6bf932a0953df1cef59253
8,704
py
Python
server/application/utils_files.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
null
null
null
server/application/utils_files.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
1
2022-01-09T12:06:40.000Z
2022-01-09T12:06:40.000Z
server/application/utils_files.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
null
null
null
import os, sys from uuid import uuid4 import numpy as np from pathlib import Path import xml.etree.ElementTree as ET import copy import re from urllib import request, parse from pdfminer.layout import LAParams from pdfminer.high_level import extract_text_to_fp from pdf2image import convert_from_path import matplot...
37.679654
132
0.590648
0
0
0
0
0
0
0
0
2,942
0.338006
0e0641eb1c77685ac180e16ede2719bf186f1b48
616
py
Python
acq4/util/PySideImporter.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/util/PySideImporter.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/util/PySideImporter.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
# -*- coding: utf-8 -*- from __future__ import print_function """This module installs an import hook which overrides PyQt4 imports to pull from PySide instead. Used for transitioning between the two libraries.""" import imp class PyQtImporter: def find_module(self, name, path): if name == 'PyQt4' and pa...
29.333333
82
0.655844
331
0.537338
0
0
0
0
0
0
206
0.334416
0e0971e24a4cebbe3f58d427eb92c896a2027f86
619
py
Python
L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff import * dtTriggerPrimitiveDigis = cms.EDProducer("DTTrigProd", debug = cms.untracked.bool(False), # DT digis input tag digiTag = cms.InputTag("muonDTDigis"), # Convert output into DTTF sector nu...
36.411765
74
0.733441
0
0
0
0
0
0
0
0
237
0.382876
0e09835187c4782a7d307df7391d9bcf5ed91648
14,774
py
Python
PythonChessEnviroment.py
teleansh/PythonChessEnviorment
cd19a9148a0da8e69c0efcf21dd559ab2084e07a
[ "MIT" ]
null
null
null
PythonChessEnviroment.py
teleansh/PythonChessEnviorment
cd19a9148a0da8e69c0efcf21dd559ab2084e07a
[ "MIT" ]
1
2022-03-08T16:16:26.000Z
2022-03-08T16:16:26.000Z
PythonChessEnviroment.py
teleansh/PythonChessEnviorment
cd19a9148a0da8e69c0efcf21dd559ab2084e07a
[ "MIT" ]
null
null
null
b = "r n b q k b n r p p p p p p p p".split(" ") + ['.']*32 + "p p p p p p p p r n b q k b n r".upper().split(" ") def newBoard(): b = "r n b q k b n r p p p p p p p p".split(" ") + ['.']*32 + "p p p p p p p p r n b q k b n r".upper().split(" ") def display(): #white side view c , k= 1 ...
26.66787
173
0.425274
0
0
0
0
0
0
0
0
759
0.051374
0e0d7b53e41d2bf0a7a2e0799a229887f7c07708
5,408
py
Python
txosc/async.py
oubiwann/txosc
6560a0dc9ef564d785170d4529967599455e4f3e
[ "MIT" ]
1
2018-02-11T07:34:29.000Z
2018-02-11T07:34:29.000Z
txosc/async.py
oubiwann/txosc
6560a0dc9ef564d785170d4529967599455e4f3e
[ "MIT" ]
1
2019-01-14T22:42:45.000Z
2019-01-14T22:42:45.000Z
txosc/async.py
oubiwann/txosc
6560a0dc9ef564d785170d4529967599455e4f3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- test-case-name: txosc.test.test_async -*- # Copyright (c) 2009 Alexandre Quessy, Arjan Scherpenisse # See LICENSE for details. """ Asynchronous OSC sender and receiver using Twisted """ import struct import socket from twisted.internet import defer, protocol from twisted.application.intern...
28.765957
143
0.645895
4,892
0.904586
0
0
0
0
0
0
2,404
0.444527
0e0f6259ba624db7fa0c2c5d4fdc06aa5c711408
2,740
py
Python
main.py
theIsaacLim/hakdPizza
0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5
[ "MIT" ]
null
null
null
main.py
theIsaacLim/hakdPizza
0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5
[ "MIT" ]
null
null
null
main.py
theIsaacLim/hakdPizza
0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5
[ "MIT" ]
null
null
null
from selenium import webdriver from time import sleep # Sleep will pause the program import os # for getting the local path from json import loads dirpath = os.getcwd() # gets local path driver = webdriver.Chrome(dirpath + "/chromedriver") def login(username, password): global driver # LOGIN driver.fi...
42.153846
147
0.729562
0
0
0
0
0
0
0
0
1,351
0.493066
0e0fc6085ae3cea9518a28dc404a0b76c2ffa235
127,770
py
Python
pandatools/Client.py
Jon-Burr/panda-client
ff7ee8fc8481537cf604d983340eda102f041a20
[ "Apache-2.0" ]
null
null
null
pandatools/Client.py
Jon-Burr/panda-client
ff7ee8fc8481537cf604d983340eda102f041a20
[ "Apache-2.0" ]
null
null
null
pandatools/Client.py
Jon-Burr/panda-client
ff7ee8fc8481537cf604d983340eda102f041a20
[ "Apache-2.0" ]
null
null
null
''' client methods ''' import os if os.environ.has_key('PANDA_DEBUG'): print "DEBUG : importing %s" % __name__ import re import sys import time import stat import types try: import json except: import simplejson as json import random import urllib import struct import commands import cPickle as pickle i...
34.757889
149
0.555796
7,510
0.058777
0
0
0
0
0
0
31,642
0.247648
0e106a42c5cef8990bd1a339b05449023a909ba7
6,952
py
Python
pseudo_dojo/refdata/nist/atomicdata.py
fnaccarato/pseudo_dojo
5a887c13d617b533ab3aab23af2c9466728d2f75
[ "CC-BY-4.0" ]
null
null
null
pseudo_dojo/refdata/nist/atomicdata.py
fnaccarato/pseudo_dojo
5a887c13d617b533ab3aab23af2c9466728d2f75
[ "CC-BY-4.0" ]
null
null
null
pseudo_dojo/refdata/nist/atomicdata.py
fnaccarato/pseudo_dojo
5a887c13d617b533ab3aab23af2c9466728d2f75
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python import os.path import sys from pprint import pprint import nist_database def sort_dict(d, key=None, reverse=False): """ Returns an OrderedDict object whose keys are ordered according to their value. Args: d: Input dictionary key: functio...
29.087866
99
0.542434
0
0
0
0
0
0
0
0
2,692
0.387227
0e1150fe2b483ba84007e43e4d97cff782d1e09f
1,292
py
Python
collect_users/methods/papers_with_code/papers_with_code.py
UtrechtUniversity/SWORDS-UU
d9b45706566054541625ec363e41bdf97f58c6b1
[ "MIT" ]
1
2022-02-09T14:53:45.000Z
2022-02-09T14:53:45.000Z
collect_users/methods/papers_with_code/papers_with_code.py
UtrechtUniversity/SWORDS-UU
d9b45706566054541625ec363e41bdf97f58c6b1
[ "MIT" ]
28
2021-11-30T14:37:17.000Z
2022-03-22T12:46:53.000Z
collect_users/methods/papers_with_code/papers_with_code.py
UtrechtUniversity/SWORDS-UU
d9b45706566054541625ec363e41bdf97f58c6b1
[ "MIT" ]
1
2022-01-17T10:53:26.000Z
2022-01-17T10:53:26.000Z
""" This file retrieves Github usernames from PapersWithCode.com """ import argparse from pathlib import Path from datetime import datetime import pandas as pd from paperswithcode import PapersWithCodeClient if __name__ == '__main__': # Initiate the parser parser = argparse.ArgumentParser() # Add argum...
31.512195
74
0.630031
0
0
0
0
0
0
0
0
404
0.312693
0e13465d1affe7ff9fd1bfc60e3a0c993a225447
5,087
py
Python
mc.py
ABeastofPrey/AmazingGym
d92697f3aa1025550140d3318f045fa1f497a2ea
[ "MIT" ]
1
2018-05-20T02:52:51.000Z
2018-05-20T02:52:51.000Z
mc.py
ABeastofPrey/AmazingGym
d92697f3aa1025550140d3318f045fa1f497a2ea
[ "MIT" ]
null
null
null
mc.py
ABeastofPrey/AmazingGym
d92697f3aa1025550140d3318f045fa1f497a2ea
[ "MIT" ]
null
null
null
import gym import time import random import custom_envs import pprint class MCOBJ(object): def __init__(self, grid_mdp): self.env = grid_mdp # Just for pass the error. self.states = self.env.getStates() self.actions = self.env.getActions() def gen_random_pi_sample(self, num): ...
31.596273
105
0.500295
3,927
0.734705
0
0
0
0
0
0
981
0.183536
0e148b2e22f2b41098a22593e27a07d48422bed6
163
py
Python
website_multi_company/__init__.py
RL-OtherApps/website-addons
b0903daefa492c298084542de2c99f1ab13cd4b4
[ "MIT" ]
1
2020-03-01T03:04:21.000Z
2020-03-01T03:04:21.000Z
website_multi_company/__init__.py
RL-OtherApps/website-addons
b0903daefa492c298084542de2c99f1ab13cd4b4
[ "MIT" ]
null
null
null
website_multi_company/__init__.py
RL-OtherApps/website-addons
b0903daefa492c298084542de2c99f1ab13cd4b4
[ "MIT" ]
null
null
null
from . import models def post_load(): # use post_load to avoid overriding _get_search_domain when this module is not installed from . import controllers
23.285714
92
0.760736
0
0
0
0
0
0
0
0
88
0.539877
0e14aa7397011fb6549ac691e2e8a76643b7af57
2,107
py
Python
src/strategy/prepare_table.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
9
2017-05-14T05:12:32.000Z
2022-01-13T08:11:07.000Z
src/strategy/prepare_table.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
null
null
null
src/strategy/prepare_table.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
7
2017-08-28T08:31:43.000Z
2020-03-03T07:18:37.000Z
#coding=utf-8 #-*- coding: utf-8 -*- import os import sys sys.path.append("../frame/") from loggingex import LOG_INFO from loggingex import LOG_ERROR from loggingex import LOG_WARNING from mysql_manager import mysql_manager class prepare_table(): def __init__(self, conn_name, table_template_name): self....
30.1
82
0.65401
1,322
0.627432
0
0
0
0
0
0
231
0.109635
0e14cf2f5e13c579c96107e8e4c16365f6b6c29e
175
py
Python
Usage.py
josephworks/PythonWS
7391580de63291018094037f87b930fe44c6eae8
[ "MIT" ]
null
null
null
Usage.py
josephworks/PythonWS
7391580de63291018094037f87b930fe44c6eae8
[ "MIT" ]
3
2019-02-23T00:30:07.000Z
2020-09-28T05:25:20.000Z
Usage.py
josephworks/PythonWS
7391580de63291018094037f87b930fe44c6eae8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 print("""\ Usage: thingy [OPTIONS] -h Display this usage message -H hostname Hostname to connect to """)
25
57
0.52
0
0
0
0
0
0
0
0
166
0.948571
0e157e46738a2ac4c1910719044fabebfba253a4
1,118
py
Python
pythran/tests/cases/diffusion_pure_python.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/cases/diffusion_pure_python.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/cases/diffusion_pure_python.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
# Reference: http://continuum.io/blog/the-python-and-the-complied-python #pythran export diffusePurePython(float [][], float [][], int) #runas import numpy as np;lx,ly=(2**7,2**7);u=np.zeros([lx,ly],dtype=np.double);u[int(lx/2),int(ly/2)]=1000.0;tempU=np.zeros([lx,ly],dtype=np.double);diffusePurePython(u,tempU,500) #be...
41.407407
180
0.545617
0
0
0
0
0
0
0
0
567
0.507156
0e1611a439cc500182af60fc5b7313268d89e061
50
py
Python
Python/Uti1016_Distancia.py
bragabriel/Beecrowd
a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b
[ "MIT" ]
null
null
null
Python/Uti1016_Distancia.py
bragabriel/Beecrowd
a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b
[ "MIT" ]
null
null
null
Python/Uti1016_Distancia.py
bragabriel/Beecrowd
a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b
[ "MIT" ]
null
null
null
km = int(input()) print('{} minutos'.format(km*2))
25
32
0.62
0
0
0
0
0
0
0
0
12
0.24
0e1612123e14f431ace50f65fe276956a0f82853
815
py
Python
tests/test_use_profile.py
popadi/git-profile
ca20173f63f57c21868c4c49c1e5c515d4bc87fd
[ "MIT" ]
3
2019-08-24T19:24:49.000Z
2019-08-30T09:44:46.000Z
tests/test_use_profile.py
sturmianseq/git-profiles
ca20173f63f57c21868c4c49c1e5c515d4bc87fd
[ "MIT" ]
9
2019-09-01T13:25:25.000Z
2019-09-05T19:52:25.000Z
tests/test_use_profile.py
popadi/git-profile
ca20173f63f57c21868c4c49c1e5c515d4bc87fd
[ "MIT" ]
2
2020-09-14T16:22:26.000Z
2021-08-15T08:24:09.000Z
import os import sys import pytest from random import randrange myPath = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, myPath + "/../") import src.utils.messages as msg from src.executor import executor, parser from src.git_manager.git_manager import GitManager @pytest.fixture(autouse=True) def prep...
25.46875
64
0.710429
446
0.547239
53
0.065031
83
0.10184
0
0
48
0.058896
3850ec7be1a92046c96a2377fc82bb0172a1239a
1,150
py
Python
src/old_code_feb_12/supervised/supervised_learning.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
src/old_code_feb_12/supervised/supervised_learning.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
src/old_code_feb_12/supervised/supervised_learning.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys def set_path(path: str): try: sys.path.index(path) except ValueError: sys.path.insert(0, path) # set programatically the path to 'sim-environment' directory (alternately can also set PYTHONPATH) set_path('/media/suresh/research/awesome-robotics/active-slam/cat...
28.75
99
0.765217
0
0
0
0
0
0
0
0
376
0.326957
3851d980a5efbf62939503a79d5a3c1ef1ba74bc
2,413
py
Python
nio/crypto/key_request.py
BURG3R5/matrix-nio
8b3d7fc0dde6f5f03124a39299f9d7c735731861
[ "Apache-2.0" ]
null
null
null
nio/crypto/key_request.py
BURG3R5/matrix-nio
8b3d7fc0dde6f5f03124a39299f9d7c735731861
[ "Apache-2.0" ]
null
null
null
nio/crypto/key_request.py
BURG3R5/matrix-nio
8b3d7fc0dde6f5f03124a39299f9d7c735731861
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright ยฉ 2020 Damir Jeliฤ‡ <poljar@termina.org.uk> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PR...
34.971014
79
0.684625
1,417
0.586749
0
0
1,428
0.591304
0
0
1,262
0.522567
385257dce453f9dc6b74ab4ff222f4ac8563e40e
1,997
py
Python
server/editors/views.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
server/editors/views.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
27
2018-09-30T07:59:21.000Z
2020-11-05T19:25:41.000Z
server/editors/views.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from django.shortcuts import render from rest_framework import serializers from rest_framework import status from rest_framework.views import APIView from rest_framework.authtoken.models import Token from rest_framework.response import Response from .models import Editor fr...
31.203125
63
0.589885
1,649
0.825739
0
0
0
0
0
0
95
0.047571
38550991c5a6866344d99b7c34b1049931dfba9f
12,440
py
Python
LAUG/nlu/jointBERT_new/train.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
10
2021-07-10T12:40:42.000Z
2022-03-14T07:51:06.000Z
LAUG/nlu/jointBERT_new/train.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
5
2021-07-01T11:23:58.000Z
2021-09-09T05:51:02.000Z
LAUG/nlu/jointBERT_new/train.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
2
2021-09-13T16:26:42.000Z
2021-11-16T09:26:54.000Z
import argparse import os import json from torch.utils.tensorboard import SummaryWriter import random import numpy as np import zipfile import torch from transformers import AdamW, get_linear_schedule_with_warmup from LAUG.nlu.jointBERT_new.dataloader import Dataloader from LAUG.nlu.jointBERT_new.jointBERT im...
52.268908
347
0.573392
0
0
0
0
0
0
0
0
1,909
0.153457
3855ed738db4b64cfe3b9d2b137100a80877de8c
19,361
py
Python
app.py
Baiyuetribe/2019nCovGlobalDashboard
129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888
[ "MIT" ]
8
2020-02-18T08:21:00.000Z
2020-05-11T15:37:24.000Z
app.py
Baiyuetribe/2019nCovGlobalDashboard
129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888
[ "MIT" ]
1
2020-03-26T07:31:54.000Z
2020-03-26T07:31:54.000Z
app.py
Baiyuetribe/2019nCovGlobalDashboard
129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888
[ "MIT" ]
2
2020-03-13T04:18:06.000Z
2020-06-05T14:27:52.000Z
import json import time import requests import re from flask import Flask, render_template, jsonify from pyecharts.charts import Map, Timeline,Kline,Line,Bar,WordCloud from pyecharts import options as opts from pyecharts.globals import SymbolType app = Flask(__name__) #ๅญ—ๅ…ธ๏ผŒๅ—้™ไบŽ่ฐทๆญŒ่ฐƒ็”จ้™ๅˆถ cn_to_en = {'ๅฎ‰ๅ“ฅๆ‹‰': 'Angola', '้˜ฟๅฏŒๆฑ—':...
43.216518
330
0.594597
0
0
0
0
2,072
0.095453
0
0
10,893
0.50182
385a1293e848a01d5e145a500532168c2c1b01d7
752
py
Python
game/migrations/0002_table.py
koualsky/texas-holdem
b0c4f84ae5d4b679c870a9312376cfa1e208ec16
[ "MIT" ]
4
2019-09-05T21:22:46.000Z
2020-12-19T19:23:08.000Z
game/migrations/0002_table.py
koualsky/texas-holdem
b0c4f84ae5d4b679c870a9312376cfa1e208ec16
[ "MIT" ]
34
2019-08-07T11:58:07.000Z
2021-06-10T21:49:00.000Z
game/migrations/0002_table.py
koualsky/texas-holdem
b0c4f84ae5d4b679c870a9312376cfa1e208ec16
[ "MIT" ]
4
2020-04-05T03:42:10.000Z
2022-03-03T03:04:40.000Z
# Generated by Django 2.2.4 on 2019-08-03 15:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0001_initial'), ] operations = [ migrations.CreateModel( name='Table', fields=[ ('id', model...
30.08
114
0.56383
659
0.87633
0
0
0
0
0
0
127
0.168883
385af8dbd8e654da5aeddc36ed67c47b4de8fade
10,913
py
Python
tests/activity/test_activity_post_digest_jats.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/activity/test_activity_post_digest_jats.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/activity/test_activity_post_digest_jats.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
# coding=utf-8 import unittest from mock import patch from ddt import ddt, data from digestparser.objects import Digest import activity.activity_PostDigestJATS as activity_module from activity.activity_PostDigestJATS import activity_PostDigestJATS as activity_object import tests.activity.settings_mock as settings_mock...
40.269373
87
0.647668
10,093
0.92486
0
0
8,932
0.818473
0
0
2,967
0.271878
385c79e6128ba15d725a285dc68b5ab163c633e5
3,718
py
Python
torrent_client/algorithms/uploader.py
x0x/polygon
a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb
[ "MIT" ]
141
2016-05-24T19:33:07.000Z
2022-03-21T11:56:28.000Z
torrent_client/algorithms/uploader.py
x0x/polygon
a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb
[ "MIT" ]
11
2017-11-20T12:11:41.000Z
2022-01-04T15:42:19.000Z
torrent_client/algorithms/uploader.py
x0x/polygon
a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb
[ "MIT" ]
39
2017-01-13T05:19:25.000Z
2022-02-19T06:40:31.000Z
import asyncio import itertools import logging import random import time from typing import List, Iterable, cast from torrent_client.algorithms.peer_manager import PeerManager from torrent_client.models import Peer, TorrentInfo from torrent_client.utils import humanize_size class Uploader: def __init__(self, tor...
39.978495
106
0.654115
3,439
0.92496
0
0
0
0
1,855
0.498924
109
0.029317
385d6856a9a5bd3cc3198cc6a148973209e3fb30
1,898
py
Python
game/Tableros.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
game/Tableros.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
game/Tableros.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
from pygame import sprite, surface, Color from game.Bloques import CeldasTablero from game.Snake import Snake class AreaTablero(sprite.Sprite): def __init__(self, size, pos, bgcolor, estructura = None): sprite.Sprite.__init__(self) self.image = surface.Surface(size) self.image.fill(Color(bgcolor)) self.rect =...
37.215686
144
0.727608
1,783
0.93941
0
0
0
0
0
0
214
0.11275
385fbc5a17a50e64c4dcfcdc7d4027af3cdc018a
1,688
py
Python
Modules/Projects/models/project.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/Projects/models/project.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/Projects/models/project.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models, fields, api from odoo.exceptions import ValidationError # Class for project management and their relationships class Projects(models.Model): # Name of table _name = "projects.project" # Simple fields of the object name = fields.Char(string="Project titl...
41.170732
129
0.742299
1,475
0.873815
0
0
578
0.342417
0
0
844
0.5
385fcab1d94b44c44b147f9d7caf4a23de41ae7a
402
py
Python
models/food.py
ByK95/food_order
c3a40f00128cc381894b80b61ca6b919bbf49c4e
[ "MIT" ]
1
2022-01-20T10:30:05.000Z
2022-01-20T10:30:05.000Z
models/food.py
ByK95/food_order
c3a40f00128cc381894b80b61ca6b919bbf49c4e
[ "MIT" ]
null
null
null
models/food.py
ByK95/food_order
c3a40f00128cc381894b80b61ca6b919bbf49c4e
[ "MIT" ]
null
null
null
from app.shared.models import db from app.models.mixins import ModelMixin class Food(ModelMixin, db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(255), nullable=False) category_id = db.Column(db.Integer, db.ForeignKey("category.id"), nullable=False) restourant_id = db...
33.5
85
0.716418
325
0.808458
0
0
0
0
0
0
28
0.069652
3860c236069152282ade2ef47710a9608a5cce61
452
py
Python
Solutions.py/2563/r1_bird.py
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
2
2021-10-30T06:27:48.000Z
2021-10-30T08:14:50.000Z
Solutions.py/2563/r1_bird.py
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
null
null
null
Solutions.py/2563/r1_bird.py
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
null
null
null
tree_count, tree_hinput, tree_chosen = int(input()), input().split(), 0 tree_height = [int(x) for x in tree_hinput] for each_tree in range(tree_count): if each_tree==0 and tree_height[0]>tree_height[1]:tree_chosen+=1 elif each_tree==tree_count-1 and tree_height[each_tree]>tree_height[each_tree-1]:tree_chose...
56.5
100
0.75885
0
0
0
0
0
0
0
0
8
0.017699
3860cb5cba14b8fecfed007842043e8fa3e05ff6
2,230
py
Python
code/ExperimentModules/dataset_manager.py
PAL-ML/CLIPPER
c971c89a9315d27ddb007082ff209153859f5906
[ "MIT" ]
3
2021-06-05T05:00:54.000Z
2021-06-16T21:17:52.000Z
code/ExperimentModules/dataset_manager.py
PAL-ML/CLIPPER
c971c89a9315d27ddb007082ff209153859f5906
[ "MIT" ]
null
null
null
code/ExperimentModules/dataset_manager.py
PAL-ML/CLIPPER
c971c89a9315d27ddb007082ff209153859f5906
[ "MIT" ]
null
null
null
from . import datasets class DatasetManager: def __init__(self): self.available_datasets = { 'omniglot': datasets.OmniglotDataset(), 'lfw': datasets.LfwDataset(), 'clevr': datasets.ClevrDataset(), 'caltech_birds2011': datasets.CUBDataset(), ...
41.296296
112
0.622422
2,206
0.989238
0
0
0
0
0
0
442
0.198206
386175f2b9107f26e003609e3390ad4e1d9fa916
1,574
py
Python
setup.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
3
2019-02-09T10:52:55.000Z
2021-09-19T14:14:36.000Z
setup.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
null
null
null
setup.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
3
2018-03-04T18:05:02.000Z
2021-09-19T14:14:38.000Z
from setuptools import find_packages, setup from ticketus import __version__ as version setup( name='ticketus', version=version, license='BSD', author='Sam Kingston', author_email='sam@sjkwi.com.au', description='Ticketus is a simple, no-frills ticketing system for helpdesks.', url='https:...
32.791667
82
0.625159
0
0
0
0
0
0
0
0
952
0.604828
38621c0d16222e67db6c7b5b3f98915d36505bc9
35,178
py
Python
pygame_gui/elements/ui_window.py
OleksiiBulba/pygame_gui
6751b2796612f8b2ed6cc8b093507eeef7d106c5
[ "MIT" ]
null
null
null
pygame_gui/elements/ui_window.py
OleksiiBulba/pygame_gui
6751b2796612f8b2ed6cc8b093507eeef7d106c5
[ "MIT" ]
null
null
null
pygame_gui/elements/ui_window.py
OleksiiBulba/pygame_gui
6751b2796612f8b2ed6cc8b093507eeef7d106c5
[ "MIT" ]
null
null
null
from typing import Union, Tuple import pygame from pygame_gui._constants import UI_WINDOW_CLOSE, UI_WINDOW_MOVED_TO_FRONT, UI_BUTTON_PRESSED from pygame_gui._constants import OldType from pygame_gui.core import ObjectID from pygame_gui.core.interfaces import IContainerLikeInterface, IUIContainerInterface from pygame...
45.924282
100
0.541844
34,603
0.983599
0
0
0
0
0
0
7,375
0.209636
386222fd913fe9177b311050c4eb50f381d14d63
714
py
Python
_pytest/test_interpreter.py
awesome-archive/rasa_nlu
f58df5d86bac470e3a579ea07232bea0d90708b3
[ "Apache-2.0" ]
2
2016-12-20T13:19:44.000Z
2017-01-16T10:44:35.000Z
_pytest/test_interpreter.py
awesome-archive/rasa_nlu
f58df5d86bac470e3a579ea07232bea0d90708b3
[ "Apache-2.0" ]
null
null
null
_pytest/test_interpreter.py
awesome-archive/rasa_nlu
f58df5d86bac470e3a579ea07232bea0d90708b3
[ "Apache-2.0" ]
1
2017-01-02T15:16:49.000Z
2017-01-02T15:16:49.000Z
from rasa_nlu.interpreters.simple_interpreter import HelloGoodbyeInterpreter interpreter = HelloGoodbyeInterpreter() def test_samples(): samples = [ ("Hey there", {'text': "Hey there", 'intent': 'greet', 'entities': {}}), ("good bye for now", {'text': "good bye for now", 'intent': 'goodbye', 'ent...
44.625
117
0.460784
0
0
0
0
0
0
0
0
163
0.228291
38622882e267e4da59ec73aecc06c60747233d97
355
py
Python
Python/XGBoost/feature-importance.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/XGBoost/feature-importance.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/XGBoost/feature-importance.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
# Create the DMatrix: housing_dmatrix housing_dmatrix = xgb.DMatrix(data=X, label=y) # Create the parameter dictionary: params params = {'objective':'reg:linear', 'max_depth':4} # Train the model: xg_reg xg_reg = xgb.train(dtrain=housing_dmatrix, params=params, num_boost_round=10) # Plot the feature importances xgb....
27.307692
77
0.771831
0
0
0
0
0
0
0
0
167
0.470423
3863f84f9600ae0034635596fd41e100463bc7f4
646
py
Python
Camera.py
ArnaBannonymus/Arnab
a6949a43817bd9ce44f5318f558a8066d735ecc4
[ "MIT" ]
null
null
null
Camera.py
ArnaBannonymus/Arnab
a6949a43817bd9ce44f5318f558a8066d735ecc4
[ "MIT" ]
null
null
null
Camera.py
ArnaBannonymus/Arnab
a6949a43817bd9ce44f5318f558a8066d735ecc4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Aug 12 13:22:02 2018 @author: Arnab Bhowmik """ import cv2 import numpy as np cap=cv2.VideoCapture(1) while True: _,frame=cap.read() hsv=cv2.cvtColor(frame,cv2.COLOR_BGR2HSV) #hsv hue sat value lower_red=np.array([0,0,0]) upper_red=np.array...
20.83871
46
0.595975
0
0
0
0
0
0
0
0
132
0.204334
38648d598f12e3c1199c23af373d46072e83069c
811
py
Python
tests/api/circulation/test_loan_item_resolver.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
41
2018-09-04T13:00:46.000Z
2022-03-24T20:45:56.000Z
tests/api/circulation/test_loan_item_resolver.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
720
2017-03-10T08:02:41.000Z
2022-01-14T15:36:37.000Z
tests/api/circulation/test_loan_item_resolver.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
54
2017-03-09T16:05:29.000Z
2022-03-17T08:34:51.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # Invenio-Circulation 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 loan item resolver.""" from invenio_circulation.api import Loan def test_loan_item_resolver(ap...
30.037037
77
0.690506
0
0
0
0
0
0
0
0
368
0.453761
38654864183d04c052061939c5a348db4ef0dd54
2,611
py
Python
tools/coverage_helper.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
6
2015-02-06T23:41:01.000Z
2015-10-21T03:08:51.000Z
tools/coverage_helper.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
null
null
null
tools/coverage_helper.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
1
2019-10-02T08:41:50.000Z
2019-10-02T08:41:50.000Z
#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os # # CoverageHelper # # The CoverageHelper is an object which defines lists used by the coverage # scripts for grouping ...
26.11
80
0.630793
2,221
0.850632
0
0
0
0
0
0
1,365
0.522788
38688d8d8a376d1c2a562646fe27e88fb821e1f8
414
py
Python
pylayers/antprop/tests/test_subarray.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/antprop/tests/test_subarray.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/antprop/tests/test_subarray.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from pylayers.antprop.aarray import * import matplotlib.pyplot as plt import pdb print('--------------') print('antprop/test_subarray.py') print('--------------') fcGHz = 60 lamda = 0.3/fcGHz N1 = [ 4,4,1] N2 = [ 2,2,1] dm1 = [lamda/2.,lamda/2.,0] dm2 = [3*lamda,3*lamda,0] A1 = AntArray(fGHz=np.array([fcGHz]),N=N...
25.875
63
0.618357
0
0
0
0
0
0
0
0
74
0.178744
38689a46aa034aebe36b6be45065cc5c708473a6
5,789
py
Python
speckle/base/resource.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
24
2018-11-16T03:17:58.000Z
2021-11-19T11:32:01.000Z
speckle/base/resource.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
43
2019-01-15T17:48:24.000Z
2020-12-02T19:09:55.000Z
speckle/base/resource.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
12
2019-02-06T20:54:17.000Z
2020-12-01T21:49:06.000Z
import json from requests import Request from pydantic import BaseModel from pydoc import locate from typing import List, Optional import dataclasses from dataclasses import dataclass from datetime import datetime SCHEMAS = {} class ResourceBaseSchema(BaseModel): id: Optional[str] private: Optional[bool] ...
34.873494
114
0.566592
5,283
0.912593
0
0
0
0
0
0
941
0.16255
3869c52e550ca9f86c4f7c28797a767ac345488b
2,002
py
Python
alieninvaders/explosion.py
yatesmac/Alien-Invaders
152fbe43256a80905881055490167d6fe1e3e996
[ "MIT" ]
null
null
null
alieninvaders/explosion.py
yatesmac/Alien-Invaders
152fbe43256a80905881055490167d6fe1e3e996
[ "MIT" ]
null
null
null
alieninvaders/explosion.py
yatesmac/Alien-Invaders
152fbe43256a80905881055490167d6fe1e3e996
[ "MIT" ]
null
null
null
"""This module handles the creation of an Explosion instance.""" from os import pardir, path import pygame as pg from pygame.sprite import Sprite import color # Path template for the nine explosion images. IMG = path.join(pardir, "resources/images/explosions/explosion0{}.jpg") class Explosion(Sprite): """A cl...
37.773585
87
0.62038
1,717
0.857642
0
0
0
0
0
0
707
0.353147
3869ffe900c403550a635fd5893cce20c49720b4
298
py
Python
infra/controllers/errors/NotFoundError.py
JVGC/MyFinancesPython
5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826
[ "MIT" ]
null
null
null
infra/controllers/errors/NotFoundError.py
JVGC/MyFinancesPython
5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826
[ "MIT" ]
null
null
null
infra/controllers/errors/NotFoundError.py
JVGC/MyFinancesPython
5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826
[ "MIT" ]
null
null
null
from infra.controllers.contracts import HttpResponse class NotFoundError(HttpResponse): def __init__(self, message) -> None: status_code = 404 self.message = message body = { 'message': self.message } super().__init__(body, status_code)
19.866667
52
0.620805
242
0.812081
0
0
0
0
0
0
9
0.030201
386af50e69b05e3ea517743c301c1934214c6742
696
py
Python
workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py
vitorsm/workout-plan-server
74e315550c11a1afd684d1497693ff16afc4f9d8
[ "MIT" ]
null
null
null
workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py
vitorsm/workout-plan-server
74e315550c11a1afd684d1497693ff16afc4f9d8
[ "MIT" ]
null
null
null
workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py
vitorsm/workout-plan-server
74e315550c11a1afd684d1497693ff16afc4f9d8
[ "MIT" ]
null
null
null
from uuid import uuid4 from flask_sqlalchemy import SQLAlchemy from workout_plan_server.adapters.mysql.generic_repository import GenericRepository from workout_plan_server.adapters.mysql.models.exercise_model import ExerciseModel from workout_plan_server.domain.entities.exercise import Exercise from workout_plan_serv...
33.142857
85
0.817529
309
0.443966
0
0
0
0
0
0
0
0
386c3f2f2a4ebdfce03d0405cda3d156ec665a3d
2,149
py
Python
mysite/test/testperform.py
Cary19900111/locust
fac972685485049fc7d568208c8976c500da4407
[ "MIT" ]
null
null
null
mysite/test/testperform.py
Cary19900111/locust
fac972685485049fc7d568208c8976c500da4407
[ "MIT" ]
null
null
null
mysite/test/testperform.py
Cary19900111/locust
fac972685485049fc7d568208c8976c500da4407
[ "MIT" ]
null
null
null
from locust import HttpLocust,TaskSet,task #python crlocust.py -f mysite/test/testperform.py --no-web --run-time 5s --csv result -c 5 -r 1 from locust import events from gevent._semaphore import Semaphore import datetime '''ๅ†™็š„้’ฉๅญๅ‡ฝๆ•ฐ''' # from locust import Locust, TaskSet, events, task # mars_event = events.EventHook(...
33.578125
115
0.674732
351
0.158322
0
0
112
0.050519
0
0
1,030
0.464592
386cca9eb1e6638f6f9a9784464bc329651f71b7
34
py
Python
src/hackeme/backend/hackvm/type_codes.py
ThomasBollmeier/hackeme-native
1bd9eac3eb057661045bcc1a612f8fc704f6d809
[ "Apache-2.0" ]
null
null
null
src/hackeme/backend/hackvm/type_codes.py
ThomasBollmeier/hackeme-native
1bd9eac3eb057661045bcc1a612f8fc704f6d809
[ "Apache-2.0" ]
null
null
null
src/hackeme/backend/hackvm/type_codes.py
ThomasBollmeier/hackeme-native
1bd9eac3eb057661045bcc1a612f8fc704f6d809
[ "Apache-2.0" ]
null
null
null
class TypeCodes: LIST = 1
11.333333
16
0.558824
34
1
0
0
0
0
0
0
0
0
386e17eb42b38c18cf7a39804e238de49e4f6116
4,248
py
Python
src/data_preprocess.py
Umasangavi/Thyroid_Disorder_Prediction
6ef2b0a3f52e945b78dd756067cae01478e078a9
[ "MIT" ]
null
null
null
src/data_preprocess.py
Umasangavi/Thyroid_Disorder_Prediction
6ef2b0a3f52e945b78dd756067cae01478e078a9
[ "MIT" ]
1
2022-01-21T08:19:10.000Z
2022-01-21T08:22:47.000Z
src/data_preprocess.py
Umasangavi/Thyroid_disorder_prediction
6ef2b0a3f52e945b78dd756067cae01478e078a9
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import yaml import os import argparse from sklearn.impute import KNNImputer from logger import App_Logger file_object=open("application_logging/Loggings.txt", 'a+') logger_object=App_Logger() def read_params(config_path): with open(config_path) as yaml_file: ...
40.846154
158
0.626412
0
0
0
0
0
0
0
0
1,078
0.253766
3872a2d42f8cfe8870011a179ccbd8a81f44a9f5
680
py
Python
first_year/lmd/python_tests/induccion_suma_impares.py
chelunike/trust_me_i_am_an_engineer
40261dd8a6699910ef7d6bb7f63e2b961d6ae027
[ "Apache-2.0" ]
null
null
null
first_year/lmd/python_tests/induccion_suma_impares.py
chelunike/trust_me_i_am_an_engineer
40261dd8a6699910ef7d6bb7f63e2b961d6ae027
[ "Apache-2.0" ]
null
null
null
first_year/lmd/python_tests/induccion_suma_impares.py
chelunike/trust_me_i_am_an_engineer
40261dd8a6699910ef7d6bb7f63e2b961d6ae027
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*- impar = lambda n : 2 * n - 1 header = """ Demostrar que es cierto: 1 + 3 + 5 + ... + (2*n)-1 = n ^ 2 Luego con este programa se busca probar dicha afirmacion. """ def suma_impares(n): suma = 0 for i in range(1, n+1): suma += impar(i) return suma def main(): print(header) num ...
16.190476
59
0.617647
0
0
0
0
0
0
0
0
327
0.480882
3872e9a2f5c1058e44e25d6f8294aa9843e070f9
341
py
Python
Items/Armors/Chest.py
saisua/RAF-Game
79b2b618aa18c31a40c080865b58fac02c1cac68
[ "MIT" ]
null
null
null
Items/Armors/Chest.py
saisua/RAF-Game
79b2b618aa18c31a40c080865b58fac02c1cac68
[ "MIT" ]
null
null
null
Items/Armors/Chest.py
saisua/RAF-Game
79b2b618aa18c31a40c080865b58fac02c1cac68
[ "MIT" ]
null
null
null
from .Armor import Armor class Chest(Armor): LIFE_PER_LEVEL = 100 PROTECTION_PER_LEVEL = 5 DAMAGE_PART = 1.2 def __init__(self, owner, level:int=None, life:int=None, protection:int=None): self.name = "Chest armor" super().__init__(owner, owner.level if level is None else level, life, ...
26.230769
90
0.668622
305
0.894428
0
0
0
0
0
0
13
0.038123
3873964e8f758df7dc184439da0225ce4f856058
2,436
py
Python
api_v1/helpers.py
machariamarigi/shopping_list_api
79effc34145b25413f84ce02704281ccadf214ca
[ "MIT" ]
2
2018-08-18T12:53:49.000Z
2020-06-19T23:31:11.000Z
api_v1/helpers.py
machariamarigi/shopping_list_api
79effc34145b25413f84ce02704281ccadf214ca
[ "MIT" ]
21
2017-09-04T19:49:18.000Z
2017-12-19T09:07:39.000Z
api_v1/helpers.py
machariamarigi/shopping_list_api
79effc34145b25413f84ce02704281ccadf214ca
[ "MIT" ]
2
2017-09-15T18:43:02.000Z
2017-10-09T10:48:36.000Z
"""This module contains helper functions used in the API""" import datetime import json import re import string import random from functools import wraps from flask import request from api_v1.models import User def name_validalidation(name, context): """Function used to validate various names""" if len(name...
29.707317
77
0.607964
0
0
0
0
779
0.319787
0
0
735
0.301724
38741faa71519d517184c3c53ce4e0416df5b8e0
25,099
py
Python
lib/phidias/Runtime.py
corradosantoro/hephaestus
c40a534e3979cef7e6eeda1206aa93e25fdd55a8
[ "MIT" ]
4
2019-06-07T08:57:15.000Z
2021-08-30T10:40:23.000Z
lib/phidias/Runtime.py
corradosantoro/hephaestus
c40a534e3979cef7e6eeda1206aa93e25fdd55a8
[ "MIT" ]
null
null
null
lib/phidias/Runtime.py
corradosantoro/hephaestus
c40a534e3979cef7e6eeda1206aa93e25fdd55a8
[ "MIT" ]
1
2020-07-24T14:16:34.000Z
2020-07-24T14:16:34.000Z
# # Runtime.py # import types import threading #import copy from phidias.Types import * from phidias.Knowledge import * from phidias.Exceptions import * from phidias.Messaging import * DEFAULT_AGENT = "main" __all__ = [ 'DEFAULT_AGENT', 'Runtime', 'Plan' ] # ------------------------------------------------ class E...
34.241473
117
0.543408
24,411
0.972589
0
0
1,224
0.048767
0
0
3,081
0.122754
3875c54506abd3c3f854187b77048a2fc7f1b45c
245
py
Python
validators.py
mk-rn/django_cash_register
f317d94dd50817160e883e2f452f7b8e824f4a1c
[ "MIT" ]
null
null
null
validators.py
mk-rn/django_cash_register
f317d94dd50817160e883e2f452f7b8e824f4a1c
[ "MIT" ]
null
null
null
validators.py
mk-rn/django_cash_register
f317d94dd50817160e883e2f452f7b8e824f4a1c
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError def positive_number(value): """Checking the value. Must be greater than 0.""" if value <= 0.0: raise ValidationError('Count must be greater than 0', params={'value': value},)
27.222222
87
0.693878
0
0
0
0
0
0
0
0
86
0.35102
3875f7aa99170c1b5624a5092f12b0b84b4930ad
3,059
py
Python
others.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
others.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
others.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
import sensor, image, time, pyb from pid import PID from pyb import Servo from pyb import UART uart = UART(3, 19200) usb = pyb.USB_VCP() led_red = pyb.LED(1) # Red LED = 1, Green LED = 2, Blue LED = 3, IR LEDs = 4. led_green = pyb.LED(2) pan_pid = PID(p=0.07, i=0, imax=90) #่„ฑๆœบ่ฟ่กŒๆˆ–่€…็ฆ็”จๅ›พๅƒไผ ่พ“๏ผŒไฝฟ็”จ่ฟ™ไธชPID tilt_pid = PID(p=0...
31.536082
138
0.590062
0
0
0
0
0
0
0
0
1,056
0.316073
3877c817f150e95b91b3d8ee611f5c78f11d6109
4,121
py
Python
executiontime_calculator.py
baumartig/paperboy
01659cda235508eac66a50a9c16c4a6c531015bd
[ "Apache-2.0" ]
3
2015-02-26T06:39:40.000Z
2017-07-04T14:56:18.000Z
executiontime_calculator.py
baumartig/paperboy
01659cda235508eac66a50a9c16c4a6c531015bd
[ "Apache-2.0" ]
null
null
null
executiontime_calculator.py
baumartig/paperboy
01659cda235508eac66a50a9c16c4a6c531015bd
[ "Apache-2.0" ]
1
2018-02-21T00:12:06.000Z
2018-02-21T00:12:06.000Z
from datetime import datetime from datetime import timedelta from job import WEEKDAYS from job import Job def calculateNextExecution(job, now=datetime.now()): executionTime = now.replace() if job.executionType == "weekly": diff = WEEKDAYS.index(job.executionDay) - now.weekday() if diff < 0 an...
33.504065
100
0.580199
0
0
0
0
0
0
0
0
605
0.146809