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
d158b7f689bacb09ad2436e6c7462164b316215a
1,261
py
Python
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
from typing import Any, Generic, Protocol, Type, TypeVar from loguru import logger from sqlalchemy import select, func from sqlalchemy.ext.asyncio import AsyncSession T = TypeVar("T") ModelT = TypeVar("ModelT", bound=ModelBase)
23.792453
86
0.572561
d1592de01ccfcfaa6800db9a077337ed4875fae8
1,723
py
Python
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
17
2019-08-01T07:45:46.000Z
2022-03-25T05:15:13.000Z
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
14
2020-05-30T16:18:28.000Z
2021-06-24T08:08:19.000Z
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
6
2020-07-10T14:43:02.000Z
2021-04-08T19:28:53.000Z
import functools import typing import torch # equal to 1T def is_tensor_hint(cls): return issubclass(cls, torch.Tensor) def unbind_tensor_hint(cls): dims = cls.__name__.split('.')[-1] return dims def shapecheck(hints = None, auto = None, **kwargs): if auto is not None: return decorator else: hints = hints...
20.270588
149
0.647707
d15966aff54460eabbd17a44b8dbeb7ba2af747c
305
py
Python
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from snmp_helper import snmp_get_oid,snmp_extract COMMUNITY_STRING = 'galileo' SNMP_PORT = 7961 IP = '50.76.53.27' a_device = (IP, COMMUNITY_STRING, SNMP_PORT) OID = '1.3.6.1.2.1.1.1.0' snmp_data = snmp_get_oid(a_device, oid=OID) output = snmp_extract(snmp_data) print output
16.944444
49
0.740984
d15b50d016c594fe47cebba986b4e8896fb93412
8,037
py
Python
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'preston.zhu' import numpy as np import pandas as pd import re import operator from sklearn.ensemble import RandomForestClassifier, ExtraTreesRegressor import pdb family_id_mapping = {} # # perishing_female_surnames = [] surviving_male_surnames = [] ...
32.938525
96
0.725395
d15c49fa119b79934420f79c9fd8d2957dc1d3c8
397
py
Python
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
8
2015-04-16T03:43:49.000Z
2018-08-14T22:47:03.000Z
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
null
null
null
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
7
2016-03-22T20:29:27.000Z
2018-09-29T18:55:47.000Z
''' Normal Counting sort without any associated array to keep track of Time Complexity = O(n) Space Complexity = O(n + k) Auxilary Space = O(k) '''
23.352941
70
0.493703
d15cc02ff61cc22a23fc2bcad4c8987b71be6858
2,768
py
Python
src/td/auth.py
annihilatorrrr/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
30
2022-01-17T20:46:02.000Z
2022-03-31T18:49:07.000Z
src/td/auth.py
studasd/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
4
2022-02-13T10:21:12.000Z
2022-03-28T16:05:51.000Z
src/td/auth.py
studasd/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
9
2022-01-24T18:02:08.000Z
2022-03-24T14:23:16.000Z
from __future__ import annotations from .configs import * from . import shared as td import hashlib # if TYPE_CHECKING: # from ..opentele import * def __countKeyId(self) -> None: hash = hashlib.sha1(self.__key).digest() self.__keyId = int.from_bytes(hash[12 : 12 + 8], "little") def pre...
25.394495
139
0.561055
d15d785d728aebc40b0768e439bd949eef225e9d
1,867
py
Python
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
20
2018-05-22T09:29:40.000Z
2020-12-11T04:53:15.000Z
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
65
2019-03-07T02:43:06.000Z
2021-01-07T03:43:52.000Z
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
6
2019-03-08T06:39:47.000Z
2021-07-01T11:02:56.000Z
# coding: utf-8 """ Qingmi's standard crypto functions and utilities. """ import hashlib import hmac import random import time import base64 def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): ...
24.246753
76
0.658811
d15dbe35e2489fb154babfaa98a14ea5839eeee9
1,286
py
Python
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
# Chapter3 Ex.3) # Modification of 'Guess My Number' # Guess My Number # # The computer picks a random number between 1 and 100 # The player tries to guess it and the computer lets # the player know if the guess is too high, too low # or right on the money # The player can try to guess up to three times im...
29.906977
82
0.615086
d15f9a96fb68b6e5f7144ec6a07111b116feb832
702
py
Python
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages version = '0.1.2' setup( name = 'etsproxy', version = version, description = 'proxy modules for backwards compatibility', long_description = open('README.rst').read(), packages = find_packages(), author = 'Enthought, Inc.', author_email = 'info...
28.08
76
0.632479
d15fa493017a48b72a5d8296a6eda7a3577ea9b0
618
py
Python
VSCode_work/chapter5/chapter5_5_5.py
yangyahu-1994/Python-Crash-Course
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
[ "MIT" ]
12
2020-10-22T14:03:27.000Z
2022-03-28T08:14:22.000Z
VSCode_work/chapter5/chapter5_5_5.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
null
null
null
VSCode_work/chapter5/chapter5_5_5.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
9
2020-12-22T10:22:12.000Z
2022-03-28T08:14:53.000Z
# , alien_color = 'green' # if alien_color == 'green': print("You get 5 points.") elif alien_color == 'yellow': print("\nYou get 10 points.") else: print("\nYou get 15 points.") # , alien_color = 'yellow' # if alien_color == 'green': print("You get 5 points.") elif alien_color == 'yellow': prin...
19.3125
33
0.634304
d160b7200db507198e23acc84368e5834d8ad4b2
11,630
py
Python
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-03-23T06:24:24.000Z
2022-03-23T06:24:24.000Z
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
import copy import json import collections import ftrack_api from openpype_modules.ftrack.lib import ( ServerAction, statics_icon, ) from openpype_modules.ftrack.lib.avalon_sync import create_chunks def register(session): '''Register plugin. Called when used as an plugin.''' TransferHierarchicalVa...
33.51585
79
0.524678
d161ec660784d01b878001017831664382622e75
382
py
Python
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
5
2022-01-23T11:57:55.000Z
2022-01-25T07:03:09.000Z
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
null
null
null
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
2
2022-01-25T03:04:43.000Z
2022-01-25T07:03:17.000Z
from enum import EnumMeta from typing import Any def get_enum_key(enum: EnumMeta, value: Any, default: Any = ...) -> Any: """ `Enum` : - enum: Enum - value: - default: `value` """ return enum._value2member_map_.get( value, value if default == ... els...
20.105263
72
0.581152
d16267f20a44ebfcce9ce2338b818e8f62ab0d51
2,809
py
Python
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from pycodes.ean import Ean13 from pycodes.exceptions import EmptyCode, CharacterNotAllowed, BadCodeLength, \ WrongChecksum
36.960526
79
0.57209
d164f315ded6b300d4bc413ca69bcb22b80fe89a
1,479
py
Python
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
import os from pandas import DataFrame import time times = [0] sizes = [0] run_time_seconds = 200 past_run_file_size = run_storage_analysis() sizes[-1] = past_run_file_size print("Storage analysis started.") while True: current_file_size = run_storage_analysis() if current_file_size == size...
30.183673
89
0.586207
d1658eb7471fa12b2945fd99872da777877398b1
10,163
py
Python
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
"""This module has code to use mamba to test if a given package can be solved. The basic workflow is for yaml file in .ci_support 1. run the conda_build api to render the recipe 2. pull out the host/build and run requirements, possibly for more than one output. 3. send them to mamba to check if they can be solved. M...
29.372832
88
0.60858
d16648848c84b4c377e73350d46f1aaa0e9b2444
649
py
Python
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from student_core.views import * # Create a router and register our viewsets with it. router = DefaultRouter() router.register(r'initial', StudentInitialViewSet, basename="student_initial") router.register(r'submission', StudentSubm...
40.5625
107
0.802773
d1680b983b55af635dd1b1c4efc3a00f490e8be1
10,276
py
Python
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
6
2018-10-29T19:46:49.000Z
2022-03-10T15:39:47.000Z
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
null
null
null
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
4
2018-10-16T13:28:27.000Z
2022-02-05T18:43:57.000Z
#------------------Bombermans Team---------------------------------# #Author : B3mB4m #Concat : b3mb4m@protonmail.com #Project : https://github.com/b3mb4m/Shellsploit #LICENSE : https://github.com/b3mb4m/Shellsploit/blob/master/LICENSE #------------------------------------------------------------------#
34.139535
201
0.647042
d168739d8cc490f771d23c7a1b691bf5116d7173
430
py
Python
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
""" Test multilevel overriding of java methods in jythonc. """ from java.util import Date assert SubDate().toString() == 'SubDate -> Date' assert SubSubDate().toString() == 'SubSubDate -> SubDate -> Date'
23.888889
65
0.655814
d168c674a46ffa65b77a20654f78a65b574815fc
2,195
py
Python
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
import warnings import sys if not sys.warnoptions: warnings.simplefilter("ignore") from segmentation.utils.DataReader import DataReader import argparse import glob import os if __name__ == '__main__': opt = arguments() datapath = r"/data/brain/rs-mhd-dataset" # opt.input path_save = r"/data/brain...
30.486111
99
0.638269
d16a18b5e5a64b815eb735cb177e88912486769f
1,020
py
Python
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
from django.shortcuts import render from django_tables2 import RequestConfig from django.views.generic.detail import DetailView from django.db.models import Count from crew.models import Person from .models import Bomber from .tables import BomberTable
37.777778
171
0.755882
d16ceb896d9da20d75ec5f24a103e4ea1f377294
187
py
Python
BOJ/14000~14999/14471.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/14000~14999/14471.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/14000~14999/14471.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
n,m=map(int,input().split()) L = [list(map(int,input().split())) for i in range(m)] ans = 0 L.sort(key = lambda t:t[0],reverse = True) for i in L[:-1]: ans += max(0,n-i[0]) print(ans)
26.714286
54
0.582888
d16d1cb99b4e9f346c6042010a46e200ea4ee6ee
343
py
Python
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
from canoser import Struct from libra.account_config import AccountConfig from libra.event import EventKey
28.583333
82
0.752187
d16e384cf387a664a33b991f18c0766cbc5a4c0d
4,294
py
Python
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
null
null
null
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
null
null
null
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
1
2022-02-24T04:54:18.000Z
2022-02-24T04:54:18.000Z
import os, sys, re, string import xml.dom.minidom import xml.dom.ext QL_ROOT = "C:/Projects/QuantLibSVN/trunk/" VC8 = "C:/Program Files/Microsoft Visual Studio 8/" BOOST = "C:/Boost/boost_1_33_1/" QL = QL_ROOT +"QuantLib/" QL_ADDIN = QL_ROOT + "QuantLibAddin/" OBJECT_HANDLER = QL_ROOT + "ObjectHandler/" ...
33.811024
98
0.617839
d16e58dab4d8d43ee2c7010a1953ed764c83accd
531
py
Python
python/15_bsearch/bsearch_recursion.py
shipan3452/algo
0494cc0d8f5daf108daf4358c4531a29279dd380
[ "Apache-2.0" ]
22,028
2018-09-27T05:55:19.000Z
2022-03-30T10:44:46.000Z
python/15_bsearch/bsearch_recursion.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
164
2018-10-06T15:11:08.000Z
2022-03-28T10:04:34.000Z
python/15_bsearch/bsearch_recursion.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
7,250
2018-09-30T00:45:25.000Z
2022-03-31T20:15:33.000Z
""" Author: dreamkong """ from typing import List
23.086957
81
0.619586
d16e9d0e26c5e30db9fe137457ef9304c8e4a910
5,779
py
Python
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
1
2020-01-21T01:49:20.000Z
2020-01-21T01:49:20.000Z
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
null
null
null
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
null
null
null
from mbus.record import ValueRecord from machine import RTC import ubinascii import random import time import re
37.283871
106
0.643191
d170c6d1ba1ad41f7fcd3c9b748bcfe597baaf93
20,442
py
Python
alphamind/model/data_preparing.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/model/data_preparing.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/model/data_preparing.py
vishalbelsare/alpha-mind
9b7a23bc3354103f16e46ea31fd1ba6c7b69e0ae
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-8-24 @author: cheng.li """ import bisect import datetime as dt from typing import Iterable from typing import Union import numpy as np import pandas as pd from simpleutils.asserts import require from PyFin.DateUtilities import Period from PyFin.api import BizDayConventions...
41.54878
140
0.57964
d170d5f0af719c619aa67b12d13b02a0402cfc23
666
py
Python
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
6
2021-02-18T06:45:28.000Z
2021-02-24T14:59:43.000Z
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
null
null
null
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
null
null
null
import logging import sys from AppleFluenza.bot import auto_load_cogs, bot from utils.getenv import getenv from utils.cli import header, option_parser if __name__ == "__main__": header() auto_load_cogs(bot) optparser = option_parser() (options, args) = optparser.parse_args(sys.argv) token = g...
22.2
70
0.686186
d172045e2991b3f71ea33d94ff2354816c13eea0
3,017
py
Python
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
# %% Packages import os import pickle from pyhocon import ConfigTree # %% Functions def load_pickle(loading_path: str): """This method loads the file at the specified path :param loading_path: Path at which object is saved :type loading_path: str :return: Desired file :rtype: Could be basically...
31.103093
82
0.706331
d1720a3f200947c6d598c557c5d06099c334bc22
11,905
py
Python
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
null
null
null
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
null
null
null
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
1
2019-03-05T06:50:11.000Z
2019-03-05T06:50:11.000Z
import logging import blueforge.apis.telegram as tg import requests from blueforge.apis.facebook import Message, ImageAttachment, QuickReply, QuickReplyTextItem, TemplateAttachment, \ GenericTemplate, Element, PostBackButton from chatbrick.util import get_items_from_xml, UNKNOWN_ERROR_MSG import time logger = lo...
44.256506
159
0.374549
66f44f9766c4d040eac6704c6c2ae8556c45fffa
342
py
Python
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
import time import requests INFLUX_URL = 'http://localhost:8086/write?db=DHT22'
28.5
69
0.736842
66f4c17269c6170a21fe09050ef187d175632d22
3,384
py
Python
compiler/parser/expression_models/comparison.py
Fire-Script/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
2
2021-12-31T02:23:13.000Z
2022-01-13T09:59:52.000Z
compiler/parser/expression_models/comparison.py
classPythonAddike/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
1
2021-12-31T13:24:07.000Z
2021-12-31T13:24:07.000Z
compiler/parser/expression_models/comparison.py
classPythonAddike/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
3
2021-12-31T12:08:23.000Z
2022-01-02T12:00:57.000Z
from compiler.bytecode.opcodes import OpCodes from compiler.errors.errors import FTypeError from compiler.parser.expressions import Expression from typing import List, Dict
27.737705
100
0.60195
66f5b0cbb8ef944f7945f54d1777a667ec6dbe6b
3,024
py
Python
Echoes/Filezilla.py
xeddmc/BrainDamage
855f696883d495e2f1b1b55ced31a54f3426c50e
[ "Apache-2.0" ]
1,520
2020-10-23T06:22:06.000Z
2022-03-26T09:17:47.000Z
Echoes/Filezilla.py
1612480331/BrainDamage
ac412e32583436cab3e836713008c207229c9cf2
[ "Apache-2.0" ]
12
2017-03-25T16:31:20.000Z
2021-12-28T05:04:52.000Z
Echoes/Filezilla.py
1612480331/BrainDamage
ac412e32583436cab3e836713008c207229c9cf2
[ "Apache-2.0" ]
661
2020-10-23T06:23:53.000Z
2021-09-06T23:05:30.000Z
# Based on the work of https://github.com/AlessandroZ/LaZagne/blob/master/Windows/lazagne/ import xml.etree.cElementTree as ET import os, base64 #tem = Filezilla() #a = tem.run() #print a
37.8
102
0.472553
66f69535e1d0a44683902c8b5bdee87b710b453d
1,519
py
Python
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
8
2020-02-12T00:24:07.000Z
2021-09-08T01:11:22.000Z
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Seat(models.Model): flight = models.ForeignKey( Flight, on_delete=models.CASCADE, related_name='seats') number = models.CharField(max_length=50) is_available = models.BooleanField(default=True) class Reservation(mode...
30.38
64
0.681369
66f7a9674e5203f57287eed9d7aa1d82b181de7d
709
py
Python
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2020-10-08T00:30:06.000Z
2020-10-08T00:30:06.000Z
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2018-05-01T14:01:14.000Z
2018-05-01T14:01:14.000Z
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2018-04-29T18:38:40.000Z
2018-04-29T18:38:40.000Z
import os from pathlib import Path # Geting users home directory h_path = str(Path.home()) # + any addtional path to a folder that contain word.txt # Change directory to h_path where words.txt is located os.chdir(h_path) # Open words.txt. words = open('words.txt').read().split() # Usage print(look_w('insane', 6)) ...
29.541667
85
0.64598
66f8eeacb2ab5fc5e4c283571992585729baa9ec
6,284
py
Python
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
221
2021-09-06T03:33:31.000Z
2022-03-28T05:36:49.000Z
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
43
2021-09-19T16:12:28.000Z
2022-03-31T16:29:03.000Z
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
64
2021-09-06T07:56:10.000Z
2022-03-25T08:48:35.000Z
import torch import torch.nn as nn import numpy as np from libcity.model.abstract_model import AbstractModel from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.utils.rnn import pad_packed_sequence
45.868613
117
0.635901
66fccecdd57f544efb11cfb6e000ed732e25712c
826
py
Python
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
1
2019-12-27T15:28:17.000Z
2019-12-27T15:28:17.000Z
import geopandas as gpd # not used anymore - converts esri jobs shapefile to a csv # see assign_jobs_lat_lng.py gdf = gpd.GeoDataFrame.from_file("est10_esri_gt1.shp") gdf = gdf.to_crs(epsg=4326) fname_map = { 'Duns_Numbe': 'duns_number', 'Business_N': 'business_name', 'Emp_Total': 'total_employment', ...
29.5
79
0.687651
66fcf10eec6db42f209edd690e099b600c633815
3,968
py
Python
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
5
2018-05-12T13:54:07.000Z
2019-06-16T09:56:52.000Z
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
null
null
null
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
null
null
null
import argparse import random import operator import os def parse_grammar(file_path): """ Generate a grammar from a file describing the production rules. Note that the symbols are inferred from the production rules. For more information on the format of the file, please reffer to the README.md or the the sample ...
29.834586
92
0.717742
66fe1b2c78a96ea5174f4741a76ed0ec07d633c4
6,639
py
Python
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
2
2020-10-18T19:20:16.000Z
2021-11-15T14:11:39.000Z
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
3
2021-06-08T21:51:43.000Z
2022-01-13T02:54:14.000Z
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
null
null
null
#TODO: use only one (RGB) channel import numpy as np import pandas as pd import os from torch.utils import data from torch.utils.data.dataloader import DataLoader as DataLoader import torch from torchvision import transforms from natsort import natsorted, ns import cv2 from PIL import Image import matplotlib.pyplot as ...
32.072464
98
0.595722
66ff808193f491101625deb10d4b03096229d8fa
204
py
Python
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
2
2021-10-05T16:37:30.000Z
2021-10-11T21:31:43.000Z
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
null
null
null
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
1
2021-07-16T02:23:37.000Z
2021-07-16T02:23:37.000Z
# imports - module imports from deeply.exception import ( DeeplyError ) # imports - test imports import pytest
18.545455
36
0.730392
66ffbb10c3681dba5f743ff2d041228d5ccdc263
1,153
py
Python
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
""" Common setup and patching for tests """ #pylint: disable=wrong-import-order from datetime import datetime as orig_datetime, timedelta from mock import patch import threading #pylint: disable=W0401,W0614 from test.fixtures import * _thread_state = threading.local() def _new_utcnow(): """ Return last set datet...
28.825
78
0.70425
0f0041c3812a531ebd6ee9156ded1a3d042762da
11,015
py
Python
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
1
2021-07-18T02:48:40.000Z
2021-07-18T02:48:40.000Z
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
null
null
null
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
null
null
null
my_commands = { "/contact" : {"notes":" Retrieve all the accounts (email, Twitter, GitHub, etc.) to contact the OpenCitations folks", 'parse_mode':'Markdown'}, "/ask" : {"notes":"Params: <DOI>. Retrieve information about the entity identified by the input DOI (source: COCI)", 'parse_mode':'Markdown'}, "/ci...
39.90942
167
0.535361
0f0047c195a44a1e7096ffa7a8721ac9af656c82
225
py
Python
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
1
2022-02-23T13:42:01.000Z
2022-02-23T13:42:01.000Z
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
""" A-Z: 65-90 a-z: 97-122 """ dic = {} n = 0 for i in range(10): dic[n] = str(i) n += 1 for i in range(65, 91): dic[n] = chr(i) n += 1 for i in range(97, 123): dic[n] = chr(i) n += 1 print(dic)
9.782609
24
0.444444
0f00a88c0e78055394352e113ece75275cfd78f2
6,894
py
Python
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
11
2018-06-20T16:30:01.000Z
2021-08-16T14:14:40.000Z
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
29
2018-06-09T10:32:57.000Z
2019-02-24T13:06:53.000Z
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
3
2018-06-23T05:12:33.000Z
2021-10-11T02:51:49.000Z
from __future__ import print_function, division, absolute_import, unicode_literals from io import StringIO import dagian from dagian import Argument as A from dagian.decorators import ( require, will_generate, ) import numpy as np import pandas as pd from scipy.sparse import csr_matrix from sklearn.model_selec...
41.035714
95
0.66333
0f0216b386fed492d52639a4b739d1af569a3fae
2,198
py
Python
spyre/spyre/spyrelets/peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
1
2022-03-27T07:47:19.000Z
2022-03-27T07:47:19.000Z
peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
null
null
null
peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
4
2019-11-08T22:39:04.000Z
2021-11-05T02:39:37.000Z
import numpy as np import pyqtgraph as pg import matplotlib.pyplot as plt import csv import sys from PyQt5.Qsci import QsciScintilla, QsciLexerPython from PyQt5.QtWidgets import QPushButton, QTextEdit, QVBoxLayout import time import random import os from spyre import Spyrelet, Task, Element from spyre.widget...
32.323529
73
0.61465
0f02200fde2e322e2f135a475e57f32165299b7f
4,592
py
Python
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
2
2016-09-09T11:54:03.000Z
2021-12-09T16:12:23.000Z
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
null
null
null
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
2
2022-01-28T20:05:05.000Z
2022-02-01T18:04:43.000Z
import re import numpy as np import pandas as pd import scipy.stats as stats R_REGEX = re.compile('(.*):(.*)-(.*)') R_REGEX_STRAND = re.compile('(.*):(.*)-(.*):(.*)') def estimate_allele_frequency(ac, an, a=1, b=100): """ Make sample (or other) names. Parameters: ----------- ac : array-like ...
29.248408
97
0.617814
0f026f96d7b8eeca00baed4c3da006c965de1fd0
4,351
py
Python
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
1
2022-01-19T15:36:45.000Z
2022-01-19T15:36:45.000Z
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
22
2021-02-03T12:41:51.000Z
2022-02-21T13:04:48.000Z
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # 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.apa...
39.198198
110
0.568605
0f0332fe549cc56074e3fec02ab90c04fd4ee657
4,735
py
Python
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
1
2021-01-20T00:26:30.000Z
2021-01-20T00:26:30.000Z
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
12
2020-11-13T01:36:32.000Z
2022-01-23T20:35:55.000Z
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
3
2020-10-20T06:52:45.000Z
2021-07-06T23:00:53.000Z
import copy import logging.config import os from rec_to_nwb.processing.exceptions.not_compatible_metadata import NotCompatibleMetadata from rec_to_nwb.processing.header.module.header import Header from rec_to_nwb.processing.nwb.components.electrodes.extension.fl_electrode_extension import FlElectrodeExtension from rec...
46.421569
122
0.741922
0f03c437607dd785e33ff9e71aa3dbb48d46d5a4
1,314
py
Python
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Author: LiangLiang ZHENG Date: File Description """ import sys import time import os sys.path.append('..') from __future__ import print_function import sys import argparse from keras import backend as K from utils.cha_level_helper import output_sequence import numpy as np #TODO: still need...
28.565217
80
0.649924
0f043fd8060ea318b76a0b1d439aef5060a3a833
14,408
py
Python
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as pl import pandas as pd import seaborn as sns import smq.logging as log # check pandas, seaborne # FIXME: fix hardcoded tablenames from smq.utils import set_attr_from_dict ################################################################################
33.981132
139
0.530261
0f045c6ae18a61a369eced501af84eaf8bea2c34
642
py
Python
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
1
2020-05-21T17:08:02.000Z
2020-05-21T17:08:02.000Z
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
null
null
null
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
null
null
null
from rafcontpp.model.pddl_action_representation import PddlActionRepresentation from rafcontpp.model.pddl_action_representation import action_to_upper
42.8
125
0.697819
0f049fdb1bc9e04e29bedc84047ec6d4aaba04ae
13,380
py
Python
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
import os import sys import argparse import difflib import json import logging import pluggy import colorama import boto3 from pathlib import Path from . lib.autoawsume import create_autoawsume_profile from ..autoawsume.process import kill, kill_autoawsume from . lib.profile import aggregate_profiles, get_role_chain, ...
46.137931
142
0.626831
0f067b4300c65db4f51f2b088598a9976507db44
4,254
py
Python
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
from PySide6.QtCore import Slot, QObject, Signal from PySide6.QtWidgets import QTableWidget, QTableWidgetItem from mtkclient.gui.toolkit import trap_exc_during_debug, asyncThread, FDialog from mtkclient.Library.mtk_da_cmd import DA_handler import os import sys import json sys.excepthook = trap_exc_during_debug
39.388889
110
0.668077
0f07cbe922efe088c09747c107ff6e124768d889
412
py
Python
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
lst = ['- ', ' ', ' ', ' '] some_str = '' i = 0 for elem in lst: some_str = elem lst[i] = some_str.split() some_str = '' i += 1 for i in lst: for j in range(len(i)): if j == len(i)-1: some_str = i[j] name = some_str.capitalize() print(f', {name}!')
21.684211
116
0.558252
0f095bc4079d063bb1c75421ffb1d0b5da98ff4e
834
py
Python
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
18
2020-02-28T08:42:19.000Z
2021-08-24T15:53:35.000Z
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
1
2020-08-07T06:59:19.000Z
2020-08-07T07:25:53.000Z
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
2
2020-08-11T13:25:19.000Z
2021-08-31T03:23:40.000Z
# -*- coding: utf-8 -*- import re import sys import os import requests headers = {'Referer':'http://d0.ananas.chaoxing.com/','User-Agent': 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'} url=sys.argv[1] #print(url) re...
22.540541
205
0.568345
0f0a513efe32c280bcacaf1a2ab45f2537b65890
1,220
py
Python
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
192
2015-07-29T15:20:35.000Z
2021-09-06T21:42:01.000Z
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
120
2015-10-27T21:43:11.000Z
2021-08-12T15:15:43.000Z
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
56
2015-09-19T05:58:41.000Z
2021-09-14T09:46:11.000Z
from mock import patch from django.test import TestCase from ..serializer import DataHubSerializer
32.105263
72
0.682787
0f0a874b832d5307c77060e388ac90f502854fe7
852
py
Python
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
from algo.number_theory.extended_gcd.extended_gcd import extended_gcd from algo.number_theory.eulers_totient_function.eulers_totient import etf def mod_inverse_gcd(a, m): ''' a and m should be coprime! Complexity -> O(log(m)). ''' return extended_gcd(a, m)[0] def mod_inverse_eulers(a, m): ''...
20.780488
73
0.627934
0f0b7b2c5564b7c02453602dda17e447559b3a6d
56
py
Python
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
13
2018-08-14T12:28:54.000Z
2022-02-08T04:25:47.000Z
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
5
2019-02-23T04:01:48.000Z
2021-04-08T17:37:40.000Z
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
5
2018-09-04T03:28:46.000Z
2021-04-09T11:46:03.000Z
from flask_unchained.bundles.sqlalchemy.pytest import *
28
55
0.857143
0f0bb21d732e1e1a3fe041762c735e3ea255fe56
345
py
Python
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
null
null
null
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
26
2020-04-05T08:37:16.000Z
2021-09-22T18:47:20.000Z
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-28 15:40 from django.db import migrations, models
23
110
0.684058
0f0bb8584063b7dea01c7c517b101023b6b85c01
2,831
py
Python
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
1
2018-12-15T16:13:09.000Z
2018-12-15T16:13:09.000Z
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
49
2018-11-13T23:04:09.000Z
2019-10-31T11:15:13.000Z
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
3
2018-11-15T14:06:36.000Z
2019-01-07T13:30:29.000Z
""" Kommandoliniebrugergrnsefladen (en command-line interface, CLI) til FIREs API. """ import sys import click from fire.api import FireDb firedb = FireDb() _show_colors = True def _set_monochrome(ctx, param, value): """ Anvend vrdien af --monokrom og st den globale vrdi af _show_colors. """ globa...
22.291339
110
0.635818
0f0d09870e10aa47900875345d9579dc0d49b729
817
py
Python
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
1
2021-12-22T09:47:15.000Z
2021-12-22T09:47:15.000Z
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
null
null
null
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
null
null
null
import cv2 as cv """ Choose background substractor """ algo = 'MOG2' input = 'videos/shine.mp4' if algo == 'MOG2': backSub = cv.createBackgroundSubtractorMOG2() else: backSub = cv.createBackgroundSubtractorKNN() capture = cv.VideoCapture(input) if not capture.isOpened(): print('Unable to open: ' + inpu...
22.081081
73
0.609547
0f10e889a3b3c3b84aaddb6c89475481e138ea2f
3,271
py
Python
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
1
2021-01-11T18:00:06.000Z
2021-01-11T18:00:06.000Z
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
null
null
null
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
null
null
null
import config import pandas as pd import matplotlib.pyplot as plt #import lstm from keras.models import Sequential import matplotlib.dates as mdates def visualize_spread_for_countries(data: pd.DataFrame): """ :param data: a pandas dataframe of the data to visualize. :return: """ countries_to_visualize = [] ...
38.034884
121
0.641394
0f110666530b2d0778bb5bff1c809c8ebc73b13f
1,146
py
Python
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
17
2015-02-10T12:18:22.000Z
2018-03-23T05:28:51.000Z
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
3
2015-01-12T17:32:20.000Z
2016-12-13T23:55:38.000Z
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
3
2015-02-06T09:58:09.000Z
2016-01-04T23:46:28.000Z
"Common functions that may be used everywhere" from __future__ import (absolute_import, division, print_function, unicode_literals) import os import sys from distutils.util import strtobool try: input = raw_input except NameError: pass def yes_no_query(question): """Ask the user...
26.045455
70
0.602094
0f116262d51df870092baaa77da7c1a3942b13fa
121
py
Python
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
null
null
null
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
null
null
null
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
2
2020-12-27T15:03:46.000Z
2021-03-06T14:13:34.000Z
N = int(input()) print(factorial(N))
11
29
0.545455
0f11a8afccc861d59d504d51479b9cc0588a8670
4,498
py
Python
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
1
2021-04-21T03:07:15.000Z
2021-04-21T03:07:15.000Z
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
null
null
null
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
null
null
null
import inspect from typing import Union, Callable, Any, Iterable from pytest_lambda.exceptions import DisabledFixtureError, NotImplementedFixtureError from pytest_lambda.impl import LambdaFixture __all__ = ['lambda_fixture', 'static_fixture', 'error_fixture', 'disabled_fixture', 'not_implemented_fixture'] ...
33.819549
87
0.689862
0f11c7fc72c1e19f0e03c6226a3a153483d3fe2a
16,983
py
Python
NaiveBayes/NaiveBayes/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
null
null
null
NaiveBayes/NaiveBayes/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
4
2016-02-15T21:32:39.000Z
2016-02-18T08:49:27.000Z
Nicholas_Chapman_NBC_Submission/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
null
null
null
import random, math import utils
52.906542
123
0.579933
0f12055f98804756bad971fcd0011760c5d5e75a
15,935
py
Python
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import hashlib import sys from datetime import datetime import sentry_sdk from authlib.oauth2 import OAut...
38.12201
120
0.669658
0f1273a2a398899dbb4a15cc92f3fa611276f39e
7,071
py
Python
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Created on Mon Aug 17 11:31:32 2020 Distance-Controlled Boundaries Coefficient (DCBC) evaluation for a functional parcellation of brain cortex INPUTS: sn: The return subject number hems: Hemisphere to test. 'L' - left hemisphere; 'R'...
42.341317
113
0.537548
0f128327ac454f125d92bc8c80bfc98fabb7bc4f
6,331
py
Python
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
# coding: utf-8 """ Container Security API # Authentication You must authenticate to the Qualys Cloud Platform using Qualys account credentials (user name and password) and get the JSON Web Token (JWT) before you can start using the Container Security APIs. Use the Qualys Authentication API to get the JWT. *...
33.497354
779
0.626125
0f1592f3be048e8437004cc1fbfde1d17593625b
689
py
Python
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from torchvision.transforms import functional import numpy as np
31.318182
77
0.716981
0f162b0c31fb0578dd692face5da5fae3fc2df41
278
py
Python
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
import random import string def random_string_digits(string_length=10): """Generate a random string of letters and digits.""" letters_and_digits = string.ascii_letters + string.digits return ''.join(random.choice(letters_and_digits) for _ in range(string_length))
30.888889
83
0.769784
0f1665f0055f31ec323063994f87f3173d7444f6
28,521
py
Python
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
''' Created on Jan 22, 2017 @author: Daniel ''' import unittest from bibleutils.versification import VersificationID, BookID, Identifier, \ ReferenceFormID, parse_refs, ETCBCHVersification, Ref, convert_refs, \ expand_refs, VersificationException if __name__ == "__main__": #import sys...
53.510319
104
0.570948
0f1744199f477069c02875d1067c890dfb7a1805
340
py
Python
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file Function.py # @description Function # @author WcJun # @date 2020/06/20 # --------------------------------------------- # n m # add = add(1, 100) print(add)
14.782609
47
0.364706
0f18e0ca0c5499bebb322bcb92fe32db9bf17ba3
6,709
py
Python
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
# Dependencies from bs4 import BeautifulSoup as bs import requests from splinter import Browser import time import pandas as pd import requests as req # Define browser path # Define 'scrape' function
32.567961
100
0.693099
0f1a15f7826e26b74a287b61edb934c290001cbf
1,144
py
Python
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
4
2021-05-03T15:26:32.000Z
2022-02-23T22:26:01.000Z
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
null
null
null
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
2
2021-11-11T20:30:51.000Z
2021-11-18T15:19:07.000Z
from pydmtx.symbol import Symbol from pydmtx.encode import encode as encode_encode from pydmtx.reedsolomon import encode as reedsolomon_encode from pydmtx.bitstream import bitstream from pydmtx.plugins.registry import plugin_manager from pydmtx.plugins import ExportPlugin DEFAULT_QUIET_ZONE = 2 DEFAULT_SYMBOL_SIZE = ...
28.6
83
0.756993
0f1a8a8fdf277ed1542030735b29d945045c82ec
40
py
Python
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
1
2021-04-01T06:38:48.000Z
2021-04-01T06:38:48.000Z
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
from nndct_shared.utils import registry
20
39
0.875
0f1b976e46c7f2ba93a9ecff9c247ef02d3200d7
774
py
Python
benchmark/python/tpch_base.py
alefranz/spark
f5f15379b2c080339a36423b0262f29d978fd362
[ "MIT" ]
1
2019-06-14T09:25:43.000Z
2019-06-14T09:25:43.000Z
benchmark/python/tpch_base.py
tianyaba/spark
f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098
[ "MIT" ]
null
null
null
benchmark/python/tpch_base.py
tianyaba/spark
f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098
[ "MIT" ]
null
null
null
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # See the LICENSE file in the project root for more information. import pyspark from pyspark.sql import SparkSession
43
70
0.683463
0f1ca8b43d824f2698d264b0e2c96a3fd9919b23
6,385
py
Python
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import json import time import subprocess cats = { "any": { "id": "vdoq4xvk", "output_file": "all.json", "output_file2": "all2.json", }, "100": { "id": "xk9jv4gd", "output_file": "100.json", "output_file2": "1002.json", }, 'amq': { "id": "n2yj3r82", "output_file": "amq.j...
33.429319
128
0.519969
0f1d77811b98689b2cae0d686170946ae5f678f0
621
py
Python
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
2
2021-11-11T15:19:30.000Z
2022-02-07T22:52:07.000Z
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from typing import Optional from uuid import UUID from server.schemas.base import BoilerplateBaseModel # Properties to receive via API on creation # Properties to receive via API on update # Additional properties to return via API
18.818182
52
0.780998
0f1ecb2bfe2239fd22330150e77bde33035a5f02
2,215
py
Python
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
3
2020-02-17T12:56:22.000Z
2020-09-30T11:17:03.000Z
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
2
2020-02-17T15:17:43.000Z
2021-05-11T21:01:26.000Z
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
8
2020-02-17T12:55:59.000Z
2021-07-22T12:24:15.000Z
#!/usr/bin/env python """ @file check_camera_service_power_set_off_and_on_with_no_subscriber.py """ import os import sys import unittest import time import subprocess import commands import rospy import rostest from rs_general.rs_general import get_camera_params_and_values, \ is_log_contains_keyword, LOGFILE PKG ...
37.542373
101
0.71377
0f1ecb304df6b9ed35e437846e4e6724371a2aac
1,141
py
Python
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- import logging import configparser def load_config(config_file='settings.ini'): """ Loads configuration file from disk """ logging.info("Loading Configuration Information") config = configparser.ConfigParser() config.read(config_file) return confi...
21.942308
74
0.611744
0f1f297616083eef96595fea2dbc2238ebb6b129
27,206
py
Python
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
60
2018-09-14T18:57:38.000Z
2022-02-19T18:16:24.000Z
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
37
2018-09-04T08:51:11.000Z
2022-02-21T01:36:21.000Z
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
16
2019-02-19T18:34:58.000Z
2022-02-05T15:36:33.000Z
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright (C) 2006 Fluendo, S.A. (www.fluendo.com). # Copyright 2006, Frank Scholz <coherence@beebits.net> # Copyright 2018, Pol Canelles <canellestudi@gmail.com> ''' Devices ======= This module contains two classes describing UPnP d...
33.057108
101
0.532309
0f1f722d095e171acc248a140ec608fb9b0bb1d0
1,063
py
Python
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
""" DO NOT MODIFY Dataloder for parts 2 and 3 We will also call this file when loading test data """ import os import glob import io from torchtext import data
30.371429
77
0.613358
0f1fdc9583dd36bad5225aaff9eca13e2d53bb4b
825
py
Python
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
1
2020-09-14T16:43:33.000Z
2020-09-14T16:43:33.000Z
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
null
null
null
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-09-13 19:49 from django.db import migrations, models
43.421053
505
0.56
0f21ea6cca6377a0bd8bcf855a84161050071410
5,954
py
Python
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
# DO NOT EDIT! This file is automatically generated import typing from commercetools._schemas._shopping_list import ( ShoppingListDraftSchema, ShoppingListPagedQueryResponseSchema, ShoppingListSchema, ShoppingListUpdateSchema, ) from commercetools.helpers import RemoveEmptyValuesMixin from commercetool...
31.172775
86
0.615721
0f23e92f67f8a8aa91e1f9b314ed49fa3fdd3f82
3,591
py
Python
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
33
2017-03-12T16:26:45.000Z
2021-04-30T05:37:35.000Z
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
6
2017-04-21T08:44:47.000Z
2018-11-11T16:20:22.000Z
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
13
2017-03-12T16:26:56.000Z
2020-04-20T05:35:00.000Z
from django.http import JsonResponse, StreamingHttpResponse from worker.bases import get_config, rand_sig, get_user_folder_size from django.core.paginator import EmptyPage, PageNotAnInteger import os def get_maintenance_protocols(): """ Get maintenance protocols :return: list, module names """ ...
27.623077
112
0.656085
0f255e895daccb92929c3b545a2a06d8d36e7091
18,246
py
Python
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
59
2021-05-10T21:43:36.000Z
2022-03-30T17:57:17.000Z
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
1,259
2021-05-10T18:21:26.000Z
2022-03-31T21:35:49.000Z
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
24
2021-05-15T00:58:39.000Z
2022-03-24T23:18:17.000Z
import json import requests import numpy as np import pandas as pd from data_pipeline.etl.base import ExtractTransformLoad from data_pipeline.utils import get_module_logger from data_pipeline.score import field_names pd.options.mode.chained_assignment = "raise" logger = get_module_logger(__name__)
44.179177
138
0.652527
0f2612b9ae0c0dbd7fdceda1e64ee15cf69d3dbf
1,046
py
Python
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET # data = ''' # <person> # <name>Chuck</name> # <phone type="intl"> # +1 734 303 4456 # </phone> # <email hide="yes"/> # </person> # ''' data = ''' <person> <!-- Start tag --> <name>Chuck</name> <phone type="intl"...
24.904762
73
0.526769
0f272c8d3fadc457e5a1a40afe6d595d75f8d4e9
2,000
py
Python
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
1
2019-01-29T20:47:44.000Z
2019-01-29T20:47:44.000Z
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
1
2021-06-25T15:32:21.000Z
2021-06-25T15:32:21.000Z
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2017 Google 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 requir...
27.777778
79
0.6775
0f27eca1b82dcb372dfbca87d3b80c02b19e0650
2,739
py
Python
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
75
2019-03-12T04:29:40.000Z
2022-03-19T14:04:04.000Z
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
2
2019-08-23T03:51:17.000Z
2019-10-10T14:16:37.000Z
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
8
2019-08-22T07:35:30.000Z
2022-03-01T03:53:11.000Z
import sys map_file = sys.argv[1] raw_test_file = sys.argv[2] output_file = sys.argv[3] date_set = ('year_0_number', 'year_1_number', 'year_2_number', 'year_3_number', 'month_0_number', 'month_0_name', 'month_1_name', 'day_0_number', 'day_1_number') mapping_list = list() with open(map_file) as f: map_list = f...
29.138298
161
0.513326
0f28bd836ea19980a01d0e09e41aaa7563cec959
3,134
py
Python
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
from pyns.protocols import create_basestation, create_node, ProtocolType from pyns.engine import Simulator, SimArg, TraceFormatter, TransmissionMedium from pyns.phy import PHYLayer import logging import numpy import sys import random import os import json if __name__ == "__main__": main()
32.309278
97
0.62508
0f297395918547fd04d388da57afb6142bad95dd
414
py
Python
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
1
2022-03-24T17:56:31.000Z
2022-03-24T17:56:31.000Z
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
null
null
null
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
null
null
null
import io from banner import print_banner
20.7
84
0.584541
0f2b5ba04147b3afbb2b735357905e7eac75bc23
3,296
py
Python
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import os import sys import shutil import httplib2 import oauth2client try: import apiclient as googleapiclient except ImportError: import googleapiclient from oauth2client.file import Storage, Credentials from oauth2client.client import flow_from...
29.693694
77
0.698726
0f2bfcc1f4edd32f202d82cac639a588dbfdc47f
1,001
py
Python
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1108 lang=python # # [1108] Defanging an IP Address # # https://leetcode.com/problems/defanging-an-ip-address/description/ # # algorithms # Easy (85.21%) # Likes: 66 # Dislikes: 256 # Total Accepted: 36.7K # Total Submissions: 43.1K # Testcase Example: '"1.1.1.1"' # # Given...
19.25
71
0.558442
0f2caf81081a11f464cc6de29247f66e01a2f10e
2,324
py
Python
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
import pygame as pg
52.818182
111
0.603701
0f2cb2735a3c9b7ea7019b251686b0875798e3d0
64
py
Python
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
from .flattenator import Flattenator __all__ = ["Flattenator"]
16
36
0.78125
0f2faddde2571ad100ca7bd92dfedb14e2aab42d
375
py
Python
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #%% import stac #%% s = stac.STAC('http://brazildatacube.dpi.inpe.br/bdc-stac/0.8.1/', True) #%% s.catalog #%% collection = s.collection('C4_64_16D_MED') collection #%% items = collection.get_items(filter={'bbox':'-56.86523437500001,-15.919073517982413,-53.17382812500001,-13.90...
19.736842
157
0.698667
0f2fe1eebe8b38c8882944a23ef192e5649f7714
1,482
py
Python
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
27
2019-11-11T11:09:47.000Z
2022-03-01T14:27:59.000Z
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
228
2019-11-11T11:04:26.000Z
2022-03-29T02:16:05.000Z
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
11
2019-11-12T03:15:52.000Z
2022-01-11T05:46:02.000Z
# # Copyright 2019 BrainPad Inc. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
35.285714
79
0.789474
0f2feac9a2affe9de90859ee84f6a37f704d944b
58
py
Python
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
4
2019-08-12T12:40:48.000Z
2020-04-20T20:00:03.000Z
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
null
null
null
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
null
null
null
CJ_PATH = r'' COOKIES_PATH = r'' CHAN_ID = '' VID_ID = ''
11.6
18
0.586207
0f30ef54d1462b0e500b903576cbf4ddc4cd102a
5,614
py
Python
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
import copy import os import time from collections import OrderedDict from sklearn.model_selection import train_test_split from torchvision import models import torch from torch.utils.tensorboard import SummaryWriter import pandas as pd from skimage.io import imread from self_driving_ai.utils import * """ Credit: h...
32.264368
150
0.573388
0f332ca51a17140c793e8775330bba139c2fa976
9,602
py
Python
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """Test lvmutil.census. """ from __future__ import (absolute_import, division, print_function, unicode_literals) # The line above will help with 2to3 support. import unittest has_mock = True try: from un...
40.686441
135
0.562175