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
540d12bf750ecb2e910c29f067d4164a9bcaf207
30,598
py
Python
file.py
Tawfiq-MoonHacker/metis_video
8d63ac458b8b6bfa48a1ec5476dc47be1987f42a
[ "Apache-2.0" ]
null
null
null
file.py
Tawfiq-MoonHacker/metis_video
8d63ac458b8b6bfa48a1ec5476dc47be1987f42a
[ "Apache-2.0" ]
null
null
null
file.py
Tawfiq-MoonHacker/metis_video
8d63ac458b8b6bfa48a1ec5476dc47be1987f42a
[ "Apache-2.0" ]
null
null
null
file_forgot_password = ["""<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <style type="text/css">...
48.878594
410
0.483365
0
0
0
0
0
0
0
0
30,185
0.986309
540dd2561e2691981ca01c923a08b27ff3e24e2d
2,106
py
Python
builder/schedule.py
MyConbook/datatool
1c12bb5124b48ae827c4832896fd81bf711ad44e
[ "Apache-2.0" ]
null
null
null
builder/schedule.py
MyConbook/datatool
1c12bb5124b48ae827c4832896fd81bf711ad44e
[ "Apache-2.0" ]
null
null
null
builder/schedule.py
MyConbook/datatool
1c12bb5124b48ae827c4832896fd81bf711ad44e
[ "Apache-2.0" ]
null
null
null
import icalendar import urllib2 import hashlib import string import re import datetime from database import Database, TableHandler class Schedule(TableHandler): columns = [("Title", Database.C_TCN), "Description", ("Category", Database.C_TCN), ("Location", Database.C_TCN), ("StartDate", Database.C_D), ("EndDate", Dat...
30.085714
169
0.7132
1,973
0.936847
0
0
0
0
0
0
305
0.144824
540df69177e6fb46fc901283c03665c416fc9242
24,887
py
Python
src/OFS/CopySupport.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
1
2018-12-07T21:19:58.000Z
2018-12-07T21:19:58.000Z
src/OFS/CopySupport.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/OFS/CopySupport.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
33.952251
79
0.571704
19,747
0.793466
0
0
0
0
0
0
6,983
0.280588
540f2aeaaaa0eee405144a0e73dbe2a9199426b2
1,697
py
Python
Search in a Binary Search Tree.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
Search in a Binary Search Tree.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
Search in a Binary Search Tree.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self, val, left=None, right=None): self.val = val self.right = right self.left = left class Solution: def searchBST(self, root, val): # if not root: # return None # if root.val == val: # return root ...
23.569444
74
0.446081
1,328
0.771644
0
0
0
0
0
0
782
0.454387
541271297050a8dd2d540558c72d94871ade9a15
1,019
py
Python
src/data/process_HJ_data.py
simran-grewal/COVID-19-Data-Analysis
8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a
[ "FTL" ]
null
null
null
src/data/process_HJ_data.py
simran-grewal/COVID-19-Data-Analysis
8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a
[ "FTL" ]
null
null
null
src/data/process_HJ_data.py
simran-grewal/COVID-19-Data-Analysis
8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a
[ "FTL" ]
null
null
null
import subprocess import os import numpy as np import pandas as pd from datetime import datetime def store_relational_JH_data(): pd_raw = pd.read_csv('../data/raw/COVID-19/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv') pd_data_base = pd_raw.rename(columns={'Country/Re...
42.458333
134
0.703631
0
0
0
0
0
0
0
0
336
0.329735
5414770e7a98cb88e29d0f46a7ec2949accc8e44
1,023
py
Python
wasm-server.py
erique/pt2-clone
f3376a5a40316f15e82feaa321673a8611c31a53
[ "BSD-3-Clause" ]
null
null
null
wasm-server.py
erique/pt2-clone
f3376a5a40316f15e82feaa321673a8611c31a53
[ "BSD-3-Clause" ]
null
null
null
wasm-server.py
erique/pt2-clone
f3376a5a40316f15e82feaa321673a8611c31a53
[ "BSD-3-Clause" ]
null
null
null
# Python 3 import sys import socketserver from http.server import SimpleHTTPRequestHandler class WasmHandler(SimpleHTTPRequestHandler): def __init__(self, *args, **kwargs): super().__init__(*args, directory="release/emscripten", **kwargs) def do_GET(self): if self.path == '/': self...
34.1
73
0.670577
513
0.501466
0
0
0
0
0
0
320
0.312805
5414822b05eb873a76f59d1b99fc4fca71aebfa2
1,850
py
Python
stage.py
boularbahsmail/Asteroids-Game
ef4ae8d2e66ea2875aba83f512610b4da56c9ef1
[ "CNRI-Python" ]
2
2021-03-25T23:02:50.000Z
2021-03-26T10:41:33.000Z
stage.py
boularbahsmail/Asteroids-Game
ef4ae8d2e66ea2875aba83f512610b4da56c9ef1
[ "CNRI-Python" ]
null
null
null
stage.py
boularbahsmail/Asteroids-Game
ef4ae8d2e66ea2875aba83f512610b4da56c9ef1
[ "CNRI-Python" ]
null
null
null
import pygame import sys import os from pygame.locals import * class Stage: # Set up the PyGame surface def __init__(self, caption, dimensions=None): pygame.init() # If no screen size is provided pick the first available mode if dimensions == None: dimensions = pygame.di...
29.83871
76
0.600541
1,783
0.963784
0
0
0
0
0
0
197
0.106486
5414c4d1cd6ab405e144265b135b1ae64b919a77
2,596
py
Python
web/MicroservicesAsAservice/src/notes/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/MicroservicesAsAservice/src/notes/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/MicroservicesAsAservice/src/notes/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, render_template_string import redis import requests import re import json import sys app = Flask(__name__) @app.route('/getid/<username>') def getid(username): red = redis.Redis(host="redis_users") return red.get(username).decode() @app.route('/useraction', methods...
33.282051
74
0.552003
0
0
0
0
2,371
0.913328
0
0
590
0.227273
54156bd3caed9e41e591c736c817a669d7acd84f
1,195
py
Python
divisiones.py
badgercl/scrappers-congreso-chile
ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee
[ "MIT" ]
null
null
null
divisiones.py
badgercl/scrappers-congreso-chile
ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee
[ "MIT" ]
null
null
null
divisiones.py
badgercl/scrappers-congreso-chile
ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import json import pprint url = 'https://www.bcn.cl/siit/divisionelectoral/index.htm' res = requests.get(url) soup = BeautifulSoup(res.text, 'html.parser') rows = soup.find_all('tbody')[1].find_all('tr') region = "" circunscripcion = "" distrito = "" comuna = "" region...
23.9
60
0.661925
0
0
0
0
0
0
0
0
172
0.143813
5419760ed6778cfb73074dd68ffc3b8c58ad8780
685
py
Python
aws-auth-manager/src/awsauthmanager/app.py
zepplen/aws_tokens
9249ba00ea0b39ac3c523a9ea3ee2485436e84ef
[ "MIT" ]
null
null
null
aws-auth-manager/src/awsauthmanager/app.py
zepplen/aws_tokens
9249ba00ea0b39ac3c523a9ea3ee2485436e84ef
[ "MIT" ]
null
null
null
aws-auth-manager/src/awsauthmanager/app.py
zepplen/aws_tokens
9249ba00ea0b39ac3c523a9ea3ee2485436e84ef
[ "MIT" ]
null
null
null
#################################################### # (C) Mark Trimmer, 2016, All Rights Reserved # # File Name: app.py # # Creation Date: 28-12-2016 # # Created By: Mark Trimmer # # Purpose: # #################################################### from __future__ import print_function from credentialfile import Creden...
26.346154
111
0.608759
324
0.472993
0
0
0
0
0
0
267
0.389781
5419a767eec4a75f25fccde0e39c22e20a25e3d6
486
py
Python
setup.py
datamachines/classification-banner
53ae7ea1104000e60474955f7603c46024a1d06f
[ "Apache-2.0" ]
null
null
null
setup.py
datamachines/classification-banner
53ae7ea1104000e60474955f7603c46024a1d06f
[ "Apache-2.0" ]
1
2021-06-11T15:30:31.000Z
2021-06-14T12:58:21.000Z
setup.py
datamachines/classification-banner
53ae7ea1104000e60474955f7603c46024a1d06f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='classification-banner', version='1.0.0', description='Classification banner compatable with GTK3 and X11.', author='Mike May', author_email='[email protected]', url='https://www.github.com/datamachines/cl...
32.4
72
0.687243
0
0
0
0
0
0
0
0
259
0.532922
541ac4d6365b97db764dba02574e6974751b26ba
371
py
Python
synapyse/impl/activation_functions/linear.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
4
2015-09-19T11:02:56.000Z
2019-03-27T11:42:12.000Z
synapyse/impl/activation_functions/linear.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
null
null
null
synapyse/impl/activation_functions/linear.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
1
2019-10-29T16:24:28.000Z
2019-10-29T16:24:28.000Z
from synapyse.base.activation_functions.activation_function import ActivationFunction __author__ = 'Douglas Eric Fonseca Rodrigues' class Linear(ActivationFunction): def calculate_output(self): return self.x def calculate_derivative(self): return 1.0 def clone(self): clone = Lin...
23.1875
85
0.698113
236
0.636119
0
0
0
0
0
0
32
0.086253
541acc6e7acab303b472692f00ec1a571d8c6ad5
1,027
py
Python
demo/app/libs/description.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
1
2022-02-15T14:03:10.000Z
2022-02-15T14:03:10.000Z
demo/app/libs/description.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
null
null
null
demo/app/libs/description.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
null
null
null
#check description from bs4 import BeautifulSoup import lxml.html def check_description(tree): description = "" xpath_meta = "//meta[@name='description']/@content" xpath_og_property = "//meta[@property='og:description']/@content" xpath_og_name = "//meta[@name='og:description']/@content" meta_conte...
32.09375
82
0.641675
0
0
0
0
0
0
0
0
164
0.159688
541b0dd061b1cb2fb2dd1d60f50109368732184b
919
py
Python
backend/projectfiles/GradleProjectFile.py
karllindmark/IsYourProjectUpToDate
ce2df36b8fa39a4732b05dfd75558a914e4e990b
[ "Apache-2.0" ]
null
null
null
backend/projectfiles/GradleProjectFile.py
karllindmark/IsYourProjectUpToDate
ce2df36b8fa39a4732b05dfd75558a914e4e990b
[ "Apache-2.0" ]
null
null
null
backend/projectfiles/GradleProjectFile.py
karllindmark/IsYourProjectUpToDate
ce2df36b8fa39a4732b05dfd75558a914e4e990b
[ "Apache-2.0" ]
null
null
null
import re from backend.projectfiles.GenericProjectFile import GenericProjectFile QUOTE = r'(?:["|\'])' STRING = r'([\w\.\-\+]+)' GAV_REGEXP = QUOTE + '(?:' + ":".join([STRING, STRING, STRING]) + ')' + QUOTE class GradleProjectFile(GenericProjectFile): """ Gradle project file implementation to extract dependenc...
34.037037
82
0.516866
705
0.767138
0
0
0
0
0
0
148
0.161045
541c51e665974394ae0ab412789deb2f54ac881a
1,879
py
Python
python/rhinoscripts/example_csv_loading.py
tasbolat1/hmv-s16
7863c66ed645b463b72aef98a5c484a18cc9f396
[ "BSD-3-Clause" ]
1
2020-10-10T21:27:30.000Z
2020-10-10T21:27:30.000Z
python/rhinoscripts/example_csv_loading.py
tasbolat1/hmv-s16
7863c66ed645b463b72aef98a5c484a18cc9f396
[ "BSD-3-Clause" ]
null
null
null
python/rhinoscripts/example_csv_loading.py
tasbolat1/hmv-s16
7863c66ed645b463b72aef98a5c484a18cc9f396
[ "BSD-3-Clause" ]
null
null
null
"""Example code for importing a single rigid body trajectory into Rhino from a Optitrack CSV file. Copyright (c) 2016, Garth Zeglin. All rights reserved. Licensed under the terms of the BSD 3-clause license as included in LICENSE. Example code for generating a path of Rhino 'planes' (e.g. coordinate frame) from a tr...
36.134615
98
0.734433
0
0
0
0
0
0
0
0
1,132
0.602448
541d99a0b05066f7ae098ca89430a31ca86b09cb
91,180
py
Python
4_Nback/Nback_practice_lastrun.py
Brinks0211/cognitive_paradigms_patients
30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e
[ "MIT" ]
2
2020-07-01T12:53:40.000Z
2020-07-01T13:30:23.000Z
4_Nback/Nback_practice_lastrun.py
Brinks0211/cognitive_paradigms_patients
30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e
[ "MIT" ]
null
null
null
4_Nback/Nback_practice_lastrun.py
Brinks0211/cognitive_paradigms_patients
30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.1.3), on 六月 15, 2020, at 09:02 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Li...
45.842132
121
0.66599
0
0
0
0
0
0
0
0
33,398
0.362927
541db46f26a3ec258d9d85654ca98eae0553065a
3,271
py
Python
pysal/contrib/geotable/utils.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
null
null
null
pysal/contrib/geotable/utils.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
null
null
null
pysal/contrib/geotable/utils.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
1
2021-07-19T01:46:17.000Z
2021-07-19T01:46:17.000Z
from ...cg import asShape as pShape from ...common import requires as _requires from warnings import warn @_requires('geopandas') def to_df(df, geom_col='geometry', **kw): """ Convert a Geopandas dataframe into a normal pandas dataframe with a column containing PySAL shapes. Always returns a copy. Ar...
33.721649
100
0.602262
0
0
0
0
1,674
0.51177
0
0
2,107
0.644146
541de3fcd94ea7163228d56302142fff219657ee
287
py
Python
torrent/torrent_tracker/whitelist_api/urls.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
3
2021-04-17T10:20:26.000Z
2022-03-08T07:36:13.000Z
torrent/torrent_tracker/whitelist_api/urls.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
torrent/torrent_tracker/whitelist_api/urls.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
from django.urls import path from whitelist_api.views import AddTorrentInfoHash, RemoveTorrentInfoHash app_name = 'whitelist_api' urlpatterns = [ path('add-torrent-info-hash/', AddTorrentInfoHash.as_view()), path('del-torrent-info-hash/', RemoveTorrentInfoHash.as_view()), ]
23.916667
73
0.766551
0
0
0
0
0
0
0
0
63
0.219512
541e93e13927b8ffff8b83f86083ffe9dd7cdee8
1,847
py
Python
vega/core/metrics/pytorch/flops_and_params.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
vega/core/metrics/pytorch/flops_and_params.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
vega/core/metrics/pytorch/flops_and_params.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
33.581818
76
0.714131
0
0
0
0
0
0
0
0
974
0.527342
5421063007f16d8c808280360658d8af84912272
524
py
Python
Projects/project04/pop_shrink.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
2
2019-02-13T17:49:18.000Z
2020-09-30T04:51:53.000Z
Projects/project04/pop_shrink.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
null
null
null
Projects/project04/pop_shrink.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
null
null
null
from Stack import Stack def main(): stack = Stack() stack.push(0) stack.push(1) stack.push(2) stack.push(3) assert stack.data == [0, 1, 2, 3] assert stack.capacity == 4 assert stack.size == 4 popped = stack.pop() assert popped == 3 popped = stack.pop() assert popped =...
17.466667
48
0.564885
0
0
0
0
0
0
0
0
44
0.083969
5421bfc32b86a8ee54dfb925ef8eac6e4d16b3b0
212
py
Python
pycache/__init__.py
HuiiBuh/pycache
300bd51f9e575fd77014d6c86497dd58f313f752
[ "MIT" ]
1
2021-09-04T05:34:26.000Z
2021-09-04T05:34:26.000Z
pycache/__init__.py
HuiiBuh/pycache
300bd51f9e575fd77014d6c86497dd58f313f752
[ "MIT" ]
1
2021-03-14T19:26:01.000Z
2021-03-16T18:46:38.000Z
pycache/__init__.py
HuiiBuh/pycache
300bd51f9e575fd77014d6c86497dd58f313f752
[ "MIT" ]
null
null
null
__version__ = '0.3.2' # noinspection PyUnresolvedReferences from ._cache._cache import cache # noinspection PyUnresolvedReferences from ._scheduler._scheduler import add_schedule, schedule, ScheduleSubscription
30.285714
79
0.84434
0
0
0
0
0
0
0
0
81
0.382075
5423d564159a63ea1cc7a476c45ce6fae5bb3b4a
1,670
py
Python
bender/tests/test_predict_pipeline.py
otovo/bender
b64f0656658287b932ce44d52e6035682652fe33
[ "Apache-2.0" ]
2
2021-12-17T15:45:40.000Z
2021-12-18T14:15:43.000Z
bender/tests/test_predict_pipeline.py
otovo/bender
b64f0656658287b932ce44d52e6035682652fe33
[ "Apache-2.0" ]
2
2022-03-30T14:31:12.000Z
2022-03-31T14:25:25.000Z
bender/tests/test_predict_pipeline.py
otovo/bender
b64f0656658287b932ce44d52e6035682652fe33
[ "Apache-2.0" ]
1
2021-12-19T17:16:38.000Z
2021-12-19T17:16:38.000Z
import numpy as np import pytest from pandas.core.frame import DataFrame from bender.importers import DataImporters from bender.model_loaders import ModelLoaders from bender.model_trainer.decision_tree import DecisionTreeClassifierTrainer from bender.split_strategies import SplitStrategies pytestmark = pytest.mark.as...
27.833333
116
0.640719
0
0
0
0
0
0
1,341
0.802994
792
0.474251
5423f2c125c3cb768b4a0cd17051477a73148c1a
16,691
py
Python
gbot/libs/helper.py
dgw/goshu
3cba300d92f9bde58cf7348ddc3183d52b4c4bcf
[ "ISC" ]
5
2015-01-03T00:08:58.000Z
2017-05-05T11:57:03.000Z
gbot/libs/helper.py
dgw/goshu
3cba300d92f9bde58cf7348ddc3183d52b4c4bcf
[ "ISC" ]
3
2016-02-07T07:35:13.000Z
2016-11-26T19:29:02.000Z
gbot/libs/helper.py
dgw/goshu
3cba300d92f9bde58cf7348ddc3183d52b4c4bcf
[ "ISC" ]
1
2020-11-12T09:09:06.000Z
2020-11-12T09:09:06.000Z
#!/usr/bin/env python3 # Goshu IRC Bot # written by Daniel Oaks <[email protected]> # licensed under the ISC license """extends several builtin functions and provides helper functions The default Python library is extensive and well-stocked. There are some times however, you wish a small task was taken care of for...
30.795203
94
0.549038
3,564
0.213528
0
0
0
0
0
0
4,286
0.256785
542466b53c52821ceb40707c73e0ab32ca5a0262
8,707
py
Python
ptf/lib/runner.py
opennetworkinglab/tassen
6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09
[ "Apache-2.0" ]
4
2020-07-08T22:04:35.000Z
2020-07-14T15:09:37.000Z
ptf/lib/runner.py
opennetworkinglab/tassen
6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09
[ "Apache-2.0" ]
1
2020-07-07T08:12:40.000Z
2020-07-07T08:12:41.000Z
ptf/lib/runner.py
opennetworkinglab/tassen
6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2013-present Barefoot Networks, Inc. # SPDX-FileCopyrightText: 2018-present Open Networking Foundation # # SPDX-License-Identifier: Apache-2.0 import Queue import argparse import json import logging import os import re import subprocess import sys import threading import time from c...
31.547101
91
0.605949
0
0
2,560
0.294016
0
0
0
0
1,899
0.2181
5427881b2cdb695dc79fdf0dbaacbc4dd2f6b718
178
py
Python
rsebs/__init__.py
gabrielperezs/recycling-snapshots
b0707e883bb6037505af815877e4ef8ce544e35e
[ "Apache-2.0" ]
1
2017-05-23T05:58:47.000Z
2017-05-23T05:58:47.000Z
rsebs/__init__.py
gabrielperezs/recycling-snapshots
b0707e883bb6037505af815877e4ef8ce544e35e
[ "Apache-2.0" ]
null
null
null
rsebs/__init__.py
gabrielperezs/recycling-snapshots
b0707e883bb6037505af815877e4ef8ce544e35e
[ "Apache-2.0" ]
null
null
null
from .snapshots import set_client from .snapshots import get_snapshots from .snapshots import tag_snapshot from .snapshots import set_drymode from .snapshots import unset_drymode
35.6
36
0.865169
0
0
0
0
0
0
0
0
0
0
54286060601c97e4e84de6381203dae2af8365e8
1,184
py
Python
predict_form.py
HuginnM/UsedCarsUA
aa871c1bc6cdc1a84810db265c732b04cb4935f0
[ "Apache-2.0" ]
null
null
null
predict_form.py
HuginnM/UsedCarsUA
aa871c1bc6cdc1a84810db265c732b04cb4935f0
[ "Apache-2.0" ]
null
null
null
predict_form.py
HuginnM/UsedCarsUA
aa871c1bc6cdc1a84810db265c732b04cb4935f0
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import SubmitField, SelectField, IntegerField, FloatField, StringField from wtforms.validators import DataRequired import pandas as pd uniq_vals = pd.read_csv("data/unique_cat_vals.csv", index_col=0) class InputData(FlaskForm): car = SelectField(label="Car", choices=u...
56.380952
121
0.754223
935
0.789696
0
0
0
0
0
0
129
0.108953
5429177713786c59d64d5d6d11764c591147502b
2,764
py
Python
color.py
laplacetw/color-codes-bot
e7afb5b09e7c4a5dde6608917781cc6a0ea05287
[ "MIT" ]
1
2020-10-21T01:26:09.000Z
2020-10-21T01:26:09.000Z
color.py
laplacetw/color-codes-bot
e7afb5b09e7c4a5dde6608917781cc6a0ea05287
[ "MIT" ]
null
null
null
color.py
laplacetw/color-codes-bot
e7afb5b09e7c4a5dde6608917781cc6a0ea05287
[ "MIT" ]
null
null
null
#!usr/bin/env python3 color_chart = { '1C1':[13.24, 88.89, 228.98, 0.], '1N1':[14.2, 95.37, 233.82, 0.], '1N2':[12.95, 91.79, 219.5, 0.], '1W1':[14.67, 103.64, 229.41, 0.], '1W2':[14.69, 106.34, 227.28, 0.], '2C0':[15.73, 134.68, 222.32, 0.], '2C1':[14.57, 125.89, 220.69, 0.], '2C3':[13.7, 103.72, 199.4...
86.375
109
0.48589
0
0
0
0
0
0
0
0
396
0.143271
5429df166b3efe8e9b12e537d9c5a2b68d7af8f7
235
py
Python
leetCode/algorithms/easy/occurrences_after_bigram.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/occurrences_after_bigram.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/occurrences_after_bigram.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from typing import List class Solution: def findOcurrences(self, text: str, first: str, second: str) -> List[str]: ls = text.split() return [c for a, b, c in zip(ls, ls[1:], ls[2:]) if a == first and b == second]
29.375
87
0.595745
208
0.885106
0
0
0
0
0
0
0
0
542a62b48d45febc53b82e238fe6ed286841ea91
454
py
Python
src/pyuwds3/utils/egocentric_spatial_relations.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-08-19T06:15:14.000Z
2021-05-23T09:55:18.000Z
src/pyuwds3/utils/egocentric_spatial_relations.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
5
2021-01-06T09:00:35.000Z
2021-01-20T13:22:19.000Z
src/pyuwds3/utils/egocentric_spatial_relations.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-11-18T17:34:43.000Z
2021-05-23T16:14:17.000Z
import math from scipy.spatial.distance import euclidean from ..types.bbox import BoundingBox def is_left_of(bb1, bb2): _, _, bb1_max, _, _ = bb1 bb2_min, _, _, _, _ = bb2 return bb1_max < bb2_min def is_right_of(bb1, bb2): bb1_min, _, _, _, _ = bb1 _, _, bb2_max, _, _ = bb2 return bb1_min ...
19.73913
44
0.634361
0
0
0
0
0
0
0
0
0
0
542b4553e4da40bd25e9c35ead38f8985d1d5c31
2,883
py
Python
machine_replacement_action_probs.py
dsbrown1331/broil
3c06e15c560db3242c0e331a2b16cc578a843606
[ "MIT" ]
1
2021-03-29T09:53:53.000Z
2021-03-29T09:53:53.000Z
machine_replacement_action_probs.py
dsbrown1331/broil
3c06e15c560db3242c0e331a2b16cc578a843606
[ "MIT" ]
1
2020-11-22T15:05:48.000Z
2020-11-25T00:10:17.000Z
machine_replacement_action_probs.py
dsbrown1331/broil
3c06e15c560db3242c0e331a2b16cc578a843606
[ "MIT" ]
null
null
null
import bayesian_irl import mdp_worlds import utils import mdp import numpy as np import scipy import random import generate_efficient_frontier from machine_replacement import generate_posterior_samples if __name__=="__main__": seed = 1234 np.random.seed(seed) scipy.random.seed(seed) random.seed(seed) ...
27.990291
131
0.687825
0
0
0
0
0
0
0
0
442
0.153313
542b464eeb35182c67fc88683f7b87c523d2bec7
5,982
py
Python
sequential/seq_smnist/train_args_seq_smnist.py
mariacer/cl_in_rnns
333b8e03391600a8e3df7d684a3f171b135d273a
[ "Apache-2.0" ]
26
2020-06-17T08:44:15.000Z
2022-03-20T04:21:13.000Z
sequential/seq_smnist/train_args_seq_smnist.py
mariacer/cl_in_rnns
333b8e03391600a8e3df7d684a3f171b135d273a
[ "Apache-2.0" ]
null
null
null
sequential/seq_smnist/train_args_seq_smnist.py
mariacer/cl_in_rnns
333b8e03391600a8e3df7d684a3f171b135d273a
[ "Apache-2.0" ]
4
2020-10-26T02:19:38.000Z
2021-12-26T02:26:05.000Z
#!/usr/bin/env python3 # Copyright 2019 Benjamin Ehret, Maria Cervera # # 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 ...
41.541667
80
0.674858
0
0
0
0
0
0
0
0
2,522
0.421598
542b4d4125780654fe2bbd178dc02f72ba260ddd
2,490
py
Python
examples/compare.py
guo-yong-zhi/wordcloud2
43d34766323e8eec45d46eeaa98537849f48cd37
[ "MIT" ]
null
null
null
examples/compare.py
guo-yong-zhi/wordcloud2
43d34766323e8eec45d46eeaa98537849f48cd37
[ "MIT" ]
null
null
null
examples/compare.py
guo-yong-zhi/wordcloud2
43d34766323e8eec45d46eeaa98537849f48cd37
[ "MIT" ]
null
null
null
from wordcloud2 import wordcloud as W import os from PIL import Image stwords = {"us", "will"} print("==Obama's==") cs = W.randomscheme() #:Set1_8 as_ = W.randomangles() #(0,90,45,-45) dens = 0.5 #not too high wca = W.wordcloud( W.processtext(open(W.pkgdir(W.WordCloud)+"/res/Barack Obama's First Inaugural Address...
35.571429
104
0.685542
0
0
0
0
0
0
0
0
866
0.347233
542b9661a1d12114a162b51bacab5cac808471e8
3,520
py
Python
modules/insight/nbCurvesLevelSet.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
25
2015-08-24T16:05:14.000Z
2020-12-09T20:07:14.000Z
modules/insight/nbCurvesLevelSet.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
1
2016-02-16T21:18:10.000Z
2016-02-16T21:18:10.000Z
modules/insight/nbCurvesLevelSet.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
5
2016-02-16T20:05:37.000Z
2020-01-31T11:27:39.000Z
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class nbCurvesLevelSet(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, mo...
32
76
0.600284
3,279
0.931534
0
0
0
0
0
0
1,006
0.285795
58087fdf8d89ae3ca538e157ca99613c2f7a205f
2,835
py
Python
setup.py
ThomasChiroux/ejabberd_external_auth_jwt
fce68cca70ca578b3c1c002a4dea2aa65e3150c1
[ "MIT" ]
null
null
null
setup.py
ThomasChiroux/ejabberd_external_auth_jwt
fce68cca70ca578b3c1c002a4dea2aa65e3150c1
[ "MIT" ]
null
null
null
setup.py
ThomasChiroux/ejabberd_external_auth_jwt
fce68cca70ca578b3c1c002a4dea2aa65e3150c1
[ "MIT" ]
null
null
null
# # Copyright 2018-2019 Happineo # """setuptools installer for zamita.""" import os import uuid from setuptools import find_packages from setuptools import setup from setuptools.command.build_py import build_py # local imports from build_scripts.version import VersionInfo HERE = os.path.abspath(os.path.dirname(__fi...
27.794118
82
0.618342
770
0.271605
0
0
0
0
0
0
808
0.285009
5808c926d701d604229b7c9061a8576e5eb62676
4,724
py
Python
Analysis/Feb2021/common_plotting.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
2
2021-03-07T03:17:13.000Z
2021-03-07T03:17:16.000Z
Analysis/Feb2021/common_plotting.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
1
2021-03-09T00:00:52.000Z
2021-03-09T00:00:52.000Z
Analysis/Feb2021/common_plotting.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
""" Sep 21 -- A few of the plots used in analysis, very far from a complete list, and probably most are too specific to be useful again. Moved useful functions from here. """ from __future__ import annotations from typing import List, Callable, Optional, Union, TYPE_CHECKING import numpy as np from dat_analysis.anal...
44.990476
120
0.556308
0
0
0
0
0
0
0
0
1,362
0.288315
580a05b1f8e364040a8ccda54856a6eead097400
9,980
py
Python
Code/sphero_learn.py
rvarga601/IER
1cf05e641dea2fb3b4ad5329e3e556713cc199fe
[ "MIT" ]
null
null
null
Code/sphero_learn.py
rvarga601/IER
1cf05e641dea2fb3b4ad5329e3e556713cc199fe
[ "MIT" ]
null
null
null
Code/sphero_learn.py
rvarga601/IER
1cf05e641dea2fb3b4ad5329e3e556713cc199fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 10 23:54:16 2021 @author: rolandvarga """ import gym import numpy as np import matplotlib.pyplot as plt import time from scipy.signal import savgol_filter import pickle #%matplotlib qt #%matplotlib inline # Set to 1 to repeat SARSA learning (With...
30.993789
118
0.577154
0
0
0
0
0
0
0
0
2,966
0.297194
580b61225012c491f65cb5e42655216093dbdb35
8,952
py
Python
HW7/kernel_eigenface.py
joycenerd/Machine_Learning_2021
ecb634a9f2f1112a393a9707ce69c3bc751c4542
[ "MIT" ]
1
2021-11-18T09:22:21.000Z
2021-11-18T09:22:21.000Z
HW7/kernel_eigenface.py
joycenerd/Machine_Learning_2021
ecb634a9f2f1112a393a9707ce69c3bc751c4542
[ "MIT" ]
null
null
null
HW7/kernel_eigenface.py
joycenerd/Machine_Learning_2021
ecb634a9f2f1112a393a9707ce69c3bc751c4542
[ "MIT" ]
null
null
null
from scipy.spatial.distance import cdist from numpy.linalg import eig, norm, pinv import matplotlib.pyplot as plt from PIL import Image import numpy as np import argparse import ntpath import glob import os parser = argparse.ArgumentParser() parser.add_argument("--option", type=str, default="PCA", ...
31.632509
106
0.601095
0
0
0
0
0
0
0
0
1,791
0.200067
580c8290606fc382a91ddcb30034d1076a50dc58
18,427
py
Python
duqo/optimization/predict.py
canbooo/pyRDO
f7143438aa30cc79587c9f35fc9ff6aa262fc4d3
[ "BSD-3-Clause" ]
11
2021-08-17T05:55:01.000Z
2022-02-03T13:16:42.000Z
duqo/optimization/predict.py
canbooo/pyRDO
f7143438aa30cc79587c9f35fc9ff6aa262fc4d3
[ "BSD-3-Clause" ]
null
null
null
duqo/optimization/predict.py
canbooo/pyRDO
f7143438aa30cc79587c9f35fc9ff6aa262fc4d3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 9 15:33:47 2019 @author: Bogoclu """ import typing import multiprocessing as mp import warnings import numpy as np from scipy import stats from .space import FullSpace from duqo.proba import DS, MC, SUSE, ISPUD, FORM from duqo.doe.lhs import make_doe def _check_obj_w...
35.920078
115
0.61475
14,279
0.774896
0
0
3,354
0.182016
0
0
8,433
0.457644
580d37ef443f31d16e61142142999c038e7fd18f
5,352
py
Python
mymodule/twitter_json_parsing.py
sobkovych/TwitterFriendsMap
7fb1a844264334fba443feba3830cca2c86b55c9
[ "MIT" ]
null
null
null
mymodule/twitter_json_parsing.py
sobkovych/TwitterFriendsMap
7fb1a844264334fba443feba3830cca2c86b55c9
[ "MIT" ]
null
null
null
mymodule/twitter_json_parsing.py
sobkovych/TwitterFriendsMap
7fb1a844264334fba443feba3830cca2c86b55c9
[ "MIT" ]
1
2020-02-26T09:20:17.000Z
2020-02-26T09:20:17.000Z
"""Parse json files.""" import json import re def search_for_key(final_key: str, tree: dict, space: list = []): """Search all data for a key. :param final_key: the key :param tree: the data :param space: found values :return: all found values """ if isinstance(tree, dict) and final_key in...
32.047904
77
0.496076
0
0
0
0
0
0
0
0
1,340
0.250374
580d445ca9f82fbb66ddc5c165290139ca728a53
2,795
py
Python
meet/migrations/0001_initial.py
bjones-tech/speedy-meety
a7d557788a544b69fd6ad454d921d9cf02cfa636
[ "MIT" ]
null
null
null
meet/migrations/0001_initial.py
bjones-tech/speedy-meety
a7d557788a544b69fd6ad454d921d9cf02cfa636
[ "MIT" ]
null
null
null
meet/migrations/0001_initial.py
bjones-tech/speedy-meety
a7d557788a544b69fd6ad454d921d9cf02cfa636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-17 02:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import meet.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
43.671875
131
0.586047
2,586
0.925224
0
0
0
0
0
0
464
0.166011
580de9ae168cc442b87908dac6e8235e1d9361f3
284
py
Python
setup.py
jrspruitt/pyfa_gpio
d0f189724b34a2a888dd01b33d237b79ace5becf
[ "MIT" ]
null
null
null
setup.py
jrspruitt/pyfa_gpio
d0f189724b34a2a888dd01b33d237b79ace5becf
[ "MIT" ]
null
null
null
setup.py
jrspruitt/pyfa_gpio
d0f189724b34a2a888dd01b33d237b79ace5becf
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup,find_packages version = '0.1' setup( name='pyfa_gpio', version=version, description='', author='Jason Pruitt', url='https://github.com/jrspruitt/pyfa_gpio', license='MIT', packages = find_packages(), )
17.75
49
0.661972
0
0
0
0
0
0
0
0
98
0.34507
580ec4cbc90960d845dfc3bbcd5951593510c1c2
4,093
py
Python
dps/env/basic/path_discovery.py
alcinos/dps
5467db1216e9f9089376d2c71f524ced2382e4f6
[ "Apache-2.0" ]
null
null
null
dps/env/basic/path_discovery.py
alcinos/dps
5467db1216e9f9089376d2c71f524ced2382e4f6
[ "Apache-2.0" ]
null
null
null
dps/env/basic/path_discovery.py
alcinos/dps
5467db1216e9f9089376d2c71f524ced2382e4f6
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np from dps.register import RegisterBank from dps.env import TensorFlowEnv from dps.utils import Param, Config def build_env(): return PathDiscovery() config = Config( build_env=build_env, curriculum=[ dict(shape=(2, 2), threshold=6), dict(shape=(...
36.221239
109
0.590765
3,598
0.879062
0
0
0
0
0
0
339
0.082824
5810e3bb40adfc4d345436082de3af836eeff704
14,812
py
Python
utils/github/query.py
malkfilipp/ClickHouse
79a206b092cd465731020f331bc41f6951dbe751
[ "Apache-2.0" ]
1
2019-09-16T11:07:32.000Z
2019-09-16T11:07:32.000Z
utils/github/query.py
malkfilipp/ClickHouse
79a206b092cd465731020f331bc41f6951dbe751
[ "Apache-2.0" ]
null
null
null
utils/github/query.py
malkfilipp/ClickHouse
79a206b092cd465731020f331bc41f6951dbe751
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import requests class Query: '''Implements queries to the Github API using GraphQL ''' def __init__(self, token, max_page_size=100, min_page_size=5): self._token = token self._max_page_size = max_page_size self._min_page_size = min_page_size self.a...
41.96034
128
0.369498
14,768
0.997029
0
0
0
0
0
0
9,426
0.636376
5811d6d7e749badbaa3acffda48486b057d48a0e
4,404
py
Python
mortgage/mortgage.py
roelbertens/mortgages
b5fe415024933c772e6c7c57f041bf065ac86176
[ "MIT" ]
1
2019-08-19T07:09:58.000Z
2019-08-19T07:09:58.000Z
mortgage/mortgage.py
roelbertens/mortgages
b5fe415024933c772e6c7c57f041bf065ac86176
[ "MIT" ]
null
null
null
mortgage/mortgage.py
roelbertens/mortgages
b5fe415024933c772e6c7c57f041bf065ac86176
[ "MIT" ]
null
null
null
from typing import List import matplotlib.pyplot as plt class Mortgage: """ A mortgage overview of the total burden (incl. interest) and the monthly fees per fixed period """ def __init__(self, mortgage_amount, burden, periods, monthly_fees, name): self.mortgage_amount = int(mortgage_amount)...
38.631579
98
0.584923
2,937
0.666894
0
0
0
0
0
0
891
0.202316
58127a028ca7d4bb09bc84dec02f9d31b1e190c3
32,827
py
Python
training/wml_train.py
corvy/MAX-Object-Detector
2a21183e6bb9d0c35bac297ee3cf1fc67f4c048f
[ "Apache-2.0" ]
1
2019-10-25T11:36:46.000Z
2019-10-25T11:36:46.000Z
training/wml_train.py
karankrish/MAX-Image-Segmenter
2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485
[ "Apache-2.0" ]
1
2019-07-08T17:58:45.000Z
2019-09-05T18:07:45.000Z
training/wml_train.py
karankrish/MAX-Image-Segmenter
2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485
[ "Apache-2.0" ]
1
2019-10-30T20:42:46.000Z
2019-10-30T20:42:46.000Z
#!/usr/bin/env python # # Copyright 2018-2019 IBM Corp. 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 requ...
41.03375
79
0.559113
296
0.009017
0
0
0
0
0
0
14,373
0.437841
58146fc12bca47d19303bba6584622a1dcef7fcd
57
py
Python
tests/unit/sim_client/__init__.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
8
2019-01-29T15:19:39.000Z
2020-07-16T03:55:36.000Z
tests/unit/sim_client/__init__.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
46
2019-02-08T14:23:11.000Z
2021-04-06T13:45:10.000Z
tests/unit/sim_client/__init__.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
3
2019-05-06T14:18:07.000Z
2021-06-17T10:39:59.000Z
""" Module contains tests for the sim_client package """
14.25
48
0.736842
0
0
0
0
0
0
0
0
56
0.982456
581495876b03363b5fef74a09d461c434b90c0d7
8,344
py
Python
glog.py
leoll2/python-glog
c809d16352bf061d0ee38e590c6f28d553d740e7
[ "BSD-2-Clause" ]
null
null
null
glog.py
leoll2/python-glog
c809d16352bf061d0ee38e590c6f28d553d740e7
[ "BSD-2-Clause" ]
null
null
null
glog.py
leoll2/python-glog
c809d16352bf061d0ee38e590c6f28d553d740e7
[ "BSD-2-Clause" ]
null
null
null
"""A simple Google-style logging wrapper.""" import logging import time import traceback import os import sys import gflags as flags FLAGS = flags.FLAGS def format_message(record): try: record_message = "%s" % (record.msg % record.args) except TypeError: record_message = record.msg retu...
27.447368
90
0.615532
2,683
0.321548
0
0
0
0
0
0
1,843
0.220877
581495ab37cf4df801b88c86040220d6464bbc32
4,141
py
Python
ref_rna.py
entn-at/warp-rna
f6bf19634564068f23f9906373754e04f9b653a3
[ "MIT" ]
39
2019-08-11T09:06:55.000Z
2022-03-30T03:24:34.000Z
ref_rna.py
entn-at/warp-rna
f6bf19634564068f23f9906373754e04f9b653a3
[ "MIT" ]
null
null
null
ref_rna.py
entn-at/warp-rna
f6bf19634564068f23f9906373754e04f9b653a3
[ "MIT" ]
6
2019-12-11T03:02:48.000Z
2021-11-29T09:01:51.000Z
""" Python reference implementation of the Recurrent Neural Aligner. Author: Ivan Sorokin Based on the papers: - "Recurrent Neural Aligner: An Encoder-Decoder Neural Network Model for Sequence to Sequence Mapping" Hasim Sak, et al., 2017 - "Extending Recurrent Neural Aligner for Streaming End-to-End Speech Rec...
26.544872
103
0.59744
0
0
0
0
0
0
0
0
606
0.146341
581517f5427032699dff194265e55b485b52ab39
2,994
py
Python
tests/coretests.py
thomasms/coiny
1f51eac2542e46b03abd9f66fd3b58fbd80cb177
[ "MIT" ]
null
null
null
tests/coretests.py
thomasms/coiny
1f51eac2542e46b03abd9f66fd3b58fbd80cb177
[ "MIT" ]
null
null
null
tests/coretests.py
thomasms/coiny
1f51eac2542e46b03abd9f66fd3b58fbd80cb177
[ "MIT" ]
null
null
null
import unittest from typing import Any from coiny.core import CoinPrice, CoinyQueue, CoinySession, price_now_url, price_task from coiny.utils import NullCoinPrice class HasJson: def __init__(self, data) -> None: self.data = data async def __aenter__(self): return self async def __aexit_...
34.022727
85
0.62024
2,793
0.932866
0
0
0
0
2,614
0.873079
462
0.154309
5816e949ba4a9d3600362e45768d66548fbd4d4b
969
py
Python
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
2
2020-04-09T13:04:25.000Z
2021-09-24T14:17:26.000Z
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
null
null
null
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
3
2019-09-20T20:49:54.000Z
2021-09-02T17:33:47.000Z
import unittest from simulator_diagnoser.graph import InmemoryGraph from simulator_diagnoser.graph.traversal import ForwardAnalysis class ForwardAnalysisTest(unittest.TestCase): def setUp(self): # Graph = # 9 # / | \ # 6 7 8 # \ / \ / # 4 5 #...
24.846154
69
0.49742
786
0.811146
0
0
0
0
0
0
87
0.089783
581774fbaaecfebcc97c105cd9ba5717bc57c3de
5,396
py
Python
SONOS/sonos-fadein-alarm.py
tksunw/IoT
2148c49e9a90822400f195be7b1de3f8e8b8ba2a
[ "MIT" ]
1
2018-01-30T23:30:27.000Z
2018-01-30T23:30:27.000Z
SONOS/sonos-fadein-alarm.py
tksunw/IoT
2148c49e9a90822400f195be7b1de3f8e8b8ba2a
[ "MIT" ]
1
2018-02-14T19:58:56.000Z
2018-02-14T19:58:56.000Z
SONOS/sonos-fadein-alarm.py
tksunw/IoT
2148c49e9a90822400f195be7b1de3f8e8b8ba2a
[ "MIT" ]
2
2018-02-13T18:52:09.000Z
2021-09-29T14:27:49.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ''' sonos-fadein-alarm.py - a gentle alarm using Sonos Favorites. This module allows a user to choose a SONOS favorite channel to play for a gentle alarm. Select the maximum desired volume, the number of minutes over which to ramp volume from 0 to the chosen maxium, and choose...
38.542857
137
0.623981
0
0
0
0
0
0
0
0
2,861
0.530208
58183b1abecb86537c0a52b35966e7d8ef3e9a5f
5,775
py
Python
Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import os import numpy as np import time import sys import copy import rospy import moveit_msgs.msg import geometry_msgs.msg import random import csv from sensor_msgs.msg import JointState from gazebo_msgs.msg import LinkStates from gazebo_msgs.msg import LinkState from std_msgs.msg i...
35.429448
151
0.675152
0
0
0
0
0
0
0
0
398
0.068882
5818909f1789bffb946f4dcc647ac54b08e00f22
10,043
py
Python
pwnlib/elf/corefile.py
jdsecurity/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
5
2018-05-15T13:00:56.000Z
2020-02-09T14:29:00.000Z
pwnlib/elf/corefile.py
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
null
null
null
pwnlib/elf/corefile.py
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
6
2017-09-07T02:31:11.000Z
2021-07-05T16:59:18.000Z
import collections import ctypes import elftools from elftools.common.utils import roundup, struct_parse from elftools.common.py3compat import bytes2str from elftools.construct import CString from ..context import context from ..log import getLogger from .datatypes import * from .elf import ELF from ..tubes.tube impo...
34.631034
103
0.54416
8,594
0.85572
860
0.085632
389
0.038733
0
0
2,851
0.283879
5819716bac9c4b729336569c993ab6648380ee01
2,875
py
Python
kNN.py
skywind3000/ml
d3ac3d6070b66d84e25537915ee634723ddb8c51
[ "MIT" ]
9
2019-03-25T02:14:23.000Z
2020-05-19T20:46:10.000Z
kNN.py
skywind3000/ml
d3ac3d6070b66d84e25537915ee634723ddb8c51
[ "MIT" ]
null
null
null
kNN.py
skywind3000/ml
d3ac3d6070b66d84e25537915ee634723ddb8c51
[ "MIT" ]
2
2020-07-06T04:44:02.000Z
2022-02-17T01:27:55.000Z
from __future__ import print_function import numpy as np import operator import os import sys if sys.version_info[0] >= 3: xrange = range def createDataSet(): group = np.array([[1.0,1.1], [1.0,1.0], [0,0], [0,0.1]]) labels = ['A', 'A', 'B', 'B'] return group, labels # kNN classifier de...
33.823529
85
0.619478
0
0
0
0
0
0
0
0
421
0.146435
5819a9286725e2bb1d31cefd9b8edf4e2e05b208
642
py
Python
simfin/revenue/personal_taxes.py
CREEi-models/simfin
a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb
[ "MIT" ]
1
2021-06-11T15:16:13.000Z
2021-06-11T15:16:13.000Z
simfin/revenue/personal_taxes.py
CREEi-models/simfin
a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb
[ "MIT" ]
1
2021-06-07T14:39:27.000Z
2021-06-07T14:39:27.000Z
simfin/revenue/personal_taxes.py
CREEi-models/simfin
a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb
[ "MIT" ]
1
2021-03-17T03:52:21.000Z
2021-03-17T03:52:21.000Z
from simfin.tools import account class personal_taxes(account): ''' Classe permettant d'intégrer l'impôt des particuliers. ''' def set_align(self,pop,eco): earnings = pop.multiply(eco['emp']*eco['earn_c']+eco['taxinc'],fill_value=0.0) value = earnings.multiply(eco['personal_taxes'],fi...
33.789474
95
0.65109
609
0.945652
0
0
0
0
0
0
146
0.226708
5819cc4c01f213155dbdad2c086e2c95b1ccd432
16,094
py
Python
pandaserver/brokerage/PandaSiteIDs.py
rybkine/panda-server
30fdeaa658a38fe2049849446c300c1e1f5b5231
[ "Apache-2.0" ]
1
2019-08-30T13:47:51.000Z
2019-08-30T13:47:51.000Z
pandaserver/brokerage/PandaSiteIDs.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
pandaserver/brokerage/PandaSiteIDs.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
# !!!!!!! This file is OBSOLETE. Its content has been absorbed into pilotController.py in the autopilot repository. # !!!!!!! Questions to Torre Wenaus. PandaSiteIDs = { 'AGLT2' : {'nickname':'AGLT2-condor','status':'OK'}, 'ALBERTA-LCG2' : {'nickname':'ALBERTA-LCG2-lcgce01-atlas-lcgpb...
80.874372
115
0.541258
0
0
0
0
0
0
0
0
11,140
0.692183
581c0ca0e2bb4ab7335e22da97be7ac35a4e0e71
513
py
Python
tools/scenario-player/scenario_player/exceptions.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
8
2019-06-12T14:50:06.000Z
2022-02-15T16:20:07.000Z
tools/scenario-player/scenario_player/exceptions.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
141
2019-06-18T13:04:08.000Z
2021-11-23T22:00:32.000Z
tools/scenario-player/scenario_player/exceptions.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
17
2019-05-21T18:09:05.000Z
2020-10-29T13:01:01.000Z
class ScenarioError(Exception): pass class ScenarioTxError(ScenarioError): pass class TokenRegistrationError(ScenarioTxError): pass class ChannelError(ScenarioError): pass class TransferFailed(ScenarioError): pass class NodesUnreachableError(ScenarioError): pass class RESTAPIError(Sc...
13.153846
48
0.769981
485
0.945419
0
0
0
0
0
0
0
0
581d47d6e3101d07297475a1a84d27b2898647b8
1,002
py
Python
explain.py
jcsalterego/gh-contest
033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b
[ "BSD-3-Clause" ]
1
2015-11-05T02:50:57.000Z
2015-11-05T02:50:57.000Z
explain.py
jcsalterego/gh-contest
033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b
[ "BSD-3-Clause" ]
null
null
null
explain.py
jcsalterego/gh-contest
033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from pprint import pprint from matchmaker.database import * import sys def main(argv): if len(argv) == 1: return line = argv[1] if line[0] in '+-': line = line[1:] user, repos = line.split(":") user = int(user) repos = [int(r) for r in repos.split(",")] ...
22.266667
58
0.505988
0
0
0
0
0
0
0
0
159
0.158683
581e242497be1d7d21237861371ea688ae66e1e5
3,862
py
Python
qiskit/pulse/commands/command.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2019-06-28T19:58:42.000Z
2019-07-26T05:04:02.000Z
qiskit/pulse/commands/command.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
3
2018-11-13T17:33:37.000Z
2018-12-03T09:35:00.000Z
qiskit/pulse/commands/command.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2017-12-03T15:48:14.000Z
2018-03-11T13:08:03.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
31.398374
98
0.599689
3,124
0.808907
0
0
1,841
0.476696
0
0
1,662
0.430347
581f418d3f23d0acfebe881f3102cd64dfbdffef
6,654
py
Python
data_loader/data_loaders.py
brendanwallison/birds
b70c01b8c953dfa172c65a51f7bdf100e47853d3
[ "MIT" ]
null
null
null
data_loader/data_loaders.py
brendanwallison/birds
b70c01b8c953dfa172c65a51f7bdf100e47853d3
[ "MIT" ]
null
null
null
data_loader/data_loaders.py
brendanwallison/birds
b70c01b8c953dfa172c65a51f7bdf100e47853d3
[ "MIT" ]
null
null
null
from torchvision import datasets, transforms from torchvision.transforms import functional as TF from base import BaseDataLoader from six.moves import urllib from parse_config import ConfigParser # downloads import requests import json from collections import Counter import os import errno import csv import numpy as ...
37.382022
172
0.622483
6,048
0.908927
0
0
0
0
0
0
1,173
0.176285
5820628189dcbe4c683064fd6478349ee7f02524
5,855
py
Python
stockscanner/model/portfolio/portfolio.py
adityazagade/StockScanner
4aecf886a8858757e4720b68d0af5ed94f4d371a
[ "Apache-2.0" ]
null
null
null
stockscanner/model/portfolio/portfolio.py
adityazagade/StockScanner
4aecf886a8858757e4720b68d0af5ed94f4d371a
[ "Apache-2.0" ]
null
null
null
stockscanner/model/portfolio/portfolio.py
adityazagade/StockScanner
4aecf886a8858757e4720b68d0af5ed94f4d371a
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import List from stockscanner.model.asset.asset_type import AssetType from stockscanner.model.exceptions.exceptions import AssetNotFoundException from stockscanner.model.asset.asset import Asset from stockscanner.model.asset.cash import Cash from stockscanner.model.asset.debt impo...
37.056962
113
0.640649
5,413
0.924509
0
0
0
0
0
0
640
0.109308
5820f326461279dab8c970a64d716534511d2f87
2,478
py
Python
python/zdl/error_logger/error_logger/url_rules/report.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
python/zdl/error_logger/error_logger/url_rules/report.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
1
2016-09-15T07:06:15.000Z
2016-09-15T07:06:15.000Z
python/zdl/error_logger/error_logger/url_rules/report.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2017 import json import time from error_logger.url_rules import _base_url_rule # from error_logger.net import sms_notification, email_notification from error_logger.utils import generic class Report(_base_url_rule.BaseUrlRule): __url__ = '/report' __methods__ = ['POST...
36.441176
84
0.506053
2,249
0.907587
0
0
0
0
0
0
642
0.25908
58230301eafe03e15cb587a17b91ac8b8de815f2
246
py
Python
cli/commands/update.py
gamesbrainiac/cli
bba7285607a8644911f720d1ceb1404ab502bf00
[ "Apache-2.0" ]
null
null
null
cli/commands/update.py
gamesbrainiac/cli
bba7285607a8644911f720d1ceb1404ab502bf00
[ "Apache-2.0" ]
null
null
null
cli/commands/update.py
gamesbrainiac/cli
bba7285607a8644911f720d1ceb1404ab502bf00
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import click from .. import cli @cli.cli.command(hidden=True) def update(): """ Look for new version updates to CLI """ # TODO create update command click.echo('Sorry, command not programmed yet.')
16.4
52
0.630081
0
0
0
0
185
0.752033
0
0
138
0.560976
5823914afc52a344ae37dba70fad832cd069531a
2,397
py
Python
test/test_sl/test_model/test_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
test/test_sl/test_model/test_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
test/test_sl/test_model/test_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
import unittest import numpy as np import pandas as pd import mlsurvey as mls class TestData(unittest.TestCase): def test_to_dict_dict_should_be_set(self): """ :test : mlsurvey.model.Data.to_dict() :condition : x,y, y_pred data are filled. :main_result : the dictionary generated...
35.776119
93
0.570296
2,314
0.965373
0
0
0
0
0
0
776
0.323738
582469a40acf21b2f0921b0060688c700c098a03
1,126
py
Python
baidu_verify_response.py
CodingDogzxg/Verifycode_ocr
6f1bdac2137993695cb4591afd1b47931680b204
[ "MIT" ]
null
null
null
baidu_verify_response.py
CodingDogzxg/Verifycode_ocr
6f1bdac2137993695cb4591afd1b47931680b204
[ "MIT" ]
null
null
null
baidu_verify_response.py
CodingDogzxg/Verifycode_ocr
6f1bdac2137993695cb4591afd1b47931680b204
[ "MIT" ]
null
null
null
# encoding:utf-8 import requests import base64 import time ''' 通用文字识别 ''' request_url = "https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic" access_token = '' # 百度AI的token access 详情请去看文档 request_url = request_url + "?access_token=" + access_token headers = {'content-type': 'application/x-www-form-urlencoded'} f...
35.1875
98
0.619005
0
0
0
0
0
0
0
0
416
0.348993
5824ba4bea2f64074dbcd56d9e462c95a3407e0f
11,478
py
Python
nets/efficientdet_training.py
BikesSaver/efficientdet-pytorch
c1e02484733cf2080ecb2ee57c184038a77a09e8
[ "MIT" ]
1
2020-09-17T00:51:38.000Z
2020-09-17T00:51:38.000Z
nets/efficientdet_training.py
BikesSaver/efficientdet-pytorch
c1e02484733cf2080ecb2ee57c184038a77a09e8
[ "MIT" ]
null
null
null
nets/efficientdet_training.py
BikesSaver/efficientdet-pytorch
c1e02484733cf2080ecb2ee57c184038a77a09e8
[ "MIT" ]
null
null
null
from random import shuffle import numpy as np import torch import torch.nn as nn import math import torch.nn.functional as F import cv2 from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from PIL import Image from .RepulsionLoss.my_repulsion_loss import repulsion def preprocess_input(image): image /= 255 ...
37.756579
141
0.560202
8,712
0.748454
1,010
0.08677
0
0
0
0
690
0.059278
58252e686b16a8b93824251a6782b7d24afd2761
267
py
Python
project/wsgi.py
devluci/django-rest-base-boilerplate
0cf512e00aca66ebf9908351527d701cd421ccd4
[ "MIT" ]
null
null
null
project/wsgi.py
devluci/django-rest-base-boilerplate
0cf512e00aca66ebf9908351527d701cd421ccd4
[ "MIT" ]
null
null
null
project/wsgi.py
devluci/django-rest-base-boilerplate
0cf512e00aca66ebf9908351527d701cd421ccd4
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application from rest_base.utils import dotenv os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') dotenv.load(os.path.join(os.path.dirname(__file__), '../.env')) application = get_wsgi_application()
26.7
67
0.797753
0
0
0
0
0
0
0
0
51
0.191011
5825efbd85281c5ef1426be58d4c0871b10dcdf9
3,445
py
Python
tests/test_coco_dataset.py
petersiemen/CVND---Image-Captioning-Project
53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06
[ "MIT" ]
null
null
null
tests/test_coco_dataset.py
petersiemen/CVND---Image-Captioning-Project
53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06
[ "MIT" ]
null
null
null
tests/test_coco_dataset.py
petersiemen/CVND---Image-Captioning-Project
53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06
[ "MIT" ]
null
null
null
from .context import CoCoDataset import os from torchvision import transforms import torch.utils.data as data from src.data_loader import get_loader from context import COCO_SMALL from context import clean_sentence def test_coco_dataset(): transform_train = transforms.Compose([ transforms.Resize(256), # ...
39.147727
93
0.608128
0
0
0
0
0
0
0
0
753
0.218578
5828ffc478a57b5d3a54d1d5409d86dcb72100d1
5,019
py
Python
test/retro-fuse-test.py
jaylogue/retro-fuse
b300865c1aa4c38930adea66de364f182c73b3b5
[ "Apache-2.0" ]
28
2021-02-23T06:00:16.000Z
2022-02-28T13:38:48.000Z
test/retro-fuse-test.py
jaylogue/retro-fuse
b300865c1aa4c38930adea66de364f182c73b3b5
[ "Apache-2.0" ]
3
2021-09-22T12:37:59.000Z
2022-02-01T00:33:25.000Z
test/retro-fuse-test.py
jaylogue/retro-fuse
b300865c1aa4c38930adea66de364f182c73b3b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Jay Logue # # 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 la...
38.312977
139
0.695557
1,667
0.332138
0
0
0
0
0
0
1,606
0.319984
582a2d15de4e22e6a4241b45670672383e57c857
387
py
Python
docker/app.py
dramasamy/kubernetes_training
a5f48d540b7b6e9a79b5ab60f62a13a792f1b0e5
[ "Apache-2.0" ]
1
2022-03-22T22:31:32.000Z
2022-03-22T22:31:32.000Z
docker/app.py
dramasamy/training
af7b9352b56c10aaa957062f24f1302a7a4c5797
[ "Apache-2.0" ]
null
null
null
docker/app.py
dramasamy/training
af7b9352b56c10aaa957062f24f1302a7a4c5797
[ "Apache-2.0" ]
null
null
null
#! /bin/python from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return "Hello World! - v1" @app.route('/<name>') def hello_name(name): return "Hello {}! - v1".format(name) @app.route('/audio') def audio(): return "Audio - v1" @app.route('/video') def video(): return "Vi...
13.821429
40
0.596899
0
0
0
0
257
0.664083
0
0
120
0.310078
582b2e616da4b6c095b0fcc22d4f757b4b8fddc7
4,374
py
Python
creme/cluster/k_means.py
tweakyllama/creme
6bb8e34789947a943e7e6a8a1af1341e4c1de144
[ "BSD-3-Clause" ]
null
null
null
creme/cluster/k_means.py
tweakyllama/creme
6bb8e34789947a943e7e6a8a1af1341e4c1de144
[ "BSD-3-Clause" ]
null
null
null
creme/cluster/k_means.py
tweakyllama/creme
6bb8e34789947a943e7e6a8a1af1341e4c1de144
[ "BSD-3-Clause" ]
2
2021-06-20T09:29:38.000Z
2021-06-23T07:47:21.000Z
import collections import numpy as np from sklearn import utils from .. import base __all__ = ['KMeans'] def euclidean_distance(a, b): return sum((a.get(k, 0) - b.get(k, 0)) ** 2 for k in set([*a.keys(), *b.keys()])) class KMeans(base.Clusterer): """Incremental k-means. The most common way to imple...
37.384615
123
0.633973
4,144
0.947417
0
0
238
0.054412
0
0
2,907
0.664609
582ee3ae3eed760c8ee30d3cb820c5796139122b
42,165
py
Python
fasttrips/TAZ.py
pedrocamargo/fast-trips
a2549936b2707b00d6c21b4e6ae4be8fefd0aa46
[ "Apache-2.0" ]
3
2017-11-03T00:18:23.000Z
2020-11-30T18:54:46.000Z
fasttrips/TAZ.py
pedrocamargo/fast-trips
a2549936b2707b00d6c21b4e6ae4be8fefd0aa46
[ "Apache-2.0" ]
null
null
null
fasttrips/TAZ.py
pedrocamargo/fast-trips
a2549936b2707b00d6c21b4e6ae4be8fefd0aa46
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from __future__ import division from builtins import str from builtins import object __copyright__ = "Copyright 2015 Contributing Entities" __license__ = """ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
57.681259
157
0.628958
41,181
0.976663
0
0
0
0
0
0
13,236
0.31391
58309191f39ca5397068401c1360251a2a11c48a
2,686
py
Python
tests/test_stardist2D.py
ianbgroves/stardist
6524c27d01c625dabfd75b1443dd46ccb1cb3dcd
[ "BSD-3-Clause" ]
1
2021-02-05T11:59:39.000Z
2021-02-05T11:59:39.000Z
tests/test_stardist2D.py
ianbgroves/stardist
6524c27d01c625dabfd75b1443dd46ccb1cb3dcd
[ "BSD-3-Clause" ]
1
2020-06-17T09:06:29.000Z
2020-06-17T09:06:29.000Z
tests/test_stardist2D.py
ianbgroves/stardist
6524c27d01c625dabfd75b1443dd46ccb1cb3dcd
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from stardist import star_dist, relabel_image_stardist import pytest from utils import random_image, real_image2d, check_similar, circle_image @pytest.mark.parametrize('img', (real_image2d()[1], random_image((128, 123)))) @pytest.mark.parametrize('n_rays', (4, 16, 32)) def test_types(img, n_rays): ...
36.794521
95
0.655249
0
0
0
0
2,403
0.894639
0
0
360
0.134028
583228f93313973cc02c96e9d032138aeb10b053
26,395
py
Python
all_call/infer_new.py
jbudis/dante
90177c33825d5f9ce3fba5463092fbcf20b72fe2
[ "Apache-2.0" ]
4
2018-09-28T14:50:47.000Z
2021-08-09T12:46:12.000Z
all_call/infer_new.py
jbudis/dante
90177c33825d5f9ce3fba5463092fbcf20b72fe2
[ "Apache-2.0" ]
6
2019-01-02T13:08:31.000Z
2021-03-25T21:45:40.000Z
all_call/infer_new.py
jbudis/dante
90177c33825d5f9ce3fba5463092fbcf20b72fe2
[ "Apache-2.0" ]
1
2017-12-12T10:38:26.000Z
2017-12-12T10:38:26.000Z
import math import functools from scipy.stats import binom import numpy as np import itertools import sys import matplotlib.pyplot as plt import matplotlib.patheffects as PathEffects from copy import copy def combine_distribs(deletes, inserts): """ Combine insert and delete models/distributions :param de...
44.21273
183
0.633567
22,778
0.862966
0
0
1,607
0.060883
0
0
11,052
0.418716
583374a576c3edb6be71e460848c9177cb1eee6a
18,398
py
Python
createbag.py
axfelix/moveit
a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2
[ "Unlicense" ]
null
null
null
createbag.py
axfelix/moveit
a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2
[ "Unlicense" ]
null
null
null
createbag.py
axfelix/moveit
a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2
[ "Unlicense" ]
null
null
null
""" GUI tool to create a Bag from a filesystem folder. """ import sys import os import shutil import bagit import platform import random import string import re from time import strftime import subprocess from paramiko import SSHClient from paramiko import AutoAddPolicy from paramiko import AuthenticationException fro...
35.655039
236
0.72709
5,085
0.276389
0
0
0
0
0
0
4,813
0.261605
583491d9c92a8b53e562e95c5e8cebcf67dc3f00
10,937
py
Python
code/python-neo/neo/core/basesignal.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
code/python-neo/neo/core/basesignal.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
code/python-neo/neo/core/basesignal.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module implements :class:`BaseSignal`, an array of signals. This is a parent class from which all signal objects inherit: :class:`AnalogSignal` and :class:`IrregularlySampledSignal` :class:`BaseSignal` inherits from :class:`quantities.Quantity`, which inherits from :class:`numpy.ar...
37.713793
98
0.633172
9,932
0.90811
0
0
847
0.077444
0
0
4,932
0.450946
5835a4f4779f435b367bd40c05663242713c67ad
3,038
py
Python
Morocco model/scripts/cropland_processing.py
KTH-dESA/FAO
74459217a9e8ad8107b1d3a96fd52eebd93daebd
[ "MIT" ]
3
2020-09-17T11:12:52.000Z
2021-03-31T09:24:02.000Z
Morocco model/scripts/cropland_processing.py
KTH-dESA/FAO
74459217a9e8ad8107b1d3a96fd52eebd93daebd
[ "MIT" ]
101
2019-10-02T10:16:28.000Z
2021-06-05T06:42:55.000Z
Morocco model/scripts/cropland_processing.py
KTH-dESA/FAO
74459217a9e8ad8107b1d3a96fd52eebd93daebd
[ "MIT" ]
2
2020-02-23T13:28:00.000Z
2021-03-31T10:02:46.000Z
import sys sys.path.append("..") #this is to add the avobe folder to the package directory import geopandas as gpd import pandas as pd import numpy as np import os from nexustool.gis_tools import download_data, create_time_data, get_area_share, get_zonal_stats from nexustool.weap_tools import reproject_raster, sample_r...
40.506667
195
0.711982
0
0
0
0
0
0
0
0
1,053
0.346382
58394701554d3a507c68ce7bd347905779a7cb27
891
py
Python
dl_data_validation_toolset/framework/report_gen/group.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
1
2017-08-24T00:46:47.000Z
2017-08-24T00:46:47.000Z
dl_data_validation_toolset/framework/report_gen/group.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
177
2017-04-10T23:03:27.000Z
2022-03-28T22:07:54.000Z
dl_data_validation_toolset/framework/report_gen/group.py
HEP-DL/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
null
null
null
from .file import FileGenerator from ..report.group import GroupReport import logging import asyncio import os class GroupGenerator(object): logger = logging.getLogger("ddvt.rep_gen.grp") def __init__(self, group): self.meta = group async def generate(self, parent): self.logger.info("Generating Group ...
31.821429
75
0.725028
777
0.872054
0
0
0
0
643
0.721661
84
0.094276
583a1302a3f7562a97c1476d70bc500c24d60c4f
174
py
Python
glanceclient/common/exceptions.py
citrix-openstack-build/python-glanceclient
32d9c42816b608220ae5692e573142dab6534604
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/glanceclient/common/exceptions.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/glanceclient/common/exceptions.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# This is here for compatability purposes. Once all known OpenStack clients # are updated to use glanceclient.exc, this file should be removed from glanceclient.exc import *
43.5
75
0.804598
0
0
0
0
0
0
0
0
141
0.810345
583a2eef001a72cf9b9737ee6ef5ed10dc5f494d
1,458
py
Python
api/scpca_portal/views/filter_options.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
null
null
null
api/scpca_portal/views/filter_options.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
85
2021-07-27T14:33:55.000Z
2022-03-28T20:18:41.000Z
api/scpca_portal/views/filter_options.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
null
null
null
from django.http import JsonResponse from rest_framework import status, viewsets from scpca_portal.models import Project class FilterOptionsViewSet(viewsets.ViewSet): def list(self, request): dicts = ( Project.objects.order_by() .values("diagnoses", "seq_units", "technologies", "m...
33.136364
75
0.577503
1,333
0.914266
0
0
0
0
0
0
208
0.142661
583a4439342b3be3a1f5a61fbbd79630bf4f80cd
409
py
Python
cords/selectionstrategies/SL/__init__.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
null
null
null
cords/selectionstrategies/SL/__init__.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
null
null
null
cords/selectionstrategies/SL/__init__.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
1
2022-03-16T05:55:12.000Z
2022-03-16T05:55:12.000Z
from .craigstrategy import CRAIGStrategy from .dataselectionstrategy import DataSelectionStrategy from .glisterstrategy import GLISTERStrategy from .randomstrategy import RandomStrategy from .submodularselectionstrategy import SubmodularSelectionStrategy from .gradmatchstrategy import GradMatchStrategy from .fixedweigh...
51.125
68
0.904645
0
0
0
0
0
0
0
0
0
0
583a53eef1dad89d42938f5028c87aba4efb30bb
10,917
py
Python
pycost/rocch.py
tfawcett/pycost
69f96866295dba937a23f36c8f24f2f6acdaccbd
[ "BSD-3-Clause" ]
1
2019-10-05T10:37:47.000Z
2019-10-05T10:37:47.000Z
pycost/rocch.py
tfawcett/pycost
69f96866295dba937a23f36c8f24f2f6acdaccbd
[ "BSD-3-Clause" ]
null
null
null
pycost/rocch.py
tfawcett/pycost
69f96866295dba937a23f36c8f24f2f6acdaccbd
[ "BSD-3-Clause" ]
1
2020-06-12T17:13:14.000Z
2020-06-12T17:13:14.000Z
""" Metrics to calculate and manipulate the ROC Convex Hull on a classification task given scores. """ # Author: Tom Fawcett <[email protected]> from collections import namedtuple from math import sqrt from typing import List, Dict, Tuple, Union # DESCRIPTION: # # This program computes the convex hull of a set...
33.798762
100
0.612989
6,358
0.582394
0
0
406
0.03719
0
0
6,839
0.626454
583a8bbe4d63a96ce53555ed1fbf8f8d31b49bdb
846
py
Python
all_raspi_code_backup/DriveTesting.py
lord-pradhan/SnowBot
82a0b3439dc203bf27725e293d6e56bcad720c09
[ "MIT" ]
2
2020-05-31T07:37:59.000Z
2021-03-24T13:43:39.000Z
all_raspi_code_backup/DriveTesting.py
lord-pradhan/SnowBot
82a0b3439dc203bf27725e293d6e56bcad720c09
[ "MIT" ]
null
null
null
all_raspi_code_backup/DriveTesting.py
lord-pradhan/SnowBot
82a0b3439dc203bf27725e293d6e56bcad720c09
[ "MIT" ]
1
2019-12-13T19:21:12.000Z
2019-12-13T19:21:12.000Z
""" Program: DriveTesting.py Revised On: 12/01/2019 """ ### Library Imports from DriveArduino import DriveArduino import numpy as np from time import sleep from sys import exit from signal import signal, SIGINT ### ### CTRL + C Signal Handler & Resource Cleanup def signal_handler(sig, frame): """Handler for...
16.92
46
0.652482
0
0
0
0
0
0
0
0
312
0.368794
583ba4ab4b346b94532e02cbbc5e159874800f72
363
py
Python
src/sentry/utils/strings.py
rogerhu/sentry
ee2b190e92003abe0f538b2df5b686e425df1200
[ "BSD-3-Clause" ]
1
2015-12-13T18:27:54.000Z
2015-12-13T18:27:54.000Z
src/sentry/utils/strings.py
simmetria/sentry
9731f26adb44847d1c883cca108afc0755cf21cc
[ "BSD-3-Clause" ]
null
null
null
src/sentry/utils/strings.py
simmetria/sentry
9731f26adb44847d1c883cca108afc0755cf21cc
[ "BSD-3-Clause" ]
null
null
null
def truncatechars(value, arg): """ Truncates a string after a certain number of chars. Argument: Number of chars to truncate after. """ try: length = int(arg) except ValueError: # Invalid literal for int(). return value # Fail silently. if len(value) > length: retu...
25.928571
55
0.606061
0
0
0
0
0
0
0
0
166
0.4573
583d59db015ae71e12d80d6cb5e3e2aba7e8e79c
817
py
Python
setup.py
Ozencb/cli-pto
445e5133340adb25dcf5d14c4203643b7a8741c2
[ "MIT" ]
6
2020-04-30T18:32:38.000Z
2020-07-28T15:37:04.000Z
setup.py
Ozencb/cli-pto
445e5133340adb25dcf5d14c4203643b7a8741c2
[ "MIT" ]
1
2020-04-30T18:34:08.000Z
2020-05-01T10:16:49.000Z
setup.py
Ozencb/cli-pto
445e5133340adb25dcf5d14c4203643b7a8741c2
[ "MIT" ]
null
null
null
import os import re from setuptools import find_packages, setup def get_version(package): path = os.path.join(os.path.dirname(__file__), package, "__init__.py") with open(path, "rb") as f: init_py = f.read().decode("utf-8") return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) ...
31.423077
85
0.641371
0
0
0
0
0
0
0
0
318
0.388278
583f4f6dd761e12a8aa4ad8d387f0bdd2b82f1de
9,545
py
Python
users/models.py
scoremaza/church_alive_backend
2ee7260aea51ec39972588dc4a346aa152356aa3
[ "MIT" ]
null
null
null
users/models.py
scoremaza/church_alive_backend
2ee7260aea51ec39972588dc4a346aa152356aa3
[ "MIT" ]
null
null
null
users/models.py
scoremaza/church_alive_backend
2ee7260aea51ec39972588dc4a346aa152356aa3
[ "MIT" ]
null
null
null
import os import uuid from django.db import models from django.contrib.auth.models import User from django.db.models.base import Model from django.db.models.enums import Choices, ChoicesMeta from django.db.models.fields.related import ForeignKey from django.utils.deconstruct import deconstructible @deconstructible cl...
32.355932
103
0.683394
9,095
0.952855
0
0
502
0.052593
0
0
3,676
0.385123
5840120e03a13bb96c98c4c82966a3349be1a938
1,012
py
Python
format_errors.py
drupchen/correct-ewts
0a23db216b2fb78a8c73476ca55cebf23a7d2706
[ "Apache-2.0" ]
null
null
null
format_errors.py
drupchen/correct-ewts
0a23db216b2fb78a8c73476ca55cebf23a7d2706
[ "Apache-2.0" ]
null
null
null
format_errors.py
drupchen/correct-ewts
0a23db216b2fb78a8c73476ca55cebf23a7d2706
[ "Apache-2.0" ]
null
null
null
import re from collections import defaultdict with open('input/errors-ewts.csv') as f: raw = f.read() #raw = raw.replace('`not expected', '` not expected') lines = raw.split('\n') data = [] for line in lines: columns = re.split(r'(?:^"|","|",,"|"$)', line) msgs = [a for a in columns[3].split(',') i...
27.351351
60
0.614625
0
0
0
0
0
0
0
0
214
0.211462
5840ef989a734ba50cfa0c0f408fab21378c995e
344
py
Python
exercise-django/user/views.py
theseana/goodfellas
9ad9d9759d193cd64ec71876b1dab155bb9ba2c7
[ "MIT" ]
null
null
null
exercise-django/user/views.py
theseana/goodfellas
9ad9d9759d193cd64ec71876b1dab155bb9ba2c7
[ "MIT" ]
null
null
null
exercise-django/user/views.py
theseana/goodfellas
9ad9d9759d193cd64ec71876b1dab155bb9ba2c7
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from user.forms import UserForm def register(request): form = UserForm() if request.method == 'POST': form = UserForm(request.POST) if form.is_valid(): form.save() return render(request, 'user/registeration/register...
24.571429
78
0.659884
0
0
0
0
0
0
0
0
71
0.206395
5841ecc637b36ee324105b2737f2b6315d8d0459
3,609
py
Python
shark/example/env/catch_ball_env.py
7starsea/shark
5030f576da6f5998728d80170480e68a3debfe79
[ "MIT" ]
null
null
null
shark/example/env/catch_ball_env.py
7starsea/shark
5030f576da6f5998728d80170480e68a3debfe79
[ "MIT" ]
null
null
null
shark/example/env/catch_ball_env.py
7starsea/shark
5030f576da6f5998728d80170480e68a3debfe79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import PIL import torch import torchvision.transforms as TF from types import SimpleNamespace from gym import spaces, Env from .SharkExampleEnv import CatchBallSimulate # internal_screen_h, internal_screen_w = 80, 140 class CatchBallEnvBase(Env): metadata = {'render.m...
31.112069
107
0.600443
3,339
0.925187
0
0
0
0
0
0
213
0.059019
5842b3ae714ec5029aefbd5f4f522395e8920892
4,652
py
Python
examples/launch_tor_with_simplehttpd.py
kneufeld/txtorcon
fbe2fc70cae00aa6228a2920ef048b282872dbab
[ "MIT" ]
null
null
null
examples/launch_tor_with_simplehttpd.py
kneufeld/txtorcon
fbe2fc70cae00aa6228a2920ef048b282872dbab
[ "MIT" ]
null
null
null
examples/launch_tor_with_simplehttpd.py
kneufeld/txtorcon
fbe2fc70cae00aa6228a2920ef048b282872dbab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Create a new tor node and add a simple http server to it, serving a given directory over http. The server is single-threaded and very limited. There are two arguments that can be passed via the commandline: -p\tThe internet-facing port the hidden service should list...
33.710145
96
0.635211
0
0
0
0
0
0
0
0
1,986
0.426913
5842cd8ea1a4359a03a5653c005a52f4e2eeeb68
5,123
py
Python
homeroom/wsgi.py
openshift-labs/workshop-homeroom
a0f0c144eef679e35a93201d11973329be9924fb
[ "Apache-2.0" ]
14
2019-09-28T20:42:29.000Z
2021-11-23T13:12:42.000Z
homeroom/wsgi.py
openshift-homeroom/workshop-homeroom
a0f0c144eef679e35a93201d11973329be9924fb
[ "Apache-2.0" ]
1
2019-10-15T02:55:57.000Z
2019-10-15T02:55:57.000Z
homeroom/wsgi.py
openshift-homeroom/workshop-homeroom
a0f0c144eef679e35a93201d11973329be9924fb
[ "Apache-2.0" ]
3
2020-02-11T16:55:59.000Z
2021-08-13T13:16:27.000Z
import os import json import threading import time import yaml from flask import Flask from flask import render_template from kubernetes.client.rest import ApiException from kubernetes.client.configuration import Configuration from kubernetes.config.incluster_config import load_incluster_config from kubernetes.clien...
31.819876
87
0.622877
0
0
153
0.029865
412
0.080422
0
0
986
0.192465
584381c8993e76aeeaae4fc35eb8cf9d4869915b
3,417
py
Python
rever/__init__.py
limecrayon/rever
0446ad9707fb1e81b3101625959fd16bdaac1853
[ "MIT" ]
2
2018-02-16T08:31:48.000Z
2018-11-19T02:31:07.000Z
rever/__init__.py
limecrayon/rever
0446ad9707fb1e81b3101625959fd16bdaac1853
[ "MIT" ]
null
null
null
rever/__init__.py
limecrayon/rever
0446ad9707fb1e81b3101625959fd16bdaac1853
[ "MIT" ]
null
null
null
import functools import time __all__ = ('ReachedMaxRetries', 'rever') class ReachedMaxRetries(Exception): def __init__(self, func): Exception.__init__(self, "Function {} raised exception due to max number of retries performed".format(func)) self.func = func def rever(**rever_kwargs): """ ...
30.238938
116
0.550776
207
0.060579
0
0
1,595
0.466784
0
0
859
0.25139
5844f2ad1f289327e37c42bac510107e36f8f9d5
25,811
py
Python
gui(12102018).py
hanhydro/T2H
f4922ce721eb450c7d91370f180e6c860e9ec6be
[ "MIT" ]
null
null
null
gui(12102018).py
hanhydro/T2H
f4922ce721eb450c7d91370f180e6c860e9ec6be
[ "MIT" ]
null
null
null
gui(12102018).py
hanhydro/T2H
f4922ce721eb450c7d91370f180e6c860e9ec6be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! import os from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets imp...
47.975836
109
0.618728
24,704
0.957111
0
0
0
0
0
0
3,175
0.12301
584603df6f6456851f5001f52a65f8c0ba217511
226
py
Python
py/loadpage.py
katiehuang1221/onl_ds5_project_2
dc9243d6bdc0c1952a761b2ed3e91a8548202b42
[ "MIT" ]
null
null
null
py/loadpage.py
katiehuang1221/onl_ds5_project_2
dc9243d6bdc0c1952a761b2ed3e91a8548202b42
[ "MIT" ]
1
2021-01-20T02:34:07.000Z
2021-01-20T02:34:07.000Z
py/loadpage.py
katiehuang1221/onl_ds5_project_2
dc9243d6bdc0c1952a761b2ed3e91a8548202b42
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from IPython.core.display import display, HTML def get_soup(url): response = requests.get(url) page = response.text soup = BeautifulSoup(page, "lxml") return soup
22.6
46
0.734513
0
0
0
0
0
0
0
0
6
0.026549
58483a9eb35db037bda84433b79608b84ed9f2c4
1,912
py
Python
hard-gists/5409581/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5409581/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5409581/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
''' rename_selected_relation_box.py Written by Alex Forsythe (awforsythe.com) When executed, attempts to locate any selected box within any relation constraint in the scene. If a selected relation box is found, prompts the user to enter a new name for that box. Allows relation boxes to be given more descriptive names....
30.83871
103
0.670502
0
0
0
0
0
0
0
0
1,048
0.548117
584861b23601a5bd9f5d5e6bce09eb691a44f1c2
4,010
py
Python
osu_scene_switcher.py
FunOrange/osu-scene-switcher
471fc654fe4a222abaf4fbcf062e8302dd52bb18
[ "MIT" ]
4
2021-05-22T20:56:36.000Z
2022-03-02T00:19:45.000Z
osu_scene_switcher.py
FunOrange/obs-osu-noise-suppression-switcher
471fc654fe4a222abaf4fbcf062e8302dd52bb18
[ "MIT" ]
null
null
null
osu_scene_switcher.py
FunOrange/obs-osu-noise-suppression-switcher
471fc654fe4a222abaf4fbcf062e8302dd52bb18
[ "MIT" ]
1
2021-01-29T18:28:04.000Z
2021-01-29T18:28:04.000Z
import os import time import obspython as obs initial_load = False status_file = '' idle_scene = '' playing_scene = '' def undb(db): return pow(10, db/20) def script_description(): return 'Automatically switch scenes upon entering osu! gameplay.\n\n' \ 'See github page for setup instructions.\n\n...
33.416667
122
0.721696
0
0
0
0
0
0
0
0
1,123
0.28005
5849254d7b154fa7533602568ea01800f7eb9d68
3,386
py
Python
donkey_gym/envs/donkey_env.py
mint26/donkey_gym
4d0302da5818d56f92247b9dbf389994961f487e
[ "MIT" ]
5
2018-11-01T18:48:03.000Z
2021-03-11T14:36:22.000Z
donkey_gym/envs/donkey_env.py
mint26/donkey_gym
4d0302da5818d56f92247b9dbf389994961f487e
[ "MIT" ]
null
null
null
donkey_gym/envs/donkey_env.py
mint26/donkey_gym
4d0302da5818d56f92247b9dbf389994961f487e
[ "MIT" ]
7
2018-10-13T19:48:14.000Z
2021-10-31T15:10:52.000Z
''' file: donkey_env.py author: Tawn Kramer date: 2018-08-31 ''' import os from threading import Thread import numpy as np import gym from gym import error, spaces, utils from gym.utils import seeding from donkey_gym.envs.donkey_sim import DonkeyUnitySimContoller from donkey_gym.envs.donkey_proc import Do...
27.528455
99
0.60189
2,975
0.878618
0
0
0
0
0
0
723
0.213526
5849a619f304aa85187564eba6cb5913a8f7354f
2,403
py
Python
tests/unit/backend/corpora/common/entities/datasets/test_revision.py
chanzuckerberg/dcp-prototype
24d2323ba5ae1482395da35ea11c42708e3a52ce
[ "MIT" ]
2
2020-02-07T18:12:12.000Z
2020-02-11T14:59:03.000Z
tests/unit/backend/corpora/common/entities/datasets/test_revision.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
173
2020-01-29T17:48:02.000Z
2020-03-20T02:52:58.000Z
tests/unit/backend/corpora/common/entities/datasets/test_revision.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
1
2020-03-20T17:06:54.000Z
2020-03-20T17:06:54.000Z
from tests.unit.backend.corpora.common.entities.datasets import TestDataset class TestDatasetRevision(TestDataset): def test__create_dataset_revision(self): dataset = self.generate_dataset_with_s3_resources(self.session, published=True) rev_dataset = dataset.create_revision("test_collection_id_rev...
52.23913
117
0.665418
2,324
0.967124
0
0
0
0
0
0
492
0.204744
584a11d14b64edf45f4d6711e52adb48c3e934c3
3,966
py
Python
main.py
parzibyte/login-flask
165e10980f6a34c7587a53578ed361506eb37475
[ "MIT" ]
2
2021-09-21T16:37:41.000Z
2021-12-09T17:38:18.000Z
main.py
parzibyte/login-flask
165e10980f6a34c7587a53578ed361506eb37475
[ "MIT" ]
null
null
null
main.py
parzibyte/login-flask
165e10980f6a34c7587a53578ed361506eb37475
[ "MIT" ]
1
2021-08-16T01:36:58.000Z
2021-08-16T01:36:58.000Z
""" ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| ...
36.054545
137
0.594049
0
0
0
0
1,470
0.368144
0
0
3,086
0.772852
584b5746e6a8959beb85942376ecc9e56d8276af
707
py
Python
events/kawacon2016/migrations/0003_auto_20160127_1924.py
jlaunonen/turska
fc6ec4e0ae50a823e931152ce8835098b96f5966
[ "CC-BY-3.0" ]
null
null
null
events/kawacon2016/migrations/0003_auto_20160127_1924.py
jlaunonen/turska
fc6ec4e0ae50a823e931152ce8835098b96f5966
[ "CC-BY-3.0" ]
null
null
null
events/kawacon2016/migrations/0003_auto_20160127_1924.py
jlaunonen/turska
fc6ec4e0ae50a823e931152ce8835098b96f5966
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-27 17:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kawacon2016', '0002_auto_20160127_1922'), ] operations = [ migrations.AlterF...
33.666667
291
0.700141
550
0.777935
0
0
0
0
0
0
342
0.483734