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
2f4adf626e0639100f39276c7a36ef5fa92541f9
1,185
py
Python
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
2
2021-03-03T06:11:30.000Z
2021-03-05T02:57:02.000Z
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import json df = pd.read_excel("OPIMD Calc_checked_03Feb21AL.xlsx", sheet_name=None) obj = {} dz = df["OPIMD15ACCESSDATAZONERANK"] dz = dz.dropna(subset=["datazone"]) dz.datazone = dz.datazone.astype(int) dz.index = dz.datazone obj["dz"] = dz.OPIMDAccPopRank_AL.to_dict() ...
25.212766
72
0.709705
0
0
0
0
0
0
0
0
285
0.240506
2f4c73bdc5e9b2d9296a2574b70a67727f97ee93
1,806
py
Python
forvo.py
edoput/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
9
2018-09-03T22:36:53.000Z
2021-11-09T11:59:14.000Z
forvo.py
EdoPut/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
null
null
null
forvo.py
EdoPut/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
2
2015-01-27T15:09:26.000Z
2017-01-29T04:39:22.000Z
import requests import urllib def ForvoRequest(QUERY, LANG, apikey, ACT='word-pronunciations', FORMAT='mp3', free= True): # action, default is 'word-pronunciations', query, language, apikey, TRUE if free api(default), FALSE if commercial # Return a list of link to mp3 pronunciations for the word QUERY in L...
31.137931
121
0.516058
0
0
0
0
0
0
0
0
818
0.452935
2f4c98ccb6eda3b00afce725dc8baea135ce04d6
422
py
Python
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
def fib(x): if not isinstance(x, int): print "argument must be an integer" return if x == 0: return 0 a, b = 0, 1 for i in range(x-1): a, b = b, a + b return b def fib_rec(x): if not isinstance(x, int): raise ValueError("argument must be an integer") # an...
23.444444
87
0.537915
0
0
0
0
0
0
0
0
89
0.2109
2f4cad023005927c7b37c2c98bbb63ef5319fadc
1,336
py
Python
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import re __all__ = ['register_table_name', 'sql_query'] batch_table_name_map = dict() stream_table_name_map = dict() def register_table_name(op, name: str, op_type: str): if op_type == "batch": batch_table_name_map[name] = op elif op_type == "stream": stream_table_name_map[name] = op el...
28.425532
65
0.654192
0
0
0
0
0
0
0
0
152
0.113772
2f4d2891267d928eb5b2260208cbd4b134295605
3,790
py
Python
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Functions for working with the codepage on Windows systems """ import logging from contextlib import contextmanager from salt.exceptions import CodePageError log = logging.getLogger(__name__) try: import pywintypes import win32console HAS_WIN32 = True except ImportError: HAS_WIN32 = False # A...
25.608108
88
0.61715
0
0
1,325
0.349604
1,341
0.353826
0
0
1,693
0.446702
2f4d57d728b00fc588f9af5da19650e009e95339
827
py
Python
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
from flask import Flask, render_template from application.settings import STATIC from application.storage import storage app = Flask(__name__, static_url_path=STATIC) @app.route('/') def hello_world(): storage_dataset = storage.load_data() labels = [] datasets = {} for label, dataset in storage_dat...
25.84375
50
0.562273
0
0
0
0
655
0.792019
0
0
85
0.102781
2f4e64d9de5293438f0fe185689a4d11efc8c4c9
1,857
py
Python
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
"""Fun section of CLI command.""" import json import logging import time from pprint import pformat, pprint import click from fabric.colors import red @click.group() def cli(): """My fun program!""" pass @cli.command() def progress(): """Sample progress bar.""" i = range(0, 200) logging.debug('...
22.925926
70
0.611739
0
0
0
0
1,681
0.905223
0
0
565
0.304254
2f4ee2585931ea1270d6eb83cfe79d8eaf1f4d33
1,851
py
Python
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import unittest import unittest.mock as mock import pytest from smqtk.algorithms.descriptor_generator import DescriptorGenerator from smqtk.algorithms.descriptor_generator.colordescriptor.colordescriptor \ import ColorDescriptor_Image_csift # arbitrary leaf class from smqtk.utils.configuration import configurati...
42.068182
79
0.690438
1,368
0.73906
0
0
1,513
0.817396
0
0
234
0.126418
2f54a4c20f5d809def78444ea740f895640d9cbe
557
py
Python
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
3
2020-07-23T06:37:43.000Z
2022-01-27T09:40:40.000Z
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
337
2018-07-12T05:56:29.000Z
2022-03-30T02:40:41.000Z
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
2
2020-02-24T00:05:46.000Z
2020-07-15T07:02:29.000Z
# Generated by Django 2.1.7 on 2019-04-18 09:15 from django.db import migrations, models import django.db.models.deletion import django_fsm class Migration(migrations.Migration): dependencies = [ ('conservation', '0019_auto_20190410_1329'), ] operations = [ migrations.RenameModel( ...
23.208333
52
0.642729
413
0.741472
0
0
0
0
0
0
176
0.315978
2f57b78b84caa4984e3516eb70876b6001368c78
1,141
py
Python
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
10
2021-01-10T09:39:16.000Z
2022-02-05T06:40:47.000Z
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
null
null
null
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
1
2021-01-11T17:04:06.000Z
2021-01-11T17:04:06.000Z
# Generated by Django 3.1.5 on 2021-04-28 16:22 import ckeditor.fields from django.db import migrations, models import django_minio_backend.models class Migration(migrations.Migration): dependencies = [ ('news', '0004_profile_info'), ] operations = [ migrations.AddField( mod...
28.525
179
0.595092
990
0.86766
0
0
0
0
0
0
161
0.141104
2f57fea89f96d0ae41ee6422418756f6c9d832f5
1,433
py
Python
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
1
2022-02-11T04:29:18.000Z
2022-02-11T04:29:18.000Z
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
null
null
null
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
null
null
null
import socket from threading import Thread, Timer class Invokeable: def __init__(self, signal, *args, **kwargs): self._signal = signal self._args = args self._kwargs = kwargs @property def signal(self): return self._signal @property def kwargs(self): retur...
22.390625
59
0.5806
1,174
0.81926
0
0
118
0.082345
0
0
17
0.011863
2f585f0414875528a6779f295b93677e10c21cf1
5,206
py
Python
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
null
null
null
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
null
null
null
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
4
2019-04-30T09:07:22.000Z
2019-07-02T08:51:22.000Z
from . import db from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin from . import login_manager from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin, db.Model): __tabl...
37.185714
82
0.680177
4,918
0.944679
0
0
306
0.058778
0
0
308
0.059163
2f59a50ee0f4047fe095b3e0f94aa7691fc20820
2,139
py
Python
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
1
2022-01-06T09:05:06.000Z
2022-01-06T09:05:06.000Z
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
36.254237
81
0.777466
0
0
0
0
0
0
0
0
695
0.324918
2f59b443158d106a76a2bebe88570da44bbc0fe9
5,838
py
Python
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
import unittest from solution.rotated_array_search import RotatedArraySearch class TestCasesRotatedArraySearch(unittest.TestCase): def input_list_is_none_return_minus_one(self: object) -> None: # Arrange rotated_array_search: RotatedArraySearch = RotatedArraySearch() input_list: list = Non...
33.94186
107
0.601918
5,759
0.986468
0
0
0
0
0
0
712
0.12196
2f5b87677f26662c1ce0c7a5ee5aaf173034c184
3,637
py
Python
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
5
2019-05-06T01:27:55.000Z
2020-03-12T09:50:08.000Z
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
137
2019-04-06T12:35:29.000Z
2020-05-05T10:02:36.000Z
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
27
2019-04-05T22:03:41.000Z
2021-03-05T00:05:00.000Z
############################################################### # pytest -v --capture=no tests/test_keygroup.py # pytest -v tests/test_keygroup.py ############################################################### #import pytest import os from cloudmesh.common.variables import Variables from cloudmesh.common.Benchmark i...
25.978571
63
0.56915
2,539
0.698103
0
0
0
0
0
0
2,462
0.676932
2f5cb793e2e748f1c572ea256bcf2c1a860ee543
2,344
py
Python
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
3
2021-02-11T14:00:08.000Z
2021-10-13T20:41:21.000Z
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
import pytest import pandas as pd import numpy as np from blinpy import models data = pd.DataFrame( {'x': np.array( [0.0, 1.0, 1.0, 2.0, 1.8, 3.0, 4.0, 5.2, 6.5, 8.0, 10.0]), 'y': np.array([5.0, 5.0, 5.1, 5.3, 5.5, 5.7, 6.0, 6.3, 6.7, 7.1, 7.5])} ) def test_linear_model(): # 1) ...
22.980392
80
0.50128
0
0
0
0
0
0
0
0
260
0.110922
2f5daa6050352bd82f556af83e14e2830de366ac
3,226
py
Python
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
60
2018-09-26T15:46:00.000Z
2021-10-10T02:37:14.000Z
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
1,706
2018-09-26T16:11:22.000Z
2021-08-20T13:37:59.000Z
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
griffinmilsap/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
11
2019-03-14T13:23:51.000Z
2022-01-25T01:29:16.000Z
import pprint import time import json from gtmcore.dispatcher import Dispatcher, jobs from lmsrvlabbook.tests.fixtures import fixture_working_dir class TestLabBookServiceQueries(object): def test_query_finished_task(self, fixture_working_dir): """Test listing labbooks""" d = Dispatcher() ...
31.320388
103
0.532548
3,076
0.953503
0
0
0
0
0
0
1,506
0.466832
2f5e89412b184aa3f2abac3805b9bf927e055845
204
py
Python
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
import re def verify(phn_no): design = "[789]\d{9}$" if re.match(design,phn_no): return "yes" else: return "No" n = int(input()) for i in range(n): print(verify(input()))
18.545455
31
0.553922
0
0
0
0
0
0
0
0
22
0.107843
2f6096fad4d8b4fcb9ab49eab731fdc3465207c6
1,632
py
Python
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
15
2020-09-11T19:25:07.000Z
2022-03-12T16:34:53.000Z
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
null
null
null
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
3
2021-12-24T19:39:53.000Z
2022-03-29T01:06:28.000Z
from MAPLEAF.Motion import ForceMomentSystem, Inertia, Vector from MAPLEAF.Rocket import RocketComponent __all__ = [ "SampleStatefulComponent" ] class SampleStatefulComponent(RocketComponent): def __init__(self, componentDictReader, rocket, stage): self.rocket = rocket self.stage = stage s...
42.947368
128
0.694853
1,485
0.909926
0
0
0
0
0
0
399
0.244485
2f610ddfbb4015ca897145b09e2fa1a4b5263289
866
py
Python
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array ZERO, ONE, TWO = 0, 1, 2 # Time -> O(n) # Space -> O(1) inplace def sort_by_counting(A): cnt_0 = cnt_1 = cnt_2 = 0 # Count the number of 0s, 1s and 2s in the array for num in A: if num == ZERO: cnt_0 += 1 elif num == ONE: cnt_...
16.339623
52
0.469977
0
0
0
0
0
0
0
0
248
0.286374
2f6154e27302aac990c76151fe6022aab6340e63
8,601
py
Python
public/yum-3.2.28/callback.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
8
2021-11-26T06:19:06.000Z
2022-01-11T01:30:11.000Z
initrd/usr/share/yum-cli/callback.py
OpenCloudOS/OpenCloudOS-tools
06b12aab3182f4207d78a5d8733be03f0d7b69a4
[ "MulanPSL-1.0" ]
5
2021-02-02T08:17:10.000Z
2022-02-27T06:53:42.000Z
public/yum-3.2.28/callback.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
2
2021-12-21T08:36:02.000Z
2021-12-21T08:55:38.000Z
#!/usr/bin/python -t # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it...
36.914163
87
0.482153
7,671
0.891873
0
0
0
0
0
0
1,643
0.191024
2f61d9c0592b835198eb2ed4703fc9cefded5f37
1,911
py
Python
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy from miradar_node.msg import PPI, PPIData from visualization_msgs.msg import MarkerArray, Marker from geometry_msgs.msg import Point import dynamic_reconfigure.client class PPIVisualizer: def __init__(self): self.pub = rospy.Publisher("/miradar/markers", MarkerArray, qu...
32.948276
83
0.591837
1,574
0.823653
0
0
0
0
0
0
150
0.078493
2f62350af98cfe5e5bc543e35cb2ce81345228a2
3,561
py
Python
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import psycopg2 import json import pandas as pd import time app = dash.Dash(__name__) #app.css.config.serve_locally=False #app.css.append_css( # {'external_url': 'https://codepen.io/amyosh...
30.965217
193
0.48975
0
0
0
0
2,443
0.686043
0
0
1,184
0.332491
2f63b5c96ba7f532ebe24f05547c39f51d21dc62
1,291
py
Python
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
5
2021-11-19T18:57:27.000Z
2022-03-19T23:53:45.000Z
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
5
2021-11-07T02:43:26.000Z
2022-03-06T03:16:28.000Z
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
3
2021-11-19T18:57:28.000Z
2021-11-19T19:02:39.000Z
import pymongo from .config import DB_PASSWORD, DB_USER, CLUSTER_NAME, SUBDOMAIN, DB_NAME from .exceptions import CharacterNotFound, PoemAuthorNotFound class DatabaseService: def __init__(self): client = pymongo.MongoClient( f"mongodb+srv://{DB_USER}:{DB_PASSWORD}@{CLUSTER_NAME}.{SUBDOMAIN}.m...
28.065217
101
0.652982
1,103
0.854376
0
0
0
0
0
0
127
0.098373
2f6638f61b3058472b08244c7bbaf61f509b9975
4,525
py
Python
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
# imports from collections import defaultdict import numpy as np import matplotlib.pyplot as pyplot # pycsep imports import csep from csep.utils import stats, plots # experiment imports from experiment_utilities import ( load_zechar_catalog, plot_consistency_test_comparison, read_zechar_csv_t...
31.206897
113
0.651271
0
0
0
0
0
0
0
0
1,219
0.269392
2f677c0ab09b208476f962949003f247df030535
10,284
py
Python
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
5
2020-01-01T19:12:34.000Z
2020-05-16T08:57:08.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
1
2020-04-26T09:51:55.000Z
2020-04-26T10:41:25.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
null
null
null
import os import re import sys import time import puzzles from csp import * from search import * from utils import * class Kakuro(CSP): def __init__(self, puzzle): self.puzzle = puzzle self.rows_size = len(puzzle) self.cols_size = len(puzzle[0]) self.variables = self.get_variables(...
40.809524
115
0.50564
8,843
0.859879
0
0
0
0
0
0
1,362
0.132439
2f6b470e4d68764c82c5e960377985365be6d841
49
py
Python
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
C, N = map(int, input().split(' ')) print(C % N)
16.333333
35
0.510204
0
0
0
0
0
0
0
0
3
0.061224
2f6b78883c06f33b085d614b2c51070339de771d
2,682
py
Python
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
import csv import os import sys import matplotlib.pyplot as plt from metrics.index import metrics from plot_package.helpers import ascendence_label, descendence_label, with_sign if len(sys.argv) != 2: print(f"{__file__} sample_name.csv") sys.exit(1) sample_name = sys.argv[1] # set size plt.figure(figsize=(...
28.531915
99
0.688292
0
0
0
0
0
0
0
0
890
0.331842
2f6b87929186c7b4d57d3ad6750b0986257cf867
662
py
Python
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
#!/user/bin/env python # -*- coding:utf-8 -*- # 作者:zm6 # 创建:2021-03-19 # 更新:2021-03-19 # 用意:打印N以内的质数 import time # 比较代码运行时间 def list_prime(n): num = 0 for i in range(2, n + 1): is_prime = 1 #预设质数为是 for j in range(2, i - 1): if i % j == 0: is_prime = 0 #设置质数为否 ...
16.55
54
0.493958
0
0
0
0
0
0
0
0
301
0.385897
2f6cee267527184d028d64eb983074f84ea9f058
2,246
py
Python
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
1
2020-11-08T23:51:29.000Z
2020-11-08T23:51:29.000Z
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
import glob import os from pkg_resources import resource_filename import mbuild as mb import parmed as pmd import pytest from foyer import Forcefield from foyer.tests.utils import get_fn FF_DIR = resource_filename('foyer', 'forcefields') FORCEFIELDS = glob.glob(os.path.join(FF_DIR, '*.xml')) def test_load_files()...
31.194444
72
0.684328
0
0
0
0
0
0
0
0
183
0.081478
2f6d26b42b45ea8ec8df168ee13e107fabe9add1
407
py
Python
Back/ns_portal/database/main_db/troles_model.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
1
2019-01-22T15:16:43.000Z
2019-01-22T15:16:43.000Z
Back/ns_portal/database/main_db/troles_model.py
NaturalSolutions/NsPortal
bcd07fdf015948a82f4d0c3c9a02f513b2d99f5d
[ "MIT" ]
16
2015-09-28T14:46:13.000Z
2020-04-20T10:34:25.000Z
Back/ns_portal/database/main_db/troles_model.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
10
2015-05-06T08:05:09.000Z
2020-01-27T13:39:47.000Z
from ns_portal.database.meta import ( Main_Db_Base ) from sqlalchemy import ( Column, Integer, String ) class TRoles(Main_Db_Base): __tablename__ = 'TRoles' TRol_PK_ID = Column( Integer, primary_key=True ) TRol_Label = Column( String(250), nullable=Fals...
15.653846
37
0.594595
284
0.697789
0
0
0
0
0
0
8
0.019656
2f6fd35b1512af4a2c444f8b5323ece8c562f37c
2,869
py
Python
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
7
2021-02-08T20:41:23.000Z
2022-03-12T00:21:37.000Z
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
""" Form validators for authorization """ import re from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired, Length, ValidationError, Email, EqualTo from cloudcourseproject.src.model import User def password_validator(password): """ Va...
42.191176
117
0.684559
2,113
0.736494
0
0
0
0
0
0
1,097
0.382363
2f705c1639774ae7481bbdfb1680d2106c872e2a
1,418
py
Python
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
22
2020-10-07T21:32:07.000Z
2022-03-21T19:21:36.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-07-16T15:22:46.000Z
2020-10-28T15:18:32.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-10-08T10:30:04.000Z
2022-03-19T09:21:51.000Z
import pathlib from mara_pipelines.commands.sql import ExecuteSQL, Copy from mara_pipelines.pipelines import Pipeline, Task from mara_pipelines import config pipeline = Pipeline( id="load_marketing_data", description="Jobs related with loading marketing leads data from the backend database", max_number_of...
32.227273
108
0.61213
0
0
0
0
0
0
0
0
487
0.343441
2f710ce3e46ffdc56061d382495ca8df6e25a15b
320
py
Python
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
from django.urls import path,include from .views import menu, image, weixinFile urlpatterns = [ path('menu/list', menu.get_menu), path('menu/user', menu.UserMenu.as_view()), path('image', image.ImageView.as_view()), path('saveWX', weixinFile.saveWX), path('getRecentWX', weixinFile.getRecentWX), ]
26.666667
48
0.696875
0
0
0
0
0
0
0
0
50
0.15625
2f7149167478c04bd0604548dfe0f8ebb31e11a2
1,178
py
Python
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from navigation import Link from .permissions import ( permission_key_delete, permission_key_receive, permission_key_view, permission_keyserver_query ) link_private_keys = Link( icon='fa fa-key', permissions=...
31.837838
77
0.749576
0
0
0
0
0
0
0
0
323
0.274194
2f73b6858df8269c4f5f2480de3342f864156c6c
1,489
py
Python
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
""" Problem : RNA Splicing URL : http://rosalind.info/problems/splc/ Author : David P. Perkins """ import fasta def getCodingRegion(DNAString, introns): #print("DNA String", DNAString, "introns", introns) codingString = list() workingString = DNAString while workingString: for curI...
29.78
85
0.601746
0
0
0
0
0
0
0
0
368
0.247146
2f74e4a6873c5b5dffd070a88fe2c8e9d487f559
191
py
Python
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
import os def encode(s): if isinstance(s, bytes): return s.decode('utf-8', 'ignore') else: return str(s) path_joiner = os.path.join path_basename = os.path.basename
17.363636
42
0.633508
0
0
0
0
0
0
0
0
15
0.078534
2f75db3882d66a7931843a46ed92b1bea9dfaf2f
6,448
py
Python
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-07-01T14:41:38.000Z
2021-11-28T12:54:49.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-08-23T15:05:24.000Z
2020-12-16T10:02:20.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
1
2021-07-16T13:41:21.000Z
2021-07-16T13:41:21.000Z
"""Interrupt field tests.""" from copy import deepcopy from unittest import TestCase from ..testbench import RegisterFileTestbench class TestInterruptFields(TestCase): """Interrupt field tests""" def test_fields(self): """test interrupt fields""" fields = [] types = { typ:...
38.380952
89
0.498759
6,314
0.979218
0
0
0
0
0
0
1,444
0.223945
2f762c138bc0fd2f04d2c1539f4eca93c9446723
1,745
py
Python
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
import tornado.ioloop import tornado.web import tornado.options from tornado.log import gen_log ''' Alert Manager Documentation: https://prometheus.io/docs/alerting/configuration/ Sample alertmanager message: { "version": "4", "groupKey": <string>, // key identifying the group of alerts (e.g. to deduplicate)...
27.698413
177
0.638395
407
0.233238
0
0
0
0
224
0.128367
966
0.553582
2f76d7407f4890886daf9577fd641a2214d9abc6
1,848
py
Python
backend/serializers.py
richardswei/werk
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
null
null
null
backend/serializers.py
richardswei/werk
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
8
2020-03-21T01:57:31.000Z
2021-09-22T18:46:07.000Z
backend/serializers.py
richardswei/werkit
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
null
null
null
from rest_framework import serializers from backend.models import TodoItem, Note from django.contrib.auth import authenticate, get_user_model class TodoItemSerializer(serializers.ModelSerializer): class Meta: model = TodoItem fields = ('id', 'created', 'updated', 'due', 'title', 'description', 'pr...
33.6
113
0.679113
1,694
0.916667
0
0
0
0
0
0
510
0.275974
2f7707e7a77d86241b0db0b4c74b1a925d1c197b
695
py
Python
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2018-02-23T20:20:45.000Z
2018-02-23T20:20:45.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2016-10-25T18:00:15.000Z
2016-10-25T18:00:15.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
null
null
null
from rstem.led_matrix import FrameBuffer from rstem.mcpi import minecraft, control import time control.show() mc = minecraft.Minecraft.create() SCALE = 25 fb = FrameBuffer() count = 0 FLASH_COUNT = 3 flash_lit = True while True: pos = mc.player.getTilePos() x = round(pos.x/SCALE + (fb.width-1)/2) x_out_of_bound...
19.305556
61
0.683453
0
0
0
0
0
0
0
0
0
0
2f793c352ccb3c8ed1a615cf95be1f974da7e115
10,833
py
Python
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
import os from os.path import join as osp import numpy as np from tqdm import tqdm import wandb import torch import torch.nn as nn import torch.optim as optim from torch.cuda import amp import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from torch import autograd from torch...
48.361607
141
0.63925
9,637
0.889597
0
0
0
0
0
0
1,975
0.182313
2f79b110e6695d3ccede296e521acb7c60c79294
889
py
Python
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
from backend.common.consts.notification_type import NotificationType from backend.common.models.notifications.verification import ( VerificationNotification, ) def test_str(): notification = VerificationNotification("https://thebluealliance.com/", "password") assert "{'verification_key': " in str(notifica...
34.192308
87
0.786277
0
0
0
0
0
0
0
0
161
0.181102
2f7b986c2b053cb63e12ef06cb1f0c6623d1ab5a
4,043
py
Python
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
class Generator(object): def __init__(self): self.tables = [] self.alters = [] self.triggers = [] def write_to_file(self, output_file): with open(output_file, 'w') as sql_file: sql_file.write('{0}{1}'.format('\n'.join(table for table in self.tables), '\n')) ...
43.010638
108
0.594855
3,945
0.975761
0
0
0
0
0
0
991
0.245115
2f7d4b66c546d9cc934e15934759dad2ba2d7078
1,967
py
Python
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
null
null
null
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
9
2016-03-24T07:48:35.000Z
2018-10-19T13:28:04.000Z
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
1
2015-04-03T08:42:41.000Z
2015-04-03T08:42:41.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
32.783333
79
0.627351
1,205
0.612608
0
0
0
0
0
0
1,519
0.772242
2f7fed0d5af3b96a037248f18b9e9cf73c47b30c
7,847
py
Python
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
import os import ConfigParser mu0 = 1.25663706e-6 class SACConfig(object): def __init__(self, cfg_file=os.path.dirname(__file__) + '/sac_config.cfg'): self.cfg_file = cfg_file self.cfg = ConfigParser.SafeConfigParser() self.cfg.read(self.cfg_file) def _get_value(self, section, optio...
29.836502
79
0.521601
7,794
0.993246
0
0
4,388
0.559195
0
0
1,800
0.229387
2f80a6cd8804248e492bd75be4cdf855bd46b3e3
1,606
py
Python
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
3
2021-03-30T12:53:49.000Z
2021-09-22T18:44:52.000Z
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models from django.db.models import Q from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ # Create your models here. class Location (models.Model): name = models.CharField( max_length=100, verbose_name='Name of...
30.301887
105
0.619552
1,398
0.870486
0
0
0
0
0
0
313
0.194894
2f80bcfa95cb3fbe5e797d073a38bc12a4dae7f4
842
py
Python
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
"""Module configures project's main logger.""" import logging from loguru import logger def disable_usp_logging() -> None: """Disable logging of ultimate-sitemap-parser (usp) library. Usp package initializes default logging.Logger() each time it imports something from its core submodules. Therefor...
24.764706
78
0.709026
0
0
0
0
0
0
0
0
432
0.513064
2f8142cd627ecd115f6acdab00511ac3d94dfb10
14,213
py
Python
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings from typing import Any, List, Callable, Tuple, Union, Collection, FrozenSet, Optional, Iterable, Set from .base import DependencyBase, dataclass from .tag import Tag ExtractorFunc = Callable[[Any], Optional[dict]] class Scopes: """ Generate dependencies that ...
42.810241
139
0.642651
13,909
0.978611
0
0
2,148
0.151129
0
0
10,122
0.712165
2f8296613ef32d75696e51924c20cb22faf6bba2
812
py
Python
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
4
2019-01-06T17:56:07.000Z
2021-03-21T19:16:35.000Z
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
9
2019-10-21T17:23:53.000Z
2021-06-10T21:06:25.000Z
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
2
2019-04-29T11:48:59.000Z
2020-01-06T09:54:55.000Z
import logging import requests import requests_cache from django.conf import settings from django.http import HttpResponse, HttpRequest try: from django.utils.deprecation import MiddlewareMixin except ImportError: MiddlewareMixin = object from .api import usergroups from .models import DataportenUser # Cach...
26.193548
60
0.758621
205
0.252463
0
0
0
0
0
0
57
0.070197
2f853129c44d31a1158c0bd481a49cd736cdcaa4
7,326
py
Python
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
3
2021-08-23T02:49:09.000Z
2021-08-24T01:48:14.000Z
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
null
null
null
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
1
2021-08-23T03:02:39.000Z
2021-08-23T03:02:39.000Z
# -*-coding:utf-8-*- import base64 import copy from .func import xor, rotl, get_uint32_be, put_uint32_be, bytes_to_list, list_to_bytes, padding, un_padding BOXES_TABLE = [ 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05, 0x2b, 0x67, 0x9a, 0x76, 0x2a,...
15.822894
108
0.632678
3,553
0.465784
0
0
726
0.095176
0
0
1,345
0.176324
2f86b378e72ad44c8909918ac3d29f4b3f63ef71
617
py
Python
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:40 ms, 在所有 Python3 提交中击败了74.47% 的用户 内存消耗:13.8 MB, 在所有 Python3 提交中击败了7.95% 的用户 解题思路: 只能向右或向下前进。 则当前格的路径数等于左侧格的路径数+上侧格的路径数 dp[i][j] = dp[i-1][j] + dp[i][j-1] 例子: 1 1 1 1 1 1 1 2 3 4 5 6 1 3 6 10 15 21 ...
22.851852
54
0.458671
262
0.340702
0
0
0
0
0
0
502
0.652796
2f8851b9c216915fb1f4051cf734644949f0036e
1,207
py
Python
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
3
2021-11-09T09:55:17.000Z
2022-02-19T02:58:27.000Z
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
import sys import structlog from osrest import Tcpml import services_component def build_os(dataset_path, model_path, logger): logger.info(f"Loading OS dataset from \"{dataset_path}\".") dataset = Tcpml.load_dataset(dataset_path) logger.info(f"Building OS model.") model = Tcpml.build_model(dataset) ...
30.948718
85
0.697597
0
0
0
0
0
0
0
0
431
0.357084
2f88bf2c5f6df294804820f97f5c583aad4fe844
129
py
Python
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:b28da294230f24c172729139b1988b8008f6fb2c259b1c3425772b2c80cfb9dd size 2688
32.25
75
0.883721
0
0
0
0
0
0
0
0
0
0
2f8911a3ffc8a10cc46f6545eeb625b8d7a7c1f6
4,049
py
Python
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
1
2022-01-02T19:55:18.000Z
2022-01-02T19:55:18.000Z
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import xml.etree.ElementTree as ET def parse_value(element): if element.tag == "string": return element.text elif element.tag == "dict": return parse_dict(element) elif element.tag == "array": return parse_array(element) else: exception = "Unknown tag `" + element.tag + "`...
29.992593
97
0.667078
0
0
0
0
0
0
0
0
1,340
0.330946
2f8acf77c5feae7c80644d1d8292864bc245ea00
1,768
py
Python
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
"""panamsquad URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
40.181818
79
0.70871
0
0
0
0
0
0
0
0
975
0.551471
2f8c9b6939590e2c0b5c1ffc1236673c73cfa389
1,015
py
Python
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup setup( name='sphinx-git-lowdown', version='0.0.1', url='https://github.com/yamahigashi/sphinx-git-lowdown', # download_url='http://pypi.python.org/pypi/sphinx-git-lowdown', license='Apache', author='yamahigashi', author_email='yamahigas...
30.757576
68
0.634483
0
0
0
0
0
0
0
0
624
0.614778
2f8e310bf9e77d36d1ba6cf080e2e966d1ebdb66
63
py
Python
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
5
2020-03-17T12:45:50.000Z
2022-03-07T10:55:50.000Z
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
3
2020-04-17T09:53:45.000Z
2021-01-25T22:14:14.000Z
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
1
2020-04-17T06:51:50.000Z
2020-04-17T06:51:50.000Z
from .device import Device class ValueDevice(Device): pass
15.75
26
0.761905
35
0.555556
0
0
0
0
0
0
0
0
2f8eec6be049e9fe4a729f243ebe752e635be903
1,756
py
Python
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
from rfim2d import param_dict key_dict = { 'A': ['Sigma', 'a', 'b'], 'dMdh': ['hMax', 'eta', 'a', 'b', 'c'], 'joint': ['rScale', 'rc', 'sScale', 'etaScale', 'df', 'lambdaH', 'B', 'C', 'F'], 'Sigma': ['rScale', 'rc', 'sScale', 'df', 'B', 'C'], 'eta': ['rScale', 'rc', 'etaScale', 'lambd...
30.807018
83
0.600228
0
0
0
0
0
0
0
0
404
0.230068
2f8f9cde054908beafa4eaad551bd52319f17a78
80
py
Python
main.py
Zerex1/Test
eb1030a90961c18d7aac5f3ca63e3a540756349b
[ "MIT" ]
null
null
null
main.py
Zerex1/Test
eb1030a90961c18d7aac5f3ca63e3a540756349b
[ "MIT" ]
7
2022-02-19T16:54:51.000Z
2022-02-20T21:52:54.000Z
main.py
Scarloran/Error
07a1d70fb69b0c8ae45f500c92ad04eb59ed26f5
[ "MIT" ]
null
null
null
print('hi all') print('hii') print('hello world') print('hi') print('hello')
8.888889
20
0.625
0
0
0
0
0
0
0
0
37
0.4625
2f8fc48275f4387b3e97bc8ce0893dd23b2af531
2,250
py
Python
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
1
2016-10-31T17:34:40.000Z
2016-10-31T17:34:40.000Z
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
null
null
null
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 Aaron Soto # Released under the MIT license # Incorporates libraries from AdaFruit, also released under the MIT license # TODO functions: # display_progress(percentage,[title]) - display a progress bar (0-1,1-100) / check for float # display_error(message,[ti...
33.088235
107
0.651556
0
0
0
0
0
0
0
0
1,264
0.561778
2f90a5c7e193988dc43d8564c22a87b2b8ba9258
753
py
Python
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
# Upper-lower splitter for the exercise list import sys import exercise_populator_config as conf print('Enter the file name: ') filename = sys.stdin.readline() filename = filename[0:len(filename)-1] f = open(filename, 'r') upper = conf.CONST_MUSCLES['upper'] lower = conf.CONST_MUSCLES['lower'] uex = [] lex = [] fo...
16.733333
44
0.648074
0
0
0
0
0
0
0
0
117
0.155378
2f9197c39f4c2b4b9b35a18f55ab839142699e80
4,893
py
Python
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
#!/usr/bin/env/python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import logging import os import pathlib import shutil from typing import Dict, List from fbpmp.pcf impo...
35.977941
95
0.625179
4,132
0.844472
0
0
96
0.01962
3,176
0.649091
1,529
0.312487
2f939a72fbb64e7dc423500b36e371b897a8fc9b
2,168
py
Python
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
3
2022-01-27T07:36:24.000Z
2022-02-22T09:32:53.000Z
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
null
null
null
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
1
2022-02-02T08:21:39.000Z
2022-02-02T08:21:39.000Z
import matplotlib.font_manager as font_manager import matplotlib.pyplot as plt import pandas as pd import os # Read the data path = os.path.join(os.getcwd(), "results") df = pd.read_csv(os.path.join(path, "tracker_AND_cookies.csv")) x = df["day"] y1 = df["total_tracker"] y2 = df["tracker_distinct"] y3 = df["is_sessio...
37.37931
100
0.683579
0
0
0
0
0
0
0
0
823
0.379613
2f9b8862aa5b57db0e4c23d664291957a9fbe6a4
379
py
Python
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
1
2016-09-10T02:47:26.000Z
2016-09-10T02:47:26.000Z
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
null
null
null
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
null
null
null
import asyncio async def long_task(writer): total = 100 for i in range(1, total+1): writer.write(type='progress', value=i, total=total) print(i) await asyncio.sleep(0.05) class Writer: def write(self, **kwargs): print(kwargs) coroutine = long_task(Writer()) asyncio.ensu...
18.95
59
0.664908
66
0.174142
0
0
0
0
187
0.493404
10
0.026385
2f9feffcaa4a8285a2abe800ba2837e256eb6e2b
2,636
py
Python
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
2
2019-03-17T04:03:08.000Z
2019-05-01T09:42:23.000Z
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
null
null
null
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
4
2019-06-24T05:47:24.000Z
2020-09-29T05:00:31.000Z
# -*- coding: utf-8 -*- Group_Key_To_Dimension = dict( c_ip = 'ip', uid = 'user', page = 'page', did = 'did', # c_ipc = 'ipc', ) Avail_Dimensions = tuple(Group_Key_To_Dimension.values()) # dimension : variable_name(获取点击量的变量名) Click_Variable_Names = dict( ip='ip__visit__dynamic_count__1h__slot'...
28.967033
167
0.60091
0
0
0
0
0
0
0
0
1,351
0.496326
85ca2de785e536315d8103867a6f6f3babb8d84b
346
py
Python
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
from pyhdf.SD import SD, SDC from pathlib import Path import numpy as np import a301 m5_file = a301.data_dir / Path('myd05_l2_10_7.hdf') the_file = SD(str(m5_file), SDC.READ) wv_nearir_data = the_file.select('Water_Vapor_Near_Infrared').get() the_file.end positive = wv_nearir_data > 0. print(f'found {np.sum(positive.f...
24.714286
67
0.768786
0
0
0
0
0
0
0
0
94
0.271676
85cb5db8536dff080788a2b44e8c7498ab0bd3f3
2,649
py
Python
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
1
2017-01-29T09:52:06.000Z
2017-01-29T09:52:06.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
287
2017-03-09T00:17:20.000Z
2022-01-08T00:36:34.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from course_grader.dao import current_datetime, display_datetime from course_grader.dao.term import ( next_gradable_term, previous_gradable_term, submission_deadline_warning, is_grading_period_open) from persistent_message.m...
35.797297
76
0.710834
0
0
0
0
0
0
0
0
430
0.162325
85cb84708ec1159fcbafba9f83ab692e7fdf9668
4,541
py
Python
swn/file.py
wkitlasten/surface-water-network
fd36ad5ee3fbd7a1107f0c4c376c4af1295b5b1b
[ "BSD-3-Clause" ]
18
2019-12-04T14:59:47.000Z
2021-12-21T12:34:28.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
17
2020-04-15T04:49:49.000Z
2022-03-04T05:22:17.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
6
2020-05-07T23:56:12.000Z
2022-01-08T16:56:32.000Z
"""File reading/writing helpers.""" __all__ = ["topnet2ts", "gdf_to_shapefile"] import geopandas import pandas as pd from swn.logger import get_logger, logging def topnet2ts(nc_path, varname, mult=None, log_level=logging.INFO): """Read TopNet data from a netCDF file into a pandas.DataFrame timeseries. Use...
32.435714
78
0.602731
0
0
0
0
0
0
0
0
1,946
0.42854
85cc4f7ba3e6215d40e3cc9668b7b4fc514ab919
5,752
py
Python
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ data clean for books (clean_documents.py) note - this is the same as in assignment 1 for the most part """ import re from ast import literal_eval from os.path import basename, splitext, exists from typing import Optional, List from utils import get_glob, file_path_relative from variables im...
39.129252
107
0.619784
0
0
0
0
0
0
0
0
801
0.139256
85ccd6d8d9bc17b243d312e04343cd6c75bdd27f
6,041
py
Python
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.generics import RetrieveAPIView,CreateAPIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST,HTTP_201_CREATED from rest_framework.views import APIView...
37.290123
140
0.608343
5,485
0.907962
0
0
0
0
0
0
518
0.085747
85ccf00c2aab76068a1c4fc3ab1b4c929b9cff1a
9,378
py
Python
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Evalf # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, s...
44.028169
187
0.683301
0
0
0
0
0
0
0
0
3,904
0.415761
85ceb804c95eaa5e6ed011f7728feba8c174befd
6,336
py
Python
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
3
2019-06-11T10:19:25.000Z
2022-02-28T22:58:29.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
7
2019-02-04T08:57:54.000Z
2021-11-01T12:42:03.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
null
null
null
""" This script analyses optimal alphas for each class and draws them in a box and whisker plot """ import pandas as pd import argparse import seaborn as sns import matplotlib.pyplot as plt import itertools def shorten_uri(class_uri, base="http://dbpedia.org/ontology/", pref="dbo:"): return class_uri.replace(base...
34.622951
114
0.574337
0
0
0
0
0
0
0
0
2,719
0.429135
85cf779b9a1cc2e9b35950583be014be08b8ba73
1,009
py
Python
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: candidates.sort() ans = [] def helper(path: List[int], target: int, start: int) -> None: if target < 0: return if target == 0: ...
27.27027
84
0.489594
582
0.576809
0
0
0
0
0
0
36
0.035679
85cff0c0609514a2aa77da41be4f85d685342405
12,197
py
Python
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
16
2021-01-11T11:26:19.000Z
2022-01-23T02:32:34.000Z
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
2
2021-01-29T08:15:46.000Z
2021-10-17T16:33:19.000Z
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
4
2021-04-06T00:36:05.000Z
2021-12-16T14:25:07.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 from .. import _utilitie...
44.677656
145
0.649832
11,792
0.966795
0
0
6,677
0.54743
0
0
5,520
0.45257
85d0ab0de0a1394f2406e3a5b3e99179d2c59390
486
py
Python
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
1,595
2020-06-01T19:41:53.000Z
2022-03-31T16:09:54.000Z
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
532
2020-05-30T12:06:17.000Z
2022-03-31T22:33:41.000Z
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
303
2020-06-17T00:38:34.000Z
2022-03-31T10:59:48.000Z
#!/usr/bin/python3 import pytest from hypothesis import settings # derandomizing prevents flaky test outcomes # we are testing hypothesis itself, not testing with hypothesis settings.register_profile("derandomize", derandomize=True) @pytest.fixture def SMTestBase(devnetwork): settings.load_profile("derandomize"...
19.44
63
0.709877
103
0.211934
232
0.477366
248
0.510288
0
0
160
0.329218
85d1bb79ecc810612d2ce67b9924416144e6d28f
7,706
py
Python
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
from logging import getLevelName import numpy as np import os import tensorflow as tf import pathlib import pandas as pd import re import matplotlib.pyplot as plt from tensorflow.keras.models import Model from tensorflow.keras.layers import Input from tensorflow.keras.layers import Dense from tensorflow.keras.layers im...
32.514768
139
0.706982
0
0
0
0
0
0
0
0
798
0.103556
85d25582e5cd6979f09e8f1ee727114f02ab78b7
1,377
py
Python
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone # from .backends import update_data class Member(models.Model): github_username = models.CharField(max_length=100, unique=True) def save(self, *args, **kwargs): self.slug = self.github_username super(Member, self...
28.102041
102
0.664488
1,252
0.909223
0
0
0
0
0
0
77
0.055919
85d2e42b2d5769672b5d6fd5964f344d0f20bc08
546
py
Python
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
4
2017-07-26T13:23:06.000Z
2019-02-21T14:55:34.000Z
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
26
2017-08-02T08:52:06.000Z
2022-03-04T15:13:26.000Z
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from gentry.utils import make_absolute_uri class Project(models.Model): slug = models.SlugField() name = models.CharField(max_length=128) date_added = models.DateTimeField(default=timezone.now, editable=False) def __str__(self): ...
26
95
0.661172
436
0.798535
0
0
203
0.371795
0
0
39
0.071429
85d2ee56a1605c4085ef6834b7da596c8770a900
17,167
py
Python
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
1
2021-05-17T06:33:32.000Z
2021-05-17T06:33:32.000Z
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
import os from datetime import datetime, timedelta from behave import given, when, then from hamcrest import ( assert_that, equal_to, has_item, is_, is_not, greater_than, less_than ) from StringIO import StringIO from pptx import packaging from pptx import Presentation from pptx.constants import MSO_AUTO_SHAPE_T...
33.926877
74
0.732044
0
0
0
0
15,861
0.923924
0
0
3,575
0.208248
85d564c27e33a35fe1a491c27c616e6e1a78f815
2,604
py
Python
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [2016-08-18] Challenge #279 [Intermediate] Text Reflow https://www.reddit.com/r/dailyprogrammer/comments/4ybbcz/20160818_challenge_279_intermediate_text_reflow/ #Description: Text reflow means to break up lines of text so that they fit within a certain width. It is useful in e.g. mobile browsers. When you zoom in...
40.061538
119
0.720814
0
0
0
0
0
0
0
0
2,550
0.979263
85d71db4dff31a27689c64809381f6863f31ac08
3,177
py
Python
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
from time import time, sleep from math import floor import argparse import csv import datetime # Constants TIME_WORK = 25 TIME_REST = 5 TIME_REST_LONG = 30 ONE_MINUTE = 60 SESSIONS_WORK_MAX = 4 LOOP_LIMIT = 9999 # Console parser = argparse.ArgumentParser(description='===== Pomodoro timer CLI =====') parser.add_argume...
33.09375
115
0.664463
0
0
0
0
0
0
0
0
632
0.19893
85d8b4fdcc862d0733f6de5e3fdf2b8f4d3ba6b3
2,454
py
Python
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import signal import click from .client import Client from .utils import Utils utils = Utils() signal.signal(signal.SIGINT, utils.signal_handler) class Config(object): def __init__(self): self.loglevel = None pass_config = click.make_pass_decorator(Config, ensure=True) @click....
25.831579
119
0.698859
74
0.030155
0
0
2,083
0.848818
0
0
770
0.313773
85db5b6d5b5a64186bb3b9c04d0a279e4a5f0c0a
998
py
Python
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
from itertools import count from string import ascii_lowercase plain_text = 'july' results_file = open('results.txt', 'w') letters_to_numbers = dict(zip(ascii_lowercase, count(0))) numbers_to_letters = dict(zip(count(0), ascii_lowercase)) plain_text_numbers = [letters_to_numbers[letter] for letter in plain_text] for i...
52.526316
111
0.728457
0
0
0
0
0
0
0
0
287
0.287575
85db89656ff34bccb3df57eb36eff9c756872dce
2,663
py
Python
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
import os, pickle import numpy as np import tensorflow as tf def read_pickle(file_name): with (open(file_name, "rb")) as openfile: while True: try: objects = pickle.load(openfile) except EOFError: break return objects class Generator(tf.keras.uti...
32.876543
108
0.613969
2,059
0.773188
0
0
0
0
0
0
567
0.212918
85db99fa2aa9b948ffca4017b69512e862fe9571
5,096
py
Python
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
from mlb.models.game_detail import GameDetail import time import board import displayio from adafruit_display_text import label from adafruit_display_shapes.roundrect import RoundRect import fonts.fonts as FONTS from mlb.schedule.schedule_view_model import ScheduleViewModel from time_utils import day_of_week, month_nam...
38.315789
114
0.649333
4,712
0.924647
0
0
0
0
0
0
537
0.105377
85dc9bd56f92f2f2d3c556c7f4e9a56721c6e747
1,307
py
Python
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
1
2021-11-23T08:36:43.000Z
2021-11-23T08:36:43.000Z
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
1
2021-07-18T12:39:40.000Z
2021-09-08T09:48:16.000Z
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
null
null
null
# Strings are used in Python to record text information, such as names. # Strings in Python are actually a sequence, which basically means Python keeps track # of every element in the string as a sequence. # For example, Python understands the string "hello' to be a sequence of letters in a specific order. # This me...
25.627451
102
0.719204
0
0
0
0
0
0
0
0
1,050
0.803366
85dcdeab8f386b3045fce501c4a13cd8e441b56a
1,138
py
Python
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
# This code finds the Fourier Tranform of a signal and the Nyquist frequency import matplotlib.pyplot as plt import numpy as np import librosa import librosa as lr from scipy import signal from scipy.fft import fft, ifft import math import matplotlib.pyplot as plt if __name__ == "__main__": # Read the audio ...
33.470588
81
0.681019
0
0
0
0
0
0
0
0
309
0.271529
85dddc830d151d3b583e5d23116cb924afd1cfe8
2,106
py
Python
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import actionlib from control_msgs.msg import * from std_msgs.msg import Float64 from sensor_msgs.msg import JointState PI = 3.14159265359 class TiltMotorController: def __init__(self): self.leftMotor_publisher = rospy.Publisher('/left_motor_tilt/command', Float64, queue_size =...
23.931818
104
0.746439
1,754
0.832858
0
0
0
0
0
0
331
0.15717
85dde154e71416994a5fa1e8b1afe91eea13927c
14,888
py
Python
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
2
2021-12-05T12:38:26.000Z
2022-03-09T02:24:44.000Z
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
from ast import Lambda from enum import IntEnum from typing import Any from Ast import Stmt from Ast import Expr from Token import Token, TokenType from Utils import Assert from Ast import AstType, ArrayExpr, BoolExpr, ExprStmt, FunctionCallExpr, FunctionStmt, GroupExpr, IdentifierExpr, IfStmt, IndexExpr, InfixExpr, ...
39.076115
273
0.637493
14,433
0.969438
0
0
0
0
0
0
1,059
0.071131
85e03a75a96c393560650c8bb391a58fe00c64f1
302
py
Python
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
# COLORS black = "\033[30m" red = "\033[31m" green = "\033[32m" yellow = "\033[33m" blue = "\033[34m" magenta = "\033[35m" cyan = "\033[36m" white = "\033[37m" nc = "\n" # COLOR TESTING def test(): print(red + "test") print(blue + "test2") print(green + "test3" + "\n" + cyan + "test4" + white)
17.764706
56
0.566225
0
0
0
0
0
0
0
0
138
0.456954
85e1dc6359b959fbe3bde169c1c1df0d7df72888
253
py
Python
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name = 'database' urlpatterns = [ path('update/', views.update), path('update2/', views.update2), path('update3/', views.update3), path('upload-user/', views.create_user_dataset) ]
19.461538
51
0.675889
0
0
0
0
0
0
0
0
53
0.209486
85e2f348622632176aeb4fc8c874b128321e99b9
135
py
Python
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
from datetime import datetime def unlucky_days(year): return sum(datetime(year, month, 13).weekday() == 4 for month in range(1,13))
33.75
80
0.733333
0
0
0
0
0
0
0
0
0
0
85e2fec7419e462992cdef82f856f348913b6d84
714
py
Python
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
1
2021-05-20T06:04:13.000Z
2021-05-20T06:04:13.000Z
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
null
null
null
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
null
null
null
from werkzeug.exceptions import HTTPException class InternalServerError(HTTPException): pass class SchemaValidationError(HTTPException): pass class UserNotFoundError(HTTPException): pass class EmailAlreadyExistError(HTTPException): pass errors = { "InternalServerError": { "message": "Oops someth...
21.636364
74
0.648459
197
0.27591
0
0
0
0
0
0
284
0.397759
85e31f8319151021136e63792aab66a8fe4825ad
421
py
Python
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
1
2020-04-22T05:41:08.000Z
2020-04-22T05:41:08.000Z
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
null
null
null
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
4
2019-01-01T11:33:14.000Z
2021-01-04T20:34:43.000Z
from raincoat.radarFunctions import getVarTimeRange, getRadarVar import pandas as pd data = getRadarVar('../samplefiles/radar/181202_000000_P09_ZEN_compact.nc', '2001.01.01. 00:00:00', 'Ze') start = pd.to_datetime('2018-12-02 00:00:00', format='%Y-%m-%d %H:%M:%S') stop = pd.to_datetime...
35.083333
75
0.655582
0
0
0
0
0
0
0
0
161
0.382423
85e397373b9dc700b3ec2e1bd8bc94f48fdddec5
1,527
py
Python
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
null
null
null
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
null
null
null
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
1
2022-03-07T20:04:05.000Z
2022-03-07T20:04:05.000Z
""" Gecko REQRM/RMREQ handlers """ import logging import struct from .packet import GeckoPacketProtocolHandler REQRM_VERB = b"REQRM" RMREQ_VERB = b"RMREQ" _LOGGER = logging.getLogger(__name__) class GeckoRemindersProtocolHandler(GeckoPacketProtocolHandler): @staticmethod def request(seq, **kwargs): ...
30.54
87
0.606418
1,327
0.869024
0
0
643
0.421087
0
0
284
0.185986
85e52bfde40a74e45c8231c717edf8c32b7d97fa
376
py
Python
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
25
2020-05-08T22:24:54.000Z
2022-03-11T18:16:58.000Z
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
75
2020-05-08T22:15:59.000Z
2021-11-22T10:00:04.000Z
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
12
2020-11-04T13:09:46.000Z
2022-03-14T16:22:40.000Z
# Generated by Django 2.2.13 on 2021-02-09 12:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('apps', '0004_auto_20210209_1243'), ] operations = [ migrations.RenameField( model_name='appinstance', old_name='lab_session...
19.789474
48
0.598404
290
0.771277
0
0
0
0
0
0
118
0.31383
85e79f4d2b450460c3e188d3ec311565e5eee0d2
30,714
py
Python
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
# encoding: utf-8 __version__ = "1.0.1" try: import pygame from pygame import mixer except ImportError: raise ImportError("\n<pygame> library is missing on your system." "\nTry: \n C:\\pip install pygame on a window command prompt.") from time import time class SoundObje...
39.226054
119
0.513088
30,397
0.989679
0
0
0
0
0
0
12,643
0.411636
85e90c8a65010ce9ecba5749d22457498fa4d999
2,931
py
Python
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
1
2020-04-01T05:45:41.000Z
2020-04-01T05:45:41.000Z
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
null
null
null
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
3
2016-11-01T23:51:35.000Z
2018-05-23T10:09:08.000Z
#!/usr/bin/env python import os import sys import getopt TESTNAME = "extmethods" class extmethodcls(object): def commit(self, *args, **kwargs): return "COMMIT_CALLED" def presave(self, *args, **kwargs): return "PRESAVE_CALLED" def postsave(self, *args, **kwargs): return "POSTSAVE_CALLED" def ...
29.019802
76
0.604572
378
0.128966
0
0
0
0
0
0
904
0.308427
85eb93c822a019fc750d57de9e82b6de5c0352f3
790
py
Python
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
# https://rosalind.info/problems/tran/ file = "data/tran.txt" def read_fasta(file: str): """ Args file: path of fasta file """ with open(file) as f: fa = f.read().splitlines() prev = True header = [] seq = [] for f in fa: if ">" in f: header.append(f[1:...
16.458333
43
0.501266
0
0
0
0
0
0
0
0
127
0.160759