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
eb8f42714ac932cdfc292aeae7792fbd941d3a70
1,316
py
Python
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
fountain/linguistics.py
oaao/fountain-of-knuth
626be5ef98370e59c273a93a10614a4438e1fb22
[ "MIT" ]
null
null
null
"""Linguistic data for statistical pre-processing. Frequency statistics, as seen in data/, are provided by: a) Mark Mayzner, 1965: ------------------------------------------------------------------------------ METHODOLOGY: Starting at a random place in a given newspapers/magazines/book, record three- to seven-letter...
38.705882
89
0.592705
0
0
0
0
0
0
0
0
1,259
0.956687
eb9292b5b15148056f496da1f3e38d544c9ca3dc
846
py
Python
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
189
2019-06-11T02:13:53.000Z
2022-03-30T15:41:47.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
15
2019-06-29T19:22:07.000Z
2021-07-19T03:26:51.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
28
2019-07-15T12:52:52.000Z
2022-03-07T16:50:02.000Z
from keras import backend as K import numpy as np def Active_Contour_Loss(y_true, y_pred): """ lenth term """ x = y_pred[:,:,1:,:] - y_pred[:,:,:-1,:] # horizontal and vertical directions y = y_pred[:,:,:,1:] - y_pred[:,:,:,:-1] delta_x = x[:,:,1:,:-2]**2 delta_y = y[:,:,:-2,1:]**2 delta_u = K.abs(delta...
24.171429
105
0.574468
0
0
0
0
0
0
0
0
215
0.254137
eb9398224cfe1d36acebb90ab93ee6b57c3b5626
7,584
py
Python
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
70
2020-12-11T03:13:09.000Z
2022-03-16T21:17:26.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
8
2021-01-15T14:24:00.000Z
2022-01-16T14:43:52.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
18
2020-11-24T00:37:49.000Z
2022-03-13T15:52:51.000Z
# -*- coding: utf-8 -*- # Imports import pandas as pd from .pd_utils import load_csv_or_excel from .pd_utils import load_experiment_results from .pd_utils import to_torch from .math_utils import standard # Objective function class class objective: """Objective funciton data container and operations. N...
33.706667
86
0.548655
7,330
0.966508
0
0
0
0
0
0
2,720
0.35865
eb94674e627c9637e3631827dccad31e43dbeafa
1,983
py
Python
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
api/project/modules/geoprocessing/utils.py
wilsoncwc/mapbox-osmnx
38031e31ad3b97e941a773c99b1f9b544ef93fae
[ "MIT" ]
null
null
null
import osmnx as ox import networkx as nx def gdf_to_nx(gdf_network): # generate graph from GeoDataFrame of LineStrings net = nx.Graph() net.graph['crs'] = gdf_network.crs fields = list(gdf_network.columns) for _, row in gdf_network.iterrows(): first = row.geometry.coords[0] last = ...
34.789474
95
0.646999
0
0
0
0
0
0
0
0
476
0.24004
eb951abd2dd3908e69458a1b26cb28c1b3944745
664
py
Python
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from time import time def fib_sum(limit): prev2 = 1 prev1 = 2 fib_sum = 0 while prev2 < limit: # There is probably a more clever solution that skips the calculation # of every 1st and 3rd element. # For now, we will just cherry-pick the even values. ...
25.538462
77
0.593373
0
0
0
0
0
0
0
0
225
0.338855
eb9525194e5e12addc0e82651317e86bd9db3fd2
15,221
py
Python
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
1
2022-03-01T10:59:11.000Z
2022-03-01T10:59:11.000Z
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
null
null
null
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
3
2021-06-15T17:23:36.000Z
2021-07-07T11:45:46.000Z
from tkinter import filedialog, ttk, messagebox from tkinter import * import traceback import requests import zipfile import json import os from source.Game import Game, RomAlreadyPatched, InvalidGamePath, InvalidFormat, in_thread, VERSION_FILE_URL from source.Option import Option from source.definition import get_ver...
52.66782
245
0.648183
14,789
0.971554
0
0
214
0.014059
0
0
3,074
0.201945
eb967e24d2a33e6b84541055a8e1fda35b50d6bc
1,236
py
Python
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
FastSimulation/HighLevelTrigger/python/full2fast.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms def modify_hltL3TrajSeedOIHit(_hltL3TrajSeedOIHit): _iterativeTSG = _hltL3TrajSeedOIHit.TkSeedGenerator.iterativeTSG _iterativeTSG.ComponentName = cms.string('FastTSGFromPropagation') _iterativeTSG.HitProducer = cms.InputTag("fastMatchedTrackerRecHitCombinations") ...
47.538462
84
0.786408
0
0
0
0
0
0
0
0
243
0.196602
eb974878838a569a2d9cf63b612ccad301b890eb
1,612
py
Python
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
1
2020-07-13T19:20:45.000Z
2020-07-13T19:20:45.000Z
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
import os, sys, re, transaction, base64, zlib from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from .models import ( DBSession, CIA, Entry, User, Group, Base, ) from .security import hash_password def usage(argv): cmd = os....
26
103
0.581266
0
0
0
0
0
0
0
0
83
0.051489
eb9805e46c99a38df84681449ccdcec4ab9e7a42
3,297
py
Python
src/modeling/models_cv.py
sebasjp/octopus-ml
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
1
2021-05-15T22:35:51.000Z
2021-05-15T22:35:51.000Z
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier import xgboost as xgb from sklearn.model_selection import cross_val_score from sklearn.pipeline import Pipeline import numpy as np # ============================================================= # Modeling tools for cross validation # Reference: https://github.com/fm...
33.30303
102
0.558386
0
0
0
0
0
0
0
0
1,330
0.403397
eb98399d5d514cad736c35a8e1b08c45e1e0717f
4,089
py
Python
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Oli Wright <[email protected]> # # 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 # ...
41.72449
108
0.705062
0
0
0
0
2,061
0.504035
0
0
2,147
0.525067
eb999df27e58e23913b51b8bb91c7eb0ee53cf08
1,201
py
Python
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
#reads in the protocol requirements and stores the information in a class import yaml import logging logger = logging.getLogger(__name__) def loadYamlFile(filename): #open up the filename logger.debug("Opening file {}".format(filename)) try: fObject = open(filename, 'r') except Fi...
31.605263
77
0.631973
0
0
0
0
0
0
0
0
430
0.358035
eb99f86622cecc9f033b1bea66381c9d93c350c4
9,225
py
Python
pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CADANT-CMTS-NOTIFICATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-CMTS-NOTIFICATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:45:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
139.772727
717
0.776802
0
0
0
0
0
0
0
0
4,137
0.448455
eb9b09f7ae8cd2422a36c30cbe319e6b1bdb760a
179
py
Python
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex051.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
n1 = int(input('Digite o primeiro termo da PA: ')) n2 = int(input('Digite a razão da PA: ')) for c in range(1, 11): o = n1 + (c - 1)*n2 print(o, end=' - ') print('ACABOU')
29.833333
50
0.564246
0
0
0
0
0
0
0
0
71
0.394444
eb9c34327c8ded8bca2d41bbc276bd049672bbd7
1,729
py
Python
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
bad.py
Spencer-Clay/Spencer-Clay-ketangpai_cracker-
dd769a853a6fd5e4cd0c7a1b891c46a50360cd27
[ "MIT" ]
null
null
null
import requests import sys import os import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) requests.adapters.DEFAULT_RETRIES = 10 def exploit_post_code(data, token): main_url = 'https://openapiv51.ketangpai.com/AttenceApi/checkin' headers = { "User-Agent": "Mozilla/5.0 (M...
30.875
111
0.604974
0
0
0
0
0
0
0
0
740
0.419263
eb9c7f642d7fd9e4d6c05d5178d9f6237379f4fa
2,087
py
Python
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
import logging import io from asyncio import Queue from sse_starlette.sse import ( EventSourceResponse as _EventSourceResponse, AppStatus, ServerSentEvent, ) from .endec import Encode logger = logging.getLogger("app_server") class EventSourceResponse(_EventSourceResponse): """Override original `Event...
30.691176
88
0.595592
1,843
0.883086
0
0
575
0.275515
1,210
0.57978
399
0.191184
eb9cf0127ef5ed427d9efbbfab74a2a9d0c4ae7e
2,088
py
Python
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
python/constants.py
ptracton/wb_platform
7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Packet Commands """ COMMAND_CPU_WRITE = 1 COMMAND_CPU_READ = 2 COMMAND_DAQ_WRITE = 3 COMMAND_DAQ_READ = 4 """ RAM ADDRESSES """ RAM0_BASE_ADDRESS = 0x90000000 RAM1_BASE_ADDRESS = 0x90002000 RAM2_BASE_ADDRESS = 0x90004000 RAM3_BASE_ADDRESS = 0x90006000 """ GPIO """ GPIO_BASE_ADDRESS = 0x40...
26.769231
55
0.815134
0
0
0
0
0
0
0
0
110
0.052682
eb9dfa5d0a36f0ca4db0ee5aca27a1643f342549
257
py
Python
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
matdat/__init__.py
Fumipo-Theta/matdat
cb55acd346acef5f192d71c835b8fbe5c957cc55
[ "BSD-2-Clause" ]
null
null
null
from .figure import Figure from .subplot import Subplot from .subplot_time import SubplotTime from .csv_reader import CsvReader, matchCsv from .excel_reader import ExcelReader from .get_path import getFileList, PathList from .save_plot import actionSavePNG
32.125
43
0.848249
0
0
0
0
0
0
0
0
0
0
eb9fd0269907f86d115d62e0ea0520c852272710
249
py
Python
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
import os def get_file_list(root, key=None): files = os.listdir(root) if key is not None: files.sort(key=key) return files def get_config_file(name): return os.path.join(os.path.dirname(__file__), ".." , "resource", name)
20.75
75
0.658635
0
0
0
0
0
0
0
0
14
0.056225
eba03f73105a14dca36c64eedfaaba318422e180
648
py
Python
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
crud/migrations/migration_motif.py
MedAli-FSTG/AdminDjangoCrud
b7de87f2fbfe0a1b990113792deb3157aed288b8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-22 08:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='motifs', fields=[ ('id', models.BigAutoFiel...
24
79
0.520062
555
0.856481
0
0
0
0
0
0
115
0.177469
eba3ba5c97bda5e5f7c847bfd13a55f5e2d84a33
280
py
Python
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
def conv(user): import requests import json import xmltodict url = 'https://api.github.com/users/' + user s = requests.get(url) # Converter json para dict x = {} x['wg'] = json.loads(s.text) y = xmltodict.unparse(x, pretty=True) return y
20
48
0.6
0
0
0
0
0
0
0
0
61
0.217857
eba40c7836d02b53113b113f1c42b28c5c259a93
404
py
Python
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
from .app import create_app # APP = create_app() # python commands: # in app dir #FLASKAPP=twitoff flask run # in root dir # FLASK_APP=twitoff flask shell ''' Notes for setup: in root, FLASK_APP=twitoff flask shell import create_app init create_app() import DB DB.create_all() creates tables ''' ''' Other commands...
14.428571
46
0.725248
0
0
0
0
0
0
0
0
363
0.898515
eba6b8526a7352b129d62e67953fbea4c4064fb0
1,945
py
Python
tellapart/aurproxy/config/route.py
thinker0/aurproxy
7387bb3ac7decd9d0034f9ca6b4dfea4384ce59d
[ "Apache-2.0" ]
1
2020-02-25T04:09:48.000Z
2020-02-25T04:09:48.000Z
tellapart/aurproxy/config/route.py
aurora-scheduler/aurproxy
73a1e7086cc4dd171456f50724246a9261febaf8
[ "Apache-2.0" ]
null
null
null
tellapart/aurproxy/config/route.py
aurora-scheduler/aurproxy
73a1e7086cc4dd171456f50724246a9261febaf8
[ "Apache-2.0" ]
2
2020-09-12T13:06:45.000Z
2021-01-19T09:42:58.000Z
# Copyright 2015 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
29.029851
74
0.728021
1,364
0.701285
0
0
557
0.286375
0
0
587
0.301799
eba7e9b9d2ce20a664ab35ed0b3544b8abc90d3f
4,394
py
Python
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
7
2020-09-21T13:02:23.000Z
2022-03-23T19:26:41.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
116
2019-11-21T17:20:52.000Z
2022-03-30T11:21:54.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
6
2020-01-24T17:14:43.000Z
2022-03-30T11:27:20.000Z
import numpy as np import pandas as pd from rail.creation.engines import Engine from typing import Callable class Creator: """Object that supplies mock data for redshift estimation experiments. The mock data is drawn from a probability distribution defined by the generator, with an optional degrader appl...
37.237288
107
0.60924
4,283
0.974738
0
0
0
0
0
0
2,670
0.607647
eba86bf586aecd5b8c7e0131858b6b347ef52969
834
py
Python
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
null
null
null
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/python3 # Perform the unit tests on SV import subprocess import os import pathlib import traceback import pipetestutils def main(): r1 = -1 try: pathlib.Path("build/reports").mkdir(parents=True, exist_ok=True) os.chdir("src/test") except Exception as e: print("Problem ch...
23.828571
72
0.581535
0
0
0
0
0
0
0
0
244
0.292566
ebaa426765a7f0d350ab28d87557159798371f08
2,439
py
Python
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
6
2016-05-18T05:53:44.000Z
2019-06-13T18:27:50.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
64
2015-02-13T18:29:04.000Z
2018-06-15T19:48:56.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
2
2015-05-08T19:22:12.000Z
2016-07-11T16:57:49.000Z
from . import base from . import mixins from datetime import date class TransformedRecord( mixins.GenericCompensationMixin, mixins.GenericDepartmentMixin, mixins.GenericIdentifierMixin, mixins.GenericJobTitleMixin, mixins.GenericPersonMixin, mixins.MembershipMixin, mixins.OrganizationM...
29.385542
77
0.627306
2,314
0.948749
0
0
1,152
0.472325
0
0
760
0.311603
ebac27508f66c5ff713c821f2b877ebdbc6660c6
2,912
py
Python
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
accountingsubject/views.py
zwj12/accounting
96678104ac7815da57f8f8c1a38c3138bc5ed0b6
[ "Apache-2.0" ]
null
null
null
from django.db.models import Count, Sum from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 # Create your views here. from django.views import generic from accountingsubject.forms import AccountingSubjectForm from accountingsubject.models import AccountingSubject from c...
44.121212
119
0.714629
750
0.257555
0
0
0
0
0
0
1,088
0.373626
ebac6ca248c814898ee7e3737a6b5b9899d1e5a4
762
py
Python
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
class AttributedDict(dict): def __dir__(self): directory = dir(super()) directory.extend([str(key.replace(" ", "_")) for key in self]) return directory def __getattr__(self, attr): _dir_dict = dict() [_dir_dict.update({key.replace(" ", "_"): key}) for key in self] ...
31.75
72
0.560367
761
0.998688
0
0
0
0
0
0
18
0.023622
ebad0fa39828f876d9327badae6cbb23b3a1f522
258
py
Python
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
upylab/upylab_5.3.py
piousteph/mooc_python
b7446c8a8317e2ae5e87a9ce27fd107f20333765
[ "MIT" ]
null
null
null
def duree(debut, fin): d = debut[0] * 60 + debut[1] f = fin[0] * 60 + fin[1] e = f - d h = e // 60 m = e - h * 60 if h < 0: h = 24 - abs(h) return (h, m) print(duree ((14, 39), (18, 45))) print(duree ((6, 0), (5, 15)))
17.2
33
0.410853
0
0
0
0
0
0
0
0
0
0
ebaeccfe37530d080542e9861760ac1b8264f12f
31,392
py
Python
utils.py
val-iisc/ss_human_mesh
f9c7fcf577c83316eb610753e3f5678b7b5e24c5
[ "MIT" ]
31
2020-08-31T11:32:33.000Z
2021-12-05T08:47:33.000Z
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
null
null
null
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
7
2020-09-25T03:50:59.000Z
2021-12-10T05:24:58.000Z
""" General Utilities file. """ import sys import os ############################ NON-TF UTILS ########################## from skimage.util import img_as_float import numpy as np import cv2 import pickle from PIL import Image from io import BytesIO import math import tqdm import scipy import json import matplo...
33.538462
195
0.618374
0
0
0
0
0
0
0
0
6,454
0.205594
ebb024cf3162a7ae7533de24c182385e63946496
8,389
py
Python
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
4
2019-11-14T21:30:35.000Z
2021-12-13T08:34:33.000Z
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
import queue import multiprocessing import itertools import sys __all__ = ["QConnect", "CConnect"] pulse_length_default = 10 * 10 ** -12 # 10 ps photon pulse length signal_speed = 2.998 * 10 ** 5 #speed of light in km/s fiber_length_default = 0.0 class QConnect: def __init__(self, *args, transit_devices=[]): ...
39.947619
119
0.619383
8,137
0.969961
0
0
0
0
0
0
3,184
0.379545
ebb199161cfe0fe5c616a4c065ef5c14803d10c1
2,035
py
Python
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
94
2018-11-17T22:40:16.000Z
2022-03-28T05:09:16.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
17
2019-04-10T18:06:46.000Z
2022-03-03T03:25:08.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
14
2019-04-10T21:33:14.000Z
2022-02-16T14:42:56.000Z
import typing as T from pqcli.mechanic import Player, StatType from pqcli.ui.curses.widgets import Focusable from .progress_bar_window import DataTableProgressBarWindow class CharacterSheetWindow(Focusable, DataTableProgressBarWindow): def __init__( self, player: Player, parent: T.Any, h: int, w: int, y...
30.373134
75
0.615725
1,861
0.914496
0
0
0
0
0
0
160
0.078624
ebb3616f90465bce3896df5538302b23c8d738c6
1,668
py
Python
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
import yaml import pathlib import json import math class Planet(object): def __init__(self, config): self.GMS = 0 # mass self.M = 0. self.name = "unknown" # period self.T = 1. # eccentricity self.e = 0. # semi major axis self.a = 1. ...
27.8
97
0.522182
1,614
0.967626
0
0
499
0.299161
0
0
207
0.124101
ebb36f491c315700e82d95483ecfc1489b55b959
2,479
py
Python
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
1
2019-02-18T21:51:58.000Z
2019-02-18T21:51:58.000Z
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2019-06-26T13:56:22.000Z
2022-02-17T16:40:48.000Z
tests/unit_test_suit.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2017-10-17T12:44:32.000Z
2020-02-07T20:45:00.000Z
import unittest from tests.unit.test_account import TestAccount from tests.unit.test_application import TestApplication from tests.unit.test_usages import TestUsages from tests.unit.test_conferences import TestConferences from tests.unit.test_mms_messages import TestMmsMessages from tests.unit.test_sms_messages import ...
47.673077
76
0.835418
0
0
0
0
0
0
0
0
84
0.033885
ebb41e91a8e2783d3b37bf3b6b979d65654f5089
262
py
Python
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
1
2020-10-12T18:33:22.000Z
2020-10-12T18:33:22.000Z
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
Python/basic-py/exercise_14.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
def _get_square(list): l1 = [x*x for x in range(0, len(list), 2) if x % 3 != 0] return l1 print(_get_square([1, 2, 3, 4, 5])) def get_square(list): l1 = [x*x for x in list if x % 3 != 0 and x % 2 == 0] return l1 print(get_square([1, 2, 3, 4, 5]))
23.818182
58
0.557252
0
0
0
0
0
0
0
0
0
0
ebb439a6545138904530c4467b730cf8637621d9
391
py
Python
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
1
2021-03-26T14:06:52.000Z
2021-03-26T14:06:52.000Z
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
import json def main(file_path, out_len): with open(file_path, 'r') as f: data = json.loads(f.read()) print(len(data['data'])) data['data'] = data['data'][:out_len] with open(file_path, 'w') as f: print(len(data['data'])) json.dump(data, f) if __name__ == "__main__": ...
23
45
0.56266
0
0
0
0
0
0
0
0
82
0.209719
ebb54d34edb14bf6d75544e3fae03ac69c069a8f
15,289
py
Python
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
15
2021-05-15T21:58:26.000Z
2022-03-17T08:26:48.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
22
2021-02-04T20:02:33.000Z
2021-09-14T13:29:30.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
3
2021-01-11T15:11:31.000Z
2021-06-07T17:36:51.000Z
"""Provides ability to run jobs locally or on HPC.""" from collections import OrderedDict import datetime import fileinput import importlib import logging import os import shutil import jade from jade.common import ( CONFIG_FILE, JOBS_OUTPUT_DIR, OUTPUT_DIR, RESULTS_FILE, HPC_CONFIG_FILE, ) from j...
35.473318
99
0.608738
13,698
0.895938
1,253
0.081954
4,721
0.308784
0
0
3,127
0.204526
ebb61e698b97baa6c67673863e148e21ab80d713
1,364
py
Python
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
import os import pytest from starkware.starknet.compiler.compile import ( compile_starknet_files) from starkware.starknet.testing.starknet import Starknet from starkware.starknet.testing.contract import StarknetContract # The path to the contract source code. CONTRACT_FILE = os.path.join( os.path.dirname(__fi...
30.311111
79
0.73827
0
0
0
0
886
0.64956
865
0.634164
308
0.225806
ebb6654546e2771ea9a8d0a98c2ca7dabc9a83dc
230
py
Python
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
1
2021-01-05T09:11:42.000Z
2021-01-05T09:11:42.000Z
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
scrapyu/__init__.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
__version__ = '0.1.12' from ._useragent import UserAgentMiddleware from ._markdown import MarkdownPipeline from ._cookies import FirefoxCookiesMiddleware from ._mongodb import MongoDBPipeline from ._redis import RedisDupeFilter
25.555556
46
0.847826
0
0
0
0
0
0
0
0
8
0.034783
ebb6bb07248128010f898b3fb588b1cee8d3c6cc
1,930
py
Python
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
1
2022-03-22T23:49:17.000Z
2022-03-22T23:49:17.000Z
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
null
null
null
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
3
2021-11-29T21:19:31.000Z
2022-01-13T16:31:06.000Z
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
33.275862
77
0.698964
0
0
0
0
0
0
0
0
945
0.489637
ebb7280816985728a4a272af67774f62eef9667c
1,146
py
Python
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
6
2018-11-14T22:41:58.000Z
2021-12-08T11:01:32.000Z
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
null
null
null
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
1
2020-05-22T16:10:00.000Z
2020-05-22T16:10:00.000Z
import torch.optim from numpy import ndarray def get_optim(optim, params, init_lr, steps=1, wd=0, gamma=1, momentum=0.9, max_epochs=120): if optim == 'sgd': optimizer = torch.optim.SGD( params, lr=init_lr, momentum=momentum, weight_decay=wd) elif optim == 'sgd_nomem': ...
33.705882
69
0.624782
0
0
0
0
0
0
0
0
106
0.092496
ebb8162cb09b68c8030371823ad7d00d0561cc03
1,941
py
Python
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
2
2018-05-20T00:08:14.000Z
2018-06-13T22:42:14.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2021-06-22T15:03:01.000Z
2021-06-22T20:26:52.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2019-02-21T20:22:32.000Z
2019-02-21T20:22:32.000Z
from celery import Celery, Task from microengine_utils import errors from microengine_utils.datadog import configure_metrics from microengine_utils.constants import SCAN_FAIL, SCAN_SUCCESS, SCAN_TIME, SCAN_VERDICT from microengineclamav.models import Bounty, ScanResult, Verdict, Assertion, Phase from microengineclamav...
35.944444
104
0.663575
374
0.192684
0
0
1,442
0.742916
0
0
195
0.100464
ebb9e939ebab9f1ac907089a906eafebd3d40188
18,835
py
Python
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
2
2019-05-11T16:25:54.000Z
2019-05-13T01:19:16.000Z
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
import datetime import os, sys, six, base64, copy from jinja2 import Environment, FileSystemLoader, Template from google.auth.transport import requests from google.cloud import datastore from google.cloud import storage from google.cloud import bigquery import google.oauth2.id_token from flask import Flask, render_t...
40.945652
156
0.623042
1,769
0.093921
0
0
7,483
0.397292
0
0
3,801
0.201805
ebbaa88673070e1877aabf5581d29c7b6749d413
982
py
Python
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
NotaParcial1 = int(input("Nota primer Parcial: ")) NotaParcial2 = int(input("Nota segundo Parcial: ")) NotaTaller = int(input("Nota del Taller: ")) NotaProyecto = int(input("Nota del Proyecto: ")) Parcial1 = NotaParcial1*(25/100) Parcial2 = NotaParcial2*(25/100) Taller = NotaTaller*(20/100) Proyecto = NotaPr...
24.55
99
0.729124
0
0
0
0
0
0
0
0
646
0.657841
ebbeecd7804589e9d66d63e0bc0c0723583222d7
1,395
py
Python
build/package.py
weijiekoh/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
15
2018-01-15T14:22:46.000Z
2022-03-20T19:05:27.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
1
2018-01-21T09:56:04.000Z
2018-06-21T06:20:23.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
6
2018-01-21T10:00:48.000Z
2021-07-26T00:03:45.000Z
#!/usr/bin/env python3 """ This script checksums, signs, and compresses malvarma-<version>.img, and creates malvarma-<version>.tar.bz2. The author's GPG signature is hardcoded below. """ import os import shutil import sys import subprocess if __name__ == "__main__": if len(sys.argv) == 1: print("Usage: ...
31.704545
120
0.665233
0
0
0
0
0
0
0
0
500
0.358423
ebc2424c2e78916d3caf093c64b2223284f39d93
1,955
py
Python
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
31
2020-12-18T16:35:15.000Z
2022-03-25T18:41:19.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
17
2020-11-18T16:10:36.000Z
2022-02-01T22:19:11.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
4
2021-01-18T17:25:02.000Z
2021-11-01T13:25:45.000Z
import os import time from signal import signal, SIGINT from TauLidarCommon.frame import FrameType from TauLidarCamera.camera import Camera outputDir = './samples' runLoop = True def setup(): camera = None ports = Camera.scan() ## Scan for available Tau Camera devices if len(ports)...
26.066667
89
0.586189
0
0
0
0
0
0
0
0
442
0.226087
ebc29b44ef030ad4cf5e8ff010606f3919b7f18d
1,038
py
Python
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/Morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
1
2021-07-29T01:33:44.000Z
2021-07-29T01:33:44.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-NTO/NTO
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
150
2020-09-28T13:11:29.000Z
2021-08-05T23:28:36.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
3
2020-09-30T14:05:56.000Z
2021-07-29T01:33:53.000Z
import sys from collections import deque def bfs(x): q = deque([x]) dist = [0] * (N + 1) check = [False] * (N + 1) cnt = -1 check[x] = True while q: size = len(q) cnt += 1 for _ in range(size): x = q.popleft() for y in a[x]: if dist...
24.714286
54
0.421002
0
0
0
0
0
0
0
0
13
0.012524
ebc743c4294c3b10ce8684625c881a47ded3ea8a
5,235
py
Python
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
1
2017-06-10T13:27:44.000Z
2017-06-10T13:27:44.000Z
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
10
2019-12-28T18:06:18.000Z
2022-03-25T18:48:20.000Z
tests/test_bokeh_wamp.py
ricorx7/rti_python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
null
null
null
import json from twisted.logger import Logger from twisted.internet.defer import inlineCallbacks from autobahn.twisted.wamp import ApplicationSession from autobahn.twisted.wamp import ApplicationRunner from bokeh.client import push_session from bokeh.plotting import figure, curdoc from bokeh.models.widgets import Pan...
41.547619
110
0.637631
2,698
0.515377
362
0.06915
383
0.073161
0
0
1,300
0.248329
ebc77323d31536c2b311a55342b7c92b4fa87b56
5,875
py
Python
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
tests/integration/test_nornsible_integration.py
PhillSimonds/nornsible
5be98f5bfa66410bc269fa239a53016b4a4ac65a
[ "MIT" ]
null
null
null
from pathlib import Path import sys from unittest.mock import patch from nornir import InitNornir import nornsible from nornsible import InitNornsible, nornsible_delegate, nornsible_task NORNSIBLE_DIR = nornsible.__file__ TEST_DIR = f"{Path(NORNSIBLE_DIR).parents[1]}/tests/" @nornsible_task def custom_task_exampl...
36.042945
88
0.589787
0
0
0
0
227
0.038638
0
0
1,910
0.325106
ebc7a37f046171aa884cf21a18cce4f0bbd74515
8,338
py
Python
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
## Web File def insertWeb(filetype, json, cursor, conn, uid): if (filetype == 'web'): web_page_node(json,uid,cursor,conn) # [pages] / [pageNode] web_entry_node(json, uid, cursor, conn) # [pages] / [entriesNode] def web_entry_response(json_entries_node, uid, cursor, conn, parentid): tblName = 'lab_web_entries...
32.570313
133
0.71444
0
0
0
0
0
0
0
0
1,943
0.23303
ebc8ad73bf53731e4e6de57101a7b654d219529d
21,541
py
Python
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
2,611
2018-10-16T20:14:10.000Z
2022-03-31T14:48:41.000Z
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
249
2018-10-27T06:02:29.000Z
2022-03-30T18:00:39.000Z
lingvo/core/beam_search_helper_test.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
436
2018-10-25T05:31:45.000Z
2022-03-31T07:26:03.000Z
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
44.506198
80
0.611346
18,064
0.838587
0
0
6,800
0.315677
0
0
2,074
0.096282
ebc8be7f524d02d68beecb4c56841bf72041c9e6
1,148
py
Python
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
eduardojdiniz/CompNeuro
20269e66540dc4e802273735c97323020ee37406
[ "CC-BY-4.0", "BSD-3-Clause" ]
2,294
2020-05-11T12:05:35.000Z
2022-03-28T21:23:34.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
629
2020-05-11T15:42:26.000Z
2022-03-29T12:23:35.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
917
2020-05-11T12:47:53.000Z
2022-03-31T12:14:41.000Z
def ddm(T, x0, xinfty, lam, sig): t = np.arange(0, T, 1.) x = np.zeros_like(t) x[0] = x0 for k in range(len(t)-1): x[k+1] = xinfty + lam * (x[k] - xinfty) + sig * np.random.standard_normal(size=1) return t, x # computes equilibrium variance of ddm # returns variance def ddm_eq_var(T, x0, ...
30.210526
89
0.691638
0
0
0
0
0
0
0
0
370
0.3223
ebca2dfaedf3312d1fbafc3bbd62cb313012d5a5
129
py
Python
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
null
null
null
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
1
2021-03-31T18:51:21.000Z
2021-03-31T18:51:21.000Z
yatr/__init__.py
mbodenhamer/yatr
9ebc0de3e474e38d9d79effe3e9c0fec11053024
[ "MIT" ]
1
2017-12-13T13:30:29.000Z
2017-12-13T13:30:29.000Z
__version__ = '0.0.11b' from .base import * from .context import * from .task import * from .env import * from .parse import *
14.333333
23
0.689922
0
0
0
0
0
0
0
0
9
0.069767
ebcd555eb93d05d6fa9188af7a083640c3b0d772
2,829
py
Python
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
paginas/p1_vrc.py
Blake-SRTC/tv-digital-deteccion
c55798714d1d1829471e31d3d8aa612739a8193c
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.font import BOLD from algoritmos.vrc import * from algoritmos.noise_1_bits import * ###################################################################################################### # Pagina 1 def tab1(root, common_img, bits_normales, bits_desglosados): pagina1 = Toplevel(...
34.084337
164
0.618593
0
0
0
0
0
0
0
0
722
0.255214
ebcd560a4b989401a8f15f7d602324e8d9dfe946
889
py
Python
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
1
2019-05-08T14:53:27.000Z
2019-05-08T14:53:27.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
2
2020-08-26T09:16:47.000Z
2020-10-30T16:47:03.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch import numpy as np from auxein.population.dna_builders import UniformRandomDnaBuilder, NormalRandomDnaBuilder def test_uniform_random_dna_builder_instantiation(): builder = UniformRandomDnaBuilder(interval=(-5, 0)) assert builder.get_distribution() == 'uniform' assert len(...
29.633333
90
0.725534
0
0
0
0
324
0.364454
0
0
38
0.042745
ebcf09fa50c43679cec20b34ad768687dfbb66a1
322
py
Python
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
1
2020-10-08T09:29:59.000Z
2020-10-08T09:29:59.000Z
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
1
2021-01-30T12:04:51.000Z
2021-01-30T12:05:37.000Z
Interesting Python Questions/add four integers together.py
liu-yunfei/Python
314cdc98f32f4f0de2c0904279865b944e34dd75
[ "MIT" ]
null
null
null
# Written by Yunfei LIU # Sep 23, 2020 # Please obey the license GPLv3 # This allows to input four integers with space between them number1,number2,number3,number4 = map(int,input().split()) # Add them up sum = number1 + number2 + number3 + number4 # Get the unit digit result = sum%10 # Output the result print(result...
24.769231
61
0.736025
0
0
0
0
0
0
0
0
181
0.562112
ebd069b822c585c6ef2aa742b9a5c038a0110139
445
py
Python
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
8
2018-10-17T18:17:25.000Z
2022-03-18T09:02:53.000Z
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
null
null
null
math/champernowne-constant.py
qeedquan/misc_utilities
94c6363388662ac8ebbf075b9c853ce6defbb5b3
[ "MIT" ]
3
2020-07-01T13:52:42.000Z
2022-03-18T09:10:59.000Z
#!/usr/bin/env python # https://en.wikipedia.org/wiki/Champernowne_constant # sequences below are related to these constants # counts how many numbers between two 10**n and 10**(n-1) def A0(n): return (10**n - 10**(n-1))*n # http://oeis.org/A033714 # This sequence also gives the total count of digits of n below 10^...
22.25
69
0.669663
0
0
0
0
0
0
0
0
273
0.613483
ebd0835b63b438a8287b71effbf6286cc7da50d9
5,393
py
Python
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
from model import * from config import * from utils import * if __name__ == "__main__": ''' GPU(s) ''' gpus = tf.config.experimental.list_physical_devices('GPU') GPU_N = 3 if gpus: try: tf.config.experimental.set_visible_devices(gpus[GPU_N:], 'GPU') logical_gpus = tf.config.experimental.list_logical_devi...
29.631868
139
0.708511
96
0.017801
0
0
629
0.116633
0
0
2,029
0.376228
ebd099ec453489fa4bd88bc8afe52c94a368779d
1,862
py
Python
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
ReverseInteger/ReverseInteger.py
pauldoust/Competitive-Programming
e824485d0bb3a83b7fba3a80f17639771f32e1e7
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/reverse-integer/ # Runtime: 32 ms, faster than 96.20% of Python3 online submissions for Reverse Integer. # Runtime: 36 ms, faster than 84.28% of Python3 online submissions for Reverse Integer. # Runtime: 44 ms, faster than 22.92% of Python3 online submissions for Reverse Integer. class ...
25.506849
87
0.486574
1,446
0.776584
0
0
0
0
0
0
618
0.331901
ebd3c4127f7770e12f634b24cbfe903d62dc536d
57
py
Python
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
""" A hodge-podge of convenience functions for luci """
11.4
47
0.701754
0
0
0
0
0
0
0
0
56
0.982456
ebd48457bf3399a79fee4cd86c9c5e15db08cd7f
235
py
Python
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
testcases = int(input()) for _ in range(testcases): main_details = list(map(int, input().split())) coin_details = list(map(lambda x: int(x)%main_details[-1], input().split())) print(sum(coin_details)%main_details[-1])
39.166667
81
0.659574
0
0
0
0
0
0
0
0
0
0
ebd4b3b718d780d64a2bf799562bbb822aab0940
16,347
py
Python
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
53.596721
174
0.603475
0
0
0
0
0
0
0
0
7,891
0.482719
ebd4fa6e495803588cbdc17f69290991cb8d3593
2,409
py
Python
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
50
2019-05-10T22:38:14.000Z
2022-03-17T20:11:43.000Z
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
42
2019-03-23T13:03:47.000Z
2022-03-14T22:23:57.000Z
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
16
2019-03-25T18:03:04.000Z
2021-09-27T08:16:30.000Z
import geopandas as gp import pytest from shapely.geometry import Polygon import maup CRS = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" @pytest.fixture def crs(): return CRS @pytest.fixture def four_square_grid(): """ b d a c """ a = Polygon([(0, 0), (0, 1), (1, 1), (1, 0)]) b = ...
23.617647
85
0.550851
0
0
0
0
2,229
0.92528
0
0
207
0.085928
ebd5e7cdc22ace82a24160df0b1f3fbcd2c0b44d
1,389
py
Python
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
""" Plot results of benchmark. Need to run benchmark.py first to generate the file benchmark_results.json. """ import json from collections import defaultdict import matplotlib.pyplot as plt def groupby(values, keyfunc): """Group values by key returned by keyfunc.""" groups = defaultdict(list) for value ...
25.254545
82
0.62275
0
0
0
0
0
0
0
0
436
0.313895
ebd7565d7fb3e2e6e97cd012dbbf6e7433713b29
872
py
Python
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
20
2021-11-08T13:02:33.000Z
2021-11-29T01:03:40.000Z
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
from edgesets import UEdge, DEdge def test_repr(): e1 = DEdge(7, 8) text = repr(e1) assert text == "DEdge(7, 8, weight=1)" e2 = eval(text) assert type(e1) == type(e1) assert e1 == e2 def test_if_directions_are_differents_with_same_nodes(): d1 = DEdge(10, 15) d2 = DEdge(15...
24.222222
61
0.603211
0
0
0
0
0
0
0
0
80
0.091743
ebd871d4dbf6a21fb3d86e6cb1fedb9b96ed2220
1,889
py
Python
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path import numpy as np import scipy import keras from keras.models import load_model from moviepy.editor import VideoFileClip, concatenate_videoclips from tqdm import tqdm def main(): # yapf: disable parser = argparse.ArgumentParser(description='Video Highlight') pa...
32.568966
88
0.644256
0
0
0
0
0
0
0
0
273
0.144521
ebd878270215dfbcc338d538a43df8bec58e8bb9
4,389
py
Python
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.utils import timezone from django.db.models import Count, Q from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.contrib.auth import login, authenticate, log...
33.503817
98
0.642971
0
0
0
0
0
0
0
0
491
0.111871
ebd938bccdfd5e3d285fcfe2b39abb7192868335
1,408
py
Python
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
6
2018-11-15T05:48:02.000Z
2021-06-18T02:22:31.000Z
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
null
null
null
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
1
2021-04-02T11:53:52.000Z
2021-04-02T11:53:52.000Z
# coding=utf-8 import tensorflow as tf class DataSetLoader(object): def __init__(self, config, generators, default_set_name='train'): self.config = config self.generators = generators self.data_sets = dict() self.data_set_init_ops = dict() with tf.variable_scope("data"): ...
48.551724
120
0.598011
1,366
0.97017
0
0
464
0.329545
0
0
45
0.03196
ebda183d9ae687038f19ffe815f5ccbfc5935c5a
1,323
py
Python
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
5
2021-02-18T17:46:39.000Z
2021-12-29T15:48:07.000Z
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
null
null
null
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
2
2021-03-19T14:06:20.000Z
2021-09-26T14:08:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # imports. from ssht00ls.classes.config import * from ssht00ls.classes import utils # the ssh connections object class. class Connections(Traceback): def __init__(self): # docs. DOCS = { "module":"ssht00ls.connections", "initialized":True, "description"...
28.76087
118
0.665911
1,100
0.831444
0
0
0
0
0
0
549
0.414966
ebdc4515eef225eea20fa462e0ef3055b00b55ae
193
py
Python
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
data = np.arange(0, 20, 2) result = pd.Series(data) # Alternative Solution # s = pd.Series(range(0, 20, 2)) # Alternative Solution # s = pd.Series([x for x in range(0, 20) if x % 2 == 0])
16.083333
56
0.61658
0
0
0
0
0
0
0
0
132
0.683938
ebde515b95808947b4370dd040bc2675c00b8d5a
907
py
Python
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
22
2015-07-21T03:15:36.000Z
2021-02-23T07:58:03.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2016-03-20T12:06:07.000Z
2018-01-16T10:34:19.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2015-05-08T00:55:38.000Z
2017-02-25T03:30:14.000Z
#!/usr/bin/env python # encoding: utf-8 from contextlib import contextmanager import mock __author__ = 'Liu Yicong' __email__ = '[email protected]' @contextmanager def mock_patches(*patches, **named_patches): """ A context manager to help create mock patches. >>> with mock_patches("package.module.cls"...
24.513514
77
0.62183
0
0
736
0.811466
752
0.829107
0
0
301
0.331863
ebe0baf06bf88a67d2daea2010828c40f054c75a
558
py
Python
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-11 12:37 from __future__ import absolute_import from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_interfaces', '0015_automaticupdaterule_locked_f...
25.363636
75
0.682796
360
0.645161
0
0
0
0
0
0
195
0.349462
ebe2b6defd1e57b30e21b97498d0791cda38301d
353
py
Python
src/output/console.py
fufuok/PyAgent
f04b0d05e733b9989562934f2cdf1fa7a6af947a
[ "MIT" ]
2
2021-11-19T04:10:18.000Z
2021-12-01T02:39:56.000Z
src/output/console.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
1
2021-12-22T14:12:42.000Z
2022-02-07T12:44:59.000Z
src/output/console.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
3
2021-12-04T02:50:07.000Z
2021-12-27T03:49:35.000Z
# -*- coding:utf-8 -*- """ console.py ~~~~~~~~ 数据发布插件 - 输出到控制台 :author: Fufu, 2021/6/7 """ from . import OutputPlugin from ..libs.metric import Metric class Console(OutputPlugin): """数据发布 - 输出到控制台""" name = 'console' async def write(self, metric: Metric) -> None: """写入数据""" ...
16.809524
50
0.552408
210
0.518519
0
0
0
0
110
0.271605
201
0.496296
ebe364266010bc086bf3592d22da99f969271db1
699
py
Python
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
2,486
2016-11-03T14:31:43.000Z
2020-10-26T23:07:44.000Z
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
721
2016-11-03T21:26:56.000Z
2020-10-26T12:41:29.000Z
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
627
2016-11-02T19:04:19.000Z
2020-10-25T19:21:13.000Z
import json import unittest from slack_sdk.web import WebClient from tests.slack_sdk.web.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) class TestWebClient_Issue_1049(unittest.TestCase): def setUp(self): setup_mock_web_api_server(self) def tearDown(sel...
25.888889
76
0.688126
511
0.731044
0
0
0
0
0
0
66
0.094421
ebe421e20d63c5797e08d5c60d06d2e3c0b635d7
734
py
Python
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
from netforce.model import Model, fields, get_model, clear_cache from netforce.database import get_connection from datetime import * import time from netforce import access class TaskList(Model): _name = "task.list" _string = "Task List" _fields = { "name": fields.Char("Name",required=True), ...
30.583333
73
0.667575
537
0.731608
0
0
0
0
0
0
221
0.30109
ebe505828b5e47c65eb660e7346462d4ff167740
696
py
Python
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import paramiko,time #using as ssh client client=paramiko.SSHClient() #auto adjut host kue verification with yes or no client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) #time to connect to remote Cisco IOS addr=input("Enter your Router IP :") u='root' p='cisco' #connected with SSh sessio...
27.84
81
0.787356
0
0
0
0
0
0
0
0
346
0.497126
ebe611c4dd602efaddd3352116b777a3b429c7f6
16,830
py
Python
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
2
2020-03-30T00:06:43.000Z
2021-07-18T18:07:15.000Z
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys, os import arsdkparser #=============================================================================== class Writer(object): def __init__(self, fileobj): self.fileobj = fileobj def write(self, fmt, *args): if args: self.fileobj.write(fmt % (args)...
39.048724
128
0.57148
236
0.014023
0
0
0
0
0
0
3,697
0.219667
ebe8666cf6e33ea8f8a62d695ff363e1865d7f05
4,998
py
Python
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
import numpy import pygame import random from pygame import gfxdraw pygame.init() config_instance = open('settings.txt', 'r', encoding = 'utf-8') class Settings: def __init__(self, settings: dict): def str_to_rgb(sequence): r, g, b = sequence.split(' ') r, g, b = int(r), int(g), int(b) if (any([r not in r...
33.543624
146
0.652461
4,529
0.906162
0
0
0
0
0
0
570
0.114046
ccd7c7cddab93c97ea1df7fdefa52d6f4a71efc0
484
py
Python
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
import time import random def parse(input): tokens = input.split(" ") parsedTokens = [] time.sleep(5) for i in range(200000): test = random.randint(1, 8) + random.randint(-4, 90) for token in tokens: if token == "": continue parsedTokens.append({ "text": token, "lemma": token, ...
23.047619
64
0.60124
0
0
0
0
0
0
0
0
121
0.25
ccdb25e847708f6452a1e362c123c06d0c2c27e2
2,961
py
Python
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
32
2020-09-10T12:54:09.000Z
2022-03-21T08:55:29.000Z
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
null
null
null
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
19
2020-08-10T10:16:47.000Z
2022-02-17T06:52:14.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 6 10:07:13 2020 @author: [email protected] """ import torch import torch.nn as nn import torch.nn.functional as F class wcrn(nn.Module): def __init__(self, num_classes=9): super(wcrn, self).__init__() self.conv1a = nn.Conv2d(103,64,...
32.538462
83
0.55049
2,774
0.936846
0
0
0
0
0
0
228
0.077001
ccdce89434f75942295d9616fd82c9bb36f9f529
27
py
Python
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
__all__ = ['templatetags']
13.5
26
0.703704
0
0
0
0
0
0
0
0
14
0.518519
ccdd11c45e65428dfc4eae76238a33996803a95a
12,491
py
Python
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
null
null
null
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
1
2021-10-05T16:07:56.000Z
2021-10-05T16:07:56.000Z
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. # # 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 ag...
41.636667
80
0.629173
11,655
0.933072
0
0
0
0
0
0
2,269
0.181651
ccdd4e7946bbbb66bc7ecddf26b85179c631159d
1,012
py
Python
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
1
2019-03-10T10:07:04.000Z
2019-03-10T10:07:04.000Z
import hawkey import logging from rpmreq import graph from rpmreq import query log = logging.getLogger(__name__) def build_requires(specs, repos, base_repos=None, out_data=None, out_image=None, cache_ttl=3600): dep_graph = graph.build_requires_graph( specs=specs, r...
27.351351
57
0.666008
0
0
0
0
0
0
0
0
232
0.229249
ccde37610c8f0bf0da8d0c2c4fba8732e91c7b0e
1,033
py
Python
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
from mlflow.tracking import MlflowClient from urllib.parse import urlparse def get_prod_path_mlflow_model_mlflow_query(model_name, version, new_bucket, new_path): client = MlflowClient() artifact_path_original = None for mv in client.search_model_versions(f"name='{model_name}'"): if mv.version == ...
38.259259
110
0.693127
0
0
0
0
0
0
0
0
237
0.229429
ccde416df2e474e2d91671ed935f8eaa2f12d8eb
5,350
py
Python
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
null
null
null
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
1
2017-12-18T13:44:01.000Z
2017-12-18T13:44:01.000Z
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
3
2018-06-11T10:30:05.000Z
2019-08-07T07:55:40.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from datetime import datetime, timedelta from iso8601 import parse_date from pytz import timezone import urllib import json import os def convert_time(date): date = datetime.strptime(date, "%d/%m/%Y %H:%M:%S") return timezone('Europe/Kiev').localize(date).strftime('%...
37.152778
114
0.629533
0
0
0
0
0
0
0
0
2,249
0.395672
ccdea5fc87e2dce7da82287cb335d1d1997b89b2
125
py
Python
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
EMAIL_ADDRESS = '[email protected]' EMAIL_PASSWORD = 'barbeariadomfigaro' HEROKU_PASSWORD = "Barbeariadomfigaro!"
31.25
46
0.832
0
0
0
0
0
0
0
0
71
0.568
ccdfefff2e5b0b2164f247904feff97a33210609
47
py
Python
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
2
2018-03-05T20:45:11.000Z
2019-03-17T02:59:57.000Z
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
null
null
null
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
8
2018-03-02T14:12:35.000Z
2018-04-21T10:31:25.000Z
''' Created on 15/03/2018 @author: pelejaf '''
9.4
21
0.638298
0
0
0
0
0
0
0
0
47
1
cce06a46f4f819aee94f70073960cb4bc2718754
76
py
Python
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
2
2021-05-19T10:53:25.000Z
2022-01-20T01:20:08.000Z
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
null
null
null
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
1
2022-01-20T01:19:56.000Z
2022-01-20T01:19:56.000Z
# coding: utf-8 from config.base import * DEBUG = False SERVER_PORT = 8899
12.666667
25
0.723684
0
0
0
0
0
0
0
0
15
0.197368
cce181f9f38d4d3c462cfc4fd68ac4c8d8aebe76
6,574
py
Python
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
1
2020-08-21T03:05:08.000Z
2020-08-21T03:05:08.000Z
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
from __future__ import print_function NUM_ROWS = 7 NUM_COLS = 7 DIRECTIONS = ('E', 'W', 'N', 'S') MOVEMENT_DIFFS = { 'N': (0, -1), 'S': (0, 1), 'E': (1, 0), 'W': (-1, 0) } X_MOVEMENT_DIFFS = { 'N': 0, 'S': 0, 'E': 1, 'W': -1 } Y_MOVEMENT_DIFFS = { 'N': -1, 'S': 1, 'E': 0, ...
29.479821
119
0.605872
0
0
0
0
0
0
0
0
3,337
0.507606
cce3ac8194087917625821b84302b29b6337c46a
419
py
Python
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict from dataclasses_jsonschema import JsonSchemaMixin @dataclass class DatabaseStatsBreakdown(JsonSchemaMixin): """Database stats broken down by tier""" breakdown: Dict[str, int] total: int @dataclass class DatabaseStatsSchema(JsonSchemaMixin): ...
22.052632
50
0.78043
281
0.670644
0
0
303
0.72315
0
0
64
0.152745
cce3bf69f8b9a7979f41b539d693ed801301a438
3,781
py
Python
pyampute/tests/test_mapping.py
RianneSchouten/pyampute
98de0d5591546f958b0106217f60df92dc00fbb9
[ "BSD-3-Clause" ]
3
2022-02-14T02:02:23.000Z
2022-02-20T09:52:41.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
24
2022-01-26T15:42:13.000Z
2022-03-12T15:49:56.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
1
2022-02-15T19:15:42.000Z
2022-02-15T19:15:42.000Z
import numpy as np import pandas as pd import unittest from pyampute.ampute import MultivariateAmputation from pyampute.exploration.md_patterns import mdPatterns class TestMapping(unittest.TestCase): ''' This class tests the example code in the blogpost "A mapping from R-function ampute to pyampute" ''' ...
31.773109
100
0.539275
3,566
0.943137
0
0
0
0
0
0
666
0.176144
cce820db4737d5f4fc516df5c5d36a6fb126649f
1,560
py
Python
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import numpy as np import random import cv2 from keras.utils import to_categorical from keras.models import Model from keras.layers import Dropout, Lambda, Dense, Conv2D, Flatten, Input, MaxPooling2D from keras.optimizers import RMSprop from ...
38.04878
104
0.688462
1,165
0.746795
0
0
0
0
0
0
69
0.044231
cce86a805da411d647ff0f543066e46f420f6023
596
py
Python
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
import sys if sys.version_info < (3, 5): print("Python 3.5 is required for this package") sys.exit(1) from setuptools import setup setup(name = "simplesvnbrowser", version = "0.0.1", description = "A simple subversion repository browser application", url = "https://github.com/holtrop/simple-...
29.8
73
0.634228
0
0
0
0
0
0
0
0
265
0.444631
cce90a7d4c65cdb80621e7e28495129d068861f2
2,092
py
Python
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 30 10:02:36 2019 @author: abibeka Purpose: Batch update synchro volumes """ # 0.0 Housekeeping. Clear variable space #****************************************************************************************** from IPython import get_ipython #run magic commands ipython =...
31.223881
110
0.663002
0
0
0
0
0
0
0
0
790
0.377629
ccea292c2e611183f7753e3277974ac6da80216f
5,695
py
Python
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
4
2017-08-27T16:53:56.000Z
2022-03-27T10:48:02.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
3
2019-01-30T20:04:00.000Z
2021-06-21T02:11:17.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Creates the multiline text charts Given the unique nature of multiline text charts, we use a separate method to construct them. ----- """ # Built-in Modules import pickle import sys import textwrap import traceback # Third-party Modules # Note the order and structu...
33.5
114
0.545391
0
0
0
0
0
0
0
0
2,155
0.378402
cceb89993da7a1b69dbd4927d78012815ff5b4de
1,814
py
Python
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in co...
37.791667
118
0.711136
1,009
0.551366
0
0
211
0.115301
0
0
805
0.439891
ccece4c2f4cefc9d065c0f4184c45e006ab941e8
1,342
py
Python
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
6
2020-09-25T07:38:00.000Z
2022-03-11T09:09:22.000Z
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-10-29T08:39:34.000Z
2021-02-09T14:07:09.000Z
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-11-21T12:33:44.000Z
2020-11-21T12:33:44.000Z
from pylie.common import * from pylie import SO3 def test_to_rotation_matrix_results_in_valid_rotation(): # Test 2x2 matrix. A = np.random.rand(2, 2) R = to_rotation_matrix(A) np.testing.assert_almost_equal(R @ R.T, np.identity(2), 14) np.testing.assert_almost_equal(np.linalg.det(R), 1, 14) #...
29.822222
63
0.688525
0
0
0
0
0
0
0
0
290
0.216095
ccedbc549ffc192d24b74e12a04695a4d740a2b9
1,409
py
Python
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
6
2015-01-28T00:48:39.000Z
2015-01-28T00:51:48.000Z
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
import pytz from datetime import timedelta from dateutil import parser from django.utils.text import Truncator from django.db import IntegrityError from core.models import Data class HoursDataSource(object): def __init__(self, start_date, end_date): self.entries = [] self.start_date = start_date ...
31.311111
76
0.648687
1,229
0.87225
0
0
0
0
0
0
28
0.019872
ccede3910d44ac17adace50d3005cb0696103c2a
398
py
Python
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
3
2021-12-04T00:25:34.000Z
2022-03-20T17:33:52.000Z
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
null
null
null
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from roadmaps.models import RoadmapNode from roadmaps.services.progress import ProgressPropagator @receiver(post_save, sender=RoadmapNode) def propagate_completion_to_descendant_nodes(sender, **kwargs): roadmap: RoadmapNode = kwa...
33.166667
63
0.836683
0
0
0
0
212
0.532663
0
0
10
0.025126
ccf0191c3e20264408fdd3e37fe77537c8aef935
7,725
py
Python
tests/datastructures_tests/intensity_data_test.py
czbiohub/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
6
2019-10-30T23:00:01.000Z
2021-03-02T19:09:07.000Z
tests/datastructures_tests/intensity_data_test.py
czbiohub/ReconstructOrder
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
14
2019-07-08T22:51:29.000Z
2019-07-13T15:44:01.000Z
tests/datastructures_tests/intensity_data_test.py
mehta-lab/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
2
2020-05-02T23:28:36.000Z
2020-07-16T23:46:46.000Z
import numpy as np import pytest from numpy.testing import assert_array_equal from ReconstructOrder.datastructures.intensity_data import IntensityData # ==== test basic construction ===== def test_basic_constructor_nparray(): """ test assignment using numpy arrays """ int_data = IntensityData() ...
24.759615
77
0.655016
0
0
0
0
0
0
0
0
1,446
0.187184
ccf118cf4e661c54ae6e3a8fa5192d55fe0bbd47
1,722
py
Python
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
1
2022-03-22T14:59:01.000Z
2022-03-22T14:59:01.000Z
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
import torch class MarioConfig: def __init__(self): # hyper config self.max_num_gpus = 1 self.num_workers = 32 self.discount = 0.999 self.observation_space = (84, 84, 3) self.action_space = 256 + 20 + 8 import os import datetime self.results...
43.05
119
0.624855
1,706
0.990708
0
0
0
0
0
0
655
0.380372