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
bbf00ed1d2c63a8cbd6917e7f62b070f2c550c40
4,492
py
Python
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
53
2018-10-28T20:07:16.000Z
2021-12-17T02:25:57.000Z
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
3
2019-01-07T14:01:39.000Z
2019-05-07T12:01:44.000Z
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
9
2018-10-28T22:31:29.000Z
2021-10-14T02:54:27.000Z
import os import time import datetime import ref import torch import torch.utils.data from opts import opts from model.Pose3D import Pose3D from datahelpers.dataloaders.fusedDataLoader import FusionDataset from datahelpers.dataloaders.h36mLoader import h36m from datahelpers.dataloaders.mpiiLoader import mpii from dat...
31.412587
163
0.70236
0
0
0
0
0
0
0
0
571
0.127115
bbf0d14e96a9123beca18b5184daaba1114c19e3
4,129
py
Python
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
3
2015-03-19T11:49:05.000Z
2019-06-06T22:25:49.000Z
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
null
null
null
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # # Paper: When Crowdsourcing Fails: A Study of Expertise on Crowdsourced # Design Evaluation # Author: Alex Burnap - aburnap@umich.edu # Date: October 10, 2014 # License: Apache v2 # Descrip...
43.463158
118
0.627755
0
0
0
0
0
0
0
0
1,551
0.375636
bbf0f0dbbea749b29ef7a61b2ac5e680c12f1409
1,053
py
Python
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
# This script will accept a filename from the user and print the extension of that. # If the script doesn't find a period in filename, then it'll display result accordingly. # "not in" or "in" membership operator can be used with strings as well along with list, tuples. # Need to check which additional other places can...
30.970588
115
0.716999
0
0
0
0
0
0
0
0
804
0.763533
bbf2ae61952632fab35bb3d4da6625e30a6cc5d4
1,279
py
Python
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
null
null
null
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
null
null
null
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
1
2022-02-04T13:40:00.000Z
2022-02-04T13:40:00.000Z
__copyright__ = """This code is licensed under the 3-clause BSD license. Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. See LICENSE.txt for details. """ import os import scine_utilities as utils from distutils import ccompiler manager = utils.core.ModuleManager() if not manager.module_loaded('X...
36.542857
78
0.693511
0
0
0
0
0
0
0
0
359
0.280688
bbf40515dd7d835260533fe653dd331f52016415
5,062
py
Python
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
3
2016-05-03T20:07:25.000Z
2020-12-22T07:16:11.000Z
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
17
2016-04-26T09:35:42.000Z
2016-08-18T10:07:40.000Z
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
1
2019-05-20T01:40:56.000Z
2019-05-20T01:40:56.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Open Permissions Platform Coalition # 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 appl...
29.260116
107
0.644212
936
0.184907
0
0
66
0.013038
0
0
2,432
0.480443
bbf5f66b6a4f40cea15c174917bd79930606ce25
189
py
Python
tests/controls/scroller.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
tests/controls/scroller.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
tests/controls/scroller.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
"""ScrollList Component Test""" import curses from source.controls import Window from source.controls import ScrollList as Scroller __author__ = "Samuel Whang" def view(screen): pass
18.9
50
0.777778
0
0
0
0
0
0
0
0
45
0.238095
bbf6bf0479cef19ff010cf6f671d185104dd03d3
9,060
py
Python
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
import os from collections import deque from glycan_profiling.task import TaskBase debug_mode = bool(os.environ.get("GLYCRESOFTDEBUG")) class StructureSpectrumSpecificationBuilder(object): """Base class for building structure hit by spectrum specification """ def build_work_order(self, hit_id, hit_map...
37.438017
115
0.562252
8,909
0.983333
0
0
0
0
0
0
4,286
0.473068
bbf71be865b8e26676ff85c557b20b334f5953a8
4,420
py
Python
tests/queries/recursive/query_typeddict.py
s1s5/python-gql-compiler
52e0ed7c9fa6deafe2c169c8340d66e8cc168491
[ "MIT" ]
null
null
null
tests/queries/recursive/query_typeddict.py
s1s5/python-gql-compiler
52e0ed7c9fa6deafe2c169c8340d66e8cc168491
[ "MIT" ]
null
null
null
tests/queries/recursive/query_typeddict.py
s1s5/python-gql-compiler
52e0ed7c9fa6deafe2c169c8340d66e8cc168491
[ "MIT" ]
null
null
null
# @generated AUTOGENERATED file. Do not Change! # flake8: noqa # fmt: off # isort: skip_file import typing from gql import gql, Client Episode = typing.Literal["NEWHOPE", "EMPIRE", "JEDI"] GetRecursive__hero__Droid__friends__Droid__friends = typing.TypedDict("GetRecursive__hero__Droid__friends__Droid__friends", {"na...
43.762376
267
0.721493
1,445
0.326923
0
0
478
0.108145
0
0
1,697
0.383937
bbf803380db0ef251842437e33a2f97c28f09e88
795
py
Python
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 16 09:32:56 2018 @author: gamer """ import pygame as pg import numpy as np import skimage.transform as transform class Render(object): def __init__(self, window_size=(360,480)): pg.init() self.h,self.w = window_size self.dis...
24.090909
73
0.548428
632
0.794969
0
0
0
0
0
0
104
0.130818
bbf98d99386d0154fceea52ba139487cd08f628c
660
py
Python
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
import pygame import sys def setup(w,h,r): surf = pygame.Surface((w,h)) fract_circle(w/2, h/2, r, surf) pygame.image.save(surf, str(r)+"_radius.png") # branching recursion def fract_circle(x,y, radius, surface): if radius > 1: pygame.draw.circle(surface, (0,0,255), (int(x),int(y)), int(radius), 1) if radius ...
27.5
73
0.689394
0
0
0
0
0
0
0
0
87
0.131818
bbfa57bb471088a16fc1c6466ecf225acd101941
684
py
Python
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
8
2021-03-21T21:34:59.000Z
2022-03-25T20:51:47.000Z
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
7
2021-04-07T07:40:23.000Z
2022-01-22T21:05:40.000Z
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
5
2022-01-21T18:37:20.000Z
2022-02-17T00:35:28.000Z
from hmc5883l import HMC5883L sensor = HMC5883L(scl=5, sda=4) valmin=[0,0,0] valmax=[0,0,0] valscaled=[0,0,0] def convert(x, in_min, in_max, out_min, out_max): return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min f=open("cal.csv",'w') for count in range(3000): valread = sensor.read() ...
27.36
75
0.631579
0
0
0
0
0
0
0
0
281
0.410819
bbfb94b2d81a97cc98431123af9d98c4a0ea9623
16,554
py
Python
edgetpu/swig/edgetpu_cpp_wrapper.py
TinkerEdgeT/mendel-edgetpu
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
[ "Apache-2.0" ]
null
null
null
edgetpu/swig/edgetpu_cpp_wrapper.py
TinkerEdgeT/mendel-edgetpu
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
[ "Apache-2.0" ]
null
null
null
edgetpu/swig/edgetpu_cpp_wrapper.py
TinkerEdgeT/mendel-edgetpu
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
[ "Apache-2.0" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path imp...
31.411765
100
0.691434
12,106
0.731304
0
0
0
0
0
0
4,851
0.293041
bbfba00ada95ca4b323dab1489addc7b7c3e9bf4
13,774
py
Python
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
1
2021-09-30T01:18:51.000Z
2021-09-30T01:18:51.000Z
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
null
null
null
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
null
null
null
"""Mean covariance estimation.""" from copy import deepcopy import numpy as np from .base import sqrtm, invsqrtm, logm, expm from .ajd import ajd_pham from .distance import distance_riemann from .geodesic import geodesic_riemann def _get_sample_weight(sample_weight, data): """Get the sample weights. If none...
32.795238
116
0.635908
0
0
0
0
0
0
0
0
7,064
0.51285
bbfe214e8149d499ea33bd81fda220abbce8fdef
3,578
py
Python
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
null
null
null
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
null
null
null
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
1
2021-02-18T11:24:28.000Z
2021-02-18T11:24:28.000Z
#!/usr/bin/env python from fabric.api import * import app import app_config """ Environments Changing environment requires a full-stack test. An environment points to both a server and an S3 bucket. """ def production(): env.settings = 'production' env.s3_buckets = app_config.PRODUCTION_S3_BUCKETS def stag...
27.312977
186
0.66322
0
0
0
0
0
0
0
0
1,884
0.526551
bbfebfa3a6e07ffb390ccc9c51bbfd1c5eb387b7
2,531
py
Python
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
null
null
null
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
4
2019-08-25T13:16:03.000Z
2021-01-07T23:20:24.000Z
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
null
null
null
from PIL import Image from openpyxl import Workbook from openpyxl.styles import PatternFill from openpyxl.utils import get_column_letter from functools import partial import sys import argparse def rgb_to_xls_hex(rgb_tuple, image_mode='RGB'): if image_mode == 'RGB': r, g, b = rgb_tuple elif ...
33.746667
111
0.600948
0
0
0
0
0
0
0
0
639
0.252469
bbff69aa5097c6b5253948d0d9595188ebebf3c2
7,502
py
Python
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
from unittest import TestCase from dat_analysis.dat_object.dat_hdf import DatHDF from dat_analysis.hdf_file_handler import HDFFileHandler from dat_analysis.dat_object.make_dat import get_dat, get_dats, DatHandler from tests.helpers import get_testing_Exp2HDF from dat_analysis.data_standardize.exp_specific.Feb21 import ...
40.551351
132
0.681818
6,028
0.803519
0
0
0
0
0
0
1,098
0.146361
a51f8b0d486e0ae6fcf2e60b6ae5a88312c39cab
2,721
py
Python
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
import myshop def movie(name): two = round((9.99 * 1.07), 2) print("Here is your Ticket and movie receipt.\n[Ticket for", name, " - $" + str(two) + "]\nEnjoy the film!") def concession(): print(" Refreshments:\n" "Popcorn - $5.05\n" "Coke - $2.19\n" "Cookies -...
32.011765
79
0.484748
0
0
0
0
0
0
0
0
1,034
0.380007
a51f8b0f6e2a6c5f1924803b2a7a2c961da769d4
43,469
py
Python
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
1
2021-04-02T14:36:12.000Z
2021-04-02T14:36:12.000Z
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
3
2018-02-23T19:47:31.000Z
2019-07-15T16:58:54.000Z
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
1
2017-01-06T20:16:07.000Z
2017-01-06T20:16:07.000Z
#!/usr/bin/env python # CREATED BY CHRISTOPHER LAVENDER # BASED ON WORK BY ADAM BURKHOLDER # INTEGRATIVE BIOINFORMATICS, NIEHS # WORKING OBJECT ORIENTED VERSION import os import math import argparse import sys from operator import itemgetter def writeBedHeader(file_name, description, OUTPUT): OUTPUT.write('trac...
43.996964
80
0.494835
35,901
0.825899
0
0
0
0
0
0
8,240
0.18956
a51fd6b2b0c4c430c0e920bd959a2e1d06f3221b
234
py
Python
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
1
2018-11-25T19:30:22.000Z
2018-11-25T19:30:22.000Z
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
null
null
null
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('lena.jpg', cv2.IMREAD_GRAYSCALE) thresh = 127 im_bw = cv2.threshold(img, thresh, 255, cv2.THRESH_BINARY)[1] cv2.imshow('image', im_bw) cv2.waitKey(0) cv2.destroyAllWindows()
21.272727
62
0.713675
0
0
0
0
0
0
0
0
17
0.07265
a52068720298fd51fbb513a22dc8a2e7f0bdd3f1
652
py
Python
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
6
2016-03-06T05:51:06.000Z
2017-01-10T05:49:03.000Z
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
null
null
null
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Introduces the "argparse" module, which is used to parse more complex argument strings eg: ./006-argparse.py --name Jeff mauve """ import argparse # http://docs.python.org/2/library/argparse.html#module-argparse import subprocess def main(): parser = argparse.ArgumentParser(description='...
28.347826
99
0.707055
0
0
0
0
0
0
0
0
332
0.509202
a5209d004c35406d08483e6a8a94534fc1c1b17b
4,573
py
Python
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
1
2021-04-21T02:55:11.000Z
2021-04-21T02:55:11.000Z
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
27
2020-12-07T23:11:42.000Z
2022-02-02T23:59:03.000Z
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
2
2020-04-01T05:52:03.000Z
2020-07-24T16:56:36.000Z
""" This is the IOC source code for the unique AT2L0, with its 18 in-out filters. """ from typing import List from caproto.server import SubGroup, expand_macros from caproto.server.autosave import RotatingFileManager from .. import calculator, util from ..filters import InOutFilterGroup from ..ioc import IOCBase from...
36.293651
79
0.650776
3,032
0.663022
0
0
2,367
0.517603
2,190
0.478898
1,106
0.241854
a520cc9aad5c8512bee199a8b970862484795d67
4,530
py
Python
mysite/urls.py
jtkim03/Find-a-QT
a330c95f76bcc148febf39284c07d3ac4f909b4e
[ "BSD-3-Clause" ]
null
null
null
mysite/urls.py
jtkim03/Find-a-QT
a330c95f76bcc148febf39284c07d3ac4f909b4e
[ "BSD-3-Clause" ]
9
2021-03-30T13:42:35.000Z
2022-03-12T00:36:19.000Z
mysite/urls.py
jtkim03/Find-a-QT
a330c95f76bcc148febf39284c07d3ac4f909b4e
[ "BSD-3-Clause" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
56.625
137
0.722296
0
0
0
0
0
0
0
0
2,139
0.472185
a5212eabcb877d5b4c6f79a259ed99bcf35ed6f2
396
py
Python
app/forms/login.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
2
2016-12-01T00:10:46.000Z
2016-12-31T19:18:35.000Z
app/forms/login.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
null
null
null
app/forms/login.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired class LoginForm(Form): ''' Form used to perform a user login ''' username = StringField('Username', validators=[DataRequired()]) password = PasswordField('Password', validators=[Data...
28.285714
66
0.765152
261
0.659091
0
0
0
0
0
0
71
0.179293
a522e39d60daf369e5808e7febdbf847f905a859
880
py
Python
budgetcalc/admin.py
MAPC/MBTA
a1e669004509832a42ca49ef4d7d06d05e3a88fd
[ "BSD-3-Clause" ]
null
null
null
budgetcalc/admin.py
MAPC/MBTA
a1e669004509832a42ca49ef4d7d06d05e3a88fd
[ "BSD-3-Clause" ]
null
null
null
budgetcalc/admin.py
MAPC/MBTA
a1e669004509832a42ca49ef4d7d06d05e3a88fd
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from budgetcalc.models import Category, Optiongroup, Option, Submission class CategoryAdmin(admin.ModelAdmin): list_display = ('pk','title', 'cat_type', 'order',) list_editable = ('title', 'cat_type', 'order',) class OptiongroupAdmin(admin.ModelAdmin): list_display = ('...
32.592593
91
0.718182
576
0.654545
0
0
0
0
0
0
217
0.246591
a52614c1f178a95384236fabe39f5251f3b714f1
117
py
Python
USP_Curso/Semana3/Exercicio4.py
IagoAntunes/Python__learning
cb96a1ae902c290270479c7a7f4e97b56c538297
[ "MIT" ]
null
null
null
USP_Curso/Semana3/Exercicio4.py
IagoAntunes/Python__learning
cb96a1ae902c290270479c7a7f4e97b56c538297
[ "MIT" ]
null
null
null
USP_Curso/Semana3/Exercicio4.py
IagoAntunes/Python__learning
cb96a1ae902c290270479c7a7f4e97b56c538297
[ "MIT" ]
null
null
null
num = int(input("Digite um numero: ")) if(num % 5 == 0 and num % 3 == 0): print("FizzBuzz") else: print(num)
19.5
38
0.555556
0
0
0
0
0
0
0
0
30
0.25641
a5269b57489ba167b642f9b77a2ffe4af1010998
1,777
py
Python
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
def test_compile(ape_cli, runner, project): if not (project.path / "contracts").exists(): result = runner.invoke(ape_cli, ["compile"]) assert result.exit_code == 0 assert "WARNING" in result.output assert "No 'contracts/' directory detected" in result.output return # Nothing...
40.386364
97
0.655037
0
0
0
0
0
0
0
0
562
0.316263
a528fb1f9441de07bad65e4dc6932a2f3895273e
3,720
py
Python
gpg_reaper.py
kacperszurek/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
95
2018-03-05T18:20:00.000Z
2021-09-28T18:51:40.000Z
gpg_reaper.py
n0ncetonic/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
null
null
null
gpg_reaper.py
n0ncetonic/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
15
2018-03-13T01:44:00.000Z
2021-12-20T09:59:26.000Z
# GPG Reaper # # MIT License # # Copyright (c) 2018 Kacper Szurek # https://security.szurek.pl/ from pgpy.packet.fields import MPI, RSAPriv from pgpy.constants import PubKeyAlgorithm, KeyFlags, HashAlgorithm, SymmetricKeyAlgorithm, CompressionAlgorithm from pgpy import PGPKey from pgpy.packet.packets import PrivKeyV4 ...
35.09434
112
0.552419
0
0
0
0
0
0
0
0
387
0.104032
a52c5d9d6fb9e5755519e9da6cf0e9e7b0ba2f4d
221
py
Python
db.py
HoolaBoola/tsoha_article_library
9c1d79eb06811a97c6984d4c970ee71a18724df7
[ "MIT" ]
null
null
null
db.py
HoolaBoola/tsoha_article_library
9c1d79eb06811a97c6984d4c970ee71a18724df7
[ "MIT" ]
2
2021-04-26T18:19:39.000Z
2021-04-26T19:43:35.000Z
db.py
HoolaBoola/tsoha_article_library
9c1d79eb06811a97c6984d4c970ee71a18724df7
[ "MIT" ]
1
2021-05-06T09:10:35.000Z
2021-05-06T09:10:35.000Z
from app import app from flask_sqlalchemy import SQLAlchemy from os import getenv app.config["SQLALCHEMY_DATABASE_URI"] = getenv("DATABASE_URL") app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False db = SQLAlchemy(app)
24.555556
62
0.809955
0
0
0
0
0
0
0
0
71
0.321267
a52cc5e0156fbef790ecdf07862d92b75464ebf8
399
py
Python
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
import torch from os.path import join from fvcore.common.registry import Registry ARCHITECTURE_REGISTRY = Registry("ARCHITECTURE") def build_model(cfg): arch = cfg.MODEL.ARCHITECTURE model = ARCHITECTURE_REGISTRY.get(arch)(cfg) if cfg.SAVE.MODELPATH and cfg.MODEL.LOADPREV: model.load_state_dict(...
26.6
91
0.749373
0
0
0
0
0
0
0
0
25
0.062657
a52e756102241b8ea4824f9de3490cd248e22558
14,034
py
Python
graphGenerator.py
carlklier/flappai-bird
ea640005494eaf70abc22c41e502593a8aff436f
[ "Apache-2.0" ]
null
null
null
graphGenerator.py
carlklier/flappai-bird
ea640005494eaf70abc22c41e502593a8aff436f
[ "Apache-2.0" ]
null
null
null
graphGenerator.py
carlklier/flappai-bird
ea640005494eaf70abc22c41e502593a8aff436f
[ "Apache-2.0" ]
null
null
null
#%% import base64 import matplotlib.pyplot as plt import numpy as np import json from ast import literal_eval data1encoded = 'eyJkZGFFbmFibGVkIjpmYWxzZSwiZGF0YSI6W3sic3RhcnRUaW1lIjoxNjE5MTM3MjUxMzg1LCJkdXJhdGlvbiI6NjQ1Miwic2NvcmUiOjAsImdyYXZpdHkiOjAuMjUsInBpcGVJbnRlcnZhbCI6MTQwMCwicGlwZWhlaWdodCI6OTAsImNvbGxpc2lvblBvc...
64.972222
4,005
0.862619
0
0
0
0
0
0
0
0
9,370
0.667664
a5320d08df77982d660989950f89ae694eb0d00c
2,870
py
Python
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
1
2018-07-31T08:29:11.000Z
2018-07-31T08:29:11.000Z
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
null
null
null
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 30 16:08:04 2016 @author: Manuel """ from C45Tree_own import split import pandas as pa def apply(X, tree): results = [] for x in range(0,len(X.index)): temp_tree = tree.copy() example = X.loc[x,:] while(True == True): ...
32.247191
81
0.501394
0
0
0
0
0
0
0
0
635
0.221254
a5323fdb26fc504a82070a2ba96f6ac67837b9e8
1,545
py
Python
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
1
2021-03-15T11:29:12.000Z
2021-03-15T11:29:12.000Z
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
130
2020-09-07T08:30:29.000Z
2022-03-29T11:49:27.000Z
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
4
2020-09-07T05:34:13.000Z
2021-11-07T12:51:21.000Z
# Generated by Django 2.2.16 on 2020-10-28 06:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("application_form", "0004_add_apartment"), ] operations = [ migrations.AlterModelOptions( name="hasoapartmentpriority", ...
31.530612
84
0.487379
1,451
0.939159
0
0
0
0
0
0
577
0.373463
a5344db9359a04a85d968f45541c787bd80db9a0
579
py
Python
sample.py
aakibqureshi/goibibo_python
fb8b43eb85bad9baf016e701051a3196ac84a23d
[ "MIT" ]
null
null
null
sample.py
aakibqureshi/goibibo_python
fb8b43eb85bad9baf016e701051a3196ac84a23d
[ "MIT" ]
null
null
null
sample.py
aakibqureshi/goibibo_python
fb8b43eb85bad9baf016e701051a3196ac84a23d
[ "MIT" ]
null
null
null
""" Sample Example """ from goibibo import goibiboAPI GO = goibiboAPI("ae51f09b", "da2d83a905110d15a51795b018605026") print GO.FlightSearch("BLR", "HYD", 20141028) print GO.MinimumFare("BLR", "HYD", 20141028) print GO.BusSearch("bangalore", "hyderabad", 20141028) print GO.BusSeatMap("vJ52KC0ymd0635qTD9bDDy9GHBkGl5FJM...
36.1875
69
0.789292
0
0
0
0
0
0
0
0
214
0.369603
a534ca263cb0f9b6e64a0efc7bf4cd98c4b776a8
1,237
py
Python
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
10
2016-09-13T15:50:10.000Z
2021-05-27T15:36:58.000Z
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
5
2017-03-26T13:51:40.000Z
2020-04-22T19:46:36.000Z
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
2
2020-03-05T06:07:18.000Z
2022-02-11T14:23:46.000Z
from datetime import datetime from dateutil.tz import tzutc from aiogithub.objects.response import BaseResponseObject from aiogithub.utils import return_key class RateLimitDetail(BaseResponseObject): def _normalise_key(self, document, key): if key == 'reset' and not isinstance(document['reset'], datetim...
22.089286
74
0.611964
1,072
0.866613
0
0
507
0.409863
0
0
65
0.052546
a5357ab347b4e01cb284298a5ffef482b143a7cb
736
py
Python
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """how to user basic math operations in python """ def math_operations(): a = 5 + 3 assert a == 8 b = 5 - 3 assert b == 2 c = 5 * 3 assert c == 15 assert isinstance(c, int) assert 5 / 3 == 1.666666666666666666666667 assert 8 / 2 == 4 assert 5 % 3 == 2 ...
16
50
0.539402
0
0
0
0
0
0
0
0
147
0.199728
a5379fd45bcc411d7e294e71572901a73fd67651
8,204
py
Python
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
26
2021-11-30T02:48:16.000Z
2022-03-26T04:47:25.000Z
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
143
2021-11-04T07:47:53.000Z
2022-03-31T23:13:33.000Z
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
14
2021-11-12T15:32:27.000Z
2022-03-28T04:04:44.000Z
# RT - Original Command from __future__ import annotations from discord.ext import commands import discord from aiomysql import Pool, Cursor from rtutil import DatabaseManager class DataManager(DatabaseManager): TABLE = "OriginalCommand" def __init__(self, pool: Pool): self.pool = pool asyn...
30.385185
104
0.50902
8,740
0.973057
0
0
5,537
0.616455
7,554
0.841015
3,862
0.429971
a53a2c90ed2f68c611f75caaa74a581e8ab0f1b5
12,626
py
Python
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
2
2020-02-13T12:30:47.000Z
2020-03-21T16:32:47.000Z
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
2
2021-04-06T18:27:57.000Z
2021-06-02T03:51:47.000Z
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
null
null
null
import re import requests import sys sys.path.append('cli_stats') from directory import Directory from pprint import pprint from storage_config import StorageConfig from tqdm import tqdm session = requests.Session() #TODO """ *Program is not scaling well """ """***HOW TO USE*** 1. Create an instance of Foot...
34.497268
165
0.606368
9,286
0.735408
0
0
0
0
0
0
5,358
0.424329
a53ba70350cca6563c1076848345c71f8f783379
826
py
Python
web/checkout/models.py
Arvind-4/E-Commerce
d7d2f395a4e64a683dd73fed29c627a2210f479a
[ "MIT" ]
null
null
null
web/checkout/models.py
Arvind-4/E-Commerce
d7d2f395a4e64a683dd73fed29c627a2210f479a
[ "MIT" ]
null
null
null
web/checkout/models.py
Arvind-4/E-Commerce
d7d2f395a4e64a683dd73fed29c627a2210f479a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django_countries import countries COUNTRY_CHOICES = tuple(countries) User = get_user_model() # Create your models here. class Checkout(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) name = models.CharFi...
30.592593
71
0.746973
620
0.750605
0
0
0
0
0
0
53
0.064165
a53bcdd38f44a14806e05907ccae272513b9cf1c
1,787
py
Python
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
import numpy as np def least_squares_BCES(Y1, Y2, V11, V22, V12=0, origin=False): """ Make a least-squares fit for non-NaN values taking into account the errors in both rho and J variables. This implementation is based on Akritas1996 article. It is a generalization of the least-squares method. The variance o...
33.716981
323
0.613318
0
0
0
0
0
0
0
0
1,016
0.568551
a53c77391ca18888fe3d4f6374d65264bcebc717
7,696
py
Python
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
null
null
null
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
4
2020-10-28T19:27:47.000Z
2020-11-04T00:12:25.000Z
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
null
null
null
from ErnosCube.face_enum import FaceEnum from ErnosCube.orient_enum import OrientEnum from ErnosCube.sticker import Sticker from ErnosCube.face import Face from ErnosCube.face import RowFaceSlice, ColFaceSlice from plane_rotatable_tests import PlaneRotatableTests from hypothesis import given from strategies import sti...
37
79
0.652677
7,220
0.935961
0
0
2,566
0.332642
0
0
762
0.098781
a53cb8a72414679c109b52c99f7c00abcac934ad
19,752
py
Python
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
4
2015-01-05T21:04:20.000Z
2015-09-16T12:56:47.000Z
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
15
2015-01-14T10:08:01.000Z
2021-06-02T07:09:49.000Z
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
2
2015-02-17T11:11:31.000Z
2016-05-06T07:11:24.000Z
from unittest.case import TestCase from django.core.exceptions import ImproperlyConfigured from django.test.utils import override_settings from djangoes import (ConnectionHandler, IndexDoesNotExist, ConnectionDoesNotExist, load_backend) from djangoes.b...
31.552716
90
0.571132
19,352
0.979749
0
0
0
0
0
0
7,200
0.36452
a53ce607d2484b47e38e0b6a97b11b56e4d3bb58
8,497
py
Python
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
23
2015-01-14T21:32:11.000Z
2021-07-19T12:59:10.000Z
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
1
2017-06-30T10:54:57.000Z
2017-06-30T10:54:57.000Z
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
9
2015-09-02T17:44:24.000Z
2021-07-05T18:59:16.000Z
#!/usr/bin/env python """ Copyright 2014 Novartis Institutes for Biomedical Research 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 ...
37.933036
79
0.578086
7,870
0.926209
0
0
0
0
0
0
3,894
0.458279
a53d6a324052f390797cf713195803de6c9fa43f
1,148
py
Python
PS4/ps4a.py
PanPapag/MIT-OCW-Introduction-to-Computer-Science-and-Programming-in-Python-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
3
2019-05-20T19:37:49.000Z
2020-05-16T08:57:04.000Z
PS4/ps4a.py
PanPapag/MIT-OCW-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
null
null
null
PS4/ps4a.py
PanPapag/MIT-OCW-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
null
null
null
def get_permutations(sequence): ''' Enumerate all permutations of a given string sequence (string): an arbitrary string to permute. Assume that it is a non-empty string. You MUST use recursion for this part. Non-recursive solutions will not be accepted. Returns: a list of all pe...
30.210526
79
0.595819
0
0
0
0
0
0
0
0
629
0.547909
a53fd665444f0740f577cb5726aba9622f38b8eb
3,246
py
Python
streambox/test/regression.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
3
2019-07-03T14:03:31.000Z
2021-12-19T10:18:49.000Z
streambox/test/regression.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
6
2020-02-17T12:01:30.000Z
2021-12-09T22:02:33.000Z
streambox/test/regression.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
2
2020-12-03T04:41:18.000Z
2021-01-11T21:44:42.000Z
all_tests = [ { "name" : "wc-fast", "exec" : "./test-wc.bin", "records" : 1000 * 1000, # records per epoch "record_size" : 100, "target_ms" : 1000, "input_file" : "/ssd/1g.txt", # --- optional: soft delay --- # #"softdelay_maxbad_ratio" : 0.1, # okay if aonmaly delay % is less than this in a windo...
33.8125
90
0.608133
0
0
0
0
0
0
0
0
2,566
0.790511
a5411aefaed2b9a42a7bcdc0b02b6093311e2594
277
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/vowels-of-all-substrings.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/vowels-of-all-substrings.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/vowels-of-all-substrings.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(1) class Solution(object): def countVowels(self, word): """ :type word: str :rtype: int """ VOWELS = set("aeiou") return sum((i-0+1) * ((len(word)-1)-i+1) for i, c in enumerate(word) if c in VOWELS)
23.083333
92
0.505415
247
0.891697
0
0
0
0
0
0
92
0.33213
a541ad6227bc2976b930cd5ee28105b474b1a9e3
1,350
py
Python
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 16, 2016 @author: enikher ''' import logging import datetime LOG = logging.getLogger(__name__) LOG_LEVEL = logging.DEBUG LOG_PATH = "./dlService.log" logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', filename=LOG_PATH, datefmt='%Y-%m-%dT:%H...
31.395349
71
0.545926
0
0
0
0
0
0
0
0
365
0.27037
a544d907f7886fe6cd4c85cf8051e8844cf738ac
54
py
Python
flask_api/app/common/__init__.py
brennanhfredericks/network-monitor-server
7c811d7851aee5d069569306c46dff39d8d52400
[ "MIT" ]
null
null
null
flask_api/app/common/__init__.py
brennanhfredericks/network-monitor-server
7c811d7851aee5d069569306c46dff39d8d52400
[ "MIT" ]
null
null
null
flask_api/app/common/__init__.py
brennanhfredericks/network-monitor-server
7c811d7851aee5d069569306c46dff39d8d52400
[ "MIT" ]
null
null
null
from .appifaceprog import api from .database import db
27
29
0.833333
0
0
0
0
0
0
0
0
0
0
a546651f1dcad01340583064244d142fb1215fd5
1,061
py
Python
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
null
null
null
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
null
null
null
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
1
2018-05-07T23:44:40.000Z
2018-05-07T23:44:40.000Z
from EasyPortfolioExplorer.app.easy.base import EasyBase class ResourceLoader(EasyBase): """ Class for adding external resources such as css and js file. The current version is based on boostrap 3.3.7. """ def __init__(self, **kwargs): super(ResourceLoader, self).__init__(**kw...
33.15625
122
0.600377
999
0.941565
0
0
0
0
0
0
481
0.453346
a5477960eb696e3d1bcdbdddd2a93a52054fb340
11,884
py
Python
pybind/slxos/v16r_1_00b/brocade_firmware_rpc/dad_status/output/dad_status_entries/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_firmware_rpc/dad_status/output/dad_status_entries/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_firmware_rpc/dad_status/output/dad_status_entries/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
61.57513
496
0.73073
11,490
0.966846
0
0
0
0
0
0
5,670
0.477112
a548314328afb7d3cb5f380d9d16cde6403fb2e0
1,275
py
Python
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
3
2017-04-03T12:18:24.000Z
2018-06-25T08:31:04.000Z
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: The root of the binary search tree. @param node: insert this node into the binary search tree. @return: The root of the new bina...
27.12766
62
0.481569
1,131
0.887059
0
0
0
0
0
0
571
0.447843
a5488a57c13d79bfc459f46fd458c1c896f8b4d3
1,268
py
Python
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
263
2020-10-05T18:47:29.000Z
2022-03-31T19:44:46.000Z
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
1,264
2020-10-05T18:13:05.000Z
2022-03-31T23:16:35.000Z
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
760
2020-10-05T18:22:51.000Z
2022-03-29T06:06:20.000Z
"""This program takes a matrix of size mxn as input, and prints the matrix in a spiral format for example: input ->> [[1,2,3], [4,5,6], [7,8,9], [10,11,12]] output ->> 1 2 3 6 9 12 11 10 7 4 5 8""" class Solution: def matrix_spir...
37.294118
93
0.502366
982
0.774448
0
0
0
0
0
0
344
0.271293
a54a675c308dee0b53b78a00aef279613875fd2d
4,694
py
Python
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
2
2022-03-02T06:54:28.000Z
2022-03-02T06:56:45.000Z
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
null
null
null
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
2
2022-02-23T11:49:15.000Z
2022-03-02T06:56:46.000Z
import abc import numpy as np import torch import torch.nn as nn class AbstractSDE(abc.ABC): def __init__(self): super().__init__() self.N = 1000 @property @abc.abstractmethod def T(self): """End time of the SDE.""" raise NotImplementedError @abc.abstractmethod ...
31.503356
85
0.532169
4,620
0.984235
0
0
1,071
0.228164
0
0
1,281
0.272902
a54a95f758a5621c7d99991bc1935abca6851391
799
py
Python
tests/lanczos/build.py
weikengchen/Libra
7ad48800febee0d4426a6146d54906476b7acc5a
[ "Apache-2.0" ]
28
2020-01-05T12:05:57.000Z
2021-11-23T16:18:40.000Z
tests/lanczos/build.py
weikengchen/Libra
7ad48800febee0d4426a6146d54906476b7acc5a
[ "Apache-2.0" ]
1
2020-08-10T17:15:38.000Z
2020-08-11T16:14:46.000Z
tests/lanczos/build.py
weikengchen/Libra
7ad48800febee0d4426a6146d54906476b7acc5a
[ "Apache-2.0" ]
13
2020-01-31T05:53:37.000Z
2021-08-02T14:05:43.000Z
import os os.system('./build.sh') os.system('g++ parser_sha_data_parallel.cpp -o psdp -O3') os.system('./psdp lanczos2_16.pws lanczos2_16_112_N=16_rdl.pws lanczos2_112_N=16_circuit.txt lanczos2_112_N=16_meta.txt') os.system('./psdp lanczos2_16.pws lanczos2_16_176_N=64_rdl.pws lanczos2_176_N=64_circuit.txt lanczos2_176...
61.461538
130
0.807259
0
0
0
0
0
0
0
0
679
0.849812
a54b68b3a18c130ef71abef51b17c638d75ff918
1,166
py
Python
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
1
2019-11-02T20:23:03.000Z
2019-11-02T20:23:03.000Z
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
null
null
null
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from diagrams.base import * DATASET = DATASET_FOLDER + "ama0302.csv" def tabulize_data(data_path, output_path): data = pd.read_csv(data_path) fix_count(data) fix_neg(data, "copy") data["total_time"] = data["End"] - data["Start"] grouped = data.groupby(...
32.388889
117
0.596913
0
0
0
0
0
0
0
0
354
0.303602
a54b6dc0f255b7a92415a48a23ac09a9d0e01321
1,513
py
Python
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
# Run training with PointRend head # uses default configuration from detectron2 # The model is initialized via pre-trained coco models from detectron2 model zoo # # Fatemeh Saleh <fatemehsadat.saleh@anu.edu.au> import os from detectron2.config import get_cfg from detectron2.data.datasets import register_coco_instances...
36.902439
134
0.769993
0
0
0
0
0
0
0
0
561
0.370787
a54c32d9df76ea887a0b0bac9c4f21cd01fe50ff
3,991
py
Python
verify-local-sendnsca-client/update_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
verify-local-sendnsca-client/update_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
verify-local-sendnsca-client/update_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
import re, os, sys isBeingDebugged = False if (not os.environ.has_key('WINGDB_ACTIVE')) else int(os.environ['WINGDB_ACTIVE']) == 1 __re__ = re.compile("(?P<commented>(#|))cfg_file=(?P<cfg_file>.*)", re.DOTALL | re.MULTILINE) def find_nagios_cfg(top,target): print 'DEBUG: top=%s, target=%s' % (top,target) ...
35.954955
155
0.491606
0
0
0
0
0
0
0
0
591
0.148083
a54c3694831528b032a63a41c9cef6f955e863a0
11,775
py
Python
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
import urllib2 from sqlalchemy import func, distinct, asc, desc, and_, or_ from flask import Blueprint, request, jsonify, abort, g, render_template, make_response, redirect, url_for, flash from dataviva import db, __latest_year__ from dataviva.attrs.models import Bra, Wld, Hs, Isic, Cbo, Yb from dataviva.secex.models...
34.429825
148
0.545563
0
0
0
0
10,173
0.863949
0
0
2,141
0.181826
a54cde621c4d8d9c2e11ad32222e88ab799ae414
701
py
Python
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
""" Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may return any answer array that satisfies this condition. Example 1: Input: [3,1,2,4] Output: [2,4,3,1] The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be a...
20.028571
100
0.617689
251
0.35806
0
0
0
0
0
0
449
0.640514
a54d9516f3cf42047c6d21bb9815568bd1e67161
2,922
py
Python
meerschaum/_internal/docs/index.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
32
2020-09-14T16:29:19.000Z
2022-03-08T00:51:28.000Z
meerschaum/_internal/docs/index.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
3
2020-10-04T20:03:30.000Z
2022-02-02T21:04:46.000Z
meerschaum/_internal/docs/index.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
5
2021-04-22T23:49:21.000Z
2022-02-02T12:59:08.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 """ <img src="https://meerschaum.io/assets/banner_1920x320.png" alt="Meerschaum banner"> | PyPI | GitHub | License ...
57.294118
292
0.647502
0
0
0
0
0
0
0
0
2,919
0.99829
a54e64b95c67ef2ea40471b8b49ce1a8e5671cf2
1,065
py
Python
insights/parsers/tests/test_kpatch_patches.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
insights/parsers/tests/test_kpatch_patches.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
insights/parsers/tests/test_kpatch_patches.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
from insights.parsers import kpatch_patches from insights.tests import context_wrap from insights.core.plugins import ContentException import pytest ASSORTED_KPATCHES = """ asdfasdfasdf_asdfasdfasdf-asdfasdfasdf_asdfasdfasdf.ko asdfasdfasdf_asdfasdfasdf-asdfasdfasdf_asdfasdfasdf.ko.xz foo-bar.ko foo-bar.ko.xz foo.ko ...
27.307692
91
0.753991
0
0
0
0
0
0
0
0
527
0.494836
a54eed00dc082ef6adf720e7a6dc2ace18221748
127
py
Python
tests/ev3dev/brick/battery.py
GianCann/pybricks-micropython
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
[ "MIT" ]
null
null
null
tests/ev3dev/brick/battery.py
GianCann/pybricks-micropython
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
[ "MIT" ]
null
null
null
tests/ev3dev/brick/battery.py
GianCann/pybricks-micropython
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
[ "MIT" ]
null
null
null
from pybricks.hubs import EV3Brick ev3 = EV3Brick() print(ev3.battery.voltage()) # 7400 print(ev3.battery.current()) # 180
18.142857
36
0.724409
0
0
0
0
0
0
0
0
11
0.086614
a5504cacd4d378cc9aecf50aa2070a23b003b4f8
3,878
py
Python
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
6
2019-03-14T02:39:17.000Z
2021-10-31T11:43:58.000Z
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
null
null
null
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
2
2020-02-04T07:44:37.000Z
2021-04-02T23:02:20.000Z
# -*- coding: utf-8 -*- import copy import logging from operator import attrgetter from typing import Dict from app.service.messages.handler import Handler logger = logging.getLogger(__name__) class Dispatcher(object): """ 消息分派器,暂时忽略 Notice platform: 平台,目前只有 qq,未来可能会添加 telegtram、wechat group_id: 群...
34.318584
90
0.566787
4,285
0.95562
0
0
0
0
0
0
1,785
0.398082
a550d35d092e7a7f432cb53720ad0aa77be59cf6
1,247
py
Python
app/core/core_scripts/choices.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/core/core_scripts/choices.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/core/core_scripts/choices.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
class Choices: DEVICE_TYPE_BAROMETER = 1 DEVICE_TYPE_LED_STRIP = 2 DEVICE_TYPE_CHOICES = [ (DEVICE_TYPE_BAROMETER, 'Barometer'), (DEVICE_TYPE_LED_STRIP, 'LED Strip'), ] DEVICE_SUB_TYPE_BME280 = 1 DEVICE_SUB_TYPE_RGB_STRIP_WITH_ALARM = 2 DEVICE_SUB_TYPE_CHOICES = [ (D...
31.175
91
0.694467
1,246
0.999198
0
0
0
0
0
0
170
0.136327
a55166529d4d734a528fe78b010050a25360e8b0
1,647
py
Python
StyleTransferTensorFlow/style.py
LordHarsh/Neural_Style_Transfer
a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4
[ "MIT" ]
1
2021-01-31T06:41:29.000Z
2021-01-31T06:41:29.000Z
build/lib/StyleTransferTensorFlow/style.py
LordHarsh/Neural_Style_Transfer
a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4
[ "MIT" ]
null
null
null
build/lib/StyleTransferTensorFlow/style.py
LordHarsh/Neural_Style_Transfer
a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_hub as hub import numpy as np from pytube import YouTube import os import cv2 from PIL import Image import shutil import glob import ffmpy def transfer(content_img_path, style_img_path, tfhub_module='https://tfhub.dev/google/magenta/arbitrary-im...
37.431818
148
0.757134
0
0
0
0
0
0
0
0
214
0.129933
a551e5731106adef0abaef205055eb2d9ca12152
15,493
py
Python
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
2
2021-11-20T14:16:56.000Z
2021-12-15T10:33:01.000Z
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
null
null
null
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
2
2021-11-20T16:49:38.000Z
2021-11-20T21:26:16.000Z
from collections import OrderedDict from zeep import Client from zeep import xsd import zeep.helpers import zeep.exceptions import logging.config import re from .constants import methods class Bfs: client = None factory = None credentials = None identifier = None methods = methods def __init...
40.033592
128
0.606274
15,302
0.987672
0
0
4,105
0.264958
0
0
5,995
0.386949
a554983edfe142d8b785a94b5027ce1bfbe95b20
1,370
py
Python
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
"""booking_status Revision ID: 7eb209b7ab1e Revises: 0a95c6679356 Create Date: 2021-02-22 01:19:10.744915 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql from booking_microservice.constants import BookingStatus # revision identifiers, used by Alembic. revision = '7eb209...
24.909091
67
0.642336
0
0
0
0
0
0
0
0
455
0.332117
a555224273d739957311d97daec8970ec07b9037
669
py
Python
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
records = [('foo', 1, 2), ('bar', 'hello'), ('foo', 3, 4)] def do_foo(x, y): print('foo', x, y) def do_bar(s): print('bar', s) for tag, *args in records: if tag == 'foo': do_foo(*args) elif tag == 'bar': do_bar(*args)#该例子没看懂 line = 'nobody:*:-2:-2:Unprivileged User:/var/empty:/user/b...
19.114286
68
0.578475
0
0
0
0
0
0
0
0
141
0.20524
a5559dfa11b05a0a8b6fa50b10ff68e791bc3b1c
4,577
py
Python
mobilenet_v3_configs.py
1e100/mobilenet_v3
4c5058db6960741e849294c7701e7fddfa241a15
[ "BSD-3-Clause" ]
8
2019-09-25T08:41:27.000Z
2020-07-26T12:49:41.000Z
mobilenet_v3_configs.py
1e100/mobilenet_v3
4c5058db6960741e849294c7701e7fddfa241a15
[ "BSD-3-Clause" ]
null
null
null
mobilenet_v3_configs.py
1e100/mobilenet_v3
4c5058db6960741e849294c7701e7fddfa241a15
[ "BSD-3-Clause" ]
4
2019-10-04T21:32:56.000Z
2020-08-05T12:36:52.000Z
""" Configurations shared between PyTorch and Keras. """ CONFIG = { "large": [ # in_ch, exp, out_ch, ks, stride, dilation, se, activation [16, 16, 16, 3, 1, 1, None, "relu"], [16, 64, 24, 3, 2, 1, None, "relu"], [24, 72, 24, 3, 1, 1, None, "relu"], [24, 72, 40, 5, 2, 1, 0.25...
44.436893
66
0.444614
0
0
0
0
0
0
0
0
1,295
0.282936
a555c2aabfb2fed9428a296a73e22048b9b84d87
14,288
py
Python
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import base64 import hashlib import hmac import json import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple from urllib.parse import urlencode import requests from rotkehlchen.accounting.ledger_actions import LedgerAction from ro...
35.542289
95
0.568309
11,318
0.792133
0
0
0
0
0
0
2,917
0.204157
a555df3734f412141194b24eeb0c8ebadcbf1a97
1,010
py
Python
doc/conf.py
rerobots/cli
e97a20d8aa4b1f118272ded9675b6c0747db321f
[ "Apache-2.0" ]
1
2021-04-17T22:51:42.000Z
2021-04-17T22:51:42.000Z
doc/conf.py
rerobots/cli
e97a20d8aa4b1f118272ded9675b6c0747db321f
[ "Apache-2.0" ]
null
null
null
doc/conf.py
rerobots/cli
e97a20d8aa4b1f118272ded9675b6c0747db321f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # parts of this were originally generated by sphinx-quickstart on Thu Aug 31 17:31:36 2017. import os.path import sys sys.path.append(os.path.abspath('..')) project = 'CLI' copyright = '2021 rerobots, Inc | <a href="https://github.com/rerobots/cli">source code</a>' au...
21.489362
92
0.705941
0
0
0
0
0
0
0
0
564
0.558416
a555e99a46c6efc7e9dda4b03dbc6e9937a3b54b
620
py
Python
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
import time from lltm.lltm import LLTM import torch batch_size = 16 input_features = 32 state_size = 128 X = torch.randn(batch_size, input_features) h = torch.randn(batch_size, state_size) C = torch.randn(batch_size, state_size) rnn = LLTM(input_features, state_size)#net init forward = 0 backward = 0 for _ in range...
23.846154
94
0.675806
0
0
0
0
0
0
0
0
50
0.080645
a55636a8a913811f2be1912dad1aedac22c6a849
1,980
py
Python
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
72
2016-09-12T03:01:02.000Z
2022-03-05T16:54:45.000Z
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
127
2016-09-14T02:07:33.000Z
2022-03-19T13:17:32.000Z
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
11
2017-02-22T20:40:37.000Z
2022-03-05T16:55:40.000Z
# Licensed under Apache License Version 2.0 - see LICENSE """This is a helper that prints the content of the function overview tables . - docs/index.rst - README.rst Both contain a table of functions defined in iteration_utilities and manually updating them is a pain. Therefore this file can be executed and the conte...
32.459016
77
0.685354
0
0
0
0
0
0
0
0
1,144
0.577778
a55746c92e9741f67f15dac2983e811ae99e916b
1,092
py
Python
Python Scripts/lesson_49_tuples.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_49_tuples.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_49_tuples.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
# Given the tuple below that represents the Imelda May album "More Mayhem", write # code to print the album details, followed by a listing of all the tracks in the album. # # Indent the tracks by a single tab stop when printing them (remember that you can pass # more than one item to the print function, separating them...
31.2
88
0.659341
0
0
0
0
0
0
0
0
803
0.735348
a557d896bbb7713624a8d9ae1db240388f2eb7f7
1,785
py
Python
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
import sys import os from PyQt4 import QtGui, QtCore class TestListView(QtGui.QListWidget): def __init__(self, type, parent=None): super(TestListView, self).__init__(parent) self.setAcceptDrops(True) self.setIconSize(QtCore.QSize(72, 72)) def dragEnterEvent(self, event): if eve...
28.790323
78
0.576471
1,583
0.886835
0
0
0
0
0
0
28
0.015686
a5582803ca69b47af8a599a971fe68204b6f9492
3,392
py
Python
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
2
2018-12-11T10:02:06.000Z
2019-04-01T10:39:09.000Z
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
null
null
null
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
null
null
null
import os from .. import constants from . import application class NDN_DemoAppsWLDR(application.Application): def __init__(self, server, clients, gateways, start, duration, server_params, client_params, routingcmds): self.server = server self.clients = clients self.gateways = gateways ...
50.626866
163
0.645047
3,329
0.981427
0
0
0
0
0
0
1,118
0.329599
a55b04ba7921f1a3ec26bc5a38d932e27524c9ac
1,918
py
Python
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
1
2017-08-31T03:26:50.000Z
2017-08-31T03:26:50.000Z
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
null
null
null
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
null
null
null
######################################################################### # Copyright 2011 Cloud Sidekick # # 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...
39.142857
155
0.588634
1,113
0.580292
0
0
0
0
0
0
1,095
0.570907
a55cd95076293cb8d38f62d5a86be378db28011c
7,589
py
Python
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
import pybullet as p import numpy as np from icecream import ic from scipy.spatial.transform import Rotation as R from highlevel_planning_py.tools.util import ( homogenous_trafo, invert_hom_trafo, pos_and_orient_from_hom_trafo, SkillExecutionError, ) class SkillNavigate: def __init__(self, scene, ...
34.339367
91
0.573593
5,550
0.731322
0
0
0
0
0
0
1,145
0.150876
a55d8714cd1710f5fc46c5b77d8879d3591e23b3
39
py
Python
pynairus/actions/__init__.py
venairus/pynairus
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
[ "MIT" ]
2
2018-02-15T12:16:10.000Z
2018-09-11T12:05:12.000Z
pynairus/actions/__init__.py
venairus/pynairus
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
[ "MIT" ]
null
null
null
pynairus/actions/__init__.py
venairus/pynairus
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
[ "MIT" ]
1
2019-10-30T09:40:28.000Z
2019-10-30T09:40:28.000Z
# coding: utf-8 """Actions package"""
9.75
21
0.615385
0
0
0
0
0
0
0
0
36
0.923077
a55f46928d283fccaf2605f89dce3d22df548a5c
5,844
py
Python
Eager/elk-experiment/appserver/service_time_analyzer.py
UCSB-CS-RACELab/eager-appscale
d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d
[ "Apache-2.0" ]
3
2016-06-12T01:18:49.000Z
2018-07-16T18:20:23.000Z
Eager/elk-experiment/appserver/service_time_analyzer.py
UCSB-CS-RACELab/eager-appscale
d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d
[ "Apache-2.0" ]
null
null
null
Eager/elk-experiment/appserver/service_time_analyzer.py
UCSB-CS-RACELab/eager-appscale
d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d
[ "Apache-2.0" ]
1
2020-05-25T02:59:15.000Z
2020-05-25T02:59:15.000Z
import argparse import httplib import json import numpy import re import time class RequestInfo: def __init__(self, req, filtered=[]): self.key = req['key'] self.timestamp = req['request_timestamp']['value_as_string'] self.api_calls = req['doc_count'] self.service_times = {} ...
41.15493
117
0.5936
569
0.097365
0
0
0
0
0
0
1,435
0.245551
a55fff704388ce5d543d33e5e01d893ff1080816
523
py
Python
favorites/models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
favorites/models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
favorites/models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
from django.db import models from products.models import Product from account.models import Account class FavouriteProduct(models.Model): user = models.ForeignKey(Account, on_delete=models.CASCADE, related_name="user") product = models.ForeignKey( Product, on_delete=models.CASCADE, related_name="prod...
29.055556
87
0.707457
419
0.801147
0
0
0
0
0
0
90
0.172084
a56370a9c455e4054cc211abc2c3f2c8a9e7a1f6
171
py
Python
tests/const.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
1
2021-05-20T01:34:28.000Z
2021-05-20T01:34:28.000Z
tests/const.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
44
2020-11-15T01:17:38.000Z
2021-07-20T13:45:12.000Z
tests/const.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
1
2021-07-17T16:56:03.000Z
2021-07-17T16:56:03.000Z
from gmocoin.common.const import ConstMeta class TestConst(metaclass=ConstMeta): API_CALL_INTERVAL = 0.5 ORDER_PRICE = 2000000 ORDER_LOSSCUT_PRICE = 1500000
21.375
42
0.77193
125
0.730994
0
0
0
0
0
0
0
0
a56450c0dab785583a1aaf64015a7d73ea36fb2a
2,443
py
Python
pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
# Generated by Django 2.2.5 on 2019-09-30 12:15 import logging from django.db import migrations from django.db.models import Q log = logging.getLogger('nomination_migration') def migrate_nominations_to_new_model(apps, schema_editor): """ Migrations nominations from the infraction model to the nomination mod...
37.584615
101
0.632419
217
0.088825
0
0
0
0
0
0
753
0.308228
a565f1cec83237287d55c5339e0a84e9756b4648
276
py
Python
python_Ashwin-A-K/day_22.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_Ashwin-A-K/day_22.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_Ashwin-A-K/day_22.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
#!/usr/bin/python import datetime x = datetime.datetime.now() print(x) # current date and time print(x.year) # current year print(x.strftime("%A")) # current day y = datetime.datetime(2020, 5, 17) # set date print(y) print(y.strftime("%B")) # Month name, full version
21.230769
51
0.681159
0
0
0
0
0
0
0
0
111
0.402174
a567756da5a12285509d78272354ba05926525ee
587
py
Python
DesignPatterns/Node.py
QuantumFractal/Python-Scripts
9959af9fe835abd550365e98e4fc63e6b8357d1f
[ "MIT" ]
2
2015-01-30T04:51:27.000Z
2015-12-31T08:47:22.000Z
DesignPatterns/Node.py
QuantumFractal/Python-Scripts
9959af9fe835abd550365e98e4fc63e6b8357d1f
[ "MIT" ]
null
null
null
DesignPatterns/Node.py
QuantumFractal/Python-Scripts
9959af9fe835abd550365e98e4fc63e6b8357d1f
[ "MIT" ]
null
null
null
class Node: def __init__(self, parent): if parent is None: self.isRoot = True else: self.isRoot = False self.parent = parent self.parent.add_child(self) self.children = [] def __str__(self): return 'Node' def add_child(self, child): self.children.append(child) def print_tree_below(self, ta...
16.771429
38
0.654174
489
0.833049
0
0
0
0
0
0
12
0.020443
a5690fcf0124a35633cc811501e412b22c1aa270
60
py
Python
tests/__init__.py
ziliac/pyrmx
54f1c79f85f2142b8fb755f815642c4701e5a57b
[ "MIT" ]
null
null
null
tests/__init__.py
ziliac/pyrmx
54f1c79f85f2142b8fb755f815642c4701e5a57b
[ "MIT" ]
null
null
null
tests/__init__.py
ziliac/pyrmx
54f1c79f85f2142b8fb755f815642c4701e5a57b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for pyrmx."""
15
34
0.55
0
0
0
0
0
0
0
0
57
0.95
a569dd73bf4c737b5da9b60bab3083b5192099d3
5,151
py
Python
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
from weakest_link.util import wait_for_choice, green, red, dollars, get_random_mean_word, starts_with_vowel, format_time class WeakestLinkGame : def __init__(self, players, rounds, final_round) : self.players = players self.rounds = rounds self.final_round = final_round self.total_...
40.559055
165
0.628422
5,028
0.976121
0
0
0
0
0
0
707
0.137255
a56b8b89c70b03cbae514c630dd4557886c37a12
1,338
py
Python
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
4
2019-04-08T09:30:10.000Z
2020-09-15T19:25:30.000Z
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
19
2019-04-09T19:02:14.000Z
2020-12-25T05:22:45.000Z
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
null
null
null
import typing as t import infiltrate.browsers as browsers import infiltrate.eternal_warcy_cards_browser as ew_cards import infiltrate.models.card as card_mod from infiltrate import db def update_is_in_expedition(): """Sets the is_in_expedition column of the cards table to match Eternal Warcry readings.""" ...
32.634146
74
0.750374
0
0
0
0
0
0
0
0
216
0.161435
a56e7c7d3eb512b85fa07082bf02be47726e19fd
8,373
py
Python
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
14
2020-10-26T06:05:55.000Z
2022-03-08T08:32:17.000Z
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
10
2020-02-29T16:55:20.000Z
2021-11-06T10:40:32.000Z
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
4
2021-07-28T12:27:46.000Z
2021-10-04T18:12:33.000Z
from collections import namedtuple from math import ceil from typing import Tuple, Dict, Union, List, Counter import numpy as np import pandas as pd from classifiers.config import Config from data_loading.PathMinerDataset import PathMinerDataset from data_loading.PathMinerLoader import PathMinerLoader from data_loadi...
47.845714
128
0.651618
5,877
0.701899
0
0
0
0
0
0
2,056
0.245551
a56ef28284a9ee515302682dd5904409e87c4d93
4,965
py
Python
irekua_rest_api/views/__init__.py
IslasGECI/irekua-rest-api
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
[ "BSD-4-Clause" ]
null
null
null
irekua_rest_api/views/__init__.py
IslasGECI/irekua-rest-api
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
[ "BSD-4-Clause" ]
11
2020-03-28T18:51:50.000Z
2022-01-13T01:47:40.000Z
irekua_rest_api/views/__init__.py
IslasGECI/irekua-rest-api
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
[ "BSD-4-Clause" ]
1
2021-05-06T19:38:14.000Z
2021-05-06T19:38:14.000Z
# pylint: disable=C0301 from .annotations.annotation_tools import AnnotationToolViewSet from .annotations.annotation_votes import AnnotationVoteViewSet from .annotations.annotations import AnnotationViewSet from .data_collections.collection_devices import CollectionDeviceViewSet from .data_collections.collection_sites ...
45.136364
113
0.848338
0
0
0
0
0
0
0
0
1,210
0.243706
a5722597309534c03d51a4f6182a1dcb0d277f2d
2,765
py
Python
acurite/AcuriteManager.py
jamespauly/udi-acurite-poly
8c4866c3b18cf1c27f37ead392e732aa49e1bc07
[ "MIT" ]
null
null
null
acurite/AcuriteManager.py
jamespauly/udi-acurite-poly
8c4866c3b18cf1c27f37ead392e732aa49e1bc07
[ "MIT" ]
null
null
null
acurite/AcuriteManager.py
jamespauly/udi-acurite-poly
8c4866c3b18cf1c27f37ead392e732aa49e1bc07
[ "MIT" ]
null
null
null
from datetime import datetime, timezone import udi_interface import requests import json from enums import BatteryLevel, DeviceStatus from nodes import AcuriteDeviceNode LOGGER = udi_interface.LOGGER Custom = udi_interface.Custom class AcuriteManager(): def __init__(self, user, password): self.user = ...
37.876712
120
0.58264
2,529
0.914647
0
0
0
0
0
0
504
0.182278
a5724709634797eaf22a9f27d89e8c87596f3423
115
py
Python
recvCases/conf.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/conf.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/conf.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
ErrorMsg = {'BadZipFile' : 'Uploaded zip file is bad', 'EmptyZipFile' : 'Uploaded zip file is empty',}
57.5
59
0.626087
0
0
0
0
0
0
0
0
80
0.695652
a5728dfb70546b1b777313ae3ec58c3a19425e50
5,650
py
Python
DTL/db/models/graphicsmodels.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
1
2015-03-23T18:52:12.000Z
2015-03-23T18:52:12.000Z
DTL/db/models/graphicsmodels.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
null
null
null
DTL/db/models/graphicsmodels.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
2
2017-05-21T12:50:41.000Z
2021-10-17T03:32:45.000Z
from DTL.qt import QtCore, QtGui from DTL.qt.QtCore import Qt #------------------------------------------------------------ #------------------------------------------------------------ class GraphicsItemModel(QtGui.QGraphicsItem): unselected_color = QtGui.QColor(100,100,100) selected_color = QtGui.QColor(100,...
37.417219
94
0.420354
5,319
0.941416
0
0
0
0
0
0
1,563
0.276637
a5734519608276ff9f8fee5a5bd77871ef93780f
4,461
py
Python
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
import unittest from mock import mock_open, patch from rest_framework.generics import ListAPIView from rest_framework_ccbv.renderers import ( BasePageRenderer, IndexPageRenderer, LandPageRenderer, ErrorPageRenderer, SitemapRenderer, DetailPageRenderer, ) from rest_framework_ccbv.config import VERSION from res...
44.61
101
0.726743
3,886
0.871105
0
0
3,034
0.680117
0
0
1,164
0.260928
a57349956429b4d3071a79222d869b969895aec7
1,320
py
Python
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
5
2017-05-25T00:51:55.000Z
2020-06-13T16:37:42.000Z
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
30
2017-05-25T00:41:45.000Z
2017-09-15T23:27:45.000Z
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
2
2017-05-25T17:30:30.000Z
2021-02-14T11:32:33.000Z
import pytest from django.conf.urls import include, url from django.test import Client, override_settings from .util import all_template_engines from .test_sendable_email import MY_SENDABLE_EMAIL urlpatterns = [ url(r'^examples/', include('emailpal.urls')), ] @pytest.fixture def client(): with override_setti...
31.428571
72
0.731818
0
0
151
0.114394
472
0.357576
0
0
181
0.137121
a5738d0cf40642a74790a9e4436c0e8da30c46ce
259
py
Python
db_tools/data/user_data.py
thebesteric/bright
4cd8173e7e53115395fcf25bd4db72990fdb6b3f
[ "MIT" ]
null
null
null
db_tools/data/user_data.py
thebesteric/bright
4cd8173e7e53115395fcf25bd4db72990fdb6b3f
[ "MIT" ]
null
null
null
db_tools/data/user_data.py
thebesteric/bright
4cd8173e7e53115395fcf25bd4db72990fdb6b3f
[ "MIT" ]
null
null
null
from common.utils import crypt_utils from bright import settings row_data = [ { 'username': 'admin', 'password': crypt_utils.md5('admin', settings.APP_SALT), 'cellphone': '13966660426', 'email': 'admin@wesoft.com' } ]
21.583333
64
0.6139
0
0
0
0
0
0
0
0
83
0.320463
a57546dcf10db7ae680036449e4ff2d0de0b36d3
2,328
py
Python
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
import os from flask import Flask, request, jsonify from flask_restful import Api from resources.company import Company, Companylist from resources.employee import Employee, EmployeeList from db import db from resources.user import UserRegister, UserLogin, UserLogout app = Flask(__name__) app.config['SQLALCHEMY_DATABA...
25.582418
91
0.668814
0
0
0
0
66
0.028351
0
0
1,573
0.675687
a57794912fc7fe375ace5545bb257b022affaf27
1,381
py
Python
workon/contrib/security/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/security/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/security/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models from django.conf import settings class DisallowedHost(models.Model): created_at = models.DateTimeField("Créé le", auto_now_add=True) updated_at = models.DateTimeField("Modifié le", auto_now=True, db_index=True) http_host = models.CharField(u"HTTP_HOST", max...
44.548387
107
0.735699
1,302
0.940751
0
0
0
0
0
0
263
0.190029
a57859ecd89b9b31c6238458c1c3953448a728df
1,234
py
Python
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
class Solution: def nextPermutation(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ lenNums = len(nums) if lenNums == 1: return maxFromTail = -1 for i in range(lenNums - 2, -1, -1): maxFro...
30.097561
80
0.423015
1,218
0.987034
0
0
0
0
0
0
234
0.189627
a57be98b089324586aa986fd832a393072298d21
2,412
py
Python
leads/migrations/0009_alter_bankstatement_bank_statement_and_more.py
sumeet2605/CRM
1c9a740ef052d0e51b2689dd3e1666ff4673db98
[ "MIT" ]
null
null
null
leads/migrations/0009_alter_bankstatement_bank_statement_and_more.py
sumeet2605/CRM
1c9a740ef052d0e51b2689dd3e1666ff4673db98
[ "MIT" ]
null
null
null
leads/migrations/0009_alter_bankstatement_bank_statement_and_more.py
sumeet2605/CRM
1c9a740ef052d0e51b2689dd3e1666ff4673db98
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-02-06 09:46 from django.db import migrations, models import leads.models import rizcrm.storage_backends class Migration(migrations.Migration): dependencies = [ ('leads', '0008_user_profile_picture'), ] operations = [ migrations.AlterField( m...
43.071429
161
0.665837
2,270
0.941128
0
0
0
0
0
0
289
0.119818
a57e42b92567d730da83f49a7ddb9cffb40477e6
28,338
py
Python
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
null
null
null
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
4
2017-03-10T13:06:46.000Z
2017-03-10T13:24:00.000Z
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # Copyright (c) 2017 Aleksey Vilezhaninov # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # t...
38.979367
80
0.571071
0
0
0
0
0
0
0
0
11,080
0.390994