hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
4ecd621ab56bfd508e9835987ea7537a72ff3b56
1,093
py
Python
fuc/cli/vcf_index.py
sbslee/fuc
f4eb5f6b95b533252ee877920278cd4e4c964bb8
[ "MIT" ]
17
2021-06-09T23:23:56.000Z
2022-03-10T11:58:46.000Z
fuc/cli/vcf_index.py
sbslee/fuc
f4eb5f6b95b533252ee877920278cd4e4c964bb8
[ "MIT" ]
27
2021-04-21T06:25:22.000Z
2022-03-30T23:25:36.000Z
fuc/cli/vcf_index.py
sbslee/fuc
f4eb5f6b95b533252ee877920278cd4e4c964bb8
[ "MIT" ]
null
null
null
import sys from .. import api import pysam description = """ Index a VCF file. This command will create an index file (.tbi) for the input VCF. """ epilog = f""" [Example] Index a compressed VCF file: $ fuc {api.common._script_name()} in.vcf.gz [Example] Index an uncompressed VCF file (will create a compressed ...
25.418605
78
0.643184
4ecd71c762bc771fde1ea85f54d06c0a60939363
1,174
py
Python
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
import logging import os import sys from peewee import SqliteDatabase, PostgresqlDatabase logger = logging.getLogger() logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) logger.addHandler(handler) if not os.getenv('POSTGRES_DB_NAME'): logger.warning('[DB] u...
30.102564
96
0.749574
4ece31e4c80ccf74cc98a1222f00653c142ee026
65
py
Python
scuttlecrab/main.py
PUMBA-1997/scuttlecrab.py
13e0074b7d94af81bf5c13feb5a3d036bc71f133
[ "Apache-2.0" ]
4
2022-01-05T14:16:07.000Z
2022-01-09T07:29:08.000Z
scuttlecrab/main.py
Fabrizio1663/scuttlecrab.py
13e0074b7d94af81bf5c13feb5a3d036bc71f133
[ "Apache-2.0" ]
null
null
null
scuttlecrab/main.py
Fabrizio1663/scuttlecrab.py
13e0074b7d94af81bf5c13feb5a3d036bc71f133
[ "Apache-2.0" ]
null
null
null
from scuttlecrab.classes.bot import CustomBot bot = CustomBot()
16.25
45
0.8
4ece3ece6512a9e1cbd43be4fb424a421b22f700
1,384
py
Python
python/paddle_fl/split_learning/core/reader/reader_base.py
jhjiangcs/PaddleFL
debcc3809f634f696637e1fd8f15ca2430b0c1df
[ "Apache-2.0" ]
2
2021-03-02T09:24:31.000Z
2021-05-27T21:00:29.000Z
python/paddle_fl/split_learning/core/reader/reader_base.py
JedHong/PaddleFL
4b10985f808511d63f2efc76e387103ccde14e32
[ "Apache-2.0" ]
null
null
null
python/paddle_fl/split_learning/core/reader/reader_base.py
JedHong/PaddleFL
4b10985f808511d63f2efc76e387103ccde14e32
[ "Apache-2.0" ]
1
2020-05-18T11:07:38.000Z
2020-05-18T11:07:38.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.542857
112
0.680636
4ecec912c81fe613d6387ded4c0e5121003a14a5
640
py
Python
main.py
sergioyahni/captcha
f8235a4c3b64fadf71c00d9932fae7f1bf1962f5
[ "MIT" ]
null
null
null
main.py
sergioyahni/captcha
f8235a4c3b64fadf71c00d9932fae7f1bf1962f5
[ "MIT" ]
null
null
null
main.py
sergioyahni/captcha
f8235a4c3b64fadf71c00d9932fae7f1bf1962f5
[ "MIT" ]
null
null
null
from captcha.image import ImageCaptcha import random check_captcha()
23.703704
83
0.6
4ed15e1a4c599c5f5acf73a58c9805ac84372eae
4,045
py
Python
openstates/openstates-master/openstates/mi/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/mi/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/mi/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
from openstates.utils import LXMLMixin import datetime as dt import re from billy.scrape.events import Event, EventScraper import lxml.html import pytz mi_events = "http://legislature.mi.gov/doc.aspx?CommitteeMeetings"
32.36
85
0.528307
4ed2ebd3e68752d3caa55e15dd92ce5cc345106b
418
py
Python
code/0190-reverseBits.py
RRRoger/LeetCodeExercise
0019a048fcfac9ac9e6f37651b17d01407c92c7d
[ "MIT" ]
null
null
null
code/0190-reverseBits.py
RRRoger/LeetCodeExercise
0019a048fcfac9ac9e6f37651b17d01407c92c7d
[ "MIT" ]
null
null
null
code/0190-reverseBits.py
RRRoger/LeetCodeExercise
0019a048fcfac9ac9e6f37651b17d01407c92c7d
[ "MIT" ]
null
null
null
if "__main__" == __name__: solution = Solution() res = solution.reverseBits(43261596) print(res)
19.904762
69
0.5
4ed342ee0815f43f923a49b70459817dc28094de
1,018
py
Python
muria/db/preload.py
xakiy/muria
0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905
[ "MIT" ]
1
2020-02-10T00:12:27.000Z
2020-02-10T00:12:27.000Z
muria/db/preload.py
xakiy/muria
0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905
[ "MIT" ]
8
2019-12-07T16:48:08.000Z
2021-08-31T06:31:34.000Z
muria/db/preload.py
xakiy/muria
0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905
[ "MIT" ]
null
null
null
"""Some preloads of database content.""" tables = list() roles = list() roles.append({"id": 1, "name": "administrator"}) roles.append({"id": 2, "name": "contributor"}) roles.append({"id": 3, "name": "staff"}) roles.append({"id": 4, "name": "parent"}) roles.append({"id": 5, "name": "caretaker"}) roles.append...
22.130435
69
0.52554
4ed3a96b67e22aff964a1489de5d4c55aa41991d
6,689
py
Python
src/meeting_timer/settings.py
andrewjrobinson/meeting_timer
cad3303f6925d2e8961b262c6cfbecf4a30a1ce5
[ "MIT" ]
null
null
null
src/meeting_timer/settings.py
andrewjrobinson/meeting_timer
cad3303f6925d2e8961b262c6cfbecf4a30a1ce5
[ "MIT" ]
null
null
null
src/meeting_timer/settings.py
andrewjrobinson/meeting_timer
cad3303f6925d2e8961b262c6cfbecf4a30a1ce5
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020 Andrew Robinson # # 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,...
32.470874
87
0.575123
4ed623c2f06e37c570057cd2950ac913943aac09
651
py
Python
python/191122.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
1
2019-09-27T17:46:41.000Z
2019-09-27T17:46:41.000Z
python/191122.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
null
null
null
python/191122.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
5
2019-09-30T16:41:14.000Z
2019-10-25T11:13:39.000Z
from os import getcwd if __name__ == '__main__': main()
21.7
78
0.533026
4ed6b577e511cc21f5108b75969a300169a86b9c
5,534
py
Python
treeplotter/plotter.py
Luke-Poeppel/treeplotter
940e08b02d30f69972b0df1a5668f3b2ade02027
[ "MIT" ]
7
2021-06-12T17:48:17.000Z
2022-01-27T09:47:12.000Z
treeplotter/plotter.py
Luke-Poeppel/treeplotter
940e08b02d30f69972b0df1a5668f3b2ade02027
[ "MIT" ]
36
2021-06-09T18:31:44.000Z
2022-03-17T12:06:59.000Z
treeplotter/plotter.py
Luke-Poeppel/treeplotter
940e08b02d30f69972b0df1a5668f3b2ade02027
[ "MIT" ]
2
2021-12-07T18:41:53.000Z
2022-03-09T10:46:52.000Z
#################################################################################################### # File: plotter.py # Purpose: Plotting module. # # Author: Luke Poeppel # # Location: Kent, 2021 #################################################################################################### import logging...
28.091371
100
0.696061
4ed7072eb26c7d3dbe4f2527653e38fa3cf65c67
638
py
Python
app/__init__.py
PabloEckardt/Flask-Login-Example
a230a6ce6678b52bb4c62b0b62b167edd927ebd0
[ "MIT" ]
null
null
null
app/__init__.py
PabloEckardt/Flask-Login-Example
a230a6ce6678b52bb4c62b0b62b167edd927ebd0
[ "MIT" ]
null
null
null
app/__init__.py
PabloEckardt/Flask-Login-Example
a230a6ce6678b52bb4c62b0b62b167edd927ebd0
[ "MIT" ]
null
null
null
from flask import current_app, Flask, redirect, url_for from flask_cors import CORS from flask_sqlalchemy import SQLAlchemy import config from flask_login import LoginManager app = Flask(__name__) app.config.from_object(config) # load config.py app.secret_key = 'super duper mega secret key' login_manager = LoginManag...
31.9
69
0.80721
4ed70f9df4c3c063308c836d1a779ff6d33f1046
3,814
py
Python
filewriter.py
FrederikBjorne/python-serial-logging
e553bc2421699a2bb38f21abffbb08ee70c81a21
[ "MIT" ]
null
null
null
filewriter.py
FrederikBjorne/python-serial-logging
e553bc2421699a2bb38f21abffbb08ee70c81a21
[ "MIT" ]
null
null
null
filewriter.py
FrederikBjorne/python-serial-logging
e553bc2421699a2bb38f21abffbb08ee70c81a21
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging from threading import Thread, Event from Queue import Queue, Empty as QueueEmpty import codecs
40.574468
113
0.588621
4ed7b53a4e6b728656b2c884c550c9f3728497ff
361
py
Python
ejercicios/ejercicio4.py
Ironwilly/python
f6d42c685b4026b018089edb4ae8cc0ca9614e86
[ "CC0-1.0" ]
null
null
null
ejercicios/ejercicio4.py
Ironwilly/python
f6d42c685b4026b018089edb4ae8cc0ca9614e86
[ "CC0-1.0" ]
null
null
null
ejercicios/ejercicio4.py
Ironwilly/python
f6d42c685b4026b018089edb4ae8cc0ca9614e86
[ "CC0-1.0" ]
null
null
null
#Dados dos nmeros, mostrar la suma, resta, divisin y multiplicacin de ambos. a = int(input("Dime el primer nmero: ")) b = int(input("Dime el segundo nmero: ")) print("La suma de los dos nmeros es: ",a+b) print("La resta de los dos nmeros es: ",a-b) print("La multiplicacin de los dos nmeros es: ",a*b) print("La divisin...
40.111111
79
0.700831
4ed8c0b61feb32ca367f3590a99a8b047fcbbc95
610
py
Python
adv/pipple.py
XenoXilus/dl
cdfce03835cd67aac553140d6d88bc4c5c5d60ff
[ "Apache-2.0" ]
null
null
null
adv/pipple.py
XenoXilus/dl
cdfce03835cd67aac553140d6d88bc4c5c5d60ff
[ "Apache-2.0" ]
null
null
null
adv/pipple.py
XenoXilus/dl
cdfce03835cd67aac553140d6d88bc4c5c5d60ff
[ "Apache-2.0" ]
null
null
null
from core.advbase import * if __name__ == '__main__': from core.simulate import test_with_argv test_with_argv(None, *sys.argv)
25.416667
64
0.568852
4edad0b70551d7b3c45fcd8cf2f69ef8cc0ea351
3,799
py
Python
test/testFactorMethods.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
test/testFactorMethods.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
test/testFactorMethods.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
import unittest import logging import nzmath.factor.methods as mthd try: _log = logging.getLogger('test.testFactorMethod') except: try: _log = logging.getLogger('nzmath.test.testFactorMethod') except: _log = logging.getLogger('testFactorMethod') _log.setLevel(logging.INFO) def suite(suff...
39.164948
84
0.609108
14c1c00575d1e7a958fc95661cce6a81b4fbbd6f
2,057
py
Python
LeetCode/0151-reverse-words-in-a-string/solution.py
RyouMon/road-of-master
02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b
[ "Apache-2.0" ]
null
null
null
LeetCode/0151-reverse-words-in-a-string/solution.py
RyouMon/road-of-master
02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b
[ "Apache-2.0" ]
null
null
null
LeetCode/0151-reverse-words-in-a-string/solution.py
RyouMon/road-of-master
02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b
[ "Apache-2.0" ]
null
null
null
import collections
22.855556
62
0.427807
14c1f4a62cb93b24d14dc7d0ea4f4f2eb0f1a413
3,154
py
Python
setup.py
Tiksagol/hype
1485b80fe16a7678605afe209b2494a2a875df3f
[ "MIT" ]
13
2021-07-31T12:07:06.000Z
2022-03-24T15:00:50.000Z
setup.py
Tiksagol/hype
1485b80fe16a7678605afe209b2494a2a875df3f
[ "MIT" ]
2
2021-08-02T14:04:58.000Z
2021-09-06T09:35:20.000Z
setup.py
Tiksagol/hype
1485b80fe16a7678605afe209b2494a2a875df3f
[ "MIT" ]
3
2021-08-07T13:23:54.000Z
2022-01-24T13:23:08.000Z
# Copyright (c) 2021, Serum Studio # 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, mer...
38.938272
91
0.679138
14c231909289d40787ee027c30489129b5c603c6
300
py
Python
visualize_d_tree_generator/dummy_data.py
dan-silver/machine-learning-visualizer
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
[ "MIT" ]
2
2015-09-23T03:32:26.000Z
2017-07-24T12:03:37.000Z
visualize_d_tree_generator/dummy_data.py
dan-silver/machine-learning-visualizer
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
[ "MIT" ]
null
null
null
visualize_d_tree_generator/dummy_data.py
dan-silver/machine-learning-visualizer
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
[ "MIT" ]
null
null
null
import sklearn from sklearn import datasets
42.857143
167
0.79
14c4fe8cfdba355e578ef806e7db3a2e2f8ba8db
947
py
Python
Recommender_System/algorithm/KGCN/main.py
Holldean/Recommender-System
5c1508b4fb430dc06979353627c4cb873aad490c
[ "MIT" ]
348
2019-11-12T12:20:08.000Z
2022-03-31T12:34:45.000Z
Recommender_System/algorithm/KGCN/main.py
Runjeo/Recommender-System
6a93e6ee970b32c76e2f71043383bf24a7e865d5
[ "MIT" ]
15
2019-12-04T15:16:15.000Z
2021-07-21T06:27:38.000Z
Recommender_System/algorithm/KGCN/main.py
Runjeo/Recommender-System
6a93e6ee970b32c76e2f71043383bf24a7e865d5
[ "MIT" ]
87
2019-11-24T10:26:26.000Z
2022-03-11T05:35:39.000Z
if __name__ == '__main__': import Recommender_System.utility.gpu_memory_growth from Recommender_System.algorithm.KGCN.tool import construct_undirected_kg, get_adj_list from Recommender_System.algorithm.KGCN.model import KGCN_model from Recommender_System.algorithm.KGCN.train import train from R...
55.705882
152
0.779303
14c57c94bb76c89fd6223c07cfaec40385ecbc9c
1,133
py
Python
setup.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
23
2021-08-11T08:53:15.000Z
2022-02-14T04:44:13.000Z
setup.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
2
2021-09-11T08:59:12.000Z
2022-03-29T00:40:42.000Z
setup.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
1
2022-01-04T07:45:22.000Z
2022-01-04T07:45:22.000Z
import os import setuptools CUR_DIR = os.path.abspath(os.path.dirname(__file__)) about = {} with open(os.path.join(CUR_DIR, "data_spec_validator", "__version__.py"), "r") as f: exec(f.read(), about) with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name...
29.815789
84
0.672551
14c7234590ee0036166bb3c285dac3557145714c
9,204
py
Python
prisms_influxdb.py
VDL-PRISM/home-assistant-components
2041d2a257aede70613ddf8fe1e76bcc1877ef2e
[ "Apache-2.0" ]
null
null
null
prisms_influxdb.py
VDL-PRISM/home-assistant-components
2041d2a257aede70613ddf8fe1e76bcc1877ef2e
[ "Apache-2.0" ]
null
null
null
prisms_influxdb.py
VDL-PRISM/home-assistant-components
2041d2a257aede70613ddf8fe1e76bcc1877ef2e
[ "Apache-2.0" ]
null
null
null
""" A component which allows you to send data to an Influx database. For more details about this component, please refer to the documentation at https://home-assistant.io/components/influxdb/ """ from datetime import timedelta import functools import logging import itertools import json from persistent_queue import P...
34.215613
94
0.624402
14c9c1f833fdc6508d89df41045c267b53031119
587
py
Python
utils/callbacks/callbacks_weather.py
Chris1nexus/carla-data-collector
333019622cb07dc53bbe8f1c07cfb12fbfaae60c
[ "MIT" ]
null
null
null
utils/callbacks/callbacks_weather.py
Chris1nexus/carla-data-collector
333019622cb07dc53bbe8f1c07cfb12fbfaae60c
[ "MIT" ]
null
null
null
utils/callbacks/callbacks_weather.py
Chris1nexus/carla-data-collector
333019622cb07dc53bbe8f1c07cfb12fbfaae60c
[ "MIT" ]
null
null
null
import numpy as np import os from ..helpers import save_json
29.35
79
0.722317
14cb05cd02a2460b30efdd3be4e6a69dc0d1eedd
114
py
Python
change_fw_name.py
maxgerhardt/gd32-bootloader-dfu-dapboot
fcb8c47e17b2bee813ca8c6b33cb52b547538719
[ "ISC" ]
1
2021-10-03T17:26:38.000Z
2021-10-03T17:26:38.000Z
change_fw_name.py
maxgerhardt/gd32-bootloader-dfu-dapboot
fcb8c47e17b2bee813ca8c6b33cb52b547538719
[ "ISC" ]
null
null
null
change_fw_name.py
maxgerhardt/gd32-bootloader-dfu-dapboot
fcb8c47e17b2bee813ca8c6b33cb52b547538719
[ "ISC" ]
1
2021-11-03T22:06:01.000Z
2021-11-03T22:06:01.000Z
Import("env") # original Makefile builds into dapboot.bin/elf, let's do the same env.Replace(PROGNAME="dapboot")
22.8
66
0.754386
14cbaa1dbf623ab97aaa48323072de223e8374d1
1,393
py
Python
exp2.py
advaithca/CG_LAB
07c4424be2f37d21ed7af804361f0a992a8124ac
[ "MIT" ]
null
null
null
exp2.py
advaithca/CG_LAB
07c4424be2f37d21ed7af804361f0a992a8124ac
[ "MIT" ]
null
null
null
exp2.py
advaithca/CG_LAB
07c4424be2f37d21ed7af804361f0a992a8124ac
[ "MIT" ]
null
null
null
#drawing a line using DDA from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import sys import math x1 = 0 x2 = 0 y1 = 0 y2 = 0 if __name__ == "__main__": main()
21.106061
52
0.557789
14cc76852586183e306354dd7443e72f19468e4e
4,884
py
Python
landlab/io/netcdf/dump.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2022-01-07T02:36:07.000Z
2022-01-07T02:36:07.000Z
landlab/io/netcdf/dump.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2021-11-11T21:23:46.000Z
2021-11-11T21:23:46.000Z
landlab/io/netcdf/dump.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
2
2019-08-19T08:58:10.000Z
2022-01-07T02:36:01.000Z
import pathlib import numpy as np import xarray as xr def to_netcdf( grid, path, include="*", exclude=None, time=None, format="NETCDF4", mode="w" ): """Write landlab a grid to a netcdf file. Write the data and grid information for *grid* to *path* as NetCDF. If the *append* keyword argument in True,...
33.682759
84
0.600328
14cccb90d3e5e893e8714d97f092815310280afd
4,053
py
Python
app.py
ethylomat/MathPhysTheoTS
76144c3990d9511817cfaa007a75ec55bc8e7310
[ "MIT" ]
1
2019-04-29T22:23:22.000Z
2019-04-29T22:23:22.000Z
app.py
ethylomat/MathPhysTheoTS
76144c3990d9511817cfaa007a75ec55bc8e7310
[ "MIT" ]
2
2016-08-11T14:26:47.000Z
2016-08-11T14:29:44.000Z
app.py
ethylomat/MathPhysTheoTS
76144c3990d9511817cfaa007a75ec55bc8e7310
[ "MIT" ]
null
null
null
from flask import request, url_for, g from flask_api import FlaskAPI, status, exceptions from flask_sqlalchemy import SQLAlchemy import arrow from flask_admin import Admin from flask_admin.contrib.sqla import ModelView from flask_cors import CORS app = FlaskAPI(__name__) cors = CORS(app, resources={r"/*": {"origins...
29.583942
100
0.635085
14cd52d75b110058b96680b7258b9682ab53013c
592
py
Python
python/0496.toy-factory.py
Ubastic/lintcode
9f600eece075410221a24859331a810503c76014
[ "MIT" ]
6
2019-10-02T02:24:49.000Z
2021-11-18T10:08:07.000Z
python/0496.toy-factory.py
Ubastic/lintcode
9f600eece075410221a24859331a810503c76014
[ "MIT" ]
1
2020-02-28T03:42:36.000Z
2020-03-07T09:26:00.000Z
src/0496.toy-factory/0496.toy-factory.py
jiangshanmeta/lintcode
7d7003825b5a7b9fd5b0be57aa2d84391e0d1fa5
[ "MIT" ]
2
2020-07-25T08:42:38.000Z
2021-05-07T06:16:46.000Z
""" Your object will be instantiated and called as such: ty = ToyFactory() toy = ty.getToy(type) toy.talk() """
20.413793
73
0.584459
14cdf01dc867ab894916d46f7f85f97ee82b9f96
143
py
Python
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
1
2021-04-02T07:17:15.000Z
2021-04-02T07:17:15.000Z
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
null
null
null
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
null
null
null
from enum import IntEnum, unique
13
32
0.615385
14d350e4c24338a388b8fa1fb69e9c619ba5502a
4,746
py
Python
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
3
2018-05-18T16:15:32.000Z
2019-08-01T23:06:44.000Z
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
null
null
null
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
null
null
null
from autohandshake.src.Pages.Page import Page from autohandshake.src.HandshakeBrowser import HandshakeBrowser from autohandshake.src.exceptions import InvalidURLError, NoSuchElementError, \ InvalidEmailError, InvalidPasswordError import re
46.529412
107
0.630004
14d5f7d082a22edb6ba40c486b8faa869556d8a1
2,649
py
Python
simsiam/engine/supervised.py
tillaczel/simsiam
d4d03aae625314ac2f24155fac3ca5bfc31502c7
[ "MIT" ]
null
null
null
simsiam/engine/supervised.py
tillaczel/simsiam
d4d03aae625314ac2f24155fac3ca5bfc31502c7
[ "MIT" ]
null
null
null
simsiam/engine/supervised.py
tillaczel/simsiam
d4d03aae625314ac2f24155fac3ca5bfc31502c7
[ "MIT" ]
null
null
null
from omegaconf import DictConfig import pytorch_lightning as pl import numpy as np import torch import wandb from simsiam.models import get_resnet from simsiam.metrics import get_accuracy from simsiam.optimizer import get_optimizer, get_scheduler
33.531646
123
0.645527
14da4fb90332f13ce9a537a25767a0c5d2699a55
5,568
py
Python
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
null
null
null
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
7
2021-03-09T00:51:13.000Z
2022-03-11T23:40:46.000Z
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
1
2019-03-20T16:58:23.000Z
2019-03-20T16:58:23.000Z
from flask import render_template, redirect, url_for, flash from flask_login import current_user, login_user, logout_user from sqlalchemy import func import stripe from app import db from app.auth import bp from app.auth.forms import LoginForm, RegistrationForm, ResetPasswordRequestForm, ResetPasswordForm from app.mode...
36.155844
116
0.681214
14de090b5ed8c8188f4a83029df00bd8928fb8be
607
py
Python
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
null
null
null
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
43
2017-11-16T22:05:42.000Z
2017-12-12T16:20:04.000Z
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
1
2017-11-26T15:42:02.000Z
2017-11-26T15:42:02.000Z
from nilearn import plotting from IPython import display
30.35
63
0.642504
14de21cf53b113f2413b7d529932853ff2790fae
2,420
py
Python
demo.py
allenjhuang/rsys_api
41bc05fbeda5b5c76232a548aa16d33d05bfa8e4
[ "Unlicense" ]
null
null
null
demo.py
allenjhuang/rsys_api
41bc05fbeda5b5c76232a548aa16d33d05bfa8e4
[ "Unlicense" ]
null
null
null
demo.py
allenjhuang/rsys_api
41bc05fbeda5b5c76232a548aa16d33d05bfa8e4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import config import rsys_api import secrets import json import logging import sys if __name__ == '__main__': main()
30.632911
73
0.605372
14debfd1d4eddfbeadc1ea54fc7d19ccc2df866b
4,377
py
Python
algorithms/common/runner.py
Fluidy/twc2020
0c65ab3508675a81e3edc831e45d59729dab159d
[ "MIT" ]
1
2021-09-05T01:56:45.000Z
2021-09-05T01:56:45.000Z
algorithms/common/runner.py
Fluidy/twc2020
0c65ab3508675a81e3edc831e45d59729dab159d
[ "MIT" ]
null
null
null
algorithms/common/runner.py
Fluidy/twc2020
0c65ab3508675a81e3edc831e45d59729dab159d
[ "MIT" ]
null
null
null
from utils import save_params, load_params from importlib import import_module from environments.env import Env def run(algorithm_name, exp_name, env_name, agent_params, train_params, use_ray, use_gpu, is_train, num_runs=None, test_run_id=None, test_model_id=None): """ Runner for training or t...
39.432432
111
0.59767
14dfa0d9c76706f000826c67f074640fd5155034
679
py
Python
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
39
2018-09-05T14:42:05.000Z
2021-09-24T20:21:56.000Z
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
null
null
null
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
11
2018-12-07T19:43:44.000Z
2021-05-21T21:54:43.000Z
from decouple import config from peewee import SqliteDatabase from playhouse.pool import PooledSqliteExtDatabase, PooledPostgresqlExtDatabase # db = SqliteDatabase(config('DATABASE_PATH', default='sentiment_analysis.db')) db = PooledSqliteExtDatabase( config('DATABASE_PATH', default='sentiment_analysis.db'), ...
30.863636
79
0.733432
14e0f7d00154bf2e7af79e4ad4be7d9c4b233cd5
347
py
Python
src/server/main.py
IsaacLean/project-owl
ba1b995f28abe461d40af5884d974bee15e0625f
[ "MIT" ]
1
2018-10-23T01:42:14.000Z
2018-10-23T01:42:14.000Z
src/server/main.py
IsaacLean/project-owl
ba1b995f28abe461d40af5884d974bee15e0625f
[ "MIT" ]
1
2015-10-03T18:26:42.000Z
2015-10-03T18:26:42.000Z
src/server/main.py
IsaacLean/project-owl
ba1b995f28abe461d40af5884d974bee15e0625f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import webapp2 from pkg.controllers.transactionctrl import TransactionCtrl from pkg.controllers.appctrl import AppCtrl from pkg.controllers.debug import Debug app = webapp2.WSGIApplication([ ('/transaction', TransactionCtrl), ('/transaction/([0-9]+)', TransactionCtrl), ('/', AppCtrl), ('/deb...
24.785714
59
0.746398
14e118dd6032aaabd75d35019107d6e409ebb6bc
875
py
Python
login/middleWare/auth.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
null
null
null
login/middleWare/auth.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
null
null
null
login/middleWare/auth.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
1
2021-06-24T13:38:23.000Z
2021-06-24T13:38:23.000Z
import re from django.conf import settings from django.shortcuts import redirect from django.http import HttpResponseRedirect EXEMPT_URLS=[] if hasattr(settings,'LOGIN_EXEMPT_URLS'): EXEMPT_URLS+=[re.compile(url) for url in settings.LOGIN_EXEMPT_URLS]
31.25
69
0.76
14e28f82f57d04fe78acc078756343daa686d910
579
py
Python
tests/domain/entities/metadata_test.py
keigohtr/autify-web-scraper
007ed78c461b31007328b5560957278856908979
[ "Apache-2.0" ]
null
null
null
tests/domain/entities/metadata_test.py
keigohtr/autify-web-scraper
007ed78c461b31007328b5560957278856908979
[ "Apache-2.0" ]
null
null
null
tests/domain/entities/metadata_test.py
keigohtr/autify-web-scraper
007ed78c461b31007328b5560957278856908979
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta, timezone import freezegun from autifycli.domain.entities.metadata import Metadata JST = timezone(timedelta(hours=+9), "JST")
25.173913
55
0.716753
14e2f68640f152f69f9e7b649672501b2bacc025
128
py
Python
demeter/admin/model/__load__.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
1
2017-12-05T08:17:53.000Z
2017-12-05T08:17:53.000Z
demos/helloworld/model/__load__.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
null
null
null
demos/helloworld/model/__load__.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ demeter database name:__load__.py """ from demeter.model import * from demeter.core import *
18.285714
27
0.640625
14e532fb903c9f210c1888329335296a3e6816c7
148
py
Python
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
DLUTLiuFengyi/rheem-integration
34c437d73761ab44b4c6b7dbd5cab91875f0933a
[ "Apache-2.0" ]
null
null
null
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
DLUTLiuFengyi/rheem-integration
34c437d73761ab44b4c6b7dbd5cab91875f0933a
[ "Apache-2.0" ]
null
null
null
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
DLUTLiuFengyi/rheem-integration
34c437d73761ab44b4c6b7dbd5cab91875f0933a
[ "Apache-2.0" ]
null
null
null
import abc
21.142857
60
0.709459
14e6bab7bbc2ab9b9311ff6dc777217f71212f04
8,217
py
Python
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
1
2019-07-24T14:48:06.000Z
2019-07-24T14:48:06.000Z
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
1
2018-02-20T03:11:21.000Z
2018-02-20T03:11:21.000Z
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
null
null
null
# TIE Methods import utils from dxltieclient import TieClient from dxltieclient.constants import HashType, ReputationProp, FileProvider, FileEnterpriseAttrib, \ CertProvider, CertEnterpriseAttrib, TrustLevel # TIE Reputation Average Map tiescoreMap = {0: 'Not Set', 1: 'Known Malicious', 15: 'Most Likely Malicious'...
41.5
120
0.643909
14e8b8ee0a1f85b70e2cc66661f3d254f3aee85e
3,720
py
Python
keepthis/KeepThis.py
puhoshville/keepthis
70447ec367b78caba03c302470f591df2dcc1e7e
[ "MIT" ]
4
2020-02-18T12:29:29.000Z
2020-11-12T10:19:37.000Z
keepthis/KeepThis.py
puhoshville/keepthis
70447ec367b78caba03c302470f591df2dcc1e7e
[ "MIT" ]
79
2019-12-26T14:00:11.000Z
2022-03-18T02:20:45.000Z
keepthis/KeepThis.py
puhoshville/keepthis
70447ec367b78caba03c302470f591df2dcc1e7e
[ "MIT" ]
3
2019-09-25T22:47:25.000Z
2019-10-03T15:07:36.000Z
import hashlib import json import numpy as np import pandas as pd from pymemcache import serde from pymemcache.client import base from keepthis.MemcachedConnection import MemcachedConnection from keepthis.exceptions import KeepThisValueError
32.631579
92
0.608065
14ec81da7a7909c65783eff82c284b4266341daf
1,016
py
Python
sbx_bgsvc_starterpack/sbx_cfg.py
parkssie/sbx-bgsvc-starterpack
9f2cb80cc677b9ab73cbf085a910d30c40194449
[ "MIT" ]
null
null
null
sbx_bgsvc_starterpack/sbx_cfg.py
parkssie/sbx-bgsvc-starterpack
9f2cb80cc677b9ab73cbf085a910d30c40194449
[ "MIT" ]
null
null
null
sbx_bgsvc_starterpack/sbx_cfg.py
parkssie/sbx-bgsvc-starterpack
9f2cb80cc677b9ab73cbf085a910d30c40194449
[ "MIT" ]
null
null
null
import json from pathlib import Path from sbx_bgsvc_starterpack.sbx_json_default import json_default
31.75
100
0.662402
14edc23ecedc5fce9202c1d0ece77446d5db16e6
7,804
py
Python
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
#!/usr/bin/python # # ============================================================================ # Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved # # Marvell Confidential # ============================================================================ # # Run a random sca...
29.673004
94
0.580984
14ededd86abda0dc6be68373dfe57be0e413a26e
10,880
py
Python
pyi_updater/client/patcher.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
pyi_updater/client/patcher.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
pyi_updater/client/patcher.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------------------------- # Copyright 2014 Digital Sapphire Development Team # # 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://...
36.881356
79
0.583732
14eebabc8dc87995f7ccb85df841dd281ddfc7b5
649
py
Python
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
null
null
null
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
null
null
null
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
1
2020-05-21T10:07:07.000Z
2020-05-21T10:07:07.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, SelectField from wtforms.validators import DataRequired, Length
36.055556
99
0.707242
14eee5ee3d7b6b1d697c697b8f6b60cc9529087d
3,090
py
Python
tests/test_absort.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
tests/test_absort.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
tests/test_absort.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
from __future__ import annotations import ast import os import re import sys from itertools import product from pathlib import Path import attr from hypothesis import given, settings from hypothesis.strategies import sampled_from from absort.__main__ import ( CommentStrategy, FormatOption, NameRedefiniti...
30
128
0.726537
14ef95586e2cc40aadbf1094d06743d8533ef65a
4,593
py
Python
BrickBreaker/brick_breaker.py
Urosh91/BrickBreaker
527564eb7fbab31e215a60ca8d46843a5a13791b
[ "MIT" ]
null
null
null
BrickBreaker/brick_breaker.py
Urosh91/BrickBreaker
527564eb7fbab31e215a60ca8d46843a5a13791b
[ "MIT" ]
null
null
null
BrickBreaker/brick_breaker.py
Urosh91/BrickBreaker
527564eb7fbab31e215a60ca8d46843a5a13791b
[ "MIT" ]
null
null
null
import pygame from BrickBreaker import * from BrickBreaker.Scenes import * from BrickBreaker.Shared import * if __name__ == '__main__': BrickBreaker().start()
28.886792
95
0.609188
14f0031f20c1d451293a9e4ffe1e1cb773cf31df
57
py
Python
flyeye/dynamics/__init__.py
sbernasek/flyeye
95be4c6b52785d5ff3d0c68362308cb0fd1e8ae8
[ "MIT" ]
2
2020-02-22T09:53:17.000Z
2020-02-24T19:02:01.000Z
flyeye/dynamics/__init__.py
sbernasek/flyeye
95be4c6b52785d5ff3d0c68362308cb0fd1e8ae8
[ "MIT" ]
1
2019-11-20T17:11:07.000Z
2019-11-20T17:11:07.000Z
flyeye/dynamics/__init__.py
sebastianbernasek/flyeye
95be4c6b52785d5ff3d0c68362308cb0fd1e8ae8
[ "MIT" ]
null
null
null
from .visualization import plot_mean, plot_mean_interval
28.5
56
0.877193
14f0fe0a265ae04fc3df046e751c6650ca481d2f
2,188
py
Python
mow/strong/phase2/predict.py
tychen5/Audio_Tagging_Challenge
4602400433d37958d95ebf40a3c0798d17cc53c6
[ "MIT" ]
3
2019-01-22T03:14:32.000Z
2019-08-17T02:22:06.000Z
mow/strong/phase2/predict.py
tychen5/Audio_Tagging_Challenge
4602400433d37958d95ebf40a3c0798d17cc53c6
[ "MIT" ]
null
null
null
mow/strong/phase2/predict.py
tychen5/Audio_Tagging_Challenge
4602400433d37958d95ebf40a3c0798d17cc53c6
[ "MIT" ]
null
null
null
''' ################################### Modified from Mike's predict_acc.py ################################### ''' import os import sys import random import pickle import numpy as np import pandas as pd from keras.utils import to_categorical from keras.models import load_model from sklearn.metrics import accuracy_s...
25.741176
111
0.706581
14f1a8447efc963a4a6ad15b82d5aee9bf59542f
4,408
py
Python
tests/test_date_utils.py
rob-blackbourn/aiofix
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
1
2021-03-25T21:52:36.000Z
2021-03-25T21:52:36.000Z
tests/test_date_utils.py
rob-blackbourn/jetblack-fixengine
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
null
null
null
tests/test_date_utils.py
rob-blackbourn/jetblack-fixengine
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
null
null
null
"""Tests for date utils""" from datetime import time, datetime import pytz from jetblack_fixengine.utils.date_utils import ( is_dow_in_range, is_time_in_range, delay_for_time_period ) MONDAY = 0 TUESDAY = 1 WEDNESDAY = 2 THURSDAY = 3 FRIDAY = 4 SATURDAY = 5 SUNDAY = 6 def test_dow_range(): """Test...
34.708661
79
0.639292
14f209a2e4864dbd925cb1c73c1a1f7110e0b62f
400
py
Python
xscratch/exceptions.py
gabaconrado/mainecoon
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
[ "Apache-2.0" ]
null
null
null
xscratch/exceptions.py
gabaconrado/mainecoon
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
[ "Apache-2.0" ]
null
null
null
xscratch/exceptions.py
gabaconrado/mainecoon
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
[ "Apache-2.0" ]
null
null
null
''' xScratch exceptions '''
16
69
0.6525
14f3c981162924e41ccbbaedac2e774e7979b26d
2,267
py
Python
environments/locomotion/scene_stadium.py
wx-b/unsup-3d-keypoints
8a2e687b802d19b750aeadffa9bb6970f5956d4d
[ "MIT" ]
28
2021-06-15T03:38:14.000Z
2022-03-15T04:12:41.000Z
environments/locomotion/scene_stadium.py
wx-b/unsup-3d-keypoints
8a2e687b802d19b750aeadffa9bb6970f5956d4d
[ "MIT" ]
3
2021-12-25T17:57:47.000Z
2022-03-24T09:52:43.000Z
environments/locomotion/scene_stadium.py
wx-b/unsup-3d-keypoints
8a2e687b802d19b750aeadffa9bb6970f5956d4d
[ "MIT" ]
5
2021-11-02T17:38:36.000Z
2021-12-11T02:57:39.000Z
import os import pybullet_data from environments.locomotion.scene_abstract import Scene import pybullet as p
42.773585
123
0.666961
14f46540bddbc3d9b12cae1ca8aeeee6d852e367
522
py
Python
src/python/providers/movement/standard_move.py
daboross/dxnr
8f73e9d5f4473b97dcfe05804a40c9a0826e51b6
[ "MIT" ]
null
null
null
src/python/providers/movement/standard_move.py
daboross/dxnr
8f73e9d5f4473b97dcfe05804a40c9a0826e51b6
[ "MIT" ]
null
null
null
src/python/providers/movement/standard_move.py
daboross/dxnr
8f73e9d5f4473b97dcfe05804a40c9a0826e51b6
[ "MIT" ]
null
null
null
from defs import * from utilities import warnings
27.473684
89
0.603448
14f8101f9071baa5ade2230825bde845717654bf
4,817
py
Python
pyshop/helpers/timeseries.py
sintef-energy/pyshop
2991372f023e75c69ab83ece54a47fa9c3b73d60
[ "MIT" ]
1
2022-03-08T07:20:16.000Z
2022-03-08T07:20:16.000Z
pyshop/helpers/timeseries.py
sintef-energy/pyshop
2991372f023e75c69ab83ece54a47fa9c3b73d60
[ "MIT" ]
2
2022-02-09T13:53:16.000Z
2022-03-16T14:36:21.000Z
pyshop/helpers/timeseries.py
sintef-energy/pyshop
2991372f023e75c69ab83ece54a47fa9c3b73d60
[ "MIT" ]
null
null
null
from typing import Dict, Sequence, Union from .typing_annotations import DataFrameOrSeries import pandas as pd import numpy as np def remove_consecutive_duplicates(df:DataFrameOrSeries) -> DataFrameOrSeries: """ Compress timeseries by only keeping the first row of consecutive duplicates. This is done by compa...
44.192661
166
0.686734
14f8a6f3308057e78995708d4b904e36cb6a06da
841
py
Python
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
34
2017-07-03T09:56:11.000Z
2022-03-22T02:03:27.000Z
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
22
2017-06-18T03:49:02.000Z
2021-10-06T12:41:09.000Z
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
11
2018-06-02T04:38:26.000Z
2021-06-10T11:57:27.000Z
# -*- coding: utf-8 -*- """ Class definitions for the HLSCLT Command Line Tool. Copyright (c) 2017 Ben Marshall """ # Generic error class # Specific error class for local config file errors # Class to hold application specific info within the Click context.
28.033333
88
0.699168
14f9e7e5dad9d0b30bd98785f713bf50cb29033e
718
py
Python
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
26.592593
58
0.739554
14f9fc6ca518d45dcde0a27042ff52217603dcff
9,740
py
Python
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
import logging from collections import deque from ..tokens import BuiltToken from ..utils import LogicError from ..router import NoSuchControlSequence from ..constants.instructions import Instructions logger = logging.getLogger(__name__) # Stuff specific to *my parsing*. letter_to_non_active_uncased_type_map = { ...
37.751938
90
0.658316
14fbcce3feb4c4d3755700befad3fb8381ba83ea
719
py
Python
carnival/migrations/0011_auto_20191017_1045.py
farro4069/allez
c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c
[ "BSD-2-Clause" ]
null
null
null
carnival/migrations/0011_auto_20191017_1045.py
farro4069/allez
c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c
[ "BSD-2-Clause" ]
null
null
null
carnival/migrations/0011_auto_20191017_1045.py
farro4069/allez
c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.1.4 on 2019-10-17 00:45 from django.db import migrations, models
24.793103
53
0.5758
14fbebb9df421f915a2a0442fc7bcdd045fbbef0
2,787
py
Python
openweave/tlv/schema/tests/test_VENDOR.py
robszewczyk/openweave-tlv-schema
c0acbccce4fcaf213a09261f79d6a141ae94f7e8
[ "Apache-2.0" ]
1
2020-05-19T22:52:27.000Z
2020-05-19T22:52:27.000Z
openweave/tlv/schema/tests/test_VENDOR.py
robszewczyk/openweave-tlv-schema
c0acbccce4fcaf213a09261f79d6a141ae94f7e8
[ "Apache-2.0" ]
null
null
null
openweave/tlv/schema/tests/test_VENDOR.py
robszewczyk/openweave-tlv-schema
c0acbccce4fcaf213a09261f79d6a141ae94f7e8
[ "Apache-2.0" ]
1
2021-02-15T16:14:17.000Z
2021-02-15T16:14:17.000Z
#!/usr/bin/env python3 # # Copyright (c) 2020 Google LLC. # 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....
34.8375
76
0.614281
14fc3caa752fb624866d5cfe60083c14dfb17ed9
336
py
Python
app/services/events.py
fufuok/FF.PyAdmin
031fcafe70ecb78488876d0c61e30ca4fb4290af
[ "MIT" ]
56
2019-11-26T15:42:29.000Z
2022-03-10T12:28:07.000Z
app/services/events.py
fufuok/FF.PyAdmin
031fcafe70ecb78488876d0c61e30ca4fb4290af
[ "MIT" ]
4
2020-03-20T01:51:47.000Z
2022-03-30T22:10:56.000Z
app/services/events.py
fufuok/FF.PyAdmin
031fcafe70ecb78488876d0c61e30ca4fb4290af
[ "MIT" ]
15
2019-11-26T15:42:33.000Z
2022-03-09T05:41:44.000Z
# -*- coding:utf-8 -*- """ events.py ~~~~~~~~ , :author: Fufu, 2019/12/20 """ from blinker import signal # event_user_logined = signal('event_user_logined') # (/) event_sys_admin = signal('event_sys_admin') # app event_async_with_app_demo = signal('event_async_with_app_demo')
17.684211
63
0.690476
14fe3c3a6b1c35d2aade0c7366e77fd7418c122a
1,181
py
Python
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
null
null
null
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
2
2021-10-31T15:16:34.000Z
2021-10-31T15:22:17.000Z
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
null
null
null
import datetime import click from oura import OuraClient
25.12766
81
0.628281
14fe677b2376deed69fc96644a350773e0c985ca
1,635
py
Python
ai_finger_counting.py
dnovai/advancedCVProject
de3e75247c7b7ae617a578800c51c42fadbdc844
[ "MIT" ]
1
2022-02-25T02:36:02.000Z
2022-02-25T02:36:02.000Z
ai_finger_counting.py
dnovai/advancedCVProject
de3e75247c7b7ae617a578800c51c42fadbdc844
[ "MIT" ]
null
null
null
ai_finger_counting.py
dnovai/advancedCVProject
de3e75247c7b7ae617a578800c51c42fadbdc844
[ "MIT" ]
null
null
null
import cv2 import os import time import advancedcv.hand_tracking as htm import numpy as np import itertools patterns = np.array(list(itertools.product([0, 1], repeat=5))) p_time = 0 cap = cv2.VideoCapture(0) # w_cam, h_cam = 648, 480 # cap.set(3, w_cam) # cap.set(4, h_cam) folder_path = "finger_images" my_list = os...
24.044118
100
0.601223
14ff6bd96aa976b58904b681f23b026afedef8de
12,852
py
Python
PaddleFSL/examples/image_classification/maml_image_classification.py
tianxin1860/FSL-Mate
74dde9a3e1f789ec92710b9ecdf9c5b060d26fd3
[ "MIT" ]
null
null
null
PaddleFSL/examples/image_classification/maml_image_classification.py
tianxin1860/FSL-Mate
74dde9a3e1f789ec92710b9ecdf9c5b060d26fd3
[ "MIT" ]
null
null
null
PaddleFSL/examples/image_classification/maml_image_classification.py
tianxin1860/FSL-Mate
74dde9a3e1f789ec92710b9ecdf9c5b060d26fd3
[ "MIT" ]
null
null
null
import paddle import paddlefsl from paddlefsl.model_zoo import maml # Set computing device paddle.set_device('gpu:0') # """ --------------------------------------------------------------------------------- # Config: MAML, Omniglot, MLP, 5 Ways, 1 Shot TRAIN_DATASET = paddlefsl.datasets.Omniglot(mode='train', image_s...
35.502762
106
0.591581
14ff741d0e6a57229801a6e6be5e98e3344172dd
3,085
py
Python
convert.py
AndreiBaias/PAS
8905f86db15806647ab7879fd32c9057a9b93868
[ "MIT" ]
null
null
null
convert.py
AndreiBaias/PAS
8905f86db15806647ab7879fd32c9057a9b93868
[ "MIT" ]
3
2022-03-30T15:43:12.000Z
2022-03-30T15:43:41.000Z
convert.py
AndreiBaias/PAS
8905f86db15806647ab7879fd32c9057a9b93868
[ "MIT" ]
null
null
null
import numpy as np import collections, numpy import glob from PIL import Image from matplotlib.pyplot import cm nrImages = 1 imageSize = 449 finalImageSize = 449 ImageNumber = 0 sourceFolder = 'images' # sourceFolder = "testInput" destinationFolder = 'final_text_files_2' # destinationFolder = "testOutpu...
24.68
83
0.491086
14ff9b4e350a6ca08c90a2722fd722026d991e51
1,857
py
Python
ravager/housekeeping.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
null
null
null
ravager/housekeeping.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
1
2022-03-15T06:55:48.000Z
2022-03-15T15:38:20.000Z
ravager/housekeeping.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
2
2022-02-09T21:30:57.000Z
2022-03-15T06:19:57.000Z
from ravager.database.tasks import Tasks import logging from ravager.database.helpers import setup_db from ravager.config import DATABASE_URL, LOGS_DIR from ravager.helpers.check_process import Process from subprocess import check_call logger = logging.getLogger(__file__) setup_db.create_tables() logger.info("Databas...
36.411765
74
0.726979
14ffa6b25312cc8be37c853fbf3300bd513054fa
4,623
py
Python
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
1
2021-08-01T22:39:18.000Z
2021-08-01T22:39:18.000Z
from PyDAQmx import * from ctypes import byref, c_ulong,c_int32 import numpy as np
26.722543
100
0.544884
14ffc8d1112cea4351881119362848071845aff2
1,603
py
Python
test/examples/integrated/codec/testlib.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
test/examples/integrated/codec/testlib.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
test/examples/integrated/codec/testlib.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
#// #// ------------------------------------------------------------- #// Copyright 2011 Synopsys, Inc. #// Copyright 2010-2011 Mentor Graphics Corporation #// Copyright 2019-2020 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// Licensed under the Apache License, Version 2.0 (the #//...
34.106383
71
0.559576
09000834339f325e00a15ac2eaa5bf2ddeeff627
1,110
py
Python
MGTU-demo/arrange_signs.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
MGTU-demo/arrange_signs.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
MGTU-demo/arrange_signs.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
from math import inf nums = list(map(int, input().split())) signs = { '+': 1, '-': 2, '*': 3, '/': 4, '%': 5, '=': 0 } anss = [] comb(nums[1:], str(nums[0]), False) print(anss) min_v = inf for ans in anss: ves = 0 for char in ans: ves += signs.get(char, 0) if ves < min_v: min_v = ves real_ans = ans...
17.076923
58
0.544144
09003d15be83a3b390c12acd09219a14eb6cb09a
15,291
py
Python
kempnn/trainer.py
ttyhasebe/KEMPNN
d52ec0a82d758431120c0831738b104a535f2264
[ "BSD-3-Clause" ]
4
2022-01-14T08:43:52.000Z
2022-03-02T11:06:03.000Z
kempnn/trainer.py
ttyhasebe/KEMPNN
d52ec0a82d758431120c0831738b104a535f2264
[ "BSD-3-Clause" ]
null
null
null
kempnn/trainer.py
ttyhasebe/KEMPNN
d52ec0a82d758431120c0831738b104a535f2264
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2021 by Tatsuya Hasebe, Hitachi, Ltd. # All rights reserved. # # This file is part of the KEMPNN package, # and is released under the "BSD 3-Clause License". Please see the LICENSE # file that should have been included as part of this package. # import datetime import json import os import pickle import ...
33.459519
80
0.511804
09003f8db6874b60bff5eb74103e02a1d139ecc6
222
py
Python
ex052.py
almmessias/CursoPython
4cec6946f32002cbd5d3b802df11ea1ba74169f5
[ "MIT" ]
null
null
null
ex052.py
almmessias/CursoPython
4cec6946f32002cbd5d3b802df11ea1ba74169f5
[ "MIT" ]
null
null
null
ex052.py
almmessias/CursoPython
4cec6946f32002cbd5d3b802df11ea1ba74169f5
[ "MIT" ]
null
null
null
num = int (input ('Digite um nmero inteiro: ')) if num % 2 != 0 and num % 3 != 0 and num % 5 != 0 and num % 7 != 0: print ('{} um nmero primo'.format(num)) else: print ('{} no um nmero primo.'.format(num))
37
67
0.567568
090286670227babe5f029e77ab867cf49a3711a6
659
py
Python
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
null
null
null
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
18
2020-10-21T07:58:14.000Z
2022-03-29T12:10:25.000Z
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
7
2020-10-06T08:46:40.000Z
2021-07-06T13:21:29.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Graz University of Technology. # # invenio-records-lom is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Provider for LOM PID-fields.""" from invenio_drafts_resources.records.api import ...
27.458333
80
0.760243
0902becf0cc85035e9f04cc78c468e09f7880261
1,127
py
Python
discord_base/__manifest__.py
bishalgit/discord-addons
f7f36791734440cd0b37296f5f5132e91035b15f
[ "MIT" ]
1
2020-10-02T23:22:44.000Z
2020-10-02T23:22:44.000Z
discord_base/__manifest__.py
bishalgit/discord-addons
f7f36791734440cd0b37296f5f5132e91035b15f
[ "MIT" ]
null
null
null
discord_base/__manifest__.py
bishalgit/discord-addons
f7f36791734440cd0b37296f5f5132e91035b15f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Ygen. See LICENSE file for full copyright and licensing details. { 'name': 'Discord - Base module for discord', 'summary': """ This module is a base module to provide foudation for building discord modules for Odoo.""", 'description': """ This module is a b...
32.2
100
0.598048
0903fb75c589ec651b3db5a68d90addf520bf4a1
696
py
Python
app.py
KaceyHirth/Library-DBMS-System
40b425ed5c7b46627b7c48724b2d20e7a64cf025
[ "MIT" ]
null
null
null
app.py
KaceyHirth/Library-DBMS-System
40b425ed5c7b46627b7c48724b2d20e7a64cf025
[ "MIT" ]
null
null
null
app.py
KaceyHirth/Library-DBMS-System
40b425ed5c7b46627b7c48724b2d20e7a64cf025
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bootstrap import Bootstrap from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user import os basePath = os.path.abspath(os.path.dirname(__file__)) template_dir = os.path.join(basePath, 'templates')...
27.84
102
0.806034
09042b5650522c004e88f9bb356dd4258fbf0a37
78
py
Python
python_resolutions/beginner/1070.py
DanielYe1/UriResolutions
7140c4a7f37b95cc15d9c77612c4abde469d379f
[ "Apache-2.0" ]
null
null
null
python_resolutions/beginner/1070.py
DanielYe1/UriResolutions
7140c4a7f37b95cc15d9c77612c4abde469d379f
[ "Apache-2.0" ]
null
null
null
python_resolutions/beginner/1070.py
DanielYe1/UriResolutions
7140c4a7f37b95cc15d9c77612c4abde469d379f
[ "Apache-2.0" ]
null
null
null
x = int(input()) for i in range(12): if (i+x) % 2 ==1: print(i+x)
15.6
21
0.448718
09047cdff4106518ddb7312a4ad2e4fbacd7ac5f
6,167
py
Python
xdl/blueprints/chasm2.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/chasm2.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/chasm2.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
from ..constants import JSON_PROP_TYPE from .base_blueprint import BaseProcedureBlueprint from ..steps import placeholders from ..reagents import Reagent DEFAULT_VESSEL: str = 'reactor' DEFAULT_SEPARATION_VESSEL: str = 'separator' DEFAULT_EVAPORATION_VESSEL: str = 'rotavap' converters = { 'addition1': chasm2_add...
31.304569
78
0.592995
09050f807c744801e59522d4a44d059ae276259e
570
py
Python
pandaharvester/harvestercore/plugin_base.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvestercore/plugin_base.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvestercore/plugin_base.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
from future.utils import iteritems from pandaharvester.harvestercore import core_utils
33.529412
96
0.685965
0905ad16307a5af70bde741ea4817b4a93ef0e8a
1,762
py
Python
preprocessing/MEG/filtering.py
athiede13/neural_sources
3435f26a4b99b7f705c7ed6b43ab9c741fdd1502
[ "MIT" ]
null
null
null
preprocessing/MEG/filtering.py
athiede13/neural_sources
3435f26a4b99b7f705c7ed6b43ab9c741fdd1502
[ "MIT" ]
null
null
null
preprocessing/MEG/filtering.py
athiede13/neural_sources
3435f26a4b99b7f705c7ed6b43ab9c741fdd1502
[ "MIT" ]
null
null
null
""" Filtering of MEG data Created on 13.9.2017 @author: Anja Thiede <anja.thiede@helsinki.fi> """ import os from os import walk import datetime import numpy as np import mne now = datetime.datetime.now() # set up data paths root_path = ('/media/cbru/SMEDY_SOURCES/DATA/MEG_prepro/') f = [] for (dirpath, dirnames, f...
27.53125
88
0.611805
090815c73402b5617ea4e0affb9e020029701833
108
py
Python
solutions/week-1/interval.py
bekbolsky/stepik-python
91613178ef8401019fab01ad18f10ee84f2f4491
[ "MIT" ]
1
2022-02-23T09:05:47.000Z
2022-02-23T09:05:47.000Z
solutions/week-1/interval.py
bekbolsky/stepik-python
91613178ef8401019fab01ad18f10ee84f2f4491
[ "MIT" ]
null
null
null
solutions/week-1/interval.py
bekbolsky/stepik-python
91613178ef8401019fab01ad18f10ee84f2f4491
[ "MIT" ]
null
null
null
x = int(input()) if (-15 < x <= 12) or (14 < x < 17) or x >= 19: print("True") else: print("False")
18
47
0.472222
09098bec23281af47e835daa26b81dccca6d2e2c
22,972
py
Python
src/pds_doi_service/core/db/doi_database.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
2
2020-11-03T19:29:11.000Z
2021-09-26T01:42:41.000Z
src/pds_doi_service/core/db/doi_database.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
222
2020-05-07T21:05:23.000Z
2021-12-16T22:14:54.000Z
src/pds_doi_service/core/db/doi_database.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
null
null
null
# # Copyright 202021, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any commercial # use must be negotiated with the Office of Technology Transfer at the # California Institute of Technology. # """ =============== doi_database.py ==============...
36.176378
119
0.632596
0909f5e66b19795a40b888634a2cf23b87f0cd63
786
py
Python
amnesia/modules/search/views/tag.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
4
2015-05-08T10:57:56.000Z
2021-05-17T04:32:11.000Z
amnesia/modules/search/views/tag.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
6
2019-12-26T16:43:41.000Z
2022-02-28T11:07:54.000Z
amnesia/modules/search/views/tag.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
1
2019-09-23T14:08:11.000Z
2019-09-23T14:08:11.000Z
# -*- coding: utf-8 -*- # pylint: disable=E1101 from pyramid.view import view_config from pyramid.httpexceptions import HTTPNotFound from amnesia.modules.tag import Tag from amnesia.modules.search import SearchResource def includeme(config): ''' Pyramid includeme func''' config.scan(__name__)
23.117647
70
0.683206
090a042fdb172133fc8a7549c6014b2194047447
12,410
py
Python
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
1
2020-06-24T12:49:49.000Z
2020-06-24T12:49:49.000Z
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 27 00:17:55 2020 @author: mehrdad """ import json import numpy as np import pandas as pd import time import math #import blist import tslib.mining import tslib.common import tslib.trip_detection import tslib.trip STORE_RESULTS = False #output_fol...
40.032258
135
0.652458
090a8d868906c9c97d5b54db58497792e9cd606d
24,054
py
Python
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod import gym import matplotlib.pyplot as plt import numpy as np from pathlib import Path import time from setcpp import SmoothnessDPL1Cost, SmoothnessDPPairGridCost, SmoothnessGreedy import tqdm from typing import Optional, Tuple, NoReturn from data.synthia import Frame, append_xyz_to...
46.436293
130
0.547435
090ac8191b92a41692dec58a6457de7f58261791
17,884
py
Python
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
# Copyright 2021 The Pigweed Authors # # 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 ...
41.207373
132
0.597238
090c37be215b0f5ca5159ca3a58646804fc96e15
163
py
Python
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
106
2018-08-30T01:45:38.000Z
2021-06-03T11:05:15.000Z
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
3
2019-04-12T02:03:25.000Z
2019-05-07T00:16:55.000Z
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
36
2018-08-30T04:08:31.000Z
2021-05-18T07:02:10.000Z
import numpy as np import superfast
23.285714
55
0.656442
090c9c265a0fb2fb0dad7a18bd49965eaa38157a
3,816
py
Python
mono/model/mono_autoencoder/layers.py
Jenaer/FeatDepth
64128b03873b27ffa5e99a5cb1712dd8aa15cb0d
[ "MIT" ]
179
2020-08-21T08:57:22.000Z
2022-03-26T21:55:20.000Z
mono/model/mono_autoencoder/layers.py
sconlyshootery/feature_metric_depth
550420b3fb51a027549716b74c6fbce41651d3a5
[ "MIT" ]
84
2020-08-30T14:25:19.000Z
2022-03-08T12:29:37.000Z
mono/model/mono_autoencoder/layers.py
sconlyshootery/feature_metric_depth
550420b3fb51a027549716b74c6fbce41651d3a5
[ "MIT" ]
31
2020-10-01T12:12:19.000Z
2022-03-06T08:04:18.000Z
from __future__ import absolute_import, division, print_function import torch import torch.nn as nn import torch.nn.functional as F def compute_depth_errors(gt, pred): thresh = torch.max((gt / pred), (pred / gt)) a1 = (thresh < 1.25 ).float().mean() a2 = (thresh < 1.25 ** 2).float().mean() ...
33.473684
128
0.586478
090caec635d034601a9a45a30d2d0ee7c652da16
2,413
py
Python
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
17
2017-06-14T16:36:12.000Z
2021-01-31T18:16:10.000Z
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
1
2018-02-26T16:04:48.000Z
2018-03-01T06:42:57.000Z
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
5
2017-09-12T13:20:02.000Z
2019-02-06T08:41:58.000Z
import numpy as np from plato.core import as_floatx, create_shared_variable, symbolic, add_update from theano import tensor as tt
29.426829
86
0.61293
090cd84d945d6fe0adc3e503a0af7a8286c3e451
5,603
py
Python
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
import logging from cart import Cart from django.conf import settings from django.contrib.sites.models import get_current_site from django.utils import translation from mailtemplates.models import EMailTemplate from payment.models import PrePayment from payment.services.paypal import paypal from shop.checkout_wizard im...
35.916667
116
0.641442
090e30708a609fe03c64ef91c96c83167bd3b51a
4,178
py
Python
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
null
null
null
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
2
2021-09-06T21:38:43.000Z
2021-10-05T11:07:08.000Z
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
null
null
null
"""Clean API""" import logging from pathlib import Path from . import readers log = logging.getLogger(__name__) def kinetic_model(src, dst=None, params=None, model='srtmb_basis', input_interp_method='linear', w=None, r1=1, k2p=0.000250, beta_lim=None, n_beta=40, linear_phase_start=500, ...
43.978947
99
0.66539
09112b983864e08dcf3260b85da5bc6f69581ccc
1,360
py
Python
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
1
2019-10-19T11:18:17.000Z
2019-10-19T11:18:17.000Z
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
13
2019-06-10T07:03:26.000Z
2019-11-06T01:09:38.000Z
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
null
null
null
"""Raw CLI commands.""" from typing import IO import click from ..._templates import artifact_builder, replication_listener, source_region_core from ..._util.workers_zip import build_and_write_workers from .add import add_to_deployment from .init import init_project _TEMPLATES = {"builder": artifact_builder, "listen...
27.2
111
0.733088
0913490c7e8b8a24f711e0b9a27fb487a58be19f
77
py
Python
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
_base_ = './optimizer.py' optimizer = dict( type='Adam', lr=0.003 )
11
25
0.571429
091385b6dc5d31a226660eaa47c59dfda0a2329a
5,998
py
Python
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
from IPython.display import display from IPython.display import HTML import IPython.core.display as di # This line will hide code by default when the notebook is exported as HTML di.display_html('<script>jQuery(function() {if (jQuery("body.notebook_app").length == 0) { jQuery(".input_area").toggle(); jQuery(".promp...
24.283401
175
0.649883
0913a064947d243f614c619b7153c8fd3f692bd6
228
py
Python
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
6
2021-05-31T10:23:18.000Z
2022-02-15T08:45:30.000Z
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
null
null
null
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict
19
56
0.723684
0913ad0ca10d6662285de519bc20eb0bf251e5c6
3,834
py
Python
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
#!/usr/bin/python # vim:set et sw=4: # # Originally from: # http://cvs.fedoraproject.org/viewvc/F-13/ca-certificates/certdata2pem.py?revision=1.1&content-type=text%2Fplain&view=co # # certdata2pem.py - converts certdata.txt into PEM format. # # Copyright (C) 2009 Philipp Kern <pkern@debian.org> # # This program is fre...
34.232143
121
0.639541
0913cfe9fc0c893e99396e709cf82a81dfd1ee9b
56
py
Python
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
timestamp = "02-03-2022 13:12:15 on flin (by mightqxc)"
28
55
0.696429
0914e1a28a157c416a8a2c605a43e0263d7aefd4
701
py
Python
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
83
2021-01-06T06:50:30.000Z
2022-03-31T05:16:32.000Z
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
30
2021-02-27T06:09:47.000Z
2021-12-23T11:03:36.000Z
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
13
2021-03-05T18:26:58.000Z
2022-03-12T01:53:17.000Z
import json import os def read_config_file(filename): """ Loads and returns a configuration from the supplied filename / path. Parameters ---------- filename: string The name/path of the config file to load. Returns ---------- config: object The resulting configura...
24.172414
72
0.600571
0915536721dec4fcf77cccd8a1e6caa20567b01f
1,944
py
Python
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 26. Remove Duplicates from Sorted Array # # Description: # Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. # Do not allocate extra space for another array, you must do this in place with constant memory. # # For...
34.714286
161
0.587963
091779d4a3220139baaa8d0f21ee1690811fd3bf
197
py
Python
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
16
2015-04-30T22:36:57.000Z
2021-04-29T16:38:17.000Z
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
1
2017-02-18T18:42:31.000Z
2017-02-18T18:48:47.000Z
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
2
2017-06-03T08:00:28.000Z
2017-07-15T16:50:47.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Copyright (c) 2016 Troels Agergaard Jacobsen __version__ = '0.2.0' __description__ = 'Command line utility to backup Evernote notes and notebooks.'
32.833333
80
0.725888
0919fdf2ce825bd818ddbc07ef5fd14d15e3d623
6,373
py
Python
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
2
2019-08-06T10:10:37.000Z
2020-09-30T12:11:28.000Z
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
1
2021-04-14T12:09:02.000Z
2021-07-19T04:06:05.000Z
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
null
null
null
"""Plot clustered spikes Usage: python ncpsort.cluster_synthetic_data.inference_plot_synthetic \ --inference_dir ./inference_synthetic_N-1000/cluster_S-150-beam_NCP-10000 \ --min_cls_size 50 --plot_type overlay or --inference_dir --min_cls_size 50 --plot_type tsne """ import numpy as np imp...
45.198582
132
0.661541