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
6f4c2801d9bd553871475afb7b65130adbc0816c
7,963
py
Python
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
3
2019-02-03T00:11:34.000Z
2020-12-08T03:12:29.000Z
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
null
null
null
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
8
2019-03-08T03:20:24.000Z
2021-12-29T09:12:54.000Z
#!/usr/bin/env python # Filename: raster_statistic """ introduction: conduct statistic based on vectos, similar to https://github.com/perrygeo/python-rasterstats, # but allow image tiles (multi-raster). authors: Huang Lingcao email:huanglingcao@gmail.com add time: 02 March, 2021 """ import os,sys import ve...
39.034314
128
0.672485
6f4f6ae38349e41996b32d4d35373858a72fda8b
1,226
py
Python
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
2
2016-03-15T15:07:06.000Z
2016-05-10T23:01:05.000Z
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
# Defutils.py -- Contains parsing functions for definition files. # Produces an organized list of tokens in the file.
22.703704
65
0.596248
6f501da078c8264f3aa97dd237a4fd33b8efc2d3
492
py
Python
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import json import sys import clize if __name__ == '__main__': clize.run(main)
17.571429
56
0.628049
6f51e1b0451d36b7c6fa181d10bcac54b6aff907
2,254
py
Python
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
""" TutorialMirror A simple mirror object to experiment with. """ from evennia import DefaultObject from evennia.utils import make_iter, is_iter from evennia import logger
35.777778
96
0.612689
6f52486edca89f5433834a3b9b6ee311e8cbfc7a
1,087
py
Python
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
from tkinter import Tk from turtle import ScrolledCanvas, TurtleScreen, RawTurtle DIGIT2POS = dict(zip( "123456789", ((100 * (j - 1), 100 * (-i + 1)) for i in range(3) for j in range(3)) )) if __name__ == "__main__": main("61834927")
25.880952
73
0.618215
6f52a901e875d32b20f9451889c4b2196619f283
3,879
py
Python
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # test code for PyPortMidi # a port of a subset of test.c provided with PortMidi # John Harrison # harrison [at] media [dot] mit [dot] edu # March 15, 2005: accommodate for SysEx messages and preferred list formats # SysEx test code contributed by Markus Pfaff # February 27, 2005...
38.405941
105
0.63109
6f541abd19a1111ebb51682e3f0933b11c46ab1e
1,043
py
Python
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
#coding=utf-8 import pandas as pd if __name__ == "__main__": correct_rate,error_index = get_labels("../processed_data/dev_processed_data_split.csv","./result/result_predict.txt") print("correct_rate : "+str(correct_rate)) print("error_email : "+str(error_index))
21.729167
121
0.663471
6f54410348912d7242d35c3b0676a8ad9e832eda
1,219
py
Python
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
from ex01.funcoes import *
23
82
0.528302
6f54793f102a2f9346990845e8357d9f1db537d3
4,330
py
Python
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
3
2022-02-08T16:11:43.000Z
2022-03-23T16:18:59.000Z
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
null
null
null
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
2
2022-02-01T05:35:56.000Z
2022-02-10T01:37:38.000Z
# -*- coding: utf-8 -*- """ :author @Icrons cron: 20 10 * * * new Env(''); """ import json import re import traceback import requests import urllib3 from notify_mtr import send from utils import get_data urllib3.disable_warnings() if __name__ == "__main__": data = get_data() _check_items = data.get("AIRP...
31.151079
138
0.505081
6f55278da18ee1b87b293e3ecbf2009597eacc92
2,541
py
Python
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------- # Author: Marcelo Villa-Pieros # # Purpose: Determines the fire season for each window. The fire season is # defined as the minimum number of consecutive months that contain more # than 80% of the burned area (Archibald ett al 2013; Abatzoglou et...
38.5
87
0.646989
6f5611d11711ac2d42a20770b0203d11ed9c22de
5,719
py
Python
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
1
2021-08-01T02:26:59.000Z
2021-08-01T02:26:59.000Z
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
import bpy import json from bpy.types import SpaceView3D from bpy.app.handlers import persistent from mathutils import Quaternion, Matrix, Vector from holo.gestures import prediction_from_camera def duplicate_window(window_type: str = 'INVOKE_DEFAULT') -> None: """Duplicates a new window into bpy.data.screens fro...
43.656489
135
0.673719
6f57b93666fc12f3542b15b4104bbd2e0df4bc2a
2,506
py
Python
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
2
2020-10-21T23:54:28.000Z
2020-12-26T14:00:07.000Z
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
null
null
null
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "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, ...
41.081967
75
0.7502
6f59ecc61ca13580a763007d05b1e7a17bc242cb
165
py
Python
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
1
2020-08-08T17:06:43.000Z
2020-08-08T17:06:43.000Z
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
2
2021-03-30T01:01:59.000Z
2021-03-30T01:01:59.000Z
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
4
2020-12-22T18:13:24.000Z
2021-11-26T13:03:45.000Z
""" DB operations for Targets """ from api.models.base import DBModel
13.75
39
0.684848
6f5a67d0b0a7c3b0ab3f8a01d7d7b783ef80e5c4
15,107
py
Python
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
# myTeam.py # --------- # Licensing Infoesmation: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
34.256236
112
0.583769
6f5c96a2170db005f0df74623642b0c6df9f9c2a
433
py
Python
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
3
2021-12-11T20:57:07.000Z
2021-12-14T22:20:42.000Z
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
20
2021-11-15T17:08:54.000Z
2022-03-25T10:32:52.000Z
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
3
2021-11-22T21:44:04.000Z
2021-12-14T10:31:46.000Z
from setuptools import setup, find_packages setup( name='SBIExperiments', version='0.0.1', url='https://github.com/astrodeepnet/sbi_experiments', author='Justine Zeghal and friends', description='Package for numerical experiments of SBI tools', packages=find_packages(), install_requires=[ 'numpy>=1.1...
24.055556
63
0.681293
6f5dc8fddaaa9b918695e316e6b45bac16a19712
880
py
Python
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
1
2018-09-14T08:32:07.000Z
2018-09-14T08:32:07.000Z
import datetime import libcloud from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from pprint import pprint Engine = get_driver(Provider.ELASTICHOSTS) driver = Engine("733b7dc7-7498-4db4-9dc4-74d3fee8abed", secret="6w6CDAqL6JyXFj3xNkWW2zpUjYfv9dYaLVdaaR4Y",...
25.882353
83
0.729545
6f5df725ff569b1c32118a15233cd3613598d3f9
95
py
Python
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
from django.contrib import admin from .models import TodoModel admin.site.register(TodoModel)
19
32
0.831579
6f60ca83d2a6e347812ac821a5981278c5493d55
1,853
py
Python
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : antoniog1 Date : 2019-02-21 Purpose: Rock the Casbah """ import argparse import sys import os # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python scri...
28.953125
110
0.51538
6f60f993f98cc6ec2f6e673c50ecaa903ed57a90
4,042
py
Python
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # @Author: Jos Snchez-Gallego # @Date: Oct 10, 2017 # @Filename: target.py # @License: BSD 3-Clause # @Copyright: Jos Snchez-Gallego from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import pathlib import y...
30.854962
79
0.596487
6f628605ce1d839a711154a74d7ae1743fe66d28
1,889
py
Python
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
4
2021-08-15T04:55:44.000Z
2022-02-01T09:19:57.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
53
2021-07-16T11:02:44.000Z
2022-03-07T16:39:20.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
5
2021-07-15T18:17:53.000Z
2022-01-29T08:09:16.000Z
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.621212
87
0.755956
6f62e27b225bd0318b85812c8f42343dc3b0fca8
1,436
py
Python
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
3
2021-12-11T13:43:56.000Z
2022-03-31T02:36:05.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
9
2021-10-01T22:46:57.000Z
2021-12-16T18:01:31.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
2
2021-12-16T16:37:10.000Z
2021-12-16T20:30:12.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import * # Register your models here. set_active.short_description = 'Set Account Status: Active' deactivate.short_description = 'Set Account Status: Inactive' # admin.site.unregister(User) admin.site.register(Author, Aut...
31.217391
96
0.639972
6f637c0d8807f40cbf867588212e880e31335fd4
26,912
py
Python
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
# -*- coding: utf-8 -*- """task module.""" from __future__ import unicode_literals import sys import os import pydoc import time import json import logging import collections import pkg_resources import subprocess import webbrowser import websocket from pyloco.parse import TaskArgParser, PylocoArgParser from pyloco....
31.329453
111
0.506986
6f644b09bfe662762ed95cb2b170c8fc73f84411
1,376
py
Python
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
"""Azure IoT Device Library - Asynchronous This library provides asynchronous clients for communicating with Azure IoT services from an IoT device. """ from azure.iot.device.iothub.aio import * from azure.iot.device.provisioning.aio import * from . import patch_documentation # Dynamically patch the clients to add sh...
45.866667
90
0.805233
6f647632e2c96c2063ca3a82382e2a10a7664a9e
1,716
py
Python
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:48.000Z
2018-01-12T14:09:48.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2019-09-10T05:03:47.000Z
2019-09-10T05:03:47.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2013-2016 Luc Saffre # # License: BSD (see file COPYING for details) """This module is for managing a reception desk and a waiting queue: register clients into a waiting queue as they present themselves at a reception desk (Empfangsschalter), and unregister them when they leave agai...
28.6
72
0.701049
6f659c58598cee6e53216640aed93bdbc6f2a194
320
py
Python
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
from accent_analyser.rules.EngRule import EngRule
22.857143
59
0.69375
6f6a38a0483844a3f770817a9b327db335f9b10a
255
py
Python
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
6
2019-06-07T19:25:51.000Z
2019-10-30T01:56:29.000Z
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
1
2019-08-26T00:05:50.000Z
2019-08-26T00:05:50.000Z
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
1
2019-10-30T01:56:33.000Z
2019-10-30T01:56:33.000Z
# -*- coding:utf-8 -*-
19.615385
58
0.670588
6f6b28d63b93b95d61bab409bb560af9d95cf417
1,505
py
Python
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
2
2019-05-07T03:08:25.000Z
2020-05-22T10:10:00.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
7
2020-05-22T13:29:42.000Z
2021-09-23T23:30:25.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/py
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
null
null
null
session.forget() def vars(): """the running controller function!""" title = '.'.join(request.args) attributes = {} if not request.args: (doc, keys, t, c, d, value) = ('Global variables', globals(), None, None, [], None) elif len(request.args) < 3: obj = get(request.args) i...
27.363636
91
0.453821
6f6c2c1c13418649733376c632ea6395a15039ac
857
py
Python
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #223. Rectangle Area #Find the total area covered by two rectilinear rectangles in a 2D plane. #Each rectangle is defined by its bottom left corner and to...
32.961538
98
0.655776
6f6c63911e71ae7c84e18bedf35df7f0d63d41aa
437
py
Python
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
1
2019-04-29T16:07:51.000Z
2019-04-29T16:07:51.000Z
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
null
null
null
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
null
null
null
import serial import RPi.GPIO as GPIO import time ser=serial.Serial("/dev/ttyACM0",9600) start_time = time.time() imu = open("IMU.txt","w") while time.time() - start_time <= 1: ser.readline() while time.time() - start_time <= 8: read_ser=ser.readline() if float(read_ser) == 0.00: pa...
19.863636
39
0.578947
6f6e858702c8ce5b6a0c7be5155f97db4b0d395c
1,950
py
Python
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
1
2022-01-03T21:56:14.000Z
2022-01-03T21:56:14.000Z
from pyg_base._types import is_iterable from pyg_base._loop import len0 __all__ = ['zipper', 'lens'] def lens(*values): """ measures (and enforces) a common length across all values :Parameters: ---------------- *values : lists Raises ------ ValueError if you have values with...
27.083333
118
0.510256
6f6e961109cfe080e1074fb4fb957b034dcf9958
1,997
py
Python
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
null
null
null
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
13
2022-02-17T06:05:44.000Z
2022-03-17T02:47:49.000Z
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
2
2021-09-28T08:01:42.000Z
2021-09-28T08:18:31.000Z
import json from typing import List import requests from pawls.preprocessors.model import Page def process_grobid( pdf_file: str, grobid_host: str = "http://localhost:8070" ): """ Integration for importing annotations from grobid. Depends on a grobid API built from our fork https://github.com/al...
31.203125
86
0.593891
6f6fd6c2d42d2b9282a1e6483b23196da4a8aeeb
2,614
py
Python
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
35.808219
74
0.649579
6f6fddc36a83d5396bed90f0e96d5995bd58f9a5
6,274
py
Python
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from pyomo.environ import * from pyomo.core.base import Constraint, Objective, Suffix, minimize from pyomo.opt import ProblemFormat, SolverFactory from nmpc_mhe.dync.NMPCGenv2 import NmpcGen from nmpc_mhe.mods.bfb.nob5_hi_t import bfb_dae from snap_shot import snap import sys, os i...
36.690058
91
0.603602
6f709ca217e6ed7e435bf5ff768925bbdc7d9c7c
493
py
Python
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
15
2019-08-23T09:57:54.000Z
2021-11-08T10:38:03.000Z
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
36
2019-08-21T10:05:53.000Z
2022-03-23T08:58:02.000Z
csvapi/security.py
opendatateam/csvapi
4e4ea7167f7265782c8f654619b060dc04112392
[ "MIT" ]
1
2018-04-25T09:55:25.000Z
2018-04-25T09:55:25.000Z
from urllib.parse import urlparse from quart import current_app as app, request, jsonify
24.65
54
0.614604
6f70b2504b0ddf0927280e069e308de02195aea2
447
py
Python
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
8
2019-06-11T14:09:12.000Z
2021-09-09T09:37:47.000Z
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
7
2020-02-12T02:55:11.000Z
2020-08-27T09:54:54.000Z
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
2
2020-06-18T09:54:20.000Z
2022-02-17T08:33:13.000Z
from django.db import models from filer.fields.file import FilerFileField
37.25
115
0.753915
6f722918045c200389c503a068fc9c4194103a3f
9,679
py
Python
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import atexit import errno import logging import os import select import signal import sys import time from process_tests import setup_coverage TIMEOUT = int(os.getenv('MANHOLE_TEST_TIMEOUT', 10)) SOCKET_PATH = '/tmp/manhole-socket' OUTPUT = sys.__stdout__ # Handling sigterm e...
37.226923
116
0.510073
6f73d54d3a1a664d942bd0ee6d760eedb4233760
1,054
py
Python
ecommerce/User/admin.py
AwaleRohin/commerce-fm
cb5b43c999ae5be37957b29de9c07d5affc66fb0
[ "MIT" ]
18
2020-12-05T14:12:32.000Z
2022-03-11T20:15:22.000Z
ecommerce/User/admin.py
AwaleRohin/commerce-fm
cb5b43c999ae5be37957b29de9c07d5affc66fb0
[ "MIT" ]
1
2021-07-22T09:23:13.000Z
2021-07-22T09:23:13.000Z
ecommerce/User/admin.py
shakyasaijal/commerce-fm
358b6925f4b569dc374010d7cc7d4d560ede2b48
[ "MIT" ]
13
2020-10-15T10:17:35.000Z
2022-01-29T06:56:24.000Z
from django.contrib import admin from django.conf import settings from django.core.exceptions import ImproperlyConfigured from . import models if settings.HAS_ADDITIONAL_USER_DATA: try: except (Exception, KeyError) as e: raise ImproperlyConfigured("User/admin.py:: Multi Vendor is turned on.") admin...
31
80
0.712524
6f741a22f6b69a36890074cd2db8d9ec2d946c37
38,189
py
Python
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
from client import exception, embed_creator, console_interface, discord_manager, file_manager, ini_manager, json_manager, origin, permissions, server_timer from client.config import config as c, language as l from discord.ext import commands, tasks from client.external.hiscores import hiscores_xp from PIL import Image,...
52.601928
366
0.468224
6f75a1523bdd37ab1cd4cc70ef59345c182747bf
1,437
py
Python
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
from __future__ import annotations import os import collections BASE_PATH = os.path.dirname(__file__) INPUT_PATH = os.path.join(BASE_PATH, "input.txt") OUTPUT_PATH = os.path.join(BASE_PATH, "output.txt") if __name__ == "__main__": raise SystemExit(main())
26.127273
69
0.599165
6f75fde6361af1d1bfaca77b15e701086bf2e3b2
13,684
py
Python
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
290
2017-12-29T01:55:21.000Z
2022-03-28T10:00:32.000Z
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
3
2018-08-02T11:45:51.000Z
2020-09-24T14:34:58.000Z
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
76
2018-01-17T06:19:51.000Z
2021-11-10T06:18:20.000Z
"""Agents for neural net bandit problems. We implement three main types of agent: - epsilon-greedy (fixed epsilon, annealing epsilon) - dropout (arXiv:1506.02142) - ensemble sampling All code is specialized to the setting of 2-layer fully connected MLPs. """ import numpy as np import numpy.random as rd from ba...
33.621622
80
0.656168
6f762afe905140cf74ce1d262513f6770e5cf96a
1,314
py
Python
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
import io import os from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.staticfiles import finders from django.template.loader import render_to_string from django.utils.translation import to_locale
33.692308
79
0.542618
6f76bbd91ccc6729e6385bce7b0f809d9736e91f
37,910
py
Python
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
# Copyright 2019. Allen Institute. All rights reserved. import numpy as np import pandas as pd from collections import OrderedDict import math import warnings from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.neighbors import NearestNeighbors from sklearn.metrics import silhou...
39.163223
120
0.603324
6f76bcfc2a09b5cceb410578869827df3cb772bb
23,746
py
Python
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import copy from .pdp_calc_utils import _sample_data, _find_onehot_actual, _find_closest from sklearn.cluster import MiniBatchKMeans, KMeans def _pdp_plot_title(n_grids, feature_name, ax, multi_flag, whi...
40.730703
130
0.660111
6f76ec963af630c9f2623b7e32036a92ed42bb1c
8,778
py
Python
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-08-31T09:32:39.000Z
2020-08-31T09:32:39.000Z
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
13
2020-04-08T10:53:26.000Z
2022-03-30T09:51:29.000Z
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-04-12T13:10:51.000Z
2020-04-12T13:10:51.000Z
import os import pytest from kodexa import Document, Pipeline, PipelineContext, TagsToKeyValuePairExtractor, RollupTransformer
45.71875
224
0.691729
6f79392055980ee88fc9adbd173f470e11c846bf
158
py
Python
dftimewolf/lib/containers/__init__.py
fooris/dftimewolf
5df863dad1518e4c4109f0563efa7458df26f7d2
[ "Apache-2.0" ]
1
2021-01-21T19:53:37.000Z
2021-01-21T19:53:37.000Z
dftimewolf/lib/containers/__init__.py
joachimmetz/dftimewolf
9181bd9e860a467495ca4ab66e2c3873cbcbf529
[ "Apache-2.0" ]
null
null
null
dftimewolf/lib/containers/__init__.py
joachimmetz/dftimewolf
9181bd9e860a467495ca4ab66e2c3873cbcbf529
[ "Apache-2.0" ]
null
null
null
"""Make containers available here.""" from .report import Report from .threat_intelligence import ThreatIntelligence from .stackdriver import StackdriverLogs
31.6
51
0.835443
6f79949d19627c5156b74487a315345109a1b4e7
2,327
py
Python
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
1
2022-03-01T06:42:04.000Z
2022-03-01T06:42:04.000Z
#!/usr/bin/env python3 """Script for simulating IOT measurement stream to ModelConductor experiment.""" import pandas as pd import numpy as np import sqlalchemy as sqla from datetime import datetime as dt from time import sleep, time import logging import sys, os, asyncio from hbmqtt.client import MQTTClient, Connect...
33.724638
111
0.689729
6f7aa07e116a65a70f05b7ef70691b8f299b021f
694
py
Python
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
import sys import math L = [] f = open(sys.argv[1],"r") for item in f: L.append(item.strip()) ids = [] max_id = 0 for sequence in L: id = find_id(sequence) ids.append(id) if id > max_id: max_id = id ids.sort() old = 35 for id in ids: print(id) old = id
13.09434
35
0.597983
488a4b657eabc94e1d145860d1dd73207641241d
2,890
py
Python
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-03-26T23:46:01.000Z
2018-03-26T23:46:01.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
4
2018-03-24T15:41:12.000Z
2018-04-08T23:49:35.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-04-03T23:49:37.000Z
2018-04-03T23:49:37.000Z
# -*- coding: utf-8 -*- """ Injector. A partir de um arquivo binario, de uma tabela binaria gerada com o Finder, e um arquivo de substituio, o Injector capaz de injetar um texto no binario trocando o texto in-game O Injector faz automaticamente a adequao do tamanho do texto ao tamanho da caixa, truncando se...
29.489796
96
0.565052
488aa98c813700f0bcd537993c300646573e9ada
10,556
py
Python
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-15T02:37:59.000Z
2020-09-21T04:34:38.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import *
45.304721
98
0.670519
488b91ca767e9611a3e2258e676d32094fa0687f
4,023
py
Python
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
import numpy as np import argparse import os.path import plots as plot from sklearn.preprocessing import StandardScaler from sklearn.grid_search import GridSearchCV import time from sklearn import svm from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score from sklearn.externals imp...
35.60177
94
0.675864
488d15bc02d47b9fb1ebe771ea194aa64ab3caea
3,545
py
Python
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
4
2019-10-23T06:58:31.000Z
2021-11-01T17:08:34.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2021-06-02T00:35:23.000Z
2021-06-02T00:35:23.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2019-10-23T06:58:45.000Z
2019-10-23T06:58:45.000Z
import abc import json import logging import socket import sys import time import aio_logstash import traceback from aio_logstash import constants from datetime import datetime, date class V1Formatter(BaseFormatter):
29.297521
97
0.618336
488df2d8a33bbefd7d27eb53f611e19d0eba095d
18,352
py
Python
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/events/cursesmon.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
# -*- coding: utf-8 -*- """Graphical monitor of Celery events using curses.""" from __future__ import absolute_import, print_function, unicode_literals import curses import sys import threading from datetime import datetime from itertools import count from textwrap import wrap from time import time from math import c...
33.797422
78
0.520325
488ea1167c4ff5c98e7760397218e331d094d166
1,705
py
Python
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
19
2016-10-06T18:10:36.000Z
2018-04-04T02:30:09.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
BeaconLabs/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
2
2017-10-26T19:22:58.000Z
2017-11-16T07:44:58.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
9
2016-11-15T14:13:20.000Z
2021-12-19T20:27:58.000Z
"""A feature extractor for patients' utilization.""" from __future__ import absolute_import import logging import pandas as pd from sutter.lib import postgres from sutter.lib.feature_extractor import FeatureExtractor log = logging.getLogger('feature_extraction')
34.1
95
0.626979
4893210d0b7c805a88b25dd46688e23dd6ed78a0
6,517
py
Python
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
120
2021-08-16T13:55:47.000Z
2022-03-31T10:31:42.000Z
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
10
2021-10-19T07:19:23.000Z
2022-03-24T18:43:02.000Z
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
24
2021-08-28T17:21:09.000Z
2022-03-31T10:31:44.000Z
"""Perform normalization on inputs or rewards. """ import numpy as np import torch from gym.spaces import Box def normalize_angle(x): """Wraps input angle to [-pi, pi]. """ return ((x + np.pi) % (2 * np.pi)) - np.pi
27.041494
98
0.584778
48935c63c2620e531593d07e9af2473ca805cfae
5,125
py
Python
networking/pycat.py
itsbriany/PythonSec
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
1
2016-01-12T19:38:59.000Z
2016-01-12T19:38:59.000Z
networking/pycat.py
itsbriany/Security-Tools
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
null
null
null
networking/pycat.py
itsbriany/Security-Tools
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import threading import sys # Support command line args import getopt # Support command line option parsing import os # Kill the application import signal # Catch an interrupt import time # Thread sleeping # Global variables definitions target = "" port = False listen = Fal...
23.617512
121
0.607415
48938090ba940fdf1245ccfb1e1b41da0dfdb8ec
4,356
py
Python
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
1
2020-09-23T22:16:10.000Z
2020-09-23T22:16:10.000Z
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
null
null
null
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
null
null
null
import nest import pylab as pl import pickle from nest import voltage_trace from nest import raster_plot as rplt import numpy as np from params import * seed = [np.random.randint(0, 9999999)] * num_threads calcFI() # checkConninMV()
32.75188
97
0.597107
4893c3ed4760195e110268be8d490ec224a54ecd
1,434
py
Python
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
690
2020-07-31T15:37:59.000Z
2022-03-31T20:51:46.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
90
2020-07-25T11:00:15.000Z
2022-03-31T01:59:59.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
68
2020-07-21T23:21:29.000Z
2022-03-30T16:12:01.000Z
import os from fastf1.core import Session, Weekend from fastf1.livetiming.data import LiveTimingData
34.142857
87
0.679219
48946b441f56097b2a5a11c0168a86635a484d94
1,768
py
Python
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
4
2021-12-13T09:16:07.000Z
2022-01-06T15:45:02.000Z
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 21 20:09:08 2021 ###################### ##### read h5 ######## ###################### # 1.read h5-file h5_file = h5py.File(files[1],'r') # 2.show all keys in h5-file h5_file.keys() # 3. keys in h5-file for key in h5_file.keys(): onekey = key ...
19.644444
84
0.581448
48946d309358ecb51872d9f0d80dff7d64dcb48a
872
py
Python
setup.py
MrJakeSir/theming
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
3
2021-10-02T02:23:50.000Z
2021-10-02T16:03:33.000Z
setup.py
MrJakeSir/themify
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
null
null
null
setup.py
MrJakeSir/themify
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'colormate', packages = ['colormate'], version = '0.2214', license='MIT', description = 'A package to theme terminal scripts with custom colors and text formatting', author = 'Rodrigo', author_email = 'roarba011@gmail.com', url = 'https://github.com/mrjakes...
36.333333
93
0.661697
4894cec7ad1d16f91926da91173205b79ee1b463
1,620
py
Python
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
37
2019-08-28T08:16:48.000Z
2022-03-14T21:18:39.000Z
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
1
2019-09-02T23:13:29.000Z
2019-09-08T01:43:10.000Z
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
3
2019-08-28T12:23:11.000Z
2020-02-08T19:22:31.000Z
import data_algebra import data_algebra.test_util from data_algebra.data_ops import * # https://github.com/WinVector/data_algebra import data_algebra.util import data_algebra.SQLite
28.421053
80
0.56358
4895a29e1cbfd7f3cbc0290d21c2ee285348e317
385
py
Python
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
null
null
null
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
7
2021-03-19T01:09:50.000Z
2022-03-12T00:20:49.000Z
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Student # Register your models here. admin.site.register(Student,StudentAdmin)
27.5
56
0.696104
4896bd7de479f88113218577909931ad2456610b
18,819
py
Python
lshmm/viterbi/vit_diploid_variants_samples.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
null
null
null
lshmm/viterbi/vit_diploid_variants_samples.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
9
2022-02-24T14:20:09.000Z
2022-03-01T17:54:47.000Z
lshmm/vit_diploid_variants_samples.py
astheeggeggs/ls_hmm
11af1eb886ef3db2869cdd50954fba5565fcef51
[ "MIT" ]
1
2022-02-28T17:07:36.000Z
2022-02-28T17:07:36.000Z
"""Collection of functions to run Viterbi algorithms on dipoid genotype data, where the data is structured as variants x samples.""" import numba as nb import numpy as np # https://github.com/numba/numba/issues/1269 # def forwards_viterbi_dip_naive(n, m, G, s, e, r): # # Initialise # V = np.zeros((m, n,...
33.307965
132
0.435145
4896e1b1c5caef0d1e5aee9a140b1ba801b67e72
6,704
py
Python
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
from alembic_utils.pg_function import PGFunction from alembic_utils.replaceable_entity import register_entities from alembic_utils.testbase import TEST_VERSIONS_ROOT, run_alembic_command TO_UPPER = PGFunction( schema="public", signature="toUpper(some_text text default 'my text!')", definition=""" r...
34.735751
100
0.702118
48976b6d6b5db52348271fa437cb2c3858865703
1,723
py
Python
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
import numpy as np np.random.seed(0) if __name__ == "__main__": main()
31.327273
77
0.585607
4897778aee005c5aa1bda6eba1bb9679879bf2ca
549
py
Python
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
null
null
null
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
1
2020-08-11T22:00:51.000Z
2020-08-11T23:55:48.000Z
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
1
2020-08-10T15:50:21.000Z
2020-08-10T15:50:21.000Z
from setuptools import setup, find_packages setup( name='passgen-py', packages=find_packages(), version='1.1', description='Generate Passwords Deterministically based on a Master Password.', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', ...
26.142857
83
0.599271
489780fa9ccacfe9a097c426e6e4d2cf96e01913
163
py
Python
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
# https://codegolf.stackexchange.com/a/11480 multiplication = [] for i in range(10): multiplication.append(i * (i + 1)) for x in multiplication: print(x)
20.375
44
0.680982
4898793ace916333da3e62990ff5fb14ce91eb0e
4,762
py
Python
bin/mkSampleInfo.py
icbi-lab/nextNEOpi
d9f6ccf5178e7ef1742b95e740ce3f39405f21dd
[ "BSD-3-Clause-Clear" ]
24
2021-06-16T07:20:43.000Z
2022-03-23T05:40:01.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
2
2021-12-09T16:43:45.000Z
2022-02-18T14:03:36.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
5
2021-08-25T06:54:47.000Z
2022-03-03T06:11:31.000Z
#!/usr/bin/env python """ Requirements: * Python >= 3.7 * Pysam Copyright (c) 2021 Dietmar Rieder <dietmar.rieder@i-med.ac.at> MIT License <http://opensource.org/licenses/MIT> """ RELEASE = False __version_info__ = ( "0", "1", ) __version__ = ".".join(__version_info__) __version__ += "-dev" if not ...
26.309392
77
0.545569
489a6ae22cd0b248814c3b6aa65494aabadf9db8
3,115
py
Python
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import colorama from pick_db_file import pick_db_file import db_connection import card_repository from review_cards import review_cards from new_card import new_card from new_cards import new_cards import review from user_colors import print_info, print_instruction, print_error from usa...
40.454545
97
0.65618
489b07c5f60a2349d39829b932ee2b381db5353d
14,996
py
Python
perceiver/train/dataset.py
kawa-work/deepmind-research
8fb75643598f680fdde8d20342b1b82bd2c0abb2
[ "Apache-2.0" ]
10,110
2019-08-27T20:05:30.000Z
2022-03-31T16:31:56.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
317
2019-11-09T10:19:10.000Z
2022-03-31T00:05:19.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
2,170
2019-08-28T12:53:36.000Z
2022-03-31T13:15:11.000Z
# Copyright 2021 DeepMind Technologies Limited # # 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 agr...
35.367925
80
0.684449
489b33857f5199eb9d0dc568f0aa601495f6f304
12,621
py
Python
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import factorial from pyapprox.indexing import hash_array from pyapprox.indexing import compute_hyperbolic_level_indices def multiply_multivariate_polynomials(indices1,coeffs1,indices2,coeffs2): """ TODO: instead of using dictionary to colect terms consider using uniqu...
32.44473
120
0.659853
489cc2435903d89dac82418e6c3f47ec952a38f4
12,303
py
Python
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # mcan-vqa (Deep Modular Co-Attention Networks) # Licensed under The MIT License [see LICENSE for details] # Written by Yuhao Cui https://github.com/cuiyuhao1996 # -------------------------------------------------------- import h5py import pickle import random ...
42.71875
142
0.600992
489dcb5eb95e27bdfa01e5e5808a8eedc54c5b9e
140
py
Python
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
from .database import Db from .initiatives import InitiativeBase, Platform, ImportBatch, InitiativeImport, BatchImportState, InitiativeGroup
70
115
0.864286
489e4aad3b2feb84feec86ee49098494b4522381
3,987
py
Python
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-06-12T17:31:10.000Z
2019-06-12T17:31:10.000Z
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
null
null
null
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-01-16T06:51:50.000Z
2019-01-16T06:51:50.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Widget that handles communications between a console in debugging mode and Spyder """ import ast from qtpy.QtCore import Qt from qtconsole.rich_jupyter_widget i...
36.577982
80
0.600953
489e5789fc9bdd522af9556ca44141058ccb8f59
27
py
Python
python/testData/completion/relativeImport/pkg/main.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/relativeImport/pkg/main.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/relativeImport/pkg/main.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from .string import <caret>
27
27
0.777778
48a016a1659ce678fbb42661714443c79c8a4486
9,848
py
Python
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
1
2021-11-28T09:29:33.000Z
2021-11-28T09:29:33.000Z
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import sklearn.metrics from dataset_chunking_fxns import subsample_df_by_groups import sklearn import sklearn.linear_model from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler import time...
39.870445
109
0.491166
48a147ad6df1458c845aa4fd687c23becb0926e9
6,206
py
Python
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
""" PSET-7 Part 2: Triggers (PhraseTriggers) At this point, you have no way of writing a trigger that matches on "New York City" -- the only triggers you know how to write would be a trigger that would fire on "New" AND "York" AND "City" -- which also fires on the phrase "New students at York University love the c...
41.099338
150
0.549468
48a22194d70cb5daa8b009c12fc1c26cc1c8d905
1,522
py
Python
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
1
2017-03-02T19:32:31.000Z
2017-03-02T19:32:31.000Z
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
null
null
null
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
2
2018-03-14T16:56:53.000Z
2018-03-14T17:20:07.000Z
# -*- coding: utf-8 -*- from unittest import TestCase from mock import Mock, patch from vault.tests.fakes import fake_request from vault.views import SetProjectView from django.utils.translation import ugettext as _
33.086957
78
0.704336
48a2c6f00acb55753f06b34ad48a128100334441
2,364
py
Python
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
4
2020-04-08T03:42:02.000Z
2020-10-01T20:34:48.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
93
2020-03-26T14:29:14.000Z
2020-11-12T05:54:55.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
23
2020-03-24T10:28:44.000Z
2020-09-24T09:42:19.000Z
from tasks.cephfs.cephfs_test_case import CephFSTestCase import random import os
35.283582
76
0.571489
48a598d9751db785f23d9a8e28422d557cff93bc
966
py
Python
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) control_pins = [7,11,13,15] for pin in control_pins: GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, 0) halfstep_seq = [ [1,0,0,0], [1,1,0,0], [0,1,0,0], [0,1,1,0], [0,0,1,0], [0,0,1,1], [0,0,0,1], [1,0,0,1] ] # speed from 0 to 1 (one bei...
18.576923
67
0.635611
48a7ec0bb39b709f9863a091b7d85367791f1dab
2,924
py
Python
Experimental/OpenCVExp.py
awesomesauce12/6DBytes-CV
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
1
2016-06-24T23:09:43.000Z
2016-06-24T23:09:43.000Z
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os import math os.system("fswebcam -r 507x456 --no-banner image11.jpg") img = cv2.imread('image11.jpg',-1) height, width, channel = img.shape topy= height topx = width hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) lower_color = np.array([0,255,255]) upper_color = np.array([0,255,255...
21.5
94
0.651505
48a84cb7d32acc3cbc3af963ca0e81cc7ff163d9
424
py
Python
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include from django.http import HttpResponseRedirect from django.urls import re_path from Poem.poem_super_admin.admin import mysuperadmin urlpatterns = [ re_path(r'^$', lambda x: HttpResponseRedirect('/poem/superadmin/')), re_path(r'^superadmin/', mysuperadmin.urls), re_path(r...
32.615385
72
0.688679
48a8ac917e1b840d71d262dd221cf4cb43769865
902
py
Python
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
import json from optimism.JaxConfig import * from optimism import Mesh
31.103448
74
0.643016
48a9df7987bdd5e6e1faa8cd6a7c8279d997c6ae
1,058
py
Python
networkx/algorithms/approximation/ramsey.py
rakschahsa/networkx
6cac55b1064c3c346665f9281680fa3b66442ad0
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# -*- coding: utf-8 -*- """ Ramsey numbers. """ # Copyright (C) 2011 by # Nicholas Mancuso <nick.mancuso@gmail.com> # All rights reserved. # BSD license. import networkx as nx from ...utils import arbitrary_element __all__ = ["ramsey_R2"] __author__ = """Nicholas Mancuso (nick.mancuso@gmail.com)""" def ramse...
24.604651
70
0.63138
48acd263a6439030b9241f1881827f94f5753592
677
py
Python
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
1
2021-11-10T15:24:36.000Z
2021-11-10T15:24:36.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
12
2020-01-15T00:19:41.000Z
2021-05-11T14:52:04.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
2
2015-01-31T11:51:06.000Z
2015-01-31T21:29:19.000Z
"""Linux-specific code""" from pysyte.types import paths def xdg_home(): """path to $XDG_CONFIG_HOME >>> assert xdg_home() == paths.path('~/.config').expand() """ return paths.environ_path("XDG_CONFIG_HOME", "~/.config") def xdg_home_config(filename): """path to that file in $XDG_CONFIG_HOME ...
19.911765
79
0.660266
48ae6c1d7db7737a61286051c58656fa1c61b3ae
387
py
Python
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
2
2020-07-30T14:07:19.000Z
2020-08-01T05:28:29.000Z
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
null
null
null
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
null
null
null
import mpv import keyboard import time p = mpv.MPV() p.play("song_name.mp4") keyboard.add_hotkey("e", play_pause) keyboard.add_hotkey("2", full) keyboard.add_hotkey("1", go_to_start) while 1: time.sleep(40)
12.09375
38
0.620155
48b02d948060f886a636e1dc8c11abff122b4be1
91,989
py
Python
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2011 OpenStack, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
45.270177
94
0.582309
48b05f987fe0e54d587244c5320a33f91ef59a44
10,824
py
Python
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
import os import pytest from robocorp_ls_core.protocols import IConfigProvider from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.unittest_tools.cases_fixture import CasesFixture from robocorp_code.protocols import IRcc, ActionResult import sys from typing import Any from pathlib import ...
30.490141
324
0.610957
48b0b31dabd46b83a7d8a1c53e2be4a3ab952b42
2,182
py
Python
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:45.000Z
2019-10-10T06:14:45.000Z
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:48.000Z
2019-10-10T06:14:48.000Z
# Copyright 2018 The TensorFlow 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 applica...
35.770492
80
0.706691
48b322c1b5c9322a3e7a06f6f8cf4904f59abc42
1,373
py
Python
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
1
2019-08-04T22:44:54.000Z
2019-08-04T22:44:54.000Z
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
import os import re import string import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from GEN_Utils import FileHandling from loguru import logger logger.info("Import OK") # Set sample-specific variables input_path = 'examples/python/gauss_models/' output_path = 'examples/py...
27.46
73
0.718135
48b3cc7ab2adb8652b3ac164a64a50173d354d2a
4,759
py
Python
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
10
2020-01-05T19:33:33.000Z
2022-02-04T14:56:09.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
1
2019-12-18T15:16:44.000Z
2019-12-18T15:16:44.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
6
2019-12-18T14:45:37.000Z
2021-09-13T12:48:28.000Z
# -------------------------------------------------------------------------------------------------- # Copyright (c) 2018 Microsoft Corporation # # 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 Softw...
36.328244
100
0.65497
48b5904c4c46f166269a35d1d5aae2ecfb57bef7
765
py
Python
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
1
2020-06-07T17:56:13.000Z
2020-06-07T17:56:13.000Z
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
# Standard imports import sys # Project imports from icecreamscrape.cli import cli from icecreamscrape.webdriver import driver_factory from icecreamscrape import composites as comps from icecreamscrape.composites import create_timestamped_dir def main(args=sys.argv[1:]): """ Main function. :param: args is used for ...
24.677419
60
0.75817
48b8c62b25b3330d58b5291c6fc3a3f2df2e485f
5,051
py
Python
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# pylint: skip-file # type: ignore # -*- coding: utf-8 -*- # # tests.controllers.mission.mission_unit_test.py is part of The # RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Test class for testing Mission module algorithms ...
33.673333
88
0.713324
48b9335e8465f09c7a066bfa90b273be5d354b55
569
py
Python
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
5
2019-07-26T17:03:26.000Z
2020-10-17T23:23:43.000Z
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
9
2018-01-14T15:20:23.000Z
2021-03-08T20:29:51.000Z
src/streamlink/packages/flashmedia/flv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
4
2018-01-14T13:27:25.000Z
2021-11-15T22:28:30.000Z
#!/usr/bin/env python from .error import FLVError from .compat import is_py2 from .tag import Header, Tag __all__ = ["FLV"]
18.966667
62
0.606327
48b9e626c31a3acad3ffc788ac2313af13310a0d
120
py
Python
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
24
2018-05-25T15:23:30.000Z
2021-06-09T10:56:52.000Z
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
14
2019-04-30T10:51:01.000Z
2020-09-16T20:37:30.000Z
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
9
2019-06-12T10:54:18.000Z
2022-01-15T21:19:05.000Z
from pheasant.renderers.jupyter.jupyter import Jupyter jupyter = Jupyter() jupyter.findall("{{3}}3{{5}}") jupyter.page
20
54
0.75
48ba4f165b3430e0ef9885d29722f28bf1be64bd
687
py
Python
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from http.server import HTTPServer, BaseHTTPRequestHandler num_requests = 0 if __name__ == "__main__": http_service = HTTPServer(("0.0.0.0", 8000), Handler) print(f"Starting http service on 0.0.0.0:8000") http_service.serve_forever()
27.48
75
0.678311
48bb529c5d5a0817b3c6e3353e857c62a73b8a16
91
py
Python
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
from app.app import create_app from config import BaseConfig app = create_app(BaseConfig)
18.2
30
0.824176
48bb6abe88059d9888226636da8508d01f476cba
3,896
py
Python
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
1
2021-06-20T16:58:21.000Z
2021-06-20T16:58:21.000Z
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
null
null
null
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
2
2019-11-26T12:18:18.000Z
2022-03-28T19:22:55.000Z
""" Create data for simulations (c) 2019 - EggdraSyl """ import json # from mockup import Blockchain, Block from minersimulator import MinerSimulator from math import sin, pi SPECIAL_MIN_TIME = 5 * 60 if __name__ == "__main__": init_stable( 0, 1000, block_time=3600, target...
30.4375
91
0.641427
48bb8a2d0cac5d726a9c18529c0114315a34c2c3
13,473
py
Python
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
# This file is part of Pynguin. # # Pynguin is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Pynguin is distributed in the ho...
34.724227
88
0.720255
48bbe200dfeacc3fe42e8fdff56e3de41ac32c2b
725
py
Python
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
1
2022-03-30T15:06:18.000Z
2022-03-30T15:06:18.000Z
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
from pathlib import Path from src import constants from src.data.download.utils.download_dataset_zip import download_dataset_zip def download_tencent_test( tmp_dir: Path = None, tqdm_name: str = None, tqdm_idx: int = None, ): """Download the test set of the Tencent Corpus and extract it to the ap...
25.892857
77
0.714483
48bc446a06d58d6a75df610f9236257a1d789475
9,669
py
Python
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import tensorflow as tf from ..fastspeech.model import ( TFFastSpeechEncoder, TFTacotronPostnet, TFFastSpeechLayer, ) from ..speechsplit.model import InterpLnr import numpy as np import copy
34.532143
79
0.617541