hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
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 / Schrglaufsteifigkeit vorne [N/rad] - Is already for two wheels ! # C_R = 35...
33.242812
257
0.528304
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
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
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
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
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
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
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 update_map_file(r, c, o, m, info): """ :param r: Row of the new object :param c: Column of the new object :param o: The new object ('-', 'd', 'o', etc) :param m: The map :param info: :return: """ grid = [list(row) for row in m] grid[r]...
28.436364
65
0.453325
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
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
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
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
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
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 * root = Tk() root.minsize(width=640, height=480) root.maxsize(width=640, height=480) root.wm_title("A Day Calculator") Label(root, text="A Day Calculator calcule ton nombre de jours passs depuis ta naissance !").pack() calc = Button(root, text=...
23.243243
100
0.674419
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
43.37931
93
0.595787
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: $GroUPPOLiCYSEttINGs = [rEF].ASseMBLY.GEtTypE $GroUPPOLiCYSEttINGs = [rEF].ASseMBLY.GEtTypE """ with open("./target.txt", "r") as f_obj: data = f_obj.read() cleaned = data.replace("", "") print(clean...
24.733333
90
0.587601
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
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
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
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
24.428571
45
0.748538
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. # iterative stack solution # Time: O(n) # Space: O(h) # recursive solution
26.641509
75
0.524079
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
20.782609
47
0.558577
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') forbidden_range_F = [] forbidden_range_R = [] forbidden_range_F2 = [] forbidden_range_R2= [] forb...
25.08
174
0.729665
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
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
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
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
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
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
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 * minha_gui = MinhaGUI()
29.555556
75
0.605263
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
38.783784
123
0.587456
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
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
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 * assert __all__ == ['Illustration', 'foo'] def test_maybe(): tester = { 'banana': [ 0, 'x', [1, 2, 3], { 'deep_banana': {'value': 'deeper_banana'}, } ], 'o...
28.425926
80
0.558306
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
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
24.217391
72
0.594255
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
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 SubjectEntity = Union[Individual, Diagnosis, Biosource, Biomaterial] Study...
34.402778
106
0.701655
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 if __name__ == "__main__": print(YosysConfig.getExec())
19.823529
58
0.637982
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
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")
25.291667
78
0.734761
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
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
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
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
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
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
20.75
62
0.795181
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
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
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
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 from AllScripts import ScriptsBase ScriptsBase.add_script(Test, 'Photoconductivity')
50.716814
145
0.538126
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
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
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
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
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
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
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*
55.741935
154
0.624711
984f83c6fc04501148f422fce34dbcf040931285
898
py
Python
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
import pytest from herokuapp_internet.login_page import LoginPage from herokuapp_internet.disappearing_elements_page import DisappearingElementsPage import logging logger = logging.getLogger(__name__)
24.27027
112
0.75167
98501d1d0a0e678ce5a1a02156e3060dda0fe5b8
2,286
py
Python
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
2
2021-05-07T23:41:32.000Z
2021-05-08T15:52:08.000Z
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
null
null
null
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
null
null
null
""" doit docs: https://pydoit.org/cmd_run.html """ import pdoc import os import os.path def generate_docs(docs_dir: str): """ python callable that creates docs like docs/textwalker.html, docs/patternparser.py Args: docs_dir: location to output docs to """ if not os.path.exists(docs_dir): ...
22.194175
104
0.575241
98507d75380fc2a9e718b46b8379ee3c6dd67ff6
2,329
py
Python
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
14
2015-04-24T07:34:36.000Z
2021-08-02T09:50:49.000Z
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
1
2015-06-30T01:46:00.000Z
2015-07-03T18:45:23.000Z
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
8
2015-03-26T20:59:26.000Z
2020-07-29T09:02:26.000Z
''' Module for basic averaging of system states across multiple trials. Used in plotting. @author: Joe Schaul <joe.schaul@gmail.com> '''
37.564516
108
0.613568
9850f21cd3ef993acf8dcfbfcc45ff349ee32df7
636
py
Python
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
import click from lhotse.bin.modes import obtain, prepare from lhotse.recipes import download_vctk, prepare_vctk from lhotse.utils import Pathlike __all__ = ['vctk']
22.714286
74
0.718553
98514167071fff282b20e3764c9ba865aff2249e
1,627
py
Python
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages requirements = [ "xarray>=0.14", "numpy>=1.11", "scikit-learn>=0.22", "fsspec>=0.6.2", "pyyaml>=5.1.2", "tensorflow>=2.2.0", "tensorflow-addons>=0.11.2", "typing_extension...
28.54386
78
0.631838
98534ca864e3b4a1ef0ef0e2df72a864ede4128f
1,447
py
Python
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Dupa Set of tools handy during working, debuging and testing the code.""" __version__ = '0.0.1' __author__ = 'Kris Urbanski <kris@whereibend.space>' import time from functools import wraps from dupa.fixturize import fixturize def debug(func): """Print the function signature and retur...
20.671429
63
0.601935
9853ddeb20cc00b452e1f159e3fbc7ede42048e7
2,272
py
Python
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
null
null
null
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
3
2020-02-11T21:55:44.000Z
2021-06-10T17:35:37.000Z
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.sites.models import Site from django.shortcuts import render_to_response from django.template.context import RequestContext from htmlmin.decorators import not_minified_response from dss import localsettings from spa.forms import UserForm __author__ = 'fergalm' def get_javascript...
39.172414
154
0.716109
9856146cbc1b1623eb88d71962e3c10eca29c3be
1,207
py
Python
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
5
2022-01-14T10:32:43.000Z
2022-02-28T00:30:10.000Z
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
47
2022-02-10T03:17:26.000Z
2022-02-23T01:22:33.000Z
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
2
2022-03-08T22:48:24.000Z
2022-03-22T03:05:49.000Z
from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view from drf_yasg.utils import swagger_auto_schema from service.serializers import PostSerializer, ImagePostSerializer from .models import Author, Post
43.107143
94
0.694283
9856bd361d77e2facedd153b43e10e2a8e45b702
4,894
py
Python
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
# -*- coding:utf-8 -*- import hashlib import os from datetime import datetime from .error import * from .utils import Utils from .api import API from .net import Net
37.646154
106
0.6132
98573eee3b7071227d0b56c5a935ae363ee0a8cb
10,057
py
Python
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
# %% ''' Example implementations of HARK.ConsumptionSaving.ConsPortfolioModel ''' from HARK.ConsumptionSaving.ConsPortfolioModel import PortfolioConsumerType, init_portfolio from HARK.ConsumptionSaving.ConsIndShockModel import init_lifecycle from HARK.utilities import plotFuncs from copy import copy from time import ti...
40.389558
161
0.74038
985927c5dcddc08c61effceeb19e8c46ce9d7c79
1,648
py
Python
tests/test_order.py
mikedh/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
1
2020-12-09T01:16:01.000Z
2020-12-09T01:16:01.000Z
tests/test_order.py
ncantrell/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
null
null
null
tests/test_order.py
ncantrell/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
1
2020-10-24T23:53:58.000Z
2020-10-24T23:53:58.000Z
import lobby if __name__ == '__main__': test_book()
28.912281
61
0.283981
98594e8f28f9b9c4731a1d8dca33c92082e2d4cf
2,451
py
Python
examples/main_simulation_lemon_graph.py
KaterynaMelnyk/GraphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
1
2021-07-23T08:47:05.000Z
2021-07-23T08:47:05.000Z
examples/main_simulation_lemon_graph.py
k-melnyk/graphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
null
null
null
examples/main_simulation_lemon_graph.py
k-melnyk/graphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
null
null
null
import os import argparse import numpy as np import scipy import imageio import matplotlib.pyplot as plt from sklearn.cluster import KMeans import graphkke.generate_graphs.graph_generation as graph_generation import graphkke.generate_graphs.generate_SDE as generate_SDE parser = argparse.ArgumentParser() parser.add_...
32.68
101
0.641779
98598ee67261e34d645c03e2285132218a35b61d
741
py
Python
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
37
2017-12-07T15:49:29.000Z
2022-03-16T16:01:38.000Z
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
17
2016-06-20T09:06:14.000Z
2016-08-21T10:09:39.000Z
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
22
2016-08-01T01:35:30.000Z
2022-03-22T18:12:23.000Z
import sys try: import uos as os except ImportError: import os if not hasattr(os, "unlink"): print("SKIP") sys.exit() # cleanup in case testfile exists try: os.unlink("testfile") except OSError: pass try: f = open("testfile", "r+b") print("Unexpectedly opened non-existing file") excep...
15.122449
50
0.643725
985b201040312e7c31425d9070fec5f6579d56c8
1,198
py
Python
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
import json import re import datetime import scrapy import yaml import munch import pathlib from appdirs import user_config_dir config_path = list(pathlib.Path(__file__).parent.parent.parent.resolve().glob('config.yml'))[0]
27.860465
95
0.522538
985d8dba6a28036853c43ac631423cf9f7e8d275
1,031
py
Python
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
8
2018-05-24T21:38:18.000Z
2021-11-14T19:54:09.000Z
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
null
null
null
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pih2o pump / electro-valve management. """ import threading from RPi import GPIO from pih2o.utils import LOGGER
22.911111
70
0.57129
985e9fbe858937265cb958daa577a1fdbc91ad59
1,193
py
Python
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
4
2017-07-16T20:48:45.000Z
2017-10-05T21:45:24.000Z
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
16
2017-05-31T17:08:43.000Z
2021-04-19T17:34:31.000Z
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
null
null
null
""" Responsible to return the abstract browser configs. """ from abc import ABC, abstractmethod
21.690909
72
0.606035
985fbf3ad25006c87636cc7cd72711de296dda57
939
py
Python
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from mpl_finance import candlestick_ohlc # import matplotlib as mpl then mpl.use('TkAgg') import pandas as pd import numpy as np from datetime import datetime df = pd.read_csv('BitMEX-OHLCV-1d.csv') df.columns = ['date', 'open', 'high', 'low', 'clo...
31.3
71
0.715655
98617c5497bd8dec26edb8b7e9fa627e1c216a59
6,006
py
Python
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.012658
78
0.641026
986246b1b1aaab1a1a109f6cc6235d6d3aee9c4d
1,829
py
Python
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """Complex Type Tests.""" import json import mongoengine_goodjson as gj import mongoengine as db from ...fixtures.base import Dictable from ....con_base import DBConBase
32.087719
76
0.612903
9862a740ff21dde6fd66f39e14e99ce972ea2db9
995
py
Python
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
# current_unit_cost = 78.1 current_amount = 1300 # # 2021.07.28 calc_stock_new_cost(2000,53.3)
39.8
108
0.743719
9862a74b10166312c570b45f508f9467f0daa8cf
16,112
py
Python
appengine/findit/libs/test_results/webkit_layout_test_results.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/libs/test_results/webkit_layout_test_results.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/libs/test_results/webkit_layout_test_results.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This module is for webkit-layout-tests-related operations.""" import re from libs import test_name_util from libs.test_results.base_test_results import B...
36.618182
178
0.660191
9865a2e19bb04e676f8b6abab3559b06ec09af1e
3,477
py
Python
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
import os import zipfile import hashlib import logging import json from django.conf import settings from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import (AllowAny, IsAuthenticated, ) from .serializers import Test...
30.5
80
0.699166
9866792ed7574a448f6b711a55f93e86a444f71b
4,309
py
Python
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
1
2020-04-22T18:49:16.000Z
2020-04-22T18:49:16.000Z
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
null
null
null
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
null
null
null
from ff_client import FfClient, FfConfig, FfRequest import unittest import logging
29.114865
76
0.508239
9866d3b08c24b3c2f1e959650162041d580a0cb0
22,429
py
Python
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
1
2021-05-10T10:53:11.000Z
2021-05-10T10:53:11.000Z
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
null
null
null
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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 writing, ...
36.175806
116
0.727139
98684fbbb86d8c3abdb991d0ab578c4633a3f36f
3,356
py
Python
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division, print_function import numpy as np import rospy from rospkg.rospack import RosPack from copy import deepcopy from tf2_ros import TransformListener, Buffer from bopt_grasp_quality.srv import bopt, boptResponse from bayesian_optimization import Random_Explorer from b...
40.433735
142
0.676103
986961f64f65f1a7c4186940df49bdfa9b732036
2,356
py
Python
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
10
2021-01-06T13:25:13.000Z
2022-03-01T13:16:46.000Z
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
124
2021-01-06T13:29:55.000Z
2022-03-25T14:18:59.000Z
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
3
2021-01-08T10:27:34.000Z
2021-03-04T14:49:36.000Z
from typing import List, Optional from utils.embedder import build_embed from utils.utils import one from database.channel_message import ChannelMessage import discord
29.08642
81
0.744482
986a40624bae1a159be9cd68b43440b563e81ee0
208
py
Python
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from time import sleep from rediscache import rediscache import time, redis if __name__ == '__main__': myfunction()
13.866667
33
0.697115
986bbe481dae578c33047776f9bf717531d791dd
588
py
Python
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-12-11 14:48 from django.db import migrations, models
26.727273
114
0.585034
986c69808538d451d52888704f858b32d31572cc
1,246
py
Python
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
import os import os.path as ops import glob import random import tqdm SOURCE_IMAGE_DIR = '/home/luk/datasets/carla/04-10-town02-ss/gt_images' SOURCE_LABEL_DIR = '/home/luk/datasets/carla/04-10-town02-ss/gt_annotation' DST_IMAGE_INDEX_FILE_OUTPUT_DIR = '.' unique_ids = [] for dir_name in os.listdir(SOURCE_IMAGE_DIR)...
32.789474
93
0.719904
986cf0c2c336b0be083773fcf498596f4ecc8d23
216
py
Python
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
import pandas as pd chicago_df=pd.read_csv("Chicago_Crime_2015-2017.csv") #print(chicago_df.head()) chicago_vc = chicago_df["Primary Type"].value_counts() pd.DataFrame(chicago_vc).to_csv("crime_types_chicago_1.csv")
36
60
0.805556
986d1878579f7b790140714073e46cd0014bd988
293
py
Python
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
trees = [] with open("input.txt", "r") as f: for line in f.readlines(): trees.append(line[:-1]) # curr pos x, y = 0, 0 count = 0 while True: x += 3 y += 1 if y >= len(trees): break if trees[y][x % len(trees[y])] == '#': count += 1 print(count)
13.318182
41
0.477816
986dcd1400b08fbde9b3bc935b159961a94ee6ae
3,193
py
Python
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
null
null
null
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
1
2018-03-01T17:14:00.000Z
2018-03-01T17:56:40.000Z
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django.test import TestCase from .models import Event UserModel = get_user_model()
36.284091
95
0.625744
986ee4d9a3c5ac634d9bf7328c6b4976f021aaac
12,618
py
Python
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
null
null
null
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
6
2020-11-13T18:49:14.000Z
2022-02-10T02:18:36.000Z
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Input from tensorflow.keras.losses import binary_crossentropy, sparse_categorical_crossentropy from bopflow.models.darknet import darknet_conv_upsampling, darknet_conv, darknet from bopflow.models.utils im...
32.689119
89
0.593042
986f08850a9f3156a8739237ba8493743a09c545
1,904
py
Python
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# -*- coding: UTF-8 -*- # # generated by wxGlade 0.9.3 on Wed Sep 11 13:50:00 2019 # import wx # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade # end of class MyDialog
31.213115
79
0.629202
9873743ca2a564b0129fc4f8eb4dc2d65eeae81c
1,227
py
Python
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from gsi_handlers.sim_handlers import _get_sim_info_by_id from sims4.gsi.dispatcher import GsiHandler from sims4.gsi.schema import GsiGridSchema familiar_schema = GsiGridSchema(label='Familiars', sim_specific=True) familiar_schema.add_field('familiar_name', label='Name') familiar_schema.add_field('familiar_type', label...
49.08
157
0.730236
98737ef22d1fe7939a250bbf74abbab55ff11614
368
py
Python
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing-Python-Programs
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
4
2019-10-03T21:16:51.000Z
2019-10-04T01:28:08.000Z
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
#35011 #a3_p10.py #Miruthula Ramesh #mramesh@jacobs-university.de n = int(input("Enter the width")) w = int(input("Enter the length")) c = input("Enter a character") space=" " print_frame(n,w)
21.647059
42
0.540761
98746ffc4cea4687e7a965dcec7581058c45625e
3,430
py
Python
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
null
null
null
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-07-03T13:32:38.000Z
2019-07-03T13:32:38.000Z
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-05-15T16:01:31.000Z
2019-05-15T16:01:31.000Z
# Copyright (C) 2012 Dr. Ralf Schlatterbeck Open Source Consulting. # Reichergasse 131, A-3411 Weidling. # Web: http://www.runtux.com Email: office@runtux.com # All rights reserved # **************************************************************************** # This library is free software; you can redistribute it and...
35.360825
78
0.62828
9874db724f940ec221da9bfba43331479dc0fde4
8,091
py
Python
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
null
null
null
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
null
null
null
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
4
2018-11-17T08:43:16.000Z
2022-01-25T13:20:03.000Z
#!/bin/python # -*- coding: utf-8 -*- import numpy as np import numpy.linalg as nl import scipy.linalg as sl import scipy.stats as ss import time aca = np.ascontiguousarray def iuc(x, y): """ Checks if pair of generalized EVs x,y is inside the unit circle. Here for legacy reasons """ out = np.empt...
22.412742
253
0.53096
98793af1d2a1730aeaf0a67933baaa6757991887
1,357
py
Python
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 18 10:36:17 2019 @author: tuyenta """ s = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896...
61.681818
1,006
0.884304
987a1d628a455fb7547d351f18993c8d80a36f30
6,649
py
Python
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
9
2019-07-07T02:57:50.000Z
2022-01-07T10:03:30.000Z
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
import json import time from datetime import datetime from django.contrib.admin.views.decorators import staff_member_required from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.mod...
30.222727
105
0.628666
987ad6ec30c9c05b606f50c7a12db0da2ad93e50
12,104
py
Python
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
import collections import logging from event_model import DocumentRouter, RunRouter import numpy from matplotlib.backends.backend_qt5agg import ( FigureCanvasQTAgg as FigureCanvas, NavigationToolbar2QT as NavigationToolbar) import matplotlib from qtpy.QtWidgets import ( # noqa QLabel, QWidget, QVB...
37.015291
102
0.574686
987b85fcc75895ef8fd5e121355ef5a571c2a852
586
py
Python
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
1
2018-11-15T10:03:40.000Z
2018-11-15T10:03:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .gamma_prior import GammaPrior from .multivariate_normal_prior import MultivariateNormalPrior from .normal_prior import NormalPrior from .smoothed_box_prior import S...
36.625
81
0.863481