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
5630aada68bd06afa2bf00f8393f4ecb9edd571f
1,124
py
Python
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
null
null
null
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
null
null
null
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
1
2020-09-21T14:22:10.000Z
2020-09-21T14:22:10.000Z
"""uuid ids Revision ID: b6a452c73bc3 Revises: 6df0d5aac594 Create Date: 2017-12-06 20:57:39.660665 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b6a452c73bc3' down_revision = '6df0d5aac594' branch_labels = None depends_on = None def upgrade(): op.crea...
28.1
83
0.66726
0
0
0
0
0
0
0
0
577
0.513345
5632552890c6924fe604b24e015f930f2f4fff85
575
py
Python
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
441
2016-07-07T11:13:35.000Z
2022-03-18T03:22:53.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
20
2016-07-07T14:38:07.000Z
2020-01-13T19:15:11.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
76
2016-07-07T14:09:09.000Z
2020-03-22T04:03:15.000Z
# vim: ts=2 sw=2 noexpandtab from __future__ import unicode_literals import requests from .AbstractModule import AbstractModule class RedditModule(AbstractModule): def try_login(self, uname, password): payload = { 'user': uname, 'passwd': password, 'api_type': 'json'} headers = { 'user-agent': Abstra...
25
69
0.721739
418
0.726957
0
0
0
0
0
0
169
0.293913
56330ea2eae7358118452b9d5a4b8adbc3462322
68
py
Python
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
from __future__ import unicode_literals __version__ = '2020.03.06'
17
39
0.808824
0
0
0
0
0
0
0
0
12
0.176471
56337b5a8e649c6eb401d664fa33c75392141f25
4,469
py
Python
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
"""Table based reclassify triggered by probability threshold.""" import argparse import os import logging import hashlib from ecoshard import geoprocessing from ecoshard import taskgraph import pandas import numpy from osgeo import gdal gdal.SetCacheMax(2**27) logging.basicConfig( level=logging.DEBUG, format...
36.631148
81
0.65876
0
0
0
0
0
0
0
0
985
0.220407
5633f5fb9e2ed30314c515784fbe70c043b5a858
13,887
py
Python
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
9
2021-11-27T20:29:16.000Z
2022-03-21T09:32:17.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
1
2022-01-03T12:53:43.000Z
2022-01-03T18:53:56.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
2
2021-12-15T09:16:10.000Z
2022-01-03T12:32:10.000Z
import pytest import midas import ke import re def assert_pattern(pattern, matches, not_matches=()): if isinstance(pattern, str): pattern = ke.compile(pattern) for m in matches: assert pattern.match(m), (pattern, m) for m in not_matches: assert not pattern.match(m), (pattern, m) ...
31.924138
426
0.557356
0
0
0
0
396
0.028516
0
0
5,680
0.409016
56341b19d0cc7d858663c40581c0b7957017b17d
4,173
py
Python
androguard/misc.py
nawfling/androguard
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
1
2019-03-29T19:24:23.000Z
2019-03-29T19:24:23.000Z
androguard/misc.py
adiltirur/malware_classification
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
null
null
null
androguard/misc.py
adiltirur/malware_classification
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
null
null
null
from future import standard_library standard_library.install_aliases() from androguard import session from androguard.core.bytecodes.dvm import * from androguard.decompiler.decompiler import * from androguard.core.androconf import CONF def init_print_colors(): from IPython.utils import coloransi, io androcon...
32.348837
109
0.632159
0
0
0
0
0
0
0
0
1,968
0.471603
56368197977f246f771575ac14b13fe95e389918
31,263
py
Python
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- # This is a sample controller # - index is the default action of any application # - user is required for authentication and authorization ...
45.308696
143
0.581486
0
0
0
0
4,120
0.131785
0
0
10,174
0.325433
563876079d3f5e1179bfb42ae2c1c70daa64503e
2,582
py
Python
src/bpp/const.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/const.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
null
null
null
src/bpp/const.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from enum import Enum TO_AUTOR = 0 TO_REDAKTOR = 1 TO_INNY = 2 TO_TLUMACZ = 3 TO_KOMENTATOR = 4 TO_RECENZENT = 5 TO_OPRACOWAL = 6 TO_REDAKTOR_TLUMACZENIA = 7 TYP_OGOLNY_DO_PBN = { TO_AUTOR: "AUTHOR", TO_REDAKTOR: "EDITOR", TO_TLUMACZ: "TRANSLATOR", TO_REDAKTOR_TLUMA...
26.346939
99
0.763362
402
0.155093
0
0
0
0
0
0
740
0.285494
5639659aa605d44624d092a964d7a713b28f1136
16,604
py
Python
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
11
2022-01-26T14:25:47.000Z
2022-03-10T10:22:31.000Z
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
1
2022-01-27T05:00:29.000Z
2022-01-28T11:42:32.000Z
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
2
2022-03-02T18:40:23.000Z
2022-03-08T15:56:34.000Z
import csv from datetime import datetime, timedelta import random import string import os from os.path import expanduser from pathlib import Path from monitor.dbt_runner import DbtRunner import click any_type_columns = ['date', 'null_count', 'null_percent'] FILE_DIR = os.path.dirname(__file__) def generate_date_ran...
49.861862
134
0.675982
0
0
0
0
1,254
0.075524
0
0
3,294
0.198386
563a4921fb61340d4b8b99bfe1684f0fe71aff68
105
py
Python
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
from typing import List, T def get_first_item(items: List[T]) -> T: return next(iter(items), None)
17.5
40
0.685714
0
0
0
0
0
0
0
0
0
0
563acc285f6bb6d32cc9472259e3ac6433995b1c
1,956
py
Python
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
import requests import logging import math import xbmcaddon from xbmcgui import ListItem from xbmcplugin import addDirectoryItem, endOfDirectory from resources.lib.constants.url import BASE_URL, SEARCH_PATH from resources.lib.router_factory import get_router_instance from resources.lib.routes.episodelist import episode...
30.092308
111
0.618609
0
0
0
0
0
0
0
0
224
0.114519
563ba6e4672f710916b63d283194a3ba338b6e13
605
py
Python
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
3
2018-08-02T21:12:17.000Z
2019-09-16T12:37:07.000Z
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
null
null
null
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
2
2020-01-09T18:10:46.000Z
2022-01-18T19:06:52.000Z
from setuptools import setup, Extension setup(name='arm_now', version='1.2', author='@chaign_c', url='https://github.com/nongiach/arm_now', packages=['arm_now'], py_modules=['arm_now'], entry_points = { 'console_scripts': [ 'arm_now = arm_now:...
26.304348
72
0.452893
0
0
0
0
0
0
0
0
212
0.350413
563cde578c182b51e4e7d365b885a0e62d9ab264
2,095
py
Python
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
from astropy.table import Table from collections import OrderedDict import numpy as np from .spectrum import Spectrum1D from copy import deepcopy from scipy import signal def read_expres(fname, full_output=False, as_arrays=False, as_order_dict=False, as_raw_table=False): if full_output: raise NotImplemente...
32.230769
100
0.607637
0
0
0
0
0
0
0
0
282
0.134606
563e1dc93625ecb24de9882d6fb7672e51e4500d
9,664
py
Python
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
15
2018-11-21T14:57:24.000Z
2022-03-04T15:42:09.000Z
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
125
2019-11-06T13:03:35.000Z
2022-03-07T13:38:33.000Z
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
6
2018-11-20T15:56:49.000Z
2021-10-08T10:21:06.000Z
# -*- coding: utf-8 -*- """ This code evaluates the outputs from calibrated BusSim @author: geomlk """ import numpy as np import matplotlib.pyplot as plt import pickle import os os.chdir("/Users/minhkieu/Documents/Github/dust/Projects/ABM_DA/bussim/") ''' Step 1: Load calibration results ''' def load_calibrated_param...
45.158879
119
0.627276
0
0
0
0
0
0
0
0
2,101
0.217405
563f17c503aa91de61cc1f7b7afc9304efcf0e5a
596
py
Python
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
3
2021-02-24T12:55:01.000Z
2021-03-19T02:19:25.000Z
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 15 feb. 2015 @author: mohamed seghilani ''' import opencavity import webbrowser import platform #if __name__ == '__main__': def launch(): help_path=opencavity.__file__ if platform.system()=='Windows': separator='\\' else: separator='/' ...
22.074074
60
0.654362
0
0
0
0
0
0
0
0
192
0.322148
56415df55959a03e911d73640e65d94b304b6856
161
py
Python
pybamm/models/submodels/thermal/__init__.py
manjunathnilugal/PyBaMM
65d5cba534b4f163670e753714964aaa75d6a2d2
[ "BSD-3-Clause" ]
330
2019-04-17T11:36:57.000Z
2022-03-28T16:49:55.000Z
pybamm/models/submodels/thermal/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
1,530
2019-03-26T18:13:03.000Z
2022-03-31T16:12:53.000Z
pybamm/models/submodels/thermal/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
178
2019-03-27T13:48:04.000Z
2022-03-31T09:30:11.000Z
from .base_thermal import BaseThermal from .isothermal import Isothermal from .lumped import Lumped from .x_full import OneDimensionalX from . import pouch_cell
26.833333
37
0.84472
0
0
0
0
0
0
0
0
0
0
5641f0fd6f31eed051b1b8fdfd70047f7ef7c686
463
py
Python
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
1
2020-10-15T06:42:34.000Z
2020-10-15T06:42:34.000Z
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
''' http://insight.bitpay.com/ ''' import logging import requests import time from lib import config, exceptions, util bitcoin_rpc_session = None def check(): return True def searchrawtransactions(address): unconfirmed = util.unconfirmed_transactions(address) rawtransactions = util.rpc('searchrawtransac...
23.15
81
0.742981
0
0
0
0
0
0
0
0
72
0.155508
56423cd4c21ed76ea69621b3620013d136b5be98
4,876
py
Python
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup def getHotProducts(url): if "adafruit" in url: r = requests.get(url) featuredProducts = [] if r.status_code == 200: body = r.text bPage = BeautifulSoup(body, "html.parser", f...
66.794521
352
0.553527
0
0
0
0
0
0
0
0
1,564
0.320755
564286566a89b40797a3f75a9f3fdf67dede75df
569
py
Python
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'merchant' urlpatterns = [ path('', views.merchant, name='merchant'), path('makanan', views.makanan, name='makanan'), path('makanan/search_makanan', views.search_makanan, name='search_makanan'), path('search_merchant', views.search_m...
37.933333
81
0.70123
0
0
0
0
0
0
0
0
196
0.344464
5642bea2a4d006a16cb5dc638961e8224156c351
1,049
py
Python
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
1
2018-02-04T18:19:07.000Z
2018-02-04T18:19:07.000Z
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
null
null
null
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
null
null
null
"""Worker application. It calls an external slow task and send its output, line by line, as "log" events through SocketIO. The web page will then print the lines. """ # Disable the warning because eventlet must patch the standard library as soon # as possible. from communication import (CELERY, ...
29.138889
78
0.673975
0
0
0
0
308
0.293613
0
0
478
0.455672
5643917f5c9c7a15f272cc44625b2354347918f3
536
py
Python
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 # -*- coding: latin-1 -*- from database import User from database import ApiKey from flask_principal import Permission from flask_principal import RoleNeed admin_permission = Permission(RoleNeed('admin')) def map_api_key_to_user(key): """ Take an input of an API key and return a Use...
21.44
58
0.686567
0
0
0
0
0
0
0
0
178
0.33209
564798546d70fb989e7e5fe9ad82aeed6358914e
1,173
py
Python
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
2
2021-01-17T10:07:41.000Z
2021-04-24T22:44:56.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
3
2021-01-17T05:34:40.000Z
2021-03-04T08:24:30.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
null
null
null
""" Queries in this module have a shared 'after' query, which lets Graphql paginate """ from gql import gql # type: ignore[import] query_contributed_to: gql = gql( r"""query ($after: String) { viewer { repositoriesContributedTo(first: 100, after: $after, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, RE...
16.521127
120
0.495311
0
0
0
0
0
0
0
0
1,074
0.915601
564e73deb5725930bc5cf0b682535387843bd361
2,032
py
Python
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
5
2017-03-30T08:31:14.000Z
2020-09-17T07:35:45.000Z
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
6
2017-07-30T14:42:12.000Z
2020-09-23T20:37:43.000Z
""" ``GribFile`` class that implements a GRIB file that closes itself and its messages when it is no longer needed. Author: Daniel Lee, DWD, 2014 """ import gribapi from gribmessage import GribMessage class GribFile(file): """ A GRIB file handle meant for use in a context manager. Individual messages c...
30.787879
79
0.614173
1,826
0.898622
0
0
0
0
0
0
1,195
0.588091
564e9d2f5c1a74be0f81910150ed2deb006e658d
2,525
py
Python
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-02-21 03:11 from django.db import migrations provinces = ( ('Hà Nội', 'Thành Phố'), ('Hà Giang', 'Tỉnh'), ('Cao Bằng', 'Tỉnh'), ('Bắc Kạn', 'Tỉnh'), ('Tuyên Quang', 'Tỉnh'), ('Lào Cai', 'Tỉnh'), ('Điện Biên', 'Tỉnh'), ('Lai Châu', 'Tỉnh'), ('Sơn ...
26.302083
78
0.521188
191
0.068141
0
0
0
0
0
0
1,467
0.523368
564f92d435e931088cb6bd29d3c1bab009096fee
239
py
Python
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
cube = lambda x: pow(x,3) def fibonacci(n): l=list() if n==0: l=[] elif n==1: l=[0] else: l=[0,1] for i in range(2,n): num=l[i-1]+l[i-2] l.append(num) return 1
17.071429
29
0.389121
0
0
0
0
0
0
0
0
0
0
56515a1fa5265b9401ddb7b285541574d7aa9756
804
py
Python
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" import io import tensorflow as tf import matplotlib.pyplot as plt import numpy as np import tensorflow_datasets as tfds from tensorflow import keras from tensorflow.keras import layers # Make sure we don't get any GPU errors physical_devices = tf.config.list_physic...
22.333333
74
0.746269
0
0
0
0
70
0.087065
0
0
120
0.149254
5651a5988f1a40d8d84c86f66a6de01ecbb914b9
361
py
Python
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
3
2015-08-06T00:05:06.000Z
2017-01-16T15:59:41.000Z
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
from fabric.api import * env.user = 'ptigas' env.hosts = ['hocus.io'] def deploy(): with cd('repos/hocus'): run('git pull') with cd('repos/hocus/webapp'): run('composer install') with cd('repos/hocus'): run('rsync -rv --exclude=vendor webapp/* ~/Sites/hocus.io/') run('cp -r ~/Sites/hocus.io/settings....
22.5625
79
0.65097
0
0
0
0
0
0
0
0
219
0.606648
565251327ee0a8f38bb41a346c65b4fe497ff914
949
py
Python
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
1
2020-12-19T06:42:54.000Z
2020-12-19T06:42:54.000Z
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
from src.helpers.staticHelper import StaticHelper from src.routes.interfaces.iEntityIndexerLogic import IEntityIndexerLogic from src.logics.interfaces.iIndexingAlgorithm import IIndexingAlgorithm from src.logics.interfaces.iEntityData import IEntityData class EntityIndexerLogic(IEntityIndexerLogic): def __init__(s...
43.136364
87
0.758693
692
0.729189
0
0
0
0
0
0
210
0.221286
5655be4e2b47674fc1874d360bbc03ea8fef9a3b
377
py
Python
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
4
2022-01-14T12:31:33.000Z
2022-01-28T10:25:44.000Z
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
from server.connection import Base from sqlalchemy import Column, String from sqlalchemy.dialects.postgresql import UUID class Hostel(Base): __tablename__ = "hostel" id = Column(UUID(as_uuid=True), primary_key=True) name = Column(String(255), nullable=False) description = Column(String(255), nullable=...
26.928571
53
0.732095
253
0.671088
0
0
0
0
0
0
8
0.02122
56572951cdbd706ef85de0b8777578cddbef4cf9
2,047
py
Python
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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/LICENS...
34.694915
83
0.629213
0
0
0
0
0
0
0
0
630
0.307767
5659bca9797572b75efd680fe7b26dc41264ab05
892
py
Python
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='arrow', version='0.4.4', description='Better dates and times for Python', url='http://crsmithdev.com/arrow', author='Chris Smith', author_email="crsmithdev@gmail.com", license='Apache...
27.875
70
0.610987
0
0
0
0
0
0
0
0
491
0.550448
565c37bb80f2d86759c5fa9c22ae78a191b901e0
3,061
py
Python
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
from typing import List from decimal import Decimal from yayFinPy.stock import Stock import pandas as pd def test_constructor(): try: stock = Stock("AAPL") assert(stock != None) return 1 except Exception as e: print("Test Failed: test_constructor: ", e) return 0 def test_constructor_failure(): try: stock...
24.685484
74
0.704998
0
0
0
0
0
0
0
0
481
0.157138
565dfbf75306a316f72db1f51facc9031f0feace
3,184
py
Python
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import os import rospy import rospkg from readbag import restore from qt_gui.plugin import Plugin from python_qt_binding.QtCore import Qt from python_qt_binding import loadUi from python_qt_binding.QtGui import QFileDialog, QGraphicsView, QIcon, QWidget from PyQt4 import QtGui, QtCore from exam...
31.524752
107
0.737123
2,820
0.885678
0
0
0
0
0
0
1,539
0.483354
565e96a6d98c5992001beec0122786d45a48e5c3
955
py
Python
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup setup( name='Flask-SimpleSQLA', version='1.0', url='http://github.com/blaxpirit/flask-simplesqla', license='BSD', author="Oleh Prypin", author_email='blaxpirit@gmail.com', description="Extension providing basic support of SQLAlchemy in Flask applications", ...
31.833333
88
0.623037
0
0
0
0
0
0
0
0
585
0.612565
5660372ec7b8f27123eb6cd1329246a86aba84f8
7,879
py
Python
Day20/Day20.py
EllAchE/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
1
2021-12-04T01:06:18.000Z
2021-12-04T01:06:18.000Z
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
# --- Day 20: Jurassic Jigsaw --- # The high-speed train leaves the forest and quickly carries you south. You can even see a desert in the distance! # Since you have some spare time, you might as well see if there was anything interesting in the image the Mythical # Information Bureau satellite captured. # # After deco...
24.468944
126
0.486864
713
0.090494
0
0
0
0
0
0
4,467
0.56695
56628c54f6542fcfadf155107dcfc82a5c903211
11,248
py
Python
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
import logging import os import pickle from typing import NamedTuple import gym from gym import Wrapper, GoalEnv from gym.wrappers import FlattenObservation, TimeLimit, TransformReward, FilterObservation from runstats import Statistics import torch from envs.gym_mujoco.custom_wrappers import DropGoalEnvsAbsoluteLocat...
36.75817
107
0.674876
7,071
0.628198
0
0
0
0
0
0
577
0.051262
56634cb9015c3fca756d9ed11738ca8195395704
3,727
py
Python
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
92
2019-08-15T11:03:50.000Z
2022-03-12T01:21:05.000Z
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
3
2020-03-11T08:57:50.000Z
2021-01-06T01:39:47.000Z
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
16
2019-10-12T11:28:53.000Z
2022-03-28T14:04:12.000Z
from typing import List, Optional, TypeVar import torch import torch.nn as nn from torecsys.inputs.base import BaseInput class ImageInput(BaseInput): """ Base Input class for image, which embed image by a stack of convolution neural network (CNN) and fully-connect layer. """ ImageInputs = TypeVa...
38.030612
106
0.581701
3,601
0.966193
0
0
0
0
0
0
1,749
0.469278
566467ac5da574abf21d4a1577d72293c60ca80a
31,259
py
Python
optimus/infer.py
Pcosmin/Optimus
ef3306d1b752bbfb1959ddb9103786acb8e9b9ba
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
optimus/infer.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
optimus/infer.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
# This file need to be send to the cluster via .addPyFile to handle the pickle problem # This is outside the optimus folder on purpose because it cause problem importing optimus when using de udf. # This can not import any optimus file unless it's imported via addPyFile import datetime import math import os import re f...
27.324301
133
0.55632
6,869
0.219044
0
0
6,064
0.193374
0
0
10,707
0.341433
56652a7a9ad8a080d50971b9bce49832c3f1c49d
6,853
py
Python
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
15
2020-01-17T16:45:09.000Z
2022-01-18T08:44:16.000Z
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
3
2020-12-01T07:34:57.000Z
2021-08-09T23:07:19.000Z
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
2
2019-05-30T18:52:09.000Z
2020-06-01T13:36:33.000Z
import codecs import numpy import glob import re from sklearn.metrics import f1_score def read_passages(filename, is_labeled): str_seqs = [] str_seq = [] label_seqs = [] label_seq = [] for line in codecs.open(filename, "r", "utf-8"): lnstrp = line.strip() if lnstrp == "": ...
34.265
121
0.59069
0
0
0
0
0
0
0
0
581
0.08478
5667c67a21bb9a3e1bab52388c65b4ea9c28eb56
364
py
Python
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
import json from glob import glob data = [] for fname in ['critic-0.jsonlines']+glob('*new*.jsonlines'): print fname with open(fname) as f: for line in f: data.append(json.loads(line)) new_data = [] for i in data: if i['imdb_mid'] != -1: new_data.append(i) with open('compact....
19.157895
60
0.598901
0
0
0
0
0
0
0
0
64
0.175824
5669105e25d30b05664f89f0df0423f50da1ae02
2,965
py
Python
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
298
2015-01-31T11:43:22.000Z
2022-03-15T02:18:21.000Z
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
359
2015-01-17T16:56:42.000Z
2022-02-08T05:27:08.000Z
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
109
2015-02-03T13:02:45.000Z
2021-12-21T12:57:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Exercise 11.5 from Kane 1985.""" from __future__ import division from sympy import expand, solve, symbols, trigsimp from sympy import sin, tan, pi from sympy.physics.mechanics import Point, ReferenceFrame, RigidBody from sympy.physics.mechanics import dot, dynamicsymbol...
31.88172
74
0.66914
0
0
0
0
0
0
0
0
589
0.198651
566a183503f12d2d76263243546091eed83cab3c
3,706
py
Python
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
import hashlib import os import logging import posixpath from seaserv import seafile_api from seahub.utils import normalize_file_path, check_filename_with_rename from seahub.tags.models import FileUUIDMap logger = logging.getLogger(__name__) def create_user_draft_repo(username, org_id=-1): repo_name = 'Drafts...
28.953125
92
0.658662
0
0
0
0
0
0
0
0
323
0.087156
566d06f55eb168bd0c5dd0836c75fd3bf4352b95
781
py
Python
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
1
2020-07-13T17:28:27.000Z
2020-07-13T17:28:27.000Z
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
null
null
null
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
null
null
null
def get_itinerary(flights, starting_point, current_itinerary): if not flights: return current_itinerary + [starting_point] updated_itinerary = None for index, (city_1, city_2) in enumerate(flights): if starting_point == city_1: child_itinerary = get_itinerary( f...
31.24
98
0.653009
0
0
0
0
0
0
0
0
12
0.015365
566d5c200e2aef246e18708df545abf4a5788862
1,233
py
Python
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
1
2021-09-17T12:54:56.000Z
2021-09-17T12:54:56.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
42
2021-08-20T14:09:48.000Z
2021-09-25T12:51:04.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
2
2021-08-21T15:37:53.000Z
2021-09-17T12:54:59.000Z
import threading import time def _stamp(): return int(time.time()*1000) _base = int(time.mktime(time.strptime('2020-1-1', '%Y-%m-%d'))*1000) class Snowflake(): def __init__(self, machine: int = 0): self.machine = machine & 0b11111 self._mutex = threading.Lock() self._lstTime = _stamp...
22.833333
68
0.514193
734
0.595296
0
0
0
0
0
0
128
0.103812
566dacd3762055b1031b88c7abeee1f2fb17e4a3
1,878
py
Python
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-02-11T07:58:10.000Z
2020-02-03T19:51:29.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
32
2018-08-13T15:42:45.000Z
2019-08-15T00:30:55.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-04-30T19:50:45.000Z
2018-08-28T16:10:49.000Z
# geneexpr.py - simple gene expression example # Richard M. Murray, 11 Aug 2018 # # This example shows how to use the txtl library to create a model for # a simple gene expression construct. This model is constructed to # demonstrate the ability to mimic the MATLAB TX-TL modeling toolbox # approach as well as a few si...
32.947368
77
0.755059
0
0
0
0
0
0
0
0
1,175
0.625666
566e601ac7f314a0c7263784d0d159ced84a93ad
201
py
Python
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
from expression_evaluator.token import * class InOperator(BasicOperator): symbols = ['in'] priority = PriorityLevel.String @classmethod def _function(cls, a, b): return a in b
22.333333
40
0.681592
159
0.791045
0
0
64
0.318408
0
0
4
0.0199
566e992466a08d95a9769f7efc588017224e9ab9
2,632
py
Python
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
import re import numpy as np def timestamp_to_num(ts): num_list = [] ts_list = re.split('[:,]', ts) for i in ts_list: num_list.append(int(i)) return np.array(num_list) def main(filename, delta, output, direction): buff = [] # Read file with open(filename, 'r') as f: conte...
24.37037
84
0.612082
0
0
0
0
0
0
0
0
357
0.135638
56700bfa5388728c85765f29f5c4e7e6f06cee4a
962
py
Python
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=50, required=True) last_name = forms.CharField(max_length=50, required=True) email = forms.EmailField(max_l...
43.727273
91
0.674636
837
0.870062
0
0
0
0
0
0
208
0.216216
56707ce7ef82994c6105b84839758860eff4cf9f
11,991
py
Python
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
11
2018-11-09T15:47:14.000Z
2021-08-18T18:05:11.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
5
2018-08-31T15:07:20.000Z
2020-03-30T18:52:04.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
1
2019-04-18T13:42:30.000Z
2019-04-18T13:42:30.000Z
# # COPYRIGHT (C) 2002-2011 Rajgopal Srinivasan and modified by changjin.hong@gmail.com # """ .. module:: preprocess_clinvar :platform: Unix, Windows, MacOSX :synopsis: Transparent opening of compressed and uncompressed files .. moduleauthor:: ; changjin.hong@gmail.com """ import os, dill, re, argparse from gcn.li...
32.584239
164
0.68835
0
0
0
0
0
0
0
0
3,478
0.290051
56708965d6fec056a956b940dd9b227f3d8fbfd4
8,820
py
Python
dist_train/workers/baseline.py
victorcampos7/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
30
2020-02-16T15:52:59.000Z
2022-03-22T10:54:54.000Z
dist_train/workers/baseline.py
imatge-upc/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
null
null
null
dist_train/workers/baseline.py
imatge-upc/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
7
2020-02-16T15:53:05.000Z
2022-01-18T03:41:03.000Z
# Copyright (c) 2019, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: MIT # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT import os import json import time import torch import numpy as np from dist_train.utils.shared_optim import SharedAdam a...
37.372881
113
0.625057
8,368
0.948753
0
0
0
0
0
0
1,319
0.149546
5670f35e40b02807226db734417e790c3490e50a
779
py
Python
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
# see https://www.codewars.com/kata/5a908da30025e995880000e3/solutions/python from TestFunction import Test def prime_series(number): is_prime = lambda number: all( number%i != 0 for i in range(2, int(number**.5)+1) ) ret = '' for n in range(2, number): if is_prime(n) == True: ret += str(n) re...
29.961538
85
0.679076
0
0
0
0
0
0
0
0
145
0.186136
567114ba199318d542e09eb261fb42b250b3ecc5
707
py
Python
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2016-03-26T19:30:38.000Z
2016-03-26T19:30:38.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2018-05-25T13:30:46.000Z
2018-05-25T13:30:46.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
null
null
null
from pygooglechart import Chart from pygooglechart import SimpleLineChart from pygooglechart import Axis try: import stackless except ImportError: stackless = None import timeit import gc results = dict() RANGE = range(0, 100000, 10000)[1:] if stackless: libs = ["stacklessb", "fibrab", "kamaeliab"] else:...
22.09375
110
0.643564
0
0
0
0
0
0
0
0
123
0.173975
5672916d34e9bf0fa027e7668987fc3274ffeb22
7,445
py
Python
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
import numpy as np from scipy.linalg import eigh import voice_activity_detector import features_extraction import statistics import utils def get_sigma(ubm, space_dimension): sigma = np.zeros(shape=(len(ubm.covariances) * len(ubm.covariances[0]))) k = 0 for i in range(len(ubm.covariances[0])): fo...
33.236607
92
0.58724
0
0
0
0
0
0
0
0
351
0.047146
56740050a83aa6e9a33739148e341b329b34dce8
1,412
py
Python
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
8
2016-12-03T09:36:46.000Z
2019-04-18T00:16:45.000Z
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
null
null
null
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
3
2016-12-17T16:34:27.000Z
2021-09-03T16:05:51.000Z
# Handles file uploads in Python Tornado: http://tornadoweb.org/ import tornado.web import logging import os import uuid def uuid_naming_strategy(original_name): "File naming strategy that ignores original name and returns an UUID" return str(uuid.uuid4()) class UploadHandler(tornado.web.RequestHandler): ...
32.837209
75
0.63102
1,141
0.808074
0
0
0
0
0
0
520
0.368272
56756d9a6a2f6b3681bd9d47482a96048107979e
947
py
Python
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
106
2018-10-10T18:04:02.000Z
2022-03-11T06:32:38.000Z
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
null
null
null
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
54
2018-02-06T09:47:42.000Z
2022-03-25T15:41:43.000Z
# Program 15d: Plotting a Newton fractal. # See Figure 15.7. from PIL import Image width = height = 512 image = Image.new('RGB', (width, height)) xmin, xmax = -1.5, 1.5 ymin, ymax = -1.5, 1.5 max_iter = 20 h = 1e-6 # Step size eps = 1e-3 # Maximum error def f(z): return z**3 - 1.0 # Complex function. # Dra...
26.305556
71
0.531151
0
0
0
0
0
0
0
0
240
0.253432
5675e78e6bff192c2a34c289667d015bc90abcc8
870
py
Python
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
1
2015-06-22T16:08:38.000Z
2015-06-22T16:08:38.000Z
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
1
2020-09-08T20:38:24.000Z
2020-09-08T20:38:24.000Z
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
null
null
null
import time import tweepy as twitter import os superhour = time.localtime().tm_hour hour = superhour % 12 if hour == 0: hour = 12 sentence = "Tenho %d lágrima%s no canto do mostrador, %s nos Açores%s" if superhour >= 12: if hour == 1: sentence = sentence % (hour, "", "12 lágrimas", "") else: sentence = sente...
26.363636
71
0.705747
0
0
0
0
0
0
0
0
215
0.245434
5677a8de826460d6b3962eb6561558b2f7259736
244
py
Python
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .CacheDefaults import CacheDefaults from ..caches.AbstractCacheParameters import AbstractCacheParameters class CacheParameters(AbstractCacheParameters): """Decorator parameters.""" _defaults = CacheDefaults()
22.181818
68
0.786885
105
0.430328
0
0
0
0
0
0
50
0.204918
5679b4a709d6dc06439e297747d31c23263a2fac
1,816
py
Python
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
#! /usr/bin/env python # import thread import threading import os.path import random import hashlib import socket import time import os import copy import socket letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' host = '' port = 9093 pega_mensagem = '' addr = (host, port) serv_socket = socket.socket(socket.AF_INET, socket.SOCK_...
28.825397
65
0.675661
0
0
0
0
0
0
0
0
367
0.202093
567a8d53d6704bf2e4cecf0cfc3ed0d482c3d55a
71,934
py
Python
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
3
2021-06-28T09:45:58.000Z
2021-09-13T02:16:50.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
29
2021-06-22T08:58:37.000Z
2022-02-13T21:35:02.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'OhsomeToolsDialogUI.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
50.622097
587
0.681375
71,558
0.994469
0
0
0
0
0
0
13,615
0.189213
567c444373e2af7552606978f05a112fd3fb6f08
13,282
bzl
Python
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
14
2021-12-04T11:15:40.000Z
2022-03-01T23:05:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
6
2021-12-13T06:32:16.000Z
2022-02-28T14:44:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
2
2021-12-14T09:35:12.000Z
2021-12-24T16:31:14.000Z
"@generated by @aspect_rules_js//npm/private:npm_translate_lock.bzl from pnpm lock file @aspect_rules_swc@aspect_rules_swc//swc:pnpm-lock.yaml" load("@aspect_rules_js//npm:npm_import.bzl", "npm_import") def npm_repositories(): "Generated npm_import repository rules corresponding to npm packages in @aspect_rules_s...
32.957816
143
0.518973
0
0
0
0
0
0
0
0
6,069
0.456934
567f65f38faefff2b824b29b2ea7a8229dd32be4
8,294
py
Python
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
17
2019-01-18T12:45:38.000Z
2021-12-03T19:55:25.000Z
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
3
2018-06-27T19:08:21.000Z
2019-12-18T09:29:11.000Z
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
7
2018-07-28T17:58:23.000Z
2021-01-02T17:16:20.000Z
""" Neural network modules for WaveNet References : https://arxiv.org/pdf/1609.03499.pdf https://github.com/ibab/tensorflow-wavenet https://qiita.com/MasaEguchi/items/cd5f7e9735a120f27e2a https://github.com/musyoku/wavenet/issues/4 """ import torch import numpy as np from utils.exceptions import Input...
31.777778
103
0.618278
7,945
0.957921
0
0
549
0.066192
0
0
2,603
0.313841
56804b24fb35ab2abb9bf99473495ce4e51fa000
3,643
py
Python
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
1
2022-01-28T09:42:20.000Z
2022-01-28T09:42:20.000Z
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
null
null
null
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
1
2022-01-29T03:39:37.000Z
2022-01-29T03:39:37.000Z
import requests import yaml from fair_test import FairTest, FairTestEvaluation class MetricTest(FairTest): metric_path = 'f2-structured-metadata' applies_to_principle = 'F2' title = 'Metadata is structured' description = """Tests whether a machine is able to find structured metadata. This could be (fo...
52.042857
201
0.639308
3,561
0.977491
0
0
0
0
0
0
2,186
0.600055
56812e1d2c9fb35b48bbbc87de532ca4299da390
1,017
py
Python
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
import asyncio from virtool_workflow_runtime._redis import connect, VIRTOOL_JOBS_CHANNEL, job_id_queue from virtool_workflow_runtime.runtime import execute_from_redis JOB_IDs = [str(n) for n in range(3)] async def assert_correct_job_ids(): queue = job_id_queue() for id_ in JOB_IDs: _id = await queue....
28.25
87
0.73353
0
0
0
0
0
0
796
0.782694
20
0.019666
5682d231d05f403a7946e9e6799b2532460eca4a
928
py
Python
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
import abc from probnum.filtsmooth.statespace.transition import Transition __all__ = ["DiscreteModel"] class DiscreteModel(Transition): """ Transition models for discretely indexed processes. Transformations of the form .. math:: x_{t + \\Delta t} \\sim p(x_{t + \\Delta t} | x_t) . As such, ...
24.421053
73
0.685345
820
0.883621
0
0
321
0.345905
0
0
459
0.494612
56835f197330807710a910c73580f2e27a16947f
8,934
py
Python
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
'''This plots the bubble results ''' from pickle import load from numpy import array, atleast_2d, hstack, where, zeros from matplotlib.pyplot import close, subplots from examples.temp_bubbles.common import DataObject from seaborn import heatmap no_i_vals = 3 no_j_vals = 3 peaks_1 = zeros((no_i_vals,no_j_vals)) peaks_...
42.542857
130
0.71323
0
0
0
0
0
0
0
0
1,062
0.118872
5683642aced3575289798f545fc9efd887e19acc
3,363
py
Python
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
11
2015-09-29T07:48:30.000Z
2019-05-05T20:44:48.000Z
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
5
2016-10-16T00:30:18.000Z
2022-02-12T20:04:11.000Z
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
3
2016-10-15T20:51:03.000Z
2019-03-21T03:31:47.000Z
#!/usr/bin/env python3 """ Sample script to extract and set level thumbnails. """ import argparse import io import os import sys from dustmaker import DFReader, DFWriter from dustmaker.cmd.common import ( run_utility, CliUtility, ) from dustmaker.variable import VariableBool class Thumbnail(CliUtility): ...
30.297297
96
0.549509
3,009
0.894737
0
0
0
0
0
0
769
0.228665
568434517b25ee3fdda6d9fdafd843bc88f238d6
2,591
py
Python
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
833
2016-09-08T13:27:36.000Z
2022-03-27T07:10:48.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
528
2016-05-23T09:17:04.000Z
2022-03-30T12:45:50.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
214
2016-09-08T14:46:41.000Z
2022-03-25T01:04:14.000Z
from common.pages import Page import allure from common.pages import is_displayed, is_enabled, is_disabled from delayed_assert import expect, assert_expectations from allure import severity, severity_level @severity(severity_level.CRITICAL) @allure.title("Check presented elements on main page") def test_home_page(bro...
47.981481
101
0.766113
0
0
0
0
2,377
0.917406
0
0
691
0.266692
5684408b6c388d68319ade18652fa15a6c742db7
714
py
Python
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
5
2020-04-18T17:23:18.000Z
2021-04-05T04:50:03.000Z
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
11
2020-04-22T03:40:25.000Z
2021-05-01T02:45:12.000Z
backend/mono-back/User.py
Subilan/Monologue
7f81a933fb123f4d87acc07fa10b845ef13ec56c
[ "Apache-2.0" ]
1
2020-04-22T13:08:21.000Z
2020-04-22T13:08:21.000Z
from werkzeug.security import check_password_hash, generate_password_hash from Database import DBController class UserManager: def __init__(self, username): self.username = username pass def createUser(self, password): db = DBController() cur = db.cursor() args = (self....
32.454545
77
0.634454
605
0.847339
0
0
0
0
0
0
93
0.130252
5685b5cef5145d202704edd6bc702b0eefad35b5
7,977
py
Python
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
import xarray as xray import numpy as np import pandas as pd from .ploteos import correct_mon from .ploteos_e import correct_e class cpp_e(object): def __init__(self,datos): self.data=datos def day_scaling(self,acu=False,f_cal=None,f_apl=None): #APLICAR SCALING DIARIO---------------------------...
52.137255
124
0.519368
7,849
0.983831
0
0
0
0
0
0
1,013
0.126974
568673ef2cde487c729769189c6ebe595faadce9
2,170
py
Python
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import time from kts.ui.components import HTMLRepr, Column, Field, Title, ThumbnailField, Raw from kts.util.formatting import format_value def format_experiment_date(date): delta = time.time() - date if delta < 60 * 60 * 24: return format_value(delta, time=True) + ' ago' else: return form...
38.070175
160
0.595392
1,821
0.839171
0
0
771
0.3553
0
0
271
0.124885
56868508641f95c8037312c6e71d709a9b56a1e6
229
py
Python
mmdet/models/utils/builder.py
SuhyunL/Fashion-Object-Detection
5870189a65f7c5d009beb763c34fefd029b9cce5
[ "Apache-2.0" ]
326
2021-05-06T01:15:09.000Z
2022-03-30T14:52:13.000Z
mmdet/models/utils/builder.py
MCG-NJU/AdaMixer
7cd998826da5f38e698cebb9a619bc322462a5db
[ "MIT" ]
39
2021-05-20T02:54:40.000Z
2022-03-31T09:16:46.000Z
mmdet/models/utils/builder.py
MCG-NJU/AdaMixer
7cd998826da5f38e698cebb9a619bc322462a5db
[ "MIT" ]
46
2021-05-08T22:25:27.000Z
2022-03-28T08:11:51.000Z
from mmcv.utils import Registry, build_from_cfg TRANSFORMER = Registry('Transformer') def build_transformer(cfg, default_args=None): """Builder for Transformer.""" return build_from_cfg(cfg, TRANSFORMER, default_args)
25.444444
57
0.772926
0
0
0
0
0
0
0
0
43
0.187773
5687b2eebefd1922fec6386607f4531267b31693
2,726
py
Python
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
# import python libraries from airflow import DAG from datetime import datetime, timedelta from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator from datacleaner import data_cleaner from airflow.operators.mysql_operator import MySqlOperator from airflow.op...
32.843373
210
0.733309
0
0
0
0
0
0
0
0
1,177
0.431768
568b420e2b194c6e850383a0e1263c01a6a582cb
299
py
Python
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
""" Decoding tools and algorithms. """ from .searchlight import SearchLight from .space_net import SpaceNetClassifier, SpaceNetRegressor from .decoder import Decoder, DecoderRegressor __all__ = ['SearchLight', 'SpaceNetClassifier', 'SpaceNetRegressor', 'Decoder', 'DecoderRegressor']
23
79
0.762542
0
0
0
0
0
0
0
0
117
0.391304
568b4f13f51fbd3e746104f8badc5ad0334c142c
379
py
Python
acq4/devices/MockPressureControl.py
campagnola/acq4
09699c07d8949950f6df149cf17892aaa3a37402
[ "MIT" ]
47
2015-01-05T16:18:10.000Z
2022-03-16T13:09:30.000Z
acq4/devices/MockPressureControl.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
48
2015-04-19T16:51:41.000Z
2022-03-31T14:48:16.000Z
acq4/devices/MockPressureControl.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
32
2015-01-15T14:11:49.000Z
2021-07-15T13:44:52.000Z
from acq4.devices.PressureControl import PressureControl class MockPressureControl(PressureControl): def _setPressure(self, p): self.pressure = p def getPressure(self): return getattr(self, "pressure", 10) def _setSource(self, source): self.source = source def getSource(self...
23.6875
56
0.680739
319
0.841689
0
0
0
0
0
0
18
0.047493
568d2084adf71a287fd23fe49c7602c597d70fdf
85
py
Python
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
SIZEOF_BYTE = 8 SIZEOF_INT_16 = 16 // SIZEOF_BYTE SIZEOF_INT_32 = 32 // SIZEOF_BYTE
17
33
0.752941
0
0
0
0
0
0
0
0
0
0
568d890d93930eebca3929a03cee09545033af9c
1,976
py
Python
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Sprinkles - Pibow This program lights up and turns off random LEDS using the colors of the Pibow Zero Candy case .................... Functions: - sprinkles: Lights up and turns off random LEDs .................... Author: Paul Ryan This program was written on a Raspberry Pi using the Geany...
27.830986
72
0.508097
0
0
0
0
0
0
0
0
1,014
0.513158
568f011991a22235f2ada3f55574b76cc47e5636
1,520
py
Python
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
1
2021-09-23T03:05:59.000Z
2021-09-23T03:05:59.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
2
2021-09-22T10:07:58.000Z
2021-11-08T08:30:23.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
null
null
null
import requests import logging from utils.authentification import get_headers logger = logging.getLogger(__name__) def do(payload, config, plugin_config, inputs): username = config.get("username", "") password = config.get("password", "") if payload.get('parameterName') == "collection_id": # ...
28.148148
100
0.614474
0
0
0
0
0
0
0
0
431
0.283553
568fe2ca1c5825bb9a77cda8a3a20df6bfce2b30
2,402
py
Python
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
# titlescreen.py import upygame logoPixels = b'\ \x99\x99\x99\x98\x80\x00\x00\x99\x99\x88\x80\x00\x99\x99\x98\x88\x80\x09\x99\x98\x88\x80\x09\x99\x88\x88\x00\x99\x99\x88\x80\x09\x99\x88\x09\ \x01\x11\x11\x19\x88\x00\x00\x91\x11\x98\x88\x99\x11\x11\x19\x98\x88\x99\x11\x99\x88\x88\x91\x11\x98\x88\x89\x11\x19\x9...
96.08
142
0.731057
0
0
0
0
0
0
0
0
2,311
0.962115
5690fed945f481b368f8606599bd5667fec6dd62
185
py
Python
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2021-11-10T10:13:25.000Z
2022-01-12T08:11:59.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2022-01-11T19:45:49.000Z
2022-01-11T20:36:03.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
1
2022-01-12T08:12:11.000Z
2022-01-12T08:12:11.000Z
ax = data.plot.scatter(x=data.columns[0], y=data.columns[1]) ax.plot(X["Flipper Length (mm)"], y_pred, color="black", linewidth=4) _ = ax.set_title("Can I predict penguins' body mass")
46.25
69
0.702703
0
0
0
0
0
0
0
0
63
0.340541
56920c08dfcb1a77f8cde28ba7bdd1f09b763b05
4,387
py
Python
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
1
2020-12-02T15:47:11.000Z
2020-12-02T15:47:11.000Z
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
null
null
null
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
null
null
null
import subprocess import re from typing import Sequence, Text from luh3417.luhfs import LocalLocation, Location, SshLocation from luh3417.luhssh import SshManager from luh3417.utils import LuhError def rsync_files(source: Location, target: Location, delete: bool = False): """ Use rsync to copy files from a ...
29.442953
114
0.664235
0
0
0
0
0
0
0
0
1,078
0.245726
5692c81d7e2760ade8f07b80322678af0eaf034a
988
py
Python
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This is case sensitive, for example "Aa" is not considered a palindrome here. Note: Assume the length of given string will not exceed 1,010. Example: Input: "abccccd...
21.021277
145
0.508097
560
0.566802
0
0
0
0
0
0
481
0.486842
5692c82ddaadcc9854e670c4098765e47d7b4ad7
580
py
Python
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-05-22 16:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('content', '0024_auto_20200430_1225'), ] operations = [ migrations.AlterField( model_name='song', name='last_changed', ...
24.166667
69
0.594828
489
0.843103
0
0
0
0
0
0
120
0.206897
5693d714eafd06865a07dedef3e3c8ed43436124
263
py
Python
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
4
2018-11-09T18:08:04.000Z
2020-02-13T15:47:33.000Z
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
null
null
null
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
5
2019-05-28T11:14:58.000Z
2022-03-16T08:34:16.000Z
try: import mysql.connector as mysql except : import MySQLdb as mysql def config_db(): return mysql.connect(user='root', password='', host='localhost', database='coin')
26.3
68
0.48289
0
0
0
0
0
0
0
0
25
0.095057
56945336d8bb03130acbfab0a81f5207b0b6b6c3
19,334
py
Python
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
null
null
null
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
null
null
null
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
1
2020-09-27T07:27:47.000Z
2020-09-27T07:27:47.000Z
from pycode.tinyflow import autodiff as ad import numpy as np from pycode.tinyflow import ndarray from pycode.tinyflow import TrainExecute from pycode.tinyflow import train def test_identity(): x2 = ad.Variable(name="x2") y = x2 grad_x2, = ad.gradients(y, [x2]) executor = ad.Executor([y, grad_x2]) ...
31.747126
111
0.65646
0
0
0
0
0
0
0
0
1,815
0.093721
569a7754edeb369bfa7791b3bdcf74473cb3053f
3,780
py
Python
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
null
null
null
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
null
null
null
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
1
2021-10-15T16:14:48.000Z
2021-10-15T16:14:48.000Z
# Metadata module to save metadata as dictionary, save trial metadata as yaml and export metadata as csv import yaml import datetime import pandas as pd from pathlib import Path class Metadata: def __init__(self): base_path = Path().parent self.metadata_dir = (base_path / "RPi4Toolbox/GUI/Toolbox/...
43.953488
127
0.636508
2,843
0.752116
0
0
0
0
0
0
1,223
0.323545
569a865fd03cc8fb9438faa2823978a4952d4968
3,504
py
Python
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from utils.base_solver import BaseSolver import os, logging, importlib, re, copy, random, tqdm, argparse import os.path as osp import cPickle as pickle from pprint import pprint from datetime import datetime ...
29.948718
124
0.66895
2,025
0.577911
0
0
0
0
0
0
669
0.190925
569ec3463a6b9dc7fdb5c4eccfb276fd52b756ed
1,190
py
Python
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
2
2022-02-08T01:15:52.000Z
2022-03-31T04:24:15.000Z
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import transaction from jobya.companies.models import Company from jobya.companies.tests.factories import CompanyFactory class Command(BaseCommand): help = "Set up company data" def add_arguments(self, parser): parser.add_argument( ...
29.02439
67
0.607563
998
0.838655
0
0
331
0.278151
0
0
265
0.222689
569f140d78f25e52085c587978a86ff31c34d8bd
140,512
py
Python
contrib/qa/bugzilla.py
crystalfontz/openembedded
8af3377bf132113baa0766fd9021e0ce162a0944
[ "MIT" ]
70
2015-02-23T04:18:51.000Z
2022-03-15T02:01:27.000Z
contrib/qa/bugzilla.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
contrib/qa/bugzilla.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
88
2015-02-11T12:03:16.000Z
2022-03-30T11:33:42.000Z
# # BugZilla query page scanner to work with ancient # Debian Stable bugzilla installationss # # This includes three test sites # site contains one bug entry # all_bugs contains all Openmoko bugs as of \today # no_bug is a query which showed no bug # from HTMLParser import HTMLParser class BugQueryExtractor(HT...
16.970048
1,068
0.534723
2,374
0.016895
0
0
0
0
0
0
138,262
0.983987
569fd8ab2bfa51b46a8fc425da22db12d4345b01
2,188
py
Python
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
import ast import datetime import cv2 import psutil from utils import * def presenter_log(message: str): log("PRST", message) def present_annotated_frames_from_stream(pipe_reader, pid): presenter_log("presenter presents") while pipe_reader.poll(3) or psutil.pid_exists(pid): message = pipe_read...
33.661538
91
0.612431
0
0
0
0
0
0
0
0
357
0.163163
56a0677ee2c20f71870059ac35a9ec0979418868
3,412
py
Python
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
4
2018-11-19T13:34:53.000Z
2020-01-11T11:58:13.000Z
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
null
null
null
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
3
2019-04-14T18:13:33.000Z
2021-04-05T14:45:56.000Z
import copy import random import numpy as np from sklearn.svm import SVC class RandomKLabelsets: """RandomKLabelsets Reference Paper: Min-Ling Zhang and Zhi-Hua Zhou. A Review on Multi-Label Learning Algorithms """ def __init__(self, classifier=SVC(kernel='rbf')): self.classifier = clas...
36.297872
87
0.566823
3,337
0.978019
0
0
0
0
0
0
177
0.051876
56a0e67715f2ad6066c4212bdf3b6c7670e86244
406
py
Python
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
null
null
null
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
18
2019-05-28T17:20:34.000Z
2022-03-11T23:50:12.000Z
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
3
2019-05-27T09:51:54.000Z
2019-12-12T20:35:29.000Z
from django.test import TestCase, Client from django.urls import reverse class TestViews(TestCase): def setUp(self): self.client = Client() self.register_url = reverse('register') self.profile_url = reverse('profile') def test_register(self): response = self.client.get(self.register_url) self.assertEqual...
29
58
0.768473
332
0.817734
0
0
0
0
0
0
40
0.098522
56a142df9367848a23bc2307ae8b5ba73cf7b0ac
976
py
Python
incidences/forms.py
atlasfoo/risk_audit_websys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
null
null
null
incidences/forms.py
atlasfoo/risk_audit_websys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
13
2021-05-28T05:22:16.000Z
2021-06-02T05:49:07.000Z
incidences/forms.py
atlasfoo/risksys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
null
null
null
from django import forms from incidences.models import Incidence class IncidenceForm(forms.ModelForm): class Meta: model = Incidence fields = ['name', 'description', 'risk', 'causes', 'effects', 'controls'] widgets = { 'name': forms.TextInput(attrs={'class': 'form-control', 'p...
39.04
98
0.571721
908
0.929376
0
0
0
0
0
0
386
0.395087
56a2df9338d095c9e041cd414ec3dfeb1e4f74ab
2,206
py
Python
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np from urllib.request import urlopen import os import datetime import time import sys #change to your ESP32-CAM ip url="http://192.168.31.184:81/stream" CAMERA_BUFFRER_SIZE=4096 stream=urlopen(url) bts=b'' while True: try: while True: bts+=stream.read(CAMERA_BU...
29.413333
106
0.497733
0
0
0
0
0
0
0
0
248
0.112421
56a3e14dbfe824cc296d28795afa04041f550530
3,489
py
Python
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
1
2021-05-02T20:21:26.000Z
2021-05-02T20:21:26.000Z
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
null
null
null
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy import Request class Movie(scrapy.Item): # define all items to scrape title = scrapy.Field() genres = scrapy.Field() when = scrapy.Field() director = scrapy.Field() stars = scrapy.Field() country = scrapy.Field...
50.565217
162
0.5953
3,420
0.980224
2,141
0.613643
0
0
0
0
1,582
0.453425
56a469688cdd8e5eda3a9186b703e25f8c24b34a
14,742
py
Python
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
3
2020-07-29T19:30:25.000Z
2022-03-20T13:57:28.000Z
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
null
null
null
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
null
null
null
from fastapi import FastAPI from vc import vc import json from fastapi.openapi.utils import get_openapi from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) with open('config.json') as jf: d = json.load(jf) vh = d['vertica']['host'] vpo ...
31.035789
353
0.574413
502
0.034052
0
0
12,728
0.863384
894
0.060643
8,156
0.553249
56a6e49ba851394662aa10e00d7024d9b014ea05
489
py
Python
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
1
2019-03-29T04:32:09.000Z
2019-03-29T04:32:09.000Z
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
null
null
null
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
null
null
null
def add(x=input("Please enter the first number"),y=input("Please enter the second number"),z=input("Please enter the third number")): print x,'+',y,'+',z return x+y+z def main(): print"main starts..." x=10 y=20 z=30 print "x is base" print add(x,y,z) print add(x,y) print add(x) print "y is base" ...
21.26087
134
0.621677
0
0
0
0
0
0
0
0
165
0.337423
56a76dadea90c2fbb35f8500b4065a9f37d7b50f
713
py
Python
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function, unicode_literals from abc import ABCMeta class Singleton(ABCMeta): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) ...
22.28125
81
0.653576
469
0.657784
0
0
0
0
0
0
15
0.021038
56a7cb8d0a515d0d03e5c9639c22d946905c0f63
715
py
Python
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine Base = declarative_base() class Knowledge(Base): __tablename__='know' IDnumber=Column(Integer,primary_key=True) ...
27.5
67
0.752448
386
0.53986
0
0
0
0
0
0
187
0.261538
56a7f7164acbc9e276761cd5fcdf3c19afa81699
404
py
Python
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
1
2019-08-30T18:14:45.000Z
2019-08-30T18:14:45.000Z
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
5
2019-07-17T01:27:20.000Z
2019-08-29T14:13:58.000Z
examples/type/str_ipv4_data.py
JunpuFan/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
null
null
null
from serial_j import SerialJ class StrIPv4Data(SerialJ): schema = [ {'name': 'prop1', 'type': (str, 'ipv4')} ] valid_data = StrIPv4Data({'prop1': '172.16.255.1'}) print(valid_data) # >>> {"prop1": "172.16.255.1"} invalid_data = StrIPv4Data({'prop1': '172.16.256.1'}) # >>> ValueError: Property: 'pro...
25.25
115
0.618812
97
0.240099
0
0
0
0
0
0
213
0.527228
3b05ff6c3393fdf9cff7387c667789a685e86381
6,465
py
Python
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
1
2020-03-10T01:16:34.000Z
2020-03-10T01:16:34.000Z
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
null
null
null
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
null
null
null
from __future__ import print_function import pickle import os.path import sys import hashlib from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from apiclient import errors from googleapiclient.http import MediaIoBaseDown...
39.662577
106
0.605878
0
0
0
0
0
0
0
0
1,237
0.191338