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
da4c1af35b78bb185c69f2e2ce2c1d8ceee1a22d
667
py
Python
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
1
2020-07-15T17:21:13.000Z
2020-07-15T17:21:13.000Z
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
1
2021-05-04T01:04:57.000Z
2021-05-04T01:05:32.000Z
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
null
null
null
import re import pandas as pd df = pd.read_json('jawiki-country.json', lines=True) text = df.query('title=="イギリス"')['text'].values[0].split('\n') memo, flag = [], False template = '基礎情報' check = re.compile('\|(.+?)\s=\s(.+)') check1 = re.compile('\{\{' + template) check2 = re.compile('\}\}') check3 = re.compile('\|')...
23.821429
62
0.55922
0
0
0
0
0
0
0
0
129
0.188873
da4c202f2a4d50150a0f027ce75d19d6e0f3d28d
316
py
Python
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
19
2018-06-08T05:33:47.000Z
2021-04-26T16:19:32.000Z
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
null
null
null
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
13
2018-09-24T21:52:06.000Z
2021-02-26T10:40:25.000Z
# Datasets TRAIN = 'trn' VAL = 'val' TEST = 'tst' FULL = 'full' # File extensions JPG = '.jpg' TIF = '.tif' PNG = '.png' GIF = '.gif' BCOLZ = '.bc' CSV = '.csv' # PyTorch MODEL_EXT = '.mdl' WEIGHTS_EXT = '.th' OPTIM_EXT = '.th' # Data Aug IMAGENET_MEAN = [0.485, 0.456, 0.406] IMAGENET_STD = [0.229, 0.224, 0.225]
14.363636
37
0.591772
0
0
0
0
0
0
0
0
118
0.373418
da4ce36d9c8b0451cd19a4276193992895c3a0ed
23,304
py
Python
create_dataset.py
akudan/nephi
83d3ccee0b83b3ca2349e92c454ed178afd1d1fb
[ "MIT" ]
50
2018-04-22T23:12:18.000Z
2022-02-14T15:10:24.000Z
create_dataset.py
akudan/nephi
83d3ccee0b83b3ca2349e92c454ed178afd1d1fb
[ "MIT" ]
1
2019-03-01T02:54:19.000Z
2019-03-01T15:30:12.000Z
create_dataset.py
akudan/nephi
83d3ccee0b83b3ca2349e92c454ed178afd1d1fb
[ "MIT" ]
19
2018-02-07T21:17:13.000Z
2022-02-14T15:11:46.000Z
import os import lmdb # install lmdb by "pip install lmdb" import cv2 import numpy as np from tool.xml_parser import page_images from glob import glob import re import sys import io import argparse from scipy.spatial import distance encoding = 'utf-8' stdout = sys.stdout reload(sys) sys.setdefaultencoding('utf-8') s...
40.458333
277
0.573249
0
0
0
0
0
0
0
0
5,590
0.239873
da4d25bd823544d3dde8ed32e826fbbb55bcbd80
1,226
py
Python
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class MaximumPaths(A10BaseClass): """Class Description:: Set maximum number of route multipaths installed into FIB. Class maximum-paths supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for thi...
32.263158
168
0.638662
1,169
0.953507
0
0
0
0
0
0
845
0.689233
da4d50c0cd6f0dd5e191b086879be35c23707ff8
331
py
Python
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
1
2022-02-23T12:33:01.000Z
2022-02-23T12:33:01.000Z
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
null
null
null
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
null
null
null
import sys filename = sys.argv[1] fileout = sys.argv[2] with open(filename, encoding="utf-8", mode="r") as file: lines = file.read().split("\n") data_lines = [lines[i] for i in range(0,len(lines),3)] print(data_lines) with open(fileout, encoding="utf-8", mode="w") as file: for line in data_lines: file.write(lin...
20.6875
56
0.667674
0
0
0
0
0
0
0
0
28
0.084592
da4f18d031bec1129d069479e75d9c035f860d1d
2,412
py
Python
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
37.107692
76
0.681177
0
0
0
0
0
0
0
0
1,216
0.504146
da52f7ade412e44099bbd5c88acd3fc976745c19
1,002
py
Python
PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
1
2022-01-07T15:31:45.000Z
2022-01-07T15:31:45.000Z
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # cf_RN_KoBoL.m @function def cf_RN_KoBoL(u=None,T=None,r=None,c=None,lam_p=None,lam_m=None,nu=None,*args,**kwargs): ...
27.833333
100
0.58483
0
0
0
0
736
0.734531
0
0
356
0.355289
da5590e5f9e56a1abcc8575518a715e6c27967cd
161
py
Python
hello-world.py
rmoralesdelgado/example-repo
a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b
[ "MIT" ]
null
null
null
hello-world.py
rmoralesdelgado/example-repo
a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b
[ "MIT" ]
null
null
null
hello-world.py
rmoralesdelgado/example-repo
a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b
[ "MIT" ]
null
null
null
# This is a modified line if __name__ == "__main__": print("Hello World") print("I am a new line") print(hi) #  blah blha def myfunc_1(): pass
10.733333
28
0.608696
0
0
0
0
0
0
0
0
78
0.481481
da55b03a123eb70e524ac2c9ba783fe7003f5224
250
py
Python
mundo 1/ex020.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
1
2021-08-04T13:21:22.000Z
2021-08-04T13:21:22.000Z
mundo 1/ex020.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
mundo 1/ex020.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
import random n1 = str(input('Primeiro Aluno')) n2 = str(input('Segundo Aluno')) n3 = str(input('Terceiro Aluno')) n4 = str(input('Quarto Aluno')) lista = [n1,n2,n3,n4] Ordem = random.sample(lista,k=4) print(f'A ordem de apresentação será: {Ordem}')
27.777778
47
0.692
0
0
0
0
0
0
0
0
104
0.411067
da58277b5c2af60a518ecbd9a3ef1bdee746623d
1,306
py
Python
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import os import base64 import urllib.request import ais_sdk.ais as ais _ENDPOINT = { 'image': { 'cn-north-1':'image.cn-north-1.myhuaweicloud.com', 'ap-southeast-1':'image.ap-southeast-1.myhuaweicloud.com' }, 'moderation': { 'cn-north-1':'moderation....
24.641509
70
0.666156
0
0
0
0
0
0
0
0
455
0.348392
da5863a5ec445793ea40d771aa319962f8ec9010
609
py
Python
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
7
2021-03-17T01:23:28.000Z
2021-05-06T20:41:21.000Z
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from GUI.tabs.propulsion_tab.propulsion_tab import propulsion_tab class propulsion_dialog(QDialog): def __init__(self): super().__init__() self.tab = propulsion_tab() self.layout =self.tab.create_widget() self.buttons = QDia...
30.45
65
0.689655
482
0.791461
0
0
0
0
0
0
0
0
da58d75367a4513d4ada4db3e0cf52dc127dc010
726
py
Python
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
1
2020-09-20T03:55:00.000Z
2020-09-20T03:55:00.000Z
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
""" Dummy node, two pointers, swap nodes """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def removeNthFromEnd(self, head, n): """ :type head: ListNode :...
22
43
0.479339
521
0.717631
0
0
0
0
0
0
288
0.396694
da58d89c89872e8d53a290617cb5b532f0d040f3
1,157
py
Python
hard-gists/1023456/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/1023456/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/1023456/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import scriptcontext import time import System import Rhino rc, view = Rhino.Input.RhinoGet.GetView("select view") print "position mouse where you want" for i in [5,4,3,2,1]: time.sleep(0.5) print i screen_point = System.Windows.Forms.Cursor.Position print "screen_point =", screen_point # convert screen coo...
33.057143
84
0.78911
0
0
0
0
0
0
0
0
335
0.289542
da590cce76c1f0b75eaa800793b065c606ed64fc
62
py
Python
core/models/abstract/__init__.py
jcquinlan/colophon
96f3eec0a524cb1fe3d655f3cc850b125f4aaff4
[ "MIT" ]
null
null
null
core/models/abstract/__init__.py
jcquinlan/colophon
96f3eec0a524cb1fe3d655f3cc850b125f4aaff4
[ "MIT" ]
null
null
null
core/models/abstract/__init__.py
jcquinlan/colophon
96f3eec0a524cb1fe3d655f3cc850b125f4aaff4
[ "MIT" ]
null
null
null
from .user_document_interaction import UserDocumentInteraction
62
62
0.935484
0
0
0
0
0
0
0
0
0
0
da5ad4fa6a5854b1d737a7b9cbf69ded01ce0a95
769
py
Python
EasyNN/optimizer/nesterov.py
danielwilczak101/EasyNN
89319e974c324dda228c6ecff7c39d723eda3ca2
[ "MIT" ]
5
2021-01-28T21:19:02.000Z
2022-02-03T05:47:47.000Z
EasyNN/optimizer/nesterov.py
danielwilczak101/EasyNN
89319e974c324dda228c6ecff7c39d723eda3ca2
[ "MIT" ]
1
2021-02-04T20:57:45.000Z
2021-03-03T14:49:44.000Z
EasyNN/optimizer/nesterov.py
danielwilczak101/EasyNN
89319e974c324dda228c6ecff7c39d723eda3ca2
[ "MIT" ]
2
2021-02-12T04:27:40.000Z
2021-12-19T20:11:20.000Z
""" TODO: Not complete. """ from __future__ import annotations from EasyNN.optimizer.momentum_descent import MomentumDescent import EasyNN.model.abc class Nesterov(MomentumDescent): """Nesterov uses parameters -= lr * momentum, where the momentum is computed by looking ahead.""" def get_derivatives(self: Nes...
36.619048
101
0.717815
617
0.802341
0
0
0
0
0
0
173
0.224967
da5c80138d99d10b2de1007d8d74ecb978a6b876
3,483
py
Python
dl/cifar_python_data_layer.py
zsffq999/DISH
2285747d9a410363ce09778aed5314a2e1b1aed9
[ "MIT" ]
3
2018-09-22T13:13:46.000Z
2020-05-09T07:24:44.000Z
dl/cifar_python_data_layer.py
zsffq999/DISH
2285747d9a410363ce09778aed5314a2e1b1aed9
[ "MIT" ]
null
null
null
dl/cifar_python_data_layer.py
zsffq999/DISH
2285747d9a410363ce09778aed5314a2e1b1aed9
[ "MIT" ]
null
null
null
# imports import caffe import numpy as np from random import shuffle import cPickle as cp import scipy.io as sio class PythonDataLayer(caffe.Layer): """ This is a simple syncronous datalayer for training a multilabel model on CIFAR. """ def setup(self, bottom, top): self.top_names = ['dat...
29.025
125
0.669825
3,346
0.960666
0
0
0
0
0
0
1,295
0.371806
da5d5dda91394d5fcd0bc5d32616b3e16dc5d436
875
py
Python
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
7
2021-10-11T12:07:08.000Z
2022-01-10T01:19:36.000Z
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
null
null
null
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
null
null
null
import sys from .src.applications.server import ETHSENTIAL from .src.applications.cli import CLI from .src.parser import create_parser def main(): parser = create_parser() args = parser.parse_args() if args.action == 'cli': try: CLI.exec_cmd(args) except Exception as e: ...
24.305556
53
0.537143
0
0
0
0
0
0
0
0
65
0.074286
da5ea178b4528bc2e8ee17e0a8132d23a6388e83
2,322
py
Python
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
117
2018-06-22T08:49:36.000Z
2022-01-30T17:08:29.000Z
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
17
2018-07-05T04:06:47.000Z
2020-09-07T06:19:25.000Z
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
42
2018-06-22T08:57:42.000Z
2022-03-28T13:08:02.000Z
#!/usr/bin/env python3 import argparse import json import os import re import subprocess import sys import time enable_push = True # True to push on chain cleos = '../build/programs/cleos/cleos --wallet-url http://127.0.0.1:6666 --url http://127.0.0.1:8001 ' wallet_password = '' wallet_name = 'testc' active_account =...
26.089888
103
0.615418
0
0
0
0
0
0
0
0
641
0.276055
da5fc436cce22928bf1e7b8ba50df3169ca33055
7,027
py
Python
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
8
2020-08-26T21:05:32.000Z
2021-08-18T06:55:24.000Z
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
null
null
null
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
2
2021-10-20T12:43:00.000Z
2022-01-04T19:40:16.000Z
"""This downloader downloads satellite images from the Google Static Maps API. Usage: $ python download_googlestaticmap.py \ > --log LOG_FILE.csv \ > --initialize INIT_FILE.csv $ nohup python download_googlestaticmap.py \ > --log LOG_FILE.csv \ > --num 3 \ > --download-dir DIR \ ...
36.035897
84
0.565675
3,834
0.54561
0
0
0
0
0
0
3,035
0.431906
da5fcd544f0ebf019068c4964041f2d02daca8dc
2,606
py
Python
pyrh/endpoints.py
JamMarHer/pyrh
b5501482974d9a7ba9f34745642d0a2e585154f2
[ "MIT" ]
null
null
null
pyrh/endpoints.py
JamMarHer/pyrh
b5501482974d9a7ba9f34745642d0a2e585154f2
[ "MIT" ]
null
null
null
pyrh/endpoints.py
JamMarHer/pyrh
b5501482974d9a7ba9f34745642d0a2e585154f2
[ "MIT" ]
null
null
null
BASE_API = "https://api.robinhood.com" def login(): return BASE_API + "/oauth2/token/" def logout(): return BASE_API + "/oauth2/revoke_token/" def investment_profile(): return BASE_API + "/user/investment_profile/" def accounts(): return BASE_API + "/accounts/" def ach(option): """ Com...
18.748201
88
0.653492
0
0
0
0
0
0
0
0
1,096
0.420568
da5fdaa047dc2cba3b58d7d4eab745c4fc398500
9,138
py
Python
task.py
zhester/aptask
4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e
[ "BSD-2-Clause" ]
null
null
null
task.py
zhester/aptask
4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e
[ "BSD-2-Clause" ]
null
null
null
task.py
zhester/aptask
4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ User Task Interface This module should be used to implement new task execution drivers. Semantically, a task is the object a worker creates and manipulates to execute long-running code or programs. """ import inspect import data #=========================================================...
31.402062
78
0.478989
8,038
0.879624
0
0
856
0.093675
0
0
5,879
0.643357
da60447f22ba4eba74abcb47b3cadec2e06136d2
9,826
py
Python
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
12
2021-05-07T15:27:11.000Z
2022-01-29T04:26:36.000Z
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
15
2021-05-07T14:58:04.000Z
2021-11-10T21:30:58.000Z
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
1
2022-01-13T16:08:49.000Z
2022-01-13T16:08:49.000Z
""" Drosophila simulation class for kinematic replay without body support. """ import numpy as np import pandas as pd import pybullet as p from NeuroMechFly.sdf.units import SimulationUnitScaling from NeuroMechFly.simulation.bullet_simulation import BulletSimulation # Random number seed np.random.seed(seed=321) de...
36.258303
91
0.569408
8,162
0.830569
0
0
0
0
0
0
3,025
0.307825
da6071c120cc4c6108f42d5833b8ae67a673f55d
3,845
py
Python
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from enum import IntEnum import sys from typing import Dict from riscvmodel.types import Immediate # type: ignore from shared.insn_yaml import Insn, load_insns_yaml fro...
31.008065
78
0.649935
1,820
0.473342
0
0
0
0
0
0
1,621
0.421586
da624c2d151313fbe9db0021e53684c69e6d4b5f
247
py
Python
config.py
TaskeHAMANO/sample_application
628699c62197dd5079e0b600f431c791ac3a301a
[ "BSD-3-Clause" ]
null
null
null
config.py
TaskeHAMANO/sample_application
628699c62197dd5079e0b600f431c791ac3a301a
[ "BSD-3-Clause" ]
null
null
null
config.py
TaskeHAMANO/sample_application
628699c62197dd5079e0b600f431c791ac3a301a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim:fileencoding=utf-8 # Author: Shinya Suzuki # Created: 2017-11-16 database_path = "/techathon.db" SQLALCHEMY_DATABASE_URI = "sqlite://{0}".format(database_path) SECRET_KEY = 'test' SQLALCHEMY_TRACK_MODIFICATIONS = True
24.7
62
0.761134
0
0
0
0
0
0
0
0
124
0.502024
da63d798dfe9c2ea59c6459800d52786ae4db56c
2,668
py
Python
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
null
null
null
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
9
2022-01-15T19:43:46.000Z
2022-03-24T06:04:25.000Z
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 Flávio Gonçalves Garcia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
33.35
74
0.737631
0
0
0
0
1,608
0.602022
0
0
823
0.308124
da648cdce4097a5f15c459cc9d3dc08716cd7f4a
2,967
py
Python
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
1
2020-04-01T22:05:28.000Z
2020-04-01T22:05:28.000Z
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
null
null
null
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
5
2020-02-21T22:47:35.000Z
2022-02-03T15:21:39.000Z
#!/usr/bin/env python3 # Import modules required for app import os import boto3 import json from pymongo import MongoClient from werkzeug import secure_filename from PIL import Image from config import ecs_test_drive #Get from K8s ConfigMap values for MongoDB Database MONGO_SERVER = os.environ.get( "MONGO_SERVER", Non...
34.905882
115
0.691271
0
0
0
0
0
0
0
0
1,160
0.390967
da67084ae53c45931e9876b1394dc1aa92e625de
12,051
py
Python
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
2
2017-03-23T19:44:03.000Z
2020-11-28T17:01:49.000Z
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
null
null
null
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012, Siu Kwan Lam # All rights reserved. import logging import ast from contextlib import contextmanager from pymothoa.util.descriptor import Descriptor, instanceof from pymothoa import dialect from pymothoa.compiler_errors import * from pymothoa.backend import CodeGenerationBase from types import *...
35.759644
110
0.617127
11,646
0.966393
1,465
0.121567
1,505
0.124886
0
0
1,196
0.099245
da68786bead17edb9e00b001f796346815fc35ed
2,412
py
Python
digsby/src/jabber/objects/gmail/mail_thread_info.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/jabber/objects/gmail/mail_thread_info.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/jabber/objects/gmail/mail_thread_info.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
#tid The thread id of this thread. #participation A number indicating the user's participation level in this thread: 0 indicates that the user has not participated; 1 indicates that the user is one of many recipients listed in the thread; 2 indicates that the user is the sole recipient for messages in this thr...
47.294118
285
0.69942
1,559
0.646352
0
0
0
0
0
0
754
0.312604
da687c22550da7202f3e33817124a03999dca63a
542
py
Python
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
4
2019-07-26T03:00:39.000Z
2021-01-29T16:12:21.000Z
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
null
null
null
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
2
2019-11-12T15:57:29.000Z
2022-03-02T21:26:58.000Z
import onnxruntime import onnx import os from onnx import numpy_helper onnx_model_dir = 'test_ssd_model' onnx_data_dir = 'test_data_set_0' sess = onnxruntime.InferenceSession(os.path.join(onnx_model_dir, 'model.onnx')) img_tensor = onnx.TensorProto() with open(os.path.join(onnx_model_dir, onnx_data_dir, 'input_0.pb')...
30.111111
80
0.778598
0
0
0
0
0
0
0
0
61
0.112546
da69d942b34c7cb188f48d8f571305a3929e1a1b
95
py
Python
abfahrt/unittest/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/unittest/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/unittest/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
""" Unittest-Package for testing the most important classes/modules of the abfahrt-Package """
23.75
86
0.778947
0
0
0
0
0
0
0
0
94
0.989474
da6a8272e09ed6bcdd72fe1fe0ed6ca276090222
3,519
py
Python
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
import json import os import subprocess as sp import tempfile from pathlib import Path import gdk.common.exceptions.error_messages as error_messages def test_list_template(): check_list_template = sp.run(["gdk", "component", "list", "--template"], check=True, stdout=sp.PIPE) assert "HelloWorld-python" in che...
40.918605
126
0.700199
0
0
0
0
0
0
0
0
996
0.283035
da6b4c0eec1b1ed14670ffd508f05ac5d26c2b77
1,326
py
Python
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
1
2020-03-17T08:28:48.000Z
2020-03-17T08:28:48.000Z
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
null
null
null
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
null
null
null
from django import forms from django.core.files.base import ContentFile from slugify import slugify from urllib import request from .models import Image class ImageForm(forms.ModelForm): class Meta: model = Image fields = ('title','url','description') def clean_url(self): ...
41.4375
113
0.667421
1,464
0.89816
0
0
0
0
0
0
650
0.398773
da71b1822bbf0d5369bea52d007ca8f6061551f0
128
py
Python
MT-top-perf-cron.py
AdeTheux/ducksboard
339c965dcef448713ed521ba066759f6fb43c2b1
[ "MIT" ]
null
null
null
MT-top-perf-cron.py
AdeTheux/ducksboard
339c965dcef448713ed521ba066759f6fb43c2b1
[ "MIT" ]
null
null
null
MT-top-perf-cron.py
AdeTheux/ducksboard
339c965dcef448713ed521ba066759f6fb43c2b1
[ "MIT" ]
null
null
null
python /homez.144/arnoz/www/dev/MT_ducksboard_top_perf.py -u EMAIL/token -p TOKEN -d mtservicedesk.zendesk.com -a TOKEN -l 72676
128
128
0.796875
0
0
0
0
0
0
0
0
0
0
da741a60b0b7e242baf0c8917409303691b189e3
1,110
py
Python
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
print('Merry Christmas!!!') import sys # # int main(int argc, char* argv[]) { # int n = argc > 1 ? atoi(argv[1]) : 4; # for (int j = 1; j <= n; j++) { # int s = 1 << j, k = (1 << n) - s, x; # for (int y = s - j; y >= 0; y--, putchar('\n')) { # for (x = 0; x < y + k; x++) printf(" "...
28.461538
83
0.351351
0
0
0
0
0
0
0
0
618
0.524618
da760162956fd30fc878df9712168c347b1cba4a
1,013
py
Python
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
null
null
null
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
34
2021-09-10T01:08:14.000Z
2022-03-25T18:10:08.000Z
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
null
null
null
""" Enums that aren't really too coupled to anything else. """ from enum import IntEnum class DIFFICULTY(IntEnum): EASY = 0 NORMAL = 1 HARD = 2 def to_song_json_suffix(self) -> str: if self is self.EASY: return "-easy" elif self is self.NORMAL: return "" elif self is self.HARD: return "-hard" r...
15.828125
78
0.672261
773
0.76308
0
0
0
0
0
0
160
0.157947
da7627eec05c00f505b4e3736efa9cd06fb060ee
946
py
Python
app/restapi/apiMovieDetail.py
DucVinh2609/mtb_admin
0f67faabcda7b6a5bd5f30126b46a5367d00f77b
[ "MIT" ]
null
null
null
app/restapi/apiMovieDetail.py
DucVinh2609/mtb_admin
0f67faabcda7b6a5bd5f30126b46a5367d00f77b
[ "MIT" ]
4
2021-06-08T20:42:38.000Z
2022-03-12T00:07:41.000Z
app/restapi/apiMovieDetail.py
DucVinh2609/mtb_admin
0f67faabcda7b6a5bd5f30126b46a5367d00f77b
[ "MIT" ]
null
null
null
# import pymysql # from app import app # from flask import jsonify # from flask import flash, request # from flask_restful import Resource, Api # from flaskext.mysql import MySQL # mysql = MySQL() # # MySQL configurations # app.config['MYSQL_DATABASE_USER'] = 'root' # app.config['MYSQL_DATABASE_PASSWORD'] = '' # app....
36.384615
273
0.732558
0
0
0
0
0
0
0
0
921
0.973573
da774b4615481a7592e47b528fe32fca5d803722
56
py
Python
aioface/storages/fsm/types.py
kirillkuzin/aioface
c19f89f3f0f6ccb95832030444f2ece8fda7de62
[ "MIT" ]
1
2020-09-12T21:10:54.000Z
2020-09-12T21:10:54.000Z
aioface/storages/fsm/types.py
kirillkuzin/aioface
c19f89f3f0f6ccb95832030444f2ece8fda7de62
[ "MIT" ]
null
null
null
aioface/storages/fsm/types.py
kirillkuzin/aioface
c19f89f3f0f6ccb95832030444f2ece8fda7de62
[ "MIT" ]
null
null
null
import typing State = typing.NewType('State', object)
11.2
39
0.732143
0
0
0
0
0
0
0
0
7
0.125
da776d50619a771e6d0a4ec84979dc6f33204a34
291
py
Python
wqxweblib/__main__.py
FlippingBinary/wqxweblib
129ac6d010f5fb726fe29dc9494f90f19a7ec4c0
[ "MIT" ]
null
null
null
wqxweblib/__main__.py
FlippingBinary/wqxweblib
129ac6d010f5fb726fe29dc9494f90f19a7ec4c0
[ "MIT" ]
null
null
null
wqxweblib/__main__.py
FlippingBinary/wqxweblib
129ac6d010f5fb726fe29dc9494f90f19a7ec4c0
[ "MIT" ]
null
null
null
import sys def main(argv:list): print('This module does not yet support direct execution. It should be used as a library.') print('More information is available at https://github.com/FlippingBinary/wqxweblib-python') return 0 if __name__ == "__main__": main(sys.argv[1:])
29.1
95
0.714777
0
0
0
0
0
0
0
0
179
0.61512
da78a73d88c09570047fcaf5e2a501ef100b4dc0
28,780
py
Python
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
1
2021-06-02T18:35:05.000Z
2021-06-02T18:35:05.000Z
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
64
2020-05-11T12:35:26.000Z
2022-03-28T16:03:37.000Z
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
11
2020-04-07T13:32:07.000Z
2022-02-07T19:16:24.000Z
#! /usr/bin/env python """Check properties of Terraformed resources and/or JupyterHub to verify good deployment. ignore the hub since it may not be delpoyed on the cluster yet. check creation date check for global hammer """ import sys import os import subprocess import argparse import re import json from collection...
37.087629
243
0.618277
13,356
0.464072
0
0
1,040
0.036136
0
0
17,569
0.610459
da78b0227ad76c6a1e8ba2489ed9c76d00da8725
791
py
Python
tests/in/test_application.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
tests/in/test_application.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
tests/in/test_application.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! /usr/bin/python3.6 from pycatia import catia from tests.source_files import cat_part_measurable def test_application(): caa = catia() assert 'Application(name="CNEXT")' in caa.__repr__() def test_refresh(): caa = catia() documents = caa.documents documents.open(cat_part_measurable) docum...
19.775
56
0.705436
0
0
0
0
0
0
0
0
48
0.060683
da7992586d3c2316d0ce8cb23cf3e01e30ae505b
4,632
py
Python
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import contextlib import hashlib import os import os.path import shutil import stat import subprocess import sys import xattr class TestCaseSkipError(Exception): pass def skip_if_no_compression_support(type): """ Raises TestCaseSkipError if the type is "lzma" and the test is running on darw...
31.726027
193
0.708765
41
0.008851
1,247
0.269214
1,328
0.286701
0
0
1,710
0.369171
da79b4fcd76b875d0455312cd540c29c3adde2c1
15,083
py
Python
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
5
2021-04-24T18:13:36.000Z
2021-08-31T13:54:55.000Z
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
null
null
null
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
null
null
null
import arcade import arcade.gui from modifications_to_python_arcade.gui_manager import ModifiedUIManager from modifications_to_python_arcade.resizeable_window import ResizeableWindow from arcade.gui.ui_style import UIStyle import fish from controls import PlayerControlsObject from fish_generator import RandomFishGene...
39.381201
211
0.679772
13,664
0.905921
0
0
1,756
0.116422
0
0
1,174
0.077836
da7b3bc161256bb5501fd5bd641192702f9a7738
2,306
py
Python
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
4
2017-05-11T14:50:32.000Z
2020-01-10T09:02:27.000Z
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
145
2017-04-07T11:01:58.000Z
2019-12-11T15:30:23.000Z
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
3
2017-10-25T12:36:16.000Z
2018-04-26T08:49:34.000Z
from flask_restful import fields, marshal from flask import Blueprint as FlaskBlueprint import logging import json from pebbles.models import User from pebbles.forms import SessionCreateForm from pebbles.server import app, restful from pebbles.views.commons import is_group_manager, update_email # changed sessions =...
36.603175
98
0.624024
1,409
0.611015
0
0
0
0
0
0
523
0.2268
da7bab95ad749f6149016b3bc152e246a371a757
6,138
py
Python
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
6
2021-04-04T05:09:32.000Z
2022-01-21T10:59:20.000Z
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
null
null
null
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
1
2021-11-06T05:36:03.000Z
2021-11-06T05:36:03.000Z
import argparse import os import pickle from copy import deepcopy import pandas as pd import torch.optim as optim from torch.utils.data import DataLoader from collate import CollateTrain, CollateTest from models.RRCA import * from utils.rrca_utils import evaluate, train_one_epoch def get_embeddings(dataset_path): ...
33.540984
117
0.750244
0
0
0
0
0
0
0
0
1,027
0.167318
da7bd622d1ddbda2597706e2f3a2142e325287e0
4,540
py
Python
SignLAnguage/proyecto.py
val171001/SignLanguage
fc7622e4a31f007791f34fbf0ba08c89138389c5
[ "MIT" ]
null
null
null
SignLAnguage/proyecto.py
val171001/SignLanguage
fc7622e4a31f007791f34fbf0ba08c89138389c5
[ "MIT" ]
null
null
null
SignLAnguage/proyecto.py
val171001/SignLanguage
fc7622e4a31f007791f34fbf0ba08c89138389c5
[ "MIT" ]
null
null
null
#Universidad del Valle de Guatemala #HCI #David valenzuela #Marcos Gutierrez #Fernando Hengstenebrg #Librerias from tkinter import * from tkinter import messagebox as ms #base de datos import sqlite3 import os import webbrowser #Conectamos con base de datos y creamos usuarios with sqlite3.connect('cuentas.db') as db:...
38.803419
140
0.596256
3,969
0.873844
0
0
0
0
0
0
1,375
0.30273
da7e18ea9112e331d9b45cb4a08cb02a217b0d65
53
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
num1 = float(input()) # num1 = 44.45 print(num1 % 1)
13.25
21
0.603774
0
0
0
0
0
0
0
0
14
0.264151
da804ba481b451cc0ca78dfe3274c111f94eaf58
16,539
py
Python
data-processing/utils/__init__.py
mark-andrews/BayesianAccountMemoryText
28609a4d3d3924c5082af81359ffc3f78f6eb6da
[ "CC-BY-4.0" ]
2
2020-04-10T17:14:19.000Z
2020-04-10T17:14:26.000Z
data-processing/utils/__init__.py
mark-andrews/BayesianAccountMemoryText
28609a4d3d3924c5082af81359ffc3f78f6eb6da
[ "CC-BY-4.0" ]
18
2020-03-24T17:07:23.000Z
2021-12-13T20:01:11.000Z
data-processing/utils/__init__.py
mark-andrews/BayesianAccountMemoryText
28609a4d3d3924c5082af81359ffc3f78f6eb6da
[ "CC-BY-4.0" ]
null
null
null
""" Some general utils. """ ##============================================================================= ## Standard library imports ##============================================================================= #import string #import re #import os #import errno #import hashlib # ##==============================...
73.834821
104
0.912026
0
0
0
0
0
0
0
0
16,328
0.987242
da8089058869977e8a1f3875a6acbaed71ba57b4
651
py
Python
src/turret/core/cli.py
VanJanssen/turret
a3b87940aa7ed07df7a60e7633f795c0fec26462
[ "MIT" ]
1
2018-01-09T12:40:00.000Z
2018-01-09T12:40:00.000Z
src/turret/core/cli.py
VanJanssen/turret
a3b87940aa7ed07df7a60e7633f795c0fec26462
[ "MIT" ]
42
2018-01-05T11:45:56.000Z
2019-03-11T09:41:11.000Z
src/turret/core/cli.py
VanJanssen/turret
a3b87940aa7ed07df7a60e7633f795c0fec26462
[ "MIT" ]
1
2017-08-29T15:54:28.000Z
2017-08-29T15:54:28.000Z
# -*- coding: utf-8 -*- """Entry point for the command line interface of Turret. The command line interface is split across multiple files, to increase modulairity and maintainability. Every component of Turret has its own subcommand, the CLI for this is in the `cli.py` file of this component. This file imports the s...
23.25
76
0.749616
0
0
0
0
129
0.198157
0
0
443
0.680492
da8173e404603548727bb332a693728554dd4658
3,927
py
Python
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
null
null
null
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
5
2017-07-19T10:09:32.000Z
2017-07-30T03:32:56.000Z
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
null
null
null
from datetime import datetime import sqlite3 from . import slice class Log(object): """ Represents a series of slices, forming a log of how time was spent """ DT_FMT = "%Y-%m-%d %H:%M" _COL_WIDTH = 15 def __init__(self, slices): self._slices = {} for s in slices: ...
29.088889
164
0.507512
3,859
0.982684
0
0
134
0.034123
0
0
1,251
0.318564
da820a998854815eb9a984cf6f47297e37abd1fc
709
py
Python
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
1
2022-02-02T04:43:32.000Z
2022-02-02T04:43:32.000Z
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
7
2022-02-02T05:25:40.000Z
2022-03-23T17:16:19.000Z
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
null
null
null
import io import unittest from unittest.mock import patch from textwrap import dedent from codeseeker.utils import show class TestCodeSeekerUtils(unittest.TestCase): def test_show(self): data = [ {"path": "repository/path/to/file.py"}, {"path": "repository/path/to/file2.py"}, ...
24.448276
74
0.603667
536
0.755994
0
0
0
0
0
0
224
0.315938
da828fe3ebcfe4b60891da48c991e49aa603a4a1
3,267
py
Python
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
# used for decryption, take the second element for sorting def takeSecond(elem): return elem[1] def display_rail(lines): depth = len(lines) col = len(lines[0]) # depth is the number of rows of the grid # lines is a tuple where line[i] is the i-th line to print # col is the number of columns = number of charac...
27.923077
94
0.685644
0
0
0
0
0
0
0
0
1,548
0.473829
da858baf0350df7bd476677ebd9b47d2ce1cc39c
2,736
py
Python
tools/bin/clearAssignment.py
cpausmit/Tapas
283016cebc036a703609317aafc28675b1c1ea17
[ "MIT" ]
null
null
null
tools/bin/clearAssignment.py
cpausmit/Tapas
283016cebc036a703609317aafc28675b1c1ea17
[ "MIT" ]
null
null
null
tools/bin/clearAssignment.py
cpausmit/Tapas
283016cebc036a703609317aafc28675b1c1ea17
[ "MIT" ]
null
null
null
#!/usr/bin/python #--------------------------------------------------------------------------------------------------- # Clear an existing assignment in the database using the unique task Id. # #--------------------------------------------------------------------------------------------------- import sys,os,re import M...
31.813953
100
0.482822
0
0
0
0
0
0
0
0
1,759
0.642909
da85979a8a85aecc4d586a12af1e63303a1db9ca
146
py
Python
qna/admin.py
aryaputra28/covidify-PerancanganWeb
34d6d0017f44248c172fc58e6e1b138e23e68a95
[ "Unlicense" ]
null
null
null
qna/admin.py
aryaputra28/covidify-PerancanganWeb
34d6d0017f44248c172fc58e6e1b138e23e68a95
[ "Unlicense" ]
null
null
null
qna/admin.py
aryaputra28/covidify-PerancanganWeb
34d6d0017f44248c172fc58e6e1b138e23e68a95
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(pertanyaan) admin.site.register(komentar)
24.333333
32
0.808219
0
0
0
0
0
0
0
0
28
0.191781
da85a9841500fbd6e450901a3ca02828bbbeb03f
1,443
py
Python
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-02-12T03:06:31.000Z
2020-07-17T03:54:46.000Z
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
3
2020-09-08T07:21:59.000Z
2020-09-08T07:22:07.000Z
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-05-21T19:02:46.000Z
2020-03-24T14:27:45.000Z
import unittest import random from selfdrive.can.tests.packer_old import CANPacker as CANPackerOld from selfdrive.can.packer import CANPacker import selfdrive.car.chrysler.chryslercan as chryslercan class TestPackerMethods(unittest.TestCase): def setUp(self): self.chrysler_cp_old = CANPackerOld("chrysler_pacif...
40.083333
120
0.726265
1,193
0.82675
0
0
0
0
0
0
135
0.093555
da85c358f54be05780771410e2c91e3ce7581a8d
9,156
py
Python
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
2
2016-06-14T00:32:02.000Z
2020-05-04T03:29:46.000Z
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
#!/usr/bin/python2.4 # encoding: utf-8 """ api_layers.py The definition of the layers of the database API and the generic user interface class. Created by Shane O'Connor 2015. Copyright (c) 2015 __UCSF__. All rights reserved. """ import inspect import functools from klab import colortext from kddg.api import settin...
34.292135
257
0.662844
5,909
0.645369
0
0
686
0.074924
0
0
1,918
0.20948
da8712cd2ff361045352f744da703fa2ec6f82df
3,142
py
Python
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
1
2016-04-11T01:18:53.000Z
2016-04-11T01:18:53.000Z
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
null
null
null
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
null
null
null
import os import requests import time import ConfigParser import logging import logging.config from requests.exceptions import RequestException from helper import get_logger, base_path config = ConfigParser.ConfigParser() config.read(os.path.join(base_path, 'config.ini')) logger = get_logger('fb_api', __file__) __au...
34.152174
70
0.510185
2,725
0.867282
0
0
0
0
0
0
406
0.129217
da89128d24114037df1325dfa4587c3b0ac3e279
6,409
py
Python
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
5
2020-02-21T09:22:58.000Z
2021-09-07T16:39:47.000Z
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
null
null
null
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
1
2022-01-26T20:00:47.000Z
2022-01-26T20:00:47.000Z
""" This example shows how to statically define formulas, add them to a formula library, optimize them, and output the results. "Statically in this context means we are manually setting the attribures (min and max) for each ingredient and nutrient rather defining them dynamically (which is where plend really shines) ...
60.462264
157
0.568575
0
0
0
0
0
0
0
0
4,971
0.775628
da89cac67e3dd9455f993529126f6ea3e387def3
1,278
py
Python
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
23
2017-12-12T17:59:26.000Z
2022-02-01T20:19:56.000Z
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
45
2017-05-03T14:05:19.000Z
2022-03-02T07:28:39.000Z
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
24
2017-04-28T19:49:56.000Z
2021-11-05T17:57:02.000Z
from argparse import ArgumentParser import mdtraj as md def parse_args(): """Parse the command line arguments and perform some validation on the arguments Returns ------- args : argparse.Namespace The namespace containing the arguments """ parser = ArgumentParser( descripti...
29.045455
74
0.628326
0
0
0
0
0
0
0
0
524
0.410016
da8aea2d0e2cc438f1e2afe2e6c0015770e13ef8
6,106
py
Python
tpDcc/abstract/scene.py
tpDcc/tpDccLib
a4f77a3fdd981eac494331e429c92bd3e4a87d3b
[ "MIT" ]
6
2021-03-02T00:31:53.000Z
2021-03-30T09:02:54.000Z
tpDcc/abstract/scene.py
tpDcc/tpDccLib
a4f77a3fdd981eac494331e429c92bd3e4a87d3b
[ "MIT" ]
1
2021-03-02T08:43:34.000Z
2021-03-04T01:36:02.000Z
tpDcc/abstract/scene.py
tpDcc/tpDccLib
a4f77a3fdd981eac494331e429c92bd3e4a87d3b
[ "MIT" ]
1
2021-03-03T21:01:51.000Z
2021-03-03T21:01:51.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains DCC scene abstract class implementation """ from __future__ import print_function, division, absolute_import from tpDcc import dcc from tpDcc.dcc import sceneobject from tpDcc.libs.python import python, decorators class AbstractScene(object): ...
34.891429
109
0.589912
5,814
0.952178
0
0
1,070
0.175237
0
0
3,494
0.572224
da8e614ab7b081bdccebe5c0752328dc5769b689
11,303
py
Python
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
totuwei/corundum
e983ad519fb4523d0ffca32f5e436195bcfc945c
[ "BSD-2-Clause-FreeBSD" ]
544
2019-08-12T03:45:32.000Z
2022-03-19T14:17:20.000Z
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
akira2009999/corundum
cdc14769c33186c6d45fcd79b95c70889febff2b
[ "BSD-2-Clause-FreeBSD" ]
78
2020-08-20T20:06:33.000Z
2022-03-30T23:44:37.000Z
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
akira2009999/corundum
cdc14769c33186c6d45fcd79b95c70889febff2b
[ "BSD-2-Clause-FreeBSD" ]
142
2019-07-15T04:23:23.000Z
2022-03-29T01:25:33.000Z
#!/usr/bin/env python """ Copyright (c) 2019 Alex Forencich 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, merg...
35.211838
166
0.657348
0
0
9,784
0.865611
3,420
0.302575
0
0
1,611
0.142529
da8e6b5d27ab3ab699761ec5dcf3eadc2360c2c0
5,713
py
Python
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
1
2016-05-18T06:30:26.000Z
2016-05-18T06:30:26.000Z
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
null
null
null
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time import os import csv import praw import OAuth2Util from pprint import pprint class SubmissionCSV: def __init__(self, file_name='', csv_directory='data'): self.file_name = file_name + '.csv' self.file_path = os.path.join(os.getcwd(), csv_directory, self.file_name) ...
37.585526
114
0.593033
5,511
0.964642
0
0
0
0
0
0
1,006
0.17609
da8e99c09aabca3db1bc0e1af11da10e940286d6
2,549
py
Python
tests/fixtures/dict_list/docket_list_with_homicide.py
SimmonsRitchie/court_docket_scraper
f467d59c4ea8dbddb4fd7545dc36656a4b30e46d
[ "MIT" ]
1
2021-10-29T20:12:44.000Z
2021-10-29T20:12:44.000Z
tests/fixtures/dict_list/docket_list_with_homicide.py
SimmonsRitchie/court_docket_scraper
f467d59c4ea8dbddb4fd7545dc36656a4b30e46d
[ "MIT" ]
2
2019-07-19T20:13:16.000Z
2019-07-19T20:13:16.000Z
tests/fixtures/dict_list/docket_list_with_homicide.py
SimmonsRitchie/court_docket_scraper
f467d59c4ea8dbddb4fd7545dc36656a4b30e46d
[ "MIT" ]
null
null
null
docket_list = [ { "county": "Dauphin", "docketnum": 1, "case_caption": "Commonwealth V. Smith, John A.", "arresting_agency": "Harrisburg PD", "municipality": "Harrisburg", "defendant": "John A. Smith", "defendant_race": "white", "defendant_gender": "Ma...
39.828125
146
0.582581
0
0
0
0
0
0
0
0
1,812
0.710867
da9203437dccc2b66c4d623067b94d8a0a97c3de
3,488
py
Python
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
from tkinter import * import pymysql as ms from tkinter import messagebox # Add your own database name and password here to reflect in the code mypass = "saurabh" mydatabase = "library" con = ms.connect(host="localhost", user="root", password=mypass, database=mydatabase) cur = con.cursor() # Enter Table...
35.591837
119
0.556479
0
0
0
0
0
0
0
0
852
0.244266
da920dcd51ae362c5f26a3360b65c16937f31fe7
8,474
py
Python
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import os import abc import warnings from pkg_resources import iter_entry_points import six import importlib from . import types from . import resolver from .util import get_class_name from .type_index import AsdfTypeIndex from ....
33.362205
80
0.623554
7,887
0.930729
0
0
5,023
0.592754
0
0
3,798
0.448194
da923abab5b7e2cb6e8f37c23f2fa4cc9504aff5
2,153
py
Python
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
4
2019-06-28T20:36:33.000Z
2022-01-04T21:49:52.000Z
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
1
2019-06-27T14:52:52.000Z
2019-07-04T14:14:14.000Z
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
1
2019-06-27T13:33:42.000Z
2019-06-27T13:33:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Wed Sep 12 14:48:07 2018 @author: sb636 """ import os import sys from setuptools import setup, Extension, find_packages from distutils.errors import DistutilsModuleError # Check for cython installation try: from Cython.Distutils import b...
29.902778
85
0.625639
859
0.398978
0
0
0
0
0
0
518
0.240595
da92ca41103ff60b1a50e24d1900c7aae0620a32
4,049
py
Python
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
10
2019-09-24T13:36:15.000Z
2021-11-01T02:40:10.000Z
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
2
2020-10-19T11:51:08.000Z
2021-04-17T01:08:23.000Z
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
null
null
null
#!/usr/local/bin/ipython3 -i import sys from analysis import * import analysis.classes as classes import nwalign as nw kb = {} apis = {} syscalls = {} regexes = {} models = {} models2 = {} kb_file = 'kb_no_empties.pickle' regex_file = 'new_regex.pickle' models_file = 'models.pickle' models2_file = 'models2.pickle' ...
28.716312
79
0.678686
0
0
0
0
0
0
0
0
887
0.219066
da92e435dd529ef7c6adb64e5afe197974724936
660
py
Python
tests/client/test_spread_sheet.py
shin-hama/git-svn-monitor
acb793c2da63d6802efa8e0e6c99482f4fad0f80
[ "MIT" ]
null
null
null
tests/client/test_spread_sheet.py
shin-hama/git-svn-monitor
acb793c2da63d6802efa8e0e6c99482f4fad0f80
[ "MIT" ]
36
2021-07-12T00:08:03.000Z
2022-03-25T11:19:39.000Z
tests/client/test_spread_sheet.py
shin-hama/git-svn-monitor
acb793c2da63d6802efa8e0e6c99482f4fad0f80
[ "MIT" ]
null
null
null
from datetime import datetime from git_svn_monitor.client import spread_seat from git_svn_monitor.core.config import TIMESTAMP_FORMAT def test__convert_datetime_to_str() -> None: timestamp = "2021-01-01 12:34:56" _timestamp = datetime.strptime(timestamp, TIMESTAMP_FORMAT) converted = spread_seat._convert...
27.5
63
0.75
0
0
0
0
0
0
0
0
38
0.057576
16f0b6155221bd21f39e5a25133a8324a5286c72
3,785
py
Python
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
2
2021-12-10T10:20:08.000Z
2022-01-06T11:15:43.000Z
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
null
null
null
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
null
null
null
## /api/extensions.py """ Maintains the API endpoint URI extensions. """ ## Declaring __all__ __all__ = ( "status_check_ext", "site_server_status_check_ext", "case_create_ext", "case_list_ext", "case_create_portable_ext", "evidence_list_ext", "evidence_processed_list_ext", "evidence_process_ext", "object_pa...
33.495575
97
0.763804
0
0
0
0
0
0
0
0
2,191
0.578864
16f0f93ca79ae51931ef205e9c059a600e80445c
1,982
py
Python
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
3
2021-01-12T05:43:20.000Z
2021-03-05T17:03:06.000Z
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
__all__ = ["DistinctStateEvaluator"] from dataclasses import dataclass from typing import Sequence, Optional import torch import utils from utils import TensorMap from datasets import VocabSet from ...evaluator import DialogEvaluator @dataclass class DistinctStateEvaluator(DialogEvaluator): vocabs: VocabSet ...
33.59322
79
0.584258
1,731
0.87336
0
0
1,742
0.87891
0
0
69
0.034813
16f2f95568be402c343f83e95bd816466c4a6dd1
1,788
py
Python
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
null
null
null
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
1
2020-12-05T14:22:03.000Z
2020-12-05T14:22:03.000Z
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
null
null
null
import src.utils.constants as cns from src.utils.files import write_list import pandas as pd import glob import os def read_sheets(): manually_labeled_df = pd.DataFrame() for sheet in glob.glob(cns.PATH_LABELED + '*'): manually_labeled_df = manually_labeled_df.append( pd.read_excel(sh...
26.294118
77
0.644295
0
0
0
0
0
0
0
0
308
0.171971
16f3b2b6831a8b521ba1a14a11fa6b224ec5222f
1,785
py
Python
cryptotest.py
xebia/django-DefectDojo
7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa
[ "BSD-3-Clause" ]
null
null
null
cryptotest.py
xebia/django-DefectDojo
7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa
[ "BSD-3-Clause" ]
null
null
null
cryptotest.py
xebia/django-DefectDojo
7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa
[ "BSD-3-Clause" ]
1
2017-09-22T20:39:39.000Z
2017-09-22T20:39:39.000Z
import binascii, os from Crypto.Cipher import AES KEY = 'a0b8c7398c9363b3216ff1d001a1308e5f96a77dbf6bda2367f87519d80995fb' IV = os.urandom(16) def encrypt(key, iv, plaintext): aes = AES.new(key, AES.MODE_CBC, iv, segment_size=128) plaintext = _pad_string(plaintext) encrypted_text = aes.encrypt(plaintext)...
31.875
101
0.729412
0
0
0
0
0
0
0
0
200
0.112045
16f4d90e8a8de6335b4d40090aa8cb9b83b7e850
871
py
Python
Larry/preprocess.py
NCBI-Hackathons/ClusterDuck
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
7
2019-02-19T15:10:24.000Z
2020-05-31T00:41:13.000Z
Larry/preprocess.py
NCBI-Hackathons/ClusterDuck
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
11
2018-03-21T20:01:32.000Z
2022-03-11T23:19:40.000Z
Larry/preprocess.py
NCBI-Hackathons/DiseaseClusters
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
3
2018-03-19T13:14:23.000Z
2018-03-20T14:13:38.000Z
from nltk.corpus import stopwords from nltk.tokenize import RegexpTokenizer from nltk.stem import WordNetLemmatizer STOPWORDS = set(stopwords.words('english')) # Instantiate Lemmanizer WNL = WordNetLemmatizer() def preprocess(abstract, keywords=None): """ Convert an abstract to word tokens. This is done by...
26.393939
77
0.6969
0
0
0
0
0
0
0
0
415
0.476464
16f520db46f1b8b8a53e17ff7a93ac14fed25f00
16,848
py
Python
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
1
2021-04-20T13:49:55.000Z
2021-04-20T13:49:55.000Z
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
1
2021-04-18T18:27:49.000Z
2021-04-18T18:27:49.000Z
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author : naive dormin # @time : 2021/04/19 02:17:43 # @version : 1.0.0 import os import time import numpy as np import random from utils import * import pickle from ConvE import ConvE_double import torch import torch.autograd as autograd import torch.nn as ...
42.014963
107
0.553063
16,187
0.960425
0
0
0
0
0
0
3,375
0.200249
16f718d511a624ff6bafcf060c184c7b35cb49f0
2,608
py
Python
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
import json from twisted.internet import reactor from twisted.python import log from twisted.web.resource import Resource from twisted.web.server import NOT_DONE_YET from twisted.web.server import Site from txrtpengine.NGCP import NGCPClient class NGCPProxy(Resource): def __init__(self, addr): self.c =...
33.435897
107
0.625383
1,914
0.733896
0
0
0
0
0
0
533
0.204371
16f73a2d16ee1a1b4874c0d6207d250cd9f1609d
6,980
py
Python
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
import sys import requests import xmltodict from functools import partial from PyQt5.QtWidgets import * from PyQt5.QtCore import Qt from PyQt5 import uic #Link : Qt5 UI File # - condition : The UI file should be located in the sam directory as the this file form_class = uic.loadUiType("./ise_session.ui")...
41.058824
109
0.570487
6,365
0.911369
0
0
0
0
0
0
1,313
0.188001
16fa4d94e2d23cb6b84df2ab54d37fba71a56141
1,597
py
Python
examples/zegar.py
BrownEmmett/8digit
aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e
[ "MIT" ]
null
null
null
examples/zegar.py
BrownEmmett/8digit
aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e
[ "MIT" ]
null
null
null
examples/zegar.py
BrownEmmett/8digit
aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. """ Example for seven segment displays. """ import time from datetime import datetime from luma.led_matrix.device import max7219 from luma.core.interface.serial import spi, noop from lum...
22.492958
55
0.612398
0
0
0
0
0
0
0
0
420
0.262993
16fa7014b2509e362e1a19500f13adaa6c41db09
1,109
py
Python
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
1
2021-05-23T13:48:59.000Z
2021-05-23T13:48:59.000Z
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
null
null
null
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
null
null
null
import argparse import json import os import ijson parser = argparse.ArgumentParser() # /questions/CLEVR_test_questions.json # Inputs parser.add_argument('--all_scene_paths', default='../data/CLEVR_v1.0/scenes', help="JSON file containing questions information for all images " + ...
34.65625
103
0.627592
0
0
0
0
0
0
0
0
443
0.399459
16fd36971459752eacaa3008f88c6855b286e881
1,439
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Factories for generating fake commerce-related data. """ import factory from factory.fuzzy import FuzzyText class OrderFactory(factory.Factory): """ Factory for stubbing orders resources from Ecommerce (v2). """ class Meta: model = dict number = factory.Sequence(lambda n: 'edx-%d' % n) ...
24.810345
75
0.645587
1,313
0.912439
0
0
0
0
0
0
522
0.362752
16fee0714125b907c565a7460bda1a63c75c9808
3,682
py
Python
boundlexx/boundless/migrations/0002_create_item_timeseries.py
AngellusMortis/boundlexx
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
[ "MIT" ]
1
2021-04-23T11:49:50.000Z
2021-04-23T11:49:50.000Z
boundlexx/boundless/migrations/0002_create_item_timeseries.py
AngellusMortis/boundlexx
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
[ "MIT" ]
1
2021-04-17T18:17:12.000Z
2021-04-17T18:17:12.000Z
boundlexx/boundless/migrations/0002_create_item_timeseries.py
AngellusMortis/boundlexx
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-21 17:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('boundless', '0001_initial'), ] operations = [ migrations.CreateModel( name='ItemShopStandPrice'...
51.138889
209
0.605921
3,556
0.965779
0
0
0
0
0
0
1,172
0.318305
e50054bcfcc58e68ad2fe236a5c12539ae5190f0
39,700
py
Python
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
47
2022-03-21T02:41:39.000Z
2022-03-30T17:25:29.000Z
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
1
2022-03-28T15:11:26.000Z
2022-03-28T16:27:40.000Z
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
2
2022-03-23T12:56:14.000Z
2022-03-27T14:25:50.000Z
# Copyright (c) Gorilla-Lab. All rights reserved. import logging from functools import partial from collections import defaultdict from typing import Dict, List, Optional, Sequence import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from ..losses.ohs_loss_clear import OHSLossClear fr...
46.541618
133
0.540227
38,106
0.959849
0
0
38,152
0.961008
0
0
5,447
0.137204
e501d8d323b13656dcc8aa99310855c82f2554fb
4,267
py
Python
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
4
2021-09-23T17:44:01.000Z
2022-01-10T07:14:25.000Z
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
1
2021-10-18T07:41:31.000Z
2021-10-18T07:41:31.000Z
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
null
null
null
""" A script to run the main script with all sequences of a dataset. To use the script a config.yaml needs to be specified. Example usage: python3 main.py config/example_config.yaml if "pretrained_model_path" is passed as an argument in the config, training is skipped and pretrained models are used for the infer...
40.638095
117
0.588704
0
0
0
0
3,280
0.76869
0
0
1,328
0.311226
e5033a61e857baa0aed9b97b41edbcf668557962
298
py
Python
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/excluding-specific-characters/problem import re # Inputs standard_input = """think?""" Regex_Pattern = ( r"^[^\d][^aeiou][^bcDF][^\r\n\t\f\s][^AEIOU][^.,]$" ) # Do not delete 'r'. print(str(bool(re.search(Regex_Pattern, input()))).lower()) # true
18.625
77
0.64094
0
0
0
0
0
0
0
0
174
0.583893
e503d96de70079ddac429727f7983b8a0fcdef59
354
py
Python
toroid/toroid/pairs.py
LeoTindall/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
null
null
null
toroid/toroid/pairs.py
LeoTindall/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
1
2016-08-06T23:20:56.000Z
2016-08-06T23:20:56.000Z
toroid/toroid/pairs.py
SilverWingedSeraph/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
null
null
null
def make_pairings(warriors): if len(warriors) == 0: return False, False pairings = [] for (warrior1, warrior2) in zip(warriors[0::2], warriors[1::2]): pairings.append((warrior1, warrior2)) if len(warriors) % 2 == 0: odd_one_out = False else: odd_one_out = warriors[-1]...
29.5
68
0.610169
0
0
0
0
0
0
0
0
0
0
e503f5404abfe29fbefb2c59950b6c8386b55b14
5,814
py
Python
Nets/TRNetShared.py
AndresOtero/TensorDecompositionMachineLearning
455f16b405ec9d031999b0ebf9c5a68d3c20b233
[ "MIT" ]
3
2021-06-11T02:46:06.000Z
2021-08-17T02:59:30.000Z
Nets/TRNetShared.py
AndresOtero/TensorDecompositionMachineLearning
455f16b405ec9d031999b0ebf9c5a68d3c20b233
[ "MIT" ]
null
null
null
Nets/TRNetShared.py
AndresOtero/TensorDecompositionMachineLearning
455f16b405ec9d031999b0ebf9c5a68d3c20b233
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from Nets.TRNetSerialized import TRNetSerialized from Nets.TTNetParallel import FirstKernelTensorTrain, FeatureMap, TTKernel from Nets.TTNetShared import KernelSharedTensorTrain from Utils import Constant from Utils.RanksFactory import RanksFactory fr...
43.066667
116
0.673891
5,408
0.930169
0
0
0
0
0
0
142
0.024424
e504a4528ab13dc7037b0bc87eb63a2bf6c3d4cb
2,550
py
Python
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
4
2017-04-24T10:17:28.000Z
2020-05-28T06:25:03.000Z
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
9
2015-02-23T14:27:37.000Z
2021-02-24T13:23:41.000Z
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
1
2017-08-14T16:40:44.000Z
2017-08-14T16:40:44.000Z
# -*- coding: utf-8 -*- import os import pytest import boto3 from pontus.exceptions import ValidationError from pontus.validators import DenyMimeType class TestDenyMimeTypeValidator(object): @pytest.fixture def jpeg_key(self, bucket): with open(os.path.join( os.path.dirname(__file__), ...
29.310345
78
0.608627
2,395
0.939216
0
0
382
0.149804
0
0
471
0.184706
e5052a97fcc4c82072c34cd78471734f05a4fd9c
1,339
py
Python
proyecto utilizando pewee migrations/models.py
Raul-Flores/ORM-example
ff289f74f858514cebefe7070c3688ad773a0e2a
[ "MIT" ]
null
null
null
proyecto utilizando pewee migrations/models.py
Raul-Flores/ORM-example
ff289f74f858514cebefe7070c3688ad773a0e2a
[ "MIT" ]
null
null
null
proyecto utilizando pewee migrations/models.py
Raul-Flores/ORM-example
ff289f74f858514cebefe7070c3688ad773a0e2a
[ "MIT" ]
null
null
null
import pymysql import sqlite3 import psycopg2 from peewee import * db = "postgres" class BaseModel(Model): class Meta: global db secretvar= "Secret" while True: try: #db = input("BD Options: [mariadb|postgres|sqlite] :") db_migration = db ...
33.475
117
0.570575
1,253
0.935773
0
0
0
0
0
0
240
0.179238
e50744ae0a91afd75f5121562b3f88c9fadcfea8
1,966
py
Python
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import pandas as pd import numpy as np import tensorflow.keras as keras train = pd.read_csv("./sign_mnist_train/sign_mnist_train.csv") test = pd.read_csv("./sign_mnist_test/sign_mnist_test.csv") # put labels into y_train variable Y_train = train["label"] # Drop 'label' column X_train = train....
29.787879
87
0.715158
0
0
0
0
0
0
0
0
450
0.228891
e507533d51e8ae8cde7f283f5c299ebd345bec98
5,817
py
Python
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.io import fits from astropy.units import Quantity from astropy.coordinates.angles import Angle from...
36.130435
97
0.677153
4,269
0.733883
0
0
5,245
0.901668
0
0
1,468
0.252364
e508b0cb043508fe01e3e1d06e6baa67a2130ba3
4,772
py
Python
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np import scipy import graph import itertools from collections import defaultdict def calculate_persistence(crystal, other, minimum_value, G, function_vals): minimums = [] min_vertices = [] other = set(other) for vertex in crystal: neighbors = set(G.neighbo...
34.832117
91
0.615884
0
0
0
0
0
0
0
0
160
0.033515
e508ffc9689183a1879c3556805bdcd71560a700
4,390
py
Python
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
def event_response(): return [ { "ata_event_count": 1, "datetime_created": "2021-05-11T20:11:30Z", "fields": [ { "key": "auto_run", "label": "Auto Run", "value": "False", "orde...
32.043796
107
0.479499
0
0
0
0
0
0
0
0
2,194
0.499772
e5090e4da04384e2fbcd5b4f114deb2087c6f5f4
288
py
Python
postgres/scripts/test-db-connection.py
tcalmant/ldbc_snb_interactive
baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf
[ "Apache-2.0" ]
null
null
null
postgres/scripts/test-db-connection.py
tcalmant/ldbc_snb_interactive
baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf
[ "Apache-2.0" ]
null
null
null
postgres/scripts/test-db-connection.py
tcalmant/ldbc_snb_interactive
baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import psycopg2 con = psycopg2.connect( host="localhost", user=os.environ.get("POSTGRES_USER", "postgres"), password=os.environ.get("POSTGRES_PASSWORD", "mysecretpassword"), port=int(os.environ.get("POSTGRES_PORT", 5432)), ) con.close()
22.153846
69
0.704861
0
0
0
0
0
0
0
0
110
0.381944
e50969a938fad964949586d116b12c2990a0ae87
2,054
py
Python
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
1
2020-12-28T10:40:38.000Z
2020-12-28T10:40:38.000Z
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
""" JupyterQtWidget is the widget that gets embedded in Excel and hosts a tabbed browser widget containing the Jupyter notebook. """ from .kernel import start_kernel, launch_jupyter from .browser import Browser from .qtimports import QWidget, QVBoxLayout import subprocess import ctypes class JupyterQtWidget(QWidget):...
36.678571
95
0.619279
1,764
0.858812
0
0
0
0
0
0
497
0.241967
e50c65e44676b2b7cbe06fd4c5deb5f102a8415d
621
py
Python
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
3
2018-03-16T14:52:40.000Z
2020-12-04T10:12:07.000Z
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
null
null
null
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
5
2017-06-30T05:35:00.000Z
2019-07-13T08:05:30.000Z
""" https://www.codewars.com/kata/564057bc348c7200bd0000ff/train/python """ def thirt(n): seq = [1,10,9,12,3,4] n = list(int(i) for i in reversed(str(n))) if len(seq) < len(n): compute1 = [i for i in seq[0:len(n)-len(seq)]] seq.extend(compute1) compute1 = sum(i * j for i,j in zip(n,seq))...
34.5
67
0.602254
0
0
0
0
0
0
0
0
75
0.120773
e50ca21b180f2193d02c55bbba259bcd1c32234b
5,292
py
Python
lonely/system.py
LonelyPale/lonely
328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b
[ "Apache-2.0" ]
null
null
null
lonely/system.py
LonelyPale/lonely
328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b
[ "Apache-2.0" ]
null
null
null
lonely/system.py
LonelyPale/lonely
328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b
[ "Apache-2.0" ]
null
null
null
import os as _os import platform from lonely.cmd import command def lsb_release(): ret = command("cat /etc/openEuler-release", capture_output=True, print_out=False, print_err=False) if ret.returncode == 0: #print("success:", ret) if ret.stdout.lower().find("openeuler") > -1: return...
28.76087
104
0.493386
0
0
0
0
0
0
0
0
617
0.114769
e50e8e3032d7d7837365ea7b6780cf4d9b0c82b7
5,722
py
Python
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
1
2019-08-13T07:44:32.000Z
2019-08-13T07:44:32.000Z
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
null
null
null
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
1
2019-08-13T07:44:32.000Z
2019-08-13T07:44:32.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import json import os import socket import sys import requests from threading import current_thread from rx import create, of from rx import operators as op from rx.scheduler import ThreadPoolScheduler USER_AGENT_HTTP_HEADER_KEY = 'user-agent' USER_AGENT_PAT...
41.463768
178
0.67791
0
0
0
0
0
0
0
0
1,030
0.180007
e50f03b5ad643f99fc6faba88c3fc2cee5a3768e
473
py
Python
mayan/apps/quotas/icons.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/quotas/icons.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/quotas/icons.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from mayan.apps.appearance.classes import Icon icon_quota_create = Icon( driver_name='fontawesome-dual', primary_symbol='tachometer-alt', secondary_symbol='plus' ) icon_quota_delete = Icon(driver_name='fontawesome', symbol='times') icon_quota_edit = Icon(driver_name='fontawesome', symbol='pencil-alt') ...
43
76
0.77167
0
0
0
0
0
0
0
0
143
0.302326
e51032e8f05343cce31308455d21b22aca3ea53e
5,086
py
Python
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
1
2019-06-16T00:52:26.000Z
2019-06-16T00:52:26.000Z
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
null
null
null
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
null
null
null
from chainer import optimizer_hooks from chainer import optimizers from chainer import training import numpy import logging logger = logging.getLogger(__name__) def create_optimizer(configs): """ :param optimizer_config: dict, 学習のパラメータを含む辞書 """ if 'optimizer' not in configs: raise Exception...
33.682119
83
0.621707
2,709
0.528276
0
0
0
0
0
0
1,728
0.336973
e510c7426f5e3c38449cb80f147daf9524ba1a19
4,553
py
Python
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
1
2021-07-08T12:29:34.000Z
2021-07-08T12:29:34.000Z
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
null
null
null
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
null
null
null
#1. Documentación de un DAG """ ## PYSPARK DAG Este pipeline toma data de Covid compartida de forma pública por Google y calcula unos KPIs. """ from airflow import DAG from datetime import timedelta, datetime from airflow.utils.dates import days_ago from airflow.models import Variable from airflow.operat...
34.755725
123
0.656929
0
0
0
0
0
0
0
0
2,137
0.468743
e510db97dd6ed101594891f1033e5947097f3261
127
py
Python
muve/sumo_server/__init__.py
muve-traffic/sumo-server
0a857ba9555569db1c118367668a507600c12cdf
[ "MIT" ]
null
null
null
muve/sumo_server/__init__.py
muve-traffic/sumo-server
0a857ba9555569db1c118367668a507600c12cdf
[ "MIT" ]
null
null
null
muve/sumo_server/__init__.py
muve-traffic/sumo-server
0a857ba9555569db1c118367668a507600c12cdf
[ "MIT" ]
null
null
null
"""Muve Traffic SUMO server. Server for simulating traffic and relaying traffic information programatically through SUMO. """
25.4
92
0.80315
0
0
0
0
0
0
0
0
126
0.992126
e5115a401bd8efaf8cc688760dfac54cb7c36ec4
2,613
py
Python
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
34.84
98
0.778416
0
0
0
0
264
0.101033
0
0
825
0.315729