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
863b8cb7916efe3b96226a5e47386ab45aa3a5f0
9,162
py
Python
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Script to execute example covarying MMGP regression forecasting model with full Krhh. Inputs: Data training and test sets (dictionary pickle) Data for example: - normalised solar data for 25 sites for 15 minute forecast - N_train = 4200, N_test = 2276, P = 25, D = 51 - Xtr[:, :5...
39.662338
135
0.685986
863bc130193c72b67b65cca8c77628d45f1d2148
11,072
py
Python
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
null
null
null
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
null
null
null
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
1
2019-12-02T01:00:18.000Z
2019-12-02T01:00:18.000Z
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2018 Bitcraze AB # # Th...
29.525333
74
0.587157
863c0ed7e6b8dca169d56f2c58a602b033d4bb29
6,232
py
Python
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
152
2019-10-07T03:15:53.000Z
2022-03-24T16:26:26.000Z
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
46
2019-11-04T09:51:51.000Z
2022-03-06T18:40:13.000Z
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
28
2019-11-04T02:02:23.000Z
2021-12-29T06:10:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Florian Boudin # Date: 10-02-2018 """ExpandRank keyphrase extraction model. Graph-based ranking approach to keyphrase extraction described in: * Xiaojun Wan and Jianguo Xiao. Single Document Keyphrase Extraction Using Neighborhood Knowledge. *In proceedings...
37.542169
80
0.574294
863da6290f58b36a91968cc8314fc22813d11b6c
210
py
Python
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-03-26T18:35:50.000Z
2022-03-20T14:49:54.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
1
2021-11-23T01:20:13.000Z
2021-11-23T01:20:13.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-04-15T12:30:14.000Z
2022-03-26T20:47:35.000Z
#!/usr/bin/env python3 from aws_cdk import core from fagate_serverless.fagate_serverless_stack import FagateServerlessStack app = core.App() FagateServerlessStack(app, "serverless-xray-stack") app.synth()
17.5
75
0.804762
863daa6816d11bde4f87896d1cc47d06ece1f0db
5,066
py
Python
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
17,143
2015-07-14T17:19:05.000Z
2022-03-31T10:03:39.000Z
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
1,630
2015-11-17T22:15:41.000Z
2022-03-31T09:15:07.000Z
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
1,970
2015-07-12T07:05:14.000Z
2022-03-30T19:58:09.000Z
import json import inspect import hashlib from _plotly_utils.utils import PlotlyJSONEncoder from dash.long_callback.managers import BaseLongCallbackManager
34.937931
102
0.651402
863dcb2e53c2cd1e93015fc8efa9a5e953801c7f
2,027
py
Python
libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
10
2019-05-11T18:07:14.000Z
2021-08-20T03:02:47.000Z
libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py
Fortune-Adekogbe/botbuilder-python
4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4
[ "MIT" ]
13
2020-09-05T11:06:05.000Z
2020-10-29T05:01:19.000Z
botframework_connector-4.11.0/botframework/connector/token_api/_token_api_client.py
opsdroid/wheels-for-teams-connector
c283bb5ab95a4c3d4023767d53d2686aa531f372
[ "Apache-2.0" ]
18
2019-08-19T12:11:00.000Z
2021-10-12T09:36:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.196429
82
0.683769
863df256ad1c4ecc4568ea47ce82f56d31bf2e46
69
py
Python
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
# content of test_sample.py
17.25
27
0.623188
863e8a2ed0006f7150de09f27d406b39ae986ad3
827
py
Python
saleor/order/migrations/0081_auto_20200406_0456.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/order/migrations/0081_auto_20200406_0456.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/order/migrations/0081_auto_20200406_0456.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.0.4 on 2020-04-06 09:56 from django.db import migrations from saleor.order import OrderStatus
25.060606
63
0.665054
863f656903c4148e82b3b4fd5343ee724e111ab6
3,469
py
Python
function/python/brightics/function/textanalytics/regex.py
jhpark428/studio
539457b3026dda827c1b17b4cb851946e34e3b85
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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 ...
40.811765
120
0.643701
863fffaabccfedecd9149dc35acae6b9542aa04c
8,500
py
Python
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
null
null
null
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
2
2019-12-15T19:58:26.000Z
2019-12-17T05:33:32.000Z
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
1
2022-03-04T01:36:38.000Z
2022-03-04T01:36:38.000Z
#!/usr/bin/env python3 import sys import os import logging import numpy as np import pandas as pd import dateutil # Function which computes BM (single sine method) degree day generation from temperature data def compute_year_over_year_norm(in_dataframe, start, end, ...
41.062802
132
0.598
864003328f8b49eae739c102dea7da6313ecab13
2,584
py
Python
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# import Kratos import KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.CSharpWrapperApplication as CSharpWrapperApplication import run_cpp_unit_tests # Import Kratos "wrapper" for unittests import KratosMultiphysics.KratosUnittest ...
29.363636
90
0.71904
8640b1d90a7dd7eb0d598131b239f974e433d2eb
1,121
py
Python
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, ForeignKey, Float from sqlalchemy.orm import relationship from .database import Base
29.5
70
0.716325
86421594cd7a65136f722a4e9889059ae90e1d77
2,145
py
Python
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
from flask import Flask, flash, render_template, redirect, url_for from flask.ext.pymongo import PyMongo from flask import request app=Flask(__name__) app.config['MONGO_DBNAME']='stud' app.config['MONGO_URI']='mongodb://localhost:27017/stud' mongo=PyMongo(app) """ @app.route('/add') def add(): user=mongo.db.users ...
35.75
213
0.620513
86448f12322f6a8ff13f239dbc2163cdebce1c56
12,198
py
Python
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import datetime from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework.test import APIClient, APIRequestFactory from resources.enums import UnitAuthorizationLevel from resources.models import Resource, ResourceType, Unit, Pu...
29.606796
119
0.702492
86468125b6e8c3a2e71c1dfdfd2e29f1c5b2af19
586
py
Python
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
#!/bin/python3 with open('../camera/QCamera2/stack/common/cam_intf.h', 'r') as f: data = f.read() f.closed start = data.find(' INCLUDE(CAM_INTF_META_HISTOGRAM') end = data.find('} metadata_data_t;') data = data[start:end] metadata = data.split("\n") metalist = list() for line in metadata: if (line.starts...
23.44
66
0.593857
8647521d4f7b0429f689d687206113be1ffbd603
317
py
Python
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
A, B = map(int, input().split()) print(f(A, B))
16.684211
59
0.381703
86479efec94998d8ac597979216e69bc35252174
807
py
Python
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
import logging from logging.handlers import TimedRotatingFileHandler ''' logger = MyLog("test","log\\text.txt") logger.logger.debug('debug message') logger.logger.info('info message') logger.logger.warning('warn message') logger.logger.error('error message') logger.logger.critical('critical message') '''
31.038462
97
0.675341
8647faa20530aa0d730c1a40c079c5454d72f20d
1,252
py
Python
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
3
2019-10-29T23:31:01.000Z
2020-03-31T03:08:28.000Z
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
# urls.py from django.urls import path, register_converter from fiesta import converters from fiesta.views import views from rest_framework.urlpatterns import format_suffix_patterns # "http://django-sdmx.org/wsrest/" # "http://django-sdmx.org/ws/" register_converter(converters.ResourceConverter, 'res') register_con...
40.387097
125
0.742812
8648090bbe37bd69072d860284239d2be5f5a913
469
py
Python
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
# Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
31.266667
123
0.603412
864a44b2fa4b1d6dbb15ace15ef151c81922788f
928
py
Python
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
1
2020-06-12T20:49:47.000Z
2020-06-12T20:49:47.000Z
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
null
null
null
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
null
null
null
from enum import Enum from window import Window D = Enum ('Directions','N NE E SE S SW W NW') selector_map = { D.NW: [0.5,0.5], D.N: [1.5,0], D.NE: [2.5,0.5], D.W: [0,1.5], D.E: [3,1.5], D.SW: [0.5,2.5], D.S: [1.5,3], D.SE: [2.5,2.5], } selector_size = 100 window_si...
29
82
0.626078
864a6447cb894e438d5dd8c26760c86abeb04746
760
py
Python
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
null
null
null
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
9
2020-04-24T01:29:38.000Z
2022-03-12T00:25:50.000Z
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.validators import UniqueValidator from cride.circles.models import Circle
36.190476
113
0.777632
864a8f3a33d90a7cbe60473e931b29c2b862bbbb
13,719
py
Python
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template import loader from django.http import HttpResponse from django.shortcuts import render, redirect from .models import Patient from django.contrib import messages import pandas as pd from django.contrib.auth.decorators import login_required from web3 import...
56.45679
1,732
0.648954
864be7bfbe0cf81e1b82f46620ffbb10dcc091db
108
py
Python
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
22
2015-05-10T10:32:47.000Z
2021-08-21T17:29:09.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
2
2016-05-06T20:09:17.000Z
2020-01-23T02:29:18.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
4
2016-04-17T23:38:11.000Z
2019-03-06T02:28:48.000Z
import _dictdraw, sys d = {} surface = _dictdraw.draw_dictionary(d, [4]) surface.write_to_png(sys.argv[1])
18
43
0.731481
864bf69490c6ee45920463f0c6f8b0b6dbff18dc
4,624
py
Python
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2020-10-13T16:04:08.000Z
2020-10-13T16:04:08.000Z
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
null
null
null
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2021-04-17T04:42:29.000Z
2021-04-17T04:42:29.000Z
# coding=utf-8 #!/usr/bin/env python3 from libs.check_modules import check_modules from sys import exit from os import _exit check_modules() from os import path from libs.logo import print_logo from libs.utils import print_success from libs.utils import print_error from libs.utils import ask_question ...
30.421053
96
0.599048
864c964912d3ec24af5b6c8c081c0833e7bd9b90
9,845
py
Python
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
40.514403
80
0.685729
864d054eec7d0aab41c1311c42de1bf952355469
33,765
py
Python
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ NumPy Array Editor Dialog based on Qt """ # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Standa...
39.817217
84
0.53206
864d134a9c98ae3913986fb31b160d825e4250a2
4,638
py
Python
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
6
2020-06-23T16:28:27.000Z
2020-10-05T17:52:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-26T15:34:06.000Z
2021-12-10T08:51:58.000Z
import datetime import unittest import pytest from elasticsearch import NotFoundError
39.305085
99
0.618586
864d2029d6faf1f316dacf9ce08c2da5fefb2cbf
9,735
py
Python
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
'''*******AUTO-GENERATED TOPOLOGY*********''' from __future__ import print_function from builtins import range from builtins import object from tcutils.util import get_random_name,get_random_cidr if __name__ == '__main__': print("Currently topology limited to one domain/project..") print("Based on need, can b...
120.185185
754
0.638007
864d964c990a587e44dea52d446ea4e2f4b1a45e
6,340
py
Python
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
null
null
null
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
""" Defines the PolygonPlot class. """ from __future__ import with_statement # Major library imports import numpy as np # Enthought library imports. from enable.api import LineStyle, black_color_trait, \ transparent_color_trait from kiva.agg import points_in_polygon from traits.api ...
36.647399
82
0.603312
86502380f0447c4c5893fb4c09f732239b1cc11f
552
py
Python
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) API_DATA_URL = "https://invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.InstrumentsService/" API_LASTPRICES_URL = "https://invest-public-api.tinkoff.ru/rest/\ tinkoff.public.invest.api.contract.v1.Mar...
29.052632
116
0.778986
8650d9e6c008eb69e8a60ee61bf0c6b0618f2c83
3,842
py
Python
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
""" HUMAnN2: quantify_families module Compute alignments by gene family Copyright (c) 2014 Harvard School of Public Health 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, inc...
40.442105
116
0.728267
865144cd196eb39a73555fc643c117d083a615cc
744
py
Python
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
23
2020-01-15T15:02:39.000Z
2020-01-15T17:23:03.000Z
import threading from multiprocessing import Queue results = [] results2 = [] q = Queue() t2 = threading.Thread(target=add_num, args=(q, )) t1 = threading.Thread(target=take_numbers, args=(q, )) t2.start() t1.start() t2.join() t1.join() q.close() for result in results: print ("adunare =", result) for resul...
20.666667
54
0.606183
86517e62e82db5794921e6da0e41993351344585
576
py
Python
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' m x n Start Finish 7 x 3 1: : m = 3, n = 2 : 3 : 3 1. -> -> 2. -> -> 3. -> -> 2: : m = 7, n = 3 : 28 LeetCode https://leetcode-cn.com/problems/unique-paths '''
15.567568
49
0.552083
86524c143ea8ba1817f21135f1c0c27360fa74e8
3,361
py
Python
spektral/datasets/qm9.py
JonaBecher/spektral
ff59e16d959e0ec698428997363be20462625699
[ "MIT" ]
2,145
2019-01-21T20:49:44.000Z
2022-03-28T20:27:27.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
259
2019-01-22T05:18:19.000Z
2022-03-25T10:46:10.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
322
2019-02-11T16:18:27.000Z
2022-03-24T16:26:59.000Z
import os import os.path as osp import numpy as np from joblib import Parallel, delayed from tensorflow.keras.utils import get_file from tqdm import tqdm from spektral.data import Dataset, Graph from spektral.utils import label_to_one_hot, sparse from spektral.utils.io import load_csv, load_sdf ATOM_TYPES = [1, 6, 7...
29.482456
80
0.621839
865416b109055549efa6918ca6073abc6d07a490
602
py
Python
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
1
2019-02-07T04:04:05.000Z
2019-02-07T04:04:05.000Z
from adafruit_circuitplayground.express import cpx # Main loop gets x, y and z axis acceleration, prints the values, and turns on # red, green and blue, at levels related to the x, y and z values. while True: if cpx.switch: print("Slide switch off!") cpx.pixels.fill((0, 0, 0)) continue ...
25.083333
78
0.503322
86543345af40c82152fa05b0f713964bb091299c
7,692
py
Python
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
18
2019-01-08T02:53:56.000Z
2022-03-03T11:34:20.000Z
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
null
null
null
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
7
2018-06-13T20:12:25.000Z
2022-02-20T08:39:07.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches as patches def get_low_freq_data(data): """ Return a data matrix with 0.1s per time step data. (from 0.01s data) """ matrix = np.zeros((1, data.shape[1])) for i in range(data.shape[0]): if i % 10 ...
29.136364
89
0.623375
86545fd84ae7762d72208edf0f23289ff9f754a1
4,660
py
Python
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
import balancesheet.mongoData.equities_data_service as dsvce from userInteraction.financeCliInteraction import FinanceCliInteraction import ledgerkeeper.mongoData.account_data_service as dsvca from balancesheet.enums import EquityClass, AssetType, LiabiltyType, EquityTimeHorizon, EquityStatus, EquityContingency import ...
43.551402
119
0.65279
8654bfcdcac1a02c8bb6c10945f68a8c090f869f
27,781
py
Python
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-DOT11-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DOT11-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:55:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
156.073034
2,406
0.791908
865535238f10c51c669114bcf29b3699dd34b1e8
559
py
Python
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
null
null
null
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
null
null
null
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
1
2018-03-04T20:24:14.000Z
2018-03-04T20:24:14.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings") # django WSGI application from django.core.wsgi import get_wsgi_application application = get_wsgi_application() # load SnapSearch API credentials api_email = "<email>" api_key = "<key>" # initialize the interceptor from SnapSearch im...
27.95
71
0.815742
8655870bbe029c575ef810e01964410eb82d6a13
10,603
py
Python
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
27
2015-02-11T13:56:46.000Z
2021-12-28T14:17:20.000Z
confluent_server/confluent/syncfiles.py
jjohnson42/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
32
2015-09-23T13:19:04.000Z
2022-03-15T13:50:45.000Z
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
24
2015-07-14T20:41:55.000Z
2021-07-15T04:18:51.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2021 Lenovo # # 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 ...
37.334507
106
0.529661
86559f8329a6ab4177af7e36ab701bd44241c349
1,804
py
Python
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
14
2019-08-23T10:02:39.000Z
2021-12-24T13:04:43.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
110
2019-08-23T08:09:32.000Z
2021-06-29T06:54:48.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
10
2019-09-02T03:49:06.000Z
2021-05-10T04:35:40.000Z
import numpy as np from fym.core import BaseSystem
25.408451
68
0.444568
8655ba3bbd3cf852e91a43d33c2f2f32d558bc09
2,175
py
Python
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
1
2022-03-01T18:57:48.000Z
2022-03-01T18:57:48.000Z
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Iterable, Optional, Tuple import torch from torch.utils.data import DataLoader def get_dataloaders(opts) -> Tuple[Iterabl...
32.462687
120
0.624368
8657657d7e720812db7b2b5c2b5e580159afbea0
564
py
Python
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" Next lexicographical permutation algorithm https://www.nayuki.io/page/next-lexicographical-permutation-algorithm """
25.636364
69
0.439716
8657acef2a48725b54eda761add6bd9a28ac1231
3,379
py
Python
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
1
2022-01-27T14:18:24.000Z
2022-01-27T14:18:24.000Z
import json import os from argparse import ArgumentTypeError from eth_typing import Address from web3.contract import Contract from settings import MIN_VAL, MAX_VAL, DEPLOYED_CONTRACTS, CONFIG_DIR def range_limited_val(arg: str) -> int: """ Type function for argparse - int within some predefined bound...
32.805825
106
0.612607
8657d90fe7092bbdb91cfe26101bae5ad4366000
808
py
Python
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
9
2021-01-12T07:28:30.000Z
2021-12-30T09:27:04.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
16
2021-03-28T16:31:42.000Z
2022-03-21T00:18:30.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
1
2021-07-18T20:49:19.000Z
2021-07-18T20:49:19.000Z
"""add topics Revision ID: 816ea3631582 Revises: 37a124b0099b Create Date: 2021-03-13 14:20:10.044131 """ from alembic import op import sqlalchemy as sa import bot # revision identifiers, used by Alembic. revision = "816ea3631582" down_revision = "37a124b0099b" branch_labels = None depends_on = None
23.085714
90
0.674505
86582bc3a8c357318983a8612ae2ca233e2c4562
3,137
py
Python
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2021-08-05T12:45:39.000Z
2021-08-05T12:45:39.000Z
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
null
null
null
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2019-09-05T08:20:07.000Z
2019-09-05T08:20:07.000Z
"""A pure Python implementation of import.""" __all__ = ['__import__', 'import_module', 'invalidate_caches'] # Bootstrap help ##################################################### # Until bootstrapping is complete, DO NOT import any modules that attempt # to import importlib._bootstrap (directly or indirectly)....
36.057471
81
0.668792
86589b5f56644ed9997dc3b47f7f98c31f2ddd04
8,848
py
Python
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
null
null
null
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
13
2019-06-02T21:26:52.000Z
2019-08-04T15:54:41.000Z
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
1
2019-07-08T17:00:56.000Z
2019-07-08T17:00:56.000Z
from __future__ import annotations import base64 import io import logging import pathlib from typing import Optional # TODO: Remove these, as they should be contained in the numpy backend. import numpy as np import PIL.Image as PImage import arlunio.ast as ast import arlunio.color as color import arlunio.mask as mas...
26.570571
148
0.617315
865a20fd18fa17925d3611f9138e1d796448c4ce
9,001
py
Python
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
27
2018-07-12T17:09:41.000Z
2022-02-07T18:56:26.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
14
2018-07-10T08:09:21.000Z
2022-03-02T15:29:56.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
1
2020-09-22T16:13:51.000Z
2020-09-22T16:13:51.000Z
from copy import copy try: # Python 2 only: from StringIO import StringIO # create a variant that can serve as a context manager except ImportError: from io import StringIO try: # python 3.5+ from typing import Dict, Any from yamlable import Y except ImportError: pass import pytest from ...
26.551622
115
0.56627
865a984bc7cd45c042cff94434fa063630359314
29,537
py
Python
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted.web.test.test_web -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This is a web server which integrates with the twisted.internet infrastructure. @var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render} implementations can return...
32.601545
88
0.593561
865ad1612ffd549ba548de0cbe66876028b4a804
321
py
Python
pycoin/symbols/doge.py
jaschadub/pycoin
1e8d0d9fe20ce0347b97847bb529cd1bd84c7442
[ "MIT" ]
1
2018-01-17T05:08:32.000Z
2018-01-17T05:08:32.000Z
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
null
null
null
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
1
2020-03-10T12:21:51.000Z
2020-03-10T12:21:51.000Z
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( symbol="DOGE", network_name="Dogecoin", subnet_name="mainnet", wif_prefix_hex="9e", address_prefix_hex="1e", pay_to_script_prefix_hex="16", bip32_prv_prefix_hex="02fd3955", bip32_pub_prefix_hex="02fd3929")...
45.857143
80
0.800623
865af347d7d59f9bd67eb9dbfa07a221fbd308e5
554
py
Python
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
9
2020-06-05T17:01:23.000Z
2022-03-16T19:55:50.000Z
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
def hamming(n): """Returns the nth hamming number""" hamming = {1} x = 1 while len(hamming) <= n * 3.5: new_hamming = {1} for i in hamming: new_hamming.add(i * 2) new_hamming.add(i * 3) new_hamming.add(i * 5) # merge new number into hamming set...
24.086957
44
0.592058
865b44ebd78e20ddd28ec532ea20204eaa6a07dc
848
py
Python
examples/run_merger.py
needlehaystack/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
3
2019-10-03T22:15:21.000Z
2022-02-08T09:05:41.000Z
examples/run_merger.py
cungtv/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
1
2021-04-30T21:08:47.000Z
2021-04-30T21:08:47.000Z
examples/run_merger.py
cungtv/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
2
2019-08-02T19:13:09.000Z
2019-10-25T01:47:17.000Z
import logging from grpc_health.v1 import health_pb2, health_pb2_grpc from grpc_health.v1.health import HealthServicer from needlestack.apis import servicers_pb2_grpc from needlestack.servicers import factory from needlestack.servicers.merger import MergerServicer from examples import configs logging.getLogger("kaz...
25.69697
92
0.792453
865b48e5b6d60c2c5b81fb4b0a827e80f5502ece
4,482
py
Python
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
null
null
null
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
2
2021-06-28T11:09:19.000Z
2021-06-30T16:59:13.000Z
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
9
2021-06-28T08:06:08.000Z
2021-10-06T05:01:57.000Z
import os import shogi import backoff import subprocess from util import * import logging logger = logging.getLogger(__name__) import engine_ctrl
29.486842
109
0.566934
865bbf72a785e72699020e27186c8a54194bf255
1,615
py
Python
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
from CGAL.CGAL_Kernel import Point_2 from CGAL.CGAL_Kernel import Weighted_point_2 from CGAL.CGAL_Alpha_shape_2 import Alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2_Face_handle from CGAL.CGAL_Alpha_shape_2 import GENERAL, EXTERIOR, SI...
26.47541
82
0.740557
865c3c1cc62a44e9c288bd3980673e8cb1a26d5e
93
py
Python
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 18, 2018 @author: riteshagarwal ''' java = False rest = False cli = False
11.625
23
0.677419
865e9017c35669feb5f2b679820ab813bc9d8b73
533
py
Python
scene_action2.py
encela95dus/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
36
2019-01-12T04:17:49.000Z
2022-03-31T05:33:29.000Z
scene_action2.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
null
null
null
scene_action2.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
15
2018-12-30T21:18:05.000Z
2022-01-30T13:17:07.000Z
import scene scene.run(MyScene())
25.380952
52
0.525328
865e9adf437f79d36a8db146c26aeeb0ca4e34fa
672
py
Python
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
1
2020-09-14T04:47:31.000Z
2020-09-14T04:47:31.000Z
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
null
null
null
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
null
null
null
from bot.commands import BaseCommand import mongo
25.846154
66
0.633929
865f59e775e337c6b42c37791b8b1b83a1c4fa34
2,522
py
Python
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
from __future__ import annotations import subprocess import os from typing import List, Dict, Iterator, Optional, Tuple def __iter__(self) -> Iterator[str]: return iter(self._split_tokens()) def __str__(self) -> str: return f'<STDOUT value={self.value} code={self.code} >' def _split_t...
28.022222
81
0.527756
865fa048751d6ad0bc743581cad5200b3338324d
2,192
py
Python
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import absolute_import, unicode_literals from flask import render_template from markupsaf...
45.666667
111
0.734945
865fae0cf0882393868b033ff9b36122ab7504f2
76,601
py
Python
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Generated Mon May 2 14:23:33 2011 by parse_xsd.py version 0.4. # # A summary of available specifications can be found at: # https://wiki.oasis-open.org/security/FrontPage # # saml core specifications to be found at: # if any question arise please query the following pdf. # http://docs.oasis-...
38.185942
98
0.6752
866017a177effed366d9a7810ad090cd23a963da
1,163
py
Python
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
1
2020-09-25T01:51:58.000Z
2020-09-25T01:51:58.000Z
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
null
null
null
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
1
2021-07-16T02:55:59.000Z
2021-07-16T02:55:59.000Z
#!/usr/bin/env python import gym import rospy from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment # initialise environment rospy.init_node('turtlebot2_maze_random', anonymous=True, log_level=rospy.WARN) task_and_robot_environment_name = rospy.get_param('/turtlebot2/task_and_robot_environment_name') e...
27.690476
96
0.687016
866094a72b6fdcd5bf322c232acd28e290c2c5aa
3,096
py
Python
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
1
2020-08-04T05:11:05.000Z
2020-08-04T05:11:05.000Z
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
import numpy as np board = np.zeros(shape=(9, 9)) count = 0 if __name__ == "__main__": main()
23.633588
105
0.440891
86609708c6740fc5dcff69f746034012abb3d227
1,112
py
Python
01_basics/01_building_expressions/02_vector_mat_soln.py
johny-c/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
711
2015-01-10T05:39:21.000Z
2022-03-15T23:45:45.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
2
2016-06-13T06:46:58.000Z
2017-04-14T08:21:20.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
371
2015-01-16T01:31:41.000Z
2022-03-15T11:37:30.000Z
import numpy as np from theano import function import theano.tensor as T def make_vector(): """ Returns a new Theano vector. """ return T.vector() def make_matrix(): """ Returns a new Theano matrix. """ return T.matrix() def elemwise_mul(a, b): """ a: A theano matrix b: ...
19.508772
48
0.607014
8660a9342ead6210c470087662e4e506c3d6349b
2,863
py
Python
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
1
2020-07-22T21:09:15.000Z
2020-07-22T21:09:15.000Z
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
35.7875
78
0.625218
86612e58c1d3c9004b21a40197263a8e6dc182a5
7,362
py
Python
tf_agents/bandits/agents/examples/v2/trainer.py
howards11/agents
8d5627d9b9c3680468a63564c25a4d82fa1befb0
[ "Apache-2.0" ]
3,175
2017-09-08T18:28:32.000Z
2022-03-31T01:32:22.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
703
2017-09-18T05:51:57.000Z
2022-03-31T17:37:50.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
844
2017-09-08T23:28:57.000Z
2022-03-30T09:29:32.000Z
# coding=utf-8 # Copyright 2020 The TF-Agents 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 la...
37.948454
89
0.740424
86614dcad65e20388a5967a40083bdb556db6db0
2,469
py
Python
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-12-10T12:31:27.000Z
2018-12-10T12:31:27.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.271429
78
0.651681
86624e00bb7b419aff83121a582546742f805433
571
py
Python
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
from sqlalchemy.orm.session import Session from app import crud from .utils import insert, get_content
27.190476
83
0.749562
8666c057450744d94668536ee8580d907346f31a
28,602
py
Python
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
1
2021-03-17T10:04:06.000Z
2021-03-17T10:04:06.000Z
#!/usr/bin/python # Copyright (C) 2014 Belledonne Communications SARL # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version....
35.977358
149
0.706559
866731500bf9de7d963d33a61b133cfd0fb18eda
1,727
py
Python
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
1
2019-05-08T22:30:16.000Z
2019-05-08T22:30:16.000Z
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache...
35.979167
93
0.735379
86686cf65534bfae5dd8d13670449f7c68cf0bb3
2,226
py
Python
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
from datetime import date, datetime, timedelta from decimal import Decimal import unittest from dateutil.tz import tzutc import six from yolk import utils
28.177215
75
0.574573
866878f76f3d3d6bb3a8d89014200d8e8b85019b
2,797
py
Python
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
""" A matrix will be an N sized list of 4 element lists. Each individual list will represent an [x, y, z, 1] point. For multiplication purposes, consider the lists like so: x0 x1 xn y0 y1 yn z0 z1 ... zn 1 1 1 """ import math #print the matrix such that it looks like #the template in ...
22.739837
59
0.464784
86695a9d77f6427fc910ad0a37e4e6d95359ee20
1,918
py
Python
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import sys, os from time import sleep sys.path.insert(0, '/home/may/Dropbox/Programming/spice/') import spice_api as spice if __name__ == '__main__': main()
34.25
101
0.717414
866961c7ba40ad3796162e785a123e4decd9a074
6,648
py
Python
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
1
2020-11-09T10:32:05.000Z
2020-11-09T10:32:05.000Z
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
import os from pathlib import Path from datetime import timedelta from celery.schedules import crontab from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get( 'SECRET_...
29.546667
91
0.626203
866977a21872a2e8438dbbd5f5b289547da5a50c
641
py
Python
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
import configparser import os dir_path = os.path.dirname(os.path.realpath(__file__)) dir_path += '/cfg.ini'
29.136364
73
0.669267
866b10a749a0729a15fdb56c60d4ea92a50f3344
3,270
py
Python
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com> # # 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 applicabl...
37.159091
76
0.644954
866b4e64606eb0b8b047d742a5c885f477addc0c
1,551
py
Python
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
from flask import Flask; from configuration import Configuration; from flask_migrate import Migrate, init, migrate, upgrade; from models import database, Role, UserRole, User; from sqlalchemy_utils import database_exists, create_database; application = Flask(__name__); application.config.from_object(Configuration); m...
28.2
78
0.595745
866b8b6db3282415cf332ea707795a1897c51203
4,066
py
Python
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
1
2021-09-28T23:10:05.000Z
2021-09-28T23:10:05.000Z
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
from __future__ import print_function import os import json import numpy as np if __name__ == '__main__': model_list = [ 'random_forest_classification', 'xgboost_classification', 'xgboost_regression', 'single_deep_classification', 'single_deep_regression' ] mode...
42.354167
171
0.58485
866be250cb91ad06867da752bf60c3e580b71448
1,687
py
Python
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
1
2021-01-02T03:34:19.000Z
2021-01-02T03:34:19.000Z
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
36.673913
79
0.711322
866d362b7d20329b9a8556ff353eba1624b11b05
8,175
py
Python
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np #import cmath as cm # Main parameters for window # 'record_every': number of time_steps one between two consecutive record events window_params = {'kernel': 'RK4','nstep_update_plot': 100, 'step_size': 0.01, 'array_size': 10000, 'streaming': True, 'record_state':False, ...
65.4
761
0.651865
866eb114075c78f8e3231df363ccab857402a80e
1,464
py
Python
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
1
2020-10-18T15:54:26.000Z
2020-10-18T15:54:26.000Z
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
null
null
null
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
null
null
null
from multiprocessing import Pool import EnvEq as ee import numpy as np import itertools as it import os #parsing input into numpy arrays from input import * y0=np.array([y0_Tpos,y0_Tpro,y0_Tneg,y0_o2,y0_test]) p=np.array([p_o2,p_test]) mu=np.array([[mu_o2Tpos,mu_o2Tpro,mu_o2Tneg],[mu_testTpos,mu_testTpro,0]]) lam=np.a...
34.046512
190
0.733607
866f56e685c4eea3f8e5c6a81ebbf185f955f32d
4,495
py
Python
task1_makeTrainingDataset.py
1985312383/contest
c4734647ad436cf5884075f906a3e9f10fc4dcfa
[ "Apache-2.0" ]
2
2021-12-10T08:38:47.000Z
2021-12-31T08:44:18.000Z
task1_makeTrainingDataset.py
huxiaoyi0625/Mathematical_Modeling_Contest_E_2021
40293aa2375daa46d2351870c72394d4e1114081
[ "Apache-2.0" ]
null
null
null
task1_makeTrainingDataset.py
huxiaoyi0625/Mathematical_Modeling_Contest_E_2021
40293aa2375daa46d2351870c72394d4e1114081
[ "Apache-2.0" ]
null
null
null
import csv import re import numpy as np thre = 1.5 # , iteration_num = 2 # if __name__ == '__main__': collect_dataset("") collect_dataset("")
36.544715
117
0.602447
866fc71e2531405289f44f8b89f61a0e57369c55
321
py
Python
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
from .analyzer import ProgpilotAnalyzer from .issues_data import issues_data analyzers = { 'phpanlyzer' : { 'name' : 'phpanalyzer', 'title' : 'phpanalyzer', 'class' : ProgpilotAnalyzer, 'language' : 'all', 'issues_data' : issues_data, }, }...
22.928571
40
0.535826
8671b6a372caa3589eb77dcc566a9b3713aa80a9
6,499
py
Python
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import shutil, re, os, sys file_model = "Model.template" bookname = "TechNotes" file_bibtex = "thebib.bib" folder_target = "../pdf/" #if name is a chapter, return its sections #if depend_files contains citation #trim trailing slash ################################################## #now w...
27.892704
82
0.610248
86720b27c369fdf8140425890d2127c46b5bc111
24,252
py
Python
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/Project-Mochachino
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Python Serial Port Extension for Win32, Linux, BSD, Jython # module for serial IO for POSIX compatible systems, like Linux # see __init__.py # # (C) 2001-2010 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt # # parts based on code from Gran...
37.253456
117
0.601023
86735b1546f055d4c408acb184f9fb83f843ede1
2,272
py
Python
Older Examples - enter at your own risk/lavender_pos/app/models.py
electricimp/examples
ebdd01baf64f3aa67f027194457432c7d7501d37
[ "MIT" ]
26
2015-01-17T23:43:06.000Z
2021-09-28T18:24:28.000Z
Older Examples - enter at your own risk/lavender_pos/app/models.py
silver2row/examples
0ef3bd4b4a875364db883c7c387f1f175a3ce61e
[ "MIT" ]
5
2015-02-27T22:23:39.000Z
2020-10-19T23:58:55.000Z
Older Examples - enter at your own risk/lavender_pos/app/models.py
silver2row/examples
0ef3bd4b4a875364db883c7c387f1f175a3ce61e
[ "MIT" ]
42
2015-01-22T16:33:12.000Z
2021-01-14T02:33:15.000Z
import datetime from database import Base from sqlalchemy import Column, String, Integer, ForeignKey, DateTime, Float
28.049383
81
0.652729
8674487bc14ab6d974246602ccaa1b9927159028
4,724
py
Python
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
import os import math import string import numpy as np import rospy import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D, \ GaussianNoise, BatchNormalization import cv2 import collections import random import time from example_s...
33.503546
94
0.622777
86748acfd2e2d6f503ac8703ff17fb7002cb2fc1
252
py
Python
build/lib/Kronos_heureka_code/Zeit/__init__.py
heureka-code/Kronos-heureka-code
0ddbc93ec69f0bc50075071e6a3e406c9cc97737
[ "MIT" ]
null
null
null
build/lib/Kronos_heureka_code/Zeit/__init__.py
heureka-code/Kronos-heureka-code
0ddbc93ec69f0bc50075071e6a3e406c9cc97737
[ "MIT" ]
null
null
null
build/lib/Kronos_heureka_code/Zeit/__init__.py
heureka-code/Kronos-heureka-code
0ddbc93ec69f0bc50075071e6a3e406c9cc97737
[ "MIT" ]
null
null
null
from Kronos_heureka_code.Zeit.Uhrzeit import Uhrzeit, Stunde, Minute, Sekunde from Kronos_heureka_code.Zeit.Datum.Monat import Monate from Kronos_heureka_code.Zeit.Datum.Jahr import Jahr, Zeitrechnung from Kronos_heureka_code.Zeit.Datum.Tag import Tag
50.4
77
0.861111
867600e9a45eebd6cdfd857a6ba6c53cc063cb70
845
py
Python
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
65
2020-06-27T04:28:21.000Z
2022-03-30T11:18:22.000Z
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
15
2020-07-07T13:17:05.000Z
2022-03-22T12:52:29.000Z
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
14
2020-06-30T09:22:13.000Z
2022-03-30T11:18:28.000Z
import logging
33.8
81
0.571598
86760e9869adb9d8e359c444118b7fb153ad2c74
63,014
py
Python
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
null
null
null
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
42
2022-03-11T10:52:26.000Z
2022-03-31T01:50:42.000Z
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
null
null
null
# type: ignore from typing import Union, List, Dict from urllib.parse import urlparse import urllib3 from pymisp import ExpandedPyMISP, PyMISPError, MISPObject, MISPSighting, MISPEvent, MISPAttribute from pymisp.tools import GenericObjectGenerator import copy from pymisp.tools import FileObject from CommonServerPytho...
41.869767
120
0.674295
867722c3f684f02eb3e24dffeab626e5a7b8bb2c
19,936
py
Python
pycle/bicycle-scrapes/epey-scrape/downLink5.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
pycle/bicycle-scrapes/epey-scrape/downLink5.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
pycle/bicycle-scrapes/epey-scrape/downLink5.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import os import wget from urllib.request import Request, urlopen bicycles=[{'name': 'Kron XC150 27.5 HD Bisiklet', 'link': 'https://www.epey.com/bisiklet/kron-xc150-27-5-hd.html'}, {'name': 'Corelli Trivor 3 Bisiklet', 'link': 'https://www.epey.com/bisiklet/corelli-trivor-3-0.html'}, {'...
906.181818
19,356
0.688353
86789c8feaa8d10751a8b27ad6e7fc323ebc39ff
956
py
Python
redmine/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
redmine/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
4
2021-03-30T14:04:56.000Z
2021-06-10T19:40:52.000Z
redmine/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
from django.conf import settings from redminelib import Redmine as DefaultRedmine from .validator import RedmineInstanceValidator
28.117647
62
0.696653
8678e0fdfc11399c75f91f8ec0af910ceb4aab00
3,212
py
Python
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import scipy.stats from finished_files.survey_data_dictionary import DATA_DICTIONARY # Load data # We want to take the names list from our data dictionary names = [x.name for x in DATA_DICTIONARY] # Generate the list of names to import usecols =...
31.184466
79
0.699253
8679399f0ab155a65d5523949359b9a4e0752af4
4,918
py
Python
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
3
2021-05-21T08:02:48.000Z
2021-11-05T11:06:40.000Z
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
1
2021-05-24T06:53:32.000Z
2021-05-24T06:53:32.000Z
import torch from torch.nn import functional as F from torch import nn from torch.autograd import Variable from adet.utils.comm import compute_locations, aligned_bilinear def lovasz_grad(gt_sorted): """ Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper """ p = len(g...
36.42963
135
0.637861
86798d0504dd04df9298eafb92e49de14fb4653a
3,804
py
Python
cloudferry/actions/prechecks/check_vmax_prerequisites.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
6
2017-04-20T00:49:49.000Z
2020-12-20T16:27:10.000Z
cloudferry/actions/prechecks/check_vmax_prerequisites.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
3
2017-04-08T15:47:16.000Z
2017-05-18T17:40:59.000Z
cloudferry/actions/prechecks/check_vmax_prerequisites.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
8
2017-04-07T23:42:36.000Z
2021-08-10T11:05:10.000Z
# Copyright 2016 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
41.347826
79
0.624869
8679dfd086b9b3768ebf7c42ebcbb01fc263b720
2,569
py
Python
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
null
null
null
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
null
null
null
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
1
2021-04-17T10:21:05.000Z
2021-04-17T10:21:05.000Z
""" A simple wrapper for the Bongo Iowa City bus API. """ import requests as req
27.623656
72
0.534838
867a45f315cdcc7854ea80a22125e3ed4f3423db
1,671
py
Python
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
1
2021-03-15T16:48:05.000Z
2021-03-15T16:48:05.000Z
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
null
null
null
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
null
null
null
import random import socket import string import sys import threading import time
26.109375
88
0.591263
867a66ae5d5de251f9ea678d34a2cd01a411db2e
443
py
Python
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
def default_evaluator(model, X_test, y_test): """A simple evaluator that takes in a model, and a test set, and returns the loss. Args: model: The model to evaluate. X_test: The features matrix of the test set. y_test: The one-hot labels matrix of the test set. ...
31.642857
61
0.598194
867addf71ccf4a2d2cc021bb3410dbc784317269
319
py
Python
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
null
null
null
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
8
2020-01-28T22:17:25.000Z
2022-03-12T00:04:30.000Z
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
null
null
null
import random yolo=Yolov3() for data in yolo: print(data)
16.789474
36
0.702194
867af3eaf92e62e8468d18b191fba31f6c76639c
2,836
py
Python
utils/dsp.py
huchenxucs/WaveRNN
6d5805d54b8a3db99aa190083b550236f2c15d28
[ "MIT" ]
null
null
null
utils/dsp.py
huchenxucs/WaveRNN
6d5805d54b8a3db99aa190083b550236f2c15d28
[ "MIT" ]
null
null
null
utils/dsp.py
huchenxucs/WaveRNN
6d5805d54b8a3db99aa190083b550236f2c15d28
[ "MIT" ]
null
null
null
import math import numpy as np import librosa from utils import hparams as hp from scipy.signal import lfilter import soundfile as sf ''' def build_mel_basis(): return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, fmin=hp.fmin) ''' def reconstruct_waveform(mel, n_iter=32): ...
23.831933
91
0.645275
867b8e99cfbed437050f3b3f92884ccf95f2bf33
6,407
py
Python
loldib/getratings/models/NA/na_talon/na_talon_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_talon/na_talon_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_talon/na_talon_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings
15.364508
46
0.761667