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
6978d12598c10eff9db5a49764ac11fad521f00e
3,785
py
Python
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
4
2015-08-10T18:34:21.000Z
2018-05-15T20:43:15.000Z
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
null
null
null
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
2
2018-03-26T03:02:07.000Z
2021-11-10T21:09:48.000Z
"""Covers import of data downloaded from the `Meadows online behavior platform <https://meadows-research.com/>`_. For information on available file types see the meadows `documentation on downloads <https://meadows-research.com/documentation\ /researcher/downloads/>`_. """ from os.path import basename import numpy fr...
34.724771
76
0.624306
0
0
0
0
0
0
0
0
2,190
0.5786
697c06dc9db41cd68206db686a97122825b501db
2,406
py
Python
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
from ..common import WQXException from .SimpleContent import ( BinaryObjectFileName, BinaryObjectFileTypeCode ) from yattag import Doc class AttachedBinaryObject: """Reference document, image, photo, GIS data layer, laboratory material or other electronic object attached within a data exchange, as well as inform...
42.210526
189
0.778055
2,265
0.941397
0
0
556
0.231089
0
0
565
0.23483
697c55e84fe6b0046982d7cd4e08ffb0f7ad65ef
1,185
py
Python
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
import os import importlib import pathlib from tools.Aspect import ModuleAspectizer path = os.getcwd() dir_list = os.listdir(path) print(dir_list) aspect = ModuleAspectizer() print('new') exceptions = ['pyplot.py', 'setup.py', 'bootstrap.py', 'instrument.py', 'windows.py','pybloom.py', 'switcher.py','ma...
28.214286
71
0.566245
0
0
0
0
0
0
0
0
181
0.152743
697cb4df0fee5fb2e4b8167c3cfa2dce9ba8fde7
3,564
py
Python
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
1
2020-03-07T01:25:21.000Z
2020-03-07T01:25:21.000Z
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
null
null
null
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
null
null
null
import json import os import codecs from capitalization_train.puls_util import (separate_title_from_body, extract_and_capitalize_headlines_from_corpus, get_input_example, get_doc_ids_from_...
40.044944
355
0.62486
0
0
0
0
0
0
0
0
1,014
0.284512
697cf530cd2b74e55b1269aa017262e1f824f075
906
py
Python
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
import flask from flask import request, jsonify from flask_cors import CORS import math from wasmer import engine, Store, Module, Instance app = flask.Flask(__name__) CORS(app) @app.route('/add', methods=['POST']) def add(): store = Store() # Let's compile the module to be able to execute it! module = Module...
24.486486
91
0.674393
0
0
0
0
699
0.771523
0
0
390
0.430464
697d4986488b41c5f319419410ec5864bd44270b
1,815
py
Python
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
475
2021-03-13T16:33:36.000Z
2022-03-30T06:00:39.000Z
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
50
2021-03-17T04:48:20.000Z
2022-03-08T13:55:32.000Z
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
98
2021-03-14T12:12:49.000Z
2022-03-19T16:19:13.000Z
import unittest import torch from torchvision.models.resnet import BasicBlock, Bottleneck from nuscenes.prediction.models.backbone import ResNetBackbone, MobileNetBackbone class TestBackBones(unittest.TestCase): def count_layers(self, model): if isinstance(model[4][0], BasicBlock): n_convs ...
34.903846
82
0.665014
1,639
0.90303
0
0
0
0
0
0
113
0.062259
697e7c1a9cd37680897c57f1ed904545d8a6557a
379
py
Python
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @File : Qrbar_test.py import cv2 import numpy as np from pyzbar.pyzbar import decode img = cv2.imread('qrcode.png') for barcode in decode(img): print(barcode.data.decode('utf-8')) print(barcode.data) pts = np.array([barcode.polygon], np.int32) pts = pts....
22.294118
47
0.649077
0
0
0
0
0
0
0
0
86
0.226913
697eaf7d0770ae77e9ee86fbc0c32df38b9e8710
1,336
py
Python
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
import os import requests import time c = get_config() # noqa: F821 c.ServerApp.ip = "0.0.0.0" c.ServerApp.port = 8888 c.ServerApp.open_browser = False def get_gooogle_instance_attribute(attribute_name): try: response = requests.get( f'http://metadata.google.internal/computeMetadata/v1/in...
31.809524
107
0.694611
0
0
0
0
0
0
0
0
435
0.325599
697eefb12f54063cf9dd510696fac402496e0d04
1,346
py
Python
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
''' @Author: Jiangtao @Date: 2020-02-25 16:13:42 @LastEditors: Jiangtao @LastEditTime: 2020-07-06 14:01:11 @Description: ''' import numpy as np np.set_printoptions(threshold=np.inf) import torch import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) def mixup_data(x, y, dev...
24.035714
76
0.627043
0
0
0
0
0
0
0
0
194
0.144131
697efc5cbbfa3ced1db0b2aa6c18af2b642f623b
376
py
Python
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
#Среднее гармоническое #!/usr/bin/env python3 # -*- coding: utf-8 -*- def harmid(*args): if args and 0 not in args: a = 0 for item in args: a += 1 / item return len(args) / a else: return None if __name__ == "__main__": print(harmid()) print(harmi...
20.888889
37
0.507979
0
0
0
0
0
0
0
0
100
0.252525
6981e639a7cb29d73552df37a160915f52bb7650
1,187
py
Python
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
import argparse import sys import datetime import json import logging import re import random import requests import shutil from pyquery import PyQuery as pq def main(username, password): logging.basicConfig(filename='logging.log', level=logging.DEBUG) session = requests.session() uid, dtsg = login(ses...
21.981481
88
0.6369
0
0
0
0
0
0
0
0
370
0.31171
6982204821afb20223d10e2d3df47326e8eb7d6c
1,347
py
Python
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
1
2020-07-23T22:19:07.000Z
2020-07-23T22:19:07.000Z
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
3
2019-11-05T23:31:03.000Z
2020-05-17T03:03:11.000Z
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ """ from __future__ import print_function import argparse import sys from . import common from . import helper from . import vcs_tool PARAMS = {} PARAMS['this_script'] = common.get_script_name_from_filename(__file__) def setup_and_dispatch(): parser = argparse.ArgumentParser( ...
24.490909
98
0.672606
0
0
0
0
0
0
0
0
258
0.191537
69826f25e21c7ee10d4ed46dec1e788f5a40e5c2
411
py
Python
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
from django.db import models # from themall.models import Customer # Create your models here. class Seller(models.Model): email = models.OneToOneField('themall.Customer', on_delete=models.CASCADE, to_field='email') store_name = models.CharField(max_length=100) slug = models.SlugField(max_length=100) descrip...
25.6875
94
0.77129
312
0.759124
0
0
0
0
0
0
88
0.214112
698282c465446336db3bddcf6e550097754582e0
2,392
py
Python
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
369
2021-11-10T09:20:29.000Z
2022-03-30T06:36:58.000Z
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
149
2021-11-10T08:38:35.000Z
2022-03-31T23:01:52.000Z
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
41
2021-11-10T08:30:37.000Z
2022-03-29T08:12:46.000Z
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. # For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md import time import pytest from harness import log from harness.dom_parser_utils import * from harness.interface.defs import key_codes from bt_fixtures import * @pytest.mark.rt1051 @pyte...
44.296296
126
0.743729
0
0
0
0
2,095
0.875836
0
0
517
0.216137
6982d7079fdcf3a58b79ac8ac6683d28485634e2
1,147
py
Python
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
1
2020-10-28T21:36:13.000Z
2020-10-28T21:36:13.000Z
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
36
2020-10-14T15:12:21.000Z
2021-07-15T21:33:39.000Z
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
1
2020-10-22T07:50:59.000Z
2020-10-22T07:50:59.000Z
import smtplib, ssl, os from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from .html_template import emailHtml from .text_template import emailText port = 465 context = ssl.create_default_context() def sendEmail(emailData): adminUser = os.getenv("ADMIN_USERNAME") password =...
29.410256
79
0.691369
0
0
0
0
0
0
0
0
211
0.183958
6982db3c2b0bfe6506ab6f5f2f11222df69cf2f3
2,606
py
Python
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
35.69863
76
0.699156
1,934
0.742134
0
0
762
0.292402
0
0
1,036
0.397544
698463ef4506f64508769bee2b45a19e5d85e6f5
664
py
Python
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
82
2019-04-07T04:27:47.000Z
2022-02-04T07:35:58.000Z
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
43
2019-04-04T22:03:02.000Z
2020-08-25T10:11:44.000Z
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
54
2019-04-04T23:27:05.000Z
2022-01-30T14:27:16.000Z
#!/usr/bin/python3 from tornado import ioloop, web from tornado.options import define, options, parse_command_line from manifest import ManifestHandler from segment import SegmentHandler app = web.Application([ (r'/segment/.*',SegmentHandler), (r'/manifest/.*',ManifestHandler), ]) if __name__ == "__main__": ...
33.2
103
0.704819
0
0
0
0
0
0
0
0
154
0.231928
69862f6c28259ef99ed2c352bbd7e6f2c8b73e19
488
py
Python
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
3
2020-08-10T02:48:48.000Z
2021-09-28T16:04:05.000Z
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
null
null
null
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
null
null
null
import os for root, dirs, files in os.walk("/Users/coco/Documents/GitHub/pingcap-upstream/docs-cn", topdown=True): #for root, dirs, files in os.walk("/Users/coco/Documents/GitHub/python-side-projects/cofile", topdown=True): for name in files: if '.md' in name: # Check all markdown files filep...
44.363636
108
0.670082
0
0
0
0
0
0
0
0
293
0.60041
6986ba8ae10943bbe0a19ad1d63111e25988f309
499
py
Python
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
import requests import os import json import datetime ''' Pulls a dbml file from the API. User must manually add the file id, found in the 'response_ids.json' file generated from dbml_post_to_api.py ''' url='http://ec2-54-167-67-34.compute-1.amazonaws.com/api/dbmls' #url of the API id = '6192b1f31c2a512293f...
35.642857
141
0.735471
0
0
0
0
0
0
0
0
362
0.725451
698812bb45241671016a8d814e5ddf45839c4060
400
py
Python
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
2
2017-10-21T02:29:21.000Z
2017-10-21T02:35:50.000Z
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
null
null
null
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
null
null
null
import os from fabric.api import local, lcd def clean(): with lcd(os.path.dirname(__file__)): local("python3.6 setup.py clean --all") local("find . | grep -E \"(__pycache__|\.pyc$)\" | xargs rm -rf") def make(): local("python3.6 setup.py bdist_wheel") def deploy(): test() make() ...
17.391304
73
0.6
0
0
0
0
0
0
0
0
166
0.415
69883b20a029aa25992e0951d51a93d66e81c5a0
544
py
Python
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
from openpyxl import load_workbook def getRowCount(file): wb = load_workbook(file) sheet = wb.active return sheet.max_row def getColumnCount(file): wb = load_workbook(file) sheet = wb.active return sheet.max_column def getCellData(file, cell): wb = load_workbook(file) sheet = wb.acti...
20.923077
56
0.681985
0
0
0
0
0
0
0
0
0
0
6988900c33f8027bb264778efef7f83d1aa37d8a
200
py
Python
clancy_database/__init__.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
2
2020-07-10T14:17:03.000Z
2020-11-17T09:18:26.000Z
clancy_database/__init__.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
13
2019-03-17T13:27:31.000Z
2022-01-18T17:03:14.000Z
clancy_database/__init__.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
2
2019-10-19T16:37:44.000Z
2020-06-22T13:30:20.000Z
# List of tables that should be routed to this app. # Note that this is not intended to be a complete list of the available tables. TABLE_NAMES = ( 'lemma', 'inflection', 'aspect_pair', )
25
79
0.69
0
0
0
0
0
0
0
0
162
0.81
698a0fd866792d3cb9602f07e37599bb1277b5c0
399
py
Python
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
52
2021-10-12T11:23:45.000Z
2022-03-18T04:15:03.000Z
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
4
2021-10-15T13:58:42.000Z
2022-03-15T12:42:35.000Z
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
5
2021-11-18T05:41:23.000Z
2022-03-09T03:13:15.000Z
import argparse from differential.plugins.base import Base class Gazelle(Base): @classmethod def get_aliases(cls): return "gz", @classmethod def get_help(cls): return "Gazelle插件,适用于未经过大规模结构改动的Gazelle站点" @classmethod def add_parser(cls, parser: argparse.ArgumentParser) -> arg...
21
84
0.691729
374
0.855835
0
0
337
0.771167
0
0
77
0.176201
698b7be724cf94857043bb74abc7ca1f3ac92685
2,398
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
32
2019-04-12T08:01:34.000Z
2022-02-28T04:41:50.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
74
2019-07-09T16:35:20.000Z
2022-03-09T16:41:34.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
20
2019-01-28T07:41:02.000Z
2022-02-16T02:38:57.000Z
[ { 'date': '2014-01-01', 'description': 'Yılbaşı', 'locale': 'tr-TR', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2014-04-23', 'description': 'Ulusal Egemenlik ve Çocuk Bayramı', 'locale': 'tr-TR', 'notes': '', ...
22.622642
65
0.373228
0
0
0
0
0
0
0
0
1,333
0.549238
698cd08ed49ed9b0de22135fa30dfe66e162d6d7
2,512
py
Python
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
null
null
null
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
7
2021-03-18T21:23:29.000Z
2022-03-11T23:34:05.000Z
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
null
null
null
# pommerman/cli/run_battle.py # pommerman/agents/TensorFlowAgent/pit.py import atexit from datetime import datetime import os import random import sys import time import argparse import numpy as np from pommerman import helpers, make from TensorFlowAgent import TensorFlowAgent from pommerman import utility import ...
27.911111
149
0.644506
928
0.369427
0
0
0
0
0
0
388
0.154459
698cd0b8fccf1402595d508e1fedc902f75ee5a1
4,645
py
Python
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
171
2020-07-23T08:05:35.000Z
2022-03-15T02:55:51.000Z
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
5
2020-08-10T11:49:50.000Z
2021-03-30T11:44:02.000Z
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
22
2020-08-04T06:39:30.000Z
2021-08-20T20:14:36.000Z
import numpy as np import tensorflow as tf import unittest from xcenternet.model.evaluation.overlap import compute_overlap from xcenternet.model.evaluation.mean_average_precision import MAP class TestMeanAveragePrecision(unittest.TestCase): def setUp(self): self.map_bboxes = np.array( [ ...
44.238095
108
0.579763
4,402
0.947686
0
0
0
0
0
0
478
0.102906
698d47d5d2d82e65bd49fd87180ffd6403f3b50a
3,063
py
Python
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-31T12:36:26.000Z
2020-12-16T14:37:19.000Z
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
null
null
null
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-29T08:55:20.000Z
2019-07-30T06:36:56.000Z
# Copyright 2017 The Sonnet 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 applicable l...
37.353659
79
0.713353
2,032
0.663402
0
0
0
0
0
0
828
0.270323
699310c68f6ee0233724f50d1b8ed775e875d6af
714
py
Python
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy from reflex_msgs.msg import HandCommand from time import sleep from reflex_base_services import * class ReFlex_Polling(ReFlex): def __init__(self): super(ReFlex_Polling, self).__init__() def callback(data): # data is a HandCommand variable...
25.5
67
0.658263
479
0.670868
0
0
0
0
0
0
178
0.2493
699348aba420825cc6ea4bff1f7b57cdbe433c5f
7,630
py
Python
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
import os.path from typing import Sequence, Optional, Dict import numpy as np import pandas as pd from nk_sent2vec import Sent2Vec as _Sent2Vec from d3m import container, utils from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase from d3m.primitive_interfaces.base import CallResult from d3m.contai...
43.6
141
0.627261
7,032
0.921625
0
0
735
0.09633
0
0
2,877
0.377064
6993bc13615580474978d13c5f5a83a136a5e9f1
1,173
py
Python
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
15,577
2019-09-23T11:57:53.000Z
2022-03-31T18:21:48.000Z
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
16,476
2019-09-23T11:47:00.000Z
2022-03-31T23:06:01.000Z
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
3,633
2019-09-23T12:18:28.000Z
2022-03-31T15:55:48.000Z
import pytest from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) instance = cluster.add_instance('instance', stay_alive=True) @pytest.fixture(scope="module", autouse=True) def started_cluster(): try: cluster.start() yield cluster finally: cluster.shut...
29.325
91
0.700767
0
0
118
0.100597
164
0.139812
0
0
351
0.299233
6994f7160676cfbd47ee328ec88c4bf6782a75dc
7,694
py
Python
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
null
null
null
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
77
2018-10-30T11:28:16.000Z
2022-02-28T14:21:40.000Z
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
1
2019-07-17T14:08:22.000Z
2019-07-17T14:08:22.000Z
# -*- coding: utf-8 -*- # This software and supporting documentation are distributed by # Institut Federatif de Recherche 49 # CEA/NeuroSpin, Batiment 145, # 91191 Gif-sur-Yvette cedex # France # # This software is governed by the CeCILL-B license under # French law and abiding by the rules of dis...
36.990385
80
0.564856
0
0
0
0
0
0
0
0
4,033
0.524175
6996e841b5afa44da1500734468b8fd4e49b092a
1,000
py
Python
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
import random import pytest from model.contact import Contact def test_delete_some_contact(app, db, check_ui): if len(db.get_group_list()) == 0: app.contact.create(Contact(firstname="del_test")) with pytest.allure.step('Get contact list'): old_contacts = db.get_contact_list() with pytest...
38.461538
109
0.665
0
0
0
0
0
0
0
0
178
0.178
699795829a131e6b9aa0af884cefeacb0e7cc459
3,513
py
Python
slate/integrations/backtesting_py.py
EmersonDove/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
1
2022-03-05T17:08:24.000Z
2022-03-05T17:08:24.000Z
slate/integrations/backtesting_py.py
blankly-finance/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
null
null
null
slate/integrations/backtesting_py.py
blankly-finance/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
null
null
null
from operator import itemgetter import pandas as pd import slate from slate.integrations.common import b_id, DUMMY_METRICS, DUMMY_INDICATORS try: import backtesting except ImportError: pass class BacktestingPy: slate: 'slate.Slate' api: 'slate.api.API' def __init__(self, slate, api): s...
32.527778
84
0.519784
2,270
0.646171
0
0
0
0
0
0
417
0.118702
6997a5dd5ddb99540a69c42d6cd9bb74efb247be
1,029
py
Python
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
nome = [] temp = [] pesoMaior = pesoMenor = 0 count = 1 while True: temp.append(str(input('Nome: '))) temp.append(float(input('Peso: '))) if count == 1: pesoMaior = pesoMenor = temp[1] else: if temp[1] >= pesoMaior: pesoMaior = temp[1] elif temp[1] <= pesoMenor: ...
17.15
75
0.483965
0
0
0
0
0
0
0
0
170
0.165209
69982bd6d471edd0b6269e3319bea4f90a9b9ecf
8,685
py
Python
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
34
2018-11-14T09:38:00.000Z
2022-01-31T17:44:51.000Z
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
5
2018-09-11T14:52:35.000Z
2022-03-24T09:32:01.000Z
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
11
2018-10-24T12:42:59.000Z
2022-03-12T03:50:50.000Z
""" Run inference N times on the provided model given set of hyperparameters. Has the option to inject noise into the test set. """ import os import shutil import re import clize import mlflow import tensorflow as tf from clize.parameters import multi from ml_intuition.data.io import load_processed_h5 from ml_intuit...
47.983425
108
0.617041
0
0
0
0
0
0
0
0
3,643
0.419073
699880915260268a701c6708794dc8488d47a30e
3,629
py
Python
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
5
2021-01-06T10:59:53.000Z
2022-03-18T19:44:11.000Z
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
1
2021-01-03T18:54:47.000Z
2021-01-03T18:54:47.000Z
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
null
null
null
import json import os import numpy import pandas as pd from quantlaw.utils.beautiful_soup import create_soup from quantlaw.utils.files import ensure_exists from quantlaw.utils.pipeline import PipelineStep from statics import ( DE_REFERENCE_PARSED_PATH, DE_REG_AUTHORITY_EDGELIST_PATH, DE_REG_CROSSREFERENCE...
34.894231
87
0.610361
1,325
0.365114
0
0
0
0
0
0
513
0.141361
6998bcb96c84eee08055afeb394e0c10dfe55e4a
248
py
Python
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
from subprocess import check_output def main(): output = check_output(["hello-world"]).decode("utf-8").strip() if not output == "Hello, world!": raise Exception(output) print("SUCCESS") if __name__ == '__main__': main()
19.076923
66
0.633065
0
0
0
0
0
0
0
0
54
0.217742
69990cfc9621ec7083d9cf51ca5e92ac2a42610b
5,567
py
Python
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
10
2018-09-25T07:55:30.000Z
2020-05-08T15:01:56.000Z
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
null
null
null
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
5
2018-12-12T16:40:26.000Z
2020-10-29T01:24:07.000Z
from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier import select_data as sd ''' See paper: Sensors 2018, 18(4), 1055; https://doi.org/10.3390/s18041055 "Divide and Conquer-Base...
29.146597
96
0.60679
0
0
0
0
0
0
0
0
3,137
0.563499
699a6e09d5177bd3605891a0241caa9a9c07185e
22,060
py
Python
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
3
2019-07-09T20:02:48.000Z
2021-11-21T20:00:37.000Z
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
null
null
null
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
null
null
null
# ============================================================================ # # Copyright (c) 2007-2010 Integral Technology Solutions Pty Ltd, # All Rights Reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL...
66.047904
396
0.557752
0
0
0
0
0
0
0
0
7,257
0.328966
699b6cce7ca9f407c75af01305648159edf5193e
836
py
Python
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
10
2015-07-21T06:35:13.000Z
2021-10-30T00:15:05.000Z
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
null
null
null
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
5
2017-05-28T05:31:12.000Z
2020-09-01T03:08:01.000Z
from moment_plots import * np.random.seed(1) ts = test_series(500) * 10 # ts[::100] = 20 s = ts.cumsum() fig, axes = plt.subplots(3, 1, figsize=(8, 10), sharex=True) ax0, ax1, ax2 = axes ax0.plot(s.index, s.values) ax0.set_title('time series') ax1.plot(s.index, m.ewma(s, span=50, min_periods=1).values, color='b...
24.588235
80
0.673445
0
0
0
0
0
0
0
0
136
0.162679
699cbcc2ace017ff27f255949e80dc0e9759b091
3,564
py
Python
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
1
2020-07-17T09:40:11.000Z
2020-07-17T09:40:11.000Z
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
null
null
null
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
null
null
null
import sys # import the GameState of the game from Game.GameStateConnect4 import GameState # import all agents from Agents.MCTS import MCTSTree from Agents.Random import RandomAgent from Agents.AlphaBeta import AlphaBetaAgent # creates the board string for connect4 (full of zeros) start_board_list = ["000000 ...
34.941176
78
0.527217
2,850
0.799663
0
0
0
0
0
0
1,379
0.386925
699d582f893b5deba41c301c34bab99d402a5311
990
py
Python
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
null
null
null
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
1
2017-02-20T20:18:24.000Z
2017-02-21T09:59:05.000Z
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
null
null
null
import os from time import sleep import aiohttp from aiotg import Bot CLEVERBOT = "https://www.cleverbot.com/getreply?key={key}&input={q}" APERTIUM = 'http://batisteo.eu:2737/translate?markUnknown=no&q={q}&langpair={pair}' CLEVERBOT_TOKEN = os.environ['CLEVERBOT_TOKEN'] bot = Bot(api_token=os.environ['BOT_TOKEN']) ...
27.5
83
0.659596
0
0
0
0
456
0.460606
631
0.637374
229
0.231313
699dbfba09e4b2780e57672a2d8ecc9e67db0fe3
702
py
Python
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
28
2017-12-22T00:26:59.000Z
2022-01-22T14:51:33.000Z
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
18
2018-03-06T19:04:20.000Z
2022-03-21T15:06:30.000Z
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
28
2018-05-01T17:53:22.000Z
2022-03-28T09:56:59.000Z
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. import pkg_resources try: __version__ = pkg_resources.get_distribution(__name__).version except pkg_resources.DistributionNotFound: __version__ = None from .actions_component import ResilientComponent from .action_message import ActionMessageBase, Act...
43.875
124
0.837607
0
0
0
0
0
0
0
0
58
0.082621
69a1b349167847ac7ceea431928ed62a147ebb5e
2,838
py
Python
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
"""The transforms module contains all the transforms that can be added to the simulation of a model. These transforms are applied after the simulation, to incorporate nonlinear effects. """ import numpy as np from pandas import DataFrame class ThresholdTransform: """ThresholdTransform lowers the simulation whe...
33.785714
79
0.588795
2,594
0.914024
0
0
0
0
0
0
1,320
0.465116
69a221dbea88cda21e34ea6b75e9fa9d44aaad95
382
py
Python
pymockdata/datasets/default.py
vladcalin/py-mock-data-generator
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
2
2016-08-04T13:40:39.000Z
2016-10-07T20:30:07.000Z
pymockdata/datasets/default.py
vladcalin/py-mock-data-generator
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
2
2016-08-18T08:02:13.000Z
2016-08-18T08:09:18.000Z
pymockdata/datasets/default.py
vladcalin/pymockdata
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
null
null
null
import string from ..datasets import Dataset uppercase_ascii_letters = Dataset("uppercase_letter", None, string.ascii_uppercase) lowercase_ascii_letters = Dataset("lowercase_letter", None, string.ascii_lowercase) ascii_letters = Dataset("letter", None, string.ascii_letters) digits = Dataset("digit", None, string.dig...
34.727273
83
0.801047
0
0
0
0
0
0
0
0
62
0.162304
69a258f2db5f02076d0ecb02bb0169664304388a
1,732
py
Python
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
''' HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly people on social media. On the first day, half of those people (i.e., ) like the advertisement and each shares it with of their friends. At the beginning of the second day, people re...
28.866667
261
0.714781
0
0
0
0
0
0
0
0
1,406
0.811778
69a520f1866db12311093e17ff6200b4515c5bbf
33,413
py
Python
zss_debug_pb2.py
StopPointTeam/APF-RRT
2c68432d888b0886138c169e9fdcdfe0e41ca974
[ "MIT" ]
null
null
null
zss_debug_pb2.py
StopPointTeam/APF-RRT
2c68432d888b0886138c169e9fdcdfe0e41ca974
[ "MIT" ]
null
null
null
zss_debug_pb2.py
StopPointTeam/APF-RRT
2c68432d888b0886138c169e9fdcdfe0e41ca974
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: zss_debug.proto from google.protobuf import descriptor_pb2 from google.protobuf import symbol_database as _symbol_database from google.protobuf import reflection as _reflection from google.protobuf import message as _message from google.protobuf impo...
38.186286
3,019
0.671864
0
0
0
0
0
0
0
0
7,086
0.212073
69a62a85476caabb3a971fbe3016b560f4044dd1
1,055
py
Python
python2.7libs/hammer_tools/material_library/image.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
19
2019-10-09T13:48:11.000Z
2021-06-14T01:25:23.000Z
python2.7libs/hammer_tools/material_library/image.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
219
2019-10-08T14:44:48.000Z
2021-06-19T06:27:46.000Z
python2.7libs/hammer_tools/material_library/image.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
3
2020-02-14T06:18:06.000Z
2020-11-25T20:47:06.000Z
import os import subprocess import tempfile try: from PyQt5.QtCore import QBuffer, QIODevice, Qt from PyQt5.QtGui import QImage except ImportError: from PySide2.QtCore import QBuffer, QIODevice, Qt from PySide2.QtGui import QImage from .texture_format import TextureFormat def imageToBytes(image): ...
26.375
95
0.650237
0
0
0
0
0
0
0
0
101
0.095735
69a7b9c751b9a5826861e0006bc21e2f11a6d258
4,324
py
Python
pypipe/apps/utils/fill_treectrl.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
pypipe/apps/utils/fill_treectrl.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
pypipe/apps/utils/fill_treectrl.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
########################################################################## # PyPipe - Copyright (C) AGrigis, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ####...
34.592
79
0.623034
0
0
0
0
0
0
0
0
2,599
0.601064
69a8de3030cd088d725760a1b68e9101a4f8a5ca
7,945
py
Python
lib/crossmatching.py
leejjoon/pystilts
33980bf9e47d17bb981cce6b2861c6c750f245ba
[ "MIT" ]
4
2020-01-05T22:30:54.000Z
2022-02-12T11:47:07.000Z
lib/crossmatching.py
leejjoon/pystilts
33980bf9e47d17bb981cce6b2861c6c750f245ba
[ "MIT" ]
1
2019-07-03T21:41:03.000Z
2019-07-05T18:08:01.000Z
lib/crossmatching.py
leejjoon/pystilts
33980bf9e47d17bb981cce6b2861c6c750f245ba
[ "MIT" ]
4
2019-07-12T10:08:13.000Z
2021-05-27T15:57:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 02/06/17 at 2:24 PM @author: neil Program description here Version 0.0.0 """ from . import constants from . import utils from astropy import units as u # ============================================================================= # Define variables #...
40.126263
81
0.524984
0
0
0
0
0
0
0
0
6,272
0.789427
69a8f7469bd91e8fef4f395d57b80e477d69a8db
71
py
Python
gather/glasgowpicarro/__init__.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
gather/glasgowpicarro/__init__.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
gather/glasgowpicarro/__init__.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
from ._process import process_pipeline __all__ = ["process_pipeline"]
17.75
38
0.802817
0
0
0
0
0
0
0
0
18
0.253521
69a9022124889eb67322e46007049fa8b6adf0de
7,626
py
Python
underworld/conditions/_conditions.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
116
2015-09-28T10:30:55.000Z
2022-03-22T04:12:38.000Z
underworld/conditions/_conditions.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
561
2015-09-29T06:05:50.000Z
2022-03-22T23:37:29.000Z
underworld/conditions/_conditions.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
68
2015-12-14T21:57:46.000Z
2021-08-25T04:54:26.000Z
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~## ## ## ## This file forms part of the Underworld geophysics modelling application. ## ## ...
46.5
133
0.642014
6,697
0.87818
0
0
697
0.091398
0
0
5,079
0.666011
69a9b216e3287800556dfe1beff0b79e23f28b95
589
py
Python
tests/integration/cli/test_test.py
Ninjagod1251/ape
9b40ef15f25362ddb83cb6d571d60cab041fce4a
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_test.py
Ninjagod1251/ape
9b40ef15f25362ddb83cb6d571d60cab041fce4a
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_test.py
Ninjagod1251/ape
9b40ef15f25362ddb83cb6d571d60cab041fce4a
[ "Apache-2.0" ]
null
null
null
from .utils import skip_projects_except @skip_projects_except(["test"]) def test_test(ape_cli, runner): # test cases implicitly test built-in isolation result = runner.invoke(ape_cli, ["test"]) assert result.exit_code == 0, result.output @skip_projects_except(["test"]) def test_test_isolation_disabled(a...
34.647059
84
0.73854
0
0
0
0
543
0.921902
0
0
202
0.342954
69aa25aac3f98986c9dae15f4594f5b7600a1d64
302
py
Python
binary-list-generator.py
rj011/Hacktoberfest2021-4
0aa981d4ba5e71c86cc162d34fe57814050064c2
[ "MIT" ]
41
2021-10-03T16:03:52.000Z
2021-11-14T18:15:33.000Z
binary-list-generator.py
rj011/Hacktoberfest2021-4
0aa981d4ba5e71c86cc162d34fe57814050064c2
[ "MIT" ]
175
2021-10-03T10:47:31.000Z
2021-10-20T11:55:32.000Z
binary-list-generator.py
rj011/Hacktoberfest2021-4
0aa981d4ba5e71c86cc162d34fe57814050064c2
[ "MIT" ]
208
2021-10-03T11:24:04.000Z
2021-10-31T17:27:59.000Z
# Necro(ネクロ) # sidmishra94540@gmail.com def binaryGenerator(n): pad = [0]*n res = [] for _ in range(2**n): num = list(map(int, bin(_)[2:])) num = pad[:n-len(num)]+num res.append(num) return res if __name__ == '__main__': print(binaryGenerator(int(input())))
23.230769
40
0.566225
0
0
0
0
0
0
0
0
54
0.175325
69aa3b2782a1e4f6d886bd6026cd8fd3d7967980
403
py
Python
inferlo/testing/experiment_runner_test.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
1
2022-01-27T18:44:07.000Z
2022-01-27T18:44:07.000Z
inferlo/testing/experiment_runner_test.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
3
2022-01-23T18:02:30.000Z
2022-01-27T23:10:51.000Z
inferlo/testing/experiment_runner_test.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
1
2021-09-03T06:12:57.000Z
2021-09-03T06:12:57.000Z
# Copyright (c) The InferLO authors. All rights reserved. # Licensed under the Apache License, Version 2.0 - see LICENSE. from inferlo.testing import ExperimentRunner def test_run_experiment(): def my_experiment(x=0): return {"square": x * x, "cube": x * x * x} runner = ExperimentRunner() result...
28.785714
63
0.682382
0
0
0
0
0
0
0
0
145
0.359801
69aa3ee89e74fa93b0d496cda02d89ca7460fa6f
36,688
py
Python
py2sqlite/py2sql.py
ehorTL/py2sqlite
ff22f7475ff12182a0b976cfc321263d9eade1e5
[ "MIT" ]
null
null
null
py2sqlite/py2sql.py
ehorTL/py2sqlite
ff22f7475ff12182a0b976cfc321263d9eade1e5
[ "MIT" ]
null
null
null
py2sqlite/py2sql.py
ehorTL/py2sqlite
ff22f7475ff12182a0b976cfc321263d9eade1e5
[ "MIT" ]
null
null
null
""" Module implements simple ORM for SQLite. Module excludes using many-to-many and one-to-many relationships. Trying to save the same object (update) with another aggregated object will rewrite old object! """ import os import sqlite3 from array import array from inspect import * import builtins import sys import lo...
37.474974
118
0.605811
36,310
0.989697
0
0
11,039
0.300889
0
0
13,775
0.375463
69aa6a9832bfa5efcd1c75e435948454112b6d04
4,480
py
Python
azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
35
2018-12-01T05:42:30.000Z
2021-03-10T12:23:41.000Z
azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
81
2018-11-20T20:01:43.000Z
2019-09-06T23:57:17.000Z
azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
18
2019-03-19T18:53:43.000Z
2021-01-10T09:47:24.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """This mo...
50.909091
125
0.697321
3,928
0.876786
0
0
752
0.167857
0
0
3,318
0.740625
69aae4b96943444731c2e46c740aea18d36b17e4
3,833
py
Python
scripts/geodata/phrases/extraction.py
Fillr/libpostal
bce153188aff9fbe65aef12c3c639d8069e707fc
[ "MIT" ]
3,489
2015-03-03T00:21:38.000Z
2022-03-29T09:03:05.000Z
scripts/geodata/phrases/extraction.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
488
2015-05-29T23:04:28.000Z
2022-03-29T11:20:24.000Z
scripts/geodata/phrases/extraction.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
419
2015-11-24T16:53:07.000Z
2022-03-27T06:51:28.000Z
import csv import six from collections import defaultdict, Counter from itertools import izip, islice from geodata.text.tokenize import tokenize, token_types from geodata.encoding import safe_encode class FrequentPhraseExtractor(object): ''' Extract common multi-word phrases from a file/iterator using the ...
30.664
87
0.541612
3,629
0.946778
118
0.030785
473
0.123402
0
0
226
0.058962
69ab300f18ef0da610d86dd3cc10be0de5d8ac1c
10,093
py
Python
mestopy/mestopy.py
pyfar-seminar/mestopy
5eed12b12bb58965fa70be591d774f149fcbf6e8
[ "MIT" ]
null
null
null
mestopy/mestopy.py
pyfar-seminar/mestopy
5eed12b12bb58965fa70be591d774f149fcbf6e8
[ "MIT" ]
null
null
null
mestopy/mestopy.py
pyfar-seminar/mestopy
5eed12b12bb58965fa70be591d774f149fcbf6e8
[ "MIT" ]
null
null
null
from scipy.signal import oaconvolve from pyfar import Signal # Class to generate ref-Objects, that can bei part of the MeasurementChain class Device(object): """Class for device in MeasurementChain. This class holds methods and properties of a device in the 'MeasurementChain' class. A device can be e.g.,...
34.803448
83
0.574458
9,901
0.980977
0
0
1,779
0.176261
0
0
5,267
0.521847
69ab8661fbcc312d7db1662206a4daeec8008df9
482
py
Python
setup.py
Chichilele/algorithms
acc7470631b3ced2a8e126011af1e6ff1ff62394
[ "MIT" ]
null
null
null
setup.py
Chichilele/algorithms
acc7470631b3ced2a8e126011af1e6ff1ff62394
[ "MIT" ]
null
null
null
setup.py
Chichilele/algorithms
acc7470631b3ced2a8e126011af1e6ff1ff62394
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="algorithms", version="0.1", description="Implements a few optimisation algorithms", long_description=long_description, long_description_content_type="text/markdown", ur...
28.352941
83
0.728216
0
0
0
0
0
0
0
0
189
0.392116
69abcd377de6101c4d2a16cd4c46eea6090dd3cc
3,980
py
Python
bifurcation.py
lisah298/PathReducer
15f692c3a6712f26d64865d566ce4df5574c4a09
[ "MIT" ]
null
null
null
bifurcation.py
lisah298/PathReducer
15f692c3a6712f26d64865d566ce4df5574c4a09
[ "MIT" ]
1
2021-11-01T09:24:13.000Z
2021-11-01T09:24:13.000Z
bifurcation.py
lisah298/PathReducer
15f692c3a6712f26d64865d566ce4df5574c4a09
[ "MIT" ]
null
null
null
import pandas as pd import dimensionality_reduction_functions as dim_red from plotting_functions import colored_line_plot, colored_line_and_scatter_plot, colored_line_plot_projected_data # Number of PCA components ndim = 3 ####################################### EXAMPLE 4: CYCLOPROPYLIDENE BIFURCATION ###############...
71.071429
173
0.687437
0
0
0
0
0
0
0
0
2,556
0.642211
69ac02c93958a2c5e75638d8d378d755f3ed4ffb
2,381
py
Python
test/hummingbot/connector/exchange/bitfinex/test_bitfinex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
test/hummingbot/connector/exchange/bitfinex/test_bitfinex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
test/hummingbot/connector/exchange/bitfinex/test_bitfinex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
import asyncio import json from unittest import TestCase from aioresponses import aioresponses import hummingbot.connector.exchange.bitfinex.bitfinex_utils as utils from hummingbot.connector.exchange.bitfinex import BITFINEX_REST_URL from hummingbot.connector.exchange.bitfinex.bitfinex_api_order_book_data_source impo...
38.403226
117
0.684586
2,024
0.850063
0
0
1,413
0.593448
0
0
437
0.183536
69ac26e95480ef9ba55d71661068918c6ae8a979
2,445
py
Python
pandas_loc_iloc.py
tseth92/pandas_experiments
ab26e0c6004546bea1ebdbe8807a6d4014189e64
[ "MIT" ]
null
null
null
pandas_loc_iloc.py
tseth92/pandas_experiments
ab26e0c6004546bea1ebdbe8807a6d4014189e64
[ "MIT" ]
null
null
null
pandas_loc_iloc.py
tseth92/pandas_experiments
ab26e0c6004546bea1ebdbe8807a6d4014189e64
[ "MIT" ]
null
null
null
''' This code compares the loc and iloc in pandas dataframe ''' __author__ = "Tushar SEth" __email__ = "tusharseth93@gmail.com" import pandas as pd import timeit df_test = pd.DataFrame() tlist = [] tlist2 = [] ################ this code creates a dataframe df_test ################## ###############with two column...
33.958333
73
0.521472
0
0
0
0
0
0
0
0
1,807
0.739059
69ac2cf3f9092bced76304a2eff481f5a2f1681a
900
py
Python
lesson_6/task_2.py
ok-git/py_training
76ac3a48c41ed0f7fe308a64aae6b8e447041f70
[ "Apache-2.0" ]
null
null
null
lesson_6/task_2.py
ok-git/py_training
76ac3a48c41ed0f7fe308a64aae6b8e447041f70
[ "Apache-2.0" ]
null
null
null
lesson_6/task_2.py
ok-git/py_training
76ac3a48c41ed0f7fe308a64aae6b8e447041f70
[ "Apache-2.0" ]
null
null
null
""" Реализовать класс Road (дорога), в котором определить атрибуты: length (длина), width (ширина). Значения данных атрибутов должны передаваться при создании экземпляра класса. Атрибуты сделать защищенными. Определить метод расчета массы асфальта, необходимого для покрытия всего дорожного полотна. Использовать формулу...
37.5
116
0.761111
329
0.253662
0
0
0
0
0
0
935
0.720894
69ac8493ca58590ab03c7e2d5c8b17f4c7d44722
2,897
py
Python
cmsc_210/examples/lecture_07/war.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
cmsc_210/examples/lecture_07/war.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
5
2022-01-16T23:30:12.000Z
2022-01-30T23:03:21.000Z
cmsc_210/examples/lecture_07/war.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
from functools import total_ordering from random import shuffle class Player: def __init__(self, name): self.name = name self.hand = [] def __str__(self): return self.name def play(self): return self.hand.pop() def receive(self, cards): for card in cards: ...
26.099099
82
0.548498
2,715
0.937176
0
0
328
0.113221
0
0
262
0.090438
69acb4ac84d0426898b7a3cffed434b1a66dce6c
1,191
py
Python
paper/curve_context_acc.py
INK-USC/procedural-extraction
6b53d8a03bdd24560e96960fd0eddeee9ff8bc6f
[ "Apache-2.0" ]
5
2019-09-11T20:29:35.000Z
2022-03-27T13:16:51.000Z
paper/curve_context_acc.py
INK-USC/procedural-extraction
6b53d8a03bdd24560e96960fd0eddeee9ff8bc6f
[ "Apache-2.0" ]
null
null
null
paper/curve_context_acc.py
INK-USC/procedural-extraction
6b53d8a03bdd24560e96960fd0eddeee9ff8bc6f
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator cz2 = (0.7, 0.7, 0.7) cz = (0.3, 0.3, 0.3) cy = (0.7, 0.4, 0.12) ci = (0.1, 0.3, 0.5) ct = (0.7, 0.2, 0.1) ax = plt.figure(figsize=(5,4)).gca() ax.xaxis.set_major_locator(MaxNLocator(integer=True)) ax.yaxis.grid(True) ax.set_...
24.306122
67
0.583543
0
0
0
0
0
0
0
0
202
0.169605
69ad4f7f5bd628e678130664a2787d7ddc169bf0
3,079
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/ATI/pn_triangles.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/ATI/pn_triangles.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/ATI/pn_triangles.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension ATI.pn_triangles Overview (from the spec) ATI_pn_triangles provides a path for enabling the GL to internally tessellate input geometry into curved patches. The extension allows the user to tune the amount of tessellation to be performed on each triangle as a global state value. The inten...
48.873016
116
0.815525
0
0
0
0
0
0
0
0
1,568
0.509256
69ad7163f8d258608d0f58bb9ccc2e396ca4ee6f
2,325
py
Python
setup.py
Wi11iamDing/toad
3b22cc9a5d83255d394da483ec47b0de5f862c07
[ "MIT" ]
1
2021-04-29T08:59:26.000Z
2021-04-29T08:59:26.000Z
setup.py
lijihong111/toad
3b22cc9a5d83255d394da483ec47b0de5f862c07
[ "MIT" ]
null
null
null
setup.py
lijihong111/toad
3b22cc9a5d83255d394da483ec47b0de5f862c07
[ "MIT" ]
null
null
null
import os import numpy as np from setuptools import setup, find_packages, Extension NAME = 'toad' CURRENT_PATH = os.path.abspath(os.path.dirname(__file__)) VERSION_FILE = os.path.join(CURRENT_PATH, NAME, 'version.py') def get_version(): ns = {} with open(VERSION_FILE) as f: exec(f.read(), ns) r...
28.012048
109
0.610753
0
0
0
0
0
0
0
0
677
0.291183
69adc16bfc161b3aeeeb29f573076a958b052631
9,071
py
Python
tvm_benchmark/test_resnet_inference.py
adwwsd/HAWQ
a8e40be0edd336b2554d88691b18ed51e7d32bf0
[ "MIT" ]
null
null
null
tvm_benchmark/test_resnet_inference.py
adwwsd/HAWQ
a8e40be0edd336b2554d88691b18ed51e7d32bf0
[ "MIT" ]
null
null
null
tvm_benchmark/test_resnet_inference.py
adwwsd/HAWQ
a8e40be0edd336b2554d88691b18ed51e7d32bf0
[ "MIT" ]
null
null
null
import torch import tvm from tvm import autotvm from tvm import relay from tvm.contrib import download from tvm.contrib.debugger import debug_runtime from PIL import Image import matplotlib.pyplot as plt import numpy as np import argparse import os from os.path import join, isfile import sys import json, requests fro...
40.86036
157
0.601698
0
0
0
0
0
0
0
0
2,400
0.264579
69ae65d2b4f7488006dab65f0a909611be5333f5
2,061
py
Python
felapps/apps/dataworkshop/dataworkshop.py
archman/felapps
89532a592070d2a0cf07f0f2b4c723cbf1c1bd33
[ "MIT" ]
2
2018-04-01T14:37:39.000Z
2021-03-12T04:16:12.000Z
felapps/apps/dataworkshop/dataworkshop.py
Archman/felapps
89532a592070d2a0cf07f0f2b4c723cbf1c1bd33
[ "MIT" ]
null
null
null
felapps/apps/dataworkshop/dataworkshop.py
Archman/felapps
89532a592070d2a0cf07f0f2b4c723cbf1c1bd33
[ "MIT" ]
2
2016-07-10T11:14:33.000Z
2019-07-06T05:42:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ DataWorkshop: application to handle data, e.g. generated from imageviewer Author: Tong Zhang Created: Sep. 23rd, 2015 """ from ...utils import datautils from ...utils import miscutils from ...utils import funutils from ...utils import resutils import wx import wx.lib...
34.35
212
0.675885
606
0.294032
0
0
0
0
0
0
751
0.364386
69aeb1d75e0847f7d192e1d5f127d4458a56ea39
2,953
py
Python
bayesian/auth.py
ameenfarooqi/fabric8-analytics-server
6e34d8199d33223a25e33511c194679865a712ca
[ "Apache-2.0" ]
null
null
null
bayesian/auth.py
ameenfarooqi/fabric8-analytics-server
6e34d8199d33223a25e33511c194679865a712ca
[ "Apache-2.0" ]
14
2020-10-11T12:56:38.000Z
2020-10-28T06:36:45.000Z
bayesian/auth.py
ameenfarooqi/fabric8-analytics-server
6e34d8199d33223a25e33511c194679865a712ca
[ "Apache-2.0" ]
19
2020-10-12T05:14:23.000Z
2020-10-19T13:25:29.000Z
"""Authorization token handling.""" import logging from functools import wraps from flask import g, request from requests import get from pydantic.error_wrappers import ValidationError from bayesian.utility.user_utils import get_user, UserException, UserNotFoundException from bayesian.utility.v2.sa_models import Header...
40.452055
94
0.585168
0
0
0
0
1,660
0.56214
0
0
1,122
0.379953
69af023e0e9453a8bc99e8621f0b707e6285701a
96
py
Python
FLOW007.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
1
2022-01-23T08:13:17.000Z
2022-01-23T08:13:17.000Z
FLOW007.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
null
null
null
FLOW007.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
null
null
null
tcase = int(input()) while(tcase): str= input() [::-1] print(int(str)) tcase -= 1
12
23
0.510417
0
0
0
0
0
0
0
0
0
0
69b2168377003bbbd37472a46ea76cd577d96277
1,082
py
Python
setup.py
ysatapathy23/TomoEncoders
6f3f8c6dd088e4df968337e33a034a42d1f6c799
[ "BSD-3-Clause" ]
null
null
null
setup.py
ysatapathy23/TomoEncoders
6f3f8c6dd088e4df968337e33a034a42d1f6c799
[ "BSD-3-Clause" ]
null
null
null
setup.py
ysatapathy23/TomoEncoders
6f3f8c6dd088e4df968337e33a034a42d1f6c799
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: atekawade """ from setuptools import setup, find_packages setup( # Needed to silence warnings (and to be a worthwhile package) name='tomo_encoders', url='https://github.com/aniketkt/TomoEncoders', author='Aniket Tekawade', author_email='a...
38.642857
250
0.682994
0
0
0
0
0
0
0
0
761
0.703327
69b25733b76fd553592c2532c0ede532a6527a95
17,328
py
Python
reports/executive_fullfilment_requests/entrypoint.py
ireneperezddc/connect-reports
9a7d56255f3ea4989d28e45a759e04315eef5504
[ "Apache-2.0" ]
7
2021-03-31T13:45:10.000Z
2022-02-08T05:48:21.000Z
reports/executive_fullfilment_requests/entrypoint.py
ireneperezddc/connect-reports
9a7d56255f3ea4989d28e45a759e04315eef5504
[ "Apache-2.0" ]
null
null
null
reports/executive_fullfilment_requests/entrypoint.py
ireneperezddc/connect-reports
9a7d56255f3ea4989d28e45a759e04315eef5504
[ "Apache-2.0" ]
8
2021-01-14T13:57:52.000Z
2022-02-18T09:12:52.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2021, CloudBlue # All rights reserved. # import pathlib from datetime import date from tempfile import NamedTemporaryFile from collections import namedtuple import math import copy from connect.client import R from plotly import graph_objects as go from ..utils import ( c...
32.029575
100
0.590028
0
0
407
0.023488
0
0
0
0
5,549
0.320233
69b4c48501471d49ec2d4fd4b79c4ecc8adb3282
204
py
Python
util/data/gen/BloonsTD6.exe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/BloonsTD6.exe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/BloonsTD6.exe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'AmdPowerXpressRequestHighPerformance', 'address': '0x7ff66dd14004'}, {'type': 'function', 'name': 'NvOptimusEnablement', 'address': '0x7ff66dd14000'}]
102
191
0.70098
0
0
0
0
0
0
0
0
153
0.75
69b54d1f2fc387e83bb92bd862115b2d1c6f2876
7,728
py
Python
ROS/src/spiderplan_proxy/src/spiderplan_proxy.py
uwe-koeckemann/SpiderPlan
ae8666967ee9e4d3563c43934823f65e72f1d9ce
[ "MIT" ]
null
null
null
ROS/src/spiderplan_proxy/src/spiderplan_proxy.py
uwe-koeckemann/SpiderPlan
ae8666967ee9e4d3563c43934823f65e72f1d9ce
[ "MIT" ]
null
null
null
ROS/src/spiderplan_proxy/src/spiderplan_proxy.py
uwe-koeckemann/SpiderPlan
ae8666967ee9e4d3563c43934823f65e72f1d9ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Copyright (c) 2015 Uwe Köckemann <uwe.kockemann@oru.se> #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 l...
29.38403
118
0.749482
618
0.079959
0
0
0
0
0
0
1,987
0.257084
69b6e34070f0bb19eb726399767000b584136a44
6,979
py
Python
components/gpio_control/GPIODevices/simple_button.py
steffakasid/RPi-Jukebox-RFID
33520f81837710d88fa849c033676f274ebf4b59
[ "MIT" ]
1,010
2017-03-09T10:36:41.000Z
2022-03-31T01:23:47.000Z
components/gpio_control/GPIODevices/simple_button.py
steffakasid/RPi-Jukebox-RFID
33520f81837710d88fa849c033676f274ebf4b59
[ "MIT" ]
1,205
2017-06-08T11:12:47.000Z
2022-03-27T19:02:06.000Z
components/gpio_control/GPIODevices/simple_button.py
steffakasid/RPi-Jukebox-RFID
33520f81837710d88fa849c033676f274ebf4b59
[ "MIT" ]
421
2017-05-13T19:39:57.000Z
2022-03-27T21:18:03.000Z
import time from signal import pause import logging import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) logger = logging.getLogger(__name__) map_edge_parse = {'falling':GPIO.FALLING, 'rising':GPIO.RISING, 'both':GPIO.BOTH} map_pull_parse = {'pull_up':GPIO.PUD_UP, 'pull_down':GPIO.PUD_DOWN, 'pull_off':GPIO.PUD_OFF} map_edg...
38.136612
165
0.649233
4,381
0.62774
0
0
704
0.100874
0
0
1,458
0.208912
69b843ce0465649e724dde4ea3055810a4e4c8f5
10,308
py
Python
pyatdllib/ui/immaculater.py
lisagorewitdecker/immaculater
fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7
[ "Apache-2.0" ]
null
null
null
pyatdllib/ui/immaculater.py
lisagorewitdecker/immaculater
fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7
[ "Apache-2.0" ]
null
null
null
pyatdllib/ui/immaculater.py
lisagorewitdecker/immaculater
fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """A command-line interface to pyatdl, yet another to-do list. The most important command is 'help'. The key notions are Action, Context, Folder, and Project. The commands use the filesystem idiom. Actions and Contexts are like regular files. Projects and Folders are like directories. This was the...
31.048193
110
0.695479
2,708
0.262709
0
0
0
0
0
0
4,366
0.423555
69b88545c388c1a97049f68a3c5994f40ec7a709
426
py
Python
setup.py
raghavsub/gtkpass
1361e1d3204cfc8d51e6027a4f76d038a1ee5d43
[ "MIT" ]
1
2017-10-30T21:37:06.000Z
2017-10-30T21:37:06.000Z
setup.py
raghavsub/gtkpass
1361e1d3204cfc8d51e6027a4f76d038a1ee5d43
[ "MIT" ]
10
2017-08-07T17:51:54.000Z
2017-11-07T17:17:39.000Z
setup.py
raghavsub/gtkpass
1361e1d3204cfc8d51e6027a4f76d038a1ee5d43
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gtkpass', version='0.2.7', description='A GTK+ 3 program for the standard unix password manager', url='http://github.com/raghavsub/gtkpass', author='Raghav Subramaniam', author_email='raghavs511@gmail.com', license='MIT', packages=['gtk...
32.769231
76
0.661972
0
0
0
0
0
0
0
0
210
0.492958
69b8d80a3ae8551bbbe6e3727e00151e698e746d
2,556
py
Python
restApi/resources/rides.py
Kitingu/restplus
f9f5d36f376b08bed4305020259f2be7d689705a
[ "MIT" ]
null
null
null
restApi/resources/rides.py
Kitingu/restplus
f9f5d36f376b08bed4305020259f2be7d689705a
[ "MIT" ]
5
2019-10-21T17:05:46.000Z
2021-06-01T22:35:47.000Z
restApi/resources/rides.py
Kitingu/restplus
f9f5d36f376b08bed4305020259f2be7d689705a
[ "MIT" ]
1
2018-09-04T14:17:43.000Z
2018-09-04T14:17:43.000Z
from flask_restplus import Resource, fields, Namespace from restApi.models.rides import Rides from restApi.helpers.ride_helpers import RideParser from .auth import token_required Ride_object = Rides() ride_api = Namespace("rides", description="this are routes that allow users to create get or delete a ride") ride_of...
36
117
0.586072
1,727
0.675665
0
0
1,149
0.449531
0
0
535
0.209311
69b8ea15180398bc6ee7cd290eed58c81d9257b6
27,827
py
Python
services/ui_backend_service/tests/integration_tests/tasks_test.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
103
2019-12-04T04:41:08.000Z
2022-03-29T16:20:45.000Z
services/ui_backend_service/tests/integration_tests/tasks_test.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
42
2019-12-16T23:15:44.000Z
2022-02-18T17:33:32.000Z
services/ui_backend_service/tests/integration_tests/tasks_test.py
valayDave/metaflow-service
65e19aef268e9e707522ee0695fd4ebaee42aa69
[ "Apache-2.0" ]
36
2019-12-12T17:46:46.000Z
2022-01-21T04:53:24.000Z
import pytest import time from .utils import ( init_app, init_db, clean_db, add_flow, add_run, add_step, add_task, add_artifact, _test_list_resources, _test_single_resource, add_metadata, get_heartbeat_ts ) pytestmark = [pytest.mark.integration_tests] # Fixtures begin @pytest.fixture def cli(loop, aiohtt...
47.084602
212
0.71215
0
0
100
0.003594
204
0.007331
25,716
0.924138
10,198
0.366479
69bc563b00c3a0dca8969daf6eb573ab788fb25a
2,033
py
Python
apps/my_app/handlers.py
opaniagu/fastapi_mongodb
2a58c89a16efca8f656cc64d923e1eecb4120a80
[ "MIT" ]
null
null
null
apps/my_app/handlers.py
opaniagu/fastapi_mongodb
2a58c89a16efca8f656cc64d923e1eecb4120a80
[ "MIT" ]
null
null
null
apps/my_app/handlers.py
opaniagu/fastapi_mongodb
2a58c89a16efca8f656cc64d923e1eecb4120a80
[ "MIT" ]
null
null
null
import datetime import fastapi import pymongo import pymongo.errors import pymongo.results from apps.common.enums import CodeAudiences from apps.common.handlers import PasswordsHandler, TokensHandler from fastapi_mongodb.exceptions import HandlerException, RepositoryException from fastapi_mongodb.handlers...
35.051724
119
0.745696
975
0.479587
0
0
0
0
787
0.387113
155
0.076242
69bda50be48c89c9d6e09da95c86cfb87230b936
25,971
py
Python
trainer.py
icrdr/3D-UNet-Renal-Anatomy-Extraction
50b16151730ec7868b3d3482e4db31e4c1e25412
[ "MIT" ]
null
null
null
trainer.py
icrdr/3D-UNet-Renal-Anatomy-Extraction
50b16151730ec7868b3d3482e4db31e4c1e25412
[ "MIT" ]
null
null
null
trainer.py
icrdr/3D-UNet-Renal-Anatomy-Extraction
50b16151730ec7868b3d3482e4db31e4c1e25412
[ "MIT" ]
null
null
null
import torch from torch.optim import lr_scheduler from tqdm import tqdm from torchsummary import summary from torch.utils.tensorboard import SummaryWriter from apex import amp from loss import dice from pathlib import Path from data import CaseDataset, load_case, save_pred, \ orient_crop_case, regions_crop_case, re...
36.020804
91
0.534558
8,713
0.335386
0
0
0
0
0
0
4,438
0.17083
69bf0e6bb6725641c106635237f21305eb007c18
8,285
py
Python
workers/standard_methods.py
mahmoudthabit/augur
0370dc983279ad80bff3f731a1a65ca6c8d27245
[ "MIT" ]
null
null
null
workers/standard_methods.py
mahmoudthabit/augur
0370dc983279ad80bff3f731a1a65ca6c8d27245
[ "MIT" ]
null
null
null
workers/standard_methods.py
mahmoudthabit/augur
0370dc983279ad80bff3f731a1a65ca6c8d27245
[ "MIT" ]
null
null
null
""" Helper methods constant across all workers """ import requests, datetime, time import sqlalchemy as s import pandas as pd def connect_to_broker(self, logging): connected = False for i in range(5): try: logging.info("attempt {}".format(i)) if i > 0: time.sleep...
44.783784
159
0.646952
0
0
0
0
0
0
0
0
3,216
0.388171
69c0d64af0daa3c05b8a8e97e012bb20be7a3134
147
py
Python
study/python-brasil/exercises/sequential-structure/sequential-structure - 006.py
gustavomarquezinho/python
e36779aa5c4bfaf88c587f05db5bd447fd41e4a2
[ "MIT" ]
null
null
null
study/python-brasil/exercises/sequential-structure/sequential-structure - 006.py
gustavomarquezinho/python
e36779aa5c4bfaf88c587f05db5bd447fd41e4a2
[ "MIT" ]
null
null
null
study/python-brasil/exercises/sequential-structure/sequential-structure - 006.py
gustavomarquezinho/python
e36779aa5c4bfaf88c587f05db5bd447fd41e4a2
[ "MIT" ]
null
null
null
# 006 - Faça um programa que peça o raio de um círculo, calcule e mostre sua área. print(f'Área: {3.14 * pow(float(input("Raio círculo: ")), 2)}')
49
82
0.673469
0
0
0
0
0
0
0
0
144
0.941176
69c0ea03d21d79afcf9d113b44197d452321d747
16,034
py
Python
Createmodele_V13_1.1.py
pad-awan/domotiquesante
c91d97065bfcf9816367263266c608cfdc0c8009
[ "CNRI-Python" ]
null
null
null
Createmodele_V13_1.1.py
pad-awan/domotiquesante
c91d97065bfcf9816367263266c608cfdc0c8009
[ "CNRI-Python" ]
null
null
null
Createmodele_V13_1.1.py
pad-awan/domotiquesante
c91d97065bfcf9816367263266c608cfdc0c8009
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 09 22:25:07 2019 @author: arnaudhub """ #import pandas as pd from sqlalchemy import create_engine from sqlalchemy.sql import text import configparser,os from urllib import parse #import sql.connector config = configparser.ConfigParser() config.re...
43.102151
137
0.674192
0
0
0
0
0
0
0
0
13,998
0.872802
69c5657dfbcc05e24b0f6da32143538ee6f1886c
10,002
py
Python
multiml/agent/pytorch/pytorch_asngnas.py
UTokyo-ICEPP/multiml
3dce96492c90bb2bc9c2d4ccfd66eb13d652a520
[ "Apache-2.0" ]
7
2021-04-16T03:05:25.000Z
2021-12-17T06:04:13.000Z
multiml/agent/pytorch/pytorch_asngnas.py
UTokyo-ICEPP/multiml
3dce96492c90bb2bc9c2d4ccfd66eb13d652a520
[ "Apache-2.0" ]
6
2021-04-21T10:17:14.000Z
2021-06-30T06:18:41.000Z
multiml/agent/pytorch/pytorch_asngnas.py
UTokyo-ICEPP/multiml
3dce96492c90bb2bc9c2d4ccfd66eb13d652a520
[ "Apache-2.0" ]
5
2021-04-15T06:38:04.000Z
2021-09-05T14:30:05.000Z
from multiml import logger from multiml.task.pytorch import PytorchASNGNASTask from multiml.task.pytorch import PytorchASNGNASBlockTask from . import PytorchConnectionRandomSearchAgent from multiml.task.pytorch.datasets import StoreGateDataset, NumpyDataset import numpy as np class PytorchASNGNASAgent(PytorchConnect...
40.008
100
0.623075
9,721
0.971906
0
0
5,225
0.522396
0
0
1,604
0.160368
69c56874d74c15c70229584ec7332f3dc283f7c2
393
py
Python
tests/integration/controller/fixtures.py
jlamoso/petisco
bd71d28a5c0ba6ea789fa7c1529e7a2d108da53f
[ "MIT" ]
null
null
null
tests/integration/controller/fixtures.py
jlamoso/petisco
bd71d28a5c0ba6ea789fa7c1529e7a2d108da53f
[ "MIT" ]
null
null
null
tests/integration/controller/fixtures.py
jlamoso/petisco
bd71d28a5c0ba6ea789fa7c1529e7a2d108da53f
[ "MIT" ]
null
null
null
import os import pytest from petisco import FlaskApplication SWAGGER_DIR = os.path.dirname(os.path.abspath(__file__)) + "/application/" app = FlaskApplication(application_name="petisco", swagger_dir=SWAGGER_DIR).get_app() @pytest.fixture def client(): with app.app.test_client() as c: yield c @pytest...
17.863636
85
0.732824
0
0
66
0.167939
161
0.409669
0
0
32
0.081425
69c5c7a7d8c414585a90c6896cbf35b9061ae450
6,136
py
Python
authors/apps/authentication/tests/test_register.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/tests/test_register.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
20
2018-11-26T16:22:46.000Z
2018-12-21T10:08:25.000Z
authors/apps/authentication/tests/test_register.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
3
2019-01-24T15:39:42.000Z
2019-09-25T17:57:08.000Z
from rest_framework import status from django.urls import reverse from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from ..models import User from ..token import account_activation_token # local import from authors.base_test_config import TestConfiguration class TestRe...
31.306122
107
0.602347
5,828
0.94965
0
0
0
0
0
0
1,474
0.240182
69c74da7d507a228c1bd9d4078bd51d786cb3f7d
2,192
py
Python
web_app/routes/stats_routes.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
null
null
null
web_app/routes/stats_routes.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
3
2021-06-08T21:32:20.000Z
2022-03-12T00:32:35.000Z
web_app/routes/stats_routes.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
null
null
null
from sklearn.datasets import load_iris from sklearn.linear_model import LogisticRegression from flask import Blueprint, jsonify, request, flash, redirect, render_template from web_app.models import User from web_app.statsmodels import load_model from web_app.services.basilica_service import connection as basilica_con...
37.793103
137
0.728102
0
0
0
0
1,809
0.825274
0
0
425
0.193887
69c769830c272d7a9f4d246a127dbb4b3989b330
1,399
py
Python
tests/unit/test_parameters/test_geometric_parameters.py
manjunathnilugal/PyBaMM
65d5cba534b4f163670e753714964aaa75d6a2d2
[ "BSD-3-Clause" ]
330
2019-04-17T11:36:57.000Z
2022-03-28T16:49:55.000Z
tests/unit/test_parameters/test_geometric_parameters.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
1,530
2019-03-26T18:13:03.000Z
2022-03-31T16:12:53.000Z
tests/unit/test_parameters/test_geometric_parameters.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
178
2019-03-27T13:48:04.000Z
2022-03-31T09:30:11.000Z
# # Tests for the standard parameters # import pybamm import unittest class TestGeometricParameters(unittest.TestCase): def test_macroscale_parameters(self): geo = pybamm.geometric_parameters L_n = geo.L_n L_s = geo.L_s L_p = geo.L_p L_x = geo.L_x l_n = geo.l_n ...
28.55102
78
0.620443
1,134
0.810579
0
0
0
0
0
0
174
0.124375
69c79c1acedc30f9a5022e2647ed20f40fd5e207
1,860
py
Python
src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py
norikinishida/discourse-parsing
7377a78cc32ad6430d256694e31ed9426e7c6340
[ "Apache-2.0" ]
2
2022-02-16T20:41:22.000Z
2022-03-11T18:28:24.000Z
src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py
norikinishida/discourse-parsing
7377a78cc32ad6430d256694e31ed9426e7c6340
[ "Apache-2.0" ]
null
null
null
src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py
norikinishida/discourse-parsing
7377a78cc32ad6430d256694e31ed9426e7c6340
[ "Apache-2.0" ]
null
null
null
import argparse import os import pyprind import utils import treetk import treetk.rstdt def main(args): """ We use n-ary ctrees (ie., *.labeled.nary.ctree) to generate dtrees. Morey et al. (2018) demonstrate that scores evaluated on these dtrees are superficially lower than those on right-heavy binarize...
30
167
0.597849
0
0
0
0
0
0
0
0
427
0.22957
69c88ceb18f630f200621f0a183a63c5b4bebc25
4,507
py
Python
vinyl.py
jsonmorberg/Vinyl-Bot
84bae5eb8a9184cf7dbc5e652dd7f428d9a8295e
[ "MIT" ]
1
2021-11-10T04:29:35.000Z
2021-11-10T04:29:35.000Z
vinyl.py
jsonmorberg/Vinyl-Bot
84bae5eb8a9184cf7dbc5e652dd7f428d9a8295e
[ "MIT" ]
null
null
null
vinyl.py
jsonmorberg/Vinyl-Bot
84bae5eb8a9184cf7dbc5e652dd7f428d9a8295e
[ "MIT" ]
null
null
null
# vinyl.py import os import discord from discord import voice_client from audio_source import AudioSource from audio_controller import AudioController import yt_dlp from dotenv import load_dotenv from discord.ext import commands load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') # Suppress unnecessary bug reports yt_dl...
36.056
94
0.633903
3,864
0.852792
0
0
3,300
0.728316
3,000
0.662105
868
0.191569
69c8df43a27c1af9bf7464c6393251ec9ff02443
1,106
py
Python
tests/test_components/test_lenses/test_AchromLens.py
spacesys-finch/payload-designer
f21dc70f7301f166558a8f61bcbbccce83770343
[ "Unlicense" ]
2
2022-01-01T23:52:08.000Z
2022-01-18T06:39:58.000Z
tests/test_components/test_lenses/test_AchromLens.py
spacesys-finch/payload-designer
f21dc70f7301f166558a8f61bcbbccce83770343
[ "Unlicense" ]
55
2021-12-30T18:15:38.000Z
2022-03-06T16:02:57.000Z
tests/test_components/test_lenses/test_AchromLens.py
spacesys-finch/payload-designer
f21dc70f7301f166558a8f61bcbbccce83770343
[ "Unlicense" ]
2
2022-01-20T01:43:59.000Z
2022-01-20T01:45:50.000Z
"""Tests for AchromLens component.""" # stdlib import logging # external import pytest # project from payload_designer.components import lenses LOG = logging.getLogger(__name__) def test_focal_length_1(): """Test AchromLens.focal_length_1()""" f_eq = 50 V_1 = 0.016 V_2 = 0.028 doublet = lense...
19.403509
60
0.658228
0
0
0
0
0
0
0
0
267
0.24141
69c94e463ba20a6268b57098d9cdaac3fe21a484
486
py
Python
python/demos/mcEstimatePi.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
python/demos/mcEstimatePi.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
python/demos/mcEstimatePi.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
#!/usr/bin/env python import matplotlib.pyplot as pl import numpy as np p = np.random.rand(5000, 2) * 4 - 2 inner = np.sum(p ** 2, axis=1) <= 4 pl.figure(figsize=(10, 10)) pl.plot(p[inner, 0], p[inner, 1], 'bo') pl.plot(p[~inner, 0], p[~inner, 1], 'rD') pi_estimate = np.sum(inner) / 5000 * 4 print('the estimated pi ...
25.578947
44
0.62963
0
0
0
0
0
0
0
0
102
0.209877
69c954f1be24efef0a745d933498ace36a82ac1a
1,949
py
Python
src/utils/hdf5_helper/h5_util.py
SteffenMauceri/OWLS-Autonomy
e676282a87e17030887b0174f3b8b38aab170d15
[ "RSA-MD" ]
null
null
null
src/utils/hdf5_helper/h5_util.py
SteffenMauceri/OWLS-Autonomy
e676282a87e17030887b0174f3b8b38aab170d15
[ "RSA-MD" ]
null
null
null
src/utils/hdf5_helper/h5_util.py
SteffenMauceri/OWLS-Autonomy
e676282a87e17030887b0174f3b8b38aab170d15
[ "RSA-MD" ]
null
null
null
from contextlib import closing import h5py import numpy as np def save_h5(outfile, dictionary): """ Saves passed dictionary to an h5 file Parameters ---------- outfile : string Name of output h5 file dictionary : dictionary Dictionary that will be saved """ def save_layer(...
26.69863
68
0.542329
0
0
0
0
0
0
0
0
513
0.263212
69ca8a62d7144693f84bd439c77728f7b5f93e62
526
py
Python
solutions/problem-007/python.py
kmchmk/projecteuler-solutions
0900f4ef031e360fb80414420fb61522be1dd66a
[ "MIT" ]
2
2021-09-05T11:50:30.000Z
2021-09-10T15:46:05.000Z
solutions/problem-007/python.py
kmchmk/projecteuler-solutions
0900f4ef031e360fb80414420fb61522be1dd66a
[ "MIT" ]
2
2021-09-06T14:42:54.000Z
2021-09-10T14:52:59.000Z
solutions/problem-007/python.py
kmchmk/projecteuler-solutions
0900f4ef031e360fb80414420fb61522be1dd66a
[ "MIT" ]
1
2021-09-05T14:40:14.000Z
2021-09-05T14:40:14.000Z
from math import sqrt def is_prime_number(number): # we only need to loop from 2 to square root of number # https://stackoverflow.com/a/5811176/4388776 for i in range(2, int(sqrt(number)) + 1): if number % i == 0: return False return True def get_nth_prime(n): count = 0 n...
21.916667
58
0.579848
0
0
0
0
0
0
0
0
99
0.188213
69cab18673618de1d90978d44eee2864143ab833
11,582
py
Python
model/methods.py
MokkeMeguru/seq2bseq
4e66f2d4738751cf4552a5b61728ad3b4967feb6
[ "MIT" ]
null
null
null
model/methods.py
MokkeMeguru/seq2bseq
4e66f2d4738751cf4552a5b61728ad3b4967feb6
[ "MIT" ]
null
null
null
model/methods.py
MokkeMeguru/seq2bseq
4e66f2d4738751cf4552a5b61728ad3b4967feb6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Helper functions for VariationalModel class """ from __future__ import print_function from __future__ import division import math import random import tensorflow as tf from tensorflow.contrib.legacy_seq2seq.python.ops import seq2seq as s2s def linearOutcomePrediction(zs, pa...
39.128378
104
0.625108
0
0
0
0
0
0
0
0
5,599
0.424424
69ce8902e8aaaf0b89cf2ee81714c5532b36a81f
417
py
Python
src/Factory/Abstract/SongFactory.py
jundoll/discordbot-BSPlaylistManager
38e80a7fc2ab779b4ab9fec33a40c0a7b14ad622
[ "MIT" ]
null
null
null
src/Factory/Abstract/SongFactory.py
jundoll/discordbot-BSPlaylistManager
38e80a7fc2ab779b4ab9fec33a40c0a7b14ad622
[ "MIT" ]
8
2020-10-25T06:07:41.000Z
2020-12-30T10:03:54.000Z
src/Factory/Abstract/SongFactory.py
jundoll/discordbot-BSPlaylistManager
38e80a7fc2ab779b4ab9fec33a40c0a7b14ad622
[ "MIT" ]
null
null
null
# load modules from abc import ABCMeta, abstractmethod from typing import List from src.Domain.Song import Song, SongHash, Url # definition class ISongFactory(metaclass=ABCMeta): # URLからSongインスタンスのリストを生成する @abstractmethod def generateByUrl(self, url: Url) -> List[Song]: pass # hash値からSongイン...
20.85
53
0.717026
335
0.699374
0
0
163
0.340292
0
0
138
0.2881
69cf73dbd38061a833e0ed5dd8261d357ce7829e
1,164
py
Python
migrations/versions/b9ab1a9a2113_.py
a-sanders/currency-exchange-calc
f8ce357b2cb958b32782d2e812e51d22b5f04d3a
[ "MIT" ]
null
null
null
migrations/versions/b9ab1a9a2113_.py
a-sanders/currency-exchange-calc
f8ce357b2cb958b32782d2e812e51d22b5f04d3a
[ "MIT" ]
null
null
null
migrations/versions/b9ab1a9a2113_.py
a-sanders/currency-exchange-calc
f8ce357b2cb958b32782d2e812e51d22b5f04d3a
[ "MIT" ]
null
null
null
"""empty message Revision ID: b9ab1a9a2113 Revises: Create Date: 2021-11-28 22:41:01.160642 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b9ab1a9a2113' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
27.069767
65
0.664948
0
0
0
0
0
0
0
0
457
0.392612