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
899a7241af6e0b8cdd621ac196abec7ab6dcaa11
1,085
py
Python
tests/test_post.py
DerrickOdhiambo/Flask-IP3
9861d49152bced9d8ddda7783628451e5af10323
[ "MIT" ]
null
null
null
tests/test_post.py
DerrickOdhiambo/Flask-IP3
9861d49152bced9d8ddda7783628451e5af10323
[ "MIT" ]
null
null
null
tests/test_post.py
DerrickOdhiambo/Flask-IP3
9861d49152bced9d8ddda7783628451e5af10323
[ "MIT" ]
null
null
null
import unittest from app.models import User,Post,Comments from app import db class PostTest(unittest.TestCase): def setUp(self): """ Set up method that will run before every Test """ self.post= Post(category='Product', content='Yes we can!') self.user_Derrick = User(userna...
31.911765
104
0.669124
1,005
0.926267
0
0
0
0
0
0
178
0.164055
899b5c413125fdcd4f43aed55ea491b6d8e91b33
4,335
py
Python
ivi/agilent/agilent34410A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/agilent/agilent34410A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/agilent/agilent34410A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2017 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
35.532787
99
0.649135
3,102
0.715571
0
0
0
0
0
0
1,518
0.350173
899b81f532a64949fdb793eda26c5264788f0f7f
2,650
py
Python
python/add_two_numbers.py
babibo180918/leetcode
d9f414beef4bf6d26ec11d2dd925086fd719ab4b
[ "MIT" ]
null
null
null
python/add_two_numbers.py
babibo180918/leetcode
d9f414beef4bf6d26ec11d2dd925086fd719ab4b
[ "MIT" ]
null
null
null
python/add_two_numbers.py
babibo180918/leetcode
d9f414beef4bf6d26ec11d2dd925086fd719ab4b
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ ret = NodeLis...
20.703125
54
0.58717
854
0.322264
0
0
0
0
0
0
277
0.104528
899c26a988f10b6faf552e41fc9a11aea4981d87
3,313
py
Python
ConvertCase.py
GuilhermeSenna/Streamlit-Apps
b44dee1369886f2db79404b7ac03c488d2fd0ffd
[ "MIT" ]
null
null
null
ConvertCase.py
GuilhermeSenna/Streamlit-Apps
b44dee1369886f2db79404b7ac03c488d2fd0ffd
[ "MIT" ]
null
null
null
ConvertCase.py
GuilhermeSenna/Streamlit-Apps
b44dee1369886f2db79404b7ac03c488d2fd0ffd
[ "MIT" ]
null
null
null
import SessionState import base64 import streamlit as st import pyperclip # The input stores the string that is in text_area # The output stores the conversion with the input # This storage is needed because textarea comes before the button session_state = SessionState.get(input='', output='', key=0) # Function use...
37.224719
116
0.689707
0
0
0
0
0
0
0
0
1,419
0.428313
899e05d154700b28dc0f00552d97ba1b87816851
3,474
py
Python
biblio/my_secondary_verifications.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
biblio/my_secondary_verifications.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
biblio/my_secondary_verifications.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
#!_PYTHONLOC # # (C) COPYRIGHT 2020-2021 Ahasuerus # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision: 571 $ # Date: $Date: 2020-11-19 15:53:08 -0500 (Thu, 19 Nov 2020) $ from isfdb impor...
35.44898
107
0.531952
0
0
0
0
0
0
0
0
1,486
0.427749
899e62389d7e3e73d0a9cac9e6a927bac137f515
1,523
py
Python
extended_uva_judge/utilities.py
fritogotlayed/Extended-UVA-Judge
7f4b04052429374d90597757c5bfb2a0a5bfe2ba
[ "MIT" ]
null
null
null
extended_uva_judge/utilities.py
fritogotlayed/Extended-UVA-Judge
7f4b04052429374d90597757c5bfb2a0a5bfe2ba
[ "MIT" ]
null
null
null
extended_uva_judge/utilities.py
fritogotlayed/Extended-UVA-Judge
7f4b04052429374d90597757c5bfb2a0a5bfe2ba
[ "MIT" ]
null
null
null
import os import yaml from extended_uva_judge import errors def get_problem_directory(app_config): """Gets the directory containing the problem configs. :return: The path to the problem configs. :rtype: str """ problem_directory = app_config['problem_directory'] if not problem_directory: ...
29.288462
75
0.730138
0
0
0
0
0
0
0
0
582
0.382141
89a03ad3a212cac804b72e4c7b59a7674d2cca45
2,729
py
Python
reshade/pooling/l2norm.py
jamesjiang52/Reshade
ddc87424c50030b4606c4eb5ec61b4be1d4cad98
[ "MIT" ]
null
null
null
reshade/pooling/l2norm.py
jamesjiang52/Reshade
ddc87424c50030b4606c4eb5ec61b4be1d4cad98
[ "MIT" ]
null
null
null
reshade/pooling/l2norm.py
jamesjiang52/Reshade
ddc87424c50030b4606c4eb5ec61b4be1d4cad98
[ "MIT" ]
null
null
null
""" The following classes are defined: L2NormPoolingNeuron L2NormPoolingLayer """ from math import sqrt from ..utils.validate import * from ..utils.flatten import * class L2NormPoolingNeuron: """ Construct a new l2norm pooling neuron. The output takes on the square root of the sum of the squares ...
31.011364
78
0.614877
2,549
0.934042
0
0
0
0
0
0
1,105
0.40491
89a059a7191529c20325397e8137136f297d1f83
57
py
Python
sisy/__main__.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
6
2017-09-15T03:14:10.000Z
2019-12-03T04:15:21.000Z
sisy/__main__.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
2
2017-09-21T01:49:42.000Z
2017-09-23T16:33:01.000Z
sisy/__main__.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
null
null
null
from sisy import ui if __name__ == "__main__": ui()
11.4
26
0.631579
0
0
0
0
0
0
0
0
10
0.175439
89a0e886b154e2d90823978c34e848f5d1927982
18,885
py
Python
scripts/ur5_open_loop.py
lar-deeufba/real_time_grasp
d5ba0253bc42103b3dc5135d345c3a650f0bd64f
[ "BSD-3-Clause" ]
27
2020-05-26T23:48:12.000Z
2022-01-21T09:33:11.000Z
scripts/ur5_open_loop.py
lar-deeufba/real-time-grasp
d5ba0253bc42103b3dc5135d345c3a650f0bd64f
[ "BSD-3-Clause" ]
null
null
null
scripts/ur5_open_loop.py
lar-deeufba/real-time-grasp
d5ba0253bc42103b3dc5135d345c3a650f0bd64f
[ "BSD-3-Clause" ]
8
2020-05-20T03:29:20.000Z
2021-12-21T13:40:10.000Z
#!/usr/bin/python import rospy import actionlib import numpy as np import argparse import copy from copy import deepcopy import rosservice import sys import re from std_msgs.msg import Float64MultiArray, Float32MultiArray from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal, JointTolera...
35.365169
133
0.714112
14,602
0.773206
0
0
0
0
0
0
5,921
0.313529
89a1c74f6ff7daea200b8e6b6423ed86d7bc83ec
2,936
py
Python
certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py
xoxys/certbot-dns-ispconfig
8d5c0a9df72342ce55db6469d10cdd69ce3bb024
[ "MIT" ]
1
2021-03-19T00:29:39.000Z
2021-03-19T00:29:39.000Z
certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py
xoxys/certbot-dns-ispconfig
8d5c0a9df72342ce55db6469d10cdd69ce3bb024
[ "MIT" ]
6
2020-11-11T21:32:23.000Z
2021-03-20T16:00:17.000Z
certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py
thegeeklab/certbot-dns-corenetworks
8d5c0a9df72342ce55db6469d10cdd69ce3bb024
[ "MIT" ]
null
null
null
"""Tests for certbot_dns_corenetworks.dns_corenetworks.""" import unittest import mock from certbot import errors from certbot.compat import os from certbot.plugins import dns_test_common from certbot.plugins.dns_test_common import DOMAIN from certbot.tests import util as test_util API_USER = "my_user" API_PASSWORD ...
35.373494
93
0.68733
2,553
0.86955
0
0
0
0
0
0
403
0.137262
89a2045cc532ad4eb8b579a9b93af35ce91d0c11
5,068
py
Python
examples/monitor.py
zhuxuanxuan23/ksc-sdk-python
7159953c36cab0ca2eeb27fbc337f96cce0771cd
[ "Apache-2.0" ]
53
2016-09-21T15:52:14.000Z
2021-12-23T09:23:00.000Z
examples/monitor.py
zhuxuanxuan23/ksc-sdk-python
7159953c36cab0ca2eeb27fbc337f96cce0771cd
[ "Apache-2.0" ]
27
2016-09-21T15:24:43.000Z
2021-11-18T08:38:38.000Z
examples/monitor.py
zhuxuanxuan23/ksc-sdk-python
7159953c36cab0ca2eeb27fbc337f96cce0771cd
[ "Apache-2.0" ]
68
2016-09-06T10:33:09.000Z
2021-11-16T07:13:03.000Z
# -*- encoding:utf-8 -*- from kscore.session import get_session import json if __name__ == "__main__": s = get_session() client = s.create_client("monitor", "cn-beijing-6", use_ssl=True) clientv2 = s.create_client("monitorv2", "cn-beijing-6", use_ssl=True) ''' 通用产品线,不包含容器(docker) ''' #Lis...
31.283951
82
0.583662
0
0
0
0
0
0
0
0
3,510
0.684477
89a2a4399e10100131e600830518389f72bbc22b
787
py
Python
malware_rl/envs/utils/sorel.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
61
2020-08-28T19:33:07.000Z
2022-03-26T06:38:29.000Z
malware_rl/envs/utils/sorel.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
11
2020-09-25T18:59:41.000Z
2022-01-31T11:39:57.000Z
malware_rl/envs/utils/sorel.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
12
2020-08-29T01:35:05.000Z
2022-02-07T02:56:35.000Z
import os import sys import lightgbm as lgb import numpy as np from malware_rl.envs.utils.ember import PEFeatureExtractor module_path = os.path.split(os.path.abspath(sys.modules[__name__].__file__))[0] try: model_path = os.path.join(module_path, "sorel.model") except ValueError: print("The model path provid...
27.137931
79
0.717916
445
0.565438
0
0
0
0
0
0
66
0.083863
89a2ae50c2ab46fa15f409a4fc5b32e4fd3a7ad0
732
py
Python
hummingbot/connector/exchange/bittrex/bittrex_utils.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
hummingbot/connector/exchange/bittrex/bittrex_utils.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
hummingbot/connector/exchange/bittrex/bittrex_utils.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_methods import using_exchange CENTRALIZED = True EXAMPLE_PAIR = "ZRX-ETH" DEFAULT_FEES = [0.25, 0.25] KEYS = { "bittrex_api_key": ConfigVar(key="bittrex_api_key", prompt="Enter your Bittrex ...
29.28
66
0.602459
0
0
0
0
0
0
0
0
170
0.23224
89a5548ef4bf1d2363f4677b23a160ba481678ba
1,142
py
Python
actions/list_members.py
stackstorm-enhancements/stackstorm-github
e2ef6ece6b34e50755ec3174ebbe0a42a16f9941
[ "Apache-2.0" ]
1
2020-07-23T21:04:39.000Z
2020-07-23T21:04:39.000Z
actions/list_members.py
ncskier/stackstorm-github
e2ef6ece6b34e50755ec3174ebbe0a42a16f9941
[ "Apache-2.0" ]
7
2020-07-24T00:09:58.000Z
2020-08-11T11:47:39.000Z
actions/list_members.py
stackstorm-enhancements/stackstorm-github
e2ef6ece6b34e50755ec3174ebbe0a42a16f9941
[ "Apache-2.0" ]
null
null
null
import datetime from github.GithubException import UnknownObjectException from lib.base import BaseGithubAction from lib.formatters import user_to_dict __all__ = [ 'ListMembersAction' ] class ListMembersAction(BaseGithubAction): def run(self, user, base_url, filter=None, role=None, limit=20): kwarg...
26.55814
68
0.568301
947
0.829247
0
0
0
0
0
0
36
0.031524
89a5c2838a442d78a5960f630f0b8be24007cf8e
1,405
py
Python
src/calrissian/regularization/regularize_orthogonal.py
awlange/brainsparks
05baff28da347172083672c940406f5696893201
[ "MIT" ]
3
2015-10-30T04:04:02.000Z
2020-02-13T19:08:42.000Z
src/calrissian/regularization/regularize_orthogonal.py
awlange/brainsparks
05baff28da347172083672c940406f5696893201
[ "MIT" ]
null
null
null
src/calrissian/regularization/regularize_orthogonal.py
awlange/brainsparks
05baff28da347172083672c940406f5696893201
[ "MIT" ]
null
null
null
import numpy as np class RegularizeOrthogonal(object): """ Orthogonal """ def __init__(self, coeff_lambda=0.0): self.coeff_lambda = coeff_lambda def cost(self, layers): c = 0.0 for layer in layers: wt = layer.w.transpose() for j in range(layer.outp...
31.222222
68
0.458363
1,383
0.984342
0
0
0
0
0
0
47
0.033452
89a6fed9b1397a9b14c141ea4b85328623a63382
7,839
py
Python
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import sys, bisect from collections import defaultdict from itertools import islice, izip import numpy as np from scipy.misc import logsumexp from scipy.spatial import distance import Levenshtein PUNCTUATION = set(("'", '"', ',', '.', '!', '?', ';', ':', '-', '--', '(', ')', '/', '_', '\\', '+', '<...
33.075949
223
0.56474
4,008
0.51129
1,053
0.134328
1,613
0.205766
0
0
1,379
0.175915
89a7d7559cda29135a7e7a156417c45617de279f
485
py
Python
Search_DnaA_trios/9_adjust_box_mismatch.py
DongMeiJing/DnaA-trios
573c8664515989c2f1f53b7fcc1c3fb928aadbce
[ "Apache-2.0" ]
null
null
null
Search_DnaA_trios/9_adjust_box_mismatch.py
DongMeiJing/DnaA-trios
573c8664515989c2f1f53b7fcc1c3fb928aadbce
[ "Apache-2.0" ]
null
null
null
Search_DnaA_trios/9_adjust_box_mismatch.py
DongMeiJing/DnaA-trios
573c8664515989c2f1f53b7fcc1c3fb928aadbce
[ "Apache-2.0" ]
null
null
null
import pandas as pd file = r'8_calculate_spacer_len.csv' with open(file, 'r') as f: data = pd.read_csv(f) for i in data.index: box_motif = data.at[i, 'box motif'] if '[' in box_motif: data.at[i, 'Upstream mismatch'] = data.at[i, 'Upstream mismatch'] + 0.5 data.at[i, 'Downstream...
30.3125
81
0.562887
0
0
0
0
0
0
0
0
153
0.315464
89a8b28d63bb94947dfc6a9846e9c93c4d60b60d
845
py
Python
creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py
imxiaow/django-xw-project
06d97b7d3701422b08720e00e87f6c471461c19a
[ "MIT" ]
1
2020-11-25T17:33:31.000Z
2020-11-25T17:33:31.000Z
creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py
imxiaow/django-xw-project
06d97b7d3701422b08720e00e87f6c471461c19a
[ "MIT" ]
null
null
null
creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py
imxiaow/django-xw-project
06d97b7d3701422b08720e00e87f6c471461c19a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-30 21:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20201130_1450'), ] operations = [ migrations.AddField( model_name='order', name='note', ...
29.137931
166
0.581065
752
0.889941
0
0
0
0
0
0
208
0.246154
89a8d67890dba5fcad6eb3055086bfd2d086adc8
647
py
Python
HelloWorld/guessinggame.py
zahraaliaghazadeh/python
2f2d0141a916c99e8724f803bd4e5c7246a7a02e
[ "MIT" ]
null
null
null
HelloWorld/guessinggame.py
zahraaliaghazadeh/python
2f2d0141a916c99e8724f803bd4e5c7246a7a02e
[ "MIT" ]
null
null
null
HelloWorld/guessinggame.py
zahraaliaghazadeh/python
2f2d0141a916c99e8724f803bd4e5c7246a7a02e
[ "MIT" ]
null
null
null
# answer = 5 # print("please guess number between 1 and 10: ") # guess = int(input()) # # if guess < answer: # print("Please guess higher") # elif guess > answer: # print ( "Please guess lower") # else: # print("You got it first time") answer = 5 print ("Please guess number between 1 and 10: ") guess = in...
23.107143
54
0.615147
0
0
0
0
0
0
0
0
424
0.655332
89a90718d7e650fc2ad039e8e167881489e64001
2,820
py
Python
spandex/tests/test_io.py
UDST/spandex
2f485b190d521bc84e9a66d71c8161b5214570d8
[ "BSD-3-Clause" ]
21
2015-09-24T08:20:13.000Z
2020-08-10T16:15:03.000Z
spandex/tests/test_io.py
UDST/spandex
2f485b190d521bc84e9a66d71c8161b5214570d8
[ "BSD-3-Clause" ]
3
2018-05-22T21:04:48.000Z
2018-05-30T20:40:44.000Z
spandex/tests/test_io.py
UDST/spandex
2f485b190d521bc84e9a66d71c8161b5214570d8
[ "BSD-3-Clause" ]
14
2015-09-21T17:59:02.000Z
2020-05-06T05:12:40.000Z
import numpy as np import pandas as pd from pandas.util import testing as pdt import pytest from spandex import TableFrame from spandex.io import db_to_df, df_to_db def test_tableframe(loader): table = loader.tables.sample.hf_bg for cache in [False, True]: tf = TableFrame(table, index_col='gid', cach...
34.814815
75
0.664184
0
0
0
0
516
0.182979
0
0
541
0.191844
89aa44250287866cbb838c9fe67275c1ccae22e7
2,471
py
Python
cohesity_management_sdk/models/vserver_network_interface.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/vserver_network_interface.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/vserver_network_interface.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class VserverNetworkInterface(object): """Implementation of the 'Vserver Network Interface.' model. Specifies information about a logical network interface on a NetApp Vserver. The interface's IP address is the mount point for a specific data pr...
33.391892
81
0.632942
2,411
0.975718
0
0
850
0.34399
0
0
1,738
0.703359
89ac931b692c43514c36ae03212d4c0af12bbef1
4,877
py
Python
clld/lib/wordpress.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
1
2019-08-12T15:43:56.000Z
2019-08-12T15:43:56.000Z
clld/lib/wordpress.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
null
null
null
clld/lib/wordpress.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
null
null
null
""" Client for the xmlrpc API of a wordpress blog. .. note:: we ignore blog_id altogether, see http://joseph.randomnetworks.com/archives/2008/06/10/\ blog-id-in-wordpress-and-xml-rpc-blog-apis/ thus, rely on identifying the appropriate blog by xmlrpc endpoint. """ import re import xmlrpclib import re...
34.34507
90
0.541726
4,335
0.888866
0
0
0
0
0
0
1,116
0.228829
89ad3ad12dbbb7451941460b3c2d3ac8663e01da
1,370
py
Python
deprecated_examples_robust/multimedia/avmnist_MFM_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples_robust/multimedia/avmnist_MFM_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples_robust/multimedia/avmnist_MFM_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.getcwd()))) from training_structures.MFM import train_MFM,test_MFM from fusions.common_fusions import Concat from unimodals.MVAE import LeNetEncoder,DeLeNet from unimodals.common_models import MLP from torch import nn import torch from objective_fu...
37.027027
149
0.806569
0
0
0
0
0
0
0
0
100
0.072993
89b0fc36687c8a1bd3480464b1aa7545c9ee615d
2,327
py
Python
src/JyCnTwTranslator.py
jackychu0830/jy-cn-tw-translattor
8ee4a367ba35fe5af43d07fc865bf6eea9ef4864
[ "Apache-2.0" ]
3
2021-04-10T03:48:34.000Z
2021-07-21T08:39:54.000Z
src/JyCnTwTranslator.py
jackychu0830/jy-cn-tw-translattor
8ee4a367ba35fe5af43d07fc865bf6eea9ef4864
[ "Apache-2.0" ]
null
null
null
src/JyCnTwTranslator.py
jackychu0830/jy-cn-tw-translattor
8ee4a367ba35fe5af43d07fc865bf6eea9ef4864
[ "Apache-2.0" ]
5
2021-04-27T06:45:59.000Z
2022-03-28T12:44:49.000Z
import json import os from pygoogletranslation import Translator JY_PATH = os.path.expanduser('~') + '/Movies/JianyingPro/videocut/' def get_video_texts(filename): """ Get all text content from video :param filename: file name :return: all subtitle in list format """ f = open(filename, encod...
22.375
85
0.634293
0
0
0
0
0
0
0
0
845
0.363128
89b1a7985acccd182bc360d4370b40a665ed42c6
1,352
py
Python
pygame_template.py
Pittsy24/pygame_template
b72397a37610fc267870151e0141de0d15793b7c
[ "MIT" ]
null
null
null
pygame_template.py
Pittsy24/pygame_template
b72397a37610fc267870151e0141de0d15793b7c
[ "MIT" ]
null
null
null
pygame_template.py
Pittsy24/pygame_template
b72397a37610fc267870151e0141de0d15793b7c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # By Joseph Pitts import sys import random import pygame from pygame.locals import * class Colours: BLACK = (0, 0, 0) WHITE = (255, 255, 255) AQUA = (0, 255, 255) GREY = (128, 128, 128) NAVY = (0, 0, 128) SILVER = (192, 192 ,192) GREEN = (0, 128, 0) ...
23.719298
94
0.513314
1,217
0.900148
0
0
127
0.093935
0
0
37
0.027367
89b39f158be90401b4ca2e91fcd18a6a3a99d8f3
799
py
Python
Python3/0234-Palindrome-Linked-List/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0234-Palindrome-Linked-List/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0234-Palindrome-Linked-List/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def isPalindrome(self, head): """ :type head: ListNode :rtype: bool """ if not head or not head.next: ...
26.633333
50
0.490613
656
0.821026
0
0
0
0
0
0
202
0.252816
89b442a2aa83173bfb33cd89737f11e8446730f6
3,336
py
Python
dataset/ucmayo4.py
GorkemP/labeled-images-for-ulcerative-colitis
83dd4221e9bb6f4a441cafb6ddd74dad0d5f0e55
[ "MIT" ]
2
2022-03-15T19:59:15.000Z
2022-03-17T07:37:08.000Z
dataset/ucmayo4.py
GorkemP/labeled-images-for-ulcerative-colitis
83dd4221e9bb6f4a441cafb6ddd74dad0d5f0e55
[ "MIT" ]
null
null
null
dataset/ucmayo4.py
GorkemP/labeled-images-for-ulcerative-colitis
83dd4221e9bb6f4a441cafb6ddd74dad0d5f0e55
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset from PIL import Image import os import glob class UCMayo4(Dataset): """Ulcerative Colitis dataset grouped according to Endoscopic Mayo scoring system""" def __init__(self, root_dir, transform=None): """ root_dir (string): Path to parent folder...
32.38835
97
0.601019
3,238
0.970624
0
0
0
0
0
0
883
0.264688
89b51e36ce9bdb63aea671028674c6ceed809072
698
py
Python
Python Programs/binarysea.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
77
2020-10-01T10:06:59.000Z
2021-11-08T08:57:18.000Z
Python Programs/binarysea.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
46
2020-09-27T04:55:36.000Z
2021-05-14T18:49:06.000Z
Python Programs/binarysea.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
327
2020-09-26T17:06:03.000Z
2021-10-09T06:04:39.000Z
print("linear search") si=int(input("\nEnter the size:")) data=list() for i in range(0,si): n=int(input()) data.append(n) cot=0 print("\nEnter the number you want to search:") val=int(input()) for i in range(0,len(data)): if(data[i]==val): break; else: cot=co...
21.151515
48
0.54298
0
0
0
0
0
0
0
0
144
0.206304
89b658139c87c2cd2b91a286d57e79315f172227
6,240
py
Python
inferqueue.py
AndreasMerentitis/TfLambdaDemo-tfraw
1fa3d7b170076b8afd5065f680ee305f232fbbf5
[ "MIT" ]
null
null
null
inferqueue.py
AndreasMerentitis/TfLambdaDemo-tfraw
1fa3d7b170076b8afd5065f680ee305f232fbbf5
[ "MIT" ]
5
2020-09-26T01:25:45.000Z
2022-02-10T02:13:54.000Z
inferqueue.py
AndreasMerentitis/TfLambdaDemo-tfraw
1fa3d7b170076b8afd5065f680ee305f232fbbf5
[ "MIT" ]
null
null
null
try: import unzip_requirements except ImportError: pass import json import os import tarfile import boto3 import tensorflow as tf import numpy as np import census_data import logging logger = logging.getLogger() logger.setLevel(logging.WARNING) FILE_DIR = '/tmp/' BUCKET = os.environ['BUCKET'] import queue im...
34.475138
122
0.616346
0
0
0
0
0
0
0
0
1,659
0.265865
89b73d7d48109d66259c6829ecf5a9a833671f92
11,282
py
Python
sailbot_ws/src/sailbot/sailbot/control_system.py
wpisailbot/sailbot21-22
e4993b6077798e6df4f631d4f4cd69ef0b474b41
[ "Apache-2.0" ]
1
2022-01-25T18:26:17.000Z
2022-01-25T18:26:17.000Z
sailbot_ws/src/sailbot/sailbot/control_system.py
wpisailbot/sailbot21-22
e4993b6077798e6df4f631d4f4cd69ef0b474b41
[ "Apache-2.0" ]
1
2022-01-23T20:51:42.000Z
2022-01-23T20:51:42.000Z
sailbot_ws/src/sailbot/sailbot/control_system.py
wpisailbot/sailbot21-22
e4993b6077798e6df4f631d4f4cd69ef0b474b41
[ "Apache-2.0" ]
1
2021-11-18T21:15:15.000Z
2021-11-18T21:15:15.000Z
from time import time import rclpy from rclpy.node import Node import json from std_msgs.msg import String, Float32, Int8, Int16 import sailbot.autonomous.p2p as p2p from collections import deque class ControlSystem(Node): # Gathers data from some nodes and distributes it to others def __init__(self): s...
43.728682
186
0.60016
5,937
0.526236
0
0
0
0
0
0
2,535
0.224694
89b8b74f1ee518f5d1b44c2b1c318c3869dd4dbd
192
py
Python
tracedump/pwn_wrapper.py
Mic92/tracedumpd
a84eac58106f1f1d7a82f5dee2a327861e763e4e
[ "MIT" ]
1
2021-03-22T18:04:53.000Z
2021-03-22T18:04:53.000Z
tracedump/pwn_wrapper.py
Mic92/tracedump
a84eac58106f1f1d7a82f5dee2a327861e763e4e
[ "MIT" ]
null
null
null
tracedump/pwn_wrapper.py
Mic92/tracedump
a84eac58106f1f1d7a82f5dee2a327861e763e4e
[ "MIT" ]
null
null
null
import os # stop pwnlib from doing fancy things os.environ["PWNLIB_NOTERM"] = "1" from pwnlib.elf.corefile import Coredump, Mapping # noqa: E402 from pwnlib.elf.elf import ELF # noqa: E402
27.428571
63
0.75
0
0
0
0
0
0
0
0
79
0.411458
89b92883d95ad1fae64e88b91d6848733b211d86
4,609
py
Python
postcodeinfo/apps/postcode_api/admin.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/apps/postcode_api/admin.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/apps/postcode_api/admin.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
1
2021-04-11T09:12:19.000Z
2021-04-11T09:12:19.000Z
import django from django.contrib.gis import admin from .models import Address # from https://djangosnippets.org/snippets/2593/ from django.contrib.admin.options import IncorrectLookupParameters from django.contrib.admin.views.main import ChangeList from django.core.paginator import InvalidPage, Paginator from djan...
36.872
94
0.632024
4,153
0.901063
0
0
0
0
0
0
1,254
0.272076
89b95121aacfb7a7ea543fd31b9769da68cb3cfc
1,083
py
Python
tests/molecular/bonds/bond/with_ids/test_with_ids.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/molecular/bonds/bond/with_ids/test_with_ids.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/molecular/bonds/bond/with_ids/test_with_ids.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable import stk def test_with_ids( bond: stk.Bond, get_id_map: Callable[[stk.Bond], dict[int, int]], ) -> None: """ Test :meth:`.Bond.with_ids`. Parameters: bond : :class:`.Bond` The bond to test. get_id_map...
23.543478
66
0.615882
0
0
0
0
0
0
0
0
367
0.338873
89b954dd1798885bb3507d31ac4569dbd6df2065
4,131
py
Python
app/services.py
fabl1106/emoji_rank
f3fa50b00d34092fe6b7317a1e85829c8647b574
[ "MIT" ]
10
2021-04-15T14:17:54.000Z
2022-02-09T07:53:27.000Z
app/services.py
fabl1106/emoji_rank
f3fa50b00d34092fe6b7317a1e85829c8647b574
[ "MIT" ]
null
null
null
app/services.py
fabl1106/emoji_rank
f3fa50b00d34092fe6b7317a1e85829c8647b574
[ "MIT" ]
4
2021-08-12T09:09:14.000Z
2022-02-03T08:18:48.000Z
from dataclasses import dataclass from app import crud from app.schemas import UserCreate, SlackEventHook from app.settings import REACTION_LIST, DAY_MAX_REACTION # about reaction REMOVED_REACTION = 'reaction_removed' ADDED_REACTION = 'reaction_added' APP_MENTION_REACTION = 'app_mention' # about command CREATE_USER...
33.860656
106
0.616074
3,967
0.913424
0
0
965
0.222197
0
0
954
0.219664
89baa3cabe37903c188fd9cb2212f197553a6887
2,010
py
Python
util/build_tests.py
skruger/AVWX-Engine
c3c0b90a3aa57d43bea47d07b977d71b90f987b9
[ "MIT" ]
null
null
null
util/build_tests.py
skruger/AVWX-Engine
c3c0b90a3aa57d43bea47d07b977d71b90f987b9
[ "MIT" ]
3
2019-11-21T17:59:14.000Z
2019-12-04T03:45:05.000Z
util/build_tests.py
AirbusDriver/avwx-engine
e3fed8f744a48faca58c3e94ddbf214f9c719d3d
[ "MIT" ]
null
null
null
""" Creates files for end-to-end tests python util/build_tests.py """ # stdlib import json from dataclasses import asdict # module import avwx def make_metar_test(station: str) -> dict: """ Builds METAR test file for station """ m = avwx.Metar(station) m.update() # Clear timestamp due to pa...
25.443038
73
0.58607
0
0
0
0
0
0
0
0
667
0.331841
89baa670798425bdbbb997843280bd98d927b769
42
py
Python
pacote-download/ex(1-100)/ex112/utilidadescev/__init__.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex112/utilidadescev/__init__.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex112/utilidadescev/__init__.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
from ex111.utilidadescev import moeda,dado
42
42
0.880952
0
0
0
0
0
0
0
0
0
0
89bb8aec70dc5ddd26138767ff03178f1d8f86d1
830
py
Python
sdk/pyseele/clazz.py
rinkako/SeeleFlow
4b8858f367ef02a568c03c8114e1c1b221208feb
[ "MIT" ]
3
2019-12-20T13:32:34.000Z
2021-04-27T06:02:28.000Z
sdk/pyseele/clazz.py
rinkako/SeeleFlow
4b8858f367ef02a568c03c8114e1c1b221208feb
[ "MIT" ]
null
null
null
sdk/pyseele/clazz.py
rinkako/SeeleFlow
4b8858f367ef02a568c03c8114e1c1b221208feb
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ Project Seele @author : Rinka @date : 2019/12/17 """ from pyseele.workitem import Workitem class ResourcingContext: """ Resourcing Context maintains all org.rinka.seele.server.resource service principals that guide RS to handle the workitem. """ def __init__(self): ...
23.055556
101
0.624096
706
0.850602
0
0
0
0
0
0
425
0.512048
89bec5ceb25cd9718ad4b6c93d9467f0e3ef9ba6
34,847
py
Python
scripts/python/turtleRelated/circleint.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
1
2015-08-15T05:25:35.000Z
2015-08-15T05:25:35.000Z
scripts/python/turtleRelated/circleint.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
scripts/python/turtleRelated/circleint.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
import math import fvh2, fvh import supercircle masterCircleSet=set() circlecalled = 0 checkcirclescalled = 0 MINOFFSET=5 class Circle(): def __init__(self,x,y,r,lm=None, keep=True): global circlecalled circlecalled+=1 self.keep = keep self.center=(x,y) self.radius=r self.checkStr...
34.130264
257
0.662697
3,762
0.107958
0
0
0
0
0
0
5,831
0.167331
89bed3c6f4358ea5beffd07b449a6c39b7b53e4d
392
py
Python
test_calculations.py
joshmgrant/pybay-pytest-the-awesome-parts-code
4b9fccb8b561e5745c2498fb4360c40a5944694c
[ "Unlicense" ]
null
null
null
test_calculations.py
joshmgrant/pybay-pytest-the-awesome-parts-code
4b9fccb8b561e5745c2498fb4360c40a5944694c
[ "Unlicense" ]
null
null
null
test_calculations.py
joshmgrant/pybay-pytest-the-awesome-parts-code
4b9fccb8b561e5745c2498fb4360c40a5944694c
[ "Unlicense" ]
null
null
null
from calculations import TemperatureConverter def testfreezing_fahrenheit(): converter = TemperatureConverter() actual = converter.to_celsius(32.0) expected = 0.0 assert abs(expected - actual) < 0.01 def test_freezing_celsius(): converter = TemperatureConverter() actual = converter.to_fahr...
20.631579
45
0.714286
0
0
0
0
0
0
0
0
0
0
981ec4cd5715c632ca338d47553a10ae304b14da
12,359
py
Python
utils.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
null
null
null
utils.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
1
2019-08-16T07:09:22.000Z
2019-09-04T04:59:51.000Z
utils.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
1
2020-01-13T04:51:22.000Z
2020-01-13T04:51:22.000Z
from __future__ import division import shutil import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap from path import Path from collections import OrderedDict import datetime epsilon = 1e-...
35.719653
130
0.631524
0
0
0
0
0
0
0
0
2,062
0.165796
981f4131a08264f22a6b10de9d991012715fd4c7
966
py
Python
oops_fhir/r4/value_set/provenance_activity_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/provenance_activity_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/provenance_activity_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_participation_type import v3ParticipationType __all__ = ["ProvenanceActivityType"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class...
26.108108
78
0.773292
650
0.672878
0
0
0
0
0
0
576
0.596273
981f6d8c4555ef92f86c7b62daf2e7f20eb0fb71
3,312
py
Python
py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/is31fl3731_rgbmatrix5x5_rainbow.py
ParentZap/micro-projects
b260ac09057935f44d3d00ff96670fabfd567aac
[ "Apache-2.0" ]
null
null
null
py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/is31fl3731_rgbmatrix5x5_rainbow.py
ParentZap/micro-projects
b260ac09057935f44d3d00ff96670fabfd567aac
[ "Apache-2.0" ]
null
null
null
py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/is31fl3731_rgbmatrix5x5_rainbow.py
ParentZap/micro-projects
b260ac09057935f44d3d00ff96670fabfd567aac
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Sandy Macdonald, David Glaude, James Carr # SPDX-License-Identifier: MIT """ Example to display a rainbow animation on the 5x5 RGB Matrix Breakout. Usage: Rename this file code.py and pop it on your Raspberry Pico's CIRCUITPY drive. This example is for use on the Pico Explore...
24.533333
96
0.536534
0
0
0
0
0
0
0
0
1,008
0.304348
98241ad4baa33294d1ccb68f952b1b1217195b7e
10,405
py
Python
src/GG_ESB.py
CB1204/LapSimulation
7d7f7c43a6bc3db3dbf02050d939da3f17647c2c
[ "MIT" ]
7
2018-02-22T16:58:26.000Z
2022-02-05T18:17:56.000Z
src/GG_ESB.py
CB1204/LapSimulation
7d7f7c43a6bc3db3dbf02050d939da3f17647c2c
[ "MIT" ]
null
null
null
src/GG_ESB.py
CB1204/LapSimulation
7d7f7c43a6bc3db3dbf02050d939da3f17647c2c
[ "MIT" ]
2
2019-04-15T21:07:03.000Z
2021-05-11T07:41:49.000Z
from TwoDimLookup_motor import TwoDimLookup_motor from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from scipy import interpolate import numpy as np ### Input Parameters # C_F = 27000 # Cornering stiffness front / Schräglaufsteifigkeit vorne [N/rad] - Is already for two wheels ! # C_R = ...
33.242812
257
0.528304
7,898
0.758766
0
0
0
0
0
0
2,917
0.280238
98243878adcb6218f1936ee177c9f2cd4bab733f
81
py
Python
models/env.py
claranet/cloud-deploy
a1277f5a1173efffbaeb298c9d22ec0aa39c62e7
[ "Apache-2.0" ]
25
2018-03-27T13:26:17.000Z
2022-02-02T09:24:25.000Z
models/env.py
claranet/cloud-deploy
a1277f5a1173efffbaeb298c9d22ec0aa39c62e7
[ "Apache-2.0" ]
null
null
null
models/env.py
claranet/cloud-deploy
a1277f5a1173efffbaeb298c9d22ec0aa39c62e7
[ "Apache-2.0" ]
5
2018-05-08T16:09:57.000Z
2021-08-04T13:12:36.000Z
env = ['prod', 'preprod', 'dev', 'staging', 'test', 'demo', 'int', 'uat', 'oat']
40.5
80
0.506173
0
0
0
0
0
0
0
0
56
0.691358
982572d26aa32e7a439ebea52534db824d172dbe
5,936
py
Python
magic-wand/accelerometers/adxl345/adxl345_const.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
magic-wand/accelerometers/adxl345/adxl345_const.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
magic-wand/accelerometers/adxl345/adxl345_const.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
from micropython import const ADXL345_ADDRESS = const(0x53) # I2C address of adxl345 ADXL345_DEVICE_ID = const(0xe5) # ADXL345_DEVID = const(0x00) # Device ID ADXL345_THESH_TAP = const(0x1d) # Tap threshold ADXL345_OFSX = const(0x1e) ...
39.573333
98
0.473214
0
0
0
0
0
0
0
0
824
0.138814
9825a6859e917fea31bf98fd074b4e0de54be3a9
3,885
py
Python
genes.py
AgamChopra/simulation-in-a-box
2a346a2fc83d79e542b64f1bd45c338d27a1934d
[ "MIT" ]
null
null
null
genes.py
AgamChopra/simulation-in-a-box
2a346a2fc83d79e542b64f1bd45c338d27a1934d
[ "MIT" ]
null
null
null
genes.py
AgamChopra/simulation-in-a-box
2a346a2fc83d79e542b64f1bd45c338d27a1934d
[ "MIT" ]
null
null
null
import random global_mutation = 0.002 encodings = {'0': '00000', '1': '00001', '2': '00010', '3': '00011', '4': '00100', '5': '00101', 'A': '00110', 'B': '00111', 'C': '01000', 'D': '01001', 'E': '01010', 'F': '01011', 'G': '01100', 'H': '01101', 'I': '01110', 'J': '01111...
42.692308
193
0.568597
0
0
0
0
0
0
0
0
1,689
0.434749
98262718730e2b662ae1afeb5b66ed50c8d798c1
4,543
py
Python
src/apetest/cmdline.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
6
2019-04-01T09:42:31.000Z
2020-05-20T15:23:17.000Z
src/apetest/cmdline.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
31
2019-02-04T11:38:32.000Z
2022-03-03T02:51:15.000Z
src/apetest/cmdline.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause """Command line interface.""" from argparse import ArgumentParser from os import getcwd from typing import List from urllib.parse import urljoin, urlparse import logging from apetest.checker import Accept, PageChecker from apetest.plugin import ( Plugin, PluginCollecti...
29.309677
80
0.630861
0
0
0
0
0
0
0
0
1,576
0.346907
98263a506a10c5fd1066a4f40f9a20f4baf4d255
3,995
py
Python
rplugin/python3/denite/source/func.py
delphinus/npm.nvim
84d72993e9660c68d1c6846d7f6e839a95df325d
[ "MIT" ]
19
2018-03-28T11:44:37.000Z
2022-03-16T17:49:05.000Z
rplugin/python3/denite/source/func.py
delphinus/npm.nvim
84d72993e9660c68d1c6846d7f6e839a95df325d
[ "MIT" ]
2
2018-10-21T10:11:56.000Z
2018-10-21T10:28:12.000Z
rplugin/python3/denite/source/func.py
delphinus/npm.nvim
84d72993e9660c68d1c6846d7f6e839a95df325d
[ "MIT" ]
4
2018-10-21T09:58:12.000Z
2021-12-24T02:12:52.000Z
# ============================================================================ # FILE: func.py # AUTHOR: Qiming Zhao <chemzqm@gmail.com> # License: MIT license # ============================================================================ # pylint: disable=E0401,C0411 import os import subprocess from denite import util...
35.990991
84
0.501627
2,988
0.747935
0
0
0
0
0
0
1,013
0.253567
98264fc762074b4a2f1ac32520efa38012b03b13
11,835
py
Python
SoccerPlanner/app/forms.py
guestnone/SoccerPlanner
8ca6374bbdd2fa71ef4fecfb8aaa02a23d59a4d5
[ "MIT" ]
null
null
null
SoccerPlanner/app/forms.py
guestnone/SoccerPlanner
8ca6374bbdd2fa71ef4fecfb8aaa02a23d59a4d5
[ "MIT" ]
2
2019-06-04T15:21:26.000Z
2019-06-27T18:14:25.000Z
SoccerPlanner/app/forms.py
guestnone/SoccerPlanner
8ca6374bbdd2fa71ef4fecfb8aaa02a23d59a4d5
[ "MIT" ]
3
2019-04-16T08:39:31.000Z
2019-05-07T09:05:26.000Z
""" Definition of forms. """ from django import forms from django.forms import ModelForm, DateInput, TextInput from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.contrib.auth.models import User from app.models import ( Player, TeamSquad, Team, Stage, Match, E...
29.078624
88
0.610224
11,165
0.943388
0
0
0
0
0
0
2,310
0.195184
98277c0dd3731669035934d65982542e9aceede0
3,128
py
Python
Artificial_Intelligence/botvisible.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
4
2018-04-19T20:32:54.000Z
2020-04-21T12:28:00.000Z
Artificial_Intelligence/botvisible.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
Artificial_Intelligence/botvisible.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
# coding: -*- utf8 -*- import os.path def get_info(): if os.path.exists("map.txt"): with open("map.txt") as m: info = m.readline().strip().split(" ") info[1] = int(info[1]) info[2] = int(info[2]) return info return None def update_map_file(r, c, o, m,...
28.436364
65
0.453325
0
0
0
0
0
0
0
0
682
0.218031
9827c78b55c36213e56e3cab4efb3a255d146830
21,718
py
Python
temboardui/plugins/monitoring/tools.py
pierrehilbert/temboard
d28bbe87329d3023774fe8c773b8b4ad50e09757
[ "PostgreSQL" ]
null
null
null
temboardui/plugins/monitoring/tools.py
pierrehilbert/temboard
d28bbe87329d3023774fe8c773b8b4ad50e09757
[ "PostgreSQL" ]
null
null
null
temboardui/plugins/monitoring/tools.py
pierrehilbert/temboard
d28bbe87329d3023774fe8c773b8b4ad50e09757
[ "PostgreSQL" ]
null
null
null
import logging from .model.orm import ( Check, Host, Instance, ) from .alerting import ( bootstrap_checks, check_specs, ) logger = logging.getLogger(__name__) def merge_agent_info(session, host_info, instances_info): """Update the host, instance and database information with the data re...
39.061151
78
0.38056
0
0
0
0
0
0
0
0
6,140
0.282715
9827d15b9ed4fc60f071b968ac243471d2ecbda1
6,202
py
Python
coordFromRsid.py
bnwolford/FHiGR_score
b76a4aa126830d08df3241674f8017d989ecadbd
[ "MIT" ]
null
null
null
coordFromRsid.py
bnwolford/FHiGR_score
b76a4aa126830d08df3241674f8017d989ecadbd
[ "MIT" ]
null
null
null
coordFromRsid.py
bnwolford/FHiGR_score
b76a4aa126830d08df3241674f8017d989ecadbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #=============================================================================== # Copyright (c) 2020 Brooke Wolford # Lab of Dr. Cristen Willer and Dr. Mike Boehnke # University of Michigan #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and asso...
37.137725
136
0.589971
0
0
0
0
0
0
0
0
2,924
0.471461
982874d77b210ce496dff9011612aad7e92e965a
215
py
Python
vnpy/pricing/crrCython/setup.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
5
2019-01-17T12:14:14.000Z
2021-05-30T10:24:42.000Z
vnpy/pricing/crrCython/setup.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
1
2018-06-12T10:08:24.000Z
2018-06-12T10:08:24.000Z
vnpy/pricing/crrCython/setup.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
5
2019-03-26T03:17:45.000Z
2019-11-05T08:08:18.000Z
# encoding: UTF-8 from distutils.core import setup from Cython.Build import cythonize import numpy setup( name = 'crrCython', ext_modules = cythonize("crrCython.pyx"), include_dirs = [numpy.get_include()] )
17.916667
43
0.739535
0
0
0
0
0
0
0
0
43
0.2
9829af145c0226598d0d6a57a52d430b4f3cca1d
5,700
py
Python
popularity_sequence_prediction/callbacks.py
JennyXieJiayi/TSMMVED
c54f5f3c264636cb7ea77802ae02b681664be6f4
[ "Apache-2.0" ]
7
2021-05-18T08:25:48.000Z
2022-02-09T11:44:20.000Z
popularity_sequence_prediction/callbacks.py
JennyXieJiayi/TSMMVED
c54f5f3c264636cb7ea77802ae02b681664be6f4
[ "Apache-2.0" ]
null
null
null
popularity_sequence_prediction/callbacks.py
JennyXieJiayi/TSMMVED
c54f5f3c264636cb7ea77802ae02b681664be6f4
[ "Apache-2.0" ]
2
2021-05-21T16:05:22.000Z
2021-05-21T16:30:48.000Z
''' Copyright (c) 2021. IIP Lab, Wuhan University ''' import os import numpy as np import pandas as pd import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras import models from tensorflow.keras import layers from tensorflow.keras import callbacks from data import * from l...
36.075949
85
0.590526
5,033
0.882982
0
0
0
0
0
0
903
0.158421
982a5a6c85f4198d136ac06c6691b36716f7b587
940
py
Python
sdks/python/test/test_ReleaseUpdateError.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ReleaseUpdateError.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ReleaseUpdateError.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
23.5
95
0.723404
432
0.459574
0
0
0
0
0
0
493
0.524468
982acf7f9f2218e64a54202928052ad4200a4b8a
1,720
py
Python
main.py
matr095/A-Day-Calculator
76859f69fe7731f8292ca9830e201643f4420820
[ "Apache-2.0" ]
null
null
null
main.py
matr095/A-Day-Calculator
76859f69fe7731f8292ca9830e201643f4420820
[ "Apache-2.0" ]
null
null
null
main.py
matr095/A-Day-Calculator
76859f69fe7731f8292ca9830e201643f4420820
[ "Apache-2.0" ]
null
null
null
from ftplib import FTP from datetime import * from tkinter import * def interval(): now = date.today() yourDay = int(input("Vous êtes né quel jour ? ")) yourMonth = int(input("Vous êtes né quel mois ? ")) yourYear = int(input("Vous êtes né quelle année ? ")) birthday = date(yourYear, yourMonth, yourDay) daysPas...
23.243243
100
0.674419
0
0
0
0
0
0
0
0
408
0.235838
982c53384fb7fdf1f9847dabcbbd5e3b70a7ace1
5,032
py
Python
nodes/sunled_action.py
willdickson/virtual_desert
989e5b9e3f19e1c502795ae5033873365d325d1b
[ "MIT" ]
1
2021-06-23T06:07:56.000Z
2021-06-23T06:07:56.000Z
nodes/sunled_action.py
willdickson/virtual_desert
989e5b9e3f19e1c502795ae5033873365d325d1b
[ "MIT" ]
null
null
null
nodes/sunled_action.py
willdickson/virtual_desert
989e5b9e3f19e1c502795ae5033873365d325d1b
[ "MIT" ]
null
null
null
import math import rospy import numpy as np import random from base_action import BaseAction class SunledAction(BaseAction): index_to_led_position = {} def __init__(self,init_angle,device,param,trial_index): print('sunled action __init__') super(SunledAction,self).__init__(device,param) ...
43.37931
93
0.595787
4,931
0.979928
0
0
0
0
0
0
745
0.148052
982eca037ad091ca6153033d361aee2cf39feb98
371
py
Python
Base64_Cleanup.py
Har6ard/HackTheBox
a1dcfa6373afa13469250572d5e93956c24e01dc
[ "MIT" ]
null
null
null
Base64_Cleanup.py
Har6ard/HackTheBox
a1dcfa6373afa13469250572d5e93956c24e01dc
[ "MIT" ]
null
null
null
Base64_Cleanup.py
Har6ard/HackTheBox
a1dcfa6373afa13469250572d5e93956c24e01dc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ This script is just to clean up Base64 if is has � present in the output. Example: $�G�r�o�U�P�P�O�L�i�C�Y�S�E�t�t�I�N�G�s� �=� �[�r�E�F�]�.�A�S�s�e�M�B�L�Y�.�G�E�t�T�y�p�E� $GroUPPOLiCYSEttINGs = [rEF].ASseMBLY.GEtTypE """ with open("./target.txt", "r") as f_obj: data = f_obj.read() ...
24.733333
90
0.587601
0
0
0
0
0
0
0
0
364
0.782796
982f189964a5ea4bd6d468801ff14602fedb3652
2,347
py
Python
Pio/Pio_prefs.py
arthole/Pio
1c82ce63da55962cddbb20e9ac4a85d7b8855925
[ "BSD-2-Clause" ]
null
null
null
Pio/Pio_prefs.py
arthole/Pio
1c82ce63da55962cddbb20e9ac4a85d7b8855925
[ "BSD-2-Clause" ]
null
null
null
Pio/Pio_prefs.py
arthole/Pio
1c82ce63da55962cddbb20e9ac4a85d7b8855925
[ "BSD-2-Clause" ]
null
null
null
#Pio_prefs prefsdict = { ###modify or add preferences below #below are the database preferences. "sqluser" : "user", "sqldb" : "database", "sqlhost" : "127.0.0.1", #authorization must come from same address - extra security #valid values yes/no "staticip" : "no", #below is to do logging of qrystmts....
29.3375
142
0.707712
0
0
0
0
0
0
0
0
1,962
0.835961
982faf238d52b2846a9e61e74530e474bb1097c9
742
py
Python
setup.py
jonbulica99/deeplator
d6ad8d60b09022e442cbde6c155a2d752072e358
[ "MIT" ]
64
2017-08-31T19:26:12.000Z
2022-02-27T19:25:21.000Z
setup.py
jonbulica99/deeplator
d6ad8d60b09022e442cbde6c155a2d752072e358
[ "MIT" ]
12
2017-09-08T15:12:02.000Z
2021-12-12T07:18:41.000Z
setup.py
jonbulica99/deeplator
d6ad8d60b09022e442cbde6c155a2d752072e358
[ "MIT" ]
14
2017-09-07T11:39:44.000Z
2021-12-11T09:25:29.000Z
#!/usr/bin/env python3 from setuptools import setup setup( name="deeplator", version="0.0.7", description="Wrapper for DeepL translator.", long_description="Deeplator is a library enabling translation via the DeepL translator.", author="uinput", author_email="uinput@users.noreply.github.com", ...
29.68
93
0.645553
0
0
0
0
0
0
0
0
435
0.586253
9830a97faa3e224e293c5d98b0df9eabae7d19b8
3,737
py
Python
taiga/core/taxonomy.py
flayner2/TaIGa_pkg
3d58907f5adec7035841e187e25dd786460fd3a2
[ "MIT" ]
null
null
null
taiga/core/taxonomy.py
flayner2/TaIGa_pkg
3d58907f5adec7035841e187e25dd786460fd3a2
[ "MIT" ]
null
null
null
taiga/core/taxonomy.py
flayner2/TaIGa_pkg
3d58907f5adec7035841e187e25dd786460fd3a2
[ "MIT" ]
null
null
null
import sys import logging as log from ..common import parsers, helpers, retrievers, data_handlers from ..common.data_models import Taxon from typing import List def run_taiga(infile: str, email: str, gb_mode: int = 0, tid: bool = False, correction: bool = False,...
38.525773
100
0.638748
0
0
0
0
0
0
0
0
2,436
0.65186
9830fcb857d526b4820441836a1d74c1992e4612
171
py
Python
ot/views.py
marclanepitt/ot
3cf4c24cd412735b93e56175ffa31c3eecba8ee5
[ "MIT" ]
null
null
null
ot/views.py
marclanepitt/ot
3cf4c24cd412735b93e56175ffa31c3eecba8ee5
[ "MIT" ]
null
null
null
ot/views.py
marclanepitt/ot
3cf4c24cd412735b93e56175ffa31c3eecba8ee5
[ "MIT" ]
null
null
null
from django.shortcuts import render def HomeView(request): return render(request , 'site_home.html') def AboutView(request): return render(request, 'about.html')
24.428571
45
0.748538
0
0
0
0
0
0
0
0
28
0.163743
98325c84cea8f152ab2a466da34dc57234932f15
1,412
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/maximum-difference-between-node-and-ancestor.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/maximum-difference-between-node-and-ancestor.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/maximum-difference-between-node-and-ancestor.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(h) # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None # iterative stack solution class Solution(object): def maxAncestorDiff(self, root): """ :type root: TreeNode ...
26.641509
75
0.524079
1,263
0.894476
0
0
0
0
0
0
272
0.192635
98329bd5987a8121de4a33c66083b79a38d22afd
478
py
Python
blogs/migrations/0012_auto_20200601_1247.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
657
2020-05-26T16:16:07.000Z
2022-03-26T22:35:01.000Z
blogs/migrations/0012_auto_20200601_1247.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
107
2020-05-26T17:45:04.000Z
2022-03-17T08:24:00.000Z
blogs/migrations/0012_auto_20200601_1247.py
chachan/bearblog
f399f806839bea9f6fd499f50c87cf84fda3bc91
[ "MIT" ]
42
2020-05-26T23:57:58.000Z
2022-03-15T04:20:26.000Z
# Generated by Django 3.0.6 on 2020-06-01 12:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogs', '0011_auto_20200531_0915'), ] operations = [ migrations.RemoveField( model_name='post', name='tags', ...
20.782609
47
0.558577
385
0.805439
0
0
0
0
0
0
107
0.223849
9832e3a03c7ed0e8cda3d657951d2ea2db2a6ab7
1,254
py
Python
nlpr/utils/nL_nr_assay_check.py
jgrembi/nL-qPCR_PathogenChip
89a319a6039d8bd8ebc3164046dd8789d422551e
[ "CC0-1.0" ]
null
null
null
nlpr/utils/nL_nr_assay_check.py
jgrembi/nL-qPCR_PathogenChip
89a319a6039d8bd8ebc3164046dd8789d422551e
[ "CC0-1.0" ]
null
null
null
nlpr/utils/nL_nr_assay_check.py
jgrembi/nL-qPCR_PathogenChip
89a319a6039d8bd8ebc3164046dd8789d422551e
[ "CC0-1.0" ]
null
null
null
# THE PURPOSE OF THIS SCRIPT IS TO SELECT ASSAYS FROM A LIST OF PRIMER COMBINATIONS, SUCH THAT NO MORE THAN TWO OF THE ASSAYS TARGET EXACTLY APROXIMATELY THE SAME POSITIONS . import sys fn = sys.argv[1] fh = open(fn, 'r') def plus_or_minus(x,h): L = [] for i in range(h): L.append(int(x-i)) L.append(int(x+i)) re...
25.08
174
0.729665
0
0
0
0
0
0
0
0
274
0.218501
983304ddbd4a49b1430de787ab4ec1a6757b9a02
4,741
py
Python
script.py
Kevogich/Recurrence-relation
675996861ca27b6dd25119172e3c3fa317bd9bce
[ "Apache-2.0" ]
1
2016-07-01T22:14:40.000Z
2016-07-01T22:14:40.000Z
script.py
Kevogich/Recurrence-relation
675996861ca27b6dd25119172e3c3fa317bd9bce
[ "Apache-2.0" ]
null
null
null
script.py
Kevogich/Recurrence-relation
675996861ca27b6dd25119172e3c3fa317bd9bce
[ "Apache-2.0" ]
2
2016-10-11T22:37:51.000Z
2021-05-17T02:47:29.000Z
import pandas as pd import pandas import numpy as np #provide local path testfile='../input/test.csv' data = open(testfile).readlines() sequences={} #(key, value) = (id , sequence) for i in range(1,len(data)): line=data[i] line =line.replace('"','') line = line[:-1].split(',') id = int(...
28.560241
113
0.600717
0
0
0
0
0
0
0
0
2,020
0.42607
9833c8c51418c01dce19ef28d4ce65d9407a8bcf
5,422
py
Python
util/mach/mig.py
rovarma/crashpad
42b57efa554a47745cb84860ead46bc9f32b77a9
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
util/mach/mig.py
rovarma/crashpad
42b57efa554a47745cb84860ead46bc9f32b77a9
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
util/mach/mig.py
rovarma/crashpad
42b57efa554a47745cb84860ead46bc9f32b77a9
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright 2014 The Crashpad 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/LICEN...
34.316456
80
0.709332
0
0
0
0
0
0
0
0
3,068
0.560365
9834ba514f6075eec2c945801708248dc53e6914
11,647
py
Python
geoutils/geovector.py
AdrienWehrle/GeoUtils
67014d8a89f7d356d60255fadd347b12fe1fe744
[ "BSD-3-Clause" ]
null
null
null
geoutils/geovector.py
AdrienWehrle/GeoUtils
67014d8a89f7d356d60255fadd347b12fe1fe744
[ "BSD-3-Clause" ]
null
null
null
geoutils/geovector.py
AdrienWehrle/GeoUtils
67014d8a89f7d356d60255fadd347b12fe1fe744
[ "BSD-3-Clause" ]
null
null
null
""" geoutils.vectortools provides a toolset for working with vector data. """ from __future__ import annotations import warnings from collections import abc from numbers import Number from typing import TypeVar import geopandas as gpd import numpy as np import rasterio as rio from rasterio import features, warp from ...
38.438944
119
0.603245
11,136
0.956126
0
0
186
0.01597
0
0
5,607
0.481412
98357169592d3463991af69ec85a5b95cd26dfba
753
py
Python
app/setup.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
app/setup.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
6
2020-11-05T02:18:15.000Z
2022-03-12T00:50:09.000Z
app/setup.py
cleve/pulzar
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
from setuptools import setup # with open("../README.md", "r") as fh: # long_description = fh.read() setup(name='pulzar-pkg', version='21.4.1', author='Mauricio Cleveland', author_email='mauricio.cleveland@gmail.com', description='Distributed database and jobs', # long_description=l...
32.73913
58
0.605578
0
0
0
0
0
0
0
0
485
0.64409
9836b76f5bd54af58f94a1f421103f0a705f31c9
3,362
py
Python
data/sample_hq_aniso.py
aneeshnaik/HernquistFlows
7f81f9b47297b115ae6b593593aac59afafc48b3
[ "MIT" ]
null
null
null
data/sample_hq_aniso.py
aneeshnaik/HernquistFlows
7f81f9b47297b115ae6b593593aac59afafc48b3
[ "MIT" ]
null
null
null
data/sample_hq_aniso.py
aneeshnaik/HernquistFlows
7f81f9b47297b115ae6b593593aac59afafc48b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Sample 10^6 particles from anisotropic Hernquist DF. Created: February 2021 Author: A. P. Naik """ import sys from emcee import EnsembleSampler as Sampler import numpy as np sys.path.append("../src") from constants import G, M_sun, kpc from hernquist import calc_DF_a...
25.861538
79
0.621356
0
0
0
0
0
0
0
0
1,867
0.555324
98371d3c3294fca73ee9c19cdbb1162098c454b0
1,205
bzl
Python
csharp/private/sdk.bzl
j3parker/rules_csharp
f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4
[ "Apache-2.0" ]
null
null
null
csharp/private/sdk.bzl
j3parker/rules_csharp
f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4
[ "Apache-2.0" ]
null
null
null
csharp/private/sdk.bzl
j3parker/rules_csharp
f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4
[ "Apache-2.0" ]
null
null
null
""" Declarations for the .NET SDK Downloads URLs and version These are the URLs to download the .NET SDKs for each of the supported operating systems. These URLs are accessible from: https://dotnet.microsoft.com/download/dotnet-core. """ DOTNET_SDK_VERSION = "3.1.100" DOTNET_SDK = { "windows": { "url": "ht...
50.208333
179
0.751867
0
0
0
0
0
0
0
0
1,003
0.832365
98385a3a1127e6e3d20efa2b8a3e4996af5d14c7
798
py
Python
exibir_frame.py
rafaelblira/python-progressivo
fdd6ccf10d351d04158e03ff74dd99b431d94303
[ "MIT" ]
null
null
null
exibir_frame.py
rafaelblira/python-progressivo
fdd6ccf10d351d04158e03ff74dd99b431d94303
[ "MIT" ]
null
null
null
exibir_frame.py
rafaelblira/python-progressivo
fdd6ccf10d351d04158e03ff74dd99b431d94303
[ "MIT" ]
null
null
null
from tkinter import * class MinhaGUI: def __init__(self): # Criando a janela principal self.janela_principal = Tk() # Criando os frames self.frame_cima = Frame(self.janela_principal) self.frame_baixo = Frame(self.janela_principal) # Criando os label...
29.555556
75
0.605263
751
0.941103
0
0
0
0
0
0
222
0.278195
9838b9feb9100277e59803005d55c82663dd9651
1,435
py
Python
cnc/migrations/0001_initial.py
andrewmallory/pan-cnc
bdd6349820107acf06b607c2dc0154ded468f049
[ "Apache-2.0" ]
3
2019-03-13T14:59:59.000Z
2020-04-26T06:30:16.000Z
cnc/migrations/0001_initial.py
andrewmallory/pan-cnc
bdd6349820107acf06b607c2dc0154ded468f049
[ "Apache-2.0" ]
29
2019-02-05T00:01:32.000Z
2021-03-22T14:10:07.000Z
cnc/migrations/0001_initial.py
andrewmallory/pan-cnc
bdd6349820107acf06b607c2dc0154ded468f049
[ "Apache-2.0" ]
2
2019-08-31T13:54:53.000Z
2020-11-18T16:27:11.000Z
# Generated by Django 3.0.5 on 2020-05-26 13:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RepositoryDetails', fields...
38.783784
123
0.587456
1,309
0.912195
0
0
0
0
0
0
235
0.163763
983909b4ca0faeb47da87aa1e2787965d68182c6
29,296
py
Python
util.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
util.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
util.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
# coding: utf-8 import os, pickle, csv, json import subprocess from typing import NamedTuple, List, TextIO, Tuple, Dict, Optional, Union, Iterable, Hashable import numpy as np import pandas as pd from scipy import stats from itertools import product, groupby, takewhile from collections import namedtuple, Counter impor...
36.528678
151
0.563183
4,387
0.149742
0
0
2,115
0.072192
0
0
7,239
0.24709
98398db197820a44e5b1908f15ab56caa4e45c32
15,604
py
Python
panaroo/merge_graphs.py
chrisruis/panaroo
e0ba5db1681134de7f9e483c97af7673e69d5498
[ "MIT" ]
null
null
null
panaroo/merge_graphs.py
chrisruis/panaroo
e0ba5db1681134de7f9e483c97af7673e69d5498
[ "MIT" ]
null
null
null
panaroo/merge_graphs.py
chrisruis/panaroo
e0ba5db1681134de7f9e483c97af7673e69d5498
[ "MIT" ]
null
null
null
import os import tempfile import shutil import argparse import networkx as nx from tqdm import tqdm from joblib import Parallel, delayed from collections import defaultdict, Counter import math import numpy as np from .isvalid import * from .__init__ import __version__ from .cdhit import run_cdhit from .clean_network...
36.036952
85
0.537683
0
0
0
0
0
0
0
0
2,922
0.18726
983a2aeb9ad32099cd6f39c374a89a7d58015b41
1,535
py
Python
campbellsoup/utilities_test.py
NBOCampbellToets/CampbellSoup
45478c3e5e0362d01af8898078c6621f7b11c191
[ "PostgreSQL" ]
null
null
null
campbellsoup/utilities_test.py
NBOCampbellToets/CampbellSoup
45478c3e5e0362d01af8898078c6621f7b11c191
[ "PostgreSQL" ]
45
2016-11-21T16:01:44.000Z
2018-05-25T13:35:01.000Z
campbellsoup/utilities_test.py
NBOCampbellToets/CampbellSoup
45478c3e5e0362d01af8898078c6621f7b11c191
[ "PostgreSQL" ]
1
2019-02-27T08:04:55.000Z
2019-02-27T08:04:55.000Z
# (c) 2016 Julian Gonggrijp from .utilities import * def test_un_camelcase(): assert un_camelcase('CampbellSoupX') == 'campbell_soup_x' assert un_camelcase('NBOCampbellToets') == 'n_b_o_campbell_toets' def test_append_to(): __all__ = [] class Example(object): pass @append_to(__all__) ...
28.425926
80
0.558306
75
0.04886
0
0
111
0.072313
0
0
361
0.235179
983a309c76f611c57739b0e01e641a1dd46468f2
1,242
py
Python
change-njk.py
js-dos/repository
f4e08f223d88cd01140b815c34a274169ed4f954
[ "MIT" ]
12
2021-12-01T01:35:34.000Z
2022-03-30T22:51:23.000Z
change-njk.py
js-dos/repository
f4e08f223d88cd01140b815c34a274169ed4f954
[ "MIT" ]
5
2021-10-12T20:00:44.000Z
2022-02-15T13:45:47.000Z
change-njk.py
js-dos/repository
f4e08f223d88cd01140b815c34a274169ed4f954
[ "MIT" ]
1
2022-02-23T19:25:48.000Z
2022-02-23T19:25:48.000Z
import os import re import yaml for root, dirs, files in os.walk("."): for file in files: njk = os.path.join(root, file) if njk.endswith(".njk"): with open(njk, "r") as file: lines = file.read().split("\n") if not(lines[0].startswith("---")): ...
36.529412
118
0.506441
0
0
0
0
0
0
0
0
315
0.253623
983c57ddcc0f5ba60bf439a4f0ac1aa43adc5576
557
py
Python
core/migrations/0003_auto_20180730_1452.py
CobwebOrg/cobweb-django
14241326860620dbaa64f7eefc6d4b393f80d23c
[ "MIT" ]
7
2017-09-14T18:52:58.000Z
2020-05-18T21:01:20.000Z
core/migrations/0003_auto_20180730_1452.py
CobwebOrg/cobweb-django
14241326860620dbaa64f7eefc6d4b393f80d23c
[ "MIT" ]
151
2017-09-14T18:46:02.000Z
2022-02-10T09:18:44.000Z
core/migrations/0003_auto_20180730_1452.py
CobwebOrg/cobweb-django
14241326860620dbaa64f7eefc6d4b393f80d23c
[ "MIT" ]
1
2017-10-29T19:37:29.000Z
2017-10-29T19:37:29.000Z
# Generated by Django 2.0.7 on 2018-07-30 21:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20180730_1451'), ] operations = [ migrations.AddField( model_name='resourcescan', name='redirect_u...
24.217391
72
0.594255
464
0.833034
0
0
0
0
0
0
155
0.278276
983db1ab4d2da3e4b5bba68391b626a401dccec6
231
py
Python
moto/servicediscovery/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
moto/servicediscovery/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-02-19T02:10:45.000Z
2022-02-19T02:15:52.000Z
moto/servicediscovery/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
"""servicediscovery module initialization; sets value for base decorator.""" from .models import servicediscovery_backends from ..core.models import base_decorator mock_servicediscovery = base_decorator(servicediscovery_backends)
38.5
76
0.848485
0
0
0
0
0
0
0
0
76
0.329004
983e1c82111a5197c93a2fe5e845fe88a4784b12
4,954
py
Python
csr/csr.py
AlexJanse/python_csr2transmart
c01a76dfa6ecfa4248b274144092ccc6c31aab5a
[ "MIT" ]
null
null
null
csr/csr.py
AlexJanse/python_csr2transmart
c01a76dfa6ecfa4248b274144092ccc6c31aab5a
[ "MIT" ]
null
null
null
csr/csr.py
AlexJanse/python_csr2transmart
c01a76dfa6ecfa4248b274144092ccc6c31aab5a
[ "MIT" ]
null
null
null
from datetime import date from typing import Sequence, Optional, Union, Dict, List, Any from pydantic import BaseModel, validator, Field from csr.entity_validation import validate_entity_data from csr.exceptions import DataException class Individual(BaseModel): """ Individual entity """ individual_i...
34.402778
106
0.701655
4,578
0.924102
0
0
1,869
0.377271
0
0
858
0.173193
983e2d78b82a9887c7a118c07e33b600fb3cff99
337
py
Python
hwtBuildsystem/yosys/config.py
optical-o/hwtBuildsystem
791c0409fde07e06c443d4dc2eece284804c3609
[ "MIT" ]
2
2020-02-07T14:24:55.000Z
2020-06-02T09:29:02.000Z
hwtBuildsystem/yosys/config.py
optical-o/hwtBuildsystem
791c0409fde07e06c443d4dc2eece284804c3609
[ "MIT" ]
null
null
null
hwtBuildsystem/yosys/config.py
optical-o/hwtBuildsystem
791c0409fde07e06c443d4dc2eece284804c3609
[ "MIT" ]
1
2021-09-27T20:11:03.000Z
2021-09-27T20:11:03.000Z
from hwtBuildsystem.fileUtils import which class YosysConfig(): _DEFAULT_LINUX = '/usr/bin/yosys' @classmethod def getExec(cls): exe = "yosys" if which(exe) is None: raise Exception('Can find yosys installation') return exe if __name__ == "__main__": print(YosysC...
19.823529
58
0.637982
229
0.679525
0
0
165
0.489614
0
0
62
0.183976
983f4f7294d1c45f6ca7de2184dcf0e247274760
5,438
py
Python
usr/examples/03-Drawing/crazy_drawing.py
SSSnow/MDV3
5f21f9bbc04bccc1c060cebd74a4e1781c10aa00
[ "MIT" ]
6
2017-05-24T06:51:37.000Z
2020-07-04T16:36:29.000Z
usr/examples/03-Drawing/crazy_drawing.py
Killercotton/OpenMV_OV7670
c4130052fc6e0f2eed2089222b3b1f2573c9825f
[ "MIT" ]
null
null
null
usr/examples/03-Drawing/crazy_drawing.py
Killercotton/OpenMV_OV7670
c4130052fc6e0f2eed2089222b3b1f2573c9825f
[ "MIT" ]
1
2019-10-21T11:08:37.000Z
2019-10-21T11:08:37.000Z
# Crazy Drawing Example # # This example shows off your OpenMV Cam's built-in drawing capabilities. This # example was originally a test but serves as good reference code. Please put # your IDE into non-JPEG mode to see the best drawing quality. import pyb, sensor, image, math sensor.reset() sensor.set_framesize(sens...
39.985294
93
0.503678
0
0
0
0
0
0
0
0
398
0.073189
984030ab211e4f6ba95ea988b5e29eb0ca7a323a
607
py
Python
app_python/src/test/test_timegen.py
Mexator/devops
0f7f4bcd453c9243888c51baa532c0d65e6d25e8
[ "MIT" ]
1
2021-08-23T11:54:32.000Z
2021-08-23T11:54:32.000Z
app_python/src/test/test_timegen.py
Mexator/devops
0f7f4bcd453c9243888c51baa532c0d65e6d25e8
[ "MIT" ]
null
null
null
app_python/src/test/test_timegen.py
Mexator/devops
0f7f4bcd453c9243888c51baa532c0d65e6d25e8
[ "MIT" ]
null
null
null
"""This module contains tests for the project. Can be split into several files later""" from datetime import datetime import pytest import pytz from src.main.pages.get_clock_page import get_time_str zone = pytz.timezone("Europe/Moscow") @pytest.mark.parametrize( ('freeze_ts', 'expected_res'), [ (162...
25.291667
78
0.734761
0
0
0
0
365
0.601318
0
0
205
0.337727
9840c6e619f369bd516308c15457bc17f344220a
2,007
py
Python
marketplaces/cron_report_daily_activity.py
diassor/CollectorCity-Market-Place
892ad220b8cf1c0fc7433f625213fe61729522b2
[ "Apache-2.0" ]
135
2015-03-19T13:28:18.000Z
2022-03-27T06:41:42.000Z
marketplaces/cron_report_daily_activity.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
null
null
null
marketplaces/cron_report_daily_activity.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
83
2015-01-30T01:00:15.000Z
2022-03-08T17:25:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import datetime os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.core.management import setup_environ from django.core.mail import send_mail #from django.db import transaction import settings setup_environ(settings) """ Daily Activi...
35.210526
161
0.655705
0
0
0
0
0
0
0
0
717
0.35725
98420fbde9020acf9d2baa635fdb24d604a951dc
3,882
py
Python
utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py
snoopdave/incubator-usergrid
104f64eb4f318221f0d11bf43baad0e7c630cafe
[ "Apache-2.0" ]
788
2015-08-21T16:46:57.000Z
2022-03-16T01:57:44.000Z
utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py
snoopdave/incubator-usergrid
104f64eb4f318221f0d11bf43baad0e7c630cafe
[ "Apache-2.0" ]
101
2015-08-23T04:58:13.000Z
2019-11-13T07:02:57.000Z
utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py
snoopdave/incubator-usergrid
104f64eb4f318221f0d11bf43baad0e7c630cafe
[ "Apache-2.0" ]
342
2015-08-22T06:14:20.000Z
2022-03-15T01:20:39.000Z
# */ # * Licensed to the Apache Software Foundation (ASF) under one # * or more contributor license agreements. See the NOTICE file # * distributed with this work for additional information # * regarding copyright ownership. The ASF licenses this file # * to you under the Apache License, Version 2.0 (the # * "License...
27.928058
121
0.638073
0
0
0
0
0
0
0
0
1,414
0.364245
98435af6057b09cfff7b056786f631263c651d95
35
py
Python
core/__init__.py
johndekroon/RPTR
db833aeb2698e598e098b59e43a310293d8cf5b8
[ "MIT" ]
2
2018-01-19T09:27:03.000Z
2021-12-10T09:26:21.000Z
core/__init__.py
johndekroon/RPTR
db833aeb2698e598e098b59e43a310293d8cf5b8
[ "MIT" ]
null
null
null
core/__init__.py
johndekroon/RPTR
db833aeb2698e598e098b59e43a310293d8cf5b8
[ "MIT" ]
2
2018-04-11T21:52:14.000Z
2018-08-17T23:38:22.000Z
""" Init file for the RPTR Core """
11.666667
27
0.628571
0
0
0
0
0
0
0
0
35
1
9843d82030095d57d6ca2780e6e91c3791600765
433
py
Python
src/hexdump2/__init__.py
HGrooms/hexdump2
bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3
[ "MIT" ]
null
null
null
src/hexdump2/__init__.py
HGrooms/hexdump2
bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3
[ "MIT" ]
null
null
null
src/hexdump2/__init__.py
HGrooms/hexdump2
bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3
[ "MIT" ]
null
null
null
""" mirrors functionality of hexdump(1) and API interface of Python hexdump package. Usage: 1. Within Python: from hexdump2 import hexdump, color_always # Enable or disable color all the time color_always() hexdump(bytes-like data) 2. From commandline, run the console scripts hexdump2 or hd2 $ hd2 -h """ # Import ...
20.619048
80
0.752887
0
0
0
0
0
0
0
0
364
0.840647
9844f78c527b440e7862858aa1908a9848373abe
5,076
py
Python
scripts/to-geojson.py
openstates/openstates-geo
ef9f81cf43dbae1c492924566f88e961ea7e8e9b
[ "MIT" ]
9
2020-05-01T18:42:18.000Z
2022-01-31T03:41:17.000Z
scripts/to-geojson.py
openstates/openstates-geo
ef9f81cf43dbae1c492924566f88e961ea7e8e9b
[ "MIT" ]
4
2020-04-21T19:36:19.000Z
2021-08-03T18:57:16.000Z
scripts/to-geojson.py
openstates/openstates-geo
ef9f81cf43dbae1c492924566f88e961ea7e8e9b
[ "MIT" ]
4
2020-05-25T22:03:01.000Z
2021-08-11T20:57:41.000Z
#!/usr/bin/env python3 import os import sys import csv import json import glob import subprocess import us import openstates_metadata as metadata OCD_FIXES = { "ocd-division/country:us/state:vt/sldu:grand_isle-chittenden": "ocd-division/country:us/state:vt/sldu:grand_isle" } SKIPPED_GEOIDS = { "cd-6098": "Ame...
28.840909
117
0.556147
0
0
0
0
0
0
0
0
1,601
0.315406
984978327bec13adb800652d36ac141bd0b2ae02
249
py
Python
mask_detection/api/serializers.py
vinaykudari/MaskDetectionAPI
ab0c974614984b34cbb98d4d3ea247d8a9d70a14
[ "MIT" ]
1
2022-03-15T10:11:04.000Z
2022-03-15T10:11:04.000Z
mask_detection/api/serializers.py
vinaykudari/MaskDetectionAPI
ab0c974614984b34cbb98d4d3ea247d8a9d70a14
[ "MIT" ]
5
2021-04-08T21:32:19.000Z
2022-03-12T00:43:06.000Z
mask_detection/api/serializers.py
vinaykudari/mask-detection-api
ab0c974614984b34cbb98d4d3ea247d8a9d70a14
[ "MIT" ]
1
2021-03-08T07:57:17.000Z
2021-03-08T07:57:17.000Z
import PIL from rest_framework import serializers from rest_framework.exceptions import ParseError from .models import Image class ImageSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Image fields = ('pk', 'image', )
20.75
62
0.795181
120
0.481928
0
0
0
0
0
0
11
0.044177
9849a7627e1606395ffece5888724940eb62f35a
2,841
py
Python
mod_audio.py
NUSTEM-UK/Robot-Orchestra-3
994d52411ea3c7b48d067dcf7066f6578e8bc512
[ "MIT" ]
null
null
null
mod_audio.py
NUSTEM-UK/Robot-Orchestra-3
994d52411ea3c7b48d067dcf7066f6578e8bc512
[ "MIT" ]
null
null
null
mod_audio.py
NUSTEM-UK/Robot-Orchestra-3
994d52411ea3c7b48d067dcf7066f6578e8bc512
[ "MIT" ]
null
null
null
import glob import os import re import pygame from math import log2, pow try: pygame.init() # Throws error in pylint: security issue for C module. Ignore. except ImportError: exit("This script requires the pygame module\nInstall with: sudo pip3 install pygame") BANK = os.path.join(os.path.dirname(__file__), "...
26.305556
90
0.644843
0
0
0
0
0
0
0
0
882
0.310454
9849f87cd04fbe8f9187c06f9c06b1a0a0ffe11c
1,400
py
Python
nds/emden.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
12
2022-02-23T11:06:06.000Z
2022-03-04T17:21:44.000Z
nds/emden.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
nds/emden.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 from botbase import * _emden_cc = re.compile(r"(?:ha\w+en\swir\s(?:erneut\s)?|Gesundheitsamt)\s*([0-9.]+|\w+)\s+(?:Corona-\s*)?Neuinfektion(?:en)?") _emden = re.compile(r"([0-9.]+)\s(?:Personen|Infektionen)\s*,\svon\sdenen\s*([0-9.]+)\s(?:\(\+?(-?\s*[0-9.]+)\)\s)?Personen\sgenesen\sund\s([0-9.]+)\s(...
50
200
0.622857
0
0
0
0
0
0
0
0
535
0.38187
984a2d55e759402f874e2e89a623446559ac02f3
632
py
Python
fedhf/component/evaluator/__init__.py
beiyuouo/FedHF
0caa873a5db7494b0f9197848c34243fcb8c49f6
[ "Apache-2.0" ]
2
2021-12-15T07:29:57.000Z
2021-12-20T02:37:35.000Z
fedhf/component/evaluator/__init__.py
beiyuouo/FedHF
0caa873a5db7494b0f9197848c34243fcb8c49f6
[ "Apache-2.0" ]
null
null
null
fedhf/component/evaluator/__init__.py
beiyuouo/FedHF
0caa873a5db7494b0f9197848c34243fcb8c49f6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : fedhf\component\evaluator\__init__.py # @Time : 2022-05-03 16:00:21 # @Author : Bingjie Yan # @Email : bj.yan.pa@qq.com # @License : Apache License 2.0 __all__ = ["Evaluator", "build_evaluator", "evaluator_factory", "BaseEvaluator"] from .eval...
31.6
80
0.702532
0
0
0
0
0
0
0
0
342
0.541139
984b4632ec6c3c6b385d7464735d5005831a461f
11,462
py
Python
RAISoft/gui_scripts/ModulatedPhotocurrent.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/gui_scripts/ModulatedPhotocurrent.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/gui_scripts/ModulatedPhotocurrent.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
# project libraries imports: # instruments: from GenericScript import TestScript class Test(TestScript): def __init__(self): TestScript.__init__(self) self.Name = 'Modulated photocurrent frequency spectrum' self.Description = """Measurement of the modulation frequency spectrum of photocurre...
50.716814
145
0.538126
11,294
0.985343
0
0
0
0
0
0
3,985
0.347671
984b753e7423e80490851d6ebcaf98c1c5568d93
1,102
py
Python
ComparativeGenomics/PAML_Analyze/bed_extract_ensembl_NCBIGeneID.py
ajshultz/avian-immunity
6b8a00aaa1a08d89bfb9cf3458a72188ade7cb4f
[ "MIT" ]
4
2019-09-18T10:46:29.000Z
2021-03-16T14:55:38.000Z
ComparativeGenomics/PAML_Analyze/bed_extract_ensembl_NCBIGeneID.py
elifesciences-publications/avian-immunity
6b8a00aaa1a08d89bfb9cf3458a72188ade7cb4f
[ "MIT" ]
null
null
null
ComparativeGenomics/PAML_Analyze/bed_extract_ensembl_NCBIGeneID.py
elifesciences-publications/avian-immunity
6b8a00aaa1a08d89bfb9cf3458a72188ade7cb4f
[ "MIT" ]
4
2019-01-18T10:33:29.000Z
2020-02-13T18:51:21.000Z
#! /usr/bin/env python import sys import os #This script will read in a bed file with both ensemble IDs and NCBI gene IDs merged, and output a translation table of these IDs. bedfile = sys.argv[1] outfile = sys.argv[2] bed = open(bedfile,"r") output = open(outfile,"w") output.write("NCBIGeneID\tENSEMBLID\n") for...
26.238095
130
0.669691
0
0
0
0
0
0
0
0
312
0.283122
984c178778bd5a8ed38c3fb9100e9a5a25991cad
3,050
py
Python
ok_redirects/models.py
LowerDeez/ok-redirects
5eb317a8aeae70a4899a06c4eefa9a088f269a03
[ "MIT" ]
1
2021-01-04T08:58:09.000Z
2021-01-04T08:58:09.000Z
ok_redirects/models.py
LowerDeez/ok-redirects
5eb317a8aeae70a4899a06c4eefa9a088f269a03
[ "MIT" ]
null
null
null
ok_redirects/models.py
LowerDeez/ok-redirects
5eb317a8aeae70a4899a06c4eefa9a088f269a03
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.sites.models import Site from django.db import models from django.utils.translation import pgettext_lazy from .constants import REDIRECT_TYPE_CHOICES, REDIRECT_301 from .fields import MultipleChoiceArrayField __all__ = ( 'Redirect', ) LANGUAGES = getattr(setti...
30.5
81
0.605902
2,705
0.886885
0
0
0
0
0
0
810
0.265574
984c38c3e2d1f35b3e36c250e8706e494118b61b
4,330
py
Python
slide/D-g-conv.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
5
2019-02-11T20:39:05.000Z
2022-01-11T13:25:45.000Z
slide/D-g-conv.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
null
null
null
slide/D-g-conv.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
1
2019-06-29T11:45:30.000Z
2019-06-29T11:45:30.000Z
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 0.8.6 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% {"slideshow": {"slide_ty...
23.791209
107
0.550577
0
0
0
0
0
0
0
0
3,069
0.707469
984cb898e2851daa433e2e4dd369d4cf167238af
170
py
Python
tests/transformer/test_assert.py
rahulbahal7/restricted-python
c39cffe71dfc30630e946977735303d3a65b0383
[ "ZPL-2.1" ]
236
2015-01-03T17:14:53.000Z
2022-03-01T15:52:46.000Z
tests/transformer/test_assert.py
rahulbahal7/restricted-python
c39cffe71dfc30630e946977735303d3a65b0383
[ "ZPL-2.1" ]
149
2016-10-24T06:56:44.000Z
2022-02-24T08:09:10.000Z
tests/transformer/test_assert.py
rahulbahal7/restricted-python
c39cffe71dfc30630e946977735303d3a65b0383
[ "ZPL-2.1" ]
30
2015-04-03T05:38:13.000Z
2021-11-10T05:13:38.000Z
from tests.helper import restricted_exec def test_RestrictingNodeTransformer__visit_Assert__1(): """It allows assert statements.""" restricted_exec('assert 1')
24.285714
55
0.782353
0
0
0
0
0
0
0
0
44
0.258824
984d0ccced450917c0989659a1f312215ef5e3a1
8,944
py
Python
mnist/train_imbalanced_mnist.py
pfnet-research/robust_estimation
9cb404f5ae80275e927ee5ccec3e3ea6099ff392
[ "BSD-3-Clause" ]
3
2018-11-26T11:16:41.000Z
2021-02-01T12:44:01.000Z
mnist/train_imbalanced_mnist.py
pfnet-research/robust_estimation
9cb404f5ae80275e927ee5ccec3e3ea6099ff392
[ "BSD-3-Clause" ]
null
null
null
mnist/train_imbalanced_mnist.py
pfnet-research/robust_estimation
9cb404f5ae80275e927ee5ccec3e3ea6099ff392
[ "BSD-3-Clause" ]
1
2018-11-27T04:51:41.000Z
2018-11-27T04:51:41.000Z
import argparse import os import numpy as np import chainer from chainer import functions as F from chainer import iterators from chainer import optimizers from chainer import training from chainer.training import extensions as E from chainer_chemistry.models.prediction import Classifier from chainer_chemistry.trainin...
40.288288
79
0.633274
0
0
0
0
0
0
0
0
1,123
0.125559
984deaa3e520bef0fbb915ca5c77f71dc4dc260d
307
py
Python
driver/urls.py
mzazakeith/uber-clone
02f0be423681be5517182b278176feede1126b7a
[ "MIT" ]
1
2022-01-13T19:31:56.000Z
2022-01-13T19:31:56.000Z
driver/urls.py
mzazakeith/uber-clone
02f0be423681be5517182b278176feede1126b7a
[ "MIT" ]
5
2020-02-12T01:28:33.000Z
2021-06-10T20:44:23.000Z
driver/urls.py
mzazakeith/uber-clone
02f0be423681be5517182b278176feede1126b7a
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from driver import views # from djgeojson.views import GeoJSONLayerView # from driver.models import Points urlpatterns = [ url(r'^new/driver$', views.create_driver_profile, name='new-driver-profile'), url(r'^new/car$', views.submit_car, name='new-car'), ]
30.7
81
0.742671
0
0
0
0
0
0
0
0
136
0.442997
984f790a33323506d4783165dffb1e776abcf279
3,456
py
Python
server/score_calculator/model_mean.py
moonhc/league-of-legend-win-prediction
36f0a8d3d2710d23fa9b66004989cecaa64b127d
[ "MIT" ]
null
null
null
server/score_calculator/model_mean.py
moonhc/league-of-legend-win-prediction
36f0a8d3d2710d23fa9b66004989cecaa64b127d
[ "MIT" ]
1
2019-05-27T08:14:43.000Z
2019-05-27T08:14:43.000Z
server/score_calculator/model_mean.py
SeongJinAhn/league-of-legend-win-prediction
50898f928bf36fdbf6fedb8a6fc7f926d4a364a3
[ "MIT" ]
2
2019-05-12T13:34:35.000Z
2019-05-23T14:24:44.000Z
import numpy as np import tensorflow as tf from utils import fc_block from params import* class Model(): def __init__(self, input_dim=INPUT_DIM, output_dim=OUTPUT_DIM, dim_hidden=DIM_HIDDEN, latent_dim=LATENT_DIM, update_lr=LEARNING_RATE, scope='model'): self.input_dim = input_dim self.ou...
55.741935
154
0.624711
3,358
0.971644
0
0
0
0
0
0
159
0.046007