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
c5cf24e47e050b5dda249a8edab2d8988fc41928
954
py
Python
setup.py
walwe/autolabel
712400d38f80ea496bab5a8a963ffef6ebf8daa9
[ "MIT" ]
1
2020-04-04T17:20:38.000Z
2020-04-04T17:20:38.000Z
setup.py
walwe/autolabel
712400d38f80ea496bab5a8a963ffef6ebf8daa9
[ "MIT" ]
null
null
null
setup.py
walwe/autolabel
712400d38f80ea496bab5a8a963ffef6ebf8daa9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pkg_resources import get_distribution from setuptools import setup, find_packages with open("README.md", "r") as f: long_description = f.read() version = get_distribution("autolabel").version setup( packages=find_packages(), install_requires=[ 'click', 'more-ite...
25.783784
75
0.638365
0
0
0
0
0
0
0
0
414
0.433962
c5cf38192c894cd50c8e95291a53bb4a08d2bc9f
334
py
Python
desafio_005_antecessor_e_sucessor.py
VagnerGit/PythonCursoEmVideo
3e80e12fbf21f5be08c554d77fa9073dc0a3145f
[ "MIT" ]
null
null
null
desafio_005_antecessor_e_sucessor.py
VagnerGit/PythonCursoEmVideo
3e80e12fbf21f5be08c554d77fa9073dc0a3145f
[ "MIT" ]
null
null
null
desafio_005_antecessor_e_sucessor.py
VagnerGit/PythonCursoEmVideo
3e80e12fbf21f5be08c554d77fa9073dc0a3145f
[ "MIT" ]
null
null
null
""" Exercício Python 5: Faça um programa que leia um número Inteiro e mostre na tela o seu sucessor e seu antecessor. """ n = int(input('digite um numero inteiro ')) #ant = n-1 #post = n+1 #print('O antecessor de {} é {} e posterior é {}' .format(n, ant, post)) print('{} o antercessor é {} o sucessor é {}'.format(n, (...
27.833333
72
0.643713
0
0
0
0
0
0
0
0
287
0.841642
c5d26f124d7803a5d0483030310d5f3218904ee3
20
py
Python
checkov/version.py
jmeredith16/checkov
91dc9e970609c7ce53e325b8b70fec788dc12c96
[ "Apache-2.0" ]
null
null
null
checkov/version.py
jmeredith16/checkov
91dc9e970609c7ce53e325b8b70fec788dc12c96
[ "Apache-2.0" ]
null
null
null
checkov/version.py
jmeredith16/checkov
91dc9e970609c7ce53e325b8b70fec788dc12c96
[ "Apache-2.0" ]
null
null
null
version = '2.0.706'
10
19
0.6
0
0
0
0
0
0
0
0
9
0.45
c5d2baa0bf3dd4ddad9c92f38934e077ced0d319
4,506
py
Python
test/meshes.py
jtpils/optimesh
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
[ "MIT" ]
1
2019-11-20T16:50:34.000Z
2019-11-20T16:50:34.000Z
test/meshes.py
jtpils/optimesh
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
[ "MIT" ]
null
null
null
test/meshes.py
jtpils/optimesh
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
[ "MIT" ]
null
null
null
import os.path import numpy from scipy.spatial import Delaunay import meshio from meshplex import MeshTri def simple0(): # # 3___________2 # |\_ 2 _/| # | \_ _/ | # | 3 \4/ 1 | # | _/ \_ | # | _/ \_ | # |/ 0 \| # 0-----------1 # X = numpy.a...
25.896552
93
0.461607
0
0
0
0
0
0
0
0
1,177
0.261207
c5d42cfeef185ddf6696d8600cebabde18dc035e
25,439
py
Python
odym/modules/test/DSM_test_known_results.py
DominikWiedenhofer/ODYM
89aca3706b34df02d745f5d76cffc9f50dc2c3e7
[ "MIT" ]
3
2019-04-01T09:35:29.000Z
2021-01-03T18:51:55.000Z
odym/modules/test/DSM_test_known_results.py
DominikWiedenhofer/ODYM
89aca3706b34df02d745f5d76cffc9f50dc2c3e7
[ "MIT" ]
null
null
null
odym/modules/test/DSM_test_known_results.py
DominikWiedenhofer/ODYM
89aca3706b34df02d745f5d76cffc9f50dc2c3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 11 16:19:39 2014 """ import os import sys import imp # Put location of sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..\\..')) + '\\modules') # add ODYM module directory to system path #NOTE: Hidden variable __file__ must be know to script ...
59.576112
182
0.626243
7,370
0.289713
0
0
0
0
0
0
2,908
0.114313
c5d4fff93384a7b4f91ff88b98ec480412a4e7d8
753
py
Python
tox_docker/tests/util.py
tkdchen/tox-docker
8d450ecf28a50f39d1a573c876756bddb9d4ae99
[ "BSD-3-Clause" ]
null
null
null
tox_docker/tests/util.py
tkdchen/tox-docker
8d450ecf28a50f39d1a573c876756bddb9d4ae99
[ "BSD-3-Clause" ]
null
null
null
tox_docker/tests/util.py
tkdchen/tox-docker
8d450ecf28a50f39d1a573c876756bddb9d4ae99
[ "BSD-3-Clause" ]
null
null
null
import os from docker.models.containers import Container import docker import pytest from tox_docker.config import runas_name def find_container(instance_name: str) -> Container: # TODO: refactor this as a pytest fixture # this is running in a child-process of the tox instance which # spawned the conta...
31.375
76
0.718459
0
0
0
0
0
0
0
0
273
0.36255
c5d59ef45ad87f614428ee780a00c2a59f6106c2
4,024
py
Python
equipment/viewsets.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
equipment/viewsets.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
equipment/viewsets.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import PermissionDenied from rest_framework import viewsets, mixins from rest_framework.decorators import action from rest_framework.response import Response from emstrack.mixins import UpdateModelUpdateByMixin, BasePermissionMixin from equipment.models import EquipmentItem, EquipmentHolde...
32.715447
105
0.635189
3,523
0.875497
0
0
437
0.108598
0
0
885
0.21993
c5d6d1a64a423018703822d97798dfe358235126
1,081
py
Python
HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms from ..modules.hltBTagPFPuppiDeepCSV0p865DoubleEta2p4_cfi import * from ..modules.hltDoublePFPuppiJets128Eta2p4MaxDeta1p6_cfi import * from ..modules.hltDoublePFPuppiJets128MaxEta2p4_cfi import * from ..modules.l1tDoublePFPuppiJet112offMaxEta2p4_cfi import * from ..modules.l1tD...
41.576923
68
0.848289
0
0
0
0
0
0
0
0
0
0
c5d80087a7524e830b02b5b4d7549aa8f65625d8
891
py
Python
convert_m2.py
Alex92rus/ErrorDetectionProject
e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8
[ "Apache-2.0" ]
1
2018-11-30T23:50:27.000Z
2018-11-30T23:50:27.000Z
convert_m2.py
Alex92rus/ErrorDetectionProject
e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8
[ "Apache-2.0" ]
null
null
null
convert_m2.py
Alex92rus/ErrorDetectionProject
e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8
[ "Apache-2.0" ]
null
null
null
def extract_to_m2(filename, annot_triples): """ Extracts error detection annotations in m2 file format Args: filename: the output m2 file annot_triples: the annotations of form (sentence, indexes, selections) """ with open(filename, 'w+') as m2_file: for triple in annot_tripl...
38.73913
81
0.47587
0
0
0
0
0
0
0
0
258
0.289562
c5d90016a90a331eb727c3cf478e5adf99c5cfde
8,986
py
Python
Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py
VincentWei/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
6
2017-05-31T01:46:45.000Z
2018-06-12T10:53:30.000Z
Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
null
null
null
Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-17T06:02:42.000Z
2018-09-19T10:08:38.000Z
# Copyright (c) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
38.076271
135
0.639217
7,325
0.815157
0
0
0
0
0
0
3,823
0.42544
c5d9c1458570637eeb6f3871c9d53fd91009b27f
8,710
py
Python
tark/transcript/models.py
Ensembl/tark
8e08a00a6f53f7fbe5954ba70e337d0d1709df52
[ "Apache-2.0" ]
5
2019-06-21T22:11:46.000Z
2022-01-17T06:58:56.000Z
tark/transcript/models.py
Ensembl/tark
8e08a00a6f53f7fbe5954ba70e337d0d1709df52
[ "Apache-2.0" ]
12
2020-07-28T09:26:09.000Z
2022-03-25T18:08:11.000Z
tark/transcript/models.py
Ensembl/tark
8e08a00a6f53f7fbe5954ba70e337d0d1709df52
[ "Apache-2.0" ]
6
2020-01-08T11:09:59.000Z
2021-07-27T04:14:32.000Z
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
54.099379
120
0.651091
7,741
0.888749
0
0
5,201
0.59713
0
0
5,139
0.590011
c5da0613cb69180ef2e512685b8a5cf90b29b513
2,086
py
Python
scripts/facebook_account_scraping.py
nvanderperren/social-media-archiving
54522e08298b062af8cbe1156127cdebfeede30f
[ "MIT" ]
null
null
null
scripts/facebook_account_scraping.py
nvanderperren/social-media-archiving
54522e08298b062af8cbe1156127cdebfeede30f
[ "MIT" ]
null
null
null
scripts/facebook_account_scraping.py
nvanderperren/social-media-archiving
54522e08298b062af8cbe1156127cdebfeede30f
[ "MIT" ]
null
null
null
#!usr/bin/env python3 # -*- coding: utf-8 -*- # # @author Nastasia Vanderperren # # get posts of a fb page, group or account # returns a json lines files with a line for each post # from argparse import ArgumentParser from datetime import date, datetime from facebook_scraper import get_posts from json import dumps, JS...
38.62963
144
0.685523
183
0.087728
0
0
0
0
0
0
539
0.258389
c5da227c6c2f1600816a6c1c38324a392ed24d2b
548
py
Python
ked/gui/ked.py
idealtitude/ked
fb4135bffb065cf176a2450af53ab8e3408fdaa9
[ "MIT" ]
null
null
null
ked/gui/ked.py
idealtitude/ked
fb4135bffb065cf176a2450af53ab8e3408fdaa9
[ "MIT" ]
null
null
null
ked/gui/ked.py
idealtitude/ked
fb4135bffb065cf176a2450af53ab8e3408fdaa9
[ "MIT" ]
null
null
null
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk as gtk class Ked: def __init__(self, app_path, ufile=None): glade_layout = f'{app_path}/data/ked_layout.glade' self.builder = gtk.Builder() self.builder.add_from_file(glade_layout) win = self.builder.get_obje...
21.92
58
0.644161
381
0.695255
0
0
0
0
0
0
85
0.155109
c5dac43a188b9363ed3359b80117310c93a48c15
375
py
Python
patchy/__init__.py
peternara/graph-based-image-classification-gcn
60e93b47691e960b7f06f7a5dc11191efe881178
[ "MIT" ]
44
2017-02-26T16:52:48.000Z
2022-02-17T18:50:02.000Z
patchy/__init__.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
2
2018-11-14T05:11:25.000Z
2020-06-23T16:24:41.000Z
patchy/__init__.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
13
2018-04-26T07:46:35.000Z
2022-02-28T15:38:53.000Z
from .patchy import PatchySan from .helper.labeling import labelings,\ scanline,\ betweenness_centrality from .helper.neighborhood_assembly import neighborhood_assemblies,\ neighborhoods_weights_to_root,\ ...
37.5
73
0.538667
0
0
0
0
0
0
0
0
0
0
c5db8db5817eef82da2ecde3434b6691281fcd17
14,862
py
Python
analysis/202106--uncertainty_vs_flux/compare_images.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
analysis/202106--uncertainty_vs_flux/compare_images.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
analysis/202106--uncertainty_vs_flux/compare_images.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Compare an image file and its associated uncertainty image. # # Rob Siverd # Created: 2021-06-03 # Last modified: 2021-06-03 #-------------------------------------------------------------------------- #*****************************...
32.379085
78
0.603485
241
0.016216
0
0
0
0
0
0
11,592
0.779976
c5dbec713bc194a6916e548695dd8b86bc98a04d
3,317
py
Python
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
2
2017-01-23T22:09:23.000Z
2018-07-16T04:37:41.000Z
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
null
null
null
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
1
2016-08-16T23:45:29.000Z
2016-08-16T23:45:29.000Z
import logging import os try: import simplejson as json except ImportError: import json from flask import Flask, request, make_response, Response from cStringIO import StringIO import zipfile def get_mocked_server(binary_directory): mocked_cb_server = Flask('cb') files = os.listdir(binary_directory...
34.195876
109
0.601447
0
0
0
0
2,312
0.697015
0
0
469
0.141393
c5dde82f6e5df42892863767c657cfd603744b98
1,048
py
Python
neural_networks/softmax_loss.py
Yao-Shao/Maching-Learning-only-with-Numpy
8e86f96d8be278b97b16d6f0235cd86dca97db29
[ "MIT" ]
1
2019-09-25T06:36:26.000Z
2019-09-25T06:36:26.000Z
hw3/hw3_code/neural_networks/softmax_loss.py
Junlin-Yin/Data-Mining-Homework
043f836e3dd30f32b5b06f40af61ae55b9287fbc
[ "MIT" ]
null
null
null
hw3/hw3_code/neural_networks/softmax_loss.py
Junlin-Yin/Data-Mining-Homework
043f836e3dd30f32b5b06f40af61ae55b9287fbc
[ "MIT" ]
null
null
null
import numpy as np def softmax_loss(in_, label): ''' The softmax loss computing process inputs: in_ : the output of previous layer, shape: [number of images, number of kinds of labels] label : the ground true of these images, shape: [1, number of images] outputs ...
34.933333
102
0.60687
0
0
0
0
0
0
0
0
473
0.451336
c5de930741f4d8551e11905355564ca78fd72a62
320
py
Python
alertmanager_telegram/config.py
medeirosjrm/alertmanager-telegram
ff9701936ec766b7992399fd741d8a8a4dab3957
[ "Apache-2.0" ]
5
2020-05-20T11:37:37.000Z
2021-11-23T09:04:14.000Z
alertmanager_telegram/config.py
medeirosjrm/alertmanager-telegram
ff9701936ec766b7992399fd741d8a8a4dab3957
[ "Apache-2.0" ]
null
null
null
alertmanager_telegram/config.py
medeirosjrm/alertmanager-telegram
ff9701936ec766b7992399fd741d8a8a4dab3957
[ "Apache-2.0" ]
3
2021-01-31T17:57:08.000Z
2021-11-24T13:33:31.000Z
import os TELEGRAM_CHAT_ID = os.environ.get("TELEGRAM_CHAT_ID") if not TELEGRAM_CHAT_ID: raise ValueError("No TELEGRAM_CHAT_ID set for application") TELEGRAM_TOKEN = os.environ.get("TELEGRAM_TOKEN") if not TELEGRAM_TOKEN: raise ValueError("No TELEGRAM_TOKEN set for application") TEMPLATES_AUTO_RELOAD = True
26.666667
63
0.796875
0
0
0
0
0
0
0
0
114
0.35625
c5df387f75013ac455f39f6b741fd2c666ef73e0
9,935
py
Python
data-processing/tests/test_parse_tex.py
rishamsidhu/scholar-reader
fa97cd5fb57305ff96ac060e225d1c331da31654
[ "Apache-2.0" ]
null
null
null
data-processing/tests/test_parse_tex.py
rishamsidhu/scholar-reader
fa97cd5fb57305ff96ac060e225d1c331da31654
[ "Apache-2.0" ]
null
null
null
data-processing/tests/test_parse_tex.py
rishamsidhu/scholar-reader
fa97cd5fb57305ff96ac060e225d1c331da31654
[ "Apache-2.0" ]
null
null
null
from common.parse_tex import ( BeginDocumentExtractor, BibitemExtractor, DocumentclassExtractor, EquationExtractor, MacroExtractor, PlaintextExtractor, ) from common.types import MacroDefinition from entities.sentences.extractor import SentenceExtractor def test_extract_plaintext_with_newlines...
31.046875
101
0.650025
0
0
0
0
0
0
0
0
2,233
0.224761
c5e00eaee5bf1dc4f3ef2430a8612b17e78c2729
282
py
Python
appexemple/__main__.py
yoannmos/Inupdater-AppExemple
ac62430a8ca02505eb73afaff698500b7f46ea31
[ "MIT" ]
null
null
null
appexemple/__main__.py
yoannmos/Inupdater-AppExemple
ac62430a8ca02505eb73afaff698500b7f46ea31
[ "MIT" ]
null
null
null
appexemple/__main__.py
yoannmos/Inupdater-AppExemple
ac62430a8ca02505eb73afaff698500b7f46ea31
[ "MIT" ]
null
null
null
import sys from pathlib import Path from appexemple import __version__ print( f""" Hello you are in App Exemple version {__version__}\n sys.argv[-1] : {sys.argv[-1]}\n Path().cwd() : {Path().cwd()}\n Path(__file__) : {Path(__file__)},\n """ ) input("Press [Enter] to quit.")
17.625
52
0.663121
0
0
0
0
0
0
0
0
186
0.659574
c5e3c6d2f8a1234b127fb72e14337b67358d7125
1,793
py
Python
{{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py
ikhomutov/cookiecutter-shmango
ec5a6ff94256650552e11992662a617b503418e4
[ "MIT" ]
null
null
null
{{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py
ikhomutov/cookiecutter-shmango
ec5a6ff94256650552e11992662a617b503418e4
[ "MIT" ]
83
2020-04-21T04:12:47.000Z
2021-09-03T01:47:27.000Z
{{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py
ikhomutov/cookiecutter-shmango
ec5a6ff94256650552e11992662a617b503418e4
[ "MIT" ]
null
null
null
import pytest pytestmark = pytest.mark.django_db class TestUserManagers: def test_create_user(self, django_user_model, faker): email = faker.email() password = faker.password() user = django_user_model.objects.create_user(email, password) assert user.email == email assert...
33.830189
78
0.662019
1,740
0.970441
0
0
0
0
0
0
2
0.001115
c5e54fc9fa5630a02a90b1f99c8ec0d552707d95
6,021
py
Python
sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
5
2015-04-16T08:36:17.000Z
2017-05-12T17:20:12.000Z
sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
null
null
null
sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
4
2015-03-19T14:39:51.000Z
2019-01-23T08:22:55.000Z
from testbase import PersistTest import sqlalchemy.topological as topological import unittest, sys, os from sqlalchemy import util # TODO: need assertion conditions in this suite class DependencySorter(topological.QueueDependencySorter):pass class DependencySortTest(PersistTest): def assert_sort(s...
31.036082
235
0.51038
5,736
0.952666
0
0
0
0
0
0
948
0.157449
c5e5cecdf9201e00eb336ee9b2d39e6ed8ce5136
10,854
py
Python
tensorcircuit/backends.py
refraction-ray/tensorcircuit
666154f4dbdb25164c0e778a96ee56ac22323a6c
[ "MIT" ]
21
2020-04-19T23:29:11.000Z
2022-03-12T12:12:57.000Z
tensorcircuit/backends.py
refraction-ray/tensorcircuit
666154f4dbdb25164c0e778a96ee56ac22323a6c
[ "MIT" ]
3
2020-10-19T12:18:44.000Z
2022-02-10T01:24:46.000Z
tensorcircuit/backends.py
refraction-ray/tensorcircuit
666154f4dbdb25164c0e778a96ee56ac22323a6c
[ "MIT" ]
7
2020-07-15T18:08:00.000Z
2021-12-30T08:17:13.000Z
""" backend magic inherited from tensornetwork """ from typing import Union, Text, Any, Optional, Callable, Sequence from functools import partial from scipy.linalg import expm import numpy as np import warnings from tensornetwork.backends.tensorflow import tensorflow_backend from tensornetwork.backends.numpy import ...
32.4
127
0.586788
9,656
0.889626
0
0
0
0
0
0
2,465
0.227105
c5e73f85a5d535b9725cdc5daf85b03ea7c65ebb
904
py
Python
venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py
wayshon/pylogin
12ecfddc3ceaf552a42f62608027924541c63254
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py
wayshon/pylogin
12ecfddc3ceaf552a42f62608027924541c63254
[ "Apache-2.0" ]
7
2019-12-04T23:08:08.000Z
2022-02-10T12:47:38.000Z
venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py
wayshon/pylogin
12ecfddc3ceaf552a42f62608027924541c63254
[ "Apache-2.0" ]
null
null
null
from webdriver_manager.driver import EdgeDriver, IEDriver from webdriver_manager.manager import DriverManager from webdriver_manager import utils class EdgeDriverManager(DriverManager): def __init__(self, version=None, os_type=utils.os_name()): super(EdgeDriverManager, self).__init__() ...
34.769231
73
0.683628
752
0.831858
0
0
0
0
0
0
34
0.037611
c5e808c5b0a9a0e6ef94c188d135b5046b4111b6
4,459
py
Python
examples/plot_replay_experiment.py
dataiku-research/cardinal
052ea2273e1e6a389e257e3775873620378fe908
[ "Apache-2.0" ]
17
2021-02-13T16:29:16.000Z
2022-03-08T03:16:12.000Z
examples/plot_replay_experiment.py
SoftwareImpacts/SIMPAC-2021-174
052ea2273e1e6a389e257e3775873620378fe908
[ "Apache-2.0" ]
5
2021-02-15T14:09:41.000Z
2021-03-23T23:31:25.000Z
examples/plot_replay_experiment.py
SoftwareImpacts/SIMPAC-2021-174
052ea2273e1e6a389e257e3775873620378fe908
[ "Apache-2.0" ]
1
2021-12-24T17:41:09.000Z
2021-12-24T17:41:09.000Z
""" Replay and experiment ===================== In a previous example, we have shown how experiments can be resumed. Cardinal also allows for experiments to be replayed, meaning that one can save intermediate data to be able to run analysis on the experiment without having to retrain all the models. Let us now see how...
36.54918
117
0.685804
0
0
0
0
0
0
0
0
1,932
0.433281
c5e914518d0f8750fb4b83382f0d2bacb4dbb4ed
17,585
py
Python
cryspy/B_parent_classes/cl_3_data.py
eandklahn/cryspy
a664cee1e1ffd5f23e54295a11e479d7d4cda7e5
[ "MIT" ]
null
null
null
cryspy/B_parent_classes/cl_3_data.py
eandklahn/cryspy
a664cee1e1ffd5f23e54295a11e479d7d4cda7e5
[ "MIT" ]
null
null
null
cryspy/B_parent_classes/cl_3_data.py
eandklahn/cryspy
a664cee1e1ffd5f23e54295a11e479d7d4cda7e5
[ "MIT" ]
null
null
null
"""Parent class DataN.""" import os import os.path from warnings import warn from typing import Union, NoReturn from pycifstar import Data, to_data from cryspy.A_functions_base.function_1_markdown import md_to_html from cryspy.A_functions_base.function_1_objects import \ get_functions_of_objet, get_table_html_for_...
31.068905
79
0.511459
17,147
0.975092
0
0
3,173
0.180438
0
0
4,523
0.257208
c5e955f6a5fb02a343d52d2f8212c94c8ad218bb
204
py
Python
vivisect/tests/vivbins.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-12T03:50:06.000Z
2017-11-12T03:50:06.000Z
vivisect/tests/vivbins.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/tests/vivbins.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import unittest def require(f): def skipit(*args, **kwargs): raise unittest.SkipTest('VIVBINS env var...') if os.getenv('VIVBINS') == None: return skipit return f
17
53
0.617647
0
0
0
0
0
0
0
0
29
0.142157
c5e956eebd2928391f5d2ba00f6fd36130e8bbd1
894
py
Python
hackerearth/Algorithms/Restoring trees/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Restoring trees/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Restoring trees/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here n = int(input()) start = list(map(int, inpu...
26.294118
94
0.569351
0
0
0
0
0
0
0
0
274
0.306488
c5ea213be6b9121c63848b236674311dd3d54793
32
py
Python
src/machine_learning/collaborative_filtering/__init__.py
przemek1990/machine-learning
d278b867757cf9223e079ff77cdd8e1b4a9b3f36
[ "Apache-2.0" ]
null
null
null
src/machine_learning/collaborative_filtering/__init__.py
przemek1990/machine-learning
d278b867757cf9223e079ff77cdd8e1b4a9b3f36
[ "Apache-2.0" ]
null
null
null
src/machine_learning/collaborative_filtering/__init__.py
przemek1990/machine-learning
d278b867757cf9223e079ff77cdd8e1b4a9b3f36
[ "Apache-2.0" ]
null
null
null
__author__ = 'przemyslaw.pioro'
16
31
0.78125
0
0
0
0
0
0
0
0
18
0.5625
c5eb3429d56063aad6eca63d3f25a6fb4eaf84b5
1,674
py
Python
Sorting/Sorts.py
niranjan09/DataStructures_Algorithms
df2801f7ea48a39a55a6d79fd66ad200a2de0145
[ "MIT" ]
null
null
null
Sorting/Sorts.py
niranjan09/DataStructures_Algorithms
df2801f7ea48a39a55a6d79fd66ad200a2de0145
[ "MIT" ]
null
null
null
Sorting/Sorts.py
niranjan09/DataStructures_Algorithms
df2801f7ea48a39a55a6d79fd66ad200a2de0145
[ "MIT" ]
null
null
null
import time def swap(arr, i , j): temp = arr[i] arr[i] = arr[j] arr[j] = temp def selection_sort(arr): for i in range(len(arr)): for j in range(i+1, len(arr)): if(arr[i] > arr[j]): swap(arr, i, j) return arr def bubble_sort(arr): swapped = True while(swapped == True): swapped = False for i in ran...
19.465116
53
0.599164
0
0
0
0
0
0
0
0
13
0.007766
c5ed957119e3f69933dbfb4c1879651fe6bb40ff
65
py
Python
__init__.py
Moviesbazar/Pdiskuploader_bot
fcefd0e674843c12e797d464dd4f520f98a36632
[ "Apache-2.0" ]
1
2021-10-30T19:24:19.000Z
2021-10-30T19:24:19.000Z
__init__.py
Moviesbazar/Pdiskuploader_bot
fcefd0e674843c12e797d464dd4f520f98a36632
[ "Apache-2.0" ]
null
null
null
__init__.py
Moviesbazar/Pdiskuploader_bot
fcefd0e674843c12e797d464dd4f520f98a36632
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Source Code of Pdiskuploaderbot """
9.285714
31
0.676923
0
0
0
0
0
0
0
0
61
0.938462
c5ef4f6813348dc5856623519c73597cbe031935
329
py
Python
Beam/TextAnalysis/setup.py
Balaviknesh/YelpHelp
4e928b0f13a8f5a3baf916c293302266c3d54dda
[ "Apache-2.0" ]
null
null
null
Beam/TextAnalysis/setup.py
Balaviknesh/YelpHelp
4e928b0f13a8f5a3baf916c293302266c3d54dda
[ "Apache-2.0" ]
null
null
null
Beam/TextAnalysis/setup.py
Balaviknesh/YelpHelp
4e928b0f13a8f5a3baf916c293302266c3d54dda
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from setuptools.command.install import install as _install class Install(_install): def run(self): _install.do_egg_install(self) import nltk nltk.download("popular") setup( cmdclass={'install': Install}, install_requires=['nltk'], setup_requires=[...
20.5625
58
0.68693
134
0.407295
0
0
0
0
0
0
30
0.091185
c5ef76f9a1c232b338813b5ca11e5c92d815d45d
947
py
Python
code/test3/1.py
Bc-Gg/Algorithms
0c35fd4e002ff4b0ad6ebb243df3df278e366595
[ "MIT" ]
8
2022-03-13T10:25:33.000Z
2022-03-30T08:26:00.000Z
code/test3/1.py
Bc-Gg/Algorithms
0c35fd4e002ff4b0ad6ebb243df3df278e366595
[ "MIT" ]
null
null
null
code/test3/1.py
Bc-Gg/Algorithms
0c35fd4e002ff4b0ad6ebb243df3df278e366595
[ "MIT" ]
2
2022-03-20T12:09:52.000Z
2022-03-21T03:43:01.000Z
''' author : bcgg 可惜时间爆了 其实写的很好 中间很多可以改进 ''' ans = 0 def merge(arr, l, m, r): global ans n1 = m - l + 1 n2 = r - m L = [0] * (n1) R = [0] * (n2) for i in range(0, n1): L[i] = arr[l + i] for j in range(0, n2): R[j] = arr[m + 1 + j] i = 0 j = 0 k = l while i < n...
18.568627
44
0.36642
0
0
0
0
0
0
0
0
97
0.098278
c5ef8d7c1493136be617512f99564772f9d404af
1,354
py
Python
Python/sir_cost.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
26
2018-08-08T20:40:21.000Z
2022-01-13T19:46:40.000Z
Python/sir_cost.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
24
2020-03-25T19:35:43.000Z
2022-02-10T11:46:50.000Z
Python/sir_cost.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
9
2017-07-22T04:23:15.000Z
2021-03-19T09:42:35.000Z
# cost function for the SIR model for python 2.7 # Marisa Eisenberg ([email protected]) # Yu-Han Kao ([email protected]) -7-9-17 import numpy as np import sir_ode from scipy.stats import poisson from scipy.stats import norm from scipy.integrate import odeint as ode def NLL(params, data, times): #negative log likelihoo...
46.689655
117
0.697194
0
0
0
0
0
0
0
0
956
0.706056
c5efdfd7527a9d610cd0e6cd62680c8957d0b58f
14,512
py
Python
restler/unit_tests/test_basic_functionality_end_to_end.py
Ayudjj/mvp
a0ba706a2156e31cf6053b639b57aa1b9acad442
[ "MIT" ]
1
2020-12-05T14:23:08.000Z
2020-12-05T14:23:08.000Z
restler/unit_tests/test_basic_functionality_end_to_end.py
Ayudjj/mvp
a0ba706a2156e31cf6053b639b57aa1b9acad442
[ "MIT" ]
null
null
null
restler/unit_tests/test_basic_functionality_end_to_end.py
Ayudjj/mvp
a0ba706a2156e31cf6053b639b57aa1b9acad442
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Runs functional tests, which invoke the RESTler engine and check the RESTler output logs for correctness. When new baseline logs are necessary due to known breaking changes in the logic, a run that matches the test should be run manually and...
44.790123
134
0.673512
13,465
0.927853
0
0
0
0
0
0
5,272
0.363286
c5f002e8316318f1277879acd723602d8667b472
623
py
Python
conf_site/api/tests/test_conference.py
pydata/conf_site
9a14459c36a0f2f0f552161c18de734ee87855da
[ "MIT" ]
13
2015-05-22T17:10:22.000Z
2021-07-15T16:45:19.000Z
conf_site/api/tests/test_conference.py
pydata/conf_site
9a14459c36a0f2f0f552161c18de734ee87855da
[ "MIT" ]
758
2015-03-18T13:39:25.000Z
2022-03-31T13:14:09.000Z
conf_site/api/tests/test_conference.py
pydata/conf_site
9a14459c36a0f2f0f552161c18de734ee87855da
[ "MIT" ]
16
2015-03-24T18:53:17.000Z
2020-10-22T21:30:02.000Z
from django.urls import reverse from rest_framework import status from conf_site.api.tests import ConferenceSiteAPITestCase class ConferenceSiteAPIConferenceTestCase(ConferenceSiteAPITestCase): def test_conference_api_anonymous_user(self): response = self.client.get(reverse("conference-detail")) ...
36.647059
74
0.717496
494
0.792937
0
0
0
0
0
0
68
0.109149
c5f1690fb5bdf9e0c170536780d8205e10259b5d
94
py
Python
backend/app/app/crud/__init__.py
luovkle/FastAPI-Note-Taking
317d92e75cbba3a6e633d6cf3d0bed0021412967
[ "MIT" ]
null
null
null
backend/app/app/crud/__init__.py
luovkle/FastAPI-Note-Taking
317d92e75cbba3a6e633d6cf3d0bed0021412967
[ "MIT" ]
null
null
null
backend/app/app/crud/__init__.py
luovkle/FastAPI-Note-Taking
317d92e75cbba3a6e633d6cf3d0bed0021412967
[ "MIT" ]
null
null
null
from .crud_user import crud_user # noqa: F401 from .crud_note import crud_note # noqa: F401
31.333333
46
0.765957
0
0
0
0
0
0
0
0
24
0.255319
c5f1d3547439c81f976d6e6a8b962ce796bdbe68
125
py
Python
fhirbug/constants.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
8
2019-01-06T18:11:20.000Z
2022-02-24T02:06:55.000Z
fhirbug/constants.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
5
2019-01-25T14:15:35.000Z
2021-06-01T23:22:41.000Z
fhirbug/constants.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
3
2020-10-14T23:09:29.000Z
2021-08-09T19:27:31.000Z
# Audit Event Outcomes AUDIT_SUCCESS = "0" AUDIT_MINOR_FAILURE = "4" AUDIT_SERIOUS_FAILURE = "8" AUDIT_MAJOR_FAILURE = "12"
17.857143
27
0.76
0
0
0
0
0
0
0
0
35
0.28
c5f2f4c298f27619335b8d96d680e00a6c2bd3c9
2,653
py
Python
python_materials/web-server-s3.py
C-Lizzo14/CS488S21
7b8e1ab2dfe692aff9c9dd6c283a4ba378cfc1e6
[ "MIT" ]
2
2022-01-25T13:45:30.000Z
2022-02-07T18:21:20.000Z
python_materials/web-server-s3.py
jyuan2pace/CS488OER
38ab9f1d10bf1e36af6eb79574893c83b2e6456f
[ "CC0-1.0" ]
null
null
null
python_materials/web-server-s3.py
jyuan2pace/CS488OER
38ab9f1d10bf1e36af6eb79574893c83b2e6456f
[ "CC0-1.0" ]
2
2022-02-03T22:33:45.000Z
2022-03-03T05:18:50.000Z
# Python3.7+ import socket import json HOST, PORT = '', 1600 def parse_request(text): request_line = text.splitlines()[0] request_line = request_line.rstrip(b'\r\n') requests = request_line.split() params_dict = {} if requests[0] == b'POST': request_body = text.splitlines()[-1] re...
27.635417
92
0.583867
0
0
0
0
0
0
0
0
1,102
0.415379
c5f32783266b0ae2f58b621ca0211597718a479a
323
py
Python
task_queue/management/commands/run_scheduler.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
task_queue/management/commands/run_scheduler.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
task_queue/management/commands/run_scheduler.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
import asyncio from django.core.management.base import BaseCommand from Harvest.utils import get_logger from task_queue.scheduler import QueueScheduler logger = get_logger(__name__) class Command(BaseCommand): help = "Run the queue consumer" def handle(self, *args, **options): QueueScheduler().run...
20.1875
51
0.755418
135
0.417957
0
0
0
0
0
0
24
0.074303
c5f3bfd369153aa479d911c36ea48a47b9a4d56f
485
py
Python
waateax/users/migrations/0004_auto_20200910_1516.py
hendu25/waatea
668707cd14d3336cd74d7043473f7094f5d0db6e
[ "MIT" ]
4
2020-09-10T11:51:48.000Z
2021-08-18T21:25:22.000Z
waateax/users/migrations/0004_auto_20200910_1516.py
hendu25/waatea
668707cd14d3336cd74d7043473f7094f5d0db6e
[ "MIT" ]
22
2020-09-10T11:14:22.000Z
2021-08-24T14:58:58.000Z
waateax/users/migrations/0004_auto_20200910_1516.py
hendu25/waatea
668707cd14d3336cd74d7043473f7094f5d0db6e
[ "MIT" ]
3
2020-09-13T06:37:14.000Z
2021-08-17T13:51:23.000Z
# Generated by Django 3.0.10 on 2020-09-10 13:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_user_mobile_phone'), ] operations = [ migrations.AlterField( model_name='user', name='mobile_phone', ...
24.25
111
0.618557
391
0.806186
0
0
0
0
0
0
122
0.251546
c5f43a8aa085560b1c95a6c088b9ec19d6141f65
2,005
py
Python
examples/example2.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
10
2019-03-15T20:33:02.000Z
2021-12-15T02:05:28.000Z
examples/example2.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
18
2018-06-13T04:10:39.000Z
2022-03-18T08:17:33.000Z
examples/example2.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
5
2018-06-13T02:57:28.000Z
2021-06-08T15:43:15.000Z
import psi4 import resp # Initialize two different conformations of ethanol geometry = """C 0.00000000 0.00000000 0.00000000 C 1.48805540 -0.00728176 0.39653260 O 2.04971655 1.37648153 0.25604810 H 3.06429978 1.37151670 0.52641124 H 1.58679428 -0.33618761 1.43102358 H 2.03441010 -0.68906454 -...
30.378788
79
0.653367
0
0
0
0
0
0
0
0
1,149
0.573067
c5f4f68fa80ed3db7ce10e3d2a40e3db67dcd198
627
py
Python
data_processing/test.py
FMsunyh/keras-retinanet
cb86a987237d3f6bd504004e2b186cf65606c890
[ "Apache-2.0" ]
null
null
null
data_processing/test.py
FMsunyh/keras-retinanet
cb86a987237d3f6bd504004e2b186cf65606c890
[ "Apache-2.0" ]
null
null
null
data_processing/test.py
FMsunyh/keras-retinanet
cb86a987237d3f6bd504004e2b186cf65606c890
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 5/31/2018 9:20 PM # @Author : sunyonghai # @File : test.py # @Software: ZJ_AI from multiprocessing import Pool, Lock, Value import os tests_count = 80 lock = Lock() counter = Value('i', 0) # int type,相当于java里面的原子变量 def run(fn): global tests_count, lock, counter wi...
20.225806
90
0.61244
0
0
0
0
0
0
0
0
306
0.445415
c5f68e1534f103f39e915aa377cb7ad3e18fa265
2,280
py
Python
neurofire/models/hed/fusionhed.py
nasimrahaman/neurofire
4d645be149165da4c8202fe13b3c2360c2832383
[ "MIT" ]
9
2018-01-29T07:30:14.000Z
2022-03-09T04:23:14.000Z
neurofire/models/hed/fusionhed.py
nasimrahaman/neurofire
4d645be149165da4c8202fe13b3c2360c2832383
[ "MIT" ]
1
2017-12-19T14:27:18.000Z
2017-12-19T15:35:59.000Z
neurofire/models/hed/fusionhed.py
nasimrahaman/neurofire
4d645be149165da4c8202fe13b3c2360c2832383
[ "MIT" ]
5
2018-01-27T12:16:37.000Z
2020-01-20T13:14:26.000Z
import torch.nn as nn import torch import torch.nn.functional as F from .hed import HED class FusionHED(nn.Module): def __init__(self, in_channels=3, out_channels=1, dilation=1, conv_type_key='default', block_type_key='default', output_type_key='...
43.846154
97
0.617982
2,189
0.960088
0
0
0
0
0
0
87
0.038158
c5f77d1a3cca856b474207ec3945b97a6cf71f6d
303
py
Python
examples/filter_simple.py
uvm-plaid/dduo-python
368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba
[ "MIT" ]
4
2021-06-13T20:00:34.000Z
2022-01-03T18:17:49.000Z
examples/filter_simple.py
uvm-plaid/dduo-python
368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba
[ "MIT" ]
null
null
null
examples/filter_simple.py
uvm-plaid/dduo-python
368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba
[ "MIT" ]
null
null
null
import sys sys.path.append("../") import duet from duet import pandas as pd epsilon = 1.0 alpha = 10 df = pd.read_csv("test.csv") with duet.RenyiFilter(9,1.0): noisy_count = duet.renyi_gauss(df.shape[0], α = alpha, ε = epsilon) print(f'NoisyCount : {noisy_count}') duet.print_privacy_cost()
18.9375
71
0.693069
0
0
0
0
0
0
0
0
44
0.144262
c5fad6b1fa96e688327b68e8eed1828289790bab
473
py
Python
tartaruga espiral.py
talitadeoa/head-first-code
3f89e5227f0996ed83832c6b848a77a4908e6168
[ "MIT" ]
null
null
null
tartaruga espiral.py
talitadeoa/head-first-code
3f89e5227f0996ed83832c6b848a77a4908e6168
[ "MIT" ]
null
null
null
tartaruga espiral.py
talitadeoa/head-first-code
3f89e5227f0996ed83832c6b848a77a4908e6168
[ "MIT" ]
null
null
null
import turtle tortuguinha = turtle.Turtle() tortuguinha.shape('turtle') tortuguinha.color('red') tortugo = turtle.Turtle() tortugo.shape('turtle') tortugo.color('blue') def faz_quadradin(the_turtle): for i in range(0,4): the_turtle.forward(100) the_turtle.right(90) def faz_espiral(the_turtle): ...
19.708333
33
0.710359
0
0
0
0
0
0
0
0
27
0.057082
c5fbc71da36428911d857cb7dc5361b3f8ead4b6
3,375
py
Python
rechun/dl/multimodelcontext.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
56
2019-07-10T06:02:11.000Z
2021-12-21T08:11:22.000Z
rechun/dl/multimodelcontext.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
4
2019-09-26T08:51:58.000Z
2021-06-08T20:27:53.000Z
rechun/dl/multimodelcontext.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
8
2019-10-21T12:43:08.000Z
2021-12-02T08:14:38.000Z
import torch import common.trainloop.context as ctx import common.trainloop.factory as factory import common.model.management as mgt import common.utils.torchhelper as th class MultiModelTorchTrainContext(ctx.TorchTrainContext): def __init__(self, device_str) -> None: super().__init__(device_str) ...
43.831169
118
0.651259
3,200
0.948148
0
0
0
0
0
0
336
0.099556
c5fc1fd40bd0f609dfec322f4db82f5ebd97d46e
704
py
Python
ALGOs/Perceptron/logic_gates.py
iamharshit/ML_works
b0bb53c5a60312719d15e25b727c54cbab65b4af
[ "MIT" ]
1
2016-11-29T04:28:09.000Z
2016-11-29T04:28:09.000Z
ALGOs/Perceptron/logic_gates.py
iamharshit/ML_works
b0bb53c5a60312719d15e25b727c54cbab65b4af
[ "MIT" ]
null
null
null
ALGOs/Perceptron/logic_gates.py
iamharshit/ML_works
b0bb53c5a60312719d15e25b727c54cbab65b4af
[ "MIT" ]
null
null
null
#The input to the gate can only be 0 or 1 ''' Single Layer Perceptrons ''' def AND_perceptron(x1,x2): w1, w2, t = 1, 1, 2 return w1*x1 + w2*x2 >=t def OR_perceptron(x1,x2): w1, w2, t = 1, 1, 1 return w1*x1 + w2*x2 >=t def AND_perceptron(x1): w1, t = -1, 0 return w1*x1 >=t ''' Multi Layer Per...
20.705882
58
0.59233
0
0
0
0
0
0
0
0
166
0.235795
c5fce436240d3d6bd829247715a353298fbb9868
19,916
py
Python
Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py
cgeorgitsis/ai4netmon
36c4c1695fd980705d3e3f76385cda14baf7f397
[ "MIT" ]
null
null
null
Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py
cgeorgitsis/ai4netmon
36c4c1695fd980705d3e3f76385cda14baf7f397
[ "MIT" ]
null
null
null
Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py
cgeorgitsis/ai4netmon
36c4c1695fd980705d3e3f76385cda14baf7f397
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import random, os, json from collections import defaultdict from matplotlib import pyplot as plt from sklearn.cluster import KMeans, SpectralClustering from scipy.spatial.distance import pdist, squareform from scipy.sparse import csgraph from numpy import linalg as LA from sklearn...
49.29703
165
0.693814
0
0
0
0
0
0
0
0
10,475
0.525827
c5fda76eda5749a6451e2494fedda422ecadeadf
2,184
py
Python
kingbird/tests/unit/objects/test_base.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
kingbird/tests/unit/objects/test_base.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
kingbird/tests/unit/objects/test_base.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Ericsson AB. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.803279
75
0.668498
1,426
0.65293
0
0
844
0.386447
0
0
680
0.311355
c5fe482fddeda64ee08226bdb2b25edc133236ff
380
py
Python
src/tests/tests.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
1
2021-05-09T04:51:28.000Z
2021-05-09T04:51:28.000Z
src/tests/tests.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
src/tests/tests.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
import sys import os # Add this directory to python path (contains nosetest_config) sys.path.append(os.path.dirname(os.path.realpath(__file__))) from biothings.tests import BiothingTest from biothings.tests.settings import NosetestSettings ns = NosetestSettings() class {% nosetest_settings_class %}(BiothingTest): ...
22.352941
62
0.776316
111
0.292105
0
0
0
0
0
0
88
0.231579
c5fe65c9539705123af8748c4e0aa1720b1d7fad
824
py
Python
hardware/camera/drivers.py
smartenv/smartcan
dcd214acd26fdc0af940460d42cb0f4f75a40829
[ "Apache-2.0" ]
null
null
null
hardware/camera/drivers.py
smartenv/smartcan
dcd214acd26fdc0af940460d42cb0f4f75a40829
[ "Apache-2.0" ]
1
2019-09-02T20:21:27.000Z
2019-09-02T22:58:38.000Z
hardware/camera/drivers.py
smartenv/smartcan
dcd214acd26fdc0af940460d42cb0f4f75a40829
[ "Apache-2.0" ]
null
null
null
import tempfile from abc import ABC, abstractmethod from time import sleep, time from hardware.camera import Photo, Resolution class CameraDriver(ABC): @abstractmethod def capture(self) -> Photo: pass class PiCameraDriver(CameraDriver): def __init__(self, resolution=Resolution(1024, 768), iso...
23.542857
76
0.668689
690
0.837379
0
0
60
0.072816
0
0
26
0.031553
c5ffc77661b72f4eb6b28eeafca66a6e20e1570d
6,897
py
Python
src/sms_verifier/settings.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
null
null
null
src/sms_verifier/settings.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
10
2020-02-12T02:51:31.000Z
2022-02-10T13:33:43.000Z
src/sms_verifier/settings.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
1
2022-02-22T18:56:22.000Z
2022-02-22T18:56:22.000Z
""" Django settings for sms_verifier project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
27.810484
91
0.660577
0
0
0
0
0
0
0
0
4,239
0.614615
6801dc75931ad303482faa362dd4a4100e4ec4dd
5,149
py
Python
test/test_termCombinationLib.py
ozanozisik/orsum
9d6b36c83d6cd7297fe68214fe89faa9281a7792
[ "MIT" ]
1
2021-04-02T15:07:35.000Z
2021-04-02T15:07:35.000Z
test/test_termCombinationLib.py
ozanozisik/orsum
9d6b36c83d6cd7297fe68214fe89faa9281a7792
[ "MIT" ]
null
null
null
test/test_termCombinationLib.py
ozanozisik/orsum
9d6b36c83d6cd7297fe68214fe89faa9281a7792
[ "MIT" ]
null
null
null
from termCombinationLib import initializeTermSummary, applyRule, recurringTermsUnified, supertermRepresentsLessSignificantSubterm, subtermRepresentsLessSignificantSimilarSuperterm, subtermRepresentsSupertermWithLessSignificanceAndLessRepresentativePower, commonSupertermInListRepresentsSubtermsWithLessRepresentativePowe...
35.510345
365
0.649446
0
0
0
0
0
0
0
0
1,614
0.313459
6803550947b81cdf9de81ccf68c02ddd50ac556a
48
py
Python
bindings/pydeck/pydeck/exceptions/__init__.py
marsupialmarcos/deck.gl
c9867c1db87e492253865353f68c985019c7c613
[ "MIT" ]
null
null
null
bindings/pydeck/pydeck/exceptions/__init__.py
marsupialmarcos/deck.gl
c9867c1db87e492253865353f68c985019c7c613
[ "MIT" ]
null
null
null
bindings/pydeck/pydeck/exceptions/__init__.py
marsupialmarcos/deck.gl
c9867c1db87e492253865353f68c985019c7c613
[ "MIT" ]
null
null
null
from .exceptions import PydeckException # noqa
24
47
0.8125
0
0
0
0
0
0
0
0
6
0.125
680818c94a5d8918261d5f2d00ab826a279d384e
1,096
py
Python
notebooks/tpot_exported_pipeline.py
rsouza/FGV_Intro_DS
5c4da0a9476654516199708cb729231a21d99686
[ "MIT" ]
38
2018-02-28T17:33:00.000Z
2022-01-21T22:30:11.000Z
Notebooks/tpot_exported_pipeline.py
rsouza/DataScience_Course
dd8018d616cf24a7b23c7b04ea1e2120261da3c0
[ "MIT" ]
17
2018-08-16T12:11:57.000Z
2019-08-04T17:55:27.000Z
Notebooks/tpot_exported_pipeline.py
rsouza/DataScience_Course
dd8018d616cf24a7b23c7b04ea1e2120261da3c0
[ "MIT" ]
62
2018-02-20T12:58:13.000Z
2022-03-03T11:10:16.000Z
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline, make_union from tpot.builtins import StackingEstimator from xgboost import XGBClassifier from sklearn.preprocessing import FunctionTransformer from copy import copy # NOTE: Make sure ...
40.592593
125
0.794708
0
0
0
0
0
0
0
0
193
0.176095
680939a134bf2b1210290121f792004a5567a200
7,296
py
Python
own/NER_torch/ner_dataset.py
felixdittrich92/DeepLearning-pyTorch
5939012e960b79ddc183921dfeb4503126878068
[ "MIT" ]
1
2022-03-02T07:16:59.000Z
2022-03-02T07:16:59.000Z
own/NER_torch/ner_dataset.py
felixdittrich92/DeepLearning-pyTorch
5939012e960b79ddc183921dfeb4503126878068
[ "MIT" ]
null
null
null
own/NER_torch/ner_dataset.py
felixdittrich92/DeepLearning-pyTorch
5939012e960b79ddc183921dfeb4503126878068
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import pytorch_lightning as pl import torch from sklearn.model_selection import train_test_split from torch.utils.data import DataLoader, Dataset from transformers import BertTokenizerFast os.environ["TOKENIZERS_PARALLELISM"] = "true" FILE_PATH = 'data/own.txt' def re...
34.742857
151
0.649397
3,934
0.5392
0
0
0
0
0
0
972
0.133224
6809a2acfca0df46c95da57d06eac41e2dd27631
124
py
Python
wikilabels/tests/test_stats_routes.py
notconfusing/wikilabels
5956e20a5d46286bfb0b6327a2b5a12fa406118b
[ "MIT" ]
null
null
null
wikilabels/tests/test_stats_routes.py
notconfusing/wikilabels
5956e20a5d46286bfb0b6327a2b5a12fa406118b
[ "MIT" ]
null
null
null
wikilabels/tests/test_stats_routes.py
notconfusing/wikilabels
5956e20a5d46286bfb0b6327a2b5a12fa406118b
[ "MIT" ]
null
null
null
from .routes_test_fixture import app # noqa def test_stats(client): assert client.get("/stats/")._status_code == 200
20.666667
52
0.725806
0
0
0
0
0
0
0
0
15
0.120968
680b099433a019c0405e29fa05a069e43cce35d3
2,017
py
Python
show_history.py
FairyDevicesRD/statistical-quality-estimation
1ce238b118be8ffb4abb902fa5ad1a7525a43b3a
[ "MIT" ]
null
null
null
show_history.py
FairyDevicesRD/statistical-quality-estimation
1ce238b118be8ffb4abb902fa5ad1a7525a43b3a
[ "MIT" ]
null
null
null
show_history.py
FairyDevicesRD/statistical-quality-estimation
1ce238b118be8ffb4abb902fa5ad1a7525a43b3a
[ "MIT" ]
null
null
null
import argparse import logging import pathlib import re import warnings import numpy as np import dirichlet from sklearn.linear_model import LogisticRegression from optimize import load_config, load_data, get_loglikelihood, get_mse logger = logging.getLogger() def main(data, src_dir): files = [] for src_pa...
24.901235
71
0.61527
0
0
0
0
0
0
0
0
326
0.161626
680c5f63df1dfe08789bfa98126f9d196d2c9212
620
py
Python
src/backend/web/handlers/apidocs.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/web/handlers/apidocs.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/web/handlers/apidocs.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
from backend.common.decorators import cached_public from backend.web.profiled_render import render_template @cached_public(timeout=int(60 * 60 * 24 * 7)) def apidocs_trusted_v1() -> str: template_values = { "title": "Trusted APIv1", "swagger_url": "/swagger/api_trusted_v1.json", } return r...
29.52381
67
0.68871
0
0
0
0
506
0.816129
0
0
158
0.254839
680d5f5213572fa53827c06c480230ee309727aa
712
py
Python
tests/common/devices/vmhost.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/common/devices/vmhost.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/common/devices/vmhost.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
from tests.common.devices.base import AnsibleHostBase class VMHost(AnsibleHostBase): """ @summary: Class for VM server For running ansible module on VM server """ def __init__(self, ansible_adhoc, hostname): AnsibleHostBase.__init__(self, ansible_adhoc, hostname) @property def e...
32.363636
94
0.678371
655
0.919944
0
0
410
0.575843
0
0
190
0.266854
680e3a6742a96523df350e83def38272170019eb
438
py
Python
normatrix/normatrix/plugged/__init__.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/__init__.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/__init__.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
"""All plugging called to check norm for a C file.""" __all__ = [ "columns", "comma", "function_line", "indent", "libc_func", "nested_branches", "number_function", "parenthesis", "preprocessor", "snake_case", "solo_space", "statements", "trailing_newline", "two_sp...
16.846154
53
0.584475
0
0
0
0
0
0
0
0
296
0.675799
680ed6affdcd3fb061dee185fd006fb9c5077b21
30,862
py
Python
sc2monitor/controller.py
2press/sc2monitor
a4c193fd946e54a03be2181d839875ddb956e621
[ "MIT" ]
1
2018-07-30T11:39:32.000Z
2018-07-30T11:39:32.000Z
sc2monitor/controller.py
2press/sc2-monitor
a4c193fd946e54a03be2181d839875ddb956e621
[ "MIT" ]
22
2019-01-03T11:34:30.000Z
2021-05-03T19:50:10.000Z
sc2monitor/controller.py
2press/sc2-monitor
a4c193fd946e54a03be2181d839875ddb956e621
[ "MIT" ]
1
2019-01-14T21:35:05.000Z
2019-01-14T21:35:05.000Z
"""Control the sc2monitor.""" import asyncio import logging import math import time from datetime import datetime, timedelta from operator import itemgetter import aiohttp import sc2monitor.model as model from sc2monitor.handlers import SQLAlchemyHandler from sc2monitor.sc2api import SC2API logger = logging.getLogge...
40.342484
79
0.547307
30,494
0.988076
0
0
3,023
0.097952
10,303
0.333841
5,322
0.172445
680f6ab5ef1c42004a8c67eed4c23528a49a9b2c
9,867
py
Python
impermagit/repo.py
tomheon/impermagit
1f508e8cedcd8ee54745489d2b7682a60dfa07cd
[ "MIT" ]
null
null
null
impermagit/repo.py
tomheon/impermagit
1f508e8cedcd8ee54745489d2b7682a60dfa07cd
[ "MIT" ]
null
null
null
impermagit/repo.py
tomheon/impermagit
1f508e8cedcd8ee54745489d2b7682a60dfa07cd
[ "MIT" ]
null
null
null
from contextlib import contextmanager import errno import os import shutil import subprocess import tempfile class GitExeException(Exception): """ Thrown when the external git exe doesn't return a 0. """ pass class Repo(object): """ Interface to a git repo. Generally you should create o...
31.32381
77
0.572616
6,963
0.705686
3,851
0.390291
2,258
0.228844
0
0
5,546
0.562076
681045cfaacc2418fa853c78810b9368726344ac
717
py
Python
chaospy/distributions/copulas/__init__.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
chaospy/distributions/copulas/__init__.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
chaospy/distributions/copulas/__init__.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
r""" Copulas are a type dependency structure imposed on independent variables to achieve to more complex problems without adding too much complexity. To construct a copula one needs a copula transformation and the Copula wrapper:: >>> dist = chaospy.Iid(chaospy.Uniform(), 2) >>> copula = chaospy.Gumbel(dist, ...
27.576923
75
0.732218
0
0
0
0
0
0
0
0
516
0.719665
6810793cac493b5c11bee04614c0af284e700eb6
2,112
py
Python
documentation/examples/policy_aggregation.py
oscardavidtorres1994/cadCAD
229e2dac585eb6c1644cf277e3a7807883f10d13
[ "MIT" ]
1
2021-11-22T23:11:15.000Z
2021-11-22T23:11:15.000Z
documentation/examples/policy_aggregation.py
oscardavidtorres1994/cadCAD
229e2dac585eb6c1644cf277e3a7807883f10d13
[ "MIT" ]
null
null
null
documentation/examples/policy_aggregation.py
oscardavidtorres1994/cadCAD
229e2dac585eb6c1644cf277e3a7807883f10d13
[ "MIT" ]
1
2021-11-22T23:11:03.000Z
2021-11-22T23:11:03.000Z
import pandas as pd from tabulate import tabulate from cadCAD.configuration import append_configs from cadCAD.configuration.utils import config_sim from cadCAD.engine import ExecutionMode, ExecutionContext, Executor from cadCAD import configs # Policies per Mechanism def p1m1(_g, step, sH, s): return {'policy1': ...
21.333333
82
0.597538
0
0
0
0
0
0
0
0
403
0.190814
6813a323f69361605daa7bd7874ef3440ba67ca6
2,667
py
Python
lib/Agent.py
mbhatt1/Mofosploit
d21295253b9cfe730da22bea9eeb4bcc7b872154
[ "Apache-2.0" ]
6
2019-01-21T13:09:29.000Z
2019-10-02T07:58:57.000Z
lib/Agent.py
mbhatt1/Mofosploit
d21295253b9cfe730da22bea9eeb4bcc7b872154
[ "Apache-2.0" ]
null
null
null
lib/Agent.py
mbhatt1/Mofosploit
d21295253b9cfe730da22bea9eeb4bcc7b872154
[ "Apache-2.0" ]
3
2019-01-21T13:15:50.000Z
2020-09-28T11:30:51.000Z
from lib.imports import * from lib.Constants import * from lib.Environment import * from lib.ML_Modules import ML_Nnet from lib.parameter_server import Server as ParameterServer ''' Single Agent ''' class Agent: def __init__(self, name, parameter_server): self.brain = ML_NNet(name, parameter_server) ...
35.092105
107
0.548556
2,464
0.923885
0
0
0
0
0
0
432
0.16198
6813cdd606ade45f43873ba2c99142d90f8a961a
16,267
py
Python
wrt/wrt-packertool-android-tests/test.py
tiwanek/crosswalk-test-suite
82d12e6187c81caeb56e12c5ec3483f35d939982
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-packertool-android-tests/test.py
tiwanek/crosswalk-test-suite
82d12e6187c81caeb56e12c5ec3483f35d939982
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-packertool-android-tests/test.py
tiwanek/crosswalk-test-suite
82d12e6187c81caeb56e12c5ec3483f35d939982
[ "BSD-3-Clause" ]
null
null
null
import sys, os, os.path, time, shutil import commands from xml.etree.ElementTree import ElementTree from xml.etree.ElementTree import Element from xml.etree.ElementTree import SubElement as SE import metacomm.combinatorics.all_pairs2 all_pairs = metacomm.combinatorics.all_pairs2.all_pairs2 totalNum = 0 failNum = 0 pa...
40.165432
245
0.500645
0
0
0
0
0
0
0
0
4,817
0.296121
6814898e651034adbd68ccc0b6b8b8dad8f99277
584
py
Python
bigcommerce/resources/options.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
bigcommerce/resources/options.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
bigcommerce/resources/options.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
from .base import * class Options(ListableApiResource, CreateableApiResource, UpdateableApiResource, DeleteableApiResource): resource_name = 'options' def values(self, id=None): if id: return OptionValues.get(self.id, id, connection=self._connection) else: return Optio...
32.444444
121
0.739726
558
0.955479
0
0
0
0
0
0
37
0.063356
6814efafa8b0436d0c07705dbb35b7e3e7d2d5ab
61
py
Python
itscsapp/admision/models/__init__.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
itscsapp/admision/models/__init__.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
itscsapp/admision/models/__init__.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
from .admision_carrer import * from .admision_event import *
20.333333
30
0.803279
0
0
0
0
0
0
0
0
0
0
6815fb78cca0f6a2e9ed9085014fe961cd3f8369
3,649
py
Python
paperswithcode/models/evaluation/result.py
lambdaofgod/paperswithcode-client
2edc0288724400a17c66ba0f07c4a680d0aa907e
[ "Apache-2.0" ]
1
2021-11-21T12:01:44.000Z
2021-11-21T12:01:44.000Z
paperswithcode/models/evaluation/result.py
lambdaofgod/paperswithcode-client
2edc0288724400a17c66ba0f07c4a680d0aa907e
[ "Apache-2.0" ]
null
null
null
paperswithcode/models/evaluation/result.py
lambdaofgod/paperswithcode-client
2edc0288724400a17c66ba0f07c4a680d0aa907e
[ "Apache-2.0" ]
1
2021-11-21T12:01:46.000Z
2021-11-21T12:01:46.000Z
from datetime import datetime from typing import Optional from tea_client.models import TeaClientModel class Result(TeaClientModel): """Evaluation table row object. Attributes: id (str): Result id. best_rank (int, optional): Best rank of the row. metrics (dict): Dictionary of metrics...
35.77451
91
0.671965
3,533
0.96821
0
0
0
0
0
0
1,983
0.543437
681a1cf3ad99f3d849dfcabbe5d567ca687824c1
3,300
py
Python
tests/api_resources/test_porting_order.py
rjkboyle/telnyx-python
bee8bdef9efd43076e63693876f7a423f3853180
[ "MIT" ]
35
2019-07-22T20:44:09.000Z
2022-02-15T05:52:15.000Z
tests/api_resources/test_porting_order.py
rjkboyle/telnyx-python
bee8bdef9efd43076e63693876f7a423f3853180
[ "MIT" ]
15
2019-08-05T21:16:41.000Z
2022-01-14T00:14:35.000Z
tests/api_resources/test_porting_order.py
rjkboyle/telnyx-python
bee8bdef9efd43076e63693876f7a423f3853180
[ "MIT" ]
6
2019-08-19T17:27:39.000Z
2022-03-15T18:36:23.000Z
from __future__ import absolute_import, division, print_function import pytest import telnyx TEST_RESOURCE_ID = "f1486bae-f067-460c-ad43-73a92848f902" class TestPortingOrder(object): def test_is_listable(self, request_mock): resources = telnyx.PortingOrder.list() request_mock.assert_requested("...
40.740741
88
0.698485
3,143
0.952424
0
0
405
0.122727
0
0
479
0.145152
681b7c879fe3f2d09f237ea35bdbdb7e97ac6241
2,002
py
Python
tests/garage/replay_buffer/test_replay_buffer.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2019-07-31T06:53:38.000Z
2019-07-31T06:53:38.000Z
tests/garage/replay_buffer/test_replay_buffer.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
tests/garage/replay_buffer/test_replay_buffer.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2020-02-05T00:34:07.000Z
2020-02-05T00:34:07.000Z
import numpy as np from garage.replay_buffer import SimpleReplayBuffer from tests.fixtures.envs.dummy import DummyDiscreteEnv class TestReplayBuffer: def test_add_transition_dtype(self): env = DummyDiscreteEnv() obs = env.reset() replay_buffer = SimpleReplayBuffer( env_spec=en...
39.254902
79
0.679321
1,872
0.935065
0
0
0
0
0
0
50
0.024975
a838ac6842aba9c31c47292a8f156a76646dc315
3,238
py
Python
python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle 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 required by appli...
28.654867
74
0.67202
1,794
0.554046
0
0
403
0.12446
0
0
1,109
0.342495
a8394db96022de367ff157a8a8c8008d7bc2a5be
6,244
py
Python
dlf/core/registry.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
dlf/core/registry.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
dlf/core/registry.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
""" The task of the registry is to register complex objects by an keyword/alias that you easily can build and instanciate these objects with a single keyword. This allows it in a easy manner to parse a yaml configuration file and use these values to instanciate the available objects. """ import tensorflow as tf from ...
28.774194
110
0.648302
0
0
0
0
0
0
0
0
3,055
0.48927
a839c728217667721506b5ef85d6e58de7793368
1,017
py
Python
project/dev/tuning.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
1
2021-05-04T05:17:57.000Z
2021-05-04T05:17:57.000Z
project/dev/tuning.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
null
null
null
project/dev/tuning.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
1
2021-09-24T08:17:23.000Z
2021-09-24T08:17:23.000Z
import os import json import rmse TUNING_FILE = "/Users/markduan/duan/USC_course/USC_APDS/INF553/project/predict/tuning.json" CORATED_LIMIT = [3, 5, 7, 10] LONELY_THRESHOLD = [2, 3, 5, 7] N_NEIGHBORS_ITEMBASED = [5, 7, 10, 12] WEIGHT = [0.2, 0.4, 0.6, 0.8] def writeRes(c, l, n, w, res): with open(TUNING_FILE, 'a...
25.425
91
0.52999
0
0
0
0
0
0
0
0
172
0.169125
a83aab63534247c9aaa5317711686c9c7891a302
2,736
py
Python
tests/test_weightings.py
matchup-ir/whooshy
3e8730f4cbb559fd59971c5a2e6d01924d3968c0
[ "BSD-2-Clause-FreeBSD" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
tests/test_weightings.py
matchup-ir/whooshy
3e8730f4cbb559fd59971c5a2e6d01924d3968c0
[ "BSD-2-Clause-FreeBSD" ]
85
2018-12-11T06:53:06.000Z
2021-07-30T20:39:12.000Z
tests/test_weightings.py
matchup-ir/whooshy
3e8730f4cbb559fd59971c5a2e6d01924d3968c0
[ "BSD-2-Clause-FreeBSD" ]
62
2015-07-03T12:34:32.000Z
2022-02-08T08:21:12.000Z
from __future__ import with_statement import inspect from random import choice, randint import sys from whoosh import fields, query, scoring from whoosh.compat import u, xrange, permutations from whoosh.filedb.filestore import RamStorage def _weighting_classes(ignore): # Get all the subclasses of Weighting in wh...
33.365854
79
0.593567
241
0.088085
0
0
0
0
0
0
451
0.164839
a83b6d55a2a7a1cbce269d3312e7f896d2b471a1
1,133
py
Python
Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
# cubeProperties.py # A program to calculate the volume and surface area of a cube. """Same as Chapter 10 Programming Exercise 9, but for a cube. The constructor should accept the length of a side as a parameter.""" from cubeClass import Cube def main(): edge = 0 while edge <= 0: try: ...
29.815789
77
0.613416
0
0
0
0
0
0
0
0
540
0.476611
a83cd6c3e2c44f9770befd49c93d195219322f27
5,768
py
Python
pharmrep/product/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
pharmrep/product/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
pharmrep/product/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from datetime import datetime, date from django.db import models from django.contrib.auth.models import User from django.db.models.aggregates import Sum AGE_LIMIT = 7 # 7 days age limit class PriceTemplate(models.Model): name = models.CharField(max_length=200) def _...
32.044444
76
0.677358
5,512
0.955617
0
0
1,411
0.244626
0
0
482
0.083564
a83d95d0bdb34524a4d9657cff33c959ab96b482
19,189
py
Python
src/apscheduler/datastores/async_/sqlalchemy.py
spaceack/apscheduler
ce5262c05a663677fd74a43c7a315bd5e3def902
[ "MIT" ]
null
null
null
src/apscheduler/datastores/async_/sqlalchemy.py
spaceack/apscheduler
ce5262c05a663677fd74a43c7a315bd5e3def902
[ "MIT" ]
null
null
null
src/apscheduler/datastores/async_/sqlalchemy.py
spaceack/apscheduler
ce5262c05a663677fd74a43c7a315bd5e3def902
[ "MIT" ]
null
null
null
from __future__ import annotations import json import logging from contextlib import AsyncExitStack, closing from datetime import datetime, timedelta, timezone from json import JSONDecodeError from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union from uuid import UUID import sniffi...
45.471564
99
0.614675
17,218
0.897191
0
0
17,229
0.897765
13,316
0.693867
1,053
0.054869
a83deef93d0c43dab99c0c6171aa58bee51fc329
185
py
Python
financeiro/views.py
Antonio-Neves/Gestao-Escolar
a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b
[ "MIT" ]
7
2021-05-21T00:23:40.000Z
2021-12-09T12:35:00.000Z
financeiro/views.py
Antonio-Neves/Gestao-Escolar
a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b
[ "MIT" ]
null
null
null
financeiro/views.py
Antonio-Neves/Gestao-Escolar
a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b
[ "MIT" ]
7
2021-08-03T22:28:36.000Z
2022-03-13T20:08:40.000Z
from django.shortcuts import render from django.views.generic.base import TemplateView class IndexFinanceiroView(TemplateView): template_name = 'financeiro/index-financeiro.html'
18.5
51
0.827027
92
0.497297
0
0
0
0
0
0
34
0.183784
a83e29d363c3ca50085e97a39444917b28289d0b
26
py
Python
__init__.py
fleximus/pelican-fancyindex
305a953ed42c3b9f6c43dbd2d20751ac4f11deaf
[ "BSD-2-Clause" ]
null
null
null
__init__.py
fleximus/pelican-fancyindex
305a953ed42c3b9f6c43dbd2d20751ac4f11deaf
[ "BSD-2-Clause" ]
null
null
null
__init__.py
fleximus/pelican-fancyindex
305a953ed42c3b9f6c43dbd2d20751ac4f11deaf
[ "BSD-2-Clause" ]
null
null
null
from .fancyindex import *
13
25
0.769231
0
0
0
0
0
0
0
0
0
0
a83e32ca63ea15b59111ab7fa07808949fb07688
11,444
py
Python
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
""" Structural Variants Report """ import os import os.path as op import logging import sys import json import itertools import collections import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.patches as mpatches import matplotlib.ticker as ticker from matplotlib import rcParams ...
33.267442
98
0.625306
1,513
0.132209
0
0
0
0
0
0
1,201
0.104946
a83fc38633f6c95bca36f69963bdbc69b5abb27d
976
py
Python
logger.py
K-Molloy/nrdf-feed-python
8b4ed87cc112154f43aae3d885a2085a2f28a74f
[ "MIT" ]
null
null
null
logger.py
K-Molloy/nrdf-feed-python
8b4ed87cc112154f43aae3d885a2085a2f28a74f
[ "MIT" ]
null
null
null
logger.py
K-Molloy/nrdf-feed-python
8b4ed87cc112154f43aae3d885a2085a2f28a74f
[ "MIT" ]
null
null
null
import logging import os from datetime import datetime class Logger : logger = None def myLogger(self): if None == self.logger: self.logger=logging.getLogger('nrdf') self.logger.setLevel(logging.DEBUG) log_folder = r"logs/" os.makedirs(os.path.dirname(lo...
39.04
104
0.621926
920
0.942623
0
0
0
0
0
0
81
0.082992
a840832e20eb91945756ce9b6d98a5d6d6a25541
1,689
py
Python
rest_framework_auth0/models.py
robindebois/djangorestframework-auth0
a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa
[ "MIT" ]
107
2016-03-28T22:45:40.000Z
2021-06-28T01:46:38.000Z
rest_framework_auth0/models.py
robindebois/djangorestframework-auth0
a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa
[ "MIT" ]
41
2016-09-03T05:15:47.000Z
2021-01-02T12:47:36.000Z
rest_framework_auth0/models.py
robindebois/djangorestframework-auth0
a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa
[ "MIT" ]
26
2016-04-16T22:01:29.000Z
2021-05-07T14:01:55.000Z
# Just to keep things like ./manage.py test happy from django.contrib.auth.models import AbstractUser # class Group(models.Model): # """ # Groups are a generic way of categorizing users to apply permissions, or # some other label, to those users. A user can belong to any number of # groups. # A use...
36.717391
79
0.666075
0
0
0
0
0
0
0
0
1,593
0.943162
a8416b3fb1eb6b1559c7209666065c8baea36cb7
7,494
py
Python
inference.py
quantori/prj-covid-scoring
98d80498ffbab1fdbbeec0fc4016f9a199dbf88e
[ "MIT" ]
null
null
null
inference.py
quantori/prj-covid-scoring
98d80498ffbab1fdbbeec0fc4016f9a199dbf88e
[ "MIT" ]
null
null
null
inference.py
quantori/prj-covid-scoring
98d80498ffbab1fdbbeec0fc4016f9a199dbf88e
[ "MIT" ]
null
null
null
import os import argparse import cv2 import torch import pandas as pd from tqdm import tqdm from pathlib import Path import segmentation_models_pytorch as smp from tools.datasets import InferenceDataset from tools.models import CovidScoringNet, SegmentationModel from tools.utils import extract_model_opts, get_list_of...
39.235602
88
0.70403
0
0
0
0
0
0
0
0
1,058
0.14118
a8422d5e6c8ade1475ebc70a2c91559349806cf9
4,267
py
Python
uproot/const.py
guiguem/uproot
42173c5a25b5d5858f42788090327030d6aa9b8d
[ "BSD-3-Clause" ]
null
null
null
uproot/const.py
guiguem/uproot
42173c5a25b5d5858f42788090327030d6aa9b8d
[ "BSD-3-Clause" ]
null
null
null
uproot/const.py
guiguem/uproot
42173c5a25b5d5858f42788090327030d6aa9b8d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list ...
32.082707
110
0.548395
0
0
0
0
0
0
0
0
1,977
0.463323
a84343d8f9a70e258120f78238c2960222f6b4ed
554
py
Python
LeetCode/LostBoy/771. Jewels and Stones.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
LeetCode/LostBoy/771. Jewels and Stones.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
LeetCode/LostBoy/771. Jewels and Stones.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
#771. Jewels and Stones class Solution: def numJewelsInStones(self, jewels: str, stones: str) -> int: # count = 0 # jewl = {} # for i in jewels: # if i not in jewl: # jewl[i] = 0 # for j in stones: # if j in jewl: # count += 1 ...
25.181818
65
0.435018
529
0.954874
0
0
0
0
0
0
219
0.395307
a84368b717e48b36eb701f61e858302d7ec5883b
277
py
Python
djblog/comments/admin.py
rewalkerof/microblog
2ef1652dcb9a7d35eed228f1d74587f4b0fa8912
[ "MIT" ]
null
null
null
djblog/comments/admin.py
rewalkerof/microblog
2ef1652dcb9a7d35eed228f1d74587f4b0fa8912
[ "MIT" ]
null
null
null
djblog/comments/admin.py
rewalkerof/microblog
2ef1652dcb9a7d35eed228f1d74587f4b0fa8912
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Comment # Register your models here. class CommentsAdmin(admin.ModelAdmin): list_display = ['id', "user", "content", "timestamp"] class Meta: model = Comment admin.site.register(Comment, CommentsAdmin)
18.466667
57
0.714801
137
0.494585
0
0
0
0
0
0
58
0.209386
a84380c1f97670fcb660541a388530604b2cd9bd
1,180
py
Python
bot/audio_trial2.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
1
2020-11-10T06:33:49.000Z
2020-11-10T06:33:49.000Z
bot/audio_trial2.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
null
null
null
bot/audio_trial2.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
1
2020-11-13T17:12:00.000Z
2020-11-13T17:12:00.000Z
##incompleted yt tuitorial ##import discord ##import json ##import asyncio ##import youtube_dl ##import shell ##import os ##from discord.utils import get ##from discord.ext import commands ## ##@client.command(pass_context=True) ##async def join(ctx): ## global voice ## channel=ctx.message.author...
28.095238
62
0.626271
0
0
0
0
0
0
0
0
1,137
0.963559
a8465518470f69aed3c070276b30d62403ad5fa0
14,426
py
Python
pyeem/augmentation/base.py
drewmee/PyEEM
283c01405bf51da6827ba434be53acd580b7642b
[ "MIT" ]
4
2020-09-01T08:27:28.000Z
2022-03-12T09:11:15.000Z
pyeem/augmentation/base.py
drewmee/PyEEM
283c01405bf51da6827ba434be53acd580b7642b
[ "MIT" ]
2
2021-06-11T18:20:47.000Z
2021-11-19T14:11:09.000Z
pyeem/augmentation/base.py
drewmee/PyEEM
283c01405bf51da6827ba434be53acd580b7642b
[ "MIT" ]
null
null
null
import itertools import os import random import numpy as np import pandas as pd from tqdm import tqdm def _get_steps(): hdf_subdir = "augmentation/" steps = {"step_name": ["prototypical", "single_sources", "mixtures"]} steps_df = pd.DataFrame(steps) steps_df["hdf_path"] = hdf_subdir + steps_df["step_...
37.665796
109
0.661722
0
0
0
0
0
0
0
0
6,252
0.433384
a8475c65df4075b3b08496dd18fcba18f180aafe
4,306
py
Python
pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Networking/Responses/SetAvatarResponse.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
38.106195
529
0.760102
0
0
0
0
0
0
0
0
1,351
0.313748
a8480382db69714973a4b7c38f535e4ba7563557
376
py
Python
control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py
RRRekkitRalph/robocup-firmware
a1502fdb3401e7e998a29c5fae22ef597dcc2dc5
[ "Apache-2.0" ]
26
2016-07-06T11:25:43.000Z
2022-02-27T00:24:02.000Z
control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py
RRRekkitRalph/robocup-firmware
a1502fdb3401e7e998a29c5fae22ef597dcc2dc5
[ "Apache-2.0" ]
98
2016-07-04T22:43:46.000Z
2021-11-10T00:12:02.000Z
control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py
RRRekkitRalph/robocup-firmware
a1502fdb3401e7e998a29c5fae22ef597dcc2dc5
[ "Apache-2.0" ]
16
2016-07-07T10:50:11.000Z
2021-12-06T11:20:28.000Z
from abc import ABC, abstractmethod class Dynamics(ABC): """ An abstract class which outlines the basic functionalities that an object simulating dynamics should implement """ @abstractmethod def step(self, dt): pass @abstractmethod def get_state(self): pass @abs...
18.8
62
0.659574
338
0.898936
0
0
165
0.43883
0
0
130
0.345745
a8487bc9414b8343a3c74e1a9dd0ffa5bd1bc6e4
1,012
py
Python
algs4/max_pq.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
230
2018-02-27T02:26:44.000Z
2022-03-29T10:26:57.000Z
algs4/max_pq.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
5
2018-04-06T12:08:56.000Z
2021-12-19T09:44:58.000Z
algs4/max_pq.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
55
2018-02-27T02:26:45.000Z
2022-03-30T03:51:41.000Z
class MaxPQ: def __init__(self): self.pq = [] def insert(self, v): self.pq.append(v) self.swim(len(self.pq) - 1) def max(self): return self.pq[0] def del_max(self, ): m = self.pq[0] self.pq[0], self.pq[-1] = self.pq[-1], self.pq[0] self.pq = se...
23
65
0.414032
1,011
0.999012
0
0
0
0
0
0
0
0
a8498638fe63f75b8fb7831a168989a3237bda41
887
py
Python
PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
""" four different ways to run an action in a thread; all print 4294967296, but prints should be synchronized with a mutex here to avoid overlap """ import threading, _thread def action(i): print(i ** 32) # subclass with state class Mythread(threading.Thread): def __init__(self, i): self.i = i ...
31.678571
83
0.621195
231
0.260428
0
0
0
0
0
0
358
0.403608
a84a24163aa53482623f2284b32fdd15724ce41b
9,399
py
Python
src/server_dgram/server.py
kn1m/LocalizationTDOA
203f1afdd5ae01329f218e962ccf2cf648bb26db
[ "MIT" ]
36
2016-08-31T06:30:08.000Z
2021-01-19T13:36:51.000Z
src/server_dgram/server.py
kn1m/LocalizationTDOA
203f1afdd5ae01329f218e962ccf2cf648bb26db
[ "MIT" ]
1
2018-05-31T15:07:28.000Z
2019-05-03T10:10:14.000Z
src/server_dgram/server.py
kn1m/LocalizationTDOA
203f1afdd5ae01329f218e962ccf2cf648bb26db
[ "MIT" ]
17
2016-12-01T09:04:48.000Z
2021-08-29T01:43:51.000Z
import logging import socket import numpy import time from cPickle import loads from scipy import linalg from matplotlib import pyplot from multiprocessing import Array from src.logic import helpers from src.logic.parallel_process import ProcessParallel from scipy import * from numpy import * class Server: def __...
34.428571
106
0.543249
9,102
0.968401
0
0
128
0.013618
0
0
835
0.088839
a84a5b5438a8189b9258fa08dad350324920becc
1,139
py
Python
tests/test_comparisons.py
opensafely/covid19-vaccine-coverage-tpp-emis
79195309b06608baffb0d3eb57f7b99bfec17fcc
[ "MIT" ]
null
null
null
tests/test_comparisons.py
opensafely/covid19-vaccine-coverage-tpp-emis
79195309b06608baffb0d3eb57f7b99bfec17fcc
[ "MIT" ]
null
null
null
tests/test_comparisons.py
opensafely/covid19-vaccine-coverage-tpp-emis
79195309b06608baffb0d3eb57f7b99bfec17fcc
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas.testing import assert_series_equal from analysis.comparisons import gt, gte, lt, lte def test_comparisons(): # a | b | gt | gte | lt | lte # ---+---+----+-----+----+----- # 1 | 1 | F | T | F | T # 1 | 2 | F | F | T | T # 2 | 1 | T ...
29.973684
76
0.437226
0
0
0
0
0
0
0
0
335
0.294118
a84ae539adfe720fa4cf764a55105118bf3a75ad
1,127
py
Python
tests/conftest.py
Shaza-Is/Re-IDOL
5db3d950b2d3d8dbdbcafa77803b271c01e3ada1
[ "Apache-2.0" ]
2
2021-11-16T02:23:09.000Z
2022-03-01T07:40:35.000Z
tests/conftest.py
Shaza-Is/Re-IDOL
5db3d950b2d3d8dbdbcafa77803b271c01e3ada1
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Shaza-Is/Re-IDOL
5db3d950b2d3d8dbdbcafa77803b271c01e3ada1
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np import os import pyarrow as pa import pyarrow.feather as feather import pandas as pd from app.services.preprocessor import PreProcessor from typing import List @pytest.fixture def preprocessor() -> PreProcessor: return PreProcessor("datasets/csvs/train.csv", "datasets/csvs/build...
22.54
81
0.668146
0
0
757
0.671695
922
0.818101
0
0
149
0.132209
a84b4fb4bb163f73f874300aa9b30127b25e1b1a
2,811
py
Python
color_histogram/results/hist_2d.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
73
2016-03-09T06:38:47.000Z
2021-08-20T10:12:10.000Z
color_histogram/results/hist_2d.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
3
2017-10-31T14:11:54.000Z
2021-04-06T15:51:37.000Z
color_histogram/results/hist_2d.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
32
2016-10-22T06:17:44.000Z
2021-10-30T16:20:11.000Z
# -*- coding: utf-8 -*- # # @package color_histogram.results.hist_2d # # Compute 2D color histogram result. # @author tody # @date 2015/08/28 import os import numpy as np import matplotlib.pyplot as plt from color_histogram.io_util.image import loadRGB from color_histogram.cv.image import rgb, to32F ...
30.554348
90
0.677695
0
0
0
0
464
0.165066
0
0
491
0.174671
a84ba5a5805b33c3b1ad0afc0fc822a27f2c5d05
2,926
py
Python
tests/test_python.py
sfeltman/libsmf
a70eb477732d2e8584af59389b4909541cf5bc98
[ "BSD-2-Clause" ]
1
2019-04-15T01:37:55.000Z
2019-04-15T01:37:55.000Z
tests/test_python.py
sfeltman/libsmf
a70eb477732d2e8584af59389b4909541cf5bc98
[ "BSD-2-Clause" ]
null
null
null
tests/test_python.py
sfeltman/libsmf
a70eb477732d2e8584af59389b4909541cf5bc98
[ "BSD-2-Clause" ]
null
null
null
import os import unittest import tempfile from gi.repository import Smf class Test(unittest.TestCase): def setUp(self): self.path = os.path.dirname(__file__) def compare_smf_files(self, a, b): self.assertEqual(a.format, b.format) self.assertEqual(a.ppqn, b.ppqn) self.assertEq...
38
86
0.669515
2,800
0.956938
0
0
295
0.10082
0
0
222
0.075871