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
2af0d2b145267e888538a0d91226a3622e846c24
3,591
py
Python
src/oci/autoscaling/models/cron_execution_schedule.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/autoscaling/models/cron_execution_schedule.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/autoscaling/models/cron_execution_schedule.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.528846
245
0.654971
3,002
0.835979
0
0
3,032
0.844333
0
0
2,520
0.701754
2af11eb0b42cbfb5a1efbef4325e698fa799a2e8
5,631
py
Python
roadmap_planner_tools/scripts/pi_manager_example.py
JKBehrens/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
16
2018-12-11T13:02:58.000Z
2022-02-28T09:05:20.000Z
roadmap_planner_tools/scripts/pi_manager_example.py
stepakar/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-11-04T13:16:49.000Z
2022-02-28T09:17:30.000Z
roadmap_planner_tools/scripts/pi_manager_example.py
stepakar/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2019-02-12T12:41:25.000Z
2022-02-09T12:55:56.000Z
#!/usr/bin/env python """ Copyright (c) 2018 Robert Bosch GmbH All rights reserved. This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree. @author: Jan Behrens """ from geometry_msgs.msg import TransformStamped from roadmap_planner_tools.plann...
69.518519
402
0.679098
0
0
0
0
0
0
0
0
3,549
0.630261
2af153b0166a388f1cbc766d5de69bb0d457571e
415
py
Python
Trie/PrintUniqueRows.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
Trie/PrintUniqueRows.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
Trie/PrintUniqueRows.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
# coding=utf-8 """Print unique rows in table. Trie data structure Python solution. """ from Trie import Trie def print_unique(table): t = Trie() for row in table: if not t.in_tree(row): print(row) t.add_key(row) if __name__ == "__main__": table = [ "semir", ...
15.37037
36
0.53253
0
0
0
0
0
0
0
0
132
0.318072
2af450314f09ee3a74127b6e73b3040d23c048eb
2,179
py
Python
telemetry_client_bgp_sessions.py
akshshar/bigmuddy-network-telemetry-proto
26ea64cf9910e41c62270fea3b0aa318dd1a51db
[ "Apache-2.0" ]
null
null
null
telemetry_client_bgp_sessions.py
akshshar/bigmuddy-network-telemetry-proto
26ea64cf9910e41c62270fea3b0aa318dd1a51db
[ "Apache-2.0" ]
null
null
null
telemetry_client_bgp_sessions.py
akshshar/bigmuddy-network-telemetry-proto
26ea64cf9910e41c62270fea3b0aa318dd1a51db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Standard python libs import os,sys sys.path.append("./src/genpy") import ast, pprint import pdb import yaml, json import telemetry_pb2 from mdt_grpc_dialin import mdt_grpc_dialin_pb2 from mdt_grpc_dialin import mdt_grpc_dialin_pb2_grpc import json_format import grpc # # Get the GRPC Server ...
30.263889
93
0.671409
0
0
0
0
0
0
0
0
804
0.368977
2af5ae6a3bb26a288651a381ee3ed2c4e61944eb
436
py
Python
Python3-functions/define_custom_exception_class.py
ipetel/code-snippets
e05bb8ef1f5d213aadba501d80b310507a1af117
[ "MIT" ]
1
2020-08-07T14:57:28.000Z
2020-08-07T14:57:28.000Z
Python3-functions/define_custom_exception_class.py
ipetel/code-snippets
e05bb8ef1f5d213aadba501d80b310507a1af117
[ "MIT" ]
null
null
null
Python3-functions/define_custom_exception_class.py
ipetel/code-snippets
e05bb8ef1f5d213aadba501d80b310507a1af117
[ "MIT" ]
1
2020-12-12T08:29:56.000Z
2020-12-12T08:29:56.000Z
''' This code is a simple example how to define custom exception class in Python ''' # custom exception class class CustomError(Exception): def __init__(self,message): self.message = message super().__init__(self.message) # use it whenever you need in your code as follows: try: ... ...
21.8
76
0.651376
131
0.300459
0
0
0
0
0
0
199
0.456422
2af5cd50987e2a9a3ac9fee4d70fb52d6229fe2e
545
py
Python
2020/3a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
2
2021-12-04T00:02:12.000Z
2021-12-11T05:38:45.000Z
2020/3a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
null
null
null
2020/3a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
1
2020-12-20T18:50:54.000Z
2020-12-20T18:50:54.000Z
#!/usr/bin/env python3 from pathlib import Path slope = 3, 1 class Map: def __init__(self, rows): self.w = len(rows[0]) self.rows = rows def tree(self, x, y): return '#' == self.rows[y][x % self.w] def main(): m = Map(Path('input', '3').read_text().splitlines()) xy = [0, 0]...
18.166667
56
0.500917
170
0.311927
0
0
0
0
0
0
45
0.082569
2af5d8780b22b10bebb1c9796affe8bcbb118caa
2,092
py
Python
src/dataProcessing.py
KJithendra/SCALE-Sim
5df467916306d536bb4f244cf5d4b4f1aaeb89da
[ "MIT" ]
null
null
null
src/dataProcessing.py
KJithendra/SCALE-Sim
5df467916306d536bb4f244cf5d4b4f1aaeb89da
[ "MIT" ]
null
null
null
src/dataProcessing.py
KJithendra/SCALE-Sim
5df467916306d536bb4f244cf5d4b4f1aaeb89da
[ "MIT" ]
null
null
null
import numpy as np import csv import matplotlib.pyplot as pyplot from gBarGraph import * # Conditional Debugging debug = False # Inputs scaleFac = 10**6 # scaling factor adList = [[128,128], [64,64], [32,32], [16,16], [8,8]] #list of systolic array dimensions dfList = ["os", "ws", "is"] nnList = ["AlphaGoZero", "De...
36.068966
137
0.714149
0
0
0
0
0
0
0
0
750
0.358509
2af67edc0d8f4da4a1404fc6cd17e17df40ffa60
374
py
Python
src/cn_query/juhe/exceptions.py
winkidney/juhe-sdk
dc92d7421f54b5858c90b32f75297a76e3ecbac5
[ "MIT" ]
null
null
null
src/cn_query/juhe/exceptions.py
winkidney/juhe-sdk
dc92d7421f54b5858c90b32f75297a76e3ecbac5
[ "MIT" ]
null
null
null
src/cn_query/juhe/exceptions.py
winkidney/juhe-sdk
dc92d7421f54b5858c90b32f75297a76e3ecbac5
[ "MIT" ]
null
null
null
from functools import wraps DEFAULT_CODE = -1 class APIError(ValueError): pass def normalize_network_error(func): from requests import exceptions as exc @wraps(func) def decorated(*args, **kwargs): try: return func(*args, **kwargs) except exc.RequestException as e: ...
17
42
0.644385
36
0.096257
0
0
179
0.47861
0
0
0
0
2af84b6eb941a6c622177f8b9fa1555a747d75f3
2,446
py
Python
keyboard.py
misterpah/ldtp_adapter
df9cd0186cf51174ea131943f8547a9df079035b
[ "MIT" ]
null
null
null
keyboard.py
misterpah/ldtp_adapter
df9cd0186cf51174ea131943f8547a9df079035b
[ "MIT" ]
null
null
null
keyboard.py
misterpah/ldtp_adapter
df9cd0186cf51174ea131943f8547a9df079035b
[ "MIT" ]
null
null
null
import re def find_key(keyString): k = PyKeyboard() key_to_press = None highest = 0 for each in dir(k): if each.endswith("_key"): if similar(keyString + "_key" ,each) > highest: highest = similar(keyString + "_key" ,each) key_to_press = getattr(k,each)...
27.177778
68
0.539248
0
0
0
0
0
0
0
0
98
0.040065
2af8911dc224e8f8cbf833e0f7f9e9880ddb3eab
3,095
py
Python
dags/crawl.py
a07458666/StockCrawlerSendSlack
97c4ea3817b81d9acb9216d4a0745fe914f7c8f8
[ "MIT" ]
null
null
null
dags/crawl.py
a07458666/StockCrawlerSendSlack
97c4ea3817b81d9acb9216d4a0745fe914f7c8f8
[ "MIT" ]
null
null
null
dags/crawl.py
a07458666/StockCrawlerSendSlack
97c4ea3817b81d9acb9216d4a0745fe914f7c8f8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import json import csv import time from datetime import date import requests class CrawlerController(object): '''Split targets into several Crawler, avoid request url too long''' def __init__(self, targets, max_stock_per_crawler=50): ...
32.578947
82
0.515347
2,755
0.857988
0
0
0
0
0
0
800
0.249144
2afc65a9a228fad0a34b4258aaae1e52ee00b1c9
694
py
Python
supplier_testing/case_05.py
openhealthcare/python-fp17
61a665d90b04dc5e94d433dc7fbb16b901c70e7b
[ "BSD-3-Clause" ]
1
2021-02-23T05:48:01.000Z
2021-02-23T05:48:01.000Z
supplier_testing/case_05.py
openhealthcare/python-fp17
61a665d90b04dc5e94d433dc7fbb16b901c70e7b
[ "BSD-3-Clause" ]
9
2018-03-20T15:53:44.000Z
2018-07-09T10:56:18.000Z
supplier_testing/case_05.py
openhealthcare/python-fp17
61a665d90b04dc5e94d433dc7fbb16b901c70e7b
[ "BSD-3-Clause" ]
2
2018-03-22T14:24:41.000Z
2021-02-23T05:48:02.000Z
import datetime from fp17 import treatments def annotate(bcds1): bcds1.patient.surname = "BEDWORTH" bcds1.patient.forename = "TOBY" bcds1.patient.address = ["5 HIGH STREET"] bcds1.patient.sex = 'M' bcds1.patient.date_of_birth = datetime.date(1938, 4, 11) bcds1.date_of_acceptance = datetime.d...
26.692308
61
0.707493
0
0
0
0
0
0
0
0
91
0.131124
2aff67cda8054946e671fab749f72b00c6c27c7f
1,643
py
Python
mipkit/faces/helpers.py
congvmit/mipkit
d65a5083852dcfc5db766175aa402a5e3a506f21
[ "MIT" ]
8
2021-06-17T08:13:51.000Z
2022-02-21T13:31:18.000Z
mipkit/faces/helpers.py
congvmit/mipkit
d65a5083852dcfc5db766175aa402a5e3a506f21
[ "MIT" ]
null
null
null
mipkit/faces/helpers.py
congvmit/mipkit
d65a5083852dcfc5db766175aa402a5e3a506f21
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2021 Cong Vo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
36.511111
78
0.720024
0
0
0
0
0
0
0
0
1,331
0.809119
63015142c904ffc67f23900b60665809596a39ad
465
py
Python
src/fizz_buzz.py
rckt-cmdr/fizz-buzz
e1ecc9be7a9f1c3067622eba5cc7e35340bef983
[ "MIT" ]
null
null
null
src/fizz_buzz.py
rckt-cmdr/fizz-buzz
e1ecc9be7a9f1c3067622eba5cc7e35340bef983
[ "MIT" ]
null
null
null
src/fizz_buzz.py
rckt-cmdr/fizz-buzz
e1ecc9be7a9f1c3067622eba5cc7e35340bef983
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # File: fizz_buzz.py # Author: Jonathan Belden # Description: Fizz-Buzz Coding Challenge # Reference: https://edabit.com/challenge/WXqH9qvvGkmx4dMvp def evaluate(inputValue): result = None if inputValue % 3 == 0 and inputValue % 5 == 0: result = "FizzBuzz" elif inputValue % 3 ...
22.142857
59
0.627957
0
0
0
0
0
0
0
0
185
0.397849
6301f8566c81a5574264ed3398aba56307ac1ece
213
py
Python
Ex.27-Numpy.py
aguinaldolorandi/100-exercicios-Numpy
276c721bd8b161153223b353168a1c15936edbd1
[ "MIT" ]
null
null
null
Ex.27-Numpy.py
aguinaldolorandi/100-exercicios-Numpy
276c721bd8b161153223b353168a1c15936edbd1
[ "MIT" ]
null
null
null
Ex.27-Numpy.py
aguinaldolorandi/100-exercicios-Numpy
276c721bd8b161153223b353168a1c15936edbd1
[ "MIT" ]
null
null
null
# Exercícios Numpy-27 # ******************* import numpy as np Z=np.arange((10),dtype=int) print(Z**Z) print(Z) print(2<<Z>>2) print() print(Z <- Z) print() print(1j*Z) print() print(Z/1/1) print() #print(Z<Z>Z)
12.529412
27
0.577465
0
0
0
0
0
0
0
0
56
0.261682
630383ff02afa466d04f39beea1550433314bef9
234
py
Python
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
import copy from .coco import CocoDataset def build_dataset(cfg, mode): dataset_cfg = copy.deepcopy(cfg) if dataset_cfg['name'] == 'coco': dataset_cfg.pop('name') return CocoDataset(mode=mode, **dataset_cfg)
23.4
52
0.679487
0
0
0
0
0
0
0
0
18
0.076923
6304f6f1ec92ec4d1702c41e4ebb9a78aa978644
5,387
py
Python
straintables/Executable/GenomePipeline.py
Gab0/linkageMapper
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
null
null
null
straintables/Executable/GenomePipeline.py
Gab0/linkageMapper
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
1
2020-05-03T15:13:07.000Z
2020-05-04T03:01:59.000Z
straintables/Executable/GenomePipeline.py
Gab0/straintables
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
null
null
null
#!/bin/python """ straintables' main pipeline script; """ import os import argparse import shutil import straintables import subprocess from Bio.Align.Applications import ClustalOmegaCommandline from straintables.logo import logo from straintables.Executable import primerFinder, detectMutations,\ compareHea...
25.29108
75
0.656952
87
0.01615
0
0
0
0
0
0
1,240
0.230184
6306e2b42d2b769e50bc98e817a532f98f68ffd4
1,881
py
Python
venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
49.5
108
0.604997
1,272
0.676236
0
0
0
0
0
0
1,321
0.702286
6308a827909b901b26c90ab14b8e55036177fe0f
1,634
py
Python
health.py
adil-zhang/healthy_auto
ca42cafacd1d5120274048f42dc99b83b8c08970
[ "Apache-2.0" ]
4
2021-02-24T06:48:18.000Z
2021-03-22T09:46:28.000Z
health.py
adil-zhang/healthy_auto
ca42cafacd1d5120274048f42dc99b83b8c08970
[ "Apache-2.0" ]
null
null
null
health.py
adil-zhang/healthy_auto
ca42cafacd1d5120274048f42dc99b83b8c08970
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # coding=utf-8 import json import random import requests import argparse import time # 请求内容转json def getval(): values = {"province": "北京", "city": "北京市", "addressType": "整租房", "temperature": "36.7", "dayNum": "", "contactHbPerplr": "无接触", "toWh": "未去过/路过武汉", "familySymptom": "无症状", "rem...
28.666667
255
0.573439
0
0
0
0
0
0
0
0
890
0.484749
63092478a708b5cc4e0a97fbe0778f3cdbd516d2
7,848
py
Python
thirdparty/his_evaluators/his_evaluators/utils/video.py
tj-eey/impersonator
3ed69b3db7e5369a39a9de5d97e965ed9172eff6
[ "MIT" ]
1,717
2019-09-27T00:44:11.000Z
2022-03-29T11:38:21.000Z
thirdparty/his_evaluators/his_evaluators/utils/video.py
tj-eey/impersonator
3ed69b3db7e5369a39a9de5d97e965ed9172eff6
[ "MIT" ]
81
2019-09-27T11:52:05.000Z
2022-03-12T00:00:31.000Z
thirdparty/his_evaluators/his_evaluators/utils/video.py
tj-eey/impersonator
3ed69b3db7e5369a39a9de5d97e965ed9172eff6
[ "MIT" ]
337
2019-09-27T02:46:06.000Z
2022-03-14T22:00:02.000Z
# -*- coding: utf-8 -*- # @Time : 2019-08-02 18:31 # @Author : Wen Liu # @Email : liuwen@shanghaitech.edu.cn import os import cv2 import glob import shutil from multiprocessing import Pool from concurrent.futures import ProcessPoolExecutor from functools import partial from tqdm import tqdm import numpy as np im...
30.776471
119
0.658894
0
0
0
0
0
0
0
0
2,049
0.261086
630b1968948a312327fd4f74f6cc73dcebabe1eb
10,346
py
Python
podcats/__init__.py
moritzj29/podcats
fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b
[ "BSD-3-Clause" ]
null
null
null
podcats/__init__.py
moritzj29/podcats
fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b
[ "BSD-3-Clause" ]
null
null
null
podcats/__init__.py
moritzj29/podcats
fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b
[ "BSD-3-Clause" ]
null
null
null
""" Podcats is a podcast feed generator and a server. It generates RSS feeds for podcast episodes from local audio files and, optionally, exposes the feed and as well as the episode file via a built-in web server so that they can be imported into iTunes or another podcast client. """ import os import re import time i...
29.988406
128
0.593853
6,546
0.632708
573
0.055384
2,237
0.216219
0
0
2,227
0.215252
630b33dd7a6cf0ba0ee698de8f04e2a629b7f3ca
477
py
Python
1301-1400/1387-Binary Trees With Factors/1387-Binary Trees With Factors.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1301-1400/1387-Binary Trees With Factors/1387-Binary Trees With Factors.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1301-1400/1387-Binary Trees With Factors/1387-Binary Trees With Factors.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
class Solution: """ @param A: @return: nothing """ def numFactoredBinaryTrees(self, A): A.sort() MOD = 10 ** 9 + 7 dp = {} for j in range(len(A)): dp[A[j]] = 1 for i in range(j): if A[j] % A[i] == 0: num = A...
26.5
72
0.358491
476
0.997904
0
0
0
0
0
0
47
0.098532
630b761bbb89cc51497f1ffa2e537867746f74b6
3,254
py
Python
Machine learning/ML/ARIMA/DS1_ar_model_2.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
1
2021-01-04T10:37:16.000Z
2021-01-04T10:37:16.000Z
Machine learning/ML/ARIMA/DS1_ar_model_2.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
null
null
null
Machine learning/ML/ARIMA/DS1_ar_model_2.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import statsmodels.graphics.tsaplots as sgt from statsmodels.tsa.arima_model import ARMA from scipy.stats.distributions import chi2 import statsmodels.tsa.stattools as sts # ------------------------ # load data # ---------- raw_csv_data = pd.rea...
29.853211
134
0.690227
0
0
0
0
0
0
0
0
1,413
0.434235
630d031d30f4b3afe57f014af81f537273595260
2,861
py
Python
cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 Valerii Sukhorukov. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
35.320988
79
0.739602
867
0.303041
0
0
0
0
0
0
2,205
0.77071
630e334606bd98d4e81def6c3b2ffa679f3a7e67
948
py
Python
snow/views.py
cdmaok/web-sentiment
15fbe33327f9272035393d8c9991c06933163cc2
[ "Apache-2.0" ]
null
null
null
snow/views.py
cdmaok/web-sentiment
15fbe33327f9272035393d8c9991c06933163cc2
[ "Apache-2.0" ]
null
null
null
snow/views.py
cdmaok/web-sentiment
15fbe33327f9272035393d8c9991c06933163cc2
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt import json from snownlp import SnowNLP # Create your views here. @csrf_exempt def index(request): message = {} print request.method if request.method == 'GET': message = construct_message...
23.7
62
0.709916
0
0
0
0
339
0.357595
0
0
145
0.152954
630eeba371e059df6ca1c18dab67c68b23c5a057
10,677
py
Python
Products/CMFCore/FSPageTemplate.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/FSPageTemplate.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/FSPageTemplate.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2001 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
36.565068
78
0.60429
8,313
0.778589
0
0
2,219
0.20783
0
0
2,868
0.268615
630fea4816a8abd9eaf09ba98c364ef95304a04e
7,559
py
Python
branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
# doxygen.py # # Doxygen Management from utils import * import glob ############################################################################## # Doxygen Management # ############################################################################## """ Called ...
40.207447
155
0.557878
4,997
0.661066
0
0
0
0
0
0
3,110
0.41143
631067d54a45a87c1899e57d958a0bc4823a517a
3,074
py
Python
models/LASSO.py
MattAHarrington/crypto-comovement
3812f7cd5ba61e704041acc3e272840f2a5a9cc2
[ "MIT" ]
1
2021-04-15T21:40:39.000Z
2021-04-15T21:40:39.000Z
models/LASSO.py
MattAHarrington/crypto-comovement
3812f7cd5ba61e704041acc3e272840f2a5a9cc2
[ "MIT" ]
null
null
null
models/LASSO.py
MattAHarrington/crypto-comovement
3812f7cd5ba61e704041acc3e272840f2a5a9cc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Standard imports import pandas as pd import numpy as np # Pytorch import torch from torch import nn # Using sklearn's LASSO implementation from sklearn.linear_model import Lasso # Local Files from models.model_interface import CryptoModel class LASSO(CryptoModel): """Wrapper around the ...
29.27619
96
0.612882
2,805
0.912492
0
0
0
0
0
0
1,293
0.420625
6310d4042eb7ef64a2b5785735563119f99531f8
719
py
Python
Test_Beat_Detector.py
filipmazurek/Heart-Rate-Monitor
eef5bed63357442dde3746e0443671a947f0ec3d
[ "MIT" ]
null
null
null
Test_Beat_Detector.py
filipmazurek/Heart-Rate-Monitor
eef5bed63357442dde3746e0443671a947f0ec3d
[ "MIT" ]
null
null
null
Test_Beat_Detector.py
filipmazurek/Heart-Rate-Monitor
eef5bed63357442dde3746e0443671a947f0ec3d
[ "MIT" ]
null
null
null
from Beat_Detector import BeatDetector from SignalChoice import * update_time_seconds = 20 update_time_easy = 2 # means enough data for 2 seconds. array_easy = [0, 2, 5, 10, 5, 2, 0, 2, 5, 10, 5] def test_get_num_beats(): beat_detector = BeatDetector(update_time_seconds, SignalChoice.both) assert 2 == beat_...
32.681818
95
0.769124
0
0
0
0
0
0
0
0
69
0.095967
6310fb525d8e21534dcc57582305f77d4f195a47
1,806
py
Python
test_ocr.py
lanstonpeng/NightOwlServer
1810c631c44d53f885e79164c48a7cca61441cce
[ "MIT" ]
null
null
null
test_ocr.py
lanstonpeng/NightOwlServer
1810c631c44d53f885e79164c48a7cca61441cce
[ "MIT" ]
null
null
null
test_ocr.py
lanstonpeng/NightOwlServer
1810c631c44d53f885e79164c48a7cca61441cce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import urllib, urllib2 import tempfile import base64 from PIL import Image import os # 全局变量 API_URL = 'http://apis.baidu.com/apistore/idlocr/ocr' API_KEY = "0c69d1b8ec1c96561cb9ca3c037d7225" def get_image_text(img_url=None): headers = {} # download image opener = u...
26.173913
136
0.692137
0
0
0
0
0
0
0
0
639
0.35226
6311a426d4eeb126a9bc59367b5a6f277acb2a51
2,381
py
Python
token_importance_utils.py
keyurfaldu/token_importance
38099bcd0f145d4559075e79c8cbc2fb240a72be
[ "MIT" ]
null
null
null
token_importance_utils.py
keyurfaldu/token_importance
38099bcd0f145d4559075e79c8cbc2fb240a72be
[ "MIT" ]
null
null
null
token_importance_utils.py
keyurfaldu/token_importance
38099bcd0f145d4559075e79c8cbc2fb240a72be
[ "MIT" ]
1
2021-01-14T07:28:33.000Z
2021-01-14T07:28:33.000Z
import torch class AttentionBasedImportance: def __init__(self, inputs, tokenizer, attentions): if type(inputs["input_ids"]) == torch.Tensor: if inputs["input_ids"].device != torch.device(type='cpu'): self.input_ids = inputs["input_ids"].cpu() else: ...
40.355932
107
0.553129
2,357
0.98992
0
0
0
0
0
0
258
0.108358
6312dcb5c362d8fae0652ab1d6808d9dcaa3d504
3,704
py
Python
python/2020/day11.py
SylvainDe/aoc
b8a4609327831685ef94c9960350ff7bb5ace1a5
[ "MIT" ]
null
null
null
python/2020/day11.py
SylvainDe/aoc
b8a4609327831685ef94c9960350ff7bb5ace1a5
[ "MIT" ]
null
null
null
python/2020/day11.py
SylvainDe/aoc
b8a4609327831685ef94c9960350ff7bb5ace1a5
[ "MIT" ]
null
null
null
# vi: set shiftwidth=4 tabstop=4 expandtab: import datetime import itertools import collections RUN_LONG_TESTS = False def string_to_seat_layout(string): return { (i, j): s for i, line in enumerate(string.splitlines()) for j, s in enumerate(line) } def seat_layout_to_string(seats): ...
23.295597
88
0.584503
0
0
0
0
0
0
0
0
597
0.161177
6315ca182a138a7397f2bdcc32da39042e1ae1a2
3,356
py
Python
gestor_usuarios/apps/app_gestor_usuarios/forms.py
Enrialonso/LP-Manage-Contacts
fdee309442b44efee5f7aa67612738b1655197c9
[ "Unlicense" ]
null
null
null
gestor_usuarios/apps/app_gestor_usuarios/forms.py
Enrialonso/LP-Manage-Contacts
fdee309442b44efee5f7aa67612738b1655197c9
[ "Unlicense" ]
null
null
null
gestor_usuarios/apps/app_gestor_usuarios/forms.py
Enrialonso/LP-Manage-Contacts
fdee309442b44efee5f7aa67612738b1655197c9
[ "Unlicense" ]
null
null
null
from django import forms from apps.app_gestor_usuarios.models import db_usuarios, db_manage_contacts class signupForm(forms.ModelForm): class Meta: model = db_usuarios fields = [ 'name', 'last', 'email', 'password', ] labels = { ...
32.901961
107
0.502384
3,249
0.968117
0
0
0
0
0
0
1,280
0.381406
631620859e8efb33b69f79589785ecbf70b6297e
1,613
py
Python
service/routes/greet.py
illuscio-dev/isleservice-py
e7be171b08cf4ef43b1e569d163390d851ca8601
[ "MIT" ]
null
null
null
service/routes/greet.py
illuscio-dev/isleservice-py
e7be171b08cf4ef43b1e569d163390d851ca8601
[ "MIT" ]
null
null
null
service/routes/greet.py
illuscio-dev/isleservice-py
e7be171b08cf4ef43b1e569d163390d851ca8601
[ "MIT" ]
null
null
null
from spanserver import ( SpanRoute, Request, Response, MimeType, RecordType, DocInfo, DocRespInfo, ) from isleservice_objects import models, errors, schemas from service.api import api class SchemaCache: ENEMY_FULL = schemas.EnemySchema() ENEMY_POST = schemas.EnemySchema(exclude=[...
27.338983
82
0.620583
1,372
0.850589
0
0
1,281
0.794172
495
0.306882
405
0.251085
6317df6d3d996ef9dd1c80a21ebe80c0b3ce61e6
948
py
Python
openregister/record.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
openregister/record.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
openregister/record.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
from .item import Item from .entry import Entry from copy import copy class Record(object): """ A Record, the tuple of an entry and it's item Records are useful for representing the latest entry for a field value. Records are serialised as the merged entry and item """ def __init__(self,...
24.947368
62
0.632911
875
0.922996
0
0
539
0.568565
0
0
266
0.280591
63181b955335972638426181671ca5d3dffa487d
385
py
Python
pyexcel_matplotlib/__init__.py
pyexcel/pyexcel-matplotlib
8771fcf3cc82164b50dc7ec0314838bf3de63e3b
[ "BSD-3-Clause" ]
null
null
null
pyexcel_matplotlib/__init__.py
pyexcel/pyexcel-matplotlib
8771fcf3cc82164b50dc7ec0314838bf3de63e3b
[ "BSD-3-Clause" ]
null
null
null
pyexcel_matplotlib/__init__.py
pyexcel/pyexcel-matplotlib
8771fcf3cc82164b50dc7ec0314838bf3de63e3b
[ "BSD-3-Clause" ]
null
null
null
""" pyexcel_matplotlib ~~~~~~~~~~~~~~~~~~~ chart drawing plugin for pyexcel :copyright: (c) 2016-2017 by Onni Software Ltd. :license: New BSD License, see LICENSE for further details """ from pyexcel.plugins import PyexcelPluginChain PyexcelPluginChain(__name__).add_a_renderer( relative_plug...
22.647059
62
0.690909
0
0
0
0
0
0
0
0
235
0.61039
63188b300be0d3bc46d1755aa736cffb77943a19
199
py
Python
content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
#py.test --cov-report=term --cov=. --cov-config=coverage.rc --cov-fail-under=100 from impl import PhysicalInfo import pytest import hypothesis.strategies as st from hypothesis import given, assume
24.875
80
0.778894
0
0
0
0
0
0
0
0
80
0.40201
6318c5a3cbb9f437c2f48b78416a895e4ca8d74b
7,025
py
Python
homepage/views.py
gwillig/octocat
4a9f79782a0da656d61450552ce27a49047abe53
[ "MIT" ]
null
null
null
homepage/views.py
gwillig/octocat
4a9f79782a0da656d61450552ce27a49047abe53
[ "MIT" ]
5
2020-06-09T13:02:15.000Z
2021-06-10T18:47:45.000Z
homepage/views.py
gwillig/octocat
4a9f79782a0da656d61450552ce27a49047abe53
[ "MIT" ]
null
null
null
from django.http import Http404, JsonResponse from django.shortcuts import render from chatbot.chatbot import create_chatbot import threading import pickle import collections from io import BytesIO import numpy as np import urllib.request import json import wave import librosa import pandas as pd from homepage.models i...
33.774038
134
0.701495
0
0
0
0
2,736
0.389355
0
0
1,951
0.277643
63194ee4c304415890bdeb1468d2982220dc84d9
5,749
py
Python
settings/base.py
ankit-ak/django-ecommerce-1
248127526c03c7c0f25a2df84365a0d0199b9693
[ "MIT" ]
4
2021-04-06T16:50:57.000Z
2022-03-02T00:50:44.000Z
settings/base.py
ankit-ak/django-ecommerce-1
248127526c03c7c0f25a2df84365a0d0199b9693
[ "MIT" ]
null
null
null
settings/base.py
ankit-ak/django-ecommerce-1
248127526c03c7c0f25a2df84365a0d0199b9693
[ "MIT" ]
7
2021-02-22T08:07:20.000Z
2022-03-06T10:17:28.000Z
""" Django settings for petstore project. Generated by 'django-admin startproject' using Django 2.2.10. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
28.043902
91
0.728996
0
0
0
0
0
0
0
0
3,596
0.6255
631ba99c9d1ddbfd1ea38d627f51de23ced2b917
440
py
Python
day-01/part-2/jon.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-01/part-2/jon.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-01/part-2/jon.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy class JonSubmission(SubmissionPy): def run(self, s): l = [int(x) for x in s.strip().split()] n = len(l) for i in range(n): for j in range(i): if l[i] + l[j] > 2020: continue for k...
25.882353
54
0.427273
392
0.890909
0
0
0
0
0
0
0
0
631bccc0853eef2e7f3442d8f5f162deb98c59c4
1,919
py
Python
threading/recon-ng_threadpool.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
threading/recon-ng_threadpool.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
threading/recon-ng_threadpool.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # From /opt/recon-ng/recon/mixins/threads.py from Queue import Queue, Empty import threading import time import logging logging.basicConfig(level=logging.INFO, format="[+] %(message)s") logger = logging.getLogger("mutilthreads") class ThreadingMixin(object): def _...
23.9875
72
0.560188
1,361
0.709224
0
0
0
0
0
0
212
0.110474
631c035d110528366d1acb4c246097b03b5fc1bd
2,184
py
Python
abstracts_mutual_PCAscore.py
diegovalenzuelaiturra/EasyPatents
6e922e8b749b5baeaef9fcaabfdd789dfa9191a7
[ "MIT" ]
2
2019-11-20T04:29:56.000Z
2021-06-09T22:09:32.000Z
abstracts_mutual_PCAscore.py
diegovalenzuelaiturra/EasyPatents
6e922e8b749b5baeaef9fcaabfdd789dfa9191a7
[ "MIT" ]
15
2020-01-28T21:33:32.000Z
2022-01-13T00:33:02.000Z
abstracts_mutual_PCAscore.py
diegovalenzuelaiturra/EasyPatents
6e922e8b749b5baeaef9fcaabfdd789dfa9191a7
[ "MIT" ]
2
2017-12-31T08:53:04.000Z
2021-06-09T22:09:34.000Z
from BusquedasSem import * import seaborn as sns def main(): df = pd.read_csv('./client0-sort.csv') df_abstract = df['Abstract'] l = df_abstract.size abstracts = df_abstract.values PCA_score = np.zeros((l, l)) abstracts_aux = preprocessing_abstracts_PCA(abstracts) for i in range(l): ...
25.103448
99
0.604396
0
0
0
0
0
0
0
0
254
0.1163
631cd2a6dbe8d5531dc2796c165be89911afb6ea
864
py
Python
.workloads/hash-crack/hash-crack.py
lolenseu/Projects
34c2eef473697b092e13743f28d575cf0fb08324
[ "MIT" ]
5
2022-01-31T14:44:24.000Z
2022-03-26T14:02:35.000Z
.workloads/hash-crack/hash-crack.py
lolenseu/Projects
34c2eef473697b092e13743f28d575cf0fb08324
[ "MIT" ]
null
null
null
.workloads/hash-crack/hash-crack.py
lolenseu/Projects
34c2eef473697b092e13743f28d575cf0fb08324
[ "MIT" ]
null
null
null
import os import sys import time import hashlib target_hash = input("Input a target hash: ") numbers = '1234567890' uptext = 'qwertyuiopasdfghjklzxcvbnm' lotext = 'QWERTYUIOPASDFGHJKLZXCVBNM' steach = uptext + lotext lash_ash = open('log', 'w') found_hash = open('saved', 'w') def animate(): print(f"[{gen_text_has...
20.093023
69
0.706019
0
0
0
0
0
0
0
0
249
0.288194
631d80f3701744174c3da072f2943d2b83e7badc
11,100
py
Python
scripts/bert_system/voter.py
GKingA/tuw-inf-hasoc2021
d04b816db2e2b1b2a5a6d455596ed369f8d1da14
[ "MIT" ]
null
null
null
scripts/bert_system/voter.py
GKingA/tuw-inf-hasoc2021
d04b816db2e2b1b2a5a6d455596ed369f8d1da14
[ "MIT" ]
null
null
null
scripts/bert_system/voter.py
GKingA/tuw-inf-hasoc2021
d04b816db2e2b1b2a5a6d455596ed369f8d1da14
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.metrics import classification_report, confusion_matrix from argparse import ArgumentParser from read_data import read_csv def create_toxic_result(path, expected, out, toxic_category, test=False): if not test: df_true = read_csv(expected, names=['comment_id', 'toxic', 'enga...
54.411765
119
0.623063
0
0
0
0
0
0
0
0
1,645
0.148198
631e5480b8873184d63c0836ee3dfc256b04bd00
157
py
Python
cap8/ex2.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap8/ex2.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap8/ex2.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
def multiplo(a, b): if a % b == 0: return True else: return False print(multiplo(2, 1)) print(multiplo(9, 5)) print(multiplo(81, 9))
17.444444
22
0.566879
0
0
0
0
0
0
0
0
0
0
63220bdf987500349f76e2f5fb63d85c0d153e06
1,165
py
Python
parsifal/apps/reviews/migrations/0020_searchresult.py
ShivamPytho/parsifal
9386a0fb328d4880d052c94e9224ce50a9b2f6a6
[ "MIT" ]
342
2015-01-14T17:25:35.000Z
2022-02-26T11:59:09.000Z
parsifal/apps/reviews/migrations/0020_searchresult.py
ShivamPytho/parsifal
9386a0fb328d4880d052c94e9224ce50a9b2f6a6
[ "MIT" ]
56
2015-01-23T12:57:59.000Z
2022-03-12T01:01:38.000Z
parsifal/apps/reviews/migrations/0020_searchresult.py
ShivamPytho/parsifal
9386a0fb328d4880d052c94e9224ce50a9b2f6a6
[ "MIT" ]
200
2015-01-22T21:50:41.000Z
2021-12-28T13:42:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import parsifal.apps.reviews.models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('library', '0013_auto_20150710_1614'), ('reviews', '0019_study_co...
40.172414
138
0.654077
987
0.84721
0
0
0
0
0
0
240
0.206009
6322146c8d971464c6f726ebdba3a3d7a2540028
6,518
py
Python
mastiff/plugins/analysis/EXE/EXE-singlestring.py
tt1379/mastiff
04d569e4fa59513572e77c74b049cad82f9b0310
[ "Apache-2.0" ]
164
2015-02-09T18:19:26.000Z
2022-02-23T09:49:18.000Z
mastiff/plugins/analysis/EXE/EXE-singlestring.py
ashishhmittal/mastiff
04d569e4fa59513572e77c74b049cad82f9b0310
[ "Apache-2.0" ]
1
2016-05-20T16:21:33.000Z
2016-05-20T16:21:33.000Z
mastiff/plugins/analysis/EXE/EXE-singlestring.py
ashishhmittal/mastiff
04d569e4fa59513572e77c74b049cad82f9b0310
[ "Apache-2.0" ]
43
2015-03-03T11:15:58.000Z
2021-10-02T02:14:57.000Z
#!/usr/bin/env python """ Copyright 2012-2013 The MASTIFF Project, All Rights Reserved. This software, having been partly or wholly developed and/or sponsored by KoreLogic, Inc., is hereby released under the terms and conditions set forth in the project's "README.LICENSE" file. For a list of all contributors...
31.640777
109
0.544799
5,120
0.785517
0
0
0
0
0
0
2,571
0.394446
6322cf5faf1311f6d38c18bbb9cc68ac52d6e045
2,874
py
Python
Libs/Scene Recognition/SceneRecognitionCNN.py
vpulab/Semantic-Guided-Scene-Attribution
1e247e48b549eb648d833050fb150f041948422d
[ "MIT" ]
3
2021-03-03T09:07:53.000Z
2021-07-19T10:44:32.000Z
Libs/Scene Recognition/SceneRecognitionCNN.py
vpulab/Semantic-Guided-Scene-Attribution
1e247e48b549eb648d833050fb150f041948422d
[ "MIT" ]
null
null
null
Libs/Scene Recognition/SceneRecognitionCNN.py
vpulab/Semantic-Guided-Scene-Attribution
1e247e48b549eb648d833050fb150f041948422d
[ "MIT" ]
1
2021-03-11T09:17:04.000Z
2021-03-11T09:17:04.000Z
import torch.nn as nn from torchvision.models import resnet class SceneRecognitionCNN(nn.Module): """ Generate Model Architecture """ def __init__(self, arch, scene_classes=1055): super(SceneRecognitionCNN, self).__init__() # --------------------------------# # Base ...
30.903226
81
0.451983
2,811
0.978079
0
0
0
0
0
0
1,098
0.382046
63243b0ed7269143b65e929fe80aa6f12a71bb2a
1,309
py
Python
raduga/aws/ec2.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
raduga/aws/ec2.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
raduga/aws/ec2.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
from time import sleep class AWSEC2(object): def __init__(self, target): self.conn = target.get_ec2_conn() def get_instance_state(self, instance_id): instance = self.conn.get_only_instances(instance_id)[0] return instance.state def stop_instance(self, instance_id): self.co...
35.378378
88
0.638655
1,284
0.980901
0
0
0
0
0
0
144
0.110008
6324fc38f5d2e0297dfed36c24f30bc5c9a5e87b
3,786
py
Python
sails/commands.py
metrasynth/solar-sails
3a10774dad29d85834d3acb38171741b3a11ef91
[ "MIT" ]
6
2016-11-22T14:32:55.000Z
2021-08-15T01:35:33.000Z
sails/commands.py
metrasynth/s4ils
efc061993d15ebe662b72ab8b3127f7f7ce2f66b
[ "MIT" ]
2
2022-03-18T16:47:43.000Z
2022-03-18T16:47:44.000Z
sails/commands.py
metrasynth/s4ils
efc061993d15ebe662b72ab8b3127f7f7ce2f66b
[ "MIT" ]
2
2019-07-09T23:44:08.000Z
2021-08-15T01:35:37.000Z
import rv.api class Command(object): args = () processed = False def __init__(self, *args, **kw): self._apply_args(*args, **kw) def __repr__(self): attrs = ' '.join( '{}={!r}'.format( arg, getattr(self, arg), ) for ...
23.811321
66
0.542789
3,748
0.989963
0
0
212
0.055996
0
0
159
0.041997
6326017b69b64c91b9adacf50eeea018744aa2c3
22,527
py
Python
rfcc/model.py
IngoMarquart/rfcc
0e2467610edbe61287fb5f8693e50225327d791f
[ "MIT" ]
null
null
null
rfcc/model.py
IngoMarquart/rfcc
0e2467610edbe61287fb5f8693e50225327d791f
[ "MIT" ]
1
2021-04-01T10:05:57.000Z
2021-04-01T11:46:14.000Z
rfcc/model.py
IngoMarquart/rfcc
0e2467610edbe61287fb5f8693e50225327d791f
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from scipy.spatial.distance import squareform, pdist from rfcc.data_ops import ordinal_encode import pandas as pd import numpy as np from typing import Union, Optional from scipy.cluster.hierarchy import linkage, fcluster from rfcc.path_o...
39.800353
263
0.550317
22,090
0.980601
0
0
0
0
0
0
7,309
0.324455
632674ddcc745dd77d3ba6cadd61eccacbe5de74
4,632
py
Python
zoloto/cameras/camera.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
zoloto/cameras/camera.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
zoloto/cameras/camera.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from typing import Any, Generator, Optional, Tuple from cv2 import CAP_PROP_BUFFERSIZE, VideoCapture from numpy import ndarray from zoloto.marker_type import MarkerType from .base import BaseCamera from .mixins import IterableCameraMixin, VideoCaptureMixin, ViewableCameraMixin from .utils im...
31.726027
92
0.649827
3,839
0.8288
655
0.141408
352
0.075993
0
0
462
0.099741
6326a7cc80d3d1603f92a048b09d9d4066064738
448
py
Python
.config/vim/python3/tex.py
psvenk/dotfiles
2c07e97b5087a224e5df3060405f8bbfac28866e
[ "0BSD" ]
null
null
null
.config/vim/python3/tex.py
psvenk/dotfiles
2c07e97b5087a224e5df3060405f8bbfac28866e
[ "0BSD" ]
null
null
null
.config/vim/python3/tex.py
psvenk/dotfiles
2c07e97b5087a224e5df3060405f8bbfac28866e
[ "0BSD" ]
null
null
null
import vim from datetime import datetime from os import path from subprocess import run, DEVNULL def include_screenshot(): directory = path.dirname(vim.current.buffer.name) timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S") filename = f"screenshot-{timestamp}.png" with open(path.join(directory, f...
34.461538
74
0.703125
0
0
0
0
0
0
0
0
62
0.138393
6327c56d9c670d44daabc2e832ec49f09adf169e
433
py
Python
tests/ext/test_ext_plugin.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
826
2015-01-09T13:23:35.000Z
2022-03-18T01:19:40.000Z
tests/ext/test_ext_plugin.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
316
2015-01-14T10:35:22.000Z
2022-03-08T17:18:10.000Z
tests/ext/test_ext_plugin.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
112
2015-01-10T15:04:26.000Z
2022-03-16T08:11:58.000Z
from cement.ext.ext_plugin import CementPluginHandler # module tests class TestCementPluginHandler(object): def test_subclassing(self): class MyPluginHandler(CementPluginHandler): class Meta: label = 'my_plugin_handler' h = MyPluginHandler() assert h._meta.in...
22.789474
53
0.681293
318
0.734411
0
0
0
0
0
0
98
0.226328
6327d98e619405f59bb76b328007d961e5267f30
655
py
Python
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
""" Represents an ideal lens. """ from syned.beamline.optical_elements.ideal_elements.screen import Screen from wofry.beamline.decorators import OpticalElementDecorator class WOScreen(Screen, OpticalElementDecorator): def __init__(self, name="Undefined"): Screen.__init__(self, name=name) def applyOpti...
32.75
82
0.760305
482
0.735878
0
0
0
0
0
0
55
0.083969
6329f54bdc4ccb92a6490bc61cacdf57859127e4
1,799
py
Python
scripts/sample_imgnet.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
scripts/sample_imgnet.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
scripts/sample_imgnet.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
import os from tqdm import tqdm from pathlib import Path import random from mycv.paths import IMAGENET_DIR from mycv.datasets.imagenet import WNIDS, WNID_TO_IDX def main(): sample(200, 600, 50) def sample(num_cls=200, num_train=600, num_val=50): assert IMAGENET_DIR.is_dir() train_root = IMAGENET_DIR /...
34.596154
82
0.659811
0
0
0
0
0
0
0
0
424
0.235686
632d57e33c16941deaf1e4e00a7a754b488df9c5
702
py
Python
test/test_document.py
hibtc/madseq
1e218726a01a1817464f84f0ce887be3186f2c08
[ "MIT" ]
null
null
null
test/test_document.py
hibtc/madseq
1e218726a01a1817464f84f0ce887be3186f2c08
[ "MIT" ]
2
2015-05-25T00:42:49.000Z
2015-05-25T00:43:19.000Z
test/test_document.py
hibtc/madseq
1e218726a01a1817464f84f0ce887be3186f2c08
[ "MIT" ]
null
null
null
# test utilities import unittest from decimal import Decimal # tested module import madseq class Test_Document(unittest.TestCase): def test_parse_line(self): parse = madseq.Document.parse_line Element = madseq.Element self.assertEqual(list(parse(' \t ')), ['']...
22.645161
74
0.497151
557
0.793447
0
0
0
0
0
0
139
0.198006
632f191e3e228f8b92b0a400fa3722a5c25e9f21
5,307
py
Python
Assignment3/src/main/bkool/utils/Visitor.py
ntnguyen648936/PPL-BKOOOL
458f54683da01d2105cf3cffc8ecbc2aeb796df8
[ "Apache-2.0" ]
null
null
null
Assignment3/src/main/bkool/utils/Visitor.py
ntnguyen648936/PPL-BKOOOL
458f54683da01d2105cf3cffc8ecbc2aeb796df8
[ "Apache-2.0" ]
null
null
null
Assignment3/src/main/bkool/utils/Visitor.py
ntnguyen648936/PPL-BKOOOL
458f54683da01d2105cf3cffc8ecbc2aeb796df8
[ "Apache-2.0" ]
1
2022-01-27T15:38:22.000Z
2022-01-27T15:38:22.000Z
from abc import ABC, abstractmethod, ABCMeta class Visitor(ABC): @abstractmethod def visitProgram(self, ast, param): pass @abstractmethod def visitVarDecl(self, ast, param): pass @abstractmethod def visitConstDecl(self, ast, param): pass @abstractmethod def visi...
23.174672
46
0.603919
5,251
0.989448
0
0
2,564
0.483135
0
0
0
0
633116f53d75e450606cb590875b6e5bf2ea6638
4,917
py
Python
opensanctions/crawlers/eu_fsf.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
102
2018-03-22T16:33:17.000Z
2021-01-20T07:39:43.000Z
opensanctions/crawlers/eu_fsf.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
101
2021-02-12T18:26:16.000Z
2022-01-27T14:01:53.000Z
opensanctions/crawlers/eu_fsf.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
50
2018-05-11T18:00:49.000Z
2021-01-26T12:11:20.000Z
from prefixdate import parse_parts from opensanctions import helpers as h from opensanctions.util import remove_namespace def parse_address(context, el): country = el.get("countryDescription") if country == "UNKNOWN": country = None # context.log.info("Addrr", el=el) return h.make_address( ...
40.636364
77
0.630466
0
0
0
0
0
0
0
0
1,232
0.250559
63319d40cb5498bfc7c0d34898459019f0749096
1,031
py
Python
lre/nlp/__init__.py
ovixiao/lre
e60de7b4457efd5a85165e89a4477c14f52c471b
[ "Apache-2.0" ]
null
null
null
lre/nlp/__init__.py
ovixiao/lre
e60de7b4457efd5a85165e89a4477c14f52c471b
[ "Apache-2.0" ]
null
null
null
lre/nlp/__init__.py
ovixiao/lre
e60de7b4457efd5a85165e89a4477c14f52c471b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 处理各种语言的库,主要是实现分段落、句子、词的功能 """ from __future__ import unicode_literals from .nlp_zh import NlpZh class Nlp(object): def __init__(self, config): self.config = config if self.config.language == 'zh': self.nlp = NlpZh(config) else: raise Va...
24.547619
66
0.591659
1,121
0.862972
0
0
0
0
0
0
723
0.556582
633225f23e4a4bf2dbb424fc735d054300fb8162
730
py
Python
scripts/vertical/scr_process_stats.py
juhi24/radcomp
ccb727e4fa516ae708362ed1b05335de92f8c7fd
[ "MIT" ]
1
2019-06-18T01:54:00.000Z
2019-06-18T01:54:00.000Z
scripts/vertical/scr_process_stats.py
juhi24/radcomp
ccb727e4fa516ae708362ed1b05335de92f8c7fd
[ "MIT" ]
null
null
null
scripts/vertical/scr_process_stats.py
juhi24/radcomp
ccb727e4fa516ae708362ed1b05335de92f8c7fd
[ "MIT" ]
1
2020-05-27T10:13:49.000Z
2020-05-27T10:13:49.000Z
# coding: utf-8 import matplotlib.pyplot as plt from scr_class_stats import init_rain, cl_frac_in_case, frac_in_case_hist def proc_frac(cases, lcl, frac=True): """fraction or sum of process occurrences per case""" cl_sum = cases.case.apply(lambda x: 0) for cl in lcl: cl_sum += cases.case.apply(la...
24.333333
80
0.669863
0
0
0
0
0
0
0
0
111
0.152055
2d47ab385e2aad6d3b4b15b6488db399d09b39ca
3,784
py
Python
scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
""" Since the size of real robot data is huge, we first go though all data then save loss array, then sort loss array. Finally we use the indexes to find the corresponding graphs """ import time from rllab.core.serializable import Serializable from numpy.linalg import norm from numpy import mean from numpy import std i...
32.067797
92
0.700317
0
0
0
0
0
0
0
0
552
0.145877
2d4823293bcf928bc47dd1c13d4ff3d6fb02d8f4
12,225
py
Python
data_preprocess/build_data_to_tfrecord.py
YuxianMeng/CorefQA-pytorch
0017e85dc09075c640c5fe91673230f505e825f2
[ "Apache-2.0" ]
6
2021-06-30T03:08:27.000Z
2021-12-23T07:15:03.000Z
data_preprocess/build_data_to_tfrecord.py
YuxianMeng/CorefQA-pytorch
0017e85dc09075c640c5fe91673230f505e825f2
[ "Apache-2.0" ]
null
null
null
data_preprocess/build_data_to_tfrecord.py
YuxianMeng/CorefQA-pytorch
0017e85dc09075c640c5fe91673230f505e825f2
[ "Apache-2.0" ]
2
2020-10-20T20:20:54.000Z
2021-01-27T08:15:53.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: Wei Wu @license: Apache Licence @file: prepare_training_data.py @time: 2019/12/19 @contact: wu.wei@pku.edu.cn 将conll的v4_gold_conll文件格式转成模型训练所需的jsonlines数据格式 """ import argparse import json import logging import os import re import sys from collections import d...
41.866438
129
0.669857
0
0
0
0
0
0
0
0
2,362
0.192612
2d485dc621723bda46a0ef23e63d9f2aea8f60fb
8,611
py
Python
pulseplot/pulseplot.py
kaustubhmote/pulseplot
9003ab0784666cd34023e29a5f97acb9861f3567
[ "BSD-3-Clause" ]
2
2022-02-23T11:23:53.000Z
2022-03-12T06:39:54.000Z
pulseplot/pulseplot.py
kaustubhmote/pulseplot
9003ab0784666cd34023e29a5f97acb9861f3567
[ "BSD-3-Clause" ]
null
null
null
pulseplot/pulseplot.py
kaustubhmote/pulseplot
9003ab0784666cd34023e29a5f97acb9861f3567
[ "BSD-3-Clause" ]
null
null
null
""" Utilities for making plots """ from warnings import warn import matplotlib.pyplot as plt from matplotlib.projections import register_projection from matplotlib.animation import ArtistAnimation from .parse import Delay, Pulse, PulseSeq def subplots(*args, **kwargs): """ Wrapper around matplotlib.pyplot.s...
26.495385
107
0.541517
6,690
0.776913
0
0
0
0
0
0
2,160
0.250842
2d487db3bf1f6d954a1dfa7aa6ad6f0c54cdd16d
1,835
py
Python
test/test_immutable_maps.py
zuoralabs/autolisp
ed5d37f36914e25a2ab3196eb5985c7fff8fd00b
[ "BSD-2-Clause" ]
null
null
null
test/test_immutable_maps.py
zuoralabs/autolisp
ed5d37f36914e25a2ab3196eb5985c7fff8fd00b
[ "BSD-2-Clause" ]
null
null
null
test/test_immutable_maps.py
zuoralabs/autolisp
ed5d37f36914e25a2ab3196eb5985c7fff8fd00b
[ "BSD-2-Clause" ]
1
2020-10-03T12:23:46.000Z
2020-10-03T12:23:46.000Z
from genlisp.immutables import _ImmutableMap as ImmutableMap import random test_dicts = [{1: 2}, {1: 3}, {1: 2, 3: 4}, dict(a=1, b=2, c=3, d=4, e=5), dict(a=3, b=1, c=3, d=4, e=5), {ii: random.randint(0, 10000) for ii in range(20000)}, ...
25.136986
68
0.520981
0
0
0
0
0
0
0
0
111
0.06049
2d493273ba4aac5351552304e302799fbea8feee
740
py
Python
Mentorama/Modulo 3 - POO/Quadrado.py
MOURAIGOR/python
b267f8ef277a385e3e315e88a22390512bf1e101
[ "MIT" ]
null
null
null
Mentorama/Modulo 3 - POO/Quadrado.py
MOURAIGOR/python
b267f8ef277a385e3e315e88a22390512bf1e101
[ "MIT" ]
null
null
null
Mentorama/Modulo 3 - POO/Quadrado.py
MOURAIGOR/python
b267f8ef277a385e3e315e88a22390512bf1e101
[ "MIT" ]
null
null
null
class Quadrado: def __init__(self, lado): self.tamanho_lado = lado def mudar_valor_lado(self, novo_lado): lado = novo_lado self.tamanho_lado = novo_lado def retornar_valor_lado(self, retorno): self.tamanho_lado = retorno print(retorno) def calcular_area(self, a...
24.666667
43
0.647297
383
0.516173
0
0
0
0
0
0
133
0.179245
2d49e0003cf21961e6f6dc0b7737191d0a1bdba9
772
py
Python
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with FileFormatCode # from enum import Enum from enum import auto class FileFormatCode(Enum): """""" BINARY_OUTPUT_ONLY = auto() ASCII_OUTPUT_ONLY = auto() NO_ADDITIONAL_OUTPUT = auto() ASCII_OUTPUT = auto() BINARY_OUTPUT = auto() def label(self): if self == FileFormat...
32.166667
55
0.650259
692
0.896373
0
0
0
0
0
0
161
0.208549
2d4a0bf88b1675b2283b37ee3a00023fb0c67f4b
13,075
py
Python
wolframclient/evaluation/pool.py
krbarker/WolframClientForPython
f2198b15cad0f406b78ad40a4d1e3ca76125b408
[ "MIT" ]
null
null
null
wolframclient/evaluation/pool.py
krbarker/WolframClientForPython
f2198b15cad0f406b78ad40a4d1e3ca76125b408
[ "MIT" ]
null
null
null
wolframclient/evaluation/pool.py
krbarker/WolframClientForPython
f2198b15cad0f406b78ad40a4d1e3ca76125b408
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import itertools import logging from asyncio import CancelledError from wolframclient.evaluation.base import WolframAsyncEvaluator from wolframclient.evaluation.kernel.asyncsession import ( WolframLanguageAsyncSessio...
41.246057
125
0.609025
11,527
0.881606
0
0
76
0.005813
6,895
0.527342
4,464
0.341415
2d4a9f16085458c84c9dbbf956decc433cb478e6
1,237
py
Python
results/neural_nets/trainsize_varyresults/run_charcnn.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
13
2020-04-23T21:25:51.000Z
2021-11-19T23:56:17.000Z
results/neural_nets/trainsize_varyresults/run_charcnn.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
3
2020-08-24T22:15:50.000Z
2021-05-11T12:42:14.000Z
results/neural_nets/trainsize_varyresults/run_charcnn.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
10
2020-04-24T09:27:19.000Z
2021-06-16T21:05:46.000Z
import os.path as osp import subprocess dna_datasets = [ "CTCF", "EP300", "JUND", "RAD21", "SIN3A", "Pbde", "EP300_47848", "KAT2B", "TP53", "ZZZ3", "Mcf7", "Hek29", "NR2C2", "ZBTB33", ] prot_datasets = [ "1.1", "1.34", "2.1", "2.19", "2.31", ...
17.180556
66
0.481811
0
0
0
0
0
0
0
0
487
0.393694
2d4e716ec32e46db3c8f8b92ca201b3088f776bf
1,911
py
Python
pages/cart_page.py
kukushdi3981/sel-1_test-project
81066e1501a62f642b5b76745801170ca62ad237
[ "Apache-2.0" ]
null
null
null
pages/cart_page.py
kukushdi3981/sel-1_test-project
81066e1501a62f642b5b76745801170ca62ad237
[ "Apache-2.0" ]
null
null
null
pages/cart_page.py
kukushdi3981/sel-1_test-project
81066e1501a62f642b5b76745801170ca62ad237
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By class CartPage: def __init__(self, driver): self.driver = driver self.wait = WebDriverWait(driver, 10) def del_from_cart_butto...
39
112
0.70539
1,950
0.920245
0
0
383
0.180746
0
0
671
0.316659
2d4f0d89f4feb1da62ed45be7c3ee895624c079b
2,945
py
Python
malaya/entity.py
aizatrosli/Malaya
d326384d2c0925c139a7224b77ac20f0ad57f237
[ "MIT" ]
1
2019-08-20T17:59:20.000Z
2019-08-20T17:59:20.000Z
malaya/entity.py
aizatrosli/Malaya
d326384d2c0925c139a7224b77ac20f0ad57f237
[ "MIT" ]
null
null
null
malaya/entity.py
aizatrosli/Malaya
d326384d2c0925c139a7224b77ac20f0ad57f237
[ "MIT" ]
null
null
null
from ._utils import _tag_class from ._utils._paths import PATH_ENTITIES, S3_PATH_ENTITIES def available_deep_model(): """ List available deep learning entities models, ['concat', 'bahdanau', 'luong'] """ return ['concat', 'bahdanau', 'luong'] def available_bert_model(): """ List available be...
30.05102
106
0.642784
0
0
0
0
0
0
0
0
1,860
0.631579
2d51dd7e74d06bcb018f0868e88b1e186fc49ead
1,451
py
Python
src/invoices/tests/test_models.py
brianl9995/payinv
7fc2160c2c9bbb9568a659ff3edf2526142d33fc
[ "MIT" ]
2
2019-09-21T23:36:49.000Z
2019-10-02T23:31:21.000Z
src/invoices/tests/test_models.py
brianl9995/payinv
7fc2160c2c9bbb9568a659ff3edf2526142d33fc
[ "MIT" ]
2
2019-10-04T13:51:43.000Z
2021-06-10T21:57:55.000Z
src/invoices/tests/test_models.py
brianl9995/payinv
7fc2160c2c9bbb9568a659ff3edf2526142d33fc
[ "MIT" ]
2
2019-10-02T23:31:22.000Z
2020-06-07T14:57:55.000Z
from django.test import TestCase from core.tests.factories import SaleFactory, InvoiceFactory from invoices.models import Invoice class InvoiceModelTestCase(TestCase): def test_sales_pending_without_invoice(self): """ Should return this sale if not have Invoice to cover""" sale = SaleFactory(tota...
43.969697
78
0.724328
1,318
0.908339
0
0
0
0
0
0
259
0.178498
2d524adbfa80670475741f1458c92253a9a3edbe
523
py
Python
testes e exercícios/URI/somaImparesConsecutivosII.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
testes e exercícios/URI/somaImparesConsecutivosII.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
testes e exercícios/URI/somaImparesConsecutivosII.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
valores = [] quant = int(input()) for c in range(0, quant): x, y = input().split(' ') x = int(x) y = int(y) maior = menor = soma = 0 if x > y: maior = x menor = y else: maior = y menor = x if maior == menor+1 or maior == menor: valores.append(0) e...
20.92
42
0.447419
0
0
0
0
0
0
0
0
3
0.005736
2d57a7c0a415efe520854cd9d0641e6992522bef
53,932
py
Python
magmap/stats/vols.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/stats/vols.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/stats/vols.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
# Regional volume and density management # Author: David Young, 2018, 2019 """Measure volumes and densities by regions. Intended to be higher-level, relatively atlas-agnostic measurements. """ from enum import Enum from time import time import numpy as np import pandas as pd from scipy.spatial.distance import cdist ...
41.872671
80
0.61483
28,262
0.52403
0
0
23,729
0.43998
0
0
22,461
0.416469
2d5842d1c5376eb851aa288ea6f1a9e5f74b9b80
251
py
Python
PythonCode/Pyboard/Examples/SImpleUART.py
CarterWS/Summer2020
120f8ed5e225dcbf9f469daf17a787e3f0b93417
[ "MIT" ]
null
null
null
PythonCode/Pyboard/Examples/SImpleUART.py
CarterWS/Summer2020
120f8ed5e225dcbf9f469daf17a787e3f0b93417
[ "MIT" ]
null
null
null
PythonCode/Pyboard/Examples/SImpleUART.py
CarterWS/Summer2020
120f8ed5e225dcbf9f469daf17a787e3f0b93417
[ "MIT" ]
11
2020-06-03T10:12:28.000Z
2020-06-05T16:02:40.000Z
import time,pyb uart = pyb. UART(3,9600, bits=8, parity=None, stop=1) while(True): time.sleep_ms(100) size = uart.any() if (size > 0): string = uart.read(size) data = int(string[-1]) print('Data: %3d' % (data))
17.928571
53
0.549801
0
0
0
0
0
0
0
0
11
0.043825
2d58a7a9f6b56ec2da62f50746c4430128a39551
2,089
py
Python
scripts/add_session_chairs.py
pranav-ust/naacl-2021-website
b6353f2e7d5cbd5b3dae485035560df07e9a4b5c
[ "MIT", "BSD-3-Clause" ]
8
2020-09-25T09:52:53.000Z
2022-01-24T04:14:33.000Z
scripts/add_session_chairs.py
pranav-ust/naacl-2021-website
b6353f2e7d5cbd5b3dae485035560df07e9a4b5c
[ "MIT", "BSD-3-Clause" ]
6
2020-10-01T19:41:29.000Z
2021-06-18T16:32:02.000Z
scripts/add_session_chairs.py
pranav-ust/naacl-2021-website
b6353f2e7d5cbd5b3dae485035560df07e9a4b5c
[ "MIT", "BSD-3-Clause" ]
9
2020-07-14T20:44:08.000Z
2021-07-20T16:23:11.000Z
# Adds session chairs to the existing (static) program.html file. # Source: https://docs.google.com/spreadsheets/d/1aoUGr44xmU6bnJ_S61WTJkwarOcKzI_u1BgK4H99Yt4/edit?usp=sharing # Please download and save the spreadsheet in CSV format. PATH_TO_CSV = "/tmp/sessions.csv" #PATH_TO_HTML = "../conference-program/main/progra...
31.651515
133
0.699856
455
0.217808
0
0
268
0.128291
0
0
684
0.327429
2d598f2e4196c937db359c1fb681b55186a150c3
2,084
py
Python
generator/request.py
WulffHunter/log_generator
47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc
[ "MIT" ]
5
2021-02-12T15:52:59.000Z
2021-05-26T13:22:12.000Z
generator/request.py
WulffHunter/log_generator
47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc
[ "MIT" ]
1
2021-11-03T10:10:58.000Z
2021-11-05T11:43:16.000Z
generator/request.py
WulffHunter/log_generator
47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc
[ "MIT" ]
2
2021-11-07T08:12:46.000Z
2022-02-10T01:13:47.000Z
from faker import Faker import random import parameters from utils import chance_choose, chance from uri_generator import gen_path, uri_extensions, gen_uri_useable # TODO: Continue to expand this list with the proper formats for other application # layer protocols (e.g. FTP, SSH, SMTP...) protocols = ['HTTP/1.0', 'H...
24.232558
82
0.65499
0
0
0
0
0
0
0
0
644
0.309021
2d59d5bd3118fef6e7534ad9d74a82446be2e23e
2,570
py
Python
ktx_parser/format_jupyter.py
SebastianoF/ktx-parser
9445b7251b9d2984e57cf9e051cf975ab2b81109
[ "MIT" ]
null
null
null
ktx_parser/format_jupyter.py
SebastianoF/ktx-parser
9445b7251b9d2984e57cf9e051cf975ab2b81109
[ "MIT" ]
null
null
null
ktx_parser/format_jupyter.py
SebastianoF/ktx-parser
9445b7251b9d2984e57cf9e051cf975ab2b81109
[ "MIT" ]
null
null
null
from pathlib import PosixPath, Path from typing import Optional import nbformat as nbf from ktx_parser.abs_format import AbsFormat from ktx_parser.abs_getter import AbsGetter from ktx_parser.decorations import keys_to_decorations class FormatJupyter(AbsFormat): def __init__(self, getter: AbsGetter): sel...
37.246377
101
0.635798
2,335
0.90856
0
0
71
0.027626
0
0
421
0.163813
2d5abdd3abf9c29ea242210df43416a2eeef80b9
787
py
Python
leetcode/binary_search.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
leetcode/binary_search.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
leetcode/binary_search.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
def binary_search(collection, lhs, rhs, value): if rhs > lhs: mid = lhs + (rhs - lhs) // 2 if collection[mid] == value: return mid if collection[mid] > value: return binary_search(collection, lhs, mid-1, value) return binary_search(collection, mid+1, rhs, v...
24.59375
74
0.537484
0
0
0
0
0
0
0
0
54
0.068615
2d5b27caab5eb536bb49195481bfb64795974fb0
4,831
py
Python
pywakeup.py
CRImier/pyWakeUp
3e80787bf5c771e9ade29d71642338cecfb8e023
[ "MIT" ]
null
null
null
pywakeup.py
CRImier/pyWakeUp
3e80787bf5c771e9ade29d71642338cecfb8e023
[ "MIT" ]
null
null
null
pywakeup.py
CRImier/pyWakeUp
3e80787bf5c771e9ade29d71642338cecfb8e023
[ "MIT" ]
null
null
null
#! /usr/bin/env python from datetime import datetime, timedelta from threading import Thread import logging import os from time import sleep logging.basicConfig(level = logging.DEBUG) """# define various handy options usage = "usage: %prog [options] [+]hours:minutes" parser = OptionParser(usage=usage) parser.add_op...
40.596639
281
0.643552
2,710
0.56096
0
0
0
0
0
0
2,572
0.532395
2d5b33059a390f5db8e8df5de2be104977259c36
10,442
py
Python
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
7
2017-05-01T14:15:32.000Z
2017-09-06T20:44:24.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
""" Check that the output from irrational functions is accurate for high-precision input, from 5 to 200 digits. The reference values were verified with Mathematica. """ import time from mpmath import * precs = [5, 15, 28, 35, 57, 80, 100, 150, 200] # sqrt(3) + pi/2 a = \ "3.302847134363773912758768033145623809041389...
35.638225
76
0.77648
0
0
0
0
0
0
0
0
7,160
0.685692
2d5d4b0e8ee8b61a38dc6be3798b8feb193f02e1
61
py
Python
mp2ragelib/ui.py
ofgulban/mp2ragelib
3df294f02ae4aadd0c9f91e8a101305f3f5f15fe
[ "BSD-3-Clause" ]
1
2020-09-04T19:36:58.000Z
2020-09-04T19:36:58.000Z
mp2ragelib/ui.py
ofgulban/mp2ragelib
3df294f02ae4aadd0c9f91e8a101305f3f5f15fe
[ "BSD-3-Clause" ]
null
null
null
mp2ragelib/ui.py
ofgulban/mp2ragelib
3df294f02ae4aadd0c9f91e8a101305f3f5f15fe
[ "BSD-3-Clause" ]
null
null
null
"""Commandline interface.""" # TODO: After scripting works.
15.25
30
0.704918
0
0
0
0
0
0
0
0
58
0.95082
2d5d92bfe2c4a6e4236c3e16196184c932e0ccc3
1,396
py
Python
DQMServices/Components/scripts/dqmiodumpindices.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
DQMServices/Components/scripts/dqmiodumpindices.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
DQMServices/Components/scripts/dqmiodumpindices.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
#!/usr/bin/env python from __future__ import print_function import uproot import argparse from prettytable import PrettyTable from collections import defaultdict parser = argparse.ArgumentParser(description="Shows Indices table in a DQMIO file. Last column (ME count) is computed like this: lastIndex - firstIndex + 1...
33.238095
162
0.689112
0
0
0
0
0
0
0
0
527
0.377507
2d5dc4553abbc55c9321bc9cfe1937d4082c6990
272
py
Python
Modulo1/exercicio009_2.py
natterra/python3
e462192f03e81e2a614b1f2a441ffa702e4988e0
[ "MIT" ]
null
null
null
Modulo1/exercicio009_2.py
natterra/python3
e462192f03e81e2a614b1f2a441ffa702e4988e0
[ "MIT" ]
null
null
null
Modulo1/exercicio009_2.py
natterra/python3
e462192f03e81e2a614b1f2a441ffa702e4988e0
[ "MIT" ]
null
null
null
#Exercício Python 9: Faça um programa que leia um número Inteiro qualquer e mostre na tela a sua tabuada. n = int(input("Digite um número: ")) i = 0 print("--------------") while i < 10: i += 1 print("{:2} x {:2} = {:2}".format(n, i, n*i)) print("--------------")
30.222222
105
0.544118
0
0
0
0
0
0
0
0
181
0.655797
2d5e1da162df4150bdc1aed06c46f5054aabf1f7
52
py
Python
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
print print('This is Naveen') :q
2.26087
23
0.442308
0
0
0
0
0
0
0
0
16
0.307692
2d5eb9a5f86eac06485fcefb4b677be4db7c878c
4,988
py
Python
tests/test_metrics.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
27
2019-03-15T21:21:17.000Z
2022-01-03T14:37:02.000Z
tests/test_metrics.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
4
2019-09-30T13:29:20.000Z
2021-03-20T20:05:36.000Z
tests/test_metrics.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
11
2019-03-15T21:21:19.000Z
2021-08-09T22:10:15.000Z
"""Test evaluation functionality.""" from moda.evaluators import f_beta from moda.evaluators.metrics import calculate_metrics_with_shift, _join_metrics def test_f_beta1(): precision = 0.6 recall = 1.0 beta = 1 f = f_beta(precision, recall, beta) assert (f > 0.74) and (f < 0.76) def test_f_beta3(...
34.4
90
0.604451
0
0
0
0
0
0
0
0
581
0.11648
2d601a610adba2a9dbf87218ce0ac031d70916ca
9,070
py
Python
server/utils/server_db.py
DoctorChe/Python_DataBase_PyQT
6f65bad52edf9afa8cfce9689f7e88f87d420d9d
[ "MIT" ]
1
2019-08-07T20:08:32.000Z
2019-08-07T20:08:32.000Z
server/utils/server_db.py
DoctorChe/Python_DataBase_PyQT
6f65bad52edf9afa8cfce9689f7e88f87d420d9d
[ "MIT" ]
6
2019-08-08T11:53:09.000Z
2019-09-11T14:45:59.000Z
server/utils/server_db.py
DoctorChe/Python_DataBase_PyQT
6f65bad52edf9afa8cfce9689f7e88f87d420d9d
[ "MIT" ]
null
null
null
from contextlib import contextmanager from sqlalchemy import MetaData from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from .config_server import SERVER_DATABASE engine = create_engine(SERVER_DATABASE) Base = declarative_base(metadat...
40.672646
115
0.634179
0
0
190
0.017318
206
0.018777
0
0
10,184
0.928265
2d62a8f36d7f870a7dac21567c1c12af16462737
3,064
py
Python
glouton/repositories/archive/archiveRepo.py
deckbsd/glouton-satnogs-data-downloader
9674081b669b0ca3c04513ede4127c6221962a73
[ "MIT" ]
13
2018-01-29T06:08:15.000Z
2020-03-04T07:00:56.000Z
glouton/repositories/archive/archiveRepo.py
deckbsd/glouton-satnogs-data-downloader
9674081b669b0ca3c04513ede4127c6221962a73
[ "MIT" ]
10
2018-12-21T11:37:21.000Z
2021-05-09T12:39:23.000Z
glouton/repositories/archive/archiveRepo.py
deckbsd/glouton-satnogs-data-downloader
9674081b669b0ca3c04513ede4127c6221962a73
[ "MIT" ]
4
2019-01-25T13:40:13.000Z
2019-07-22T08:14:19.000Z
from queue import Queue from threading import Thread from glouton.commands.download.downloadCommandParams import DownloadCommandParams from glouton.commands.download.archiveDownloadCommand import ArchiveDownloadCommand from glouton.commands.module.endModuleCommand import EndModuleCommand from glouton.commands.module.en...
49.419355
125
0.744778
2,376
0.775457
0
0
0
0
0
0
64
0.020888
2d63bc571680f79f12326140ffc844c72f08a20c
418
py
Python
DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py
Swiss-Polar-Institute/data-workflow
4c7fee1d78d67512ae6710449e625fd945468dd9
[ "MIT" ]
null
null
null
DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py
Swiss-Polar-Institute/data-workflow
4c7fee1d78d67512ae6710449e625fd945468dd9
[ "MIT" ]
12
2019-10-25T15:01:06.000Z
2021-09-22T18:02:03.000Z
DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py
Swiss-Polar-Institute/data-workflow
4c7fee1d78d67512ae6710449e625fd945468dd9
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-25 19:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('file_deletion', '0004_maxlength_etag'), ] operations = [ migrations.AlterField( model_name='deletedfile', name='file...
22
73
0.617225
325
0.777512
0
0
0
0
0
0
116
0.277512
2d641c2640b0ffe80cc97c24622ffeee1f154b10
84
py
Python
tools/Sikuli/DoReplace.sikuli/DoReplace.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
296
2018-05-27T08:03:14.000Z
2022-03-19T08:36:11.000Z
tools/Sikuli/DoReplace.sikuli/DoReplace.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
1,562
2018-05-27T18:36:25.000Z
2022-03-31T07:35:11.000Z
tools/Sikuli/DoReplace.sikuli/DoReplace.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
299
2018-06-18T20:00:56.000Z
2022-03-29T12:29:55.000Z
click(Pattern("Bameumbrace.png").similar(0.80)) sleep(1) click("3abnb.png") exit(0)
16.8
47
0.714286
0
0
0
0
0
0
0
0
28
0.333333
2d6468482d56c0366eac034ecc843d9749364fb7
1,459
py
Python
src/python/procyon/types.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/types.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/types.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2017 The Procyon Authors # # 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 # # Un...
27.018519
82
0.669637
128
0.087731
0
0
0
0
0
0
648
0.44414
2d6528c8b581dc40057b868ca114d1c79a0e8e3f
5,053
py
Python
approval/models.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
2
2019-06-08T22:50:59.000Z
2020-07-12T14:13:18.000Z
approval/models.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
13
2020-02-11T23:51:43.000Z
2021-06-05T13:10:49.000Z
approval/models.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
null
null
null
from django.db import models,transaction from contact.models import Customer from product.models import Stock from django.urls import reverse from django.db.models import Sum # Create your models here. class Approval(models.Model): created_at = models.DateTimeField(auto_now_add = True, editable = F...
34.37415
81
0.579458
4,839
0.957649
0
0
475
0.094004
0
0
523
0.103503
2d662757e1d86c36d9d911b8a2139bac3250db00
221
py
Python
Other/pdf2imageTest.py
Wanganator414/python
afa7a931bd9da8a5235a6cd889bfc417950165fe
[ "MIT" ]
1
2019-08-17T03:31:19.000Z
2019-08-17T03:31:19.000Z
Other/pdf2imageTest.py
Wanganator414/python
afa7a931bd9da8a5235a6cd889bfc417950165fe
[ "MIT" ]
null
null
null
Other/pdf2imageTest.py
Wanganator414/python
afa7a931bd9da8a5235a6cd889bfc417950165fe
[ "MIT" ]
null
null
null
from pdf2image import convert_from_path, convert_from_bytes from pdf2image.exceptions import ( PDFInfoNotInstalledError, PDFPageCountError, PDFSyntaxError ) images = convert_from_path('.\git_cheat_sheet.pdf')
27.625
59
0.809955
0
0
0
0
0
0
0
0
23
0.104072
2d677e943a4a9eb487c23dd1525395a69ff39881
3,097
py
Python
Google-Meet-Scheduler/script.py
dsrao711/Amazing-Python-Scripts
4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7
[ "MIT" ]
1
2021-04-17T08:33:25.000Z
2021-04-17T08:33:25.000Z
Google-Meet-Scheduler/script.py
dsrao711/Amazing-Python-Scripts
4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7
[ "MIT" ]
null
null
null
Google-Meet-Scheduler/script.py
dsrao711/Amazing-Python-Scripts
4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7
[ "MIT" ]
1
2021-07-22T07:06:09.000Z
2021-07-22T07:06:09.000Z
from googleapiclient.discovery import build from uuid import uuid4 from google.auth.transport.requests import Request from pathlib import Path from google_auth_oauthlib.flow import InstalledAppFlow from typing import Dict, List from pickle import load, dump class CreateMeet: def __init__(self, attendees: Dict[str,...
44.884058
137
0.60155
1,834
0.592186
0
0
1,543
0.498224
0
0
900
0.290604
2d6b129b7aafbb8730c539aaa5e1008046619452
392
py
Python
app/main/models/rover.py
Jeffmusa/Twende_Dev_Project
97881cd4ad754cfd01ba02da912b4c4515d76327
[ "MIT" ]
1
2019-10-08T13:09:21.000Z
2019-10-08T13:09:21.000Z
app/main/models/rover.py
Jeffmusa/Twende_Dev_Project
97881cd4ad754cfd01ba02da912b4c4515d76327
[ "MIT" ]
null
null
null
app/main/models/rover.py
Jeffmusa/Twende_Dev_Project
97881cd4ad754cfd01ba02da912b4c4515d76327
[ "MIT" ]
4
2018-09-04T07:10:25.000Z
2019-10-08T12:53:43.000Z
class Rover: def __init__(self,photo,name,date): self.photo = photo self.name = name self.date = date class Articles: def __init__(self,author,title,description,url,poster,time): self.author = author self.title = title self.description = description ...
26.133333
64
0.594388
381
0.971939
0
0
0
0
0
0
0
0
2d6b6bfc0fc1ea8f28924520ef3ca4e11fecded3
782
py
Python
submissions/urls.py
annalee/alienplan
b54722d683a5e8eba03f4467a367bcf24339bb32
[ "MIT" ]
5
2018-07-23T13:44:33.000Z
2021-12-24T20:13:57.000Z
submissions/urls.py
annalee/alienplan
b54722d683a5e8eba03f4467a367bcf24339bb32
[ "MIT" ]
25
2018-02-11T00:02:08.000Z
2021-07-06T22:35:30.000Z
submissions/urls.py
annalee/alienplan
b54722d683a5e8eba03f4467a367bcf24339bb32
[ "MIT" ]
1
2021-12-02T14:48:15.000Z
2021-12-02T14:48:15.000Z
from django.urls import path from . import views urlpatterns = [ path('panel/', views.panel, name='panel-noslug'), path('panel/<slug:conslug>/', views.panel, name='panel'), path('panelreview/', views.PendingPanelList.as_view(), name='pending-panel-list-noslug'), path('panelreview/<slug:conslug...
43.444444
80
0.677749
0
0
0
0
0
0
0
0
332
0.424552
2d6c392d23be86039709559e2b39f5d2016733c8
1,538
py
Python
voicebox_project.py
raccoonML/audiotools
9b378a7e4b136cdb5e1b7a048f8d35794880a4b0
[ "MIT" ]
null
null
null
voicebox_project.py
raccoonML/audiotools
9b378a7e4b136cdb5e1b7a048f8d35794880a4b0
[ "MIT" ]
null
null
null
voicebox_project.py
raccoonML/audiotools
9b378a7e4b136cdb5e1b7a048f8d35794880a4b0
[ "MIT" ]
null
null
null
import librosa import numpy as np import audio from hparams import hparams """ This helps implement a user interface for a vocoder. Currently this is Griffin-Lim but can be extended to different vocoders. Required elements for the vocoder UI are: self.sample_rate self.source_action self.vocode_action """ class Voice...
32.041667
91
0.692458
1,228
0.79844
0
0
0
0
0
0
786
0.511053
2d6d0fc2ece7d6b6190b0adbadaceaefdccb6df6
472
py
Python
templatetags/spreedly_tags.py
shelfworthy/django-spreedly
95e4572fec67501835d08c3e54e9437345733784
[ "MIT" ]
2
2015-09-28T10:08:13.000Z
2015-11-08T12:46:43.000Z
templatetags/spreedly_tags.py
shelfworthy/django-spreedly
95e4572fec67501835d08c3e54e9437345733784
[ "MIT" ]
null
null
null
templatetags/spreedly_tags.py
shelfworthy/django-spreedly
95e4572fec67501835d08c3e54e9437345733784
[ "MIT" ]
null
null
null
from django.conf import settings from django import template from spreedly.functions import subscription_url register = template.Library() @register.simple_tag def existing_plan_url(user): return 'https://spreedly.com/%(site_name)s/subscriber_accounts/%(user_token)s' % { 'site_name': settings.SPREEDLY_SI...
27.764706
86
0.760593
0
0
0
0
328
0.694915
0
0
94
0.199153
2d6f0d4c488163d6af2961ff00285a48a9efa061
981
py
Python
tests/test_replace_lcsh.py
BookOps-CAT/ChangeSubject
bff86ad58685db169a99f9ad3b2df1179cffb5a3
[ "MIT" ]
1
2022-01-13T20:28:12.000Z
2022-01-13T20:28:12.000Z
tests/test_replace_lcsh.py
BookOps-CAT/ChangeSubject
bff86ad58685db169a99f9ad3b2df1179cffb5a3
[ "MIT" ]
null
null
null
tests/test_replace_lcsh.py
BookOps-CAT/ChangeSubject
bff86ad58685db169a99f9ad3b2df1179cffb5a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from src.replace_lcsh import replace_term, lcsh_fields, normalize_subfields # def test_flip_impacted_fields(fake_bib): # pass @pytest.mark.parametrize( "arg,expectation", [ (1, ["a", "local term", "x", "subX1", "x", "subX2", "z", "subZ."]), (3, ["a...
24.525
75
0.554536
0
0
0
0
496
0.505607
0
0
320
0.326198
2d6f17060fd47cde9fb3914ca0a07ef8a05b18d0
6,178
py
Python
tutorplanner/input/data.py
tutor-planner/tutor-planner
25119d2d50322e3a68ebc2a12f9c49f95ff51ad8
[ "ISC" ]
1
2018-04-16T17:35:57.000Z
2018-04-16T17:35:57.000Z
tutorplanner/input/data.py
tutor-planner/tutor-planner
25119d2d50322e3a68ebc2a12f9c49f95ff51ad8
[ "ISC" ]
null
null
null
tutorplanner/input/data.py
tutor-planner/tutor-planner
25119d2d50322e3a68ebc2a12f9c49f95ff51ad8
[ "ISC" ]
1
2020-10-14T12:56:19.000Z
2020-10-14T12:56:19.000Z
__author__ = ("Matthias Rost <mrost AT inet.tu-berlin.de>, " "Alexander Elvers <aelvers AT inet.tu-berlin.de>") __all__ = ["Data"] from collections import OrderedDict from typing import Dict, List, Optional from . import tutor from . import rooms from ..util import converter from ..util.settings import...
38.855346
117
0.597443
5,842
0.945613
0
0
4,061
0.657332
0
0
1,202
0.194561
2d6f721c6dc031148182f002703abf47c155dce1
359
py
Python
tests/doubles/producers.py
ess-dmsc/JustBinIt
dc8242ed44f03e92f60618c96596025ec8cbc40e
[ "BSD-2-Clause" ]
null
null
null
tests/doubles/producers.py
ess-dmsc/JustBinIt
dc8242ed44f03e92f60618c96596025ec8cbc40e
[ "BSD-2-Clause" ]
23
2018-12-04T11:50:37.000Z
2022-03-17T11:30:39.000Z
tests/doubles/producers.py
ess-dmsc/JustBinIt
dc8242ed44f03e92f60618c96596025ec8cbc40e
[ "BSD-2-Clause" ]
2
2019-07-24T11:13:41.000Z
2020-08-04T18:33:22.000Z
from just_bin_it.exceptions import KafkaException class SpyProducer: def __init__(self, brokers=None): self.messages = [] def publish_message(self, topic, message): self.messages.append((topic, message)) class StubProducerThatThrows: def publish_message(self, topic, message): ra...
23.933333
49
0.715877
303
0.844011
0
0
0
0
0
0
18
0.050139