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
dcf12e78cd43b62ae889013cd4f3dacacb7cb0bc
410
py
Python
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
18
2015-01-16T02:25:03.000Z
2018-11-18T03:47:07.000Z
ants/utils/jsonextends.py
wcong/ants
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
15
2015-01-12T02:28:23.000Z
2015-02-03T03:41:07.000Z
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
5
2015-01-22T12:38:38.000Z
2019-06-07T14:35:07.000Z
__author__ = 'wcong' import json import datetime class JSON(json.JSONEncoder): def default(self, o): o_type = type(o) if o_type == datetime.datetime: return o.strftime('%Y-%m-%d %H:%M:%S') elif o_type == datetime.date: return o.strftime('%Y-%m-%d') elif has...
24.117647
50
0.543902
358
0.873171
0
0
0
0
0
0
46
0.112195
dcf154140d779be50df39ec625bcaf518e1e2022
2,234
py
Python
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
import unittest import json from run import app from app.api.V2.views.product_view import Product class ProductstestCase(unittest.TestCase): def setUp(self): """will be called before every test""" self.client = app.test_client self.product = { "product_name" : "pro...
39.892857
142
0.570278
2,115
0.946732
0
0
0
0
0
0
758
0.339302
dcf1dfdabf48f9691feb1a7313770d2b7803e043
12,008
py
Python
examples/ServiceSchema.py
meGregV/blpapi-python
30b11686255665956538826cf035a76bba9d301c
[ "Unlicense" ]
1
2019-08-17T07:05:41.000Z
2019-08-17T07:05:41.000Z
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
# ServiceSchema.py from __future__ import print_function from __future__ import absolute_import import blpapi import time from optparse import OptionParser TOKEN_SUCCESS = blpapi.Name("TokenGenerationSuccess") TOKEN_FAILURE = blpapi.Name("TokenGenerationFailure") AUTHORIZATION_SUCCESS = blpapi.Name("AuthorizationSucc...
34.210826
76
0.615756
0
0
0
0
0
0
0
0
3,962
0.329947
dcf48f93526d5328700677ce0de7b0962b47458b
15,931
py
Python
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
151
2019-08-17T01:01:22.000Z
2022-02-26T20:01:14.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
7
2019-09-05T14:49:32.000Z
2021-05-18T06:55:28.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
38
2019-08-17T03:55:32.000Z
2021-12-08T18:06:05.000Z
#!/usr/bin/python2 """ e3_tests.py Test code for e3.py: pag 1639 e3 is used to generate Kc. The test cases assumes that COF = ACO and ACO aro provided. Ar and Ar_prime uses SAFER+ We use https://github.com/aer0s/python-mcrypt that is ONLY compatible with python2. """ from sys import exit from e3 import * log.setL...
42.596257
84
0.724813
0
0
0
0
0
0
0
0
6,244
0.39194
dcf5d0348f75187b044a2672de3945039ccc0b71
16,033
py
Python
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
import cv2,imutils, socket import time import threading import time import uuid import logging, os from functools import partial from numpy import double import requests import json import sys import configparser ####### CONFIG PARAMS #CONFIGSERVERIP = '127.0.0.1' #CONFIGSERVERPORT = 9997 #logging.basicConfig(filena...
34.553879
217
0.493357
4,691
0.292584
0
0
0
0
0
0
3,645
0.227344
dcfa0625fe18bf5b31b3c41c119941952321fac4
71
py
Python
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
from playsound import playsound import sys playsound(sys.argv[1])
14.2
32
0.760563
0
0
0
0
0
0
0
0
0
0
dcfb3f72e395046eb90ede6f87900476cf79be0a
43
py
Python
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
1
2021-03-16T06:04:12.000Z
2021-03-16T06:04:12.000Z
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
pytest_plugins = [ 'xchg.tests.data', ]
10.75
21
0.627907
0
0
0
0
0
0
0
0
17
0.395349
dcfd579f248c6ae550fd05ab1865da2443b5ad26
2,303
py
Python
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
10
2020-05-26T07:29:14.000Z
2021-12-06T21:33:40.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
1
2021-10-05T12:25:30.000Z
2021-10-05T17:05:56.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
2
2021-03-16T03:20:24.000Z
2021-08-08T20:17:10.000Z
#!/usr/bin/env python3 """ Utility for ChEBI SOAP API. * https://www.ebi.ac.uk/chebi/webServices.do """ ### import sys,os,re,json,argparse,time,logging import pandas as pd # from .. import chebi # ############################################################################## if __name__=='__main__': epilog="Example ...
32.43662
116
0.659574
0
0
0
0
0
0
0
0
807
0.350413
dcfdd812b058711aa5ae957f61479006e6bfa153
9,793
py
Python
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
import logging import os import sys from collections import deque from pickle import Pickler, Unpickler from random import shuffle from time import perf_counter from othello.OthelloPlayers import * import wandb import numpy as np from tqdm import tqdm from Arena import Arena from MCTS import MCTS log = logging.getLo...
44.716895
133
0.632799
9,445
0.964464
0
0
0
0
0
0
2,827
0.288676
dcfec011a1b81ce9c217c8eefeb848ef377b3c27
1,351
py
Python
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
1
2020-06-17T11:31:22.000Z
2020-06-17T11:31:22.000Z
''' Extract the protocol information from the VIA headers and store it in a log file for later verification. ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright o...
33.775
104
0.661732
0
0
0
0
0
0
0
0
1,021
0.755736
dcff7d1a940e3714715c9d14f1f889fc1690f9b3
978
py
Python
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
1
2020-01-16T14:24:08.000Z
2020-01-16T14:24:08.000Z
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
""" Compute the overall accuracy of a confusion matrix """ from __future__ import print_function import sys from optparse import OptionParser import numpy as np import cpa.util from cpa.profiling.confusion import confusion_matrix, load_confusion parser = OptionParser("usage: %prog [options] CONFUSION") parser.add_opt...
29.636364
96
0.743354
0
0
0
0
0
0
0
0
241
0.246421
0d03e7daf00c1563b1b6fe2d0009cfcb5c0c684e
4,813
py
Python
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-08-25T18:47:52.000Z
2019-12-04T21:40:28.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
2
2017-08-16T16:09:47.000Z
2020-08-18T17:25:22.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-11-06T21:57:37.000Z
2022-03-30T10:15:57.000Z
#!/usr/bin/env python import rospy from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from control_msgs.msg import * from trajectory_msgs.msg import * """ Created on 05/18/2015 @author: Spyros Maniatopoulos """ class GotoSingleArmJointConfigState(EventState): """ Directly...
31.457516
117
0.677748
4,555
0.946395
0
0
0
0
0
0
2,129
0.442344
0d0559140c74316b4c9189d66f026718d182678f
4,008
py
Python
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
null
null
null
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
51
2020-10-14T01:19:07.000Z
2022-03-31T06:02:48.000Z
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
1
2021-08-16T02:53:15.000Z
2021-08-16T02:53:15.000Z
"""A wrapper 'hub' for the Litter-Robot API and base entity for common attributes.""" from datetime import time, timedelta import logging from types import MethodType from typing import Any, Optional from pylitterbot import Account, Robot from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginExcepti...
32.585366
94
0.645709
3,257
0.812625
0
0
1,146
0.285928
1,171
0.292166
879
0.219311
0d092644246b35d8dfc64fca71163cf2d39cf763
41,824
py
Python
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from hashlib import sha256 import hmac import binascii from collections import namedtuple Point = namedtuple("Point", "x y") #E : y 2 + a 1 xy + a 3 y = x 3 + a 2 x 2 + a 4 x + a 6 Curve = namedtuple("Curve", "a1 a3 a2 a4 a6") def CurveToString(curve): out = "y2" if curve.a1: i...
37.849774
199
0.638581
19,146
0.457262
0
0
1,887
0.045067
0
0
3,968
0.094767
0d0960ad1b06bca915068cdce59adb7d2b15f5f3
4,848
py
Python
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
from __future__ import print_function import sublime import sublime_plugin import re import sys try: from latextools_utils import is_bib_buffer, is_biblatex_buffer except ImportError: from .latextools_utils import is_bib_buffer, is_biblatex_buffer if sys.version_info > (3, 0): strbase = str else: st...
29.204819
92
0.626238
932
0.192244
0
0
0
0
0
0
995
0.205239
0d0969bbcbec21f2ea03d898592c045dca79690c
4,652
py
Python
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
47
2020-10-14T21:54:35.000Z
2022-02-25T05:21:39.000Z
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-09 15:47 from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('stock', '0004_auto_20200908_1407'), ] operations = [ migrations.CreateMo...
41.168142
158
0.576526
4,491
0.965391
0
0
0
0
0
0
800
0.171969
0d096ee6b4123c7c0c3a2ec91a6b9b448d9095f1
131
py
Python
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
from django.conf.urls import url from webhookhandler import views urlpatterns = [ url(r'^$', views.webhook, name='webhook'), ]
21.833333
46
0.717557
0
0
0
0
0
0
0
0
14
0.10687
0d09a1ab76fbcba8277780907ddb0e6fb6d99938
1,585
py
Python
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
13
2020-10-25T20:15:25.000Z
2022-03-14T06:34:32.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-30T02:09:48.000Z
2022-03-09T12:48:22.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-29T15:36:40.000Z
2021-12-05T18:06:45.000Z
import pytest import numpy as np from covid19sim.distribution_normalization.dist_utils import lp_solve_wasserstein, lp_solution_to_transport_plan,\ get_rec_level_transition_matrix def test_lp_solve_wasserstein(): dist_0 = np.array([0.8, 0.0, 0.0, 0.2]) dist_1 = np.array([0.4, 0.2, 0.3, 0.1]) expecte...
32.346939
114
0.596845
0
0
0
0
0
0
0
0
0
0
0d09bc63d9c7eb8423e9b0e5da7103e3ef8feb8b
1,018
py
Python
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tues Aug 21 11:42:00 2018 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Problem: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Answer: 232792560 Program c...
24.829268
116
0.639489
0
0
0
0
0
0
0
0
630
0.618861
0d09dad0cfe724b037426ed9ab2ab54f7c0bf42a
887
py
Python
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
4
2020-11-01T22:51:01.000Z
2021-09-23T23:12:53.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
17
2021-02-07T17:32:15.000Z
2022-03-21T22:08:31.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
null
null
null
from jinja2 import Markup from .routes import Routes class RoutesGenerator(object): def generate(self, group=None, nonce=""): payload = Routes(group).to_json() return self._generate_base_js(payload, nonce) def generate_for_file(self, group=None): """Generate method used by command to ...
32.851852
81
0.624577
831
0.936866
0
0
0
0
0
0
204
0.229989
0d0cd0cb05f33dc84ee05240b7d4e69a6891ad7c
3,710
py
Python
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
30
2021-01-29T13:57:47.000Z
2022-02-09T13:17:57.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
13
2021-04-16T06:30:27.000Z
2022-03-16T18:42:23.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
16
2021-04-28T06:51:58.000Z
2022-03-23T23:47:52.000Z
import numpy as np from utils import coco_tools class CocoEvalidation(): def __init__(self, groundtruth_boxes,groundtruth_classes,groundtruth_valids,class_names): self.groundtruth_boxes = groundtruth_boxes self.groundtruth_classes = groundtruth_classes self.groundtruth_valids = groundtruth...
42.643678
185
0.643666
3,656
0.985445
0
0
0
0
0
0
304
0.081941
0d0e8db9852fae9b33e4425c27943f5b3b25e471
847
py
Python
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
1
2021-01-03T17:58:54.000Z
2021-01-03T17:58:54.000Z
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
import inspect class Map: map = {} def __init_subclass__(cls, **kwargs): Map.map = cls.map @staticmethod def harvest_map(): return Map.map class Model: nodes = [] def __init_subclass__(cls, **kwargs): Model.nodes.append(Model.harvest_attr(cls)) ...
22.891892
78
0.524203
829
0.978749
0
0
567
0.669421
0
0
15
0.01771
0d10f65fce5aa6e29e98a4acac3f1d7aaad83f0b
337
py
Python
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
1
2021-08-28T15:10:26.000Z
2021-08-28T15:10:26.000Z
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
import operator action = { "+" : operator.add, "-" : operator.sub, "/" : operator.truediv, "*" : operator.mul, "**" : pow } num1 = int(input("Enter the num1 value : ")) num2 = int(input("Enter the num2 value : ")) operation = raw_input("Enter the operation : ") print("The ans is", (action[operat...
21.0625
51
0.593472
0
0
0
0
0
0
0
0
102
0.302671
0d11b0c592e35dc9d299b946d4178c688fd0a1a7
19,324
py
Python
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
11
2017-10-13T11:04:53.000Z
2021-03-26T15:54:12.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
16
2018-08-01T09:25:08.000Z
2022-03-04T12:29:52.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
12
2018-02-04T20:34:01.000Z
2021-12-10T10:58:20.000Z
r"""This module provides utilities for computing the grid for contours of a function reconstruction plot. Required ingredients: * sampled posterior probability distribution :math:`P(\theta)` * independent variable :math:`x` * dependent variable :math:`y` * functional form :math:`y = f(x;\th...
35.327239
79
0.620679
0
0
0
0
0
0
0
0
13,869
0.717709
0d1213b55876a1f2a9e42dbe712806a7f20ed144
4,711
py
Python
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
3
2018-05-02T05:15:47.000Z
2021-04-16T16:09:48.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
1
2021-06-15T10:45:35.000Z
2021-06-15T10:45:35.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
4
2018-05-30T23:33:32.000Z
2021-01-13T13:32:04.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: model_pb2.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 from google.protobuf import reflection as _ref...
32.715278
427
0.727234
0
0
0
0
0
0
0
0
1,022
0.216939
0d127119d73c7030ec7f9cc2898f2e3a301807d8
598
py
Python
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import * import win32gui import sys import json import get_hwnd import get_time f = open('setting.json', encoding='utf-8') setting_data = json.loads(f.read()) # 根据title截图 def prtsc(title): hwnd = win32gui.FindWindow(None, title) app = QApplication(sys...
23
82
0.732441
0
0
0
0
0
0
0
0
149
0.238019
0d14dedaefe2f00be87040a1e016a739fed81d62
3,400
py
Python
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.636364
78
0.630294
2,620
0.770588
0
0
0
0
0
0
986
0.29
0d166b2da9d8e5e3174f2b578f39c39f0835046d
745
py
Python
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
from flask import jsonify from flask_login import login_required from .podClass import Pod from . import pod @pod.route('/', methods=['GET', ]) @login_required def pod_count(): ret = Pod().all_list() online, offline = 0, 0 for i in ret.items: item = i.status.container_statuses[-1] if item....
24.032258
65
0.585235
0
0
0
0
642
0.848085
0
0
100
0.1321
0d17348f8f1d18cb7ea86e8791e3c59ce2012a91
240
py
Python
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
1
2021-11-13T10:57:55.000Z
2021-11-13T10:57:55.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
4
2021-11-14T15:12:06.000Z
2021-11-30T13:54:47.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=expression-not-assigned,line-too-long,missing-module-docstring import sys from kohtaaminen.cli import app if __name__ == '__main__': sys.exit(app(prog_name='kohtaaminen')) # pragma: no cover
26.666667
80
0.725
0
0
0
0
0
0
0
0
144
0.6
0d17ef8038b1cc6628d9eda55dcc9584a7f4d287
1,058
py
Python
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
import xml.etree.ElementTree as ET import os ns = "{http://www.tei-c.org/ns/1.0}" n = 0 for file in os.listdir('tei'): # traverse files if file.startswith('GF'): path = os.path.join('tei', file) # open file for doc in os.listdir(path): n += 1 print(n) # should ...
34.129032
73
0.482987
0
0
0
0
0
0
0
0
243
0.229679
0d1c477919b18db1aa360b14fced79bbd1b06be3
3,173
py
Python
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
1
2016-11-08T17:00:33.000Z
2016-11-08T17:00:33.000Z
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# coding=utf-8 from scrapy import log from scrapy.spider import BaseSpider from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.http import Request from scrapy.selector import HtmlXPathSelector from social_scrapper.items import OpportunityItem import re import string class MecenovaSpider(BaseS...
39.6625
79
0.600378
2,881
0.907116
0
0
0
0
0
0
856
0.269521
0d1d401c75cecb335ed3a64c63f335987af9024a
2,351
py
Python
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
11
2016-01-24T00:33:27.000Z
2021-08-23T06:21:06.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
5
2015-07-21T21:05:56.000Z
2020-09-02T13:03:01.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
18
2016-03-20T19:29:10.000Z
2022-03-10T16:58:46.000Z
import asyncio import diffusion.datatypes from diffusion.features.control.session_trees.branch_mapping_table import ( BranchMappingTable, ) server_url = "ws://localhost:8080" principal = "control" credentials = diffusion.Credentials("password") path = "foo/bar" topic_type = diffusion.datatypes.STRING value = "bla...
33.112676
92
0.623139
0
0
0
0
0
0
1,828
0.777541
803
0.341557
0d2008f8ed89f74206d38081357c68a4d36a753c
1,757
py
Python
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
import random import json from numpy.lib.utils import source import torch import speech_recognition as sr r = sr.Recognizer() from .model import NeuralNetwork from .nltk_utils import bag_of_words, tokenize device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') with open('./src/data/data.json', 'r') ...
24.068493
82
0.599886
0
0
0
0
0
0
0
0
270
0.153671
0d211cab8a1e4dc92883081ebdefc1ba4f0b85a9
407
py
Python
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
from collections import deque V = int(input()) edge = [[] for _ in range(V)] for _ in range(V): u, _, *v = map(lambda x: int(x)-1, input().split()) edge[u] = v dist = [-1] * V dist[0] = 0 que = deque([0]) while len(que): v = que.popleft() for c in edge[v]: if dist[c] == -1: dist[c] ...
21.421053
55
0.511057
0
0
0
0
0
0
0
0
0
0
0d21d1ee1ed65ea490436b216844a040ad4eba70
1,350
py
Python
lib/config.py
NHGmaniac/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
1
2019-04-14T12:05:49.000Z
2019-04-14T12:05:49.000Z
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
import os.path import logging from configparser import ConfigParser from lib.args import Args import lib.connection as Connection __all__ = ['Config'] def getlist(self, section, option): return [x.strip() for x in self.get(section, option).split(',')] def fetchServerConfig(self): log = logging.getLogger('C...
28.723404
77
0.687407
0
0
0
0
0
0
0
0
289
0.214074
0d22359b28f08f1148894802b045634a551dddd6
98
py
Python
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
1
2020-12-15T00:13:35.000Z
2020-12-15T00:13:35.000Z
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
def eggs(someParameter): someParameter.append('hello') spam = [1,2,3] eggs(spam) print(spam)
14
33
0.693878
0
0
0
0
0
0
0
0
7
0.071429
0d2236c09fb61de0facb0db8ff5d2c14d3843c5c
608
py
Python
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
1
2021-12-21T17:27:34.000Z
2021-12-21T17:27:34.000Z
from django.db import models class Chef(models.Model): name=models.CharField(max_length=50) position=models.CharField(max_length=50) description=models.TextField() photo=models.ImageField(upload_to='chef/') class Meta: verbose_name ='Chef' verbose_name_plural='Chefs' def __str...
23.384615
48
0.685855
575
0.945724
0
0
0
0
0
0
46
0.075658
0d226d1f6cfd99b44cb7009663d19a87f591f745
740
py
Python
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
44
2017-09-27T13:02:23.000Z
2022-03-27T11:54:58.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
5
2018-01-11T22:09:39.000Z
2022-03-02T18:41:41.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
8
2017-11-16T22:16:10.000Z
2022-03-02T16:59:22.000Z
from distutils.core import setup setup( name="conjugate_prior", packages=["conjugate_prior"], install_requires=[ 'setuptools', 'scipy', 'numpy', 'matplotlib', ], long_description="https://github.com/urigoren/conjugate_prior/blob/master/README.md", long_descriptio...
32.173913
115
0.660811
0
0
0
0
0
0
0
0
397
0.536486
0d25115d04e08b90aa66b7cfb606030c77fa82e9
1,674
py
Python
common_python/tests/util/test_dataframe.py
ScienceStacks/common_python
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-01T00:22:32.000Z
2019-05-01T00:22:32.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-31T21:59:30.000Z
2019-05-31T21:59:30.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import unittest import common_python.util.dataframe as dataframe IGNORE_TEST = False IS_PLOT = False COL_A = 'a' COL_B = 'b' COL_C = 'c' DF = pd.DataFrame({COL_A: range(3)}) DF[COL_B] = 10*DF[COL_A] SIZE = 3 DFS = [DF for _ in range(SIZE)] DF1 = pd.DataFrame({COL_A: range(SIZE),...
24.985075
75
0.646953
1,164
0.695341
0
0
0
0
0
0
20
0.011947
0d25e78273bf0fb2530639adedc0b08ba41c54b5
7,412
py
Python
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-22 09:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
38.806283
125
0.527253
7,223
0.974501
0
0
0
0
0
0
1,217
0.164193
0d2646ddaa7ba21f35f69ed1044171f259cfecec
1,327
py
Python
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np import noise map = lambda n, start1, stop1, start2, stop2: ((n-start1)/(stop1-start1))*(stop2-start2)+start2 class PVector(): def __init__(self, _x, _y): self.x = _x self.y = _y def add(self, v): ...
31.595238
123
0.600603
1,088
0.819894
0
0
0
0
0
0
24
0.018086
0d2792d0fd44769568c671a62acca11f98fc94a4
305
py
Python
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
import urllib3 class HttpRequest: __http=None def __init__(self): self.__http = urllib3.PoolManager() def post(self,url,data={},headers={}): self.__http.request('POST',url,data,headers) def get(self,url,headers={}): self.__http.request('get',url,{},headers)
17.941176
52
0.629508
287
0.940984
0
0
0
0
0
0
11
0.036066
0d29d6a3791f034f1468053cbd3889c90964d234
6,421
py
Python
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2019-12-06T21:19:01.000Z
2021-05-09T02:10:50.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
1
2020-06-24T03:59:46.000Z
2020-06-24T13:18:05.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2021-03-01T06:40:48.000Z
2021-11-16T14:52:04.000Z
import time import random import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import NoSuchElementException def yout...
32.429293
252
0.633858
0
0
0
0
0
0
0
0
1,798
0.280019
0d2a58865f6970d3204e6af6aaac5002cdd6877f
962
py
Python
make/photon/prepare/commands/gencerts.py
n-marton/harbor
2859cd8b6981d329d2ef6720b90bbb074d370708
[ "Apache-2.0" ]
1
2019-06-06T02:39:40.000Z
2019-06-06T02:39:40.000Z
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
import os import sys import click import pathlib from subprocess import check_call, PIPE, STDOUT from utils.cert import openssl_installed from utils.misc import get_realpath gen_tls_script = pathlib.Path(__file__).parent.parent.joinpath('scripts/gencert.sh').absolute() @click.command() @click.option('-p', '--path', ...
32.066667
95
0.697505
0
0
0
0
688
0.715177
0
0
222
0.230769
0d2abaf7d4625450ee48b619ae33cd5c8bf035ab
369
py
Python
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
# kargs example print('Demonstrating how kargs works in functions') def f(**kargs): # prints dict print ('\nkargs =',kargs) # raises exception # equivalent to calling print(a=1,b=2) order of arguments based on dict d = dict(a=1,b=2) print (**d) #Call successfully (watch what i...
26.357143
76
0.612466
0
0
0
0
0
0
0
0
228
0.617886
0d2b31d40272b35f2023f3820d8bcc5908033214
1,795
py
Python
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class MatchTargetWeightMask: def __new__(cls, arg1=None): ''' :returns: MatchTargetWeightMask :rtype: UnityEngine.MatchTargetWeightMask ''' pass @staticmethod def ctor(arg1, ...
19.725275
49
0.528691
1,701
0.947632
0
0
1,459
0.812813
0
0
1,005
0.559889
0d2b6f960487325e486555e1a8e76de0fbf8d2ff
11,572
py
Python
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
30.293194
108
0.616488
9,878
0.853612
0
0
1,114
0.096267
3,970
0.343069
7,674
0.663152
0d2c0268ef322fad9aa747f4d00280b173987f3e
3,222
py
Python
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
37.905882
79
0.625078
2,496
0.774674
0
0
0
0
1,881
0.583799
1,493
0.463377
0d2c686104229d82bd390d145a5a40d32cee5a5b
1,111
py
Python
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
2
2015-02-25T20:58:52.000Z
2015-02-25T20:59:31.000Z
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
import uuid def new_uid(): """ Generate a new uid. """ return uuid.uuid4() def get_owner(): """ dummy stub for now, will eventually reliably/securely(?) determine the owner somehow. """ return "skinner" def run_on_empty(func, arg_list, arg_dict, key, **kwargs): """ Che...
22.22
81
0.59946
0
0
0
0
0
0
0
0
593
0.533753
0d2c7b5a5ceccd8409da7d4f14ad50c7fda7c2c7
67
py
Python
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
2
2018-10-04T21:17:23.000Z
2019-08-05T23:32:36.000Z
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
from .new_reader import NewReader from .predictor import Predictor
33.5
34
0.850746
0
0
0
0
0
0
0
0
0
0
0d2c7e6cf904b313acc9aca26daeafb4a2b97695
107
py
Python
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
import sys from .lib import parse_input def main(): print() if __name__ == '__main__': main()
8.916667
28
0.626168
0
0
0
0
0
0
0
0
10
0.093458
0d2ca382df7cba262c4e6017e9421c3abf0eb32c
8,871
py
Python
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.special import logsumexp from scipy.special.basic import psi class MACEWorker(): # Worker model: MACE-like spammer model -------------------------------------------------------------------------------- # alpha[0,:] and alpha[1,:] are parameters for the spamming probability #...
36.356557
125
0.535791
8,778
0.989516
0
0
0
0
0
0
2,665
0.300417
0d2dd29aaf64d74ebb6ddf68f9ba97a38795078e
2,069
py
Python
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
2
2019-11-13T06:11:25.000Z
2020-03-13T06:19:00.000Z
import numpy as np import argparse import imutils import time import cv2 from mss import mss COLORS = open("RoadSeg/seg-colors.txt").read().strip().split("\n") COLORS = [np.array(c.split(",")).astype("int") for c in COLORS] COLORS = np.array(COLORS, dtype="uint8") net = cv2.dnn.readNet("RoadSeg/seg-model.net") #读取配...
24.341176
137
0.632189
0
0
0
0
0
0
0
0
298
0.142652
0d30310fe782f189939b1f87e316277289556088
6,229
py
Python
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
import logging from homeassistant import config_entries from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.components.switch import SwitchEntity, DEVICE_CLASS_SWITCH from . import SleepIQDataUpdateCoordinator, SleepIQDevice from .const import ATTRIBUTION_TEXT, DOMAIN _LOGGER = logging.getLogger(__nam...
36.215116
93
0.655964
5,385
0.864505
0
0
2,552
0.409697
1,960
0.314657
1,318
0.211591
0d304089ceaf983f4579b7204f7deafcca5ebf04
9,711
py
Python
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
from aws_cdk import core as cdk # For consistency with other languages, `cdk` is the preferred import name for # the CDK's core module. The following line also imports it as `core` for use # with examples from the CDK Developer's Guide, which are in the process of # being updated to use `cdk`. You may delete this im...
36.923954
82
0.500463
8,642
0.889919
0
0
0
0
0
0
2,985
0.307383
0d30ba0c9547dae71e9f9210ae262d6b86afc144
480
py
Python
intake/migrations/0031_add_view_app_stats_permission.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-12-04 00:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('intake', '0030_add_visitor_model'), ] operations = [ migrations.AlterModelOptions( ...
24
112
0.639583
330
0.6875
0
0
0
0
0
0
194
0.404167
0d31952ea492f717453060dc4a8247a16873ad5a
2,356
py
Python
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
7
2021-08-25T08:00:22.000Z
2022-01-10T19:04:08.000Z
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
null
null
null
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
1
2021-11-03T04:20:05.000Z
2021-11-03T04:20:05.000Z
#!/usr/bin/env python3 # read PMS3001 data from the serial port. timestamp each line when it # arrives. batch into 30-record chunks and insert all records into the # database. also write json-formatted records to stdout. import aqi import argparse import datetime import json import psycopg2 import psycopg2.extras imp...
22.873786
85
0.58489
0
0
0
0
0
0
0
0
581
0.246604
0d32f4ff6ee71312c513d4994af8ed77bd5fe5e9
165
py
Python
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import matplotlib.pyplot as plt x = [0, 1, 2, 3] y = [0, 1, 4, 9] fig, ax = plt.subplots() fig.suptitle("simple") ax.plot(x, y, "r") plt.show()
15
31
0.6
0
0
0
0
0
0
0
0
29
0.175758
0d3467136f870f9065110eb11da1c3f9d8589a35
2,804
py
Python
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-08-05T13:01:19.000Z
2021-07-16T09:59:45.000Z
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
null
null
null
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-12-05T13:04:38.000Z
2020-07-05T15:05:40.000Z
import re from bs4 import BeautifulSoup from app.config.setting import DEFAULT_PROBLEM_RATING from app.libs.spider_http import SpiderHttp from app.spiders.base_spider import BaseSpider class NowcoderSpider(BaseSpider): def get_user_info(self, oj_username, accept_problems): username = oj_username.oj_user...
37.386667
98
0.548146
2,660
0.933333
0
0
304
0.106667
0
0
493
0.172982
0d34eb346bb9dfbe63517e654bace4e32c34725e
347
py
Python
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
7
2021-06-28T17:33:47.000Z
2022-02-12T21:54:59.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
104
2021-06-17T21:25:30.000Z
2022-03-28T14:21:57.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
1
2021-06-25T17:52:23.000Z
2021-06-25T17:52:23.000Z
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("core", "0112_sourcelocation_last_imported_at"), ] operations = [ migrations.RunSQL( sql="update source_location set last_imported_at = created_at", reverse_sql=migrations.Ru...
21.6875
75
0.642651
311
0.896254
0
0
0
0
0
0
102
0.293948
0d352171e20c80fe211b08987f0ec929af6bf855
556
py
Python
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
import numpy as np import pylab as pl from scipy import interpolate import matplotlib.pyplot as plt x = np.linspace(0, 2*np.pi+np.pi/4, 10) y = np.sin(x) x_new = np.linspace(0, 2*np.pi+np.pi/4, 100) #f_linear = interpolate.interp1d(x, y) tck = interpolate.splrep(x, y) # 原始点(xi,yi) y_bspline = interpolate.splev(x_ne...
25.272727
72
0.697842
0
0
0
0
0
0
0
0
213
0.352649
0d3675ca0a5f53791722399a192cdf57f9d7f538
2,539
py
Python
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" A small frog wants to get to the other side of a river. The frog is initially located at one bank of the river (position −1) and wants to get to the other bank (position N). The frog can jump over any distance F(K), where F(K) is the K-th Fibonacci number. Luckily, there are many leaves on the river, and the frog c...
30.22619
396
0.64041
0
0
84
0.032954
0
0
0
0
2,143
0.840722
0d37601c36fc07b6996503d8e3a5bf10dc917cf4
499
py
Python
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.14 on 2020-07-09 03:16 from django.db import migrations, models import olympia.hero.models class Migration(migrations.Migration): dependencies = [ ('hero', '0011_auto_20200624_1809'), ] operations = [ migrations.AlterField( model_name='primaryheroim...
24.95
122
0.661323
378
0.757515
0
0
0
0
0
0
130
0.260521
0d378d1920e988479dd11424edf919287eb9238f
5,512
py
Python
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
""" Python bindings for `Drake: Model-Based Design and Verification for Robotics <https://drake.mit.edu/>`_. This Python API documentation is a work in progress. Most of it is generated automatically from the C++ API documentation, and thus may have some C++-specific artifacts. For general overview and API documentati...
39.654676
79
0.719884
44
0.007983
0
0
0
0
0
0
3,225
0.585087
0d38c4e32571e359cdb435e64dddbc4b00e04991
3,794
py
Python
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
from datetime import date, timedelta from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.views import APIView from apps.goods.models import GoodsVisitCount from apps.meiduo_admin.serializers.statistical import GoodsVisitCountSerialzer from apps.orders.m...
22.317647
106
0.557986
3,839
0.874886
0
0
0
0
0
0
1,235
0.281449
0d38e3ab88ea80e866640d3de02dfdd15dddc370
5,732
py
Python
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
""" https://towardsdatascience.com/custom-transformers-and-ml-data-pipelines-with-python-20ea2a7adb65 Download the dataset from Kaggle, https://www.kaggle.com/harlfoxem/housesalesprediction?select=kc_house_data.csv and place it in the 'data' directory of this repo. """ from sklearn.base import BaseEstimator, Trans...
30.328042
99
0.681089
2,966
0.517446
0
0
0
0
0
0
2,508
0.437544
0d3af27a21b0e6ce8a4fec8e0d62653c2921601c
125
py
Python
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
9
2021-05-06T06:19:27.000Z
2021-09-27T16:07:04.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-07-05T12:52:53.000Z
2021-07-06T11:53:54.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-05-06T14:17:14.000Z
2021-05-06T14:17:14.000Z
from py_models_parser.core import dump_result, parse, parse_from_file __all__ = ["parse", "parse_from_file", "dump_result"]
31.25
69
0.792
0
0
0
0
0
0
0
0
37
0.296
0d3b796689fd089c3ff8084e44253e175cdfeb5a
5,965
py
Python
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
5
2022-03-11T15:28:04.000Z
2022-03-11T15:28:58.000Z
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from functools import lru_cache, cached_property from itertools import product, combinations from statistics import mean from typing import ( final, Final, Iterable, Dict, Collection, Optional, Tuple, Sequence ) from nltk.corpus import wordnet from pymagnitude import Magnitude ...
29.529703
79
0.599162
4,817
0.807544
0
0
4,792
0.803353
0
0
528
0.088516
0d3ee9cc24210f010fd549b409d1c00016953241
590
py
Python
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
import numpy as np def vec_reg_linear_grad(x, y,theta, lambda_): m = x.shape[0] x_t = x.transpose() error = x.dot(theta) - y nabela = x_t.dot(error) / m # print(nabela) nabela[1:] = nabela[1:] + theta[1:] * (lambda_ / m) return nabela if __name__ == "__main__": X = np.array([ ...
23.6
55
0.454237
0
0
0
0
0
0
0
0
25
0.042373
0d4039809a0d69d1289df06615122acf02856f92
12,032
py
Python
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
1
2021-12-23T17:55:06.000Z
2021-12-23T17:55:06.000Z
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
""" dolbyio_rest_apis.communications.monitor.models ~~~~~~~~~~~~~~~ This module contains the models used by the Dolby.io APIs. """ from dolbyio_rest_apis.core.helpers import get_value_or_default, in_and_not_none from typing import List class PagedResponse(dict): """Representation of a paged response.""" def...
38.688103
96
0.673953
11,750
0.976563
0
0
0
0
0
0
2,483
0.206366
0d412b3852785d25c5a8a4284b141fa51cb72aac
51,094
py
Python
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- """ Test the coverlovin2 project using pytest. Technique and recommendations taken from https://docs.pytest.org/en/latest/ Parts of this file follow breaks formatting conventions. Allowed since this is test code and since long lines of repetitive test cases deserve ex...
37.569118
151
0.55621
49,026
0.958794
0
0
34,462
0.673968
0
0
14,441
0.28242
0d41c887cb9f6706361db0802341cfc70a71a865
267
py
Python
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
#! /usr/bin/python """square.py -- Make some noise about a square. """ class Square: def __init__(self, length, width): self.length = length self.width = width def area(self): return self.length * self.width my_square = Square(5, 2) print my_square.area()
17.8
47
0.685393
145
0.543071
0
0
0
0
0
0
69
0.258427
0d44c925facd78aa51cb6104a890b5594d2404be
368
py
Python
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
5
2021-07-27T02:20:37.000Z
2022-03-30T07:53:30.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
31
2020-09-29T15:06:46.000Z
2022-02-17T09:51:16.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
6
2021-02-25T08:17:44.000Z
2022-02-16T17:09:35.000Z
from collections import UserDict class SuperDictOf(UserDict): def __eq__(self, other): if not isinstance(other, dict): return False for k, v in self.items(): if k not in other or v != other[k]: return False return True def __repr__(self): ...
21.647059
51
0.57337
332
0.902174
0
0
0
0
0
0
36
0.097826
0d44fefde3f6349cad5b1889e79b5643cbf2434d
7,740
py
Python
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2015-02-13T05:17:45.000Z
2017-12-19T17:16:35.000Z
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2017-06-15T09:02:21.000Z
2017-12-19T17:16:07.000Z
# # Copyright (c) 2010 Brian E. Granger # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option)...
32.658228
79
0.603488
6,467
0.83553
0
0
0
0
0
0
2,338
0.302067
0d4561c1593e781ac498d60ae3cfa527c1997b58
1,654
py
Python
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
3
2019-10-03T15:58:20.000Z
2021-11-02T16:46:36.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
1
2019-01-25T14:49:37.000Z
2019-05-13T16:45:32.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
null
null
null
import shutil import tempfile import warnings from os.path import dirname, join, realpath _filenames = [ "davies_pvalue.npz", "optimal_davies_pvalue.npz", "danilo_nan.npz", "bound.npz", "inf.npz", ] class data_file(object): def __init__(self, filenames): global _filenames sel...
27.114754
80
0.541717
1,431
0.865175
0
0
0
0
0
0
196
0.118501
0d46999df264f1cd3022334f4843567100fc4d39
1,738
py
Python
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
import datetime from Domain.Entities.Piece import Color class Game: board = None piece_factory = None start_date = None end_date = None pieces_white = None pieces_black = None captured_white = None captured_black = None finished = False winner = None turn = None curre...
25.940299
96
0.649597
1,679
0.966053
0
0
0
0
0
0
0
0
0d46cd9844d76b97b0c12ebdd843bc1779a4f31f
2,630
py
Python
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random import os path = "./Concept_Dataset_script_generated/" def make_geometric_objects(path, number, geom): path = path + geom + "/" if not os.path.exists(path): os.makedirs(path) for i in range(number): image = np.ones((240,240,3), np.uint...
26.565657
100
0.58365
0
0
0
0
0
0
0
0
452
0.171863
0d472fbb58989d43f332a99c7e755fd8ece3e7b1
149
py
Python
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
null
null
null
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
2
2021-03-31T19:19:56.000Z
2021-12-13T20:01:54.000Z
monthly.py
cpegasusb/nsewhizz
8c0768f57280c36269c209891a22c614177f3507
[ "MIT" ]
1
2019-12-09T11:43:47.000Z
2019-12-09T11:43:47.000Z
from src import * inputPath = 'data/daily/' outputPath = 'data/monthly/' formatter = FormatData() formatter.getMonthlyData(inputPath, outputPath)
16.555556
47
0.758389
0
0
0
0
0
0
0
0
28
0.187919
0d47b3c871b167725d4d584aad7ea2eef5991580
469
py
Python
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
1
2019-05-15T00:20:08.000Z
2019-05-15T00:20:08.000Z
from sklearn.ensemble import RandomForestClassifier import pandas as pd from models.model import Model class RfClass(Model): def __init__(self, model_params): super().__init__(model_params,'RF Classifier') def build_model(self): max_depth = self.model_params['max_depth'] n_estimators =...
26.055556
83
0.716418
354
0.754797
0
0
0
0
0
0
40
0.085288
0d49718c4750f5419b254d35be2e7597bfe67a84
3,742
py
Python
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
1
2016-06-28T11:08:54.000Z
2016-06-28T11:08:54.000Z
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2006 Jim Tilander import sys import os import string import re import base64 import zlib P4EXE = 'p4' NEWFILEPATTERN = re.compile( r'==== ([^#]+)#([\d]+) - (.+) ====(.*)$' ) MARKER = '================' USAGE = """Usage: p4diff <outputfile> [options] Produces input to p4patch O...
27.514706
143
0.546232
1,436
0.383752
0
0
0
0
0
0
918
0.245323
0d49b3c282c0d5aaafc4cee1e7dc907315c8b1b1
4,329
py
Python
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
"""Copyright 2014 Cyrus Dasadia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
42.441176
131
0.682144
3,532
0.815893
0
0
2,933
0.677524
0
0
1,819
0.420189
0d49e9c5572e12815fd80216fbeda6ddc1dd1c90
756
py
Python
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that msvs_configuration_attributes and msbuild_configuration_attributes are applied by using them to set the OutputDir...
23.625
76
0.723545
0
0
0
0
0
0
0
0
432
0.571429
0d4a9888ae820cac189843adcdb32cd2236a6d23
87
py
Python
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
1
2015-06-18T07:02:02.000Z
2015-06-18T07:02:02.000Z
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
NATIVE = 'XRP' ALPHABET = 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'
29
71
0.862069
0
0
0
0
0
0
0
0
65
0.747126
0d4c948f5a6b82f9e20993ba76cb0021d715d245
8,016
py
Python
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
""" # PyPortal referee stopwatch for figure skating competitions # Author(s): Don Korte # Module: code.py is mainline initialization and master loop # # github: https://github.com/dnkorte/skating_stopwatch.git # # MIT License # # Copyright (c) 2019 Don Korte # # Permission is hereby granted, free of charge, to any ...
45.288136
120
0.721806
0
0
0
0
0
0
0
0
3,656
0.456088
0d4ca2293273a6038abc8c6538534335292f79f2
2,746
py
Python
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
79
2015-03-03T15:06:20.000Z
2022-03-27T21:29:47.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
240
2015-01-04T02:59:12.000Z
2021-11-13T15:11:14.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
68
2015-03-02T12:23:12.000Z
2022-02-28T10:26:36.000Z
import pyspeckit as psk from pyspeckit.spectrum import models from astropy.table import Table from spectral_cube import SpectralCube import numpy as np import matplotlib.pyplot as plt import despotic import pyspeckit.spectrum.readers.read_class import os import shutil if not os.path.exists('ph2cogrid.fits'): if n...
47.344828
95
0.531682
0
0
0
0
0
0
0
0
609
0.221777
0d4cf207716d10d789ee993c688b562c50706913
730
py
Python
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
from flask import Flask, request, abort, jsonify app = Flask(__name__) @app.route('/', methods=['POST']) def upload(): if not request.is_json: abort(400) content = request.get_json() security_groups = set() for module in content['modules']: resources = module['resources'] sgs = [x...
26.071429
108
0.646575
0
0
0
0
586
0.80274
0
0
198
0.271233
0d4d30b6e6303645af1e2596d61513feb8c14510
7,537
py
Python
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
3
2022-03-16T21:02:44.000Z
2022-03-24T20:22:21.000Z
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
1
2022-03-18T15:42:35.000Z
2022-03-18T15:42:35.000Z
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
null
null
null
import pyrebase import atexit from neurosity.config import PyRebase class neurosity_sdk: def __init__(self, options): if ("device_id" not in options): raise ValueError("Neurosity SDK: A device ID is required to use the SDK") options.setdefault("environment", "production") self....
34.732719
106
0.631949
7,467
0.990712
0
0
0
0
0
0
1,354
0.179647
0d4e51a479e1c13cd74a1e9a830b7c2a69de31d5
2,624
py
Python
ChiantiPy/tools/sources.py
kdere/ChiantiPy
2d17585d64dd1ed5a92edc645d6c85176899c185
[ "0BSD", "MIT" ]
56
2016-01-14T15:34:50.000Z
2022-03-09T10:41:36.000Z
ChiantiPy/tools/sources.py
kdere/ChiantiPy
2d17585d64dd1ed5a92edc645d6c85176899c185
[ "0BSD", "MIT" ]
163
2015-11-12T16:01:22.000Z
2022-03-23T14:19:59.000Z
ChiantiPy/tools/sources.py
chianti-atomic/ChiantiPy
0d47cc1c5855ab0290d0c6bd43628722651a77c5
[ "0BSD", "MIT" ]
36
2015-11-12T16:03:47.000Z
2022-02-09T17:53:39.000Z
""" Blackbody temperature calculations """ import numpy as np import ChiantiPy.tools.constants as const class blackStar: """ Calculate blackbody radiation Parameters ---------- temperature : `~numpy.ndarray` Temperature in Kelvin radius : `~numpy.ndarray` Stellar radius in cm...
32.8
237
0.61814
1,307
0.498095
0
0
0
0
0
0
1,786
0.68064
0d4e92239a42a1e07fc1974d6169fd9d61b14b1d
6,854
py
Python
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=missing-module-docstring import json import logging import datetime try: HAS_TABULATE = True import tabulate except ImportError: HAS_TABULATE = False try: from dnac_rest_client import DnacRestClient except ImportError: from ansible_collection...
30.061404
136
0.678144
5,139
0.749781
0
0
0
0
0
0
3,101
0.452437
0d54823200e0f754f7348757b18b30672ceb3d3f
2,460
py
Python
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
1,235
2018-11-30T01:35:13.000Z
2022-03-31T03:47:48.000Z
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
91
2018-11-30T05:19:28.000Z
2022-03-14T12:38:44.000Z
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
332
2018-11-30T00:49:04.000Z
2022-03-30T01:57:54.000Z
# -*- coding: utf-8 -*- """ part-of-speech tagger __author__ = 'Jamie (jamie.lim@kakaocorp.com)' __copyright__ = 'Copyright (C) 2019-, Kakao Corp. All rights reserved.' """ ########### # imports # ########### from argparse import Namespace import json import logging import re import torch.nn.functional as F from ...
33.69863
122
0.610976
1,981
0.805285
0
0
0
0
0
0
702
0.285366
0d55134a6274e95c13bfff3b7a7a64f396c1258d
2,614
py
Python
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
''' List number of reviews for all Coffee Shops. ''' def query_all_shop_reviews(cursor, cnx): query = "SELECT reviews.shopID, coffee_shops.name, COUNT(*)FROM reviews JOIN coffee_shops ON reviews.shopID = coffee_shops.id GROUP BY shopID;" cursor.execute(query) myresult = cursor.fetchall() for result ...
31.878049
147
0.628921
0
0
0
0
0
0
0
0
1,434
0.548585
0d57187b1fe621fa44ec3e0138c833d459861dc4
41,128
py
Python
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # lib/eapeak/parse.py # # 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...
37.905991
195
0.705335
36,174
0.879547
0
0
0
0
0
0
10,149
0.246766
0d578e27a40851cab52e76a2682cae56e7f828c8
50,422
py
Python
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
from re import U from sys import unraisablehook from flask import Flask, g,render_template,flash,redirect,url_for,session,logging,request from flask_mysqldb import MySQL from wtforms import Form,StringField,TextAreaField,PasswordField,validators from passlib.hash import sha256_crypt from functools import wraps ...
42.948893
446
0.637618
0
0
0
0
48,148
0.945933
0
0
19,454
0.3822
b48f48a86a480a643b98de1d8c4d0bbf244c1ccb
6,116
py
Python
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
6
2017-10-31T20:54:37.000Z
2020-10-23T19:03:00.000Z
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
7
2020-03-24T16:14:34.000Z
2021-03-18T20:51:37.000Z
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
1
2019-07-29T07:55:49.000Z
2019-07-29T07:55:49.000Z
import argparse import logging import os.path import numpy as np import pandas as pd import patsy _logger = logging.getLogger(__name__) _basedir = os.path.abspath(os.path.dirname(__file__)) def create(data_path): target_fname = os.path.join(data_path, "customer.parquet") if os.path.exists(target_fname): ...
28.184332
88
0.630968
0
0
0
0
0
0
0
0
582
0.09516
b48f53faa5d22345fc859ae5353bddfdc3d64abb
1,745
py
Python
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import datetime from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor import pandas as pd from pollution import start_date, start_date_string, end_date, end_date_string, parameters from pollution import location_to_c...
37.934783
142
0.711748
0
0
0
0
0
0
0
0
341
0.195415
b4921f6ec217a9592cadd47f882fbef1d2caa7a8
1,015
py
Python
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
1
2018-06-17T19:54:47.000Z
2018-06-17T19:54:47.000Z
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
null
null
null
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
1
2018-03-03T16:17:38.000Z
2018-03-03T16:17:38.000Z
import django from os import path SECRET_KEY = 'not secret' INSTALLED_APPS = ('response_timeout', 'test') TEMPLATE_DEBUG = DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'response_timeout.db', }, } ROOT_URLCONF = 'test.urls' # Testing if django.VERSIO...
24.756098
67
0.714286
0
0
0
0
0
0
0
0
483
0.475862
b4955baf2c5dfc4e228d772814f138530642e06e
673
py
Python
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
null
null
null
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
1
2022-03-12T01:01:57.000Z
2022-03-12T01:01:57.000Z
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
null
null
null
from strawberry import mutation from gql.services.shopper import ShopperServices from gql.utils.authentication.shopper import ShopperAuth from gql.types.order import OrderStatusCode from asgiref.sync import sync_to_async services = ShopperServices() class ShopperMutation: @mutation @sync_to_async def lo...
28.041667
68
0.762259
418
0.6211
0
0
385
0.572065
0
0
0
0
b495d6846e8bc7d829b7b7db20d4bf0c49d9625c
4,648
py
Python
GUI/GtkGI/BaseFileDialogs.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
GUI/GtkGI/BaseFileDialogs.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
GUI/GtkGI/BaseFileDialogs.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
# # Python GUI - File selection dialogs - Gtk # import os from gi.repository import Gtk from GUI.Files import FileRef from GUI.AlertFunctions import confirm from GUI.Applications import application #------------------------------------------------------------------ class _FileDialog(Gtk.FileChooserDialog): def _...
28.169697
73
0.657917
1,243
0.267427
0
0
0
0
0
0
2,067
0.444707
b49783e2412d9102b2e721666330558cc70ae777
318
py
Python
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
2
2022-01-06T14:47:22.000Z
2022-02-02T01:55:49.000Z
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
null
null
null
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
null
null
null
{% extends "degree.py" %} {%- block checkArgs %} {%- if fn.alt_args %} {{ macro.argCheck(fn.alt_args) }} {% endif %} {%- if fn.args %} {{ macro.argCheck(fn.args) }} {% endif %} {%- if fn.opts %} {{ macro.optCheck() }} {% endif %} {%- endblock %}
24.461538
41
0.424528
0
0
0
0
0
0
0
0
11
0.034591
b497d0fd6c1a1150af128d25074c2daff3c48910
73
py
Python
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
2
2021-02-04T15:01:31.000Z
2021-02-25T16:08:43.000Z
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
1
2021-02-25T14:43:36.000Z
2021-02-25T14:43:36.000Z
from __future__ import absolute_import from .ContClass import ContClass
18.25
38
0.863014
0
0
0
0
0
0
0
0
0
0