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
2d70a8b78aca6d858249d4a0c40efeae5a1ad298
5,333
py
Python
openfda/deploy/tests/adae/test_endpoint.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
388
2015-01-09T18:50:35.000Z
2022-03-24T10:15:23.000Z
openfda/deploy/tests/adae/test_endpoint.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
150
2015-01-21T20:30:54.000Z
2022-03-28T20:46:29.000Z
openfda/deploy/tests/adae/test_endpoint.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
113
2015-01-31T21:24:16.000Z
2022-01-30T15:17:28.000Z
# coding=utf-8 import inspect import sys from openfda.tests.api_test_helpers import * def test_nullified_records(): NULLIFIED = ['USA-FDACVM-2018-US-045311', 'USA-FDACVM-2018-US-048571', 'USA-FDACVM-2018-US-046672', 'USA-FDACVM-2017-US-070108', 'USA-FDACVM-2017-US-002864', 'USA-FDACVM-2017-US-002866...
42.664
101
0.649916
0
0
0
0
0
0
0
0
3,213
0.602475
2d72528a1f010274ea124fa51f712d501f63eda5
6,972
py
Python
dutil.py
Zverik/podcast_duration
dad0719c3876c21c174d7a34678aa3abdefe39a4
[ "WTFPL" ]
1
2019-02-26T17:26:24.000Z
2019-02-26T17:26:24.000Z
dutil.py
Zverik/podcast_duration
dad0719c3876c21c174d7a34678aa3abdefe39a4
[ "WTFPL" ]
null
null
null
dutil.py
Zverik/podcast_duration
dad0719c3876c21c174d7a34678aa3abdefe39a4
[ "WTFPL" ]
null
null
null
import requests import re import json import datetime import os DATE_FORMAT = '%Y-%m-%d' DATA_PATH = 'rupodcast_lengths.json' def extract_hms(g): return float(g[0] or 0) * 60 + float(g[1]) + float(g[2]) / 60 def extract_rss(dur): g = dur.split(':') while len(g) < 3: g = [0] + g return floa...
28
99
0.536862
125
0.017571
0
0
93
0.013073
0
0
1,317
0.185128
2d74ac43e77b3bc75d905f63bb070721d4e2b893
557
py
Python
apps/rates/urls.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/rates/urls.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/rates/urls.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from . import views urlpatterns = [ url(r'^$', views.rate_list, name='list'), url(r'^(?P<pk>\d+)/$', views.rate_as_field, name='as_field'), url(r'^suggestions/$', views.suggestions, name='suggestions'), url(r'^create/$', views.create_rate, name='creat...
42.846154
97
0.626571
0
0
0
0
0
0
0
0
241
0.432675
2d7725aa76b9cb8657abbe0c436fc2ad37634dab
1,100
py
Python
icasf/utils.py
human-ai2025/Intent_detection_slot_filling
a1d590b85ceea15ac0c528a9092cd79786f82c7e
[ "MIT" ]
null
null
null
icasf/utils.py
human-ai2025/Intent_detection_slot_filling
a1d590b85ceea15ac0c528a9092cd79786f82c7e
[ "MIT" ]
null
null
null
icasf/utils.py
human-ai2025/Intent_detection_slot_filling
a1d590b85ceea15ac0c528a9092cd79786f82c7e
[ "MIT" ]
null
null
null
# importing libraries import numpy as np import pandas as pd import random import torch def set_seeds(seed=1234): """[Set seeds for reproducibility.] Keyword Arguments: seed {int} -- [The seed value] (default: {1234}) """ np.random.seed(seed) random.seed(seed) torch.manual_seed(seed) ...
26.190476
73
0.64
0
0
0
0
0
0
0
0
654
0.594545
2d7a3e516a3dc6332a0d0d4fc1a519e619d09c80
95
py
Python
back/treatments/apps.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
null
null
null
back/treatments/apps.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
5
2021-03-11T05:33:41.000Z
2022-02-27T10:21:50.000Z
back/treatments/apps.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class TreatmentsConfig(AppConfig): name = 'treatments'
15.833333
34
0.768421
58
0.610526
0
0
0
0
0
0
12
0.126316
2d7be3678b02b1a94e7d1293d4c7eaa5d0726a38
1,602
py
Python
Numbers/alarm.py
arindampradhan/Projects
5677e05ea56ffea2334d65b275e8920b14980ac2
[ "MIT" ]
10
2016-07-11T22:09:46.000Z
2021-12-22T18:59:07.000Z
Numbers/alarm.py
arindampradhan/Projects
5677e05ea56ffea2334d65b275e8920b14980ac2
[ "MIT" ]
1
2015-02-26T17:00:13.000Z
2015-02-26T17:00:13.000Z
Numbers/alarm.py
arindampradhan/Projects
5677e05ea56ffea2334d65b275e8920b14980ac2
[ "MIT" ]
41
2015-03-04T00:14:53.000Z
2022-01-19T14:16:24.000Z
""" Alarm Clock - A simple clock where it plays a sound after X number of minutes/seconds or at a particular time. Dependencies: pyglet pip install pyglet """ import time import winsound import pyglet def play(hh, mm): not_alarmed = 1 while(not_alarmed): cur_time = list(time.loc...
32.04
100
0.581773
0
0
0
0
0
0
0
0
729
0.455056
2d7dcc785b405d3f6e78cbe6c3e04130c286b168
3,107
py
Python
tests/test_in_serializers.py
expobrain/drf-compound-fields
c1ea78705fb460fabde48984a7d195d71adee68a
[ "BSD-3-Clause" ]
null
null
null
tests/test_in_serializers.py
expobrain/drf-compound-fields
c1ea78705fb460fabde48984a7d195d71adee68a
[ "BSD-3-Clause" ]
null
null
null
tests/test_in_serializers.py
expobrain/drf-compound-fields
c1ea78705fb460fabde48984a7d195d71adee68a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_in_serializers ------------------- Tests of the fields cooperation in the serializer interfaces for serialization, de-serialization, and validation. """ # Django settings: import os os.environ['DJANGO_SETTINGS_MODULE'] = __name__ from django.conf.global_sett...
34.910112
99
0.717734
220
0.070808
0
0
0
0
0
0
1,219
0.39234
2d7e4675f7508f5659dc4db59ff7f4d23a5f9db7
642
py
Python
reframe/utility/json.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
reframe/utility/json.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
reframe/utility/json.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import json class _ReframeJsonEncoder(json.JSONEncoder): def default(self, obj): if hasattr(obj, '__rfm_json_enc...
25.68
76
0.705607
217
0.338006
0
0
0
0
0
0
220
0.342679
2d7f27789173a96e9e9a14e59877eda7d7c585f8
3,072
py
Python
occo/enactor/upkeep.py
occopus/enactor
01d5417b2239c3f6693d767224c3495089b8d9d3
[ "Apache-2.0" ]
null
null
null
occo/enactor/upkeep.py
occopus/enactor
01d5417b2239c3f6693d767224c3495089b8d9d3
[ "Apache-2.0" ]
null
null
null
occo/enactor/upkeep.py
occopus/enactor
01d5417b2239c3f6693d767224c3495089b8d9d3
[ "Apache-2.0" ]
3
2015-11-12T09:36:13.000Z
2017-11-30T10:04:38.000Z
### Copyright 2014, MTA SZTAKI, www.sztaki.hu ### ### Licensed under the Apache License, Version 2.0 (the "License"); ### you may not use this file except in compliance with the License. ### You may obtain a copy of the License at ### ### http://www.apache.org/licenses/LICENSE-2.0 ### ### Unless required by applicab...
35.310345
92
0.659831
2,037
0.663086
0
0
1,917
0.624023
0
0
1,028
0.334635
2d7ff8efa71157528cf59e7762c185eb4caf5b50
147
py
Python
Chapter08/chapter8_sflowtool_1.py
stavsta/Mastering-Python-Networking-Second-Edition
9999d2e415a1eb9c653ac3507500da7ddac2b556
[ "MIT" ]
107
2017-03-31T09:39:47.000Z
2022-01-10T17:43:12.000Z
Chapter08/chapter8_sflowtool_1.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
3
2020-03-29T14:14:43.000Z
2020-10-29T18:21:09.000Z
Chapter08/chapter8_sflowtool_1.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
98
2017-02-25T17:55:43.000Z
2022-02-20T19:06:06.000Z
#!/usr/bin/env python3 import sys, re for line in iter(sys.stdin.readline, ''): if re.search('agent ', line): print(line.strip())
14.7
41
0.605442
0
0
0
0
0
0
0
0
32
0.217687
2d80556385c4d4bedc014437f9eac4454a0a8d16
1,277
py
Python
examples/fuzz.py
defparam/haptyc
9baecd797081bbf6edada2db9aad3b1fd3331190
[ "Apache-2.0" ]
74
2021-09-09T22:19:22.000Z
2022-01-12T00:52:08.000Z
examples/fuzz.py
defparam/haptyc
9baecd797081bbf6edada2db9aad3b1fd3331190
[ "Apache-2.0" ]
null
null
null
examples/fuzz.py
defparam/haptyc
9baecd797081bbf6edada2db9aad3b1fd3331190
[ "Apache-2.0" ]
15
2021-09-18T21:01:50.000Z
2022-02-01T18:59:59.000Z
from haptyc import * from base64 import b64encode, b64decode import json class TestLogic(Transform): # # test_h1: Decodes base64, fuzzes using random_insert, Re-encodes base64 # Number of tests: 50 # @ApplyIteration(50) def test_h1(self, data, state): data = b64decode(data) ...
31.146341
115
0.591229
877
0.686766
0
0
423
0.331245
0
0
365
0.285826
2d805588965de2f3350c8e40dca405d56b0fa7da
1,271
py
Python
nginx-with-mtls-and-appserver/appserver/app.py
fshmcallister/examples
e2052778cbd531bf716131b8311e87c4ee005f07
[ "MIT" ]
6
2019-10-18T13:32:46.000Z
2020-06-20T17:45:43.000Z
nginx-with-mtls-and-appserver/appserver/app.py
fshmcallister/examples
e2052778cbd531bf716131b8311e87c4ee005f07
[ "MIT" ]
4
2019-07-18T16:05:57.000Z
2021-09-23T23:27:06.000Z
nginx-with-mtls-and-appserver/appserver/app.py
fshmcallister/examples
e2052778cbd531bf716131b8311e87c4ee005f07
[ "MIT" ]
3
2019-07-15T13:16:49.000Z
2020-01-09T09:39:33.000Z
import re from flask import Flask, request app = Flask(__name__) def generate_whitelist(): whitelist = [] with open('/whitelist.txt', 'r') as f: for line in f.readlines(): if line.strip().endswith('d.wott.local'): whitelist.append(line.strip()) return whitelist def g...
24.442308
88
0.610543
0
0
0
0
158
0.124312
0
0
455
0.357986
2d81d3087ce7b2f4ba15e8c7dc9496c1d42f9104
1,676
py
Python
Database/flask-sqlalchemy/one_to_many.py
amamov/cs001
5753f28e74e2330837d22142cff4713801c77a2d
[ "MIT" ]
5
2021-02-21T17:10:03.000Z
2022-03-04T21:17:50.000Z
flask-sqlalchemy/one_to_many.py
amamov/pythonic
95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0
[ "MIT" ]
null
null
null
flask-sqlalchemy/one_to_many.py
amamov/pythonic
95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0
[ "MIT" ]
3
2021-02-25T17:53:57.000Z
2021-06-25T17:25:44.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from pathlib import Path app = Flask(__name__) BASE_DIR = Path(__file__).resolve().parent DB_PATH = str(BASE_DIR / "one_to_many.sqlite") app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + DB_PATH app.config["SQLALCHEMY_COMMIT_ON_SUBMIT"] = True app...
23.942857
77
0.679594
896
0.498886
0
0
0
0
0
0
883
0.491648
2d83d5ac7ec09bb8e96ad46997e6e2b1b848abb9
231
py
Python
hcap_utils/contrib/material/views/__init__.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
null
null
null
hcap_utils/contrib/material/views/__init__.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
31
2020-04-11T13:38:17.000Z
2021-09-22T18:51:11.000Z
hcap_utils/contrib/material/views/__init__.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
1
2020-04-08T17:04:39.000Z
2020-04-08T17:04:39.000Z
from .create_model_view import CreateModelView from .delete_model_view import DeleteModelView from .detail_model_view import DetailModelView from .list_model_view import ListModelView from .update_model_view import UpdateModelView
38.5
46
0.891775
0
0
0
0
0
0
0
0
0
0
2d849f6ef02f2ba2420e4777e5f788eedd4a8971
357
py
Python
src/emr/scripts/util.py
anorth848/aws-data-analytics
7721f1214f163a9a76f8e797edd3a1e300a5e2ab
[ "MIT" ]
1
2022-02-18T22:28:36.000Z
2022-02-18T22:28:36.000Z
src/emr/scripts/util.py
anorth848/aws-data-analytics
7721f1214f163a9a76f8e797edd3a1e300a5e2ab
[ "MIT" ]
null
null
null
src/emr/scripts/util.py
anorth848/aws-data-analytics
7721f1214f163a9a76f8e797edd3a1e300a5e2ab
[ "MIT" ]
null
null
null
import boto3 import logging import json def get_secret(secret): client = boto3.client('secretsmanager') logging.info(f'Retrieving secret {secret}') response = client.get_secret_value(SecretId=secret) logging.debug(f'Retrieved Secret ARN {response["ARN"]} VersionId {response["VersionId"]}') return ...
29.75
94
0.742297
0
0
0
0
0
0
0
0
134
0.37535
2d860cb528497ffbf5b2990f064b4319234cb072
4,204
py
Python
boids/boids.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
1
2022-02-21T15:54:01.000Z
2022-02-21T15:54:01.000Z
boids/boids.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
null
null
null
boids/boids.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
2
2020-11-21T16:34:22.000Z
2021-01-27T10:30:34.000Z
# Ported from JavaSript version to Python and Pygame Zero # Designed to work well with mu-editor environment. # # Original by Ben Eater at https://github.com/beneater/boids (MIT License) # No endorsement implied. import random HEIGHT = 600 # window height WIDTH = 700 # window width MARG...
29.815603
77
0.620124
20
0.004757
0
0
0
0
0
0
1,231
0.292816
2d8645dc45088fa874c2aeccbf853372bdcf387c
507
py
Python
notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py
EmanuelFontelles/machineLearning
26e810c2dbc89c2076b312d02a957ab6f8dee7d8
[ "MIT" ]
2
2018-11-09T03:49:31.000Z
2019-06-28T17:24:04.000Z
notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py
lucasvt01/Machine_Learning
6ee17061b77d23c966ad7700712938bfe00ef9c1
[ "MIT" ]
null
null
null
notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py
lucasvt01/Machine_Learning
6ee17061b77d23c966ad7700712938bfe00ef9c1
[ "MIT" ]
2
2020-05-09T00:49:56.000Z
2021-08-28T07:24:46.000Z
import pandas as pd import sys from os import system sys.path.append('../final_project/') sys.path.append('../') def readNames(inputFile='new_poi_names.txt'): ''' A function to read names data from a file create by a data cache Returns: Returns a data frame that contains data from 'poi_names.txt' ...
25.35
96
0.672584
0
0
0
0
0
0
0
0
273
0.538462
2d8781eedd833caad160a7f046c6482144d1ef2b
1,270
py
Python
launch/test/legacy/launch_counter.py
stonier/launch
e8704247708eb017c388aaf8606e9dbb6971239b
[ "Apache-2.0" ]
null
null
null
launch/test/legacy/launch_counter.py
stonier/launch
e8704247708eb017c388aaf8606e9dbb6971239b
[ "Apache-2.0" ]
null
null
null
launch/test/legacy/launch_counter.py
stonier/launch
e8704247708eb017c388aaf8606e9dbb6971239b
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
35.277778
89
0.734646
0
0
0
0
0
0
0
0
645
0.507874
2d888527e706a87e3f98f2c6cc06bcf9c253256b
4,833
py
Python
exporter/config.py
TaIos/code_generator
d01eca1cf3506e2b24fdf537de44d38d0f1dab0d
[ "MIT" ]
2
2021-02-12T12:07:26.000Z
2022-02-10T23:49:43.000Z
exporter/config.py
TaIos/code_generator
d01eca1cf3506e2b24fdf537de44d38d0f1dab0d
[ "MIT" ]
1
2020-12-05T10:38:31.000Z
2020-12-05T10:38:31.000Z
exporter/config.py
TaIos/exporter
d01eca1cf3506e2b24fdf537de44d38d0f1dab0d
[ "MIT" ]
null
null
null
import pathlib class ExporterConfig: def __init__(self, github_token, gitlab_token): self.github_token = github_token self.gitlab_token = gitlab_token class ConfigLoader: @classmethod def load(cls, cfg): """ Load and validate application configuration for GitHub and Git...
32.006623
102
0.589696
4,803
0.993793
0
0
4,508
0.932754
0
0
1,762
0.364577
2d8947d4985d3f74c9b311aff5ca0779c9ce0c9d
3,613
py
Python
mars/learn/tests/test_wrappers.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1
2022-02-02T03:03:48.000Z
2022-02-02T03:03:48.000Z
mars/learn/tests/test_wrappers.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
mars/learn/tests/test_wrappers.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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 a...
33.453704
88
0.729588
0
0
0
0
0
0
0
0
665
0.184058
2d8b618cd92e8a0d5a05adebae79ed5b9c19a3f8
620
py
Python
setup.py
mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor
dc5b0c9b783e105efe06220daf4db3bd8c84c87a
[ "MIT" ]
3
2018-08-21T14:34:27.000Z
2018-08-21T14:40:04.000Z
setup.py
mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor
dc5b0c9b783e105efe06220daf4db3bd8c84c87a
[ "MIT" ]
null
null
null
setup.py
mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor
dc5b0c9b783e105efe06220daf4db3bd8c84c87a
[ "MIT" ]
3
2019-06-30T13:46:31.000Z
2021-04-23T09:35:55.000Z
import cx_Freeze import sys base = None if sys.platform == 'win32': base = "Win32GUI" executables = [cx_Freeze.Executable("Speech_Recognizer.py", base=base, icon = "icon.ico")] cx_Freeze.setup( name = "Speech Recognizer", author = "Mayank Kumar Giri", options = {"build_exe":{"packages":...
34.444444
162
0.669355
0
0
0
0
0
0
0
0
314
0.506452
2d8f6e8ccc46303dc79e17c51afb21313146a6d3
7,101
py
Python
checkers/checker_optimization_knapsack.py
aosokin/assignment_checker_email
ce6efe6902625a463e25e22add14d9616b2d13ee
[ "MIT" ]
4
2016-07-03T18:51:45.000Z
2021-10-13T12:00:47.000Z
checkers/checker_optimization_knapsack.py
aosokin/assignment_checker_email
ce6efe6902625a463e25e22add14d9616b2d13ee
[ "MIT" ]
null
null
null
checkers/checker_optimization_knapsack.py
aosokin/assignment_checker_email
ce6efe6902625a463e25e22add14d9616b2d13ee
[ "MIT" ]
null
null
null
import sys import numpy as np import os import math import chardet import io COMPARISON_ACCURACY = 1e-2 MAX_SCORE = 1.0 HALF_SCORE = 0.5 SUBMISSION_SCORE = 0.0 MESSAGES_SCORE = {} MESSAGES_SCORE[SUBMISSION_SCORE] = lambda value, value_to_get : \ 'Your submission output is good, but the solution ob...
37.373684
245
0.619068
0
0
0
0
0
0
0
0
1,580
0.222504
2d8f8e28942f195a55b92faceed62f651846b560
332
py
Python
src/485-max-consecutive-ones.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
2
2020-03-06T11:44:25.000Z
2020-03-13T20:07:48.000Z
src/485-max-consecutive-ones.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
null
null
null
src/485-max-consecutive-ones.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
null
null
null
'''https://leetcode.com/problems/max-consecutive-ones/''' class Solution: def findMaxConsecutiveOnes(self, nums: List[int]) -> int: i, j = 0, 0 ans = 0 while j<len(nums): if nums[j]==0: ans = max(ans, j-i) i = j+1 j+=1 return m...
27.666667
61
0.472892
273
0.822289
0
0
0
0
0
0
57
0.171687
2d8fae0946e143eccda5adf40ae6e9f29db66db6
1,508
py
Python
setup.py
milnus/Phupa
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
1
2021-11-02T03:22:42.000Z
2021-11-02T03:22:42.000Z
setup.py
milnus/Phupa
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
3
2021-04-15T01:22:31.000Z
2022-01-28T02:33:06.000Z
setup.py
milnus/primer_site_extraction_software
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
1
2021-11-29T00:07:02.000Z
2021-11-29T00:07:02.000Z
#!/usr/bin/env python from setuptools import setup LONG_DESCRIPTION = \ '''The program extracts regions of interest from Fasta or Genome Feature Format (GFF) genomes. This is done given a set of seed sequences given as nucleotide strings in a multi-line fasta file. The program can output fasta and GFF outputs or re...
39.684211
125
0.68634
0
0
0
0
0
0
0
0
1,073
0.711538
2d902e63cf6b01f219487429775dd10a277526c1
56
py
Python
tests/__init__.py
EmmanuelObo/python-coord
edcecc881c26b81f3a74db140fdb9dfb2106fb3d
[ "MIT" ]
null
null
null
tests/__init__.py
EmmanuelObo/python-coord
edcecc881c26b81f3a74db140fdb9dfb2106fb3d
[ "MIT" ]
1
2021-03-25T22:00:56.000Z
2021-03-25T22:00:56.000Z
tests/__init__.py
EmmanuelObo/python-coord
edcecc881c26b81f3a74db140fdb9dfb2106fb3d
[ "MIT" ]
null
null
null
from tests import test_bike from tests import test_curb
18.666667
27
0.857143
0
0
0
0
0
0
0
0
0
0
2d90fd798725f293a72746db65ecf6534864d958
599
py
Python
tranquil/solve.py
skyeto/actf2021
f5f4e280ac459f8d01943f87512cf2b466588f50
[ "MIT" ]
null
null
null
tranquil/solve.py
skyeto/actf2021
f5f4e280ac459f8d01943f87512cf2b466588f50
[ "MIT" ]
null
null
null
tranquil/solve.py
skyeto/actf2021
f5f4e280ac459f8d01943f87512cf2b466588f50
[ "MIT" ]
null
null
null
from pwn import * from pwnlib.elf import * ## Get the offset ## Should be @ ► 0x401260 <vuln+92> ret <0x6161617461616173> ## cyclic -c amd64 -l 0x61616174 ## 72 #payload = cyclic(100) #p = process('./tranquil') #gdb.attach(p, gdbscript=""" #continue #""") #print(p.readline()) #p.sendline(payload) #print(p.readl...
18.71875
66
0.661102
0
0
0
0
0
0
0
0
320
0.532446
2d9380bab4266fca29ab688eb70ff5eb6fd17ab1
990
py
Python
Matrix/Leetcode 909. Snakes and Ladders.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
Matrix/Leetcode 909. Snakes and Ladders.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
Matrix/Leetcode 909. Snakes and Ladders.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def snakesAndLadders(self, board: List[List[int]]) -> int: n = len(board) q = collections.deque() q.append(1) visited = set() visited.add(1) step = 0 while q: size = len(q) for _ in range(size): num = q.p...
28.285714
62
0.360606
990
1
0
0
0
0
0
0
0
0
2d94558c7c873c9ba1bee3f6b9671d5e8e49c3c7
5,788
py
Python
model.py
Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network
c2579121b39a536a946adc26c740dc9a7e32296b
[ "MIT" ]
12
2021-03-31T10:10:13.000Z
2022-02-24T11:11:16.000Z
model.py
Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network
c2579121b39a536a946adc26c740dc9a7e32296b
[ "MIT" ]
6
2021-04-02T20:44:18.000Z
2021-11-10T10:21:04.000Z
model.py
Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network
c2579121b39a536a946adc26c740dc9a7e32296b
[ "MIT" ]
2
2021-04-15T11:44:05.000Z
2021-09-01T15:28:10.000Z
import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim class Generator: def __init__(self, learning_rate=1e-4, num_blocks=6): self.learning_rate = learning_rate self.num_blocks = num_blocks def pelu(self, x): with tf.variable_scope(x.op.name + '_activation', initializer=tf.c...
41.640288
117
0.636835
5,703
0.985314
0
0
0
0
0
0
383
0.066171
2d961bbd9e62206e0f980c876fa9c77bbf669f26
10,337
py
Python
authordetect/tokenizers/nltk.py
fabianfallasmoya/authorship_classification
fbcc1d21407cd65b5909fc04209d4517e6a033a1
[ "MIT" ]
2
2020-10-16T19:27:21.000Z
2021-11-04T15:06:54.000Z
authordetect/tokenizers/nltk.py
fabianfallasmoya/authorship_classification
fbcc1d21407cd65b5909fc04209d4517e6a033a1
[ "MIT" ]
24
2020-07-13T01:49:36.000Z
2020-10-30T21:54:00.000Z
facet/tokenizer/nltk.py
edponce/FACET
0dca2d728813a4865e72b2e8fd6b114a0c63d5b0
[ "MIT" ]
null
null
null
import nltk from .base import BaseTokenizer from typing import ( Tuple, Iterator, ) __all__ = ['NLTKTokenizer'] class NLTKTokenizer(BaseTokenizer): """NLTK-based Treebank tokenizer. Args: sentencizer (str): Name of sentencizer for text. chunker (str): Phrase chunker where 'noun' us...
35.159864
78
0.546387
10,212
0.987908
5,592
0.540969
0
0
0
0
3,392
0.328142
2d96973e83e7a2807cf2780063d803366b4ad276
10,185
py
Python
vcs/editors/marker.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
11
2018-10-10T03:14:33.000Z
2022-01-05T14:18:15.000Z
vcs/editors/marker.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
196
2018-03-21T19:44:56.000Z
2021-12-21T21:56:24.000Z
vcs/editors/marker.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
5
2019-12-09T21:54:45.000Z
2022-03-20T04:22:14.000Z
from vcs import vtk_ui from vcs.colorpicker import ColorPicker from vcs.vtk_ui import behaviors from vcs.VCS_validation_functions import checkMarker import vtk import vcs.vcs2vtk from . import priority import sys class MarkerEditor( behaviors.ClickableMixin, behaviors.DraggableMixin, priority.PriorityEditor):...
30.494012
106
0.559352
8,575
0.841924
0
0
0
0
0
0
686
0.067354
2d97ba6d06d356159a1be569b516b82e7fd9edeb
3,608
py
Python
tinkoff/invest/_errors.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
41
2022-01-21T05:38:57.000Z
2022-03-30T03:54:41.000Z
tinkoff/invest/_errors.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
20
2022-01-24T05:46:02.000Z
2022-03-31T16:54:04.000Z
tinkoff/invest/_errors.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
15
2022-01-25T06:53:27.000Z
2022-03-30T03:49:07.000Z
from functools import wraps from typing import Any, Callable, TypeVar, cast from grpc import Call, RpcError from grpc.aio import AioRpcError from .exceptions import AioRequestError, RequestError from .logging import get_metadata_from_aio_error, get_metadata_from_call, log_error TFunc = TypeVar("TFunc", bound=Callabl...
33.407407
83
0.504435
0
0
1,658
0.459534
2,667
0.739191
1,225
0.339523
239
0.066242
2d97f03499e19a5c1f5c27d7a74182ab0d44f492
4,049
py
Python
src/controllerarena/controllers/refVec.py
VerifiableRobotics/controller-arena
4506ef47404de85ec0511594740e53c27a21ef88
[ "BSD-3-Clause" ]
null
null
null
src/controllerarena/controllers/refVec.py
VerifiableRobotics/controller-arena
4506ef47404de85ec0511594740e53c27a21ef88
[ "BSD-3-Clause" ]
null
null
null
src/controllerarena/controllers/refVec.py
VerifiableRobotics/controller-arena
4506ef47404de85ec0511594740e53c27a21ef88
[ "BSD-3-Clause" ]
null
null
null
# code for python reference dipole vector field controller # these functions require stuff #from mathFuns import * from numpy import * from math import * class refVec: # define the constructor def __init__(self, q_0, controller_flag): # Initialize controller state self.phi_prev = None sel...
34.313559
147
0.568288
3,619
0.893801
0
0
0
0
0
0
1,629
0.402322
2d986f68f511ab1e314274eb389796705ee7e764
7,066
py
Python
script/trainer/trainer.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/trainer/trainer.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/trainer/trainer.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torchvision import transforms from torch.utils.data import DataLoader, TensorDataset, Dataset from torch.utils.data.sampler import SubsetRandomSampler from torch import optim import pandas as pd import sys sys.path.append('./proto') import trainer_pb2 import trainer_pb2_grpc impo...
31.544643
107
0.601472
2,568
0.363431
0
0
0
0
0
0
1,491
0.21101
2d987782f603dc9882b5729a821433527afffdcc
1,475
py
Python
polls/views.py
alejandro-medici/django_docker
6fe847837c244f506bd35809f2444f182bfc6500
[ "MIT" ]
1
2021-12-02T22:44:24.000Z
2021-12-02T22:44:24.000Z
polls/views.py
alejandro-medici/django_docker
6fe847837c244f506bd35809f2444f182bfc6500
[ "MIT" ]
null
null
null
polls/views.py
alejandro-medici/django_docker
6fe847837c244f506bd35809f2444f182bfc6500
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template.loader import get_template from .models import Poll from time import timezone from datetime import date # Create your views here. def index(request): myTemplate = get_template('./index.html') print(myTemplate) r...
30.102041
79
0.699661
0
0
0
0
0
0
0
0
429
0.290847
2d9a25324f21790c34116f8d2994220e3c4fb627
3,644
py
Python
train.py
lyth031/ptb_lm
71f687fdf41c6b981a306269c1341ea8a8347bb6
[ "MIT" ]
null
null
null
train.py
lyth031/ptb_lm
71f687fdf41c6b981a306269c1341ea8a8347bb6
[ "MIT" ]
null
null
null
train.py
lyth031/ptb_lm
71f687fdf41c6b981a306269c1341ea8a8347bb6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import tensorflow as tf import time import input as ip import lm import config as cf import numpy as np def run_epoch(session, model, eval_op=None, verbose=False): start_time = time.time() costs = 0.0 iters = 0 state = session.run(model.initial_state) fetches = {"cost": mo...
40.043956
92
0.621844
0
0
0
0
0
0
0
0
385
0.105653
2d9c04e64991b8b9420152f31a373fa2bb0db9b8
9,312
py
Python
PICdecompression.py
lukestaniscia/PIC
65e46bad184a17827234fc94313509c456b81986
[ "MIT" ]
2
2022-01-28T01:33:36.000Z
2022-02-13T11:07:22.000Z
PICdecompression.py
lukestaniscia/PIC
65e46bad184a17827234fc94313509c456b81986
[ "MIT" ]
null
null
null
PICdecompression.py
lukestaniscia/PIC
65e46bad184a17827234fc94313509c456b81986
[ "MIT" ]
null
null
null
# PIC Decompressor # By: Luke Staniscia #import used libraries/packages import math from PIL import Image, ImageOps, ImageEnhance import time def key0(x): return x[0] def key1(x): return (x[0]*maxBits + x[1])*1800 + int(x[2][2:],2) def sph2Cart(cord, precision = 3): az = cord[0] elev = cord[1] r = cord[2] az ...
34.361624
255
0.641753
0
0
0
0
0
0
0
0
1,500
0.161082
2d9ca014f6148bba68bdfa5b4c7582e543d8a366
320
py
Python
FlyBIDS/utils.py
PennLINC/FlyBIDS
0b44d624c75f537c668d75664c239c51100bdf8d
[ "MIT" ]
null
null
null
FlyBIDS/utils.py
PennLINC/FlyBIDS
0b44d624c75f537c668d75664c239c51100bdf8d
[ "MIT" ]
null
null
null
FlyBIDS/utils.py
PennLINC/FlyBIDS
0b44d624c75f537c668d75664c239c51100bdf8d
[ "MIT" ]
1
2021-11-25T21:33:13.000Z
2021-11-25T21:33:13.000Z
import re def get_nested(dct, *keys): for key in keys: try: dct = dct[key] except (KeyError, TypeError): return None return dct def extract(string, pattern): found = re.search(pattern, string) if found: return found.group(0) else: return ''
17.777778
38
0.553125
0
0
0
0
0
0
0
0
2
0.00625
2d9d64a82c22c23125bda210680688498f197ef6
16,493
py
Python
bayes_optim/acquisition_optim/one_plus_one_cma_es.py
zdanial/Bayesian-Optimization
a4779e992da15d21fa3fc425293cfb1f2621f81f
[ "BSD-3-Clause" ]
null
null
null
bayes_optim/acquisition_optim/one_plus_one_cma_es.py
zdanial/Bayesian-Optimization
a4779e992da15d21fa3fc425293cfb1f2621f81f
[ "BSD-3-Clause" ]
null
null
null
bayes_optim/acquisition_optim/one_plus_one_cma_es.py
zdanial/Bayesian-Optimization
a4779e992da15d21fa3fc425293cfb1f2621f81f
[ "BSD-3-Clause" ]
null
null
null
import logging from copy import copy from typing import Callable, Dict, List, Union import numpy as np from scipy.linalg import solve_triangular from ..search_space import RealSpace, SearchSpace from ..utils import dynamic_penalty, get_logger, handle_box_constraint, set_bounds Vector = List[float] Matrix = List[Vect...
35.166311
108
0.560056
16,135
0.978294
0
0
1,771
0.107379
0
0
4,587
0.278118
2d9e596053cbf26c358f0b0d5fec8cd4ccabf164
114
py
Python
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
1
2021-04-30T15:55:00.000Z
2021-04-30T15:55:00.000Z
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
null
null
null
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
null
null
null
from . import db class User(db.Model): """ Data Model for User Account""" __tablename__ = 'Users'
22.8
38
0.605263
88
0.77193
0
0
0
0
0
0
41
0.359649
2da001704782c80e590fd5c245e888c659cc6581
4,526
py
Python
tests/tests/test_provides_depends.py
NilsOlavKJohansen/integration
f6f70ad03e2518d76b90ebbfe37ff309a3c442e7
[ "Apache-2.0" ]
null
null
null
tests/tests/test_provides_depends.py
NilsOlavKJohansen/integration
f6f70ad03e2518d76b90ebbfe37ff309a3c442e7
[ "Apache-2.0" ]
66
2021-02-01T06:47:58.000Z
2022-02-28T16:03:48.000Z
tests/tests/test_provides_depends.py
NilsOlavKJohansen/integration
f6f70ad03e2518d76b90ebbfe37ff309a3c442e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2021 Northern.tech AS # # 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 ap...
42.299065
152
0.670349
3,578
0.790544
0
0
0
0
0
0
2,008
0.443659
2da05b7bb91fd333642597816cb7392931c551a1
276
py
Python
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
from invoke import task @task def no_docstring(): pass @task def one_line(): """foo """ @task def two_lines(): """foo bar """ @task def leading_whitespace(): """ foo """ @task(aliases=('a', 'b')) def with_aliases(): """foo """
9.857143
25
0.514493
0
0
0
0
242
0.876812
0
0
75
0.271739
2da1a492db1b897c4bb9696be1e2b24cd6f6083c
280
py
Python
love_release/utils.py
toxinu/pylove-release
92d879cbaa7cd6e5adfe21151617377bde7ba358
[ "Zlib" ]
1
2017-02-26T10:50:03.000Z
2017-02-26T10:50:03.000Z
love_release/utils.py
toxinu/pylove-release
92d879cbaa7cd6e5adfe21151617377bde7ba358
[ "Zlib" ]
1
2020-12-09T08:15:16.000Z
2020-12-09T08:15:16.000Z
love_release/utils.py
toxinu/pylove-release
92d879cbaa7cd6e5adfe21151617377bde7ba358
[ "Zlib" ]
null
null
null
from subprocess import PIPE from subprocess import Popen def run(command): assert (isinstance(command, list)), "Command must be a list" p = Popen(command, stdout=PIPE, stderr=PIPE) s, e = p.communicate() return s.decode('utf-8'), e.decode('utf-8'), p.returncode
28
64
0.689286
0
0
0
0
0
0
0
0
38
0.135714
2da324e1630916481c6ac8f3476873373cb7e770
12,748
py
Python
gender_converter/model/loss.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
null
null
null
gender_converter/model/loss.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
1
2021-08-11T06:41:56.000Z
2021-08-11T06:41:56.000Z
gender_converter/model/loss.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Layer from debugprint import print_debug from .utils import get_mask_from_lengths class ParrotLoss(): def __init__(self, hparams): super(ParrotLoss, self).__init__() self.hidden_dim = hparams.encoder_embedding_dim self.mel_hidden_...
56.15859
124
0.655005
12,603
0.988626
0
0
0
0
0
0
1,983
0.155554
2da34ae804d338824cab481265b913a1023b155d
2,509
py
Python
pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Markdown filters This file contains a collection of utility filters for dealing with markdown within Jinja templates. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function import os import subprocess from io import TextIOWra...
28.511364
87
0.721403
0
0
0
0
0
0
0
0
1,522
0.606616
2da37e3c9de143cff5afbbd07d8f713a7806daa6
3,006
py
Python
tests/test_python_simulation_function.py
tanxicccc/rsopt
8705e937f95a4bbe6ed3fb1a04b78f724a5f3931
[ "Apache-2.0" ]
null
null
null
tests/test_python_simulation_function.py
tanxicccc/rsopt
8705e937f95a4bbe6ed3fb1a04b78f724a5f3931
[ "Apache-2.0" ]
null
null
null
tests/test_python_simulation_function.py
tanxicccc/rsopt
8705e937f95a4bbe6ed3fb1a04b78f724a5f3931
[ "Apache-2.0" ]
null
null
null
import unittest import sys import inspect from unittest import mock import numpy as np import rsopt.libe_tools.simulation_functions.python_simulation_functions as pyfunc import rsopt.optimizer as opt radiamodule = mock.MagicMock() sys.modules["radia"] = radiamodule from rsopt.codes.radia.sim_functions import hybrid_und...
37.111111
116
0.659348
2,423
0.806055
0
0
0
0
0
0
72
0.023952
2da5fddf872be8bcdd6b64ff00d82f7bd32eb0ed
10,646
py
Python
ranker/views.py
shreyashc/firecube
4e3da7b66398cafb54182afdf34bfe76fd160376
[ "Apache-2.0" ]
1
2020-06-23T13:04:07.000Z
2020-06-23T13:04:07.000Z
ranker/views.py
shreyashc/firecube
4e3da7b66398cafb54182afdf34bfe76fd160376
[ "Apache-2.0" ]
4
2021-03-30T13:41:15.000Z
2021-06-04T23:28:51.000Z
ranker/views.py
shreyashc/firecube
4e3da7b66398cafb54182afdf34bfe76fd160376
[ "Apache-2.0" ]
null
null
null
import datetime import json import os import random import re from urllib.parse import quote import lxml import pafy import requests import youtube_dl from bs4 import BeautifulSoup from django.conf import settings from django.core.files.storage import FileSystemStorage from django.http import (Http404, HttpResponse, H...
29.490305
91
0.629814
0
0
0
0
2,237
0.210126
0
0
2,077
0.195097
2da60021013430b40d9e59ed61bc0bac8ce56e08
416
py
Python
spotdl/get-file-name.py
Shaxadhere/spotdl
fc7d587a86b886fa4e020ac825d1748a7776de32
[ "MIT" ]
25
2019-02-21T09:31:56.000Z
2022-03-13T15:36:24.000Z
spotdl/get-file-name.py
Shaxadhere/spotdl
fc7d587a86b886fa4e020ac825d1748a7776de32
[ "MIT" ]
2
2019-09-02T20:04:44.000Z
2019-12-27T22:13:13.000Z
spotdl/get-file-name.py
Shaxadhere/spotdl
fc7d587a86b886fa4e020ac825d1748a7776de32
[ "MIT" ]
9
2019-10-01T12:44:29.000Z
2021-03-24T10:09:03.000Z
from spotdl import handle from spotdl import const from spotdl import downloader import os import sys const.args = handle.get_arguments(to_group=True) track = downloader.Downloader(raw_song=const.args.song[0]) track_title = track.refine_songname(track.content.title) track_filename = track_title + const.args.output_...
26
69
0.822115
0
0
0
0
0
0
0
0
0
0
2da6673de1f45443b481635cfc357d6aa84b8b6e
10,180
py
Python
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.391892
87
0.654224
9,225
0.906189
0
0
7,547
0.741356
0
0
1,464
0.143811
2da77faddf4b0a9e2d1e82abb164f673b693fc5a
2,047
py
Python
tests/cursor_test.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
1
2020-02-10T04:10:47.000Z
2020-02-10T04:10:47.000Z
tests/cursor_test.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
null
null
null
tests/cursor_test.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
null
null
null
"""Tests for the cursor module.""" from __future__ import absolute_import from . import common from bearfield import cursor, Document, Field, Query class TestCursor(common.TestCase): """Test the Cursor class.""" class Document(Document): class Meta: connection = 'test' index = Fie...
32.492063
91
0.587201
1,896
0.926234
0
0
0
0
0
0
398
0.194431
2da7cbb4021480710bdd309c7b2cd4bb7eabafd6
1,417
py
Python
probability_combinatorics/combinatoric.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
probability_combinatorics/combinatoric.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
probability_combinatorics/combinatoric.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
from decimal import Decimal from math import e, factorial def combination(num, den): """ Find nCr or (n r), the Binomial Coefficients """ dec1 = dec2 = Decimal(1) if 0 <= den <= num: diff = num - den if num-diff < num-den: temp = diff other = den else...
26.240741
88
0.531404
0
0
0
0
0
0
0
0
348
0.245589
2da83aad3727d404e8eb161796f19ec8b932423c
471
py
Python
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Testing conf module.""" # third-party import pytest from falcon import testing from .app import app_hook, app_middleware @pytest.fixture def client_hook() -> testing.TestClient: """Create testing client fixture for hook app""" return testing.TestClient(app_hook) @pytest.fixture d...
23.55
58
0.73673
0
0
0
0
316
0.670913
0
0
164
0.348195
2da8c8644c0e6cac3083e9093738eebd0e2b170b
1,574
py
Python
sortingview/SpikeSortingView/create_position_pdf_plot.py
garrettmflynn/sortingview
0bb3df40d5d031ec651c4821f928787bbee71fbb
[ "Apache-2.0" ]
2
2021-11-19T04:51:42.000Z
2022-03-12T23:36:19.000Z
sortingview/experimental/SpikeSortingView/create_position_pdf_plot.py
magland/sortingview
0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7
[ "Apache-2.0" ]
172
2021-05-10T17:39:15.000Z
2022-03-18T21:46:15.000Z
sortingview/SpikeSortingView/create_position_pdf_plot.py
garrettmflynn/sortingview
0bb3df40d5d031ec651c4821f928787bbee71fbb
[ "Apache-2.0" ]
2
2021-08-29T20:13:57.000Z
2022-03-12T23:36:34.000Z
from typing import List, Union import numpy as np from .Figure import Figure def create_position_pdf_plot(*, start_time_sec: np.float32, sampling_frequency: np.float32, pdf: np.ndarray, label: str): # Nt = pdf.shape[0] # Np = pdf.shape[1] A = pdf B = A / np.reshape(np.repeat(np.max(A, axis=1), A.shape...
31.48
216
0.622618
0
0
0
0
0
0
0
0
575
0.365311
2da911fdfe3d966fb015f3569a027ce8ff19ecfb
976
py
Python
Prototype Pygame/arrays.py
KValexander/own_rts
6bfeadb5c5d29461471c84d883b616117cea79f5
[ "MIT" ]
null
null
null
Prototype Pygame/arrays.py
KValexander/own_rts
6bfeadb5c5d29461471c84d883b616117cea79f5
[ "MIT" ]
null
null
null
Prototype Pygame/arrays.py
KValexander/own_rts
6bfeadb5c5d29461471c84d883b616117cea79f5
[ "MIT" ]
null
null
null
# Connect files from configs import * # Arrays items = [] selectedItems = [] # Interface arrays buttons = [] surfaces = [] # Getting item def getItemById(ident): for item in items: if item.id == ident: return item # Removing item def removeItem(item): items.remove(item) # Removing items def removeItems(): ...
16.542373
42
0.71209
0
0
0
0
0
0
0
0
220
0.22541
2daba1326e1f0508a50319a46a2356919a73deaf
6,236
py
Python
webapp/app.py
liaosvcaf/earlyAlertOfLaws
9c348304c977bf8266f41a26e8ef1b9625bf2624
[ "BSD-3-Clause" ]
null
null
null
webapp/app.py
liaosvcaf/earlyAlertOfLaws
9c348304c977bf8266f41a26e8ef1b9625bf2624
[ "BSD-3-Clause" ]
32
2019-06-16T18:37:56.000Z
2020-04-13T05:46:51.000Z
webapp/app.py
liaosvcaf/earlyAlertOfLaws
9c348304c977bf8266f41a26e8ef1b9625bf2624
[ "BSD-3-Clause" ]
1
2019-06-19T19:26:47.000Z
2019-06-19T19:26:47.000Z
import os import markdown2 from forms import AddKeywordForm, SubscribeEmailForm, TimeWindowForm from flask import (flash, render_template, request, escape, redirect, url_for, session, abort) from flask_paginate import Pagination, get_page_parameter from parsing.notifications import send_email_subs_...
36.899408
85
0.581944
0
0
0
0
4,835
0.775337
0
0
1,080
0.173188
2daf875f81bee0d399c3a9fc2f2a690e79795655
46,895
py
Python
colossalai/nn/layer/parallel_1d/layers.py
jiangz17THU/ColossalAI
354b7954d1fa6b21a5ba566f0d5ec099280ad315
[ "Apache-2.0" ]
null
null
null
colossalai/nn/layer/parallel_1d/layers.py
jiangz17THU/ColossalAI
354b7954d1fa6b21a5ba566f0d5ec099280ad315
[ "Apache-2.0" ]
null
null
null
colossalai/nn/layer/parallel_1d/layers.py
jiangz17THU/ColossalAI
354b7954d1fa6b21a5ba566f0d5ec099280ad315
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import math from collections import OrderedDict from typing import Callable, Tuple import torch import torch.nn.functional as F from colossalai.communication import broadcast from colossalai.context import ParallelMode, seed from colossalai.core import global_context as...
47.803262
126
0.57906
45,440
0.968808
0
0
45,680
0.973925
0
0
12,278
0.261774
2dafc2ffcc26838e9b8053b355658613f3b90115
1,027
py
Python
3rdparty/wsgi_intercept/test/test_mechanoid.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
50
2015-01-01T00:14:04.000Z
2020-11-26T04:44:30.000Z
3rdparty/wsgi_intercept/test/test_mechanoid.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
3
2016-01-31T17:14:41.000Z
2017-03-01T13:36:17.000Z
3rdparty/wsgi_intercept/test/test_mechanoid.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
15
2015-10-29T09:04:21.000Z
2022-01-19T17:33:25.000Z
#! /usr/bin/env python2.3 from wsgi_intercept.mechanoid_intercept import Browser from nose.tools import with_setup import wsgi_intercept from wsgi_intercept import test_wsgi_app ### _saved_debuglevel = None def install(port=80): _saved_debuglevel, wsgi_intercept.debuglevel = wsgi_intercept.debuglevel, 1 wsgi...
30.205882
105
0.772152
0
0
0
0
528
0.514119
0
0
201
0.195716
2db05706caff34651b92ff77057d0e7d52474883
3,538
py
Python
kneejerk/cli.py
NapsterInBlue/kneejerk
8ea78e0e57c5078155983ac2bdf163ac1e14c639
[ "MIT" ]
null
null
null
kneejerk/cli.py
NapsterInBlue/kneejerk
8ea78e0e57c5078155983ac2bdf163ac1e14c639
[ "MIT" ]
15
2019-01-20T02:32:59.000Z
2020-03-31T01:18:40.000Z
kneejerk/cli.py
NapsterInBlue/kneejerk
8ea78e0e57c5078155983ac2bdf163ac1e14c639
[ "MIT" ]
null
null
null
import click import pathlib import os from kneejerk.image_server import score_images_in_dir from kneejerk.data.saver import persist_scores, persist_metadata from kneejerk.data.transfer import segment_data_from_csv, transfer_normalized_image_data from kneejerk.data.utils import _get_classes, _get_max_image_dim, _ensure...
34.349515
88
0.672131
0
0
0
0
3,156
0.892029
0
0
1,005
0.284059
2db0fa793cb0563f92fe9fa1fd0a8a2de5faad8e
7,277
py
Python
magic.py
githoniel/ac7-ultrawide
1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3
[ "MIT" ]
null
null
null
magic.py
githoniel/ac7-ultrawide
1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3
[ "MIT" ]
null
null
null
magic.py
githoniel/ac7-ultrawide
1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3
[ "MIT" ]
null
null
null
import sys, os, shutil, binascii, urllib.request, zipfile, ctypes, math, glob # Must be in game root folder. if not os.path.isfile('Ace7Game.exe'): wait = input('Ace7Game.exe not found in this folder. Press any key to close...') sys.exit(0) # Get resolution from OS. u32 = ctypes.windll.user32 u32.SetProcessDP...
34.325472
113
0.694929
0
0
0
0
0
0
0
0
2,995
0.411571
2db16944c7d0a8a83740304bb1e35db5c0789ebe
5,202
py
Python
DigitRecognition.py
Michael-Kidd/4th-Year---Emerging-Technology
ec24a32e08cff691cbfd888fe6ba92db0678d57f
[ "MIT" ]
null
null
null
DigitRecognition.py
Michael-Kidd/4th-Year---Emerging-Technology
ec24a32e08cff691cbfd888fe6ba92db0678d57f
[ "MIT" ]
null
null
null
DigitRecognition.py
Michael-Kidd/4th-Year---Emerging-Technology
ec24a32e08cff691cbfd888fe6ba92db0678d57f
[ "MIT" ]
null
null
null
# Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. import tkinter as tk import keras as kr import numpy as np import matplotlib.pyplot as plt import math import sklearn.preprocessing as pre import gzip import PIL from PIL import Image, ImageDraw import os.path width = 280 height = 280 ce...
25.37561
98
0.660323
0
0
0
0
0
0
0
0
2,024
0.389081
2db293b083a219201f316a4494a2574920bb381f
1,007
py
Python
sort/insertion.py
Wind2esg/python3sort
ead213f75a54da7d476865e3cf0a551ab0970d7d
[ "MIT" ]
1
2018-01-30T04:44:05.000Z
2018-01-30T04:44:05.000Z
sort/insertion.py
Wind2esg/python3sort
ead213f75a54da7d476865e3cf0a551ab0970d7d
[ "MIT" ]
null
null
null
sort/insertion.py
Wind2esg/python3sort
ead213f75a54da7d476865e3cf0a551ab0970d7d
[ "MIT" ]
null
null
null
# python3 sort <http://github.com/Wind2esg/python3sort> # Copyright 2018 Wind2esg # Released under the MIT license <http://github.com/Wind2esg/python3sort/LICENSE> # Build a sorted range from 0 to i - 1, then try to find the position for the i item # Because it is sorted in the range, when finding, compare the i item ...
32.483871
95
0.653426
0
0
0
0
0
0
0
0
412
0.409136
2db2c86f651f174e6af10c9853850aca24373576
571
py
Python
organization/urls.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
null
null
null
organization/urls.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
7
2020-06-06T01:40:06.000Z
2022-02-10T09:12:56.000Z
organization/urls.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
1
2021-08-16T13:23:34.000Z
2021-08-16T13:23:34.000Z
from django.urls import path from .views import OrganizationView, ServiceView, ServiceListView from registration import views app_name = "organization" urlpatterns = [ path('<org_name>/service/<ticket>/', ServiceView.as_view(), name='service_view_get'), path('<org_name>/service/', ServiceView.as_view(), name...
35.6875
89
0.732049
0
0
0
0
0
0
0
0
187
0.327496
2db31ca93e416c8f0b58659d1cea6bcc728c9c86
1,977
py
Python
examples/layer_metrics.py
rolandproud/pyechometrics
6036772b5e3acd329cb7bda84331c291e8fb334d
[ "MIT" ]
null
null
null
examples/layer_metrics.py
rolandproud/pyechometrics
6036772b5e3acd329cb7bda84331c291e8fb334d
[ "MIT" ]
null
null
null
examples/layer_metrics.py
rolandproud/pyechometrics
6036772b5e3acd329cb7bda84331c291e8fb334d
[ "MIT" ]
1
2021-06-30T23:16:03.000Z
2021-06-30T23:16:03.000Z
# -*- coding: utf-8 -*- """ Summarise Sound Scattering Layers (SSLs) @author: Roland Proud """ ## import packages import matplotlib.pyplot as plt import gzip import pickle import numpy as np from pyechoplot.plotting import plot_pseudo_SSL, save_png_plot, plot_Sv ## import pyechometrics modules from pyechometrics.met...
22.724138
77
0.711179
0
0
0
0
0
0
0
0
888
0.449165
2db77d4290e85a408a47162d591a4a6dfa173183
10,334
py
Python
chb/graphics/DotCfg.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/graphics/DotCfg.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/graphics/DotCfg.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020 Henny Si...
40.210117
89
0.533869
8,567
0.829011
0
0
0
0
0
0
2,211
0.213954
2db7c1f7bd22a70de17e35de2236e6155f5a96dc
534
py
Python
AEC.py
apayeur/GIF-Ca
7ba9e715d79aa3a733f417f7dfce81842041e7ec
[ "MIT" ]
1
2020-06-05T15:34:34.000Z
2020-06-05T15:34:34.000Z
src/AEC.py
apayeur/GIF-K
36228dfe5ffc2cded3f3224e289bd60e6bc7b93c
[ "MIT" ]
null
null
null
src/AEC.py
apayeur/GIF-K
36228dfe5ffc2cded3f3224e289bd60e6bc7b93c
[ "MIT" ]
null
null
null
import abc from Experiment import * class AEC : """ Abstract class defining an interface for performing active electrode compensation. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def performAEC(self, experiment): """ This method should preprocess al...
18.413793
97
0.554307
464
0.868914
0
0
292
0.546816
0
0
258
0.483146
2db8d601711034292e85c17511fbcd5cd25b13fb
6,126
py
Python
locust/test/test_env.py
radhakrishnaakamat/locust
51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2
[ "MIT" ]
1
2022-02-26T00:17:46.000Z
2022-02-26T00:17:46.000Z
locust/test/test_env.py
radhakrishnaakamat/locust
51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2
[ "MIT" ]
1
2020-12-29T04:26:09.000Z
2020-12-29T04:26:09.000Z
locust/test/test_env.py
radhakrishnaakamat/locust
51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2
[ "MIT" ]
1
2022-02-25T14:23:40.000Z
2022-02-25T14:23:40.000Z
from locust import ( constant, ) from locust.env import Environment, LoadTestShape from locust.user import ( User, task, ) from locust.user.task import TaskSet from .testcases import LocustTestCase from .fake_module1_for_env_test import MyUserWithSameName as MyUserWithSameName1 from .fake_module2_for_env_te...
30.326733
182
0.579987
5,751
0.938786
0
0
916
0.149527
0
0
735
0.11998
2db96537947c81899effbd609c7adfa473931eeb
33
py
Python
datasets/__init__.py
Masterchef365/pvcnn
db13331a46f672e74e7b5bde60e7bf30d445cd2d
[ "MIT" ]
477
2019-12-10T01:03:43.000Z
2022-03-28T14:10:08.000Z
datasets/__init__.py
chaomath/pvcnn
8f07316611067e9a0e2df8b35e4a729a03e0806b
[ "MIT" ]
57
2019-12-10T10:14:26.000Z
2022-03-26T04:59:43.000Z
datasets/__init__.py
chaomath/pvcnn
8f07316611067e9a0e2df8b35e4a729a03e0806b
[ "MIT" ]
126
2019-12-10T07:59:50.000Z
2022-03-12T07:21:19.000Z
from datasets.s3dis import S3DIS
16.5
32
0.848485
0
0
0
0
0
0
0
0
0
0
2dba6814e9a58be8a1046bd1b724d2d25bc21d0e
1,930
py
Python
schedule/main/utils/fetch_data.py
DSD-ESDC-EDSC/dynamic-org-chart-scripts
a2247ac85ddadc5b33256a501be16bf787b395b6
[ "MIT" ]
null
null
null
schedule/main/utils/fetch_data.py
DSD-ESDC-EDSC/dynamic-org-chart-scripts
a2247ac85ddadc5b33256a501be16bf787b395b6
[ "MIT" ]
null
null
null
schedule/main/utils/fetch_data.py
DSD-ESDC-EDSC/dynamic-org-chart-scripts
a2247ac85ddadc5b33256a501be16bf787b395b6
[ "MIT" ]
null
null
null
import csv from io import BytesIO import pandas as pd from urllib.request import urlopen from zipfile import ZipFile def fetch_geds(url, subset=None): ''' Fetches the geds dataset from Canada's Open Data Portal Args: url: A string containing the url to the Canada Open Data Portal web ...
39.387755
88
0.650259
0
0
0
0
0
0
0
0
1,238
0.641451
2dbaf351886ba4462165fc13883318f911a808c6
3,210
py
Python
grid.py
Data-Mechanics/bps-simulated-students
eb96fcb1185c5b00b822a36ce74bcbead87d5e16
[ "MIT" ]
2
2018-02-14T01:33:39.000Z
2019-04-03T07:08:15.000Z
grid.py
data-mechanics/bps-simulated-data
eb96fcb1185c5b00b822a36ce74bcbead87d5e16
[ "MIT" ]
null
null
null
grid.py
data-mechanics/bps-simulated-data
eb96fcb1185c5b00b822a36ce74bcbead87d5e16
[ "MIT" ]
2
2018-02-14T01:33:46.000Z
2019-04-03T07:08:17.000Z
""" grid.py Module containing class for working with a street grid. """ import json import geojson import geopy.distance import shapely.geometry from geoql import geoql import geoleaflet import folium import rtree import networkx from tqdm import tqdm class Grid(): @staticmethod def prepare(file_segments, fi...
37.764706
111
0.62648
2,648
0.824922
0
0
2,110
0.657321
0
0
861
0.268224
2dbb30295e3227128b76736e47f8b0f48dfcbaa4
6,019
py
Python
lost_ds/vis/vis.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
1
2022-03-30T11:29:57.000Z
2022-03-30T11:29:57.000Z
lost_ds/vis/vis.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
lost_ds/vis/vis.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
import os from tqdm import tqdm from joblib import Parallel, delayed try: import seaborn as sns except: pass import numpy as np import cv2 from lost_ds.util import get_fs from lost_ds.geometry.lost_geom import LOSTGeometries from lost_ds.functional.api import remove_empty def get_fontscale(fontscale, thic...
39.860927
81
0.615052
0
0
0
0
0
0
0
0
2,391
0.397242
2dbb32b6fb7e99eba9946c0267ff01781d71e612
16,638
py
Python
cadnano/views/pathview/prexovermanager.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/pathview/prexovermanager.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/pathview/prexovermanager.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
from collections import deque from PyQt5.QtCore import Qt from PyQt5.QtGui import QColor from PyQt5.QtWidgets import QGraphicsRectItem from cadnano.gui.palette import getNoPen from cadnano.proxies.cnenum import StrandType from .pathextras import PreXoverItem class PreXoverManager(QGraphicsRectItem): """Summary ...
36.486842
108
0.536783
16,362
0.983411
0
0
528
0.031735
0
0
4,808
0.288977
2dbba15b3067323a927d0aa7d2634d1361341f4c
782
py
Python
tests/api_test.py
pmav99/sysfacts
09a5658a8f4e789db71844759dd4ae61369f4f4a
[ "MIT" ]
2
2019-01-25T17:32:49.000Z
2020-11-06T19:45:40.000Z
tests/api_test.py
pmav99/sysfacts
09a5658a8f4e789db71844759dd4ae61369f4f4a
[ "MIT" ]
3
2019-01-25T23:36:42.000Z
2019-01-26T23:20:09.000Z
tests/api_test.py
pmav99/sysfacts
09a5658a8f4e789db71844759dd4ae61369f4f4a
[ "MIT" ]
null
null
null
import json import pytest import sysfacts @pytest.fixture(scope="module") def collected_data(): return sysfacts.collect_facts() def test_imports(): from sysfacts import collect_facts def test_return_type(collected_data): assert isinstance(collected_data, dict) def test_keys_are_present(collected_d...
19.55
81
0.680307
0
0
0
0
89
0.113811
0
0
112
0.143223
2dbd516e74ed752446450ca98d09c2ca319fdd11
521
py
Python
MerginLetters.py
SandraCoburn/python-code-challenges
52ca026c02a45cadc890d01fc095d39d42b36d4c
[ "MIT" ]
null
null
null
MerginLetters.py
SandraCoburn/python-code-challenges
52ca026c02a45cadc890d01fc095d39d42b36d4c
[ "MIT" ]
null
null
null
MerginLetters.py
SandraCoburn/python-code-challenges
52ca026c02a45cadc890d01fc095d39d42b36d4c
[ "MIT" ]
null
null
null
def mergingLetters(s, t): #edge cases mergedStr = "" firstChar = list(s) secondChar = list(t) for i, ele in enumerate(secondChar): if i < len(firstChar): mergedStr = mergedStr + firstChar[i] print('first pointer', firstChar[i], mergedStr) if i < len(second...
26.05
71
0.589251
0
0
0
0
0
0
0
0
67
0.128599
2dbe52d295d10c6a1ea04833833e85f2bfabaaa8
2,696
py
Python
loutilities/flask_helpers/decorators.py
louking/loutilities
7a7bb27b09b8d6e3a411153b604858aaec397fc6
[ "Apache-2.0" ]
1
2020-03-16T12:47:08.000Z
2020-03-16T12:47:08.000Z
loutilities/flask_helpers/decorators.py
louking/loutilities
7a7bb27b09b8d6e3a411153b604858aaec397fc6
[ "Apache-2.0" ]
35
2015-07-11T14:57:30.000Z
2022-03-12T00:53:44.000Z
loutilities/flask_helpers/decorators.py
louking/loutilities
7a7bb27b09b8d6e3a411153b604858aaec397fc6
[ "Apache-2.0" ]
null
null
null
''' decorators - decorators to help with flask applications ''' # standard from datetime import timedelta from functools import update_wrapper # pypi from flask import make_response, request, current_app def crossdomain(origin=None, methods=None, headers=None, max_age=21600, attach_to_all=True, ...
44.196721
208
0.676187
0
0
0
0
0
0
0
0
1,197
0.443991
2dbe7b6b088d005ebb2e9f0a7622bd914d341736
631
py
Python
modules/secondarybase64_layer5.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
1
2021-05-18T16:04:31.000Z
2021-05-18T16:04:31.000Z
modules/secondarybase64_layer5.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
1
2021-05-31T08:09:47.000Z
2021-06-01T16:12:05.000Z
modules/secondarybase64_layer5.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
null
null
null
def secondarybase64_layer5(nearing_the_end_script): import base64 print("Secondary base64 encrypting") joe = (nearing_the_end_script) spliting = joe.encode('utf-8') spliting = base64.b64encode(spliting) spliting = spliting.decode('utf-8') split_strings = [] n = int((len(spliting))/20) for index in r...
37.117647
140
0.700475
0
0
0
0
0
0
0
0
142
0.22504
2dbea13bd2722e39d52ed915d89d5e1fea406ab7
458
py
Python
Forms/InstagramLoginForm.py
CT83/PyMultiPoster
2ecd96764f21a88486f87cc55099ddff8d106e4f
[ "Apache-2.0" ]
null
null
null
Forms/InstagramLoginForm.py
CT83/PyMultiPoster
2ecd96764f21a88486f87cc55099ddff8d106e4f
[ "Apache-2.0" ]
null
null
null
Forms/InstagramLoginForm.py
CT83/PyMultiPoster
2ecd96764f21a88486f87cc55099ddff8d106e4f
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import PasswordField, SubmitField, StringField from wtforms.validators import DataRequired, Length class InstagramLoginForm(FlaskForm): username = StringField('Instagram Username', validators=[DataRequired(), ...
41.636364
84
0.679039
311
0.679039
0
0
0
0
0
0
46
0.100437
2dbf56a3c63f5d01e7044ebe76a8ea82211353a1
5,117
py
Python
tests/flask/test_oauth2/test_token_introspection.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
2
2021-04-26T18:17:37.000Z
2021-04-28T21:39:45.000Z
tests/flask/test_oauth2/test_token_introspection.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
null
null
null
tests/flask/test_oauth2/test_token_introspection.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
1
2019-10-07T02:01:48.000Z
2019-10-07T02:01:48.000Z
from flask import json from authlib.flask.oauth2.sqla import create_query_token_func from authlib.oauth2.rfc7662 import IntrospectionEndpoint from .models import db, User, Client, Token from .oauth2_server import TestCase from .oauth2_server import create_authorization_server query_token = create_query_token_func(db....
34.574324
67
0.604065
4,775
0.933164
0
0
0
0
0
0
1,079
0.210866
2dc102802d9ae34a2d04e2d9f5c68f1bb09bad45
7,031
py
Python
modules/database.py
MrEluzium/UlvicationBot
87a591726161166072f59306175c1c7ef5a7f713
[ "Apache-2.0" ]
null
null
null
modules/database.py
MrEluzium/UlvicationBot
87a591726161166072f59306175c1c7ef5a7f713
[ "Apache-2.0" ]
null
null
null
modules/database.py
MrEluzium/UlvicationBot
87a591726161166072f59306175c1c7ef5a7f713
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Артём Воронов # # 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...
37.005263
150
0.582563
6,360
0.903024
0
0
0
0
0
0
3,927
0.557575
2dc2a50bc68f5c4de74bd70134b3c6049945496f
1,203
py
Python
common-mk/mojom_bindings_generator_wrapper.py
strassek/chromiumos-platform2
12c953f41f48b8a6b0bd1c181d09bdb1de38325c
[ "BSD-3-Clause" ]
4
2020-07-24T06:54:16.000Z
2021-06-16T17:13:53.000Z
common-mk/mojom_bindings_generator_wrapper.py
strassek/chromiumos-platform2
12c953f41f48b8a6b0bd1c181d09bdb1de38325c
[ "BSD-3-Clause" ]
1
2021-04-02T17:35:07.000Z
2021-04-02T17:35:07.000Z
common-mk/mojom_bindings_generator_wrapper.py
strassek/chromiumos-platform2
12c953f41f48b8a6b0bd1c181d09bdb1de38325c
[ "BSD-3-Clause" ]
1
2020-11-04T22:31:45.000Z
2020-11-04T22:31:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Thin wrapper of Mojo's mojom_bindings_generator.py. To generate C++ files from mojom, it is necessary...
30.075
77
0.73483
0
0
0
0
0
0
0
0
922
0.766417
2dc525d7b867d2625c1781dd2d072f7fa9a50ee6
4,799
py
Python
script.module.placenta/lib/resources/lib/sources/en/to_be_fixed/sitedown/onlinemovies.py
parser4life/tantrumrepo
3b37145f4772409e538cbddb0b7aa23be525772a
[ "Beerware" ]
1
2021-05-09T19:55:51.000Z
2021-05-09T19:55:51.000Z
script.module.placenta/lib/resources/lib/sources/en/to_be_fixed/sitedown/onlinemovies.py
parser4life/tantrumrepo
3b37145f4772409e538cbddb0b7aa23be525772a
[ "Beerware" ]
null
null
null
script.module.placenta/lib/resources/lib/sources/en/to_be_fixed/sitedown/onlinemovies.py
parser4life/tantrumrepo
3b37145f4772409e538cbddb0b7aa23be525772a
[ "Beerware" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
# NEEDS FIXING # -*- coding: UTF-8 -*- ####################################################################### # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # @tantrumdev wrote this file. As long as you retain this notice you # can do whate...
34.52518
182
0.470723
3,941
0.821213
0
0
0
0
0
0
1,289
0.268598
2dc6b64392d41e06755147486243708c0cbcc454
2,362
py
Python
venv/src/pages/forms.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
1
2019-10-28T03:44:38.000Z
2019-10-28T03:44:38.000Z
venv/src/pages/forms.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
null
null
null
venv/src/pages/forms.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import * class EmpresaCreateForm(forms.ModelForm): class Meta: model = Empresa fields = [ 'nombre', 'description', 'direccion...
22.495238
54
0.453006
2,198
0.930567
0
0
0
0
0
0
642
0.271804
2dc76e500ca4b409bef1091d33217d948f97e80c
5,639
py
Python
tests/test_connections.py
iparaskev/py_connect
43476cddfb25130d058fcf59928454f867af8feb
[ "BSD-3-Clause" ]
5
2021-03-19T07:05:50.000Z
2021-03-31T22:53:52.000Z
tests/test_connections.py
iparaskev/py_connect
43476cddfb25130d058fcf59928454f867af8feb
[ "BSD-3-Clause" ]
null
null
null
tests/test_connections.py
iparaskev/py_connect
43476cddfb25130d058fcf59928454f867af8feb
[ "BSD-3-Clause" ]
null
null
null
"""test_connections.py""" import unittest import os from py_connect import ConnectionsHandler from py_connect import Board, Peripheral, SensorTypes cons_path = \ "/".join(os.path.abspath(__file__).split("/")[:-2]) + "/test_connections/" class TestConnection(unittest.TestCase): def test_gpio_connection(sel...
45.845528
83
0.597446
5,343
0.947508
0
0
0
0
0
0
1,231
0.218301
2dc9476cbdfe54502530421ec62dd23ee2ee1011
4,624
py
Python
p3iv_utils/src/p3iv_utils/coordinate_transformation.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
4
2021-07-27T06:56:22.000Z
2022-03-22T11:21:30.000Z
p3iv_utils/src/p3iv_utils/coordinate_transformation.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
null
null
null
p3iv_utils/src/p3iv_utils/coordinate_transformation.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
1
2021-10-10T01:56:44.000Z
2021-10-10T01:56:44.000Z
# This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV), # copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory) import numpy as np import lanelet2.geometry from lanelet2.core import BasicPoint2d, LaneletSequenc...
39.186441
118
0.640138
4,254
0.919983
0
0
1,533
0.331531
0
0
903
0.195285
2dc96003810a3b3ddd4e4137fa58deb740206c23
668
py
Python
web/pyserver/workers/board/views/board.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
2
2021-01-07T05:09:17.000Z
2021-10-15T05:13:46.000Z
web/pyserver/workers/board/views/board.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
9
2021-09-08T03:12:59.000Z
2022-03-12T00:57:19.000Z
web/pyserver/workers/board/views/board.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
null
null
null
import aiohttp_cors from aiohttp import web from common.utils.run_cmd import run class Tensorboard(web.View, aiohttp_cors.CorsViewMixin): async def get(self): print("Start") folder = self.request.query.get("folder") cmd_check = 'ps a' o, e = await run(cmd_check) print(cmd...
29.043478
103
0.637725
583
0.872754
0
0
0
0
521
0.77994
131
0.196108
2dca7a410a4b4fc054c136085f57855c6543b78e
716
py
Python
molecule/default/tests/test_role.py
boutetnico/ansible-role-nodejs
de9d70556decbf76d9a939499c42edc85e2d65e8
[ "MIT" ]
null
null
null
molecule/default/tests/test_role.py
boutetnico/ansible-role-nodejs
de9d70556decbf76d9a939499c42edc85e2d65e8
[ "MIT" ]
null
null
null
molecule/default/tests/test_role.py
boutetnico/ansible-role-nodejs
de9d70556decbf76d9a939499c42edc85e2d65e8
[ "MIT" ]
null
null
null
import pytest import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.parametrize('name', [ ('nodejs'), ]) def test_packages_are_installed(host, name): package = host.package(name)...
23.866667
63
0.699721
0
0
0
0
521
0.727654
0
0
141
0.196927
2dcaf1c764e04a5631433a84042c46eeee80f0f9
28
py
Python
losses/__init__.py
xieqk/SEF
2163a159933d8d9ecad5ff9341cfa626f662a778
[ "MIT" ]
null
null
null
losses/__init__.py
xieqk/SEF
2163a159933d8d9ecad5ff9341cfa626f662a778
[ "MIT" ]
null
null
null
losses/__init__.py
xieqk/SEF
2163a159933d8d9ecad5ff9341cfa626f662a778
[ "MIT" ]
null
null
null
from .ranking import Triplet
28
28
0.857143
0
0
0
0
0
0
0
0
0
0
2dcbf62d4bf655fa54c52c4d475fe511450f1255
1,216
py
Python
GTFtools.py
zhenglabuthscsa/PRADA2
d050971dc6e0a8ab11f8575787b2f4848502ed21
[ "MIT" ]
null
null
null
GTFtools.py
zhenglabuthscsa/PRADA2
d050971dc6e0a8ab11f8575787b2f4848502ed21
[ "MIT" ]
null
null
null
GTFtools.py
zhenglabuthscsa/PRADA2
d050971dc6e0a8ab11f8575787b2f4848502ed21
[ "MIT" ]
1
2021-10-18T23:44:54.000Z
2021-10-18T23:44:54.000Z
""" created by Juechen Yang at 1/8/19 """ import os import pandas as pd def export_to_bed(gtf,intermediate_file_dir, lincRNA): if lincRNA: lincRNAIDs = pd.read_csv(os.path.join(intermediate_file_dir, 'intersect_total.txt'), names=['ids'], sep='\t') exons = gtf[(gtf.feature == 'exon') & (gtf.seqnam...
46.769231
133
0.563322
0
0
0
0
0
0
0
0
271
0.222862
2dcc54fe3a394449dcf9c0f9b37aad39578e1f30
8,767
py
Python
dlclabel/io.py
jonmatthis/napari-DeepLabCut
90e2fd230d9f4ab493698c619e976235df4adfeb
[ "MIT" ]
null
null
null
dlclabel/io.py
jonmatthis/napari-DeepLabCut
90e2fd230d9f4ab493698c619e976235df4adfeb
[ "MIT" ]
null
null
null
dlclabel/io.py
jonmatthis/napari-DeepLabCut
90e2fd230d9f4ab493698c619e976235df4adfeb
[ "MIT" ]
null
null
null
import glob import numpy as np import os import pandas as pd import yaml from dask_image.imread import imread from dlclabel import misc from itertools import groupby from napari.layers import Shapes from napari.plugins._builtins import napari_write_shapes from napari.types import LayerData from skimage.io import imsave...
37.306383
89
0.603399
0
0
0
0
0
0
0
0
1,502
0.171324
2dcde6f1aeb6275a870472422f2f2e32d94b6cf9
537
py
Python
mathematics/reverse-integer.py
Neulana/leetcode
734078378f125a24d049061a34995c90b15cac43
[ "Apache-2.0" ]
2
2018-12-20T13:58:16.000Z
2019-11-12T09:42:07.000Z
mathematics/reverse-integer.py
Neulana/leetcode
734078378f125a24d049061a34995c90b15cac43
[ "Apache-2.0" ]
null
null
null
mathematics/reverse-integer.py
Neulana/leetcode
734078378f125a24d049061a34995c90b15cac43
[ "Apache-2.0" ]
null
null
null
""" 题目: 给定一个 32 位有符号整数,将整数中的数字进行反转。 示例 1: 输入: 123 输出: 321 示例 2: 输入: -123 输出: -321 示例 3: 输入: 120 输出: 21 注意: 假设我们的环境只能存储 32 位有符号整数,其数值范围是 [−2**31, 2**31 − 1]。根据这个假设,如果反转后的整数溢出,则返回 0。 """ class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ if ...
14.916667
74
0.458101
342
0.470426
0
0
0
0
0
0
446
0.61348
2dcefc70c84d3f4061e0e716788bdf5dca8ba63f
74
py
Python
lib/datatools/build/__init__.py
JokerWDL/PyAnomaly
cf93437e5d7ae87fa916141cf4b5cc2e929b8199
[ "Apache-2.0" ]
1
2020-11-22T17:55:10.000Z
2020-11-22T17:55:10.000Z
lib/datatools/build/__init__.py
JokerWDL/PyAnomaly
cf93437e5d7ae87fa916141cf4b5cc2e929b8199
[ "Apache-2.0" ]
null
null
null
lib/datatools/build/__init__.py
JokerWDL/PyAnomaly
cf93437e5d7ae87fa916141cf4b5cc2e929b8199
[ "Apache-2.0" ]
null
null
null
from .. import dataclass # trigger the register in the dataclass package
37
73
0.783784
0
0
0
0
0
0
0
0
48
0.648649
2dcf7a1623416f9f81a559b63f8c49bc133ec199
46,393
py
Python
src/github3/repos/branch.py
thebrid/github3.py
1d2d0dbd67576e3b399ffdf21f29f85b467da245
[ "BSD-3-Clause" ]
null
null
null
src/github3/repos/branch.py
thebrid/github3.py
1d2d0dbd67576e3b399ffdf21f29f85b467da245
[ "BSD-3-Clause" ]
null
null
null
src/github3/repos/branch.py
thebrid/github3.py
1d2d0dbd67576e3b399ffdf21f29f85b467da245
[ "BSD-3-Clause" ]
null
null
null
"""Implementation of a branch on a repository.""" import typing as t from . import commit from .. import decorators from .. import models if t.TYPE_CHECKING: from .. import apps as tapps from .. import users as tusers from . import orgs class _Branch(models.GitHubCore): """A representation of a bran...
34.673393
115
0.633371
46,106
0.993814
0
0
28,021
0.603992
0
0
29,540
0.636734
2dd0dbf3c9583810719a7c459b8980e6849b03e3
696
py
Python
buildings/gui/menu_frame.py
strk/nz-buildings
8dc8ee19d322837380bb4f016b01eccee2c1bd0a
[ "PostgreSQL", "CC-BY-4.0" ]
2
2020-02-21T00:46:31.000Z
2020-08-17T14:22:19.000Z
buildings/gui/menu_frame.py
strk/nz-buildings
8dc8ee19d322837380bb4f016b01eccee2c1bd0a
[ "PostgreSQL", "CC-BY-4.0" ]
243
2018-12-16T22:01:54.000Z
2022-01-10T20:09:24.000Z
buildings/gui/menu_frame.py
strk/nz-buildings
8dc8ee19d322837380bb4f016b01eccee2c1bd0a
[ "PostgreSQL", "CC-BY-4.0" ]
1
2020-03-24T10:35:43.000Z
2020-03-24T10:35:43.000Z
# -*- coding: utf-8 -*- import os.path from qgis.PyQt import uic from qgis.PyQt.QtWidgets import QFrame from buildings.utilities.layers import LayerRegistry # Get the path for the parent directory of this file. __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) FORM_CLASS, _ = ui...
27.84
88
0.719828
302
0.433908
0
0
0
0
0
0
109
0.156609
2dd15aa32b6924458b8fe69007859df334c4b9ae
1,426
py
Python
helpers.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
1
2022-01-13T00:35:20.000Z
2022-01-13T00:35:20.000Z
helpers.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
null
null
null
helpers.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
null
null
null
import os import sys import re import emoji import string import time import winsound from bs4 import BeautifulSoup from rich.progress import track def clear(): os.system('cls' if os.name=='nt' else'clear') def BeautifulSoupOp(text): soup = BeautifulSoup(text.strip(),"html.parser") for tag in soup.find_all('a'):...
25.464286
64
0.674614
0
0
0
0
0
0
0
0
419
0.293829
2dd1642cbad2de85e44adff8bc936f9819e814e3
3,749
py
Python
gitver/config.py
movermeyer/gitver
77d5a4420209a4ca00349b094eeca1f13e50d8e5
[ "Apache-2.0" ]
12
2015-03-31T18:19:42.000Z
2019-08-14T10:56:00.000Z
gitver/config.py
movermeyer/gitver
77d5a4420209a4ca00349b094eeca1f13e50d8e5
[ "Apache-2.0" ]
1
2015-04-21T12:44:40.000Z
2019-07-15T07:12:15.000Z
gitver/config.py
movermeyer/gitver
77d5a4420209a4ca00349b094eeca1f13e50d8e5
[ "Apache-2.0" ]
8
2016-03-25T16:43:13.000Z
2021-11-26T10:44:57.000Z
#!/usr/bin/env python2 # coding=utf-8 """ The default per-repository configuration """ import sys import json import string from os.path import exists, dirname from gitver.defines import CFGFILE from termcolors import term, bold default_config_text = """{ # automatically generated configuration file # # ...
31.771186
148
0.654308
0
0
0
0
0
0
0
0
2,561
0.683115
2dd2a210c5e9a90b7a25257a08a7c3946145f326
3,153
py
Python
oracle/TLOracle/property_R2_2.py
fatmaf/ROSMonitoring
25eb3142d697d307bb2fd33af9bf4cd5191c5b42
[ "MIT", "BSD-3-Clause" ]
11
2020-02-18T18:51:01.000Z
2022-03-16T12:18:51.000Z
oracle/TLOracle/property_R2_2.py
fatmaf/ROSMonitoring
25eb3142d697d307bb2fd33af9bf4cd5191c5b42
[ "MIT", "BSD-3-Clause" ]
6
2020-02-03T15:34:49.000Z
2020-02-05T15:58:37.000Z
oracle/TLOracle/property_R2_2.py
fatmaf/ROSMonitoring
25eb3142d697d307bb2fd33af9bf4cd5191c5b42
[ "MIT", "BSD-3-Clause" ]
2
2021-10-06T13:37:47.000Z
2022-03-24T16:27:15.000Z
# MIT License # # Copyright (c) [2020] [Angelo Ferrando] # # 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,...
64.346939
623
0.693942
0
0
0
0
0
0
0
0
2,268
0.719315
2dd344951d9aeadc827ae7e0e3e8b87cd96497d0
3,305
py
Python
3. Others/Python_OOP_Passenger_Registration.py
PurveshMakode24/snippets
ba360b363c7b98528d6b7320dcc446a9e3febd4b
[ "MIT" ]
1
2018-12-25T21:10:02.000Z
2018-12-25T21:10:02.000Z
3. Others/Python_OOP_Passenger_Registration.py
PurveshMakode24/snippets
ba360b363c7b98528d6b7320dcc446a9e3febd4b
[ "MIT" ]
2
2019-10-01T16:07:46.000Z
2019-10-01T16:07:47.000Z
3. Others/Python_OOP_Passenger_Registration.py
PurveshMakode24/snippets
ba360b363c7b98528d6b7320dcc446a9e3febd4b
[ "MIT" ]
4
2020-09-01T02:22:44.000Z
2020-10-07T12:14:58.000Z
from random import randint import re; import json class Passenger: def __init__(self, passengerId, passengerName, email, password, address, contact): self.passengerId = passengerId self.passengerName = passengerName self.email = email self.password = password self.address = ...
30.601852
117
0.586082
1,615
0.488654
0
0
0
0
0
0
673
0.203631
2dd39dc7304ad676d501a32885e968d0740bdaf7
1,379
py
Python
software/examples/python/03-multiplexer/main.py
esysberlin/lufo-ifez-datenkonzentrator
f803724b316e2df46e69afab91afa22c64a8d920
[ "MIT" ]
2
2019-02-04T16:04:29.000Z
2019-02-04T23:33:12.000Z
software/examples/python/03-multiplexer/main.py
esysberlin/lufo-ifez-datenkonzentrator
f803724b316e2df46e69afab91afa22c64a8d920
[ "MIT" ]
null
null
null
software/examples/python/03-multiplexer/main.py
esysberlin/lufo-ifez-datenkonzentrator
f803724b316e2df46e69afab91afa22c64a8d920
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import random from common import spi def main(): multiplexer_state = spi.parse_response(spi.query('multiplexer', 'get_outputs')) print("Current multiplexer state:") _print_state(multiplexer_state) print('') for i in range(len(multiplexer_state)): multipl...
28.729167
88
0.641769
0
0
0
0
0
0
0
0
350
0.253807
2dd735db2a02bcc45cec0aa0e3b52d0a3bae2b8e
118
py
Python
test/a.py
atsuoishimoto/pyjf3
6f4b22e24c8f3bae5120b00e1de86e66fabb1785
[ "Unlicense" ]
null
null
null
test/a.py
atsuoishimoto/pyjf3
6f4b22e24c8f3bae5120b00e1de86e66fabb1785
[ "Unlicense" ]
2
2015-10-01T20:41:28.000Z
2016-03-14T14:50:41.000Z
test/a.py
atsuoishimoto/pyjf3
6f4b22e24c8f3bae5120b00e1de86e66fabb1785
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import pyjf print repr(u'使'.encode('euc-jp')) print repr(pyjf.sjistoeuc(u'使'.encode('sjis')))
23.6
47
0.644068
0
0
0
0
0
0
0
0
49
0.401639
2dd802a334b7dcb54120950c7e4f4e6a2c7dc01e
437
py
Python
rl_sandbox/priors/uniform.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
14
2020-11-09T22:05:37.000Z
2022-02-11T12:41:33.000Z
rl_sandbox/priors/uniform.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
rl_sandbox/priors/uniform.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
import torch from torch.distributions import Uniform from rl_sandbox.constants import CPU class UniformPrior: def __init__(self, low, high, device=torch.device(CPU)): self.device = device self.dist = Uniform(low=low, high=high) def sample(self, num_samples): return self.dist.rsample...
24.277778
74
0.709382
342
0.782609
0
0
0
0
0
0
0
0
2dd8addc613d001e1bcad53b369e5ef7379a46b5
2,759
py
Python
preprocess/conll_to_factors.py
thilakshiK/wmt16-scripts
7fa32971e2927c397434df2e0f171834abf0b07a
[ "MIT" ]
132
2016-05-20T15:59:48.000Z
2022-03-30T13:58:50.000Z
preprocess/conll_to_factors.py
chenyangh/wmt16-scripts
9695851c150fedbac3418915b251a75292d7d527
[ "MIT" ]
14
2016-07-14T16:14:14.000Z
2022-02-16T18:49:18.000Z
preprocess/conll_to_factors.py
chenyangh/wmt16-scripts
9695851c150fedbac3418915b251a75292d7d527
[ "MIT" ]
66
2016-05-17T06:27:16.000Z
2022-02-24T13:14:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Rico Sennrich # Distributed under MIT license # take conll file, and bpe-segmented text, and produce factored output import sys import re from collections import namedtuple Word = namedtuple( 'Word', ['pos', 'word', 'lemma', 'tag', 'morph', 'head', 'f...
24.415929
130
0.507068
0
0
1,178
0.426966
0
0
0
0
630
0.228344
2dd8b59c63a68dfdad978b1ecaee6cd2d1f63d54
4,661
py
Python
Training/Auto_Labelling/tests/test_utils.py
evamok/knowledge-extraction-recipes-forms
d42dc5a728d72fabc6a0c568834ef6786deb9116
[ "MIT" ]
93
2020-08-03T10:23:43.000Z
2022-03-23T15:41:22.000Z
Training/Auto_Labelling/tests/test_utils.py
ciph3rwoman/knowledge-extraction-recipes-forms
ce1adbb0515d1b598ba89a4a06dd3cf554230565
[ "MIT" ]
11
2020-08-05T06:49:21.000Z
2022-02-01T10:00:25.000Z
Training/Auto_Labelling/tests/test_utils.py
ciph3rwoman/knowledge-extraction-recipes-forms
ce1adbb0515d1b598ba89a4a06dd3cf554230565
[ "MIT" ]
39
2020-08-05T14:48:43.000Z
2022-02-12T05:12:11.000Z
#!/usr/bin/python # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import os import json from mock import MagicMock, patch, mock_open from shared_code import utils def test_is_url_returns_true_when_url_passed_in(): #arrange input = "https://fake-url...
23.780612
91
0.692341
0
0
0
0
898
0.192663
0
0
1,363
0.292427