hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
1ca4f326c31dc7913ff0486df63cbab12df18fbe
888
py
Python
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """UrsaLeo LEDdebug board LED demo Turn the LED's on one at a time, then all off""" import time ON = 1 OFF = 0 DELAY = 0.5 # seconds try: from LEDdebug import LEDdebug except ImportError: try: import sys import os sys.path.append("..") sys.path.appen...
20.651163
69
0.595721
1ca57a9994de049d5edebf8ee7ac8544c88a916a
6,352
py
Python
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################################################### ## ## Project: COVID -19 xDNN Classifier 2020 ## Version: 1.0.0 ## Module: Server ## Desription: The COVID -19 xDNN Classifier 2020 server. ## License: MIT ## Copyright: 2021, Asociacion De Investigac...
31.60199
83
0.65318
1ca5ea50e3b728f56855c54f3c17bbd2fb106298
4,382
py
Python
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.0.0.11832 on 2017-03-22. # 2017, SMART Health IT. import io import json import os import unittest from . import allergyintolerance from .fhirdate import FHIRDate
57.657895
153
0.707211
1ca66df25ee895df823541d354d97c61178071b8
4,107
py
Python
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
6
2020-06-02T16:22:58.000Z
2021-09-18T03:20:16.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
4
2021-03-31T19:54:37.000Z
2022-03-12T00:33:41.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
5
2020-06-02T16:23:00.000Z
2021-09-03T02:16:15.000Z
import time import random import requests from lxml import etree import pymongo from .url_file import mjx_weibo, mjx_dy, mjx_ks, mjx_xhs if __name__ == '__main__': mjx = MJX() mjx.run()
41.07
450
0.567324
1ca67740a4b7ba54382fd28803af944938695c13
2,756
py
Python
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from keras.utils import np_utils import pandas as pd import sys from sklearn.preprocessing import LabelEncoder from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.decomposition import PCA import os from sklearn.externals import joblib from sklearn.metrics impor...
26.757282
105
0.675617
1ca68195c840c66d0de8f1f855f4ded2b7c95a94
2,850
py
Python
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
2
2022-02-06T10:40:22.000Z
2022-02-06T10:45:51.000Z
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
import struct import json from collections import OrderedDict file_path = "data0002.bin" show_offset = True show_hash = False loaded_data = 0 file = open(file_path, mode='rb') data = file.read() data_set = OrderedDict() if len(data) > 0x40 and data[0:4] == b'ggdL': file.seek(0x0c, 0) numOfDa...
36.075949
115
0.587719
1ca867b22f2e4c2942595bca95ab919246220f6f
342
py
Python
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
1
2019-07-05T04:27:05.000Z
2019-07-05T04:27:05.000Z
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
null
null
null
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
null
null
null
## to change recursion limit import sys print(sys.getrecursionlimit()) #Return the current value of the recursion limit #1000 ## change the limit sys.setrecursionlimit(2000) # change value of the recursion limit #2000 i=0 greet() # hellow 1996 then error
18
80
0.678363
1ca91ede49b4b76cb020ec83f9b1603af4b3c7c0
1,406
py
Python
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase, override_settings from django.urls import reverse from pages.models import Article, HomePage
35.15
77
0.647226
1caa879917346512e7a2dc23a9df954e997c28d0
26,030
py
Python
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
null
null
null
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
7
2019-03-22T06:26:39.000Z
2021-06-10T19:36:06.000Z
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
1
2017-10-25T03:43:51.000Z
2017-10-25T03:43:51.000Z
#!/usr/bin/env python import logging import sys sys.path.append("../../") sys.path.append("pylib") import time import datetime import pymongo import uuid import os import subprocess import os.path import settings from common.utils import getSiteDBCollection sys.path.insert(0, "../../") logging_manager = LoggingMan...
39.142857
106
0.678871
1caaa79685649df41865169e49ad903c14174dcc
4,488
py
Python
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.test import TestCase from oscar.apps.basket.models import Basket from oscar.apps.partner import strategy from oscar.test import factories from oscar.apps.catalogue.models import Option
35.619048
93
0.694296
1caab3990fb21bf24a942c5cae050f1ff9f8b143
305
py
Python
tests/fixtures/db/sqlite.py
code-watch/meltano
2afff73ed43669b5134dacfce61814f7f4e77a13
[ "MIT" ]
8
2020-06-16T22:29:54.000Z
2021-06-04T11:57:57.000Z
tests/fixtures/db/sqlite.py
dotmesh-io/meltano
4616d44ded9dff4e9ad19a9004349e9baa16ddd5
[ "MIT" ]
38
2019-12-09T06:53:33.000Z
2022-03-29T22:29:19.000Z
tests/fixtures/db/sqlite.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
2
2020-06-16T22:29:59.000Z
2020-11-04T05:47:50.000Z
import pytest import os import sqlalchemy import contextlib
17.941176
58
0.714754
1cab057f92135b745b2c22597acdb2d7401a8e30
11,134
py
Python
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import os from pathlib import Path import numpy as np from natsort import natsorted try: from docopt import docopt from marko.ext.gfm import gfm import pygal from pygal.style import Style, DefaultStyle except ImportError as e: raise Exception('Some external depe...
36.032362
157
0.647566
1cab32916328111ed29e8c7581e89b8013c63586
9,839
py
Python
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,501
2016-04-19T18:16:21.000Z
2022-03-31T17:46:31.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,135
2016-04-19T05:49:14.000Z
2022-03-31T15:21:19.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
357
2016-04-19T05:00:24.000Z
2022-03-31T11:28:32.000Z
# # This file is part of LiteX. # # Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com> # Copyright (c) 2019 vytautasb <v.buitvydas@limemicro.com> # SPDX-License-Identifier: BSD-2-Clause import os import subprocess import sys import math f...
38.433594
107
0.598536
1cab4f72005e2a4605f4cdeb62be5961ecba1542
336
py
Python
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
5
2019-05-26T22:52:54.000Z
2021-11-05T12:27:11.000Z
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
31
2019-06-24T13:51:25.000Z
2021-11-12T22:27:10.000Z
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
4
2019-01-10T22:01:54.000Z
2021-11-05T12:26:58.000Z
"""Various helpers and utilities that don't belong anywhere else.""" from typing import Dict, Generic, TypeVar KeyType = TypeVar('KeyType') ValueType = TypeVar('ValueType')
28
68
0.720238
1cac1152c0bc42f93be158e0a7b59715a3e05f13
198
py
Python
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from records.views import RecordViewSet router = DefaultRouter() router.register('', RecordViewSet, basename='records') urlpatterns = router.urls
22
54
0.813131
1cac38aa4a5a8e636d6285190a3fb18a56c06114
10,831
py
Python
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
50
2018-12-10T14:46:12.000Z
2021-11-03T16:38:58.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
17
2019-01-21T14:14:30.000Z
2019-08-23T20:39:07.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
8
2019-01-21T14:52:37.000Z
2019-07-29T19:53:12.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from rhea import RheaError from rhea import parser as rhea_parser from azure.common import AzureHttpError from azure.storage.blob.models import BlobPrefix from polystores.clients.azure_client import get_blob_service_c...
35.864238
98
0.587942
1cad3cf72fd9e55c370708003b5cfc6962c4bf8e
22,217
py
Python
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/NexusHandler.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import sys import numpy as np import logging import time import types from datetime import datetime from netCDF4 import Dataset from nexustiles.nexustiles import NexusTileService from webservice.webmodel impor...
40.030631
165
0.508755
1cade1c54a41deec5844621516e8934dad9ba6ed
2,602
py
Python
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
9
2021-05-26T05:51:19.000Z
2021-12-25T02:31:55.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
4
2021-09-17T11:24:20.000Z
2022-03-16T02:07:33.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict, Counter from .rbbox_np import rbbox_iou
37.171429
117
0.563028
1caee980c9d28fcb7768f3cf4259dd89c12fcb4a
5,186
py
Python
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
import logging import pygame from app import * from pygame.locals import * from werkzeug.serving import run_simple from web import webapp as w import data_access as da logging.basicConfig(filename='setlistmanager.log', level=logging.DEBUG) SCREEN_WIDTH = 160 SCREEN_HEIGHT = 128
35.040541
122
0.571732
1caf08d291951db640773cc4547ec6df82e53a36
4,488
py
Python
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
8
2020-05-03T20:01:03.000Z
2021-12-20T12:24:34.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
1
2021-11-19T02:33:19.000Z
2021-12-28T03:22:33.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
4
2020-05-04T15:04:57.000Z
2021-11-04T18:14:26.000Z
import json import pandas as pd import numpy as np from matplotlib import pyplot as plt import simulation from eval_functions import oks_score_multi import utils
43.153846
143
0.64951
1cb1d08525c852f3c763a5bfd0e70b7e85abb9c4
6,592
py
Python
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
import requests import time import os import sys import json import threading from getpass import getpass import schedule import event as e import configuration as c import RPi.GPIO as GPIO #SERVER_URL = "https://home-automation-289621.uc.r.appspot.com" #SERVER_URL = "http://127.0.0.1:4747" SERVER_URL = "http://192.16...
29.168142
226
0.618174
1cb40b16f030cc0fc491e5ff712cd9ba3b6fe9c3
1,640
py
Python
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
12
2020-06-11T18:17:46.000Z
2021-11-23T04:23:59.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
9
2020-06-03T21:34:50.000Z
2021-05-23T16:48:01.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
2
2020-07-02T09:59:30.000Z
2021-04-13T19:28:48.000Z
from typing import Dict, Union from graphql import ( GraphQLBoolean, GraphQLFloat, GraphQLInputField, GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLScalarType, GraphQLString, ) from sqlalchemy import ARRAY, Boolean, Float, Integer from sqlalchemy.dialects.postgresql import ARRAY as PG...
32.8
116
0.739024
1cb410c38e7b086fc006f0a9169efd98fc6fc76d
3,223
py
Python
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
182
2016-02-05T18:33:09.000Z
2022-03-23T12:31:54.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
81
2016-09-04T14:00:24.000Z
2022-03-28T17:22:52.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
63
2016-02-05T19:38:06.000Z
2022-03-07T06:07:46.000Z
import Crypto.Random.random as rand import itertools import math #for log import sys if len(sys.argv) > 2: kk = 2 parts = 7 kk = rand.randint(1, int(parts / 4)) #how many sends to demand fuzz = 1 decideAmounts(float(sys.argv[1]), float(sys.argv[2]), parts, kk, fuzz)
29.036036
99
0.559727
1cb4f5278643eda7e6d9e305ee74cda8346049cd
14,601
py
Python
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
4
2021-12-16T18:32:01.000Z
2021-12-28T15:57:27.000Z
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
null
null
null
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
2
2021-10-05T15:01:47.000Z
2021-12-28T15:57:14.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from .shared import Conv_Block from ..utils.utils import zeros, mean_cube, last_frame, ENS
48.996644
184
0.617423
1cb668eb96e3db81034b5b4b90591cfcdc750510
2,325
py
Python
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
# Copyright (C) 2017 O.S. Systems Software LTDA. # This software is released under the MIT License import unittest from hydra import Hydra, Client
40.086207
77
0.67871
1cb6b746023f10a214f482d1a5a600bbf6962f4e
4,097
py
Python
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
1
2020-04-28T12:16:10.000Z
2020-04-28T12:16:10.000Z
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
48.77381
115
0.608494
1cb6d29da4f211a81a8c27dc9b9e2bda5b85f6c6
619
py
Python
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from scTools import interval, primeForm from scTools.rowData import ats from scTools.scData import * count = 1 for w in ats: prime = primeForm(w[0:6]) print '%3d\t' % count, for x in w: print '%X' % x, print ' ', intervals = interval(w) for y in intervals: ...
20.633333
65
0.544426
1cb7e53b2c17e731b27a68b654287de75f6d7775
1,042
py
Python
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
import asyncio import click from precon.devices_handlers.distance_sensor import show_distance as show_distance_func from precon.remote_control import steer_vehicle, Screen try: import RPi.GPIO as GPIO except (RuntimeError, ModuleNotFoundError): import fake_rpi GPIO = fake_rpi.RPi.GPIO
25.414634
87
0.690019
1cb813fdb41b3152ecad7b90bfbabd5c02323b45
57,607
py
Python
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
import csv import string import ftplib import math import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sqlite...
39.894044
537
0.591282
1cb871009f40d73e438998df7547b42738178c54
3,932
py
Python
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
18
2015-06-24T18:35:20.000Z
2022-01-19T19:04:00.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
63
2015-11-03T18:57:12.000Z
2020-09-30T02:54:49.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
38
2015-10-23T19:04:44.000Z
2021-06-04T08:13:33.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
44.179775
115
0.721261
1cb99804e820098ccccda4d6284924e807ceb66e
1,787
py
Python
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
import atexit import sys if sys.version_info[0] == 2: from Queue import Empty else: from queue import Empty from multiprocessing import Process, Queue from rllab.sampler.utils import rollout import numpy as np __all__ = [ 'init_worker', 'init_plot', 'update_plot' ] process = None queue = None ...
24.479452
94
0.564633
1cbc8c259914408b1b3a8b596c9f92062c17a6d8
1,902
py
Python
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
''' Livro-Introduo-a-Viso-Computacional-com-Python-e-OpenCV-3 Repositrio de imagens https://github.com/opencv/opencv/tree/master/samples/data ''' import cv2 import numpy as np from matplotlib import pyplot as plt #import mahotas VERMELHO = (0, 0, 255) VERDE = (0, 255, 0) AZUL = (255, 0, 0) AMARELO = (0, 255, 255)...
24.384615
102
0.684017
1cbebb0ca1313739b0fe47f6d54aaa9f17675ecf
1,949
py
Python
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
import base64 import json import jwt import requests from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend USER_MODEL = get_user_model()
29.984615
75
0.626988
1cbf5ae6b77e5700645e93821c03cc92778db151
11,306
py
Python
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
import json import os import sys import re import copy import numpy as np from data_profiler.labelers.base_model import BaseModel from data_profiler.labelers.base_model import AutoSubRegistrationMeta _file_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(_file_dir)
38.719178
81
0.523527
1cbf73995d2a6d71959f99c6cb216fdecd75b4e3
1,693
py
Python
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
# Desarrolle un un programa que reciba la fecha de nacimiento # de una persona, y como salida, indique el nombre del signo del # zodiaco correspondiente, ademas de su edad fecha_str = input("Ingrese la fecha de nacimiento (DD/MM/AAAA): ") fecha = fecha_str.split("/") fecha_int = [] for elemento in fecha: fecha_int...
33.196078
130
0.512109
1cc05adcc568b6fb2373878d0e0ebc62065ed391
5,110
py
Python
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
8
2020-02-22T12:47:12.000Z
2021-12-03T11:39:19.000Z
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
null
null
null
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
4
2018-08-15T12:58:36.000Z
2021-12-29T07:06:29.000Z
import re, scrapy from crawler.items import *
33.181818
218
0.520939
1cc17ff4c766e10f3ad5dd61384738c26b148c2c
22,005
py
Python
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 GoDaddy # # 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 ...
58.836898
79
0.578278
1cc2858f2edc96485c6ae59c62afeb79423f9cef
1,180
py
Python
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-04-23T11:11:46.000Z
2020-11-04T20:14:17.000Z
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
null
null
null
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-10-03T09:31:42.000Z
2021-05-15T04:41:12.000Z
import re import logging import httplib import view_base from models import rt_proxy LOG = logging.getLogger('ryu.gui')
26.818182
79
0.594915
1cc4d424336a53cdc71bcc2c504f86ad318db561
361
py
Python
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
14
2019-04-08T21:14:50.000Z
2022-02-12T18:58:48.000Z
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
27
2019-03-15T12:35:29.000Z
2020-07-10T10:31:38.000Z
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
3
2019-11-20T11:18:06.000Z
2021-07-26T04:50:00.000Z
"""This module contains tests for the helper module. """ from pywrangler.util.helper import get_param_names
18.05
54
0.609418
1cc5fd243fb313db4d6da43f6b24a969983fb154
964
py
Python
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # Created By : Giannis Kostas Georgiou # Project : Machine Learning for Fish Recognition (Individual Project) # ============================================================================= # Description : File in order to convert save...
43.818182
79
0.572614
1cc629a630efb8f26ff269373c402c157da69af1
2,283
py
Python
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
1
2021-09-05T15:05:53.000Z
2021-09-05T15:05:53.000Z
from .test_utils import PySparkTestCase from sparkts.datetimeindex import * import pandas as pd
45.66
90
0.654402
1cc943b894a8b8ca43a398705ed5a7c52cece87e
492
py
Python
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
1
2021-04-28T18:17:55.000Z
2021-04-28T18:17:55.000Z
# Definition for singly-linked list.
21.391304
80
0.530488
1ccaa4cf179ca9984d4a2effe3502e46bd80d7d5
1,214
py
Python
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
2
2019-01-17T12:11:27.000Z
2019-02-27T14:51:05.000Z
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
import numpy as np import photon_stream as ps import photon_stream_production as psp import pkg_resources import os runinfo_path = pkg_resources.resource_filename( 'photon_stream_production', os.path.join('tests', 'resources', 'runinfo_20161115_to_20170103.csv') ) drs_fRunID_for_obs_run = psp.drs_run._drs_fRu...
30.35
74
0.660626
1ccbfd84ed556c53c45b775bad63d6e98f029035
2,444
py
Python
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
16
2020-08-13T04:28:50.000Z
2021-06-10T06:24:51.000Z
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
1
2019-04-15T07:01:42.000Z
2019-04-15T07:01:42.000Z
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-18 05:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
40.733333
128
0.576105
1ccca623d7f5e702eea65074c02fe6486e238208
10,450
py
Python
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
1
2019-07-08T07:06:27.000Z
2019-07-08T07:06:27.000Z
import http import logging from typing import List, Tuple, MutableMapping from datetime import datetime import re from requests.packages.urllib3 import Retry import autoscaler.utils as utils from autoscaler.autoscaling_groups import AutoScalingGroup from autoscaler.azure_api import AzureApi, AzureScaleSet, AzureScale...
40.980392
150
0.655598
1cce392f19d05213758223c7be8ae0c890defc93
772
py
Python
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
""" Insertion Sort Approach: Loop Complexity: O(n2) """ if __name__ == '__main__': arr = [21, 4, 1, 3, 9, 20, 25, 6, 21, 14] sort_insertion(arr)
22.057143
56
0.443005
1ccedf375dff61d5b7747bbbaf81aa8a41e6f3f6
1,780
py
Python
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
3
2021-04-09T19:12:15.000Z
2021-08-24T18:24:58.000Z
""" NAME tarea_7.py VERSION [1.0] AUTHOR Ignacio Emmanuel Ramirez Bernabe CONTACT iramirez@lcg.unam.mx GITHUB https://github.com/eveiramirez/python_class/blob/master/Python2/tareas/tarea_7.py DESCRIPTION Este programa contiene arrays estructurados para los arrays ...
29.180328
89
0.567978
1ccf03aa9b400d7a3b6f76334d043ce47040c33d
11,857
py
Python
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
20
2021-12-22T14:15:03.000Z
2022-03-31T22:46:42.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
12
2022-01-18T16:55:56.000Z
2022-03-10T11:39:39.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
5
2021-12-25T07:28:29.000Z
2022-02-23T09:40:03.000Z
""" Base pipeline class. Main rule generator classes inherit from this one. """ from copy import deepcopy from typing import List, Tuple, Union, Dict from iguanas.pipeline.class_accessor import ClassAccessor from iguanas.utils.typing import PandasDataFrameType, PandasSeriesType import iguanas.utils.utils as utils from ...
40.606164
112
0.580417
1cd008f314f201433a589af299e0dc00308ca8c5
6,306
py
Python
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
import unittest import datetime from parameterized import parameterized from activity_merger import Interval from aw_core.models import Event from typing import List, Tuple def build_intervals_linked_list(data: List[Tuple[int, bool, int]]) -> Interval: """ Builds intervals linked list from the list of tuple...
30.172249
112
0.482873
1cd0df6aa8a1e2d70124b017898c86056e7b29dd
4,526
py
Python
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
8
2019-06-11T16:08:25.000Z
2020-10-28T09:03:53.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2019-06-21T03:57:35.000Z
2019-06-21T03:57:35.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2018-03-21T15:21:52.000Z
2018-03-21T15:21:52.000Z
""" NOTE: There are a few minor complications to fluid human control which make this code a little more involved than trivial. 1. Key press-release cycles can be, and often are, faster than one tick of the game/simulation, but the player still wants that cycle to count, i.e. to lay a bomb! 2. When holding down ...
33.776119
98
0.614671
1cd0eac7f0e61913c8d825507589abb58c69759a
14,852
py
Python
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
93
2015-02-11T01:41:22.000Z
2022-02-03T22:55:57.000Z
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
112
2015-02-23T22:20:29.000Z
2022-03-22T21:46:52.000Z
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
61
2015-02-22T01:34:01.000Z
2022-01-19T09:50:21.000Z
# Copyright 2015 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.581281
99
0.606181
1cd0fd2e907a405a13689ee31a56a04909e02b9c
555
py
Python
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
""" fixtures that return an sql statement with a list of values to be inserted.""" def load_language(): """ return the sql and values of the insert queuery.""" sql = """ INSERT INTO Spanglish_Test.Language ( `name`, `iso-639-1` ) VALUES (%s, %s) ...
19.137931
82
0.405405
1cd1aa4b57039ede6d30d90d5b70dc7281d0f585
9,693
py
Python
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
import datetime as dt from os.path import dirname, join import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from bokeh.io import curdoc from bokeh.layouts import column, gridplot, row from bokeh.models import ColumnDataSource, DataRange1d, Select, HoverTool, Panel, Tabs, LinearC...
37.280769
400
0.613123
1cd3b57ef203189fa0937ba41bdb1a37dbdad462
2,223
py
Python
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
34
2017-05-14T11:31:41.000Z
2022-03-24T06:07:31.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
77
2017-10-20T19:40:59.000Z
2022-03-01T05:07:36.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
2
2019-11-06T12:45:33.000Z
2021-11-24T14:55:28.000Z
""" ================ HTTPS Middleware ================ Change scheme for current request when aiohttp application deployed behind reverse proxy with HTTPS enabled. Usage ===== .. code-block:: python from aiohttp import web from aiohttp_middlewares import https_middleware # Basic usage app = web.App...
25.848837
79
0.645524
1cd41a80f04199f3be841ce38a8ac4428c343606
6,620
py
Python
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
5
2019-12-31T18:38:52.000Z
2021-01-07T08:57:17.000Z
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
null
null
null
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
1
2020-03-03T08:14:47.000Z
2020-03-03T08:14:47.000Z
import cv2 import numpy as np
51.317829
109
0.540483
1cd5217ab9022ac6fb992de8575b10b6f886806f
1,452
py
Python
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
import pandas_datareader.data as pdr import yfinance as fix import numpy as np fix.pdr_override() def back_test(strategy, seq_len, ticker, start_date, end_date, dim): """ A simple back test for a given date period :param strategy: the chosen strategy. Note to have already formed the model, and fitted with...
40.333333
111
0.669421
1cd64e7eef2ac9aae41c0784aa1ab81588c6d2ef
2,278
py
Python
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for custom component groups. It is possible to create subsystems of component groups in tespy. The subsystem class is the base class for custom subsystems. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control ...
25.311111
79
0.579017
1cd7fdf07b75be54fc81ee90365afd1023ab4167
7,940
py
Python
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
1
2020-07-23T22:30:36.000Z
2020-07-23T22:30:36.000Z
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. import copy import logging from typing import TYPE_CHECKING, Any, Callable, List, Optional, Type import torch import tor...
37.990431
116
0.614987
1cd87eec694df1d23bb94dc59dabf36d48ef6f7d
445
py
Python
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="raytracing-one-weekend", version="0.0.0", author="Andy Palmer", author_email="contactninezerozeronine@gmail.com", description="A raytracer achievable in a weekend.", url="https://github.com/ninezerozeronine/raytracing-one-weekend", in...
26.176471
69
0.662921
1cd93bcec91ffc966a787c6dda07671b2cad8b23
603
py
Python
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2021-06-03T22:07:24.000Z
2021-06-03T22:07:24.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2020-07-19T11:10:22.000Z
2020-07-19T11:10:22.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
2
2020-07-02T12:05:03.000Z
2020-07-02T18:34:39.000Z
""" URLconf of the homepage """ from django.urls import path, include from . import views urlpatterns = [ path('', views.home, name='home'), path('auth', views.auth, name='auth'), path('auth/public', views.auth_public, name='auth-public'), path('auth/full', views.auth_full, name='auth-full'), p...
27.409091
66
0.656716
1cd940fc315fde5b1737f292edb3bdacd8fa4aa7
3,058
py
Python
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
""" Notification email machinery, for tasks to send credentials and instructions to users. Email templates placed inside the `templates` directory of this module should: - extend from `layout` - provide `subject` and `body` blocks """ from enum import Enum import os.path from jinja2 import Environment, FileSystemLo...
30.888889
96
0.657292
1cd9be86a01ac85db863f60ec2922ba01db45a75
348
py
Python
nose2_example/my_package/myapp.py
dolfandringa/PythonProjectStructureDemo
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
2
2017-02-03T00:15:27.000Z
2017-02-03T02:26:25.000Z
nose2_example/my_package/myapp.py
dolfandringa/unittesting_example
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
null
null
null
nose2_example/my_package/myapp.py
dolfandringa/unittesting_example
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
null
null
null
from .operations import Multiply, Add, Substract
29
70
0.594828
1cd9cb84780ce4068a648d1e9469d9570121c655
5,852
py
Python
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
import os from typing import Union import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, KFold import utility as ut from variables import * # Read the data. train_data = pd.read_csv(os.path.join(DATA_PATH, ".".join([DATA...
27.866667
135
0.681647
1cd9fdc42b14ec8f2d6ab3af8d353bbdb853608c
1,971
py
Python
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
import base64 import random import string import netbyte import numpy as np try: import simplejson as json except ImportError: import json kinds = {}
27.375
115
0.559614
1cdaebcf2a2178841183e0647850aae12465877f
1,859
py
Python
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
import unittest from players import Player, Quarterback from possible_values import * from game import Game from random import randint, uniform, sample from season import * # TODO - some things you can add... if __name__ == '__main__': unittest.main()
28.166667
64
0.652501
1cdc48fef2a5dcb4bffb7cadff760f5a6da8ed72
2,486
py
Python
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
3
2022-02-21T09:40:00.000Z
2022-02-27T13:52:19.000Z
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
null
null
null
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
1
2022-02-21T09:40:02.000Z
2022-02-21T09:40:02.000Z
import os import logging import numpy as np from tqdm import tqdm from functools import partial from multiprocessing.pool import ThreadPool import pyworld as pw from util.dsp import Dsp logger = logging.getLogger(__name__)
37.666667
108
0.666935
1cdc6e1e4c787b21a5dbe8f394976972f434c199
3,025
py
Python
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys from subprocess import call print "divsum_count.py ListOfDivsumFiles\n" try: files = sys.argv[1] except: files = raw_input("Introduce RepeatMasker's list of Divsum files with library size (tab separated): ") files = open(files).readlines() to_join = [] header = "Coverage for ea...
27.752294
131
0.57686
1cdc98744b311e2367992861b764dff14f24294c
201
py
Python
agatecharts/charts/__init__.py
onyxfish/fever
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
4
2015-09-05T04:47:27.000Z
2015-09-16T15:14:43.000Z
agatecharts/charts/__init__.py
onyxfish/fever
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
18
2015-09-05T01:17:30.000Z
2015-09-23T13:08:27.000Z
agatecharts/charts/__init__.py
onyxfish/way
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from agatecharts.charts.bars import Bars from agatecharts.charts.columns import Columns from agatecharts.charts.lines import Lines from agatecharts.charts.scatter import Scatter
28.714286
46
0.840796
1cdce77473b836e98d4d4044b2d6d581603e5972
1,930
py
Python
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
11
2021-01-23T01:09:54.000Z
2021-01-25T07:16:30.000Z
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
7
2021-04-06T18:19:10.000Z
2021-09-22T19:45:03.000Z
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
3
2021-01-23T18:55:32.000Z
2021-02-16T17:47:59.000Z
from django.contrib.auth import update_session_auth_hash from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.contrib.auth.views import (LoginView, PasswordResetConfirmView, PasswordResetView) from django.http import Htt...
33.275862
103
0.748705
1cde121b7cc2a3e5e4fa33ad8b2f5852ba028e54
2,970
py
Python
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
24
2019-09-26T13:15:14.000Z
2021-11-10T11:10:04.000Z
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
null
null
null
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
11
2019-09-26T13:27:10.000Z
2020-11-04T03:13:20.000Z
import os from test.core.emr_system_unit_test_base import EMRSystemUnitTestBase from test.core.tconx_helper import TconxHelper
37.594937
108
0.662626
1cdeb5c9ff7c16810e652dbe520cbde408b27771
939
py
Python
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
1
2018-11-04T09:36:35.000Z
2018-11-04T09:36:35.000Z
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS_api
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
null
null
null
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS_api
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
null
null
null
from rest_framework import serializers from metrics.models import Metrics_Cpu, Metrics_PingServer, Metrics_MountPoint, \ Metrics_CpuLoad, Metrics_PingDb
27.617647
81
0.698616
1ce01d2d1af3efb76606596d816ab61448b4bddc
2,911
bzl
Python
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-09T16:01:14.000Z
2021-02-15T09:24:27.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-08T16:46:25.000Z
2020-12-09T16:17:55.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
3
2021-07-28T20:39:10.000Z
2022-01-26T19:33:28.000Z
# Copyright 2020 Plezentek, Inc. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.707865
86
0.61113
1ce0a4f2656bca31c4698766977c076b08c6dfcd
4,041
py
Python
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/mtmct
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
17
2021-09-01T23:13:14.000Z
2022-03-28T11:12:37.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
4
2022-01-21T05:47:09.000Z
2022-03-31T04:44:01.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
6
2021-12-16T02:08:43.000Z
2022-03-09T06:18:32.000Z
root = { "general" : { "display_viewer" : False, #The visible GPUS will be restricted to the numbers listed here. The pytorch (cuda:0) numeration will start at 0 #This is a trick to get everything onto the wanted gpus because just setting cuda:4 in the function calls will #not work...
48.686747
130
0.632022
1ce1d1ce742bc81665dc46ca2940199356484a9f
1,010
py
Python
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
1
2021-01-03T00:59:50.000Z
2021-01-03T00:59:50.000Z
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
null
null
null
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
null
null
null
from ..utils import TranspileTestCase
28.055556
44
0.40099
1ce29cc9381fd7dde956750ac0935a544001e2ba
22,057
py
Python
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
null
null
null
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
2
2020-09-02T22:58:36.000Z
2020-09-03T19:29:46.000Z
ogusa/tax.py
prrathi/OG-USA
2e5c116bb8656ab190a59e431a8d57415fe26b08
[ "CC0-1.0" ]
null
null
null
''' ------------------------------------------------------------------------ Functions for taxes in the steady state and along the transition path. ------------------------------------------------------------------------ ''' # Packages import numpy as np from ogusa import utils ''' -----------------------------------...
36.823038
109
0.518611
1ce2efac56c23c6a39d717edb12824108fd3d153
35,293
py
Python
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
null
null
null
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
1
2021-11-14T18:55:44.000Z
2021-11-14T18:55:44.000Z
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
1
2021-09-08T13:49:52.000Z
2021-09-08T13:49:52.000Z
"""Module containing the taxonomy items API endpoints of the v1 API.""" from datetime import datetime from sqlalchemy.sql.schema import Sequence from muse_for_anything.db.models.taxonomies import ( Taxonomy, TaxonomyItem, TaxonomyItemRelation, TaxonomyItemVersion, ) from marshmallow.utils import INCL...
39.43352
123
0.606041
1ce4e6e88e3b37747a733ee2057c09e983742a39
478
py
Python
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd df = pd.read_csv('transcount.csv') df = df.groupby('year').aggregate(np.mean) gpu = pd.read_csv('gpu_transcount.csv') gpu = gpu.groupby('year').aggregate(np.mean) df = pd.merge(df, gpu, how='outer', left_index=True, right_index=True) df = df.rep...
26.555556
101
0.717573
1ce550dcd34ad1e54a6bb3af57029219d257f4d1
742
py
Python
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.5 on 2018-07-02 19:46 from django.db import migrations, models import django.db.models.deletion
30.916667
115
0.58221
1ce6c087a65ed77b98463ac3f530b83170cfd6d6
241
py
Python
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(readline()) h = int(readline()) w = int(readline()) print((n - h + 1) * (n - w + 1))
21.909091
38
0.676349
1ce7603f33584c5aefec4359d0957617e3a28159
5,106
py
Python
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
4
2019-09-08T13:54:14.000Z
2021-12-18T11:46:59.000Z
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
1
2019-09-01T11:21:39.000Z
2019-09-01T15:01:21.000Z
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
1
2019-08-23T07:00:20.000Z
2019-08-23T07:00:20.000Z
import pygame from NetworkBroadcast import Broadcast, AnimatedSprite, DeleteSpriteCommand from Textures import HALO_SPRITE12, HALO_SPRITE14, HALO_SPRITE13 __author__ = "Yoann Berenguer" __credits__ = ["Yoann Berenguer"] __version__ = "1.0.0" __maintainer__ = "Yoann Berenguer" __email__ = "yoyoberenguer@hotma...
31.9125
99
0.570897
1ce783ade7ec4e76f4c0abea82bc09661b19e042
29,965
py
Python
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import logging import os.path import subprocess from collections import OrderedDict from itertools import izip import numpy as np import pandas as pd from django.conf import settings from django.core.cache import cache from django.db impo...
31.776246
86
0.64275
1ce813d53ecf60bcfa1c5a10f665cbdcffd14f05
1,579
py
Python
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, KeysView import attr from config.auth import OAuth2 from config.cfenv import CFenv from config.spring import ConfigClient
28.709091
80
0.644712
1ce82884bd68028c036284e33b78a44ed716634f
3,881
py
Python
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Confluent 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...
42.184783
113
0.670188
1ce98f8cbd7283e38faf8437d2c92e51357a9597
93
py
Python
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
i=input("Enter a string: ") list = i.split() list.sort() for i in list: print(i,end=' ')
15.5
27
0.591398
1cea0e3fced4fc9fe2a48efd4c3e8de95165a2da
948
py
Python
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
"""Config repositories use case.""" from __future__ import annotations import git_portfolio.config_manager as cm import git_portfolio.domain.gh_connection_settings as cs import git_portfolio.responses as res
37.92
83
0.74789
1cea0f437c7a9f8ccbc1159b25612a99704a7170
943
py
Python
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
import pytest from ..logic import Board, empty_board, example_board, solved_board
27.735294
67
0.66702
1ceb3eafc161d9fd9d9f5411f96898dcc0d87036
8,111
py
Python
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import ast import rhinoscriptsyntax as rs __all__ = [ 'mesh_select_vertex', 'mesh_select_vertices', 'mesh_select_face', 'mesh_select_faces', 'mesh_select_edge', 'mesh_select_edges', ...
27.494915
94
0.53298
1ceb4e48c8b6f66fc03698755dae7d3610a03921
1,258
py
Python
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
from telegram import Update from telegram.ext import Updater, CallbackContext, ConversationHandler, CommandHandler, MessageHandler, Filters from db import DBConnector import re str_matcher = r"\"(?P<name>.+)\"\s*(?P<fat>\d+)\s*/\s*(?P<protein>\d+)\s*/\s*(?P<carbohydrates>\d+)\s*(?P<kcal>\d+)" ADD_1 = 0 def add_...
32.25641
116
0.67806
1cebb0fff2532d5f8a3a2e41a74346938730be3d
1,298
py
Python
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from mock import patch import numpy as np
24.961538
65
0.682589
1cec0b60edcd31e7b741951f8b76edad6144ee56
1,345
py
Python
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
import Cipher.tk from Cipher.tk import EncryptDecryptCoord, GetChiSquared, Mode ''' # testing do write it here a = " abcdefghijklmnopqrstuvwxyz" p=[] for c in a: p.append (c) print ("starting...") print (MultiDecrypt ("dtyktckcxlbd", p)) # original 231 '''
32.804878
150
0.584387
1cecb0baeee1d541b67de121aac28491961e0c43
2,234
py
Python
scripts/vcf_filter.py
bunop/cyvcf
f58860dd06b215b9d9ae80e2b46337fb6ab59139
[ "MIT" ]
46
2015-01-31T17:24:34.000Z
2021-01-15T01:29:07.000Z
scripts/vcf_filter.py
arq5x/cyvcf
f58860dd06b215b9d9ae80e2b46337fb6ab59139
[ "MIT" ]
11
2015-01-13T17:59:32.000Z
2016-09-23T21:50:00.000Z
scripts/vcf_filter.py
mandawilson/PyVCF
d23ab476237aced75635e543c061c1bf80a7c2a4
[ "MIT" ]
7
2015-02-10T09:12:00.000Z
2016-06-30T03:37:37.000Z
#!/usr/bin/env python import sys import argparse import pkg_resources import vcf from vcf.parser import _Filter parser = argparse.ArgumentParser(description='Filter a VCF file', formatter_class=argparse.RawDescriptionHelpFormatter, ) parser.add_argument('input', metavar='input', type=str, nargs=1, ...
30.60274
81
0.651746
1cecb4c2f3b6f24c919644faa0e058b12f679c06
273
py
Python
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
import os from flask import Blueprint, render_template
22.75
58
0.652015
1ced85b293ca7dbd18aca02752e3ef9bf70663c2
4,125
py
Python
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
7
2019-09-22T16:16:15.000Z
2020-08-27T23:53:07.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
1
2020-08-27T23:53:02.000Z
2020-08-28T06:10:10.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
null
null
null
# from aiohttp.client_exceptions import ClientError from lxml import html from pathlib import Path from asyncio import create_task from functools import wraps def download_search(client, keyword, page): safe_keyword = keyword.replace(" ", "+") # url = f"https://mobile.alphacoders.com/by-resolution/5?searc...
30.555556
95
0.629333
1ceddd105ecb3e0dcae569f584b7c20f28eab09e
553
py
Python
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2019-09-27T22:19:09.000Z
2019-12-02T23:12:18.000Z
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
1
2019-10-03T17:46:23.000Z
2019-10-03T17:46:23.000Z
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2021-07-17T18:23:50.000Z
2022-03-03T04:53:03.000Z
# SQL output is imported as a pandas dataframe variable called "df" # Source: https://stackoverflow.com/questions/19441730/trimmed-mean-with-percentage-limit-in-python import pandas as pd import matplotlib.pyplot as plt from scipy.stats import tmean, scoreatpercentile import numpy as np my_result = trimmean(df["amt_...
39.5
100
0.779385
1cef547e153ff6ac5a327c151e5950b2c7563ac2
1,298
py
Python
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
import os import cv2 import random import numpy as np from tensorflow.keras.utils import to_categorical from scripts.consts import class_dict
25.45098
79
0.617874
1cf00fc10b36c1bb5b56b4af86d43c0bd17b8dff
33,478
py
Python
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Cisco Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
42.057789
79
0.642183
1cf117501c6990cccaec0505efbf96de4aa8d218
299
py
Python
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
95
2021-02-20T21:53:29.000Z
2022-01-14T17:24:50.000Z
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
import pytest from opentimesheet.core.tests import TenantTestCase
23
66
0.665552
1cf1510ac46bda476c715d01c64fd6ef223f7da4
10,434
py
Python
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
6
2018-05-31T21:37:15.000Z
2022-01-24T15:22:46.000Z
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
68
2019-06-06T21:00:49.000Z
2022-03-14T22:35:29.000Z
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
2
2020-12-13T01:53:05.000Z
2021-07-19T04:56:51.000Z
from ami.flowchart.library.DisplayWidgets import ScalarWidget, ScatterWidget, WaveformWidget, \ ImageWidget, ObjectWidget, LineWidget, TimeWidget, HistogramWidget, \ Histogram2DWidget from ami.flowchart.library.common import CtrlNode from amitypes import Array1d, Array2d from typing import Any import ami.graph_...
33.986971
96
0.57236
1cf1add35a6f5a301f98fac454ddd82a0c4fd197
1,435
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.transform_feedback_instanced This module customises the behaviour of the OpenGL.raw.GL.ARB.transform_feedback_instanced to provide a more Python-friendly API Overview (from the spec) Multiple instances of geometry may be specified to the GL by calling functions such as DrawArraysInstance...
39.861111
75
0.822997
1cf2c5ea382bc1bc6087303216c79dc6b5f0dc2a
2,681
py
Python
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2017-12-14T14:25:17.000Z
2019-03-09T03:29:12.000Z
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
10
2019-06-14T09:12:55.000Z
2021-10-01T12:15:43.000Z
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2019-05-10T14:59:48.000Z
2022-03-07T16:34:23.000Z
from regression_tests import *
31.174419
82
0.638941