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
aa76e89131f556e4b895bbde1b48b9a5fe172a26
1,278
py
Python
codeforces/binarySearch二分搜索/1400/1284B上升组合.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/binarySearch二分搜索/1400/1284B上升组合.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/binarySearch二分搜索/1400/1284B上升组合.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 #https://codeforces.com/problemset/problem/1284/B #记录每个序列是否有上升,如果没有min.max是多少.. #n=1e5,还得避免O(N**2).. #上升情况分解 #情况1: sx+sy中sx或sy本身是上升的 #情况2: sx,sy都不上升,判断四个极值的情况(存在几个上升) #DP..增量计数; f(n+1)=f(n)+X; X=?? # 如果s本身上升,X=(2n+1) # 如果s本身不升,拿s的min/max去一个数据结构去检查(min/max各一个?)..(低于线性..binary search??) # .. def ...
25.058824
84
0.517997
0
0
0
0
0
0
0
0
650
0.442779
aa7b7c8babb6becd9e4e564c3c915d139ea9f52e
50
py
Python
tests/regressiontests/auth_decorators/__init__.py
mdornseif/huDjango
ce6f256b2e3e9fec4af749aebcae81a973e8874b
[ "BSD-2-Clause" ]
null
null
null
tests/regressiontests/auth_decorators/__init__.py
mdornseif/huDjango
ce6f256b2e3e9fec4af749aebcae81a973e8874b
[ "BSD-2-Clause" ]
1
2017-02-16T16:07:03.000Z
2017-02-17T09:49:20.000Z
tests/regressiontests/auth_decorators/__init__.py
hudora/huDjango
c99ce38517d706973df8e97df48274ab9392f52e
[ "BSD-2-Clause" ]
null
null
null
"""Test hudjango.auth.decorator functionality."""
25
49
0.76
0
0
0
0
0
0
0
0
49
0.98
aa7c2fe26948a573c0ecf561cfcced69727cd5a6
3,672
py
Python
examples/ttt_wm_vs_human.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
10
2019-11-01T01:09:57.000Z
2022-02-17T09:15:12.000Z
examples/ttt_wm_vs_human.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
40
2019-08-06T18:01:31.000Z
2021-07-15T12:38:56.000Z
examples/ttt_wm_vs_human.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
6
2019-08-15T01:45:19.000Z
2021-06-01T19:54:29.000Z
from apprentice.agents import SoarTechAgent from apprentice.working_memory import ExpertaWorkingMemory from apprentice.working_memory.representation import Sai # from apprentice.learners.when_learners import q_learner from ttt_simple import ttt_engine, ttt_oracle def get_user_demo(): print() print("Current Pl...
31.930435
76
0.498094
0
0
0
0
0
0
0
0
751
0.204521
aa7c9e46ce390c33e4950020c5b8e38f18d9c7b1
2,905
py
Python
pic_carver.py
volf52/black_hat_python
063c241db473d3ef25782efc17f651c3aa66b4f8
[ "MIT" ]
null
null
null
pic_carver.py
volf52/black_hat_python
063c241db473d3ef25782efc17f651c3aa66b4f8
[ "MIT" ]
null
null
null
pic_carver.py
volf52/black_hat_python
063c241db473d3ef25782efc17f651c3aa66b4f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ @author : 'Muhammad Arslan <rslnrkmt2552@gmail.com>' """ import re import zlib import cv2 from scapy.all import * pics = "pictues" faces_dir = "faces" pcap_file = "bhp.pcap" def get_http_headers(http_payload): try: headers_raw = http_payload[:http_payload.index("\r\n\r\n")+2...
25.9375
87
0.571084
0
0
0
0
0
0
0
0
399
0.137349
aa7e5a273a38c1c336f9c6538edfafbe1859aa62
1,536
py
Python
py/testdir_hosts/test_rf_311M_rows_hosts.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_hosts/test_rf_311M_rows_hosts.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_hosts/test_rf_311M_rows_hosts.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
import unittest, sys, time sys.path.extend(['.','..','py']) import h2o_cmd, h2o, h2o_hosts, h2o_browse as h2b, h2o_import as h2i # Uses your username specific json: pytest_config-<username>.json # copy pytest_config-simple.json and modify to your needs. class Basic(unittest.TestCase): def tearDown(self): h...
35.72093
108
0.647786
1,230
0.800781
0
0
150
0.097656
0
0
408
0.265625
aa7f45d29566c608c5cb4116ab2b18d2257d27b0
1,229
py
Python
.ipynb_checkpoints/config-checkpoint.py
BillKiller/ECG_shandong
bb73f3c5eccfe68badf0e783ca1305783ceeb0fc
[ "Apache-2.0" ]
null
null
null
.ipynb_checkpoints/config-checkpoint.py
BillKiller/ECG_shandong
bb73f3c5eccfe68badf0e783ca1305783ceeb0fc
[ "Apache-2.0" ]
null
null
null
.ipynb_checkpoints/config-checkpoint.py
BillKiller/ECG_shandong
bb73f3c5eccfe68badf0e783ca1305783ceeb0fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' @time: 2019/9/8 18:45 @ author: javis ''' import os class Config: # for data_process.py #root = r'D:\ECG' root = r'data' train_dir = os.path.join(root, 'ecg_data/') # test_dir = os.path.join(root, 'ecg_data/testA') # train_label = os.path.join(root, 'hf_round1_labe...
19.822581
63
0.598861
1,308
0.92569
0
0
0
0
0
0
776
0.549186
aa7ffb92cb8baa6e29735ecc7cc7fe43b3457d06
974
py
Python
integration-tests/steps/test_update_stack.py
rootifera/sceptre
0a1aeb8305c38dbd5c6c6cc6ec0cae4d468abdcf
[ "Apache-2.0" ]
2
2021-05-16T09:43:29.000Z
2022-03-15T10:21:54.000Z
integration-tests/steps/test_update_stack.py
joseroubert08/sceptre
652b844ce69aecfe0ed31d918a6b49fd954a23bd
[ "Apache-2.0" ]
null
null
null
integration-tests/steps/test_update_stack.py
joseroubert08/sceptre
652b844ce69aecfe0ed31d918a6b49fd954a23bd
[ "Apache-2.0" ]
null
null
null
from behave import * import subprocess import os import boto3 @when("the stack config is changed") def step_impl(context): # Get config file path vpc_config_file = os.path.abspath(os.path.join( os.path.dirname(os.path.dirname(__file__)), "config", "test-env", "a", "vpc....
25.631579
69
0.63039
0
0
0
0
903
0.927105
0
0
263
0.270021
aa80d9ba0e36ab051a2ec4dfeed5a0569841b3bc
840
py
Python
test.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
test.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
test.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
import cv2 import matplotlib.pyplot as plt import easyocr reader = easyocr.Reader(['en'], gpu=False) image = cv2.imread('results/JK_21_05/page_1.jpg') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) dilated = cv2.dilate(image, None, iterations=1) eroded = cv2.erode(image, None, iterations=1) res = reader.readtext(erod...
31.111111
97
0.646429
0
0
0
0
0
0
0
0
106
0.12619
aa819751141039d158103e1e22f76244cbd9c7bf
874
py
Python
configs/_base_/models/x3d.py
ptoupas/mmaction2
1e1911295b63cffeba4c6f4809cb74d291c4505b
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/x3d.py
ptoupas/mmaction2
1e1911295b63cffeba4c6f4809cb74d291c4505b
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/x3d.py
ptoupas/mmaction2
1e1911295b63cffeba4c6f4809cb74d291c4505b
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='Recognizer3D', backbone=dict(type='X3D', frozen_stages = -1, gamma_w=1, gamma_b=2.25, gamma_d=2.2), cls_head=dict( type='X3DHead', in_channels=432, num_classes=400, multi_class=False, spatial_type='avg', dropout_ratio=0.7, ...
29.133333
88
0.606407
0
0
0
0
0
0
0
0
504
0.576659
aa84562ff31e7d467b614463b77b32138e9f4492
372
py
Python
amktools/util.py
jimbo1qaz/amktools
25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c
[ "BSD-3-Clause" ]
2
2020-03-14T06:13:03.000Z
2022-03-03T17:53:51.000Z
amktools/util.py
nyanpasu64/amktools
25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c
[ "BSD-3-Clause" ]
14
2018-06-19T14:48:58.000Z
2018-10-28T07:02:27.000Z
amktools/util.py
jimbo1qaz/amktools
25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c
[ "BSD-3-Clause" ]
null
null
null
from typing import TypeVar, Optional def ceildiv(n: int, d: int) -> int: return -(-n // d) T = TypeVar("T") def coalesce(*args: Optional[T]) -> T: if len(args) == 0: raise TypeError("coalesce expected >=1 argument, got 0") for arg in args: if arg is not None: return arg ...
20.666667
64
0.594086
0
0
0
0
0
0
0
0
75
0.201613
aa8496130dc2cec7262e9b446640da8f5aad4fbe
1,589
py
Python
tello_detection_v2.py
m0dzi77a/jetson-nano-drone-surveillance
a3846e1e7b9d1656f5fada8fabc4b53e5264973e
[ "MIT" ]
null
null
null
tello_detection_v2.py
m0dzi77a/jetson-nano-drone-surveillance
a3846e1e7b9d1656f5fada8fabc4b53e5264973e
[ "MIT" ]
null
null
null
tello_detection_v2.py
m0dzi77a/jetson-nano-drone-surveillance
a3846e1e7b9d1656f5fada8fabc4b53e5264973e
[ "MIT" ]
null
null
null
from djitellopy import Tello import cv2, math import numpy as np import jetson.inference import jetson.utils from threading import Thread import time net = jetson.inference.detectNet("ssd-mobilenet-v1", threshold=0.5) #facenet is working; ssd-mobilenet-v1 drohne = Tello() drohne.connect() print(drohne.get_battery()) ...
24.828125
105
0.684707
0
0
0
0
0
0
0
0
179
0.112649
aa84e85a9b53b2b65be434c51bb6eb739b861665
3,638
py
Python
sql_judge/model/load_types.py
r4ulill0/gui_dbjudge
7c421c6f2fe1281f95e624242338b3e020ee5f28
[ "MIT" ]
1
2020-12-11T10:45:58.000Z
2020-12-11T10:45:58.000Z
sql_judge/model/load_types.py
r4ulill0/gui_dbjudge
7c421c6f2fe1281f95e624242338b3e020ee5f28
[ "MIT" ]
null
null
null
sql_judge/model/load_types.py
r4ulill0/gui_dbjudge
7c421c6f2fe1281f95e624242338b3e020ee5f28
[ "MIT" ]
null
null
null
from PyQt5.QtCore import QAbstractTableModel, QAbstractItemModel from PyQt5.QtCore import Qt, QModelIndex, pyqtSlot class LoadTypesProcess(QAbstractTableModel): def __init__(self): super().__init__() self.csv_values = [] self.header_model = HeaderModel() def index(self, row, column, p...
33.685185
75
0.631116
3,516
0.966465
0
0
0
0
0
0
4
0.0011
aa8608fd488af6aaed7a72ebd77b25da200b3ddd
3,752
py
Python
examples/example1.py
michael-riha/gstreamer-101-python
be281f91ebdd260ce23f747cc32e1ae2133410e9
[ "MIT" ]
4
2020-06-09T14:21:26.000Z
2021-07-31T19:30:19.000Z
examples/example1.py
michael-riha/gstreamer-101-python
be281f91ebdd260ce23f747cc32e1ae2133410e9
[ "MIT" ]
null
null
null
examples/example1.py
michael-riha/gstreamer-101-python
be281f91ebdd260ce23f747cc32e1ae2133410e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # mix of: # https://www.programcreek.com/python/example/88577/gi.repository.Gst.Pipeline # https://github.com/GStreamer/gst-python/blob/master/examples/helloworld.py # http://lifestyletransfer.com/how-to-launch-gstreamer-pipeline-in-python/ import sys import collections from pprint import pprint...
32.344828
142
0.691365
0
0
0
0
0
0
0
0
1,674
0.446162
aa8996944e86f8abe0a588ebb23f714fffd14e70
3,464
py
Python
tests/server1_test.py
kalebswartz7/sirepo
8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972
[ "Apache-2.0" ]
null
null
null
tests/server1_test.py
kalebswartz7/sirepo
8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972
[ "Apache-2.0" ]
null
null
null
tests/server1_test.py
kalebswartz7/sirepo
8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""Test simulationSerial :copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function import pytest pytest.importorskip('srwl_bl') #: Used for a sanity check o...
29.862069
101
0.610277
0
0
0
0
0
0
0
0
1,352
0.3903
aa8a28180d9f5e87c7bd636c0ff1fa82ab7cd53e
1,306
py
Python
kg_nodeexporter/tests/test_builder.py
RangelReale/kg_nodeexporter
e8e2635940d83f05b674414489ea70519d881fa4
[ "MIT" ]
null
null
null
kg_nodeexporter/tests/test_builder.py
RangelReale/kg_nodeexporter
e8e2635940d83f05b674414489ea70519d881fa4
[ "MIT" ]
null
null
null
kg_nodeexporter/tests/test_builder.py
RangelReale/kg_nodeexporter
e8e2635940d83f05b674414489ea70519d881fa4
[ "MIT" ]
null
null
null
import unittest from kubragen import KubraGen from kubragen.jsonpatch import FilterJSONPatches_Apply, ObjectFilter, FilterJSONPatch from kubragen.provider import Provider_Generic from kg_nodeexporter import NodeExporterBuilder, NodeExporterOptions class TestBuilder(unittest.TestCase): def setUp(self): s...
42.129032
113
0.701378
1,053
0.806279
0
0
0
0
0
0
229
0.175345
aa8a95508ab94b965d527ae1816936f597cbd54c
1,349
py
Python
docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py
RichardZhaoW/AML-Kubernetes
dd699c484c0811bc2b7a21f80f19e0c40832acdc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py
RichardZhaoW/AML-Kubernetes
dd699c484c0811bc2b7a21f80f19e0c40832acdc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py
RichardZhaoW/AML-Kubernetes
dd699c484c0811bc2b7a21f80f19e0c40832acdc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
import os import json import time import torch # Called when the deployed service starts def init(): global model global device # Get the path where the deployed model can be found. model_filename = 'obj_segmentation.pkl' model_path = os.path.join(os.environ['AZUREML_MODEL_DIR'], model_filename) ...
31.372093
87
0.631579
0
0
0
0
0
0
0
0
276
0.204596
aa8aecad2be10769e57043eef6e4e9a70e4c119c
5,023
py
Python
acos_client/v21/slb/virtual_port.py
jjmanzer/acos-client
a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c
[ "Apache-2.0" ]
null
null
null
acos_client/v21/slb/virtual_port.py
jjmanzer/acos-client
a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c
[ "Apache-2.0" ]
null
null
null
acos_client/v21/slb/virtual_port.py
jjmanzer/acos-client
a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014, Doug Wiegley, A10 Networks. # # 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 appli...
34.641379
98
0.601433
4,285
0.853076
0
0
0
0
0
0
1,348
0.268366
aa8b120c78b48885a14d17efcfc8523380e3b89e
388
py
Python
base/struct_data.py
cateatfish108/AutoTest
8697aadd4c60c6a7cb435f784fc5c588805067bf
[ "MIT" ]
null
null
null
base/struct_data.py
cateatfish108/AutoTest
8697aadd4c60c6a7cb435f784fc5c588805067bf
[ "MIT" ]
null
null
null
base/struct_data.py
cateatfish108/AutoTest
8697aadd4c60c6a7cb435f784fc5c588805067bf
[ "MIT" ]
null
null
null
#coding:utf-8 # 数据库结构体 class DataBase: url = "" port = 3306 username = "" password = "" database = "" charset = "" # 测试用例信息结构体 class CaseInfo: path = "" case_list = [] # 测试用例结构体 class Case: url = "" db_table = "" case_id = "" method = "" data = {} c...
12.933333
21
0.474227
338
0.782407
0
0
0
0
0
0
109
0.252315
aa8b89cc9bb68c461a7f8b894c654bdcdd501e2a
2,000
py
Python
pox/info/debug_deadlock.py
korrigans84/pox_network
cd58d95d97c94b3d139bc2026fd1be0a30987911
[ "Apache-2.0" ]
416
2015-01-05T18:16:36.000Z
2022-03-28T21:44:26.000Z
pox/info/debug_deadlock.py
korrigans84/pox_network
cd58d95d97c94b3d139bc2026fd1be0a30987911
[ "Apache-2.0" ]
140
2015-01-18T23:32:34.000Z
2022-03-17T05:40:24.000Z
pox/info/debug_deadlock.py
korrigans84/pox_network
cd58d95d97c94b3d139bc2026fd1be0a30987911
[ "Apache-2.0" ]
344
2015-01-08T06:44:23.000Z
2022-03-26T04:06:27.000Z
# Copyright 2012 James McCauley # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
28.169014
74
0.7135
0
0
0
0
0
0
0
0
945
0.4725
aa8c0c3cea083104acd36512910c56a34a5f2037
850
py
Python
src/test/chirc/tests/fixtures.py
Schrotty/sIRC
c2edf179651794ddc75ea26a69429933ab04809d
[ "MIT" ]
2
2019-03-26T06:22:50.000Z
2019-03-26T11:16:25.000Z
test/tests/chirc/tests/fixtures.py
MU001999/npcp
af0f8c33ef518d01580a95dcaea3951b1fa7087c
[ "MIT" ]
1
2016-05-02T19:52:25.000Z
2016-05-03T20:37:16.000Z
test/tests/chirc/tests/fixtures.py
MU001999/npcp
af0f8c33ef518d01580a95dcaea3951b1fa7087c
[ "MIT" ]
null
null
null
channels1 = { "#test1": ("@user1", "user2", "user3"), "#test2": ("@user4", "user5", "user6"), "#test3": ("@user7", "user8", "user9") } channels2 = { "#test1": ("@user1", "user2", "user3"), "#test2": ("@user4", "user5", "user6"), "#test3": ("@user7", "...
42.5
73
0.372941
0
0
0
0
0
0
0
0
401
0.471765
aa8c8dfa05d8f4d2b3026058517396daf687dbef
20,989
py
Python
src/annalist_root/annalist/models/entityfinder.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
18
2015-02-20T23:09:13.000Z
2020-11-13T06:06:43.000Z
src/annalist_root/annalist/models/entityfinder.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
30
2015-01-03T09:56:28.000Z
2021-06-10T20:58:55.000Z
src/annalist_root/annalist/models/entityfinder.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
5
2015-02-02T09:01:23.000Z
2018-06-14T20:05:28.000Z
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ This module contains (and isolates) logic used to find entities based on entity type, list selection criteria and search terms. """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 20...
38.441392
112
0.554529
18,885
0.899757
4,125
0.196532
4,784
0.227929
0
0
10,260
0.488827
aa8d4e3a21127f714c7d16f0c3d1dca3b4a21610
3,029
py
Python
screengrab.py
denosawr/fairdyne-ai
cd275ecbf12d239fd2705090a7632174e6f2a8a7
[ "MIT" ]
null
null
null
screengrab.py
denosawr/fairdyne-ai
cd275ecbf12d239fd2705090a7632174e6f2a8a7
[ "MIT" ]
null
null
null
screengrab.py
denosawr/fairdyne-ai
cd275ecbf12d239fd2705090a7632174e6f2a8a7
[ "MIT" ]
null
null
null
from mss import mss from PIL import Image def screengrab(monitor=0, output="screenshot.png"): """ Uses MSS to capture a screenshot quickly. """ sct = mss() monitors = sct.enum_display_monitors() scale = 1 game_x = 300*scale game_y = 300*scale mon_x = monitors[monitor]["left"] mon_y = ...
28.308411
97
0.528557
0
0
0
0
0
0
0
0
346
0.114229
aa8f41fdb7d2b4f91adbdaae406e59a5680747b1
3,829
py
Python
camper/handlers/users/edit.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
13
2016-03-13T02:33:39.000Z
2021-04-01T13:09:12.000Z
camper/handlers/users/edit.py
comlounge/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
122
2016-03-10T09:28:09.000Z
2021-09-07T23:49:05.000Z
camper/handlers/users/edit.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
5
2017-01-11T22:00:57.000Z
2020-04-26T14:03:32.000Z
#encoding=utf8 from starflyer import Handler, redirect, asjson from camper import BaseForm, db, BaseHandler from camper import logged_in, is_admin from wtforms import * from sfext.babel import T from camper.handlers.forms import * import werkzeug.exceptions from bson import ObjectId from camper.handlers.images import ...
41.619565
254
0.630713
3,484
0.909898
0
0
1,685
0.440063
0
0
939
0.245234
aa91f44f3777df08b95fda1ce748bac56394b3f3
4,210
py
Python
scripts/citation_extractor/citation_extractor.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
scripts/citation_extractor/citation_extractor.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
scripts/citation_extractor/citation_extractor.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
import argparse import h5py import sys import os from savu.version import __version__ class NXcitation(object): def __init__(self, description, doi, endnote, bibtex): self.description = description.decode('UTF-8') self.doi = doi.decode('UTF-8') self.endnote = endnote.decode('UTF-8') ...
32.890625
75
0.592399
2,489
0.591211
0
0
0
0
0
0
745
0.17696
aa93c24856d615e9328af105c675a5a9cd2f9c75
25,124
py
Python
src/predict_ball_pos/src/predict_ball_position.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
src/predict_ball_pos/src/predict_ball_position.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
src/predict_ball_pos/src/predict_ball_position.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
#! /home/drcl_yang/anaconda3/envs/py36/bin/python from pathlib import Path import sys FILE = Path(__file__).absolute() sys.path.append(FILE.parents[0].as_posix()) # add code to path path = str(FILE.parents[0]) import numpy as np from sympy import Symbol, solve import time import roslib import rospy from std_msgs...
35.942775
202
0.589715
22,123
0.879502
0
0
0
0
0
0
4,791
0.190467
aa95b0a5becffa05a70a8eaa0b843668b5455d7e
14,697
py
Python
methylize/genome_browser.py
FoxoTech/methylize
383d7beebfd62d858c4fb7248e027f8faa2862dc
[ "MIT" ]
2
2021-12-27T22:46:36.000Z
2022-03-08T17:13:29.000Z
methylize/genome_browser.py
FoxoTech/methylize
383d7beebfd62d858c4fb7248e027f8faa2862dc
[ "MIT" ]
4
2021-07-15T18:43:56.000Z
2022-03-09T21:29:55.000Z
methylize/genome_browser.py
FoxoTech/methylize
383d7beebfd62d858c4fb7248e027f8faa2862dc
[ "MIT" ]
1
2022-03-07T06:02:41.000Z
2022-03-07T06:02:41.000Z
import time import pymysql # for pulling UCSC data import pandas as pd from pathlib import Path import logging # app from .progress_bar import * # tqdm, context-friendly LOGGER = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) logging.getLogger('numexpr').setLevel(logging.WARNING) # these login st...
55.044944
192
0.669048
0
0
0
0
0
0
0
0
9,302
0.632918
aa95d6856b327f32c668b348733f9e3447d221f2
104
py
Python
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
22
2016-08-23T11:27:37.000Z
2022-03-01T04:15:20.000Z
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
68
2015-06-25T17:13:22.000Z
2017-05-08T16:01:47.000Z
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
10
2017-05-06T19:09:41.000Z
2021-10-16T17:55:02.000Z
import sys, json # simple JSON echo script for line in sys.stdin: print json.dumps(json.loads(line))
17.333333
36
0.740385
0
0
0
0
0
0
0
0
25
0.240385
aa97298a7164be0094cd007d6b0ccc9b510f720f
329
py
Python
test.py
sxhfut/Kashgari
efc9510ed53f5bb78183e66d96d57a55cc290a91
[ "MIT" ]
1
2019-01-26T15:18:07.000Z
2019-01-26T15:18:07.000Z
test.py
sxhfut/Kashgari
efc9510ed53f5bb78183e66d96d57a55cc290a91
[ "MIT" ]
null
null
null
test.py
sxhfut/Kashgari
efc9510ed53f5bb78183e66d96d57a55cc290a91
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: BrikerMan @contact: eliyar917@gmail.com @blog: https://eliyar.biz @version: 1.0 @license: Apache Licence @file: test.py.py @time: 2019-01-25 14:43 """ import unittest from tests import * from kashgari.utils.logger import init_logger init_logger() if __name__ == '__main__': unittes...
15.666667
45
0.717325
0
0
0
0
0
0
0
0
192
0.583587
aa9a7b51d2199fe8ca1968592f12f16f55f4da67
536
py
Python
crossasr/text.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
3
2021-05-12T02:48:06.000Z
2021-12-21T14:45:56.000Z
crossasr/text.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
null
null
null
crossasr/text.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
1
2021-06-14T11:15:35.000Z
2021-06-14T11:15:35.000Z
import functools @functools.total_ordering class Text: def __init__(self, id: int, text: str): self.id = id self.text = text def __eq__(self, other): return self.id == other.id and self.text == other.text def __lt__(self, other): return (self.id, self.text) < (other.id, ot...
20.615385
62
0.587687
491
0.916045
0
0
517
0.964552
0
0
0
0
aa9c166f4f3a357bb68cf49d28d3ae8d2761ad49
1,661
py
Python
models/Forest.py
guitassinari/random-forest
7e679f21da8f39c36bf3fcd3d02f066bad6f0305
[ "MIT" ]
null
null
null
models/Forest.py
guitassinari/random-forest
7e679f21da8f39c36bf3fcd3d02f066bad6f0305
[ "MIT" ]
1
2019-05-30T12:16:07.000Z
2019-05-30T12:16:07.000Z
models/Forest.py
guitassinari/machine-learning
7e679f21da8f39c36bf3fcd3d02f066bad6f0305
[ "MIT" ]
1
2019-05-10T20:22:23.000Z
2019-05-10T20:22:23.000Z
from models.DecisionTree import DecisionTree class Forest: def __init__(self, hyper_parameters, training_set): """ Inicializa a floresta com suas árvores. :param hyper_parameters: dictionary/hash contendo os hiper parâmetros :param training_set: dataset de treinamento """ ...
38.627907
92
0.660446
1,624
0.971292
0
0
0
0
0
0
592
0.354067
aa9c683934f9013e24a201545cdec92668339683
912
py
Python
ansibler/exceptions/ansibler.py
ProfessorManhattan/ansibler
ca3cbd8af974b59a70e6c46b4ee7f97f68158031
[ "MIT" ]
null
null
null
ansibler/exceptions/ansibler.py
ProfessorManhattan/ansibler
ca3cbd8af974b59a70e6c46b4ee7f97f68158031
[ "MIT" ]
null
null
null
ansibler/exceptions/ansibler.py
ProfessorManhattan/ansibler
ca3cbd8af974b59a70e6c46b4ee7f97f68158031
[ "MIT" ]
null
null
null
class BaseAnsiblerException(Exception): message = "Error" def __init__(self, *args, **kwargs) -> None: super().__init__(*args) self.__class__.message = kwargs.get("message", self.message) def __str__(self) -> str: return self.__class__.message class CommandNotFound(BaseAnsiblerEx...
24
68
0.737939
890
0.975877
0
0
0
0
0
0
190
0.208333
aaa22c2733b8a63c15dd9acde1ab8ad0c3984613
2,358
py
Python
gestao_contato/tests.py
rbiassusi/gesta_contatos
cb0c391f99843cd637627ed3c62c9afddc7e4047
[ "MIT" ]
null
null
null
gestao_contato/tests.py
rbiassusi/gesta_contatos
cb0c391f99843cd637627ed3c62c9afddc7e4047
[ "MIT" ]
null
null
null
gestao_contato/tests.py
rbiassusi/gesta_contatos
cb0c391f99843cd637627ed3c62c9afddc7e4047
[ "MIT" ]
1
2019-01-07T00:48:42.000Z
2019-01-07T00:48:42.000Z
# -*- coding: utf-8 -*- from django.test import TestCase, Client from models import Contato import json class TestCase(TestCase): """ Realiza o teste utilizando request a API e avaliando seu retorno """ def setUp(self): self.c = Client() def test_contato_api(self): """ te...
40.655172
153
0.607718
2,252
0.954642
0
0
0
0
0
0
1,118
0.47393
aaa2a22421918ddfde6678f1b564035567b5ee57
2,073
py
Python
bouncy.py
kary1806/bouncy
afbd8a2e030cd51c0c8b84062ce7aa2b51f549df
[ "MIT" ]
null
null
null
bouncy.py
kary1806/bouncy
afbd8a2e030cd51c0c8b84062ce7aa2b51f549df
[ "MIT" ]
null
null
null
bouncy.py
kary1806/bouncy
afbd8a2e030cd51c0c8b84062ce7aa2b51f549df
[ "MIT" ]
null
null
null
from itertools import count, tee class Bouncy: def __init__(self, porcentage): """ print the number bouncy :type porcentage: int -> this is porcentage of the bouncy """ nums = count(1) rebound = self.sum_number(map(lambda number: float(self.is_rebound(number)), coun...
28.39726
102
0.554752
2,017
0.972986
223
0.107574
0
0
0
0
873
0.421129
aaa40f7d32c94661f35c79a2fb1ee27a71d6e4e9
909
py
Python
pipeline.py
ankitshah009/BioASQ-Rabbit
1d3073fbcdebb58b91788b6c2ab0ad9380cb2498
[ "Apache-2.0" ]
1
2019-01-29T13:37:45.000Z
2019-01-29T13:37:45.000Z
pipeline.py
ankitshah009/BioASQ-Rabbit
1d3073fbcdebb58b91788b6c2ab0ad9380cb2498
[ "Apache-2.0" ]
1
2018-08-27T21:02:24.000Z
2018-08-27T21:02:24.000Z
pipeline.py
ankitshah009/BioASQ-Rabbit
1d3073fbcdebb58b91788b6c2ab0ad9380cb2498
[ "Apache-2.0" ]
8
2018-03-26T17:36:39.000Z
2019-02-28T14:23:25.000Z
#!/usr/bin/env python import sys from deiis.rabbit import Message, MessageBus from deiis.model import Serializer, DataSet, Question if __name__ == '__main__': if len(sys.argv) == 1: print 'Usage: python pipeline.py <data.json>' exit(1) # filename = 'data/training.json' filename = sys.argv...
28.40625
56
0.641364
0
0
0
0
0
0
0
0
288
0.316832
aaa4c207cfec938248e0931caed06acd8c3825c0
1,100
py
Python
106 Construct Binary Tree from Preorder and Inorder Traversal.py
gavinfish/LeetCode
7b5461a7c3cd1b19ddb320a5fc761240551cf75a
[ "MIT" ]
1
2019-09-02T14:30:23.000Z
2019-09-02T14:30:23.000Z
106 Construct Binary Tree from Preorder and Inorder Traversal.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
null
null
null
106 Construct Binary Tree from Preorder and Inorder Traversal.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
3
2018-04-09T20:48:43.000Z
2019-09-02T14:30:37.000Z
""" Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. """ __author__ = 'Danyang' class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution:...
26.829268
85
0.600909
911
0.828182
0
0
0
0
0
0
550
0.5
aaa51a521d3a0300cbf24d8410ea883d91cf4af5
259
py
Python
Python/python_study_4/page13/script.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
Python/python_study_4/page13/script.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
Python/python_study_4/page13/script.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
from menu_item import MenuItem # Move the code above to menu_item.py # Import the MenuItem class from menu_item.py menu_item1 = MenuItem('Sandwich', 5) print(menu_item1.info()) result = menu_item1.get_total_price(4) print('Your total is $' + str(result))
21.583333
45
0.756757
0
0
0
0
0
0
0
0
109
0.420849
aaa58dde0227337d66c75dfc5e8aed3813f137aa
398
py
Python
ipysimulate/tools.py
JoelForamitti/ipysimulate
06753f9ef48c82b96b1b2c736accee3dcbbf1a22
[ "BSD-3-Clause" ]
5
2021-06-03T06:38:38.000Z
2021-12-27T17:33:06.000Z
ipysimulate/tools.py
JoelForamitti/ipysimulate
06753f9ef48c82b96b1b2c736accee3dcbbf1a22
[ "BSD-3-Clause" ]
null
null
null
ipysimulate/tools.py
JoelForamitti/ipysimulate
06753f9ef48c82b96b1b2c736accee3dcbbf1a22
[ "BSD-3-Clause" ]
null
null
null
def make_list(element, keep_none=False): """ Turns element into a list of itself if it is not of type list or tuple. """ if element is None and not keep_none: element = [] # Convert none to empty list if not isinstance(element, (list, tuple, set)): element = [element] elif isinstan...
33.166667
51
0.640704
0
0
0
0
0
0
0
0
111
0.278894
aaa591a53fa83f8defb9c29838d54ab4f867449f
392
py
Python
2048/View.py
nsiegner/AI-ML-learning
885c7a1e519a601aafe646419b8d4b6f683f590b
[ "Apache-2.0" ]
1
2021-07-04T08:18:21.000Z
2021-07-04T08:18:21.000Z
2048/View.py
nsiegner/AI-ML-learning
885c7a1e519a601aafe646419b8d4b6f683f590b
[ "Apache-2.0" ]
2
2021-07-04T13:39:51.000Z
2021-07-04T13:41:25.000Z
2048/View.py
nsiegner/AI-ML-learning
885c7a1e519a601aafe646419b8d4b6f683f590b
[ "Apache-2.0" ]
null
null
null
import tkinter as tk class View(): def __init__(self): window = tk.Tk() self.frame = tk.Frame(master=window, width=200, height=200) self.frame.pack() def show_grid(self, grid): for i in range(4): for j in range(4): label = tk.Label(master=self.frame,...
28
68
0.540816
369
0.941327
0
0
0
0
0
0
0
0
aaa6b62d2482defbe3a9a248af3f048c7de3d0b9
310
py
Python
other tests/test_6_create_record_label.py
pavelwearevolt/Cross_Edit_TestsAutomatization
953691244d86c5832fe2a2705841711939a353a5
[ "Apache-2.0" ]
null
null
null
other tests/test_6_create_record_label.py
pavelwearevolt/Cross_Edit_TestsAutomatization
953691244d86c5832fe2a2705841711939a353a5
[ "Apache-2.0" ]
null
null
null
other tests/test_6_create_record_label.py
pavelwearevolt/Cross_Edit_TestsAutomatization
953691244d86c5832fe2a2705841711939a353a5
[ "Apache-2.0" ]
null
null
null
__author__ = 'pavelkosicin' from model.label import Label def test_create_record_label(app): app.label.create_recording_artist(Label(name="rl_#1", asap="WB86-8RH31.50UTS-J", note="Mens autem qui est in festinabat non facere bonum, voluntas in malo reperit."))
38.75
129
0.664516
0
0
0
0
0
0
0
0
119
0.383871
aaa912e4125bf98280e59e7693dee4c4d3bd7d22
583
py
Python
tensorsketch/evaluate.py
udellgroup/tensorsketch
7d40a46232809cb1dcd306d1ca79e6a3d017e43e
[ "MIT" ]
6
2019-11-05T09:04:40.000Z
2021-11-01T13:05:43.000Z
tensorsketch/evaluate.py
udellgroup/tensorsketch
7d40a46232809cb1dcd306d1ca79e6a3d017e43e
[ "MIT" ]
null
null
null
tensorsketch/evaluate.py
udellgroup/tensorsketch
7d40a46232809cb1dcd306d1ca79e6a3d017e43e
[ "MIT" ]
null
null
null
import numpy as np def eval_rerr(X, X_hat, X0=None): """ :param X: tensor, X0 or X0+noise :param X_hat: output for apporoximation :param X0: true signal, tensor :return: the relative error = ||X- X_hat||_F/ ||X_0||_F """ if X0 is not None: error = X0 - X_hat return np.linalg....
38.866667
74
0.590051
0
0
0
0
0
0
0
0
207
0.35506
aaaa0a2f7d99affa2c085f7c1bef27b274ad7031
2,208
py
Python
mne/datasets/visual_92_categories/visual_92_categories.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2021-01-04T08:45:56.000Z
2021-05-19T12:25:59.000Z
mne/datasets/visual_92_categories/visual_92_categories.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
mne/datasets/visual_92_categories/visual_92_categories.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
4
2021-09-08T14:35:26.000Z
2022-02-25T22:34:52.000Z
# License: BSD Style. from ...utils import verbose from ..utils import _data_path, _data_path_doc, _get_version, _version_doc @verbose def data_path(path=None, force_update=False, update_path=True, download=True, verbose=None): """ Get path to local copy of visual_92_categories dataset. .....
36.8
79
0.695199
0
0
0
0
1,780
0.806159
0
0
1,658
0.750906
aaaa178c8c04cddbd491ee6f45b2a2ede27a0ba8
1,131
py
Python
src/commons/helpers.py
thierrydecker/nfpy
bda460feb07719e66dc25c763172fc380559e022
[ "Apache-2.0" ]
null
null
null
src/commons/helpers.py
thierrydecker/nfpy
bda460feb07719e66dc25c763172fc380559e022
[ "Apache-2.0" ]
null
null
null
src/commons/helpers.py
thierrydecker/nfpy
bda460feb07719e66dc25c763172fc380559e022
[ "Apache-2.0" ]
null
null
null
"""helpers module """ import json import pcap import yaml def get_adapters_names(): """Finds all adapters on the system :return: A list of the network adapters available on the system """ return pcap.findalldevs() def config_loader_yaml(config_name): """Loads a .yml configuration file :p...
28.275
109
0.713528
0
0
0
0
0
0
0
0
728
0.643678
aaaa51e39689a6d3e1aac6a8577a83f2d366cb9b
428
py
Python
evaluarnumprimo.py
neriphy/numeros_primos
c1d57e671ae68becb8c4805a5564eebbd5bd9209
[ "MIT" ]
null
null
null
evaluarnumprimo.py
neriphy/numeros_primos
c1d57e671ae68becb8c4805a5564eebbd5bd9209
[ "MIT" ]
null
null
null
evaluarnumprimo.py
neriphy/numeros_primos
c1d57e671ae68becb8c4805a5564eebbd5bd9209
[ "MIT" ]
null
null
null
#Evaludador de numero primo #Created by @neriphy numero = input("Ingrese el numero a evaluar: ") divisor = numero - 1 residuo = True while divisor > 1 and residuo == True: if numero%divisor != 0: divisor = divisor - 1 print("Evaluando") residuo = True elif numero%divisor == 0: residuo = False if residu...
18.608696
47
0.682243
0
0
0
0
0
0
0
0
132
0.308411
aaabc289d3f067812b7a261387d3381bf400a556
2,364
py
Python
src/ssp/ml/transformer/text_preprocessor.py
gyan42/spark-streaming-playground
147ef9cbc31b7aed242663dee36143ebf0e8043f
[ "Apache-2.0" ]
10
2020-03-12T11:51:46.000Z
2022-03-24T04:56:05.000Z
src/ssp/ml/transformer/text_preprocessor.py
gyan42/spark-streaming-playground
147ef9cbc31b7aed242663dee36143ebf0e8043f
[ "Apache-2.0" ]
12
2020-04-23T07:28:14.000Z
2022-03-12T00:20:24.000Z
src/ssp/ml/transformer/text_preprocessor.py
gyan42/spark-streaming-playground
147ef9cbc31b7aed242663dee36143ebf0e8043f
[ "Apache-2.0" ]
1
2020-04-20T14:48:38.000Z
2020-04-20T14:48:38.000Z
#!/usr/bin/env python __author__ = "Mageswaran Dhandapani" __copyright__ = "Copyright 2020, The Spark Structured Playground Project" __credits__ = [] __license__ = "Apache License" __version__ = "2.0" __maintainer__ = "Mageswaran Dhandapani" __email__ = "mageswaran1989@gmail.com" __status__ = "Education Purpose" impo...
30.701299
105
0.666244
827
0.349831
0
0
0
0
0
0
668
0.282572
aaad7708222b1bb4cca970a38baa955e6d67bbd1
737
py
Python
multi_lan_ner.py
jpotwor/multi_lan_ner
93494fc8e440e85d7111d16e388fdce78cb04bd7
[ "MIT" ]
null
null
null
multi_lan_ner.py
jpotwor/multi_lan_ner
93494fc8e440e85d7111d16e388fdce78cb04bd7
[ "MIT" ]
null
null
null
multi_lan_ner.py
jpotwor/multi_lan_ner
93494fc8e440e85d7111d16e388fdce78cb04bd7
[ "MIT" ]
null
null
null
import spacy def find_entities(input_phrase, language): models = { 'en': 'en_core_web_sm', 'pl': 'pl_core_news_sm', 'fr': 'fr_core_news_sm', 'de': 'de_core_news_sm', 'it': 'it_core_news_sm', } if language in models: nlp = spacy.load(models[language]) doc = nlp(input_phrase)...
32.043478
138
0.651289
0
0
0
0
0
0
0
0
293
0.397558
aaad78389190fcfac231fdc6ed3013707ef9bc63
488
py
Python
Daily-Coding-Problem/Problem4/Problem4.py
grisreyesrios/Solutions--Daily-Coding-Problems
beb977e6666800b2158e43a649ed197ad2f79d0a
[ "MIT" ]
1
2019-02-14T00:35:26.000Z
2019-02-14T00:35:26.000Z
Daily-Coding-Problem/Problem4/Problem4.py
grisreyesrios/Solutions--Daily-Coding-Problems
beb977e6666800b2158e43a649ed197ad2f79d0a
[ "MIT" ]
null
null
null
Daily-Coding-Problem/Problem4/Problem4.py
grisreyesrios/Solutions--Daily-Coding-Problems
beb977e6666800b2158e43a649ed197ad2f79d0a
[ "MIT" ]
1
2021-10-18T00:51:51.000Z
2021-10-18T00:51:51.000Z
# Python programming that returns the weight of the maximum weight path in a triangle def triangle_max_weight(arrs, level=0, index=0): if level == len(arrs) - 1: return arrs[level][index] else: return arrs[level][index] + max( triangle_max_weight(arrs, level + 1, index), triangle_ma...
34.857143
104
0.637295
0
0
0
0
0
0
0
0
112
0.229508
aaadabaa6eb1195381301ba6975765da7236103f
1,114
py
Python
src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
33.757576
86
0.587074
757
0.679533
0
0
0
0
0
0
652
0.585278
aab014923354c5dbc253ff0489aad994d6e58895
4,687
py
Python
python/FPgrowth/updateConfidence.py
gingi99/research_dr
584f66738f345706e3cba1ae9cc1f417d6a0e72e
[ "MIT" ]
1
2016-09-08T12:16:01.000Z
2016-09-08T12:16:01.000Z
python/FPgrowth/updateConfidence.py
gingi99/research_dr
584f66738f345706e3cba1ae9cc1f417d6a0e72e
[ "MIT" ]
null
null
null
python/FPgrowth/updateConfidence.py
gingi99/research_dr
584f66738f345706e3cba1ae9cc1f417d6a0e72e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Usage : python ~~.py import sys import os import pickle import collections import pandas as pd import numpy as np from itertools import chain from itertools import combinations from itertools import compress from itertools import product from sklearn.metrics import accuracy_score from multiproc...
31.668919
119
0.584809
1,314
0.274723
0
0
0
0
0
0
1,217
0.254443
aab07d8e601e02e0aaa27e2764b313638874d9dd
591
py
Python
24/03/0.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
24/03/0.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
39
2017-07-31T22:54:01.000Z
2017-08-31T00:19:03.000Z
24/03/0.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
#!python3.6 import difflib from pprint import pprint import sys text1 = ''' 1. Beautiful is better than ugly. 2. Explicit is better than implicit. 3. Simple is better than complex. 4. Complex is better than complicated. '''.splitlines(keepends=True) text2 = ''' 1. Beautiful is better than ugly. 3. Simple i...
25.695652
46
0.707276
0
0
0
0
0
0
0
0
337
0.57022
aab0d967698a31c9d52d9f317c79aa9d34e38826
5,703
py
Python
domestic/views/ukef.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
10
2020-04-30T12:04:35.000Z
2021-07-21T12:48:55.000Z
domestic/views/ukef.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
1,461
2020-01-23T18:20:26.000Z
2022-03-31T08:05:56.000Z
domestic/views/ukef.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
3
2020-04-07T20:11:36.000Z
2020-10-16T16:22:59.000Z
from directory_forms_api_client.actions import PardotAction from directory_forms_api_client.helpers import Sender from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import redirect from django.urls import reverse, reverse_lazy from django.utils.decorators import method_d...
37.519737
120
0.650009
4,921
0.862879
0
0
3,327
0.583377
0
0
1,062
0.186218
aab1082f2e51d53d812f98ef5dcddda1de448fca
25,138
py
Python
sbol_utilities/excel_to_sbol.py
ArchitJain1201/SBOL-utilities
398c885eb9139e0833141ef45e87181253193724
[ "MIT" ]
3
2021-12-24T09:23:39.000Z
2022-02-08T21:01:48.000Z
sbol_utilities/excel_to_sbol.py
ArchitJain1201/SBOL-utilities
398c885eb9139e0833141ef45e87181253193724
[ "MIT" ]
57
2021-04-26T14:36:54.000Z
2022-03-22T14:02:37.000Z
sbol_utilities/excel_to_sbol.py
ArchitJain1201/SBOL-utilities
398c885eb9139e0833141ef45e87181253193724
[ "MIT" ]
13
2021-11-07T15:12:52.000Z
2022-03-21T13:09:02.000Z
import unicodedata import warnings import logging import re import argparse import sbol3 import openpyxl import tyto from .helper_functions import toplevel_named, strip_sbol2_version, is_plasmid, url_to_identity, strip_filetype_suffix from .workarounds import type_to_standard_extension BASIC_PARTS_COLLECTION = 'Basi...
49.876984
164
0.691423
0
0
0
0
0
0
0
0
9,000
0.358024
aab1e49d7e867714a47a33900ab3c0e741463041
5,921
py
Python
jsonschema/tests/test_jsonschema_test_suite.py
prdpklyn/greens-jsonschema
36b9d726733102a2a869e0db8fb351942a159f5c
[ "MIT" ]
null
null
null
jsonschema/tests/test_jsonschema_test_suite.py
prdpklyn/greens-jsonschema
36b9d726733102a2a869e0db8fb351942a159f5c
[ "MIT" ]
null
null
null
jsonschema/tests/test_jsonschema_test_suite.py
prdpklyn/greens-jsonschema
36b9d726733102a2a869e0db8fb351942a159f5c
[ "MIT" ]
null
null
null
""" Test runner for the JSON Schema official test suite Tests comprehensive correctness of each draft's validator. See https://github.com/json-schema-org/JSON-Schema-Test-Suite for details. """ import sys from jsonschema import ( Draft3Validator, Draft4Validator, Draft6Validator, Draft7Validator, ...
30.209184
79
0.636717
0
0
0
0
0
0
0
0
1,451
0.24506
aab254d87e54d35e023480f5b36f3f53979b98fb
8,635
py
Python
signalworks/tracking/multitrack.py
lxkain/tracking
00ed9a0b31c4880687a42df3bf9651e68e0c4360
[ "MIT" ]
2
2019-04-09T17:28:34.000Z
2019-06-05T10:05:11.000Z
signalworks/tracking/multitrack.py
lxkain/tracking
00ed9a0b31c4880687a42df3bf9651e68e0c4360
[ "MIT" ]
11
2019-04-19T23:03:38.000Z
2019-11-22T17:59:07.000Z
signalworks/tracking/multitrack.py
lxkain/tracking
00ed9a0b31c4880687a42df3bf9651e68e0c4360
[ "MIT" ]
3
2019-05-01T16:02:32.000Z
2019-06-25T18:05:39.000Z
import copy import json import os from collections import UserDict from signalworks.tracking import Event, Partition, TimeValue, Value, Wave class MultiTrack(UserDict): """ A dictionary containing time-synchronous tracks of equal duration and fs """ def __init__(self, mapping=None): if mappi...
36.901709
107
0.555067
8,490
0.983208
0
0
2,428
0.281181
0
0
2,115
0.244933
aab47503ee8d0e3164856b1141204d18fa2f42fa
41
py
Python
fixture/__init__.py
hippa777/python_training
568c12e1a21c3c7eb40a1af25a9db83690a1b26d
[ "Apache-2.0" ]
null
null
null
fixture/__init__.py
hippa777/python_training
568c12e1a21c3c7eb40a1af25a9db83690a1b26d
[ "Apache-2.0" ]
null
null
null
fixture/__init__.py
hippa777/python_training
568c12e1a21c3c7eb40a1af25a9db83690a1b26d
[ "Apache-2.0" ]
null
null
null
from .contact_helper import ContactHelper
41
41
0.902439
0
0
0
0
0
0
0
0
0
0
aab4c92f391c8df0afca6e908ce237106398f88f
1,676
py
Python
blur.py
yasue32/afm-denoise
5342578fada8a6ce68a507afbbbd82f367760366
[ "MIT" ]
1
2022-03-10T09:06:52.000Z
2022-03-10T09:06:52.000Z
blur.py
yasue32/afm-denoise
5342578fada8a6ce68a507afbbbd82f367760366
[ "MIT" ]
null
null
null
blur.py
yasue32/afm-denoise
5342578fada8a6ce68a507afbbbd82f367760366
[ "MIT" ]
null
null
null
import cv2 import matplotlib.pyplot as plt import glob import os filepath ="afm_dataset4/20211126/" files = [line.rstrip() for line in open((filepath+"sep_trainlist.txt"))] files = glob.glob("orig_img/20211112/*") def variance_of_laplacian(image): # compute the Laplacian of the image and then return the focus # me...
29.403509
110
0.648568
0
0
0
0
0
0
0
0
779
0.464797
aab5358c186091fffe57d4f1b00d5fec32b9e7f8
139
py
Python
python/component/base/utils.py
ModerateFish/component
13e778648e7ff3132e30543b0aa9a436ee286f99
[ "Apache-2.0" ]
null
null
null
python/component/base/utils.py
ModerateFish/component
13e778648e7ff3132e30543b0aa9a436ee286f99
[ "Apache-2.0" ]
null
null
null
python/component/base/utils.py
ModerateFish/component
13e778648e7ff3132e30543b0aa9a436ee286f99
[ "Apache-2.0" ]
null
null
null
import os def check_path(path): if not path or not path.strip() or os.path.exists(path): return os.makedirs(path) pass
19.857143
60
0.647482
0
0
0
0
0
0
0
0
0
0
aab57c61fdbffbd48b08ceac3432b1c6895bbeba
1,027
py
Python
python/solutii/ingrid_stoleru/Cursor.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
python/solutii/ingrid_stoleru/Cursor.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
python/solutii/ingrid_stoleru/Cursor.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
#!/usr/bin/env python # *-* coding: UTF-8 *-* """Solutia problemei Cursor""" DIRECTIONS = {" stanga ": [-1, 0], " dreapta ": [1, 0], " jos ": [0, -1], " sus ": [0, 1]} def distanta(string, pozitie): """Determinarea distantei""" directie, valoare = string.split() directie = direct...
26.333333
57
0.542356
0
0
0
0
0
0
0
0
223
0.216926
aab5dd1420b09051fc9fe578384a7add1adbe417
1,932
py
Python
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
null
null
null
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
6
2021-03-19T01:10:18.000Z
2022-03-11T23:49:18.000Z
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
null
null
null
from django.db import models import datetime from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator class Hoods(models.Model): name = models.CharField(max_length = 100) location = mode...
31.16129
80
0.699793
1,702
0.880952
0
0
142
0.073499
0
0
41
0.021222
aab613077debdcab1c40bda4b0c2298ea8cef417
5,710
py
Python
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
1
2020-12-07T19:52:28.000Z
2020-12-07T19:52:28.000Z
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
14
2020-11-18T10:59:07.000Z
2020-12-14T23:49:56.000Z
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
3
2020-11-18T10:04:37.000Z
2020-11-20T08:31:14.000Z
# Author: Pan Fan, Chun Chieh Chang, Sakshi Jain # Date: 2020/11/27 """Compare the performance of different classifier and train the best model given cross_validate results . Usage: src/clf_comparison.py <input_file> <input_file1> <output_file> <output_file1> Options: <input_file> Path (including filename and fil...
37.565789
106
0.648511
0
0
0
0
0
0
0
0
1,758
0.307881
aab7ca71f6747c996ae533f8dc5d23355cbe2498
1,294
py
Python
hebbmodel/fc.py
aimir-lab/hebbian-learning-cnn
ddaf3a66c1c374960dc680f671e64f3f20387590
[ "MIT" ]
18
2019-09-13T10:19:11.000Z
2021-11-13T22:05:06.000Z
hebbmodel/fc.py
GabrieleLagani/HebbianLearningThesis
0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8
[ "MIT" ]
null
null
null
hebbmodel/fc.py
GabrieleLagani/HebbianLearningThesis
0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8
[ "MIT" ]
5
2019-11-24T08:16:14.000Z
2021-02-15T11:41:18.000Z
import torch.nn as nn import params as P import hebbmodel.hebb as H class Net(nn.Module): # Layer names FC = 'fc' CLASS_SCORES = FC # Symbolic name of the layer providing the class scores as output def __init__(self, input_shape=P.INPUT_SHAPE): super(Net, self).__init__() # Shape of the tensors that we ...
30.093023
117
0.718702
1,223
0.945131
0
0
0
0
0
0
550
0.425039
aab8ee0d00657fec39263780f21c6f66db24843f
275
py
Python
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
62
2020-02-14T15:54:12.000Z
2021-11-23T14:12:32.000Z
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
9
2020-04-05T16:19:33.000Z
2022-02-08T14:54:56.000Z
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
5
2021-02-26T14:04:17.000Z
2022-02-10T23:06:16.000Z
""" The :mod:`pure_sklearn.feature_extraction` module deals with feature extraction from raw data. It currently includes methods to extract features from text. """ from ._dict_vectorizer import DictVectorizerPure from . import text __all__ = ["DictVectorizerPure", "text"]
27.5
79
0.789091
0
0
0
0
0
0
0
0
189
0.687273
aab991f211f7427de19a3a6c9a2b406d03220528
3,887
py
Python
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Uppod decoder #------------------------------------------------------------------------------- import urllib2 import cookielib def decode(param): try: #-- define variables loc_3 = [0,0,0,0] ...
44.170455
306
0.516337
0
0
0
0
0
0
0
0
1,860
0.478272
aabb5248f82bb100273f378ab5c8a89f7d30d6fb
11,796
py
Python
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
35
2021-06-11T02:33:05.000Z
2021-12-11T06:24:17.000Z
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
2
2021-05-18T09:24:37.000Z
2021-06-02T13:27:41.000Z
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
8
2021-07-03T12:15:30.000Z
2021-10-31T20:20:29.000Z
import numpy as np from matplotlib import pyplot as plt import pandas as pd from Eir.DTMC.spatialModel.randomMovement.randMoveSIRD import RandMoveSIRD from Eir.utility import Person1 as Person class RandMoveSIRDV(RandMoveSIRD): """ An SIRDV model that follows the Random Movement Model. When the individuals...
44.014925
172
0.622753
11,579
0.981604
0
0
0
0
0
0
7,165
0.607409
aabc2c45a2f070f9b91c1f8410ef7d7691faf98d
183
py
Python
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
from localtalk import create_app, create_server app = create_app() server = create_server() # server.start() if __name__ == '__main__': app.run(debug=True, host='localhost')
15.25
47
0.715847
0
0
0
0
0
0
0
0
37
0.202186
aabc5d5e01aac743c814d779d94ae7e8069ace0d
3,087
py
Python
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
1
2022-02-22T00:38:33.000Z
2022-02-22T00:38:33.000Z
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
import glob import os import numpy as np import nibabel as nb import argparse def get_dir_list(train_path): fnames = glob.glob(train_path) list_train = [] for k, f in enumerate(fnames): list_train.append(os.path.split(f)[0]) return list_train def ParseData(list_data): ''' Creates a...
34.3
103
0.597344
0
0
0
0
0
0
0
0
717
0.232264
aabc8bf96be40a3c1147bd07e49acc07038b9620
220
py
Python
podcast/tests/urls.py
richardcornish/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
7
2017-11-18T13:02:13.000Z
2021-07-31T21:55:24.000Z
podcast/tests/urls.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
24
2017-07-17T21:53:58.000Z
2018-02-16T07:13:39.000Z
podcast/tests/urls.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
4
2017-09-21T12:43:54.000Z
2020-07-19T21:56:30.000Z
try: from django.urls import include, re_path except ImportError: from django.conf.urls import include, url as re_path urlpatterns = [ re_path(r'^podcast/', include('podcast.urls', namespace='podcast')), ]
22
72
0.713636
0
0
0
0
0
0
0
0
35
0.159091
aabcc6bd93dd565fe8912f5540d060fac3483c64
2,246
py
Python
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
1
2020-05-01T18:28:39.000Z
2020-05-01T18:28:39.000Z
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
null
null
null
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
2
2018-09-20T05:01:34.000Z
2020-10-17T04:31:47.000Z
from collections import Iterable class BaseManager(object): # you must initialise self.resource_env in __init__ fields = None class Meta: abstract = True def _is_iterable(self, ids): if isinstance(ids, str) or not isinstance(ids, Iterable): ids = [ids, ] return ...
29.168831
66
0.580142
2,210
0.983972
0
0
0
0
0
0
1,243
0.553428
aabdff6b46e83b814599086ebf3ca4b5caeb3757
2,070
py
Python
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
#moduleForShowingJudges #cmd /K "$(FULL_CURRENT_PATH)" #cd ~/Documents/GitHub/Keyboard-Biometric-Project/Project_Tuples #sudo python -m pip install statistics #python analyzeData.py """ Author: Zachary Nowak and Matthew Nowak Date: 3/09/2018 Program Description: This code can record the Press Time and Flight Time of...
27.236842
114
0.746377
0
0
0
0
0
0
0
0
956
0.461836
aabebbb877a1c20f697d7ae81aa297513ca02e1b
55
py
Python
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
1
2021-03-25T18:09:25.000Z
2021-03-25T18:09:25.000Z
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
null
null
null
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
null
null
null
from dcstats import * from _version import __version__
18.333333
32
0.836364
0
0
0
0
0
0
0
0
0
0
aabf2126b9910565d37c2a5e085fe433495cd4f3
1,081
py
Python
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]: ## By passing the case if empty linked list if not he...
34.870968
74
0.513414
929
0.859389
0
0
0
0
0
0
529
0.489362
aabfd5bbe9382d35bafe6c720396d8fc59846fad
973
py
Python
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
import unittest def get_formatted_name(first, last, middle = ""): """生成整洁的姓名""" if middle: full_name = f"{first} {middle} {last}" else: full_name = f"{first} {last}" return full_name.title() class NamesTestCase(unittest.TestCase): #创建一个测试类,继承于unittest.TestCase 这样才能Python自动测试 """测试...
37.423077
84
0.700925
863
0.673692
0
0
0
0
0
0
737
0.575332
aac0f353687286013f76de3fe4744864c20ace98
2,350
py
Python
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
null
null
null
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
2
2019-04-06T12:00:53.000Z
2020-07-03T12:49:34.000Z
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
null
null
null
import requests as r from collections import defaultdict class session(): req = {"jsonrpc": "2.0", "id": 1} sid = None def __init__(self, server='http://raspisanie.admin.tomsk.ru/api/rpc.php'): self.server = server self.sid = self.request("startSession")['sid'] def reques...
35.606061
139
0.488936
2,285
0.97234
0
0
0
0
0
0
465
0.197872
aac10d4f658b5c83786e200cf1103c6f1cea1eed
785
py
Python
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from hospital.models import Hospital # Create your models here. class Donor(models.Model): name = models.CharField(max_length = 200) username = models.CharField(max_length = 200) password = models.CharField(max_length = 200) gender =...
39.25
75
0.742675
649
0.826752
0
0
0
0
0
0
26
0.033121
aac268001a0c60ebe8f24fe5cd1af73800034677
763
py
Python
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
null
null
null
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
15
2020-12-05T13:52:13.000Z
2020-12-19T10:14:40.000Z
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
null
null
null
from unittest import TestCase from lf3py.test.helper import data_provider from tests.helper.example.flowapi import perform_api class TestHandler(TestCase): @data_provider([ ( { 'path': '/models', 'httpMethod': 'GET', 'headers': {}, ...
25.433333
64
0.441678
631
0.826999
0
0
598
0.783748
0
0
135
0.176933
aac281ff0acf085ecad07a736ee96b4b5d3fb62e
7,651
py
Python
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
'''Trains a simple convnet on the MNIST dataset. Does flat increment from T. Xiao "Error-Driven Incremental Learning in Deep Convolutional Neural Network for Large-Scale Image Classification" Starts with just 3 classes, trains for 12 epochs then incrementally trains the rest of the classes by reusing the trained we...
40.268421
104
0.654947
0
0
0
0
0
0
0
0
1,838
0.24023
aac2c6dc40769fdda9ba80e76f62c737e34017f8
717
py
Python
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
7
2021-03-03T18:53:59.000Z
2022-03-03T03:15:36.000Z
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
3
2021-04-12T13:05:01.000Z
2021-06-22T02:23:03.000Z
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
4
2021-03-17T02:23:59.000Z
2021-11-23T14:08:27.000Z
import torch import torch.nn as nn from loss_fn import contrastive_loss import config class HybridLoss(nn.Module): def __init__(self, alpha=0.5, temperature=0.07): super(HybridLoss, self).__init__() self.contrastive_loss = contrastive_loss.SupConLoss(temperature) self.alpha = alpha def cross_entropy_one_...
29.875
80
0.739191
628
0.875872
0
0
0
0
0
0
0
0
aac45d3626a2953afb5b3ec68ea68c1867bfdeda
2,815
py
Python
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
1
2019-08-18T09:25:49.000Z
2019-08-18T09:25:49.000Z
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
35.632911
75
0.690941
2,014
0.715453
0
0
0
0
0
0
836
0.29698
aac54b5cd7377439826c8dbbf5c7d47f77639abb
606
py
Python
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
4
2017-10-02T17:44:14.000Z
2020-02-14T17:13:57.000Z
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
152
2015-01-04T00:08:44.000Z
2022-01-13T00:43:03.000Z
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
4
2015-04-16T04:27:05.000Z
2021-03-21T20:45:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('history', '0006_committeemember_member'), ] operations = [ migrations.AlterField( model_name='meetingminutes', ...
30.3
236
0.630363
497
0.820132
0
0
0
0
0
0
228
0.376238
aac5f2fa729ffc2397e788cc09dace7dcaea0b65
1,521
py
Python
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
78
2018-05-08T19:07:31.000Z
2021-12-30T19:06:12.000Z
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
5
2018-05-05T08:41:22.000Z
2021-06-28T12:10:20.000Z
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
29
2018-05-18T15:09:15.000Z
2022-03-13T11:00:35.000Z
## Author: Victor Dibia ## Web socket client which is used to send socket messages to a connected server. import websocket import time import json from websocket import WebSocketException, WebSocketConnectionClosedException import sys #import _thread as thread import websocket ws = websocket.WebSocket() retry_thresh...
23.765625
92
0.684418
0
0
0
0
0
0
0
0
444
0.291913
aac63a5d8e54599f688823a384ac72b4a3f7a76c
233
py
Python
app/helpers/header_helpers.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
3
2020-09-28T13:21:21.000Z
2021-05-05T14:14:51.000Z
app/helpers/header_helpers.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
402
2019-11-06T17:23:03.000Z
2022-03-31T16:03:35.000Z
app/helpers/header_helpers.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
10
2020-03-03T14:23:27.000Z
2022-01-31T12:21:21.000Z
def get_span_and_trace(headers): try: trace, span = headers.get("X-Cloud-Trace-Context").split("/") except (ValueError, AttributeError): return None, None span = span.split(";")[0] return span, trace
25.888889
69
0.626609
0
0
0
0
0
0
0
0
29
0.124464
aac6c00a86537ccce38fe26c02205e248a7305d8
8,085
py
Python
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
4
2021-04-27T09:17:28.000Z
2021-12-30T12:31:22.000Z
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
4
2021-04-27T09:17:26.000Z
2021-11-26T13:45:18.000Z
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
null
null
null
from anndata import AnnData import numpy as np import pandas as pd from scipy.sparse import csr_matrix from joblib import delayed from tqdm import tqdm import sys import igraph from .utils import ProgressParallel from .. import logging as logg from .. import settings def pseudotime(adata: AnnData, n_jobs: int = 1, ...
31.830709
119
0.533952
0
0
0
0
0
0
0
0
2,251
0.278417
aac7fccb1c9445a4ec71826fa59e6dfe79f78dc7
6,786
py
Python
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
55
2021-12-10T08:47:06.000Z
2022-03-28T09:02:15.000Z
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
106
2021-11-03T05:16:45.000Z
2022-03-31T06:16:23.000Z
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
13
2021-12-29T08:12:08.000Z
2022-03-28T06:59:45.000Z
# coding=utf-8 # Copyright 2021 The OneFlow Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
36.483871
99
0.645299
6,097
0.898467
2,744
0.404362
0
0
0
0
2,370
0.349248
aaca2df0baf423c25bdc23220c495efb4199a83e
1,198
py
Python
nipype/interfaces/niftyseg/tests/test_lesions.py
mfalkiewicz/nipype
775e21b78fb1ffa2ff9cb12e6f052868bd44d052
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/interfaces/niftyseg/tests/test_lesions.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/niftyseg/tests/test_lesions.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import pytest from ....testing import example_data from ...niftyreg import get_custom_path from ...niftyreg.tests.test_regutils import no_nifty_tool from .. import FillLesions @pytest.mark.skipif(no_nif...
29.219512
78
0.687813
0
0
0
0
903
0.753756
0
0
417
0.34808
aaca67fdbf8819510b7cdbb0ad4af6d2dd57073a
2,358
py
Python
tests/test_services/test_run_filters/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
tests/test_services/test_run_filters/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
tests/test_services/test_run_filters/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def init_actions_(service, args): """ this needs to returns an array of actions representing the depencies between actions. Looks at ACTION_DEPS in this module for an example of what is expected """ # some default logic for simple actions return { 'test': ['install'] } de...
39.966102
180
0.415606
0
0
0
0
0
0
0
0
640
0.271416
aacab0e2817127cfdd9da58cb922f41c6e1f2756
1,297
py
Python
api/test_processor_api.py
AlexRogalskiy/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
4
2020-08-12T04:00:23.000Z
2022-02-12T13:38:44.000Z
api/test_processor_api.py
nadeembinshajahan/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
2
2022-02-12T13:38:50.000Z
2022-02-12T13:40:09.000Z
api/test_processor_api.py
AlexRogalskiy/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
1
2022-02-12T13:38:44.000Z
2022-02-12T13:38:44.000Z
from fastapi.testclient import TestClient import os import sys sys.path.append("..") from libs.config_engine import ConfigEngine from api.config_keys import Config from api.processor_api import ProcessorAPI import pytest config_path='/repo/config-coral.ini' config = ConfigEngine(config_path) app_instance = ProcessorA...
24.471698
73
0.762529
0
0
0
0
0
0
0
0
208
0.16037
aacdab9b402913a1a133e50f920b43e0617690ff
1,353
py
Python
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
1
2021-01-11T18:38:12.000Z
2021-01-11T18:38:12.000Z
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
null
null
null
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
null
null
null
from os import path from setuptools import find_namespace_packages, setup this_directory = path.abspath(path.dirname(__file__)) with open('README.md', encoding='utf-8') as f: long_description = f.read() setup( name='lambda-learner', namespace_packages=['linkedin'], version='0.0.1', long_description...
34.692308
90
0.632668
0
0
0
0
0
0
0
0
608
0.449372
aace2561c26b084c7dd7639860b3d85239529375
222
py
Python
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
67
2018-03-18T13:06:59.000Z
2021-12-21T19:07:13.000Z
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
15
2018-03-15T13:12:33.000Z
2022-02-10T14:46:33.000Z
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
15
2019-06-19T12:04:53.000Z
2022-03-16T16:55:09.000Z
from django.core.serializers.json import DjangoJSONEncoder class CallableJSONEncoder(DjangoJSONEncoder): def default(self, obj): if callable(obj): return obj() return super().default(obj)
24.666667
58
0.689189
160
0.720721
0
0
0
0
0
0
0
0
aad00b037048f38be17375ec73355e9d7864cd27
9,563
py
Python
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
12
2022-02-05T04:56:44.000Z
2022-03-30T09:59:26.000Z
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
import abc import enum import json import pickle import time import Famcy import _ctypes import os import datetime from flask import session from werkzeug.utils import secure_filename # GLOBAL HELPER def get_fsubmission_obj(parent, obj_id): """ Inverse of id() function. But only works if the object is not garbage col...
33.911348
157
0.736066
7,230
0.754146
0
0
4,406
0.459581
0
0
3,407
0.355377
aad089a6f4a448fc23d035f432e9858d598d7704
1,982
py
Python
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
6
2021-03-30T14:08:14.000Z
2021-09-08T02:21:23.000Z
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
from crispy_forms import layout from crispy_forms.helper import FormHelper from django.conf import settings from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from django import forms from .models import UserProfile class RegisterForm(UserCreationForm): username = forms.Ch...
30.492308
75
0.592331
1,722
0.868819
0
0
0
0
0
0
345
0.174067
aad22ce0ae134c7841d5d6eb61bc2075cbcc5f71
3,187
py
Python
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
137
2015-10-23T14:58:42.000Z
2021-11-18T09:59:16.000Z
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
11
2015-10-31T06:51:50.000Z
2022-02-20T20:22:04.000Z
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
62
2015-10-23T14:58:49.000Z
2021-11-18T09:18:13.000Z
import sys import os from multiprocessing import Process, Queue, Manager from threading import Timer from wadi_harness import Harness from wadi_debug_win import Debugger import time import hashlib def test(msg): while True: print 'Process 2:' + msg #print msg def test2(): print 'Process 1' tim...
24.898438
81
0.612488
2,453
0.769689
0
0
0
0
0
0
538
0.168811
aad2be6c93fd38e19f49dbbdc525b7e3001efbe1
7,720
py
Python
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
29
2018-06-21T06:46:17.000Z
2021-09-02T02:47:30.000Z
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
1
2018-11-15T01:51:47.000Z
2018-11-21T10:48:31.000Z
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
7
2018-06-21T06:46:53.000Z
2021-10-04T09:32:24.000Z
# -*- coding: utf-8 -*- """ Independent model based on Geodesic Regression model R_G """ import torch from torch import nn, optim from torch.autograd import Variable from torch.utils.data import DataLoader import torch.nn.functional as F from dataGenerators import ImagesAll, TestImages, my_collate from axisAngle impo...
33.71179
152
0.748964
357
0.046244
0
0
0
0
0
0
1,137
0.14728
aad37494decad9fd0ad1fb72dcfce3587fe45cdf
1,033
py
Python
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
null
null
null
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
4
2021-03-19T01:50:05.000Z
2021-09-22T18:52:13.000Z
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
null
null
null
# from django.shortcuts import render, redirect, get_object_or_404 from .forms import CharacterForm from rick_and_morty_app.models import Character from django.views.generic import ListView, CreateView, UpdateView, DetailView, DeleteView from django.urls import reverse_lazy # new # Create your views here. class HomeP...
31.30303
89
0.771539
715
0.692159
0
0
0
0
0
0
275
0.266215
aad397b94b0cb0be8ca7c28476744dda7ab4e655
339
py
Python
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
import os, sys def mrcnnPath(): filePath = os.path.dirname(os.path.realpath(__file__)) return os.path.abspath(os.path.join(filePath, os.pardir, os.pardir)) def currentFilePath(file=None): file = file if file else __file__ return os.path.dirname(os.path.realpath(file)) def mrcnnToPath(): sys.path....
28.25
72
0.719764
0
0
0
0
0
0
0
0
0
0
aad3cf7fbb7dfdec62fdd48f0ef851241425453c
6,840
py
Python
event_extractor/train/train.py
chenking2020/event_extract_master
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
30
2021-01-22T08:06:07.000Z
2022-03-25T14:01:25.000Z
event_extractor/train/train.py
chenking2020/EventTrainServer
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
4
2021-03-29T09:28:12.000Z
2022-03-25T14:01:14.000Z
event_extractor/train/train.py
chenking2020/EventTrainServer
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
3
2021-01-22T08:06:08.000Z
2022-02-21T04:04:19.000Z
from __future__ import print_function import sys, os sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from event_extractor.dataprocess import data_loader from event_extractor.train.eval import evaluate import importlib import time class TrainProcess(object): def __i...
47.832168
117
0.550146
5,842
0.842758
0
0
0
0
0
0
1,479
0.213358
aad4319f7007dc6fffcb823fea0b0e260ea324c5
3,298
py
Python
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, 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...
31.113208
245
0.654942
2,758
0.836264
0
0
2,788
0.845361
0
0
2,227
0.675258
aad4be15ea0538f236e4812d499d7d48b22d6200
3,114
py
Python
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
null
null
null
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
17
2018-09-03T15:48:33.000Z
2021-05-07T20:14:24.000Z
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
null
null
null
''' data_handler.py ''' import os from sorter.lib.db import DB from sorter.lib.book_utils import get_by_id, get_by_isbn from sorter.lib.parse_xml import parse_isbn13_response, parse_id_response def store_data(books, db_file): ''' Store the book data in the provided database ''' database = DB(db_file) ...
25.95
91
0.624599
0
0
0
0
0
0
0
0
1,079
0.3465
aad6602e278463189f96a290a221da480e19eb2d
3,054
py
Python
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Prepare Filelists for Semantic3D Segmentation Task.''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import math import pathlib import random import argparse from datetime import datetime from logger import ...
37.703704
119
0.614276
0
0
0
0
0
0
0
0
560
0.183366
aad86497556c746db67d036ea08fdadb6f84750c
7,382
py
Python
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
""" Computer system. Scripts related to the class CIM_ComputerSystem. """ import sys import socket import lib_util # This must be defined here, because dockit cannot load modules from here, # and this ontology would not be defined. def EntityOntology(): return ( ["Name"], ) import lib_common from lib_properties...
38.649215
131
0.671227
0
0
0
0
0
0
0
0
3,015
0.408426
aad8819b95f363cf2961e65958f9749138888b61
133
py
Python
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
cidade = str(input('Qual é o Nome da sua Cidade ?: ')).strip() print('Sua cidade possui o nome Santo?',cidade[:5].upper() == 'SANTO')
66.5
70
0.654135
0
0
0
0
0
0
0
0
74
0.552239
aadbf2b63958e62ec45145d598a2e30bf7ec61e8
391
py
Python
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
20
2021-05-01T18:08:07.000Z
2022-03-09T10:24:53.000Z
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
15
2021-03-31T05:20:55.000Z
2022-02-28T13:02:58.000Z
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
4
2020-10-26T20:52:30.000Z
2021-02-19T07:42:52.000Z
import pathlib import urlpath def loading(store=None): if store is None: raise ValueError('data store not specified') if store == 'gs': base = urlpath.URL('gs://') elif store == 'az': base = urlpath.URL('https://carbonplan.blob.core.windows.net') elif store == 'local': ...
23
70
0.608696
0
0
0
0
0
0
0
0
99
0.253197