hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e85daaee12d8728d83870b3938ca316e4d43fa5e
2,971
py
Python
bruges/rockphysics/elastic.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
209
2015-07-16T18:23:42.000Z
2022-02-27T02:59:46.000Z
bruges/rockphysics/elastic.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
74
2015-07-12T16:12:01.000Z
2022-02-22T14:27:26.000Z
bruges/rockphysics/elastic.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
112
2015-08-07T14:12:11.000Z
2022-02-10T14:12:50.000Z
""" Elastic impedance. :copyright: 2015 Agile Geoscience :license: Apache 2.0 """ import numpy as np def elastic_impedance(vp, vs, rho, theta1, k=None, normalize=False, constants=None, use_sin=False, rho_ter...
37.607595
79
0.595086
e85dac31b366abc51cf7e4d821ffa89c19e62a90
3,236
py
Python
category_microservices/admin/admin/settings.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
2
2020-07-23T19:32:58.000Z
2020-10-24T20:54:09.000Z
category_microservices/admin/admin/settings.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
null
null
null
category_microservices/admin/admin/settings.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
1
2021-07-11T14:41:04.000Z
2021-07-11T14:41:04.000Z
""" Django settings for admin project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib i...
25.68254
91
0.701174
e85dcc370c0a288954613f156bd52daa828f70a6
803
py
Python
tests/xlfunctions_vs_excel/atan2_test.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
54
2020-04-26T09:18:29.000Z
2022-03-30T08:47:45.000Z
tests/xlfunctions_vs_excel/atan2_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
41
2020-05-04T04:12:36.000Z
2022-01-31T02:41:05.000Z
tests/xlfunctions_vs_excel/atan2_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
21
2020-05-21T20:49:23.000Z
2022-02-20T14:15:56.000Z
from .. import testing class ATAN2Test(testing.FunctionalTestCase): filename = "ATAN2.xlsx" def test_evaluation_A2(self): self.assertEqual( self.evaluator.evaluate('Sheet1!A2'), self.evaluator.get_cell_value('Sheet1!A2') ) def test_evaluation_A3(self): se...
25.903226
54
0.608966
e85dd70875dc6a531950e41278b9f6543affde57
9,532
py
Python
bidobe/plotorb.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
1
2018-06-19T18:35:55.000Z
2018-06-19T18:35:55.000Z
bidobe/plotorb.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
null
null
null
bidobe/plotorb.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
null
null
null
""" Save to file, plot or animate on the screen: 1. orbits of a binary system projected on the sky 2. radial velocities of each component of the binary system 3. a light curve caused by the doppler beaming """ import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation def plot_projected_orb...
31.562914
79
0.63995
e85e18b2d121a7cc7463300ab1d4e97d63afca6d
3,846
py
Python
troveclient/tests/test_secgroups.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/tests/test_secgroups.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/tests/test_secgroups.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
from testtools import TestCase from mock import Mock from troveclient import security_groups """ Unit tests for security_groups.py """ class SecGroupTest(TestCase): def setUp(self): super(SecGroupTest, self).setUp() self.orig__init = security_groups.SecurityGroup.__init__ security_group...
37.705882
78
0.653666
e85e2c2ab6bde447a0c2f94b203884fa900f444e
2,229
py
Python
HW3/q4.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW3/q4.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW3/q4.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from q2 import Percolation def find_q_inf(step_size=.05, sample_numbers=100, sample_lengths=(10, 100, 200), file_name=None): if file_name is None: p_s = np.arange(0, 1 + step_size, step_size) samples_clusters_size_ensemble = np.zeros((len(sample_l...
42.865385
155
0.61642
e85e2cb2186225fa5835984ae0ffe758115ca57e
456
py
Python
lib/connect/az/urls.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/az/urls.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/az/urls.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url, include from views import default, req, grant urlpatterns = patterns( '', url(r'(?:(?P<tenant>.*)/)?api/', include('connect.az.api')), url(r'(?:(?P<tenant>.*)/)?tos', req, name='az_tos'), url(r'(?:(?P<tenant>.*)/)?policy', grant, name=...
35.076923
64
0.559211
e85e34541f512ec71d1eea77f4dfa95eba84cb26
1,481
py
Python
concierge/cli/start.py
OpenDebates/Concierge
6e301d95aef472ef76fe609cb0350ea9071f0c27
[ "MIT" ]
null
null
null
concierge/cli/start.py
OpenDebates/Concierge
6e301d95aef472ef76fe609cb0350ea9071f0c27
[ "MIT" ]
null
null
null
concierge/cli/start.py
OpenDebates/Concierge
6e301d95aef472ef76fe609cb0350ea9071f0c27
[ "MIT" ]
null
null
null
from concierge import app from concierge.cli import CommandFactory class StartCommand(CommandFactory): def __init__(self, parser, *args, **kwargs): self.parser = parser.add_parser(*args, **kwargs) self.parser.set_defaults(action=self.run) self.components = [ "bot", ...
29.039216
87
0.511141
e85e4ec1c9ef4858922d4a4d59ffb5cbaf3e38ac
1,999
py
Python
tests/common/mocks.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/common/mocks.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/common/mocks.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
28.971014
86
0.638319
e85e5dc30b1d47102e98aa388dc17f14f6825ec1
26,375
py
Python
opacus/privacy_engine.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
2
2022-03-22T13:59:28.000Z
2022-03-24T07:02:54.000Z
opacus/privacy_engine.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
12
2022-02-17T16:29:31.000Z
2022-03-29T15:06:42.000Z
opacus/privacy_engine.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
3
2021-11-18T10:13:00.000Z
2022-03-23T10:25:55.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import math import os import types import warnings from typing import List, Optional, Tuple, Union import torch from opacus.grad_sample import GradSampleModule from scipy.stats import planck from torch import nn from . impo...
40.144597
129
0.605422
e85e6505f4e9e059a3342c552977a4172013c9d3
695
py
Python
examples/translator.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
109
2022-02-05T02:38:35.000Z
2022-03-31T16:42:52.000Z
examples/translator.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
9
2022-02-08T22:13:56.000Z
2022-03-31T18:16:12.000Z
examples/translator.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
3
2022-02-14T23:45:03.000Z
2022-03-22T06:58:47.000Z
from transformers import pipeline import bytewax from bytewax import Dataflow, inputs, parse, run_cluster def build_predict(translator): def predict(en): de = translator(en)[0]["translation_text"] return (en, de) return predict def inspector(en_de): en, de = en_de print(f"{en} -> {...
20.441176
69
0.648921
e85ebf0c9792167512690db7660c658e4c7cbeff
33,520
py
Python
scielomanager/journalmanager/migrations/0014_fix_nulls_in_short_title.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/journalmanager/migrations/0014_fix_nulls_in_short_title.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/journalmanager/migrations/0014_fix_nulls_in_short_title.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Don't use "from appname.models imp...
88.912467
256
0.572136
e85ec864ee39e4b6a44486c1988be69b0bbcd17a
6,303
py
Python
gemd/entity/object/ingredient_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/object/ingredient_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/object/ingredient_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
from gemd.entity.object.base_object import BaseObject from gemd.entity.object.has_quantities import HasQuantities from gemd.entity.setters import validate_list class IngredientRun(BaseObject, HasQuantities): """ An ingredient run. Ingredients annotate a material with information about its usage in a proc...
37.517857
99
0.643344
e85ec95fa041f11b9e50852bb4a777a085521b4e
1,141
py
Python
dash_apps/shared_callbacks.py
Just-DIRECT-Capstone/Protein-Purification-Model-Public
cf18d9669dfc4d49e53bb3e6e78c06cb42bf404a
[ "MIT" ]
1
2021-10-11T10:15:14.000Z
2021-10-11T10:15:14.000Z
dash_apps/shared_callbacks.py
Just-DIRECT-Capstone/Protein-Purification-Model-Public
cf18d9669dfc4d49e53bb3e6e78c06cb42bf404a
[ "MIT" ]
1
2021-04-30T16:24:12.000Z
2021-05-04T22:17:31.000Z
dash_apps/shared_callbacks.py
Just-DIRECT-Capstone/Protein-Purification-Model-Public
cf18d9669dfc4d49e53bb3e6e78c06cb42bf404a
[ "MIT" ]
null
null
null
"""imports""" from dash_apps.apps.myapp import app from dash_apps.shared_styles import * from dash.dependencies import Input, Output, State # Change Content Style @app.callback( [ Output("page-content", "style"), ], [ Input("btn_sidebar", "n_clicks"), Input("url", "pathname") ],...
24.804348
65
0.635408
e85eed8cf9ef02a6344d339a9f26b39c30a4fd62
879
py
Python
collipa/forms/album.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
collipa/forms/album.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
collipa/forms/album.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
# coding: utf-8 from ._base import BaseForm from collipa.libs.tforms import validators from collipa.libs.tforms.fields import TextAreaField from collipa.helpers import strip_xss_tags from collipa.models import Album class AlbumForm(BaseForm): name = TextAreaField( '名字', [ validators.Required...
25.114286
71
0.579067
e85ef1e178d50636d0bca2aa9a96d8b6956cafa4
2,117
py
Python
venv/Lib/site-packages/pyrogram/raw/types/keyboard_button.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/keyboard_button.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/keyboard_button.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
30.681159
103
0.619273
e85efcc086dd4365c37987f0cecaee355ffc69d8
3,139
py
Python
claptrap/serializer.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
claptrap/serializer.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
claptrap/serializer.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
import itertools from networkx.readwrite import json_graph def pump(type_): """ Feed the generator into *type_* til exhaustion. Can be overridden by setting exhaust=False. """ def _pump(f): def fx(*args, **kwargs): exhaust_gen = kwargs.pop("exhaust", True) gen = f...
22.421429
82
0.609748
e85f00558d9d550698649d6d6e27563518c17cef
506
py
Python
run_experiment.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
1
2019-03-08T12:12:45.000Z
2019-03-08T12:12:45.000Z
run_experiment.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
16
2019-02-14T11:51:30.000Z
2019-06-11T08:25:53.000Z
run_experiment.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
null
null
null
def main(): import fire from textnn.dataset.imdb import ImdbClassifier from textnn.dataset.amazon import AmazonReviewClassifier from textnn.dataset.yelp import YelpReviewClassifier fire.Fire({ "imdb": ImdbClassifier, "amazon": AmazonReviewClassifier, "yelp": YelpReviewClassi...
28.111111
113
0.685771
e85f310329904e1b683cbfe830719d102577d1ca
36,028
py
Python
nova/utils.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/utils.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/utils.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
31.714789
79
0.613051
e85f7e0e07dd9d18e9df939c6a3bab3d2d918003
1,828
py
Python
data/transcoder_evaluation_gfg/python/DIFFERENCE_BETWEEN_HIGHEST_AND_LEAST_FREQUENCIES_IN_AN_ARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/DIFFERENCE_BETWEEN_HIGHEST_AND_LEAST_FREQUENCIES_IN_AN_ARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/DIFFERENCE_BETWEEN_HIGHEST_AND_LEAST_FREQUENCIES_IN_AN_ARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : arr.sort ( ) count = 0 ; max_count = 0 ; min_count = n for i in range ( 0 , ( n - 1 ) ) : ...
45.7
158
0.462801
e85fb745b4b9c86b04c2b1134a617e17ffa01b68
20,059
py
Python
Assembly Project/assembler.py
eyermann/Computational-Biology
58acc0747d04d19d3aa322672ace3864063f37d6
[ "Apache-2.0" ]
null
null
null
Assembly Project/assembler.py
eyermann/Computational-Biology
58acc0747d04d19d3aa322672ace3864063f37d6
[ "Apache-2.0" ]
null
null
null
Assembly Project/assembler.py
eyermann/Computational-Biology
58acc0747d04d19d3aa322672ace3864063f37d6
[ "Apache-2.0" ]
null
null
null
# Sequence Assembler for CS362 Project 3 # Authors: Charles Eyermann and Sam Hinh from simulator import * from node import * import argparse, copy, csv, timeit from collections import Counter class Subgraph: '''a subgraph class to allow for separating main graph into its connected components''' def __init__(self,g...
29.412023
257
0.655117
e85fe30465a573d687cf5ceee3021d43ad1f8c5e
6,177
py
Python
segmented/demo.py
cluhmann/segmented
05523e5f8fe686ab2895b9baf7705dedcd61b8ca
[ "MIT" ]
null
null
null
segmented/demo.py
cluhmann/segmented
05523e5f8fe686ab2895b9baf7705dedcd61b8ca
[ "MIT" ]
null
null
null
segmented/demo.py
cluhmann/segmented
05523e5f8fe686ab2895b9baf7705dedcd61b8ca
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import scipy.stats import scipy.optimize class demo: """This class is used for illustrative and replication purposes. This object embodies a segmented regression model with parametric node placement. The specification of both the segmented regression model itself and the ...
41.18
524
0.621499
e85ff4fdad8b5d623dd60973b3797b94130d707c
2,185
py
Python
examples/stft_block_processing.py
pswietojanski/pyroomacoustics
c1e7d2b5450be84d78f3a539f22c770f62cebad4
[ "MIT" ]
null
null
null
examples/stft_block_processing.py
pswietojanski/pyroomacoustics
c1e7d2b5450be84d78f3a539f22c770f62cebad4
[ "MIT" ]
null
null
null
examples/stft_block_processing.py
pswietojanski/pyroomacoustics
c1e7d2b5450be84d78f3a539f22c770f62cebad4
[ "MIT" ]
1
2019-09-11T06:11:11.000Z
2019-09-11T06:11:11.000Z
''' STFT Block Processing ===================== In this example, we will apply a simple moving average filter in the frequency domain. We will use the STFT class that lets us do block-wise processing suitable for real-time application on streaming audio. In this example, we perform offline processing, but the methodo...
30.774648
104
0.740503
e85ff7a23b32fd41c53422ef0d2a6238a5388975
4,853
py
Python
stocky-devel/stocky/serverlib/tests/test_serverconfig.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2020-05-13T17:39:59.000Z
2020-05-13T17:39:59.000Z
stocky-devel/stocky/serverlib/tests/test_serverconfig.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2018-09-18T19:39:24.000Z
2019-02-04T23:52:59.000Z
stocky-devel/stocky/serverlib/tests/test_serverconfig.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
null
null
null
import os import os.path import pytest import py.path import unittest.mock as mock import serverlib.yamlutil as yamlutil import serverlib.serverconfig as serverconfig def get_testfilename(fn: str) -> str: abspath = os.path.dirname(os.path.abspath(__file__)) return os.path.join(abspath, 'serverconfig-testfil...
43.330357
88
0.649083
e85ff8daf4f80b8522347b597c0046f65fa02614
34,151
py
Python
libkloudtrader/crypto.py
KloudTrader/libkloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
11
2019-01-16T16:10:09.000Z
2021-03-02T00:59:17.000Z
libkloudtrader/crypto.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
425
2019-07-10T06:59:49.000Z
2021-01-12T05:32:14.000Z
libkloudtrader/crypto.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
6
2019-03-15T16:25:06.000Z
2021-05-03T10:02:13.000Z
"""Trading and Data APIs for Crypto Currencies""" import requests import os from typing import Any import datetime import pandas import asyncio from libkloudtrader.exceptions import BadRequest, InvalidCredentials from libkloudtrader.logs import start_logger from libkloudtrader.crypto_operations import * """Config start...
41.395152
88
0.577201
e8602a6876658ebbefcf294a5554828d4396c196
905
py
Python
auditor/auditor/sql/audit_user_currency_liability.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
auditor/auditor/sql/audit_user_currency_liability.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
auditor/auditor/sql/audit_user_currency_liability.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
import petlib.ec from common.constants import SECP256K1_GROUP, Currency from common.sql.ecpt import EcPt from common.sql.enum import Enum from common.sql.nizk import NIZK from common.sql.uuid import UUID from sqlalchemy import Column, Integer from auditor.sql.base import Base class AuditUserCurrencyLiability(Base): ...
32.321429
87
0.781215
e86043c5236d6962c09ad5eeb1a6470ea4616200
1,861
py
Python
datamidware/pydm/db2file.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
datamidware/pydm/db2file.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
datamidware/pydm/db2file.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
""" Author: Jagriti Goswami Date: 30th August 2020 License: MIT License ======================================================================================= Implementation of db2file() function: Exports table data as csv/json format from the pydb param host: host name param user: user name param password: password ...
27.776119
98
0.584095
e86045729fc41e5e8d1aac61be316901ea8a6647
275
py
Python
08_Inheritance_and_SubType_Polymorphism/diamond.py
MANOJPATRA1991/Python-Beyond-the-Basics
aed7bfd35e33c2b1759b48e1c89314aa149c56d0
[ "MIT" ]
null
null
null
08_Inheritance_and_SubType_Polymorphism/diamond.py
MANOJPATRA1991/Python-Beyond-the-Basics
aed7bfd35e33c2b1759b48e1c89314aa149c56d0
[ "MIT" ]
null
null
null
08_Inheritance_and_SubType_Polymorphism/diamond.py
MANOJPATRA1991/Python-Beyond-the-Basics
aed7bfd35e33c2b1759b48e1c89314aa149c56d0
[ "MIT" ]
null
null
null
class A: def func(self): return 'A.func' class B(A): def func(self): return 'B.func' class C(A): def func(self): return 'C.func' class D(B, C): pass # class D(B, A, C): # pass # Cannot create a consistent method resolution order (MRO) for bases A, C
15.277778
73
0.610909
e860775b1291549b64a0b652938a9823b8898299
8,614
py
Python
tests/unit/transforms/test_tensor_transforms.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
tests/unit/transforms/test_tensor_transforms.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
tests/unit/transforms/test_tensor_transforms.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
""" Tests for pywick/transforms/image_transforms.py """ import torch as th from pywick.transforms import (ToTensor, ToFile, ChannelsLast, HWC, ChannelsFirst, CHW, TypeCast, ...
28.90604
66
0.582076
e860afadffe916dbafa456675d74bb62b3fd51e9
1,665
py
Python
src/modeling/models/neural_net/model.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/modeling/models/neural_net/model.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/modeling/models/neural_net/model.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from keras.layers import Dropout from keras.layers import Dense from keras.models import Sequential from keras.models import load_model as keras_load_model from keras.utils.vis_utils import plot_model import settings FILENAME = settings.MODEL_PATH + "model" EXTENSION = ".h5" def set_layers(model, neurons, inpt_size,...
27.295082
100
0.673273
e860bf6c24cfa7609541c715429a3a5a17260a73
207
py
Python
app/battle/forms.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
app/battle/forms.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
app/battle/forms.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import SubmitField, SelectField from ..filters import filters class BattleForm(Form): filter = SelectField("filter", choices=filters) submit = SubmitField()
23
51
0.768116
e860dc9405ebe1aae5bdafe01c6e55942319b1a8
15,854
py
Python
onadata/apps/api/tests/viewsets/test_xform_list_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/api/tests/viewsets/test_xform_list_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/api/tests/viewsets/test_xform_list_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 import os from django.conf import settings from django_digest.test import DigestAuth from guardian.shortcuts import assign_perm from onadata.apps.api.tests.viewsets.test_abstract_viewset import\ TestAbstractViewSet from onadata.apps.api.viewsets.xform_list_api import XFormListApi from onadata.libs...
42.733154
242
0.615176
e860ef25ae056495308bd41ec39abdd85bae8e63
783
py
Python
userbot/plugins/wikipedia.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/wikipedia.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/wikipedia.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """WikiPedia.ORG Syntax: .wikipedia Query""" import wikipedia from uniborg.util import lightning_cmd @borg.on(lightnin...
30.115385
84
0.642401
e861179dd28c493f6e5811bf4d3898fadd733b97
4,831
py
Python
spotipy/oauth2.py
ndelnano/spotipy
139a35bbb34782f2f7e2ffeb680c33a3a515fbbb
[ "MIT" ]
null
null
null
spotipy/oauth2.py
ndelnano/spotipy
139a35bbb34782f2f7e2ffeb680c33a3a515fbbb
[ "MIT" ]
null
null
null
spotipy/oauth2.py
ndelnano/spotipy
139a35bbb34782f2f7e2ffeb680c33a3a515fbbb
[ "MIT" ]
null
null
null
from __future__ import print_function import base64 import requests import os import json import time import sys # Workaround to support both python 2 & 3 import six import six.moves.urllib.parse as urllibparse import MySQLdb # TODO document the auth flow that this code implements class SpotifyOauthError(Exception...
32.863946
112
0.595943
e861884d47e4bf13444e01ed00c438229d357045
2,542
py
Python
.leetcode/754.reach-a-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/754.reach-a-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/754.reach-a-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=754 lang=python3 # # [754] Reach a Number # # https://leetcode.com/problems/reach-a-number/description/ # # algorithms # Medium (40.96%) # Likes: 924 # Dislikes: 615 # Total Accepted: 35.5K # Total Submissions: 85.7K # Testcase Example: '2' # # You are standing at position 0 on an infinite ...
20.015748
78
0.61487
e86192c2a170a60199b2380ddff068fcdd8cc191
938
py
Python
test/test_MSD.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
null
null
null
test/test_MSD.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
100
2021-10-12T14:08:31.000Z
2021-12-19T16:38:37.000Z
test/test_MSD.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
2
2021-10-12T14:00:11.000Z
2021-11-03T09:20:42.000Z
from ale.MSD import self_diffusion_coefficient, lindemann_criterion from ase.io.trajectory import Trajectory import pytest import yaml #Tests if the slab of solid copper has no self-diffusion def test_self_diffusion_coefficient() : cuTraj = Trajectory('test/Cu.traj') config_file = open("test/config_Cu.yaml") ...
36.076923
71
0.770789
e861d23bd8f36f62e73c6233ea9bcd47135c653b
33,356
py
Python
components/kivy_console.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
3
2022-03-05T21:54:34.000Z
2022-03-15T12:55:45.000Z
components/kivy_console.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
2
2022-03-13T04:15:47.000Z
2022-03-30T11:51:41.000Z
components/kivy_console.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' KivyConsole =========== .. image:: images/KivyConsole.jpg :align: right :class:`KivyConsole` is a :class:`~kivy.uix.widget.Widget` Purpose: Providing a system console for debugging kivy by running another instance of kivy in this console and displaying it's output. To configure, you ca...
35.372216
101
0.535706
e861d4d0aea1d58df17ba59339a6e2cb688e214d
6,258
py
Python
sktime/classification/tests/test_all_classifiers.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/tests/test_all_classifiers.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/tests/test_all_classifiers.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for classifier/regressor input output.""" __author__ = ["mloning", "TonyBagnall", "fkiraly"] import numpy as np import pytest from sklearn import clone from sktime.classification.tests._expected_outputs import ( basic_motions_proba, unit_test_proba, ) from sktime.datase...
42.571429
88
0.71093
e861db3df52d5d99838b20b7e45fea700e97c50b
4,092
py
Python
Bio/Nexus/StandardData.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/Nexus/StandardData.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/Nexus/StandardData.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright 2014 Joe Cora. # Revisions copyright 2017 Peter Cock. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Objects to represent NEXUS standard data type matrix coding....
33.818182
103
0.534946
e861edec5d9bbd292a6d054b89709ed54790de6f
617
py
Python
oscar/lib/python2.7/site-packages/factory/mogo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/factory/mogo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/factory/mogo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: See the LICENSE file. """factory_boy extensions for use with the mogo library (pymongo wrapper).""" from __future__ import unicode_literals from . import base class MogoFactory(base.Factory): """Factory for mogo objects.""" class Meta: abstract ...
22.851852
78
0.623987
e8622043c209e407567aea36f93c3302ec6917e3
2,670
py
Python
sdk/compute/azure-mgmt-imagebuilder/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-imagebuilder/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-imagebuilder/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
35.6
103
0.609363
e8622dfcbd28adb525258feae5a30d65d17bb89b
1,390
py
Python
pcwawc/JsonAbleMixin.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
17
2019-10-25T01:33:43.000Z
2022-03-21T03:31:56.000Z
pcwawc/JsonAbleMixin.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
34
2019-10-17T06:52:30.000Z
2022-01-19T12:45:43.000Z
pcwawc/JsonAbleMixin.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
4
2019-11-29T09:19:38.000Z
2021-10-13T03:12:25.000Z
#!/usr/bin/python3 # part of https://github.com/WolfgangFahl/play-chess-with-a-webcam # Json persistence import jsonpickle import os class JsonAbleMixin(object): """ allow reading and writing derived objects from a json file""" debug = False # read me from a yaml file @staticmethod def readJson(...
29.574468
69
0.581295
e862343ed16385d1d9ac867d71aea8ad6bc65e15
173
py
Python
workflow/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
1
2021-04-26T20:03:11.000Z
2021-04-26T20:03:11.000Z
workflow/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
17
2021-04-23T16:51:59.000Z
2021-12-13T21:17:41.000Z
workflow/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
null
null
null
""" application configuration """ from django.apps import AppConfig class WorkflowConfig(AppConfig): """ config for the workflow application """ name = 'workflow'
21.625
47
0.716763
e8623ee0dae820ece1874ed58ecf962b5f296d94
24,817
py
Python
python/paddle/fluid/optimizer.py
cwgis/Paddle
604a473acf39e62d107549fe5d2b505754ba2ffc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/optimizer.py
cwgis/Paddle
604a473acf39e62d107549fe5d2b505754ba2ffc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/optimizer.py
cwgis/Paddle
604a473acf39e62d107549fe5d2b505754ba2ffc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.388563
83
0.607849
e86263edefb6f6c531e3f318370c847b63ff6ec2
3,312
py
Python
speedcom/tests/test_data_extract.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
1
2019-02-20T05:11:16.000Z
2019-02-20T05:11:16.000Z
speedcom/tests/test_data_extract.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
speedcom/tests/test_data_extract.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
""" Unit tests for the data_extract.py file """ import os import unittest import speedcom.tests.context as context #import speedcom.speedcom #Variables for testing testing_dir = os.path.join(os.path.dirname(__file__), 'DATA_CLEAN_TEST_DIR/') cid_test = "ZZZ_64-17-5_ethanol.txt" name_test = "ZZZ_ethanol_ZZZ.txt" # Uni...
34.863158
79
0.6718
e862674153dc0bf0c5e9c1f0bb6ef263b8da9447
3,947
py
Python
custom_components/ble_monitor/ble_parser/mikrotik.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
383
2019-11-25T17:13:04.000Z
2020-11-12T08:47:35.000Z
custom_components/ble_monitor/ble_parser/mikrotik.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
142
2019-11-25T21:29:27.000Z
2020-11-12T16:58:01.000Z
custom_components/ble_monitor/ble_parser/mikrotik.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
65
2019-11-26T11:53:44.000Z
2020-11-11T16:37:52.000Z
"""Parser for Mikrotik BLE advertisements""" import logging import math from struct import unpack from .helpers import to_mac, to_unformatted_mac _LOGGER = logging.getLogger(__name__) def convert_8_8_to_float(val_1, val_2): """8.8 to float converter""" return val_1 + (val_2 / 256) def parse_mikrotik(self,...
35.241071
122
0.569293
e8627b050c52537bad7a671820a07094882d8732
1,159
py
Python
twittermirror.py
gjelbrim/twittermirror
b88ce2d5f008ce953b6513468c7c43b0c12261d9
[ "CC0-1.0" ]
null
null
null
twittermirror.py
gjelbrim/twittermirror
b88ce2d5f008ce953b6513468c7c43b0c12261d9
[ "CC0-1.0" ]
null
null
null
twittermirror.py
gjelbrim/twittermirror
b88ce2d5f008ce953b6513468c7c43b0c12261d9
[ "CC0-1.0" ]
null
null
null
""" main module """ import re from tweepy import TweepError import users try: sender = users.Sender() receiver = users.Receiver() except TweepError as e: print(e) print("Users authenticated.") own_last_tweet = receiver.get_own_last_tweet() users_last_tweet = sender.get_users_last_tweet() print("your l...
33.114286
99
0.746333
e8628e4a34ea881b299a41992efaa440db221f0e
195
py
Python
D 2016-2017/Oct 06/oct6_1.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
65
2017-01-19T08:03:38.000Z
2021-04-02T17:41:43.000Z
D 2016-2017/Oct 06/oct6_1.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
null
null
null
D 2016-2017/Oct 06/oct6_1.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
110
2017-01-19T08:04:14.000Z
2020-07-23T13:44:52.000Z
L=0.3 A=12 k=0.8 R = float(L)/(k*A) print "You told me that the length of the layer is "+str(L)+" m "+" and the conductibity is "+str(k)+" W/mK" print " So the resistance is "+ str(R)+ " degC/W"
27.857143
108
0.615385
e862a036843a24218d62ea576ddf3965c060cfcc
9,117
py
Python
tool/alignment/__main__.py
systems-nuts/popcorn-compiler-alpine
5c225c7d3055db83dc654b6b5525c34bbdacded1
[ "Linux-OpenIB" ]
30
2019-04-07T14:58:31.000Z
2021-05-24T19:07:20.000Z
tool/alignment/__main__.py
XRDevIEEE/popcorn-compiler
2cb2eccc0c75b5963d9fec26ad80a7b881316b1d
[ "Linux-OpenIB" ]
11
2018-07-24T19:31:26.000Z
2020-09-03T08:56:23.000Z
tool/alignment/__main__.py
XRDevIEEE/popcorn-compiler
2cb2eccc0c75b5963d9fec26ad80a7b881316b1d
[ "Linux-OpenIB" ]
17
2018-08-26T12:43:15.000Z
2022-03-18T12:08:40.000Z
""" Program entry point """ import argparse, os, sys import X86, Arm, Power, Linker, Globals from Arch import Arch from Globals import er # Instantiate one object representing each architecture and put them # in a dictionary indexed by the Arch "enum" (see Arch.py) x86_obj = X86.X86() arm_obj = Arm.Arm() power_obj = P...
36.468
78
0.656027
e862ad92dfc9908aa1788a50031cb1ce1e4da859
2,201
py
Python
vyperlogix/socials/tweepy/parsers.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/socials/tweepy/parsers.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/socials/tweepy/parsers.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
# Tweepy # Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from models import ModelFactory from utils import import_simplejson class Parser(object): def parse(self, method, payload): """ Parse the response payload and return the result. Returns a tuple that contains the r...
27.5125
90
0.62199
e862efbac6076c97afb77d57df27e79c8a4ebc02
3,268
py
Python
jupyterlab_gcsfilebrowser/tests/handlers_test.py
gclouduniverse/jupyterlab_gcsfilebrowser
89ffef0140157399e1b697ce3835669823eeab1f
[ "MIT" ]
5
2020-03-24T10:30:31.000Z
2020-09-29T20:29:17.000Z
jupyterlab_gcsfilebrowser/tests/handlers_test.py
gclouduniverse/jupyterlab_gcsfilebrowser
89ffef0140157399e1b697ce3835669823eeab1f
[ "MIT" ]
2
2020-03-17T21:56:44.000Z
2021-05-11T07:02:03.000Z
jupyterlab_gcsfilebrowser/tests/handlers_test.py
gclouduniverse/jupyterlab_gcsfilebrowser
89ffef0140157399e1b697ce3835669823eeab1f
[ "MIT" ]
2
2020-03-18T20:00:47.000Z
2021-06-30T07:36:18.000Z
import unittest import datetime from unittest.mock import Mock, MagicMock, patch from jupyterlab_gcsfilebrowser import handlers from google.cloud import storage # used for connecting to GCS from google.cloud.storage import Blob, Bucket import pprint pp = pprint.PrettyPrinter(indent=2) class TestGCSDirectory(unitte...
24.946565
69
0.595165
e8630125786d7e84b3b1a7e377436c667c4bf342
834
py
Python
bot/__init__.py
ytzagamer/MusicDownloader
f17c613f4ce764377c3266e89326af97d520d8ec
[ "MIT" ]
null
null
null
bot/__init__.py
ytzagamer/MusicDownloader
f17c613f4ce764377c3266e89326af97d520d8ec
[ "MIT" ]
null
null
null
bot/__init__.py
ytzagamer/MusicDownloader
f17c613f4ce764377c3266e89326af97d520d8ec
[ "MIT" ]
null
null
null
from os import environ,path from dotenv import load_dotenv if path.exists("config.env"): load_dotenv("config.env") API_ID = str(environ.get("API_ID")) API_HASH = str(environ.get("API_HASH")) BOT_TOKEN = str(environ.get("BOT_TOKEN")) SPOTIPY_CLIENT_ID = str(environ.get("SPOTIPY_CLIENT_ID","4fe3fecfe5334023a147251...
39.714286
100
0.768585
e86310477502dd6332307cbe117cc9372df8e7a9
46,803
py
Python
kaplot/objects/plotobjects.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/objects/plotobjects.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/objects/plotobjects.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import kaplot import kaplot.context from kaplot.objects import Container from kaplot.objects import PlotBase import numpy import math class PlotObject(PlotBase): def __init__(self, container, **kwargs): if not isinstance(container, Container): raise TypeError, "PlotObject parent should be...
34.187728
182
0.667521
e863308756fc9acecc0539e4600455d138ff9abd
269
py
Python
tests/test_mantle/ff/mothball/tff.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/test_mantle/ff/mothball/tff.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/test_mantle/ff/mothball/tff.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
from magma import wire, compile, EndCircuit from loam.boards.icestick import IceStick, Counter, TFF icestick = IceStick() icestick.Clock.on() icestick.D5.on() main = icestick.main() clock = Counter(24) tff = TFF() tff(clock.COUT) wire(tff, main.D5) EndCircuit()
14.157895
55
0.728625
e8633a828d5bbec73e3d7811e74603cd16d0f216
925
py
Python
userbot/__main__.py
zhieard/iniuserbut
5136ba5cac20ab8243beaf6cb1d9fcad911b45d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
zhieard/iniuserbut
5136ba5cac20ab8243beaf6cb1d9fcad911b45d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
zhieard/iniuserbut
5136ba5cac20ab8243beaf6cb1d9fcad911b45d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # import sys from importlib import import_module from sys import argv from telethon.errors.rpcerrorlist import PhoneNum...
23.717949
78
0.730811
e863639c0ceea6e0c29a06cd28fbc91195595838
13,586
py
Python
utilities/score/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
1
2019-11-09T04:18:58.000Z
2019-11-09T04:18:58.000Z
utilities/score/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
utilities/score/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import re import tempfile import subprocess import json import time from multiprocessing.pool import ThreadPool from nmtwizard.utility import Utility from nmtwizard.logger import get_logger from nmtwizard import tokenizer LOGGER = get_logger(__na...
44.254072
115
0.532828
e8636afc13b20bf84ae23bd8d7f97548f3588cb5
4,802
py
Python
massql/msql_cmd.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
massql/msql_cmd.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
massql/msql_cmd.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os import sys import json import pandas as pd # Making sure the root is in the path, kind of a hack sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__))) from massql import msql_parser from massql imp...
35.57037
129
0.611204
e863843ce3e0546a9e5df2d406f0d81354c8f564
5,359
py
Python
tests/test_etl_process.py
Kazanz/easy-etl
149b27ed1c50bdd80fcb16ac81a2143f2379d089
[ "MIT" ]
9
2016-06-30T15:49:43.000Z
2020-05-31T17:39:25.000Z
tests/test_etl_process.py
exit99/easy-etl
149b27ed1c50bdd80fcb16ac81a2143f2379d089
[ "MIT" ]
3
2018-04-18T07:03:30.000Z
2018-04-24T15:34:59.000Z
tests/test_etl_process.py
Kazanz/easy-etl
149b27ed1c50bdd80fcb16ac81a2143f2379d089
[ "MIT" ]
null
null
null
import pytest import os from easy_etl import ETLProcess @pytest.mark.parametrize("sql,", [ "SELECT name FROM mytable;", os.path.join(os.path.dirname(os.path.realpath(__file__)), "test.sql") ]) def test_extract(process, sql): process.extract(sql) process.load() data = [i for i in process.write_db[...
30.798851
79
0.638925
e863b7c0f518665bc6684939e5771e8d6ecb0b35
650
py
Python
carrot/__init__.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
63
2017-10-12T19:38:17.000Z
2022-02-21T15:56:17.000Z
carrot/__init__.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
93
2017-10-13T06:17:14.000Z
2022-03-02T14:25:40.000Z
carrot/__init__.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
19
2018-03-26T08:33:13.000Z
2022-03-17T04:33:49.000Z
""" Copyright 2017-2018 Christopher Davies 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,...
32.5
72
0.776923
e863db0b587a625de6a475da7f4b4e5e171d8abb
5,090
py
Python
tests/v1_and_BotUpSaliency/t07_test_PCA_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/t07_test_PCA_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/t07_test_PCA_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import json from models.layers.layers import GaborFilters from models.layers.layers import MaxPoolDepths from tests.v1_and_BotUpSaliency.utils.unflatten_idx import unflatten_idx import os from sklearn.decomposition import PCA import tensorflow as tf from tensorflow.keras.layers import Inp...
32.628205
90
0.622397
e863fca08f80b048be3b38e876279e3ca31c984f
1,851
py
Python
mturk/gen_user_utter_collection_csv.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
17
2020-09-09T02:32:14.000Z
2021-10-01T09:46:40.000Z
mturk/gen_user_utter_collection_csv.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
2
2020-12-02T09:10:03.000Z
2020-12-02T20:31:05.000Z
mturk/gen_user_utter_collection_csv.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
3
2020-10-10T09:14:43.000Z
2022-01-18T02:36:31.000Z
import argparse import logging import json import os logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO) logger = logging.getLogger() def gen_user_utter_collection_csv(args): stories = json.load(open(args.s...
27.626866
69
0.611021
e8640197dbd781ec541f38bdd8d63cbed00d3386
11,048
py
Python
JobInfo.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
JobInfo.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
JobInfo.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
import wx from Kernel import Module from LaserOperation import * from icons import icons8_laser_beam_52, icons8_route_50 from OperationPreprocessor import OperationPreprocessor _ = wx.GetTranslation class JobInfo(wx.Frame, Module): def __init__(self, *args, **kwds): # begin wxGlade: JobInf...
44.192
112
0.646633
e86408666a661ade9201764ade7022b0314cb873
1,213
py
Python
nova/tests/functional/api_sample_tests/test_admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
36.757576
78
0.681781
e8641ab25b95e3c8145dd71beb627ab8a8a84781
2,453
py
Python
baselines/normCo/normco/model/scoring.py
meghbhalerao/graph-prompt
c6b54d6ef314c9f508c79943605debfb85901001
[ "MIT" ]
null
null
null
baselines/normCo/normco/model/scoring.py
meghbhalerao/graph-prompt
c6b54d6ef314c9f508c79943605debfb85901001
[ "MIT" ]
null
null
null
baselines/normCo/normco/model/scoring.py
meghbhalerao/graph-prompt
c6b54d6ef314c9f508c79943605debfb85901001
[ "MIT" ]
null
null
null
import torch as th import torch.nn as nn from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn.functional as F eps = 1e-5 class MaxMarginLoss(nn.Module): def __init__(self, margin=1.0): super(MaxMarginLoss, self).__init__() self.margin = (margin) self....
31.050633
111
0.622095
e86432e16597ca2e82015f5e69e261d22134430e
10,826
py
Python
tests/components/device_tracker/test_ddwrt.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
tests/components/device_tracker/test_ddwrt.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
tests/components/device_tracker/test_ddwrt.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
"""The tests for the DD-WRT device tracker platform.""" import os import unittest from unittest import mock import logging import re import requests import requests_mock from homeassistant import config from homeassistant.bootstrap import setup_component from homeassistant.components import device_tracker from homeass...
41.96124
79
0.564659
e86435a0f801f9f489911bd59926c7599735b2bb
3,163
py
Python
base/utils/logging/full_logger.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
base/utils/logging/full_logger.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
base/utils/logging/full_logger.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
40.037975
91
0.563073
e8643c4e776936573d73fcbcd4f6dfec48651cac
93,469
py
Python
LakeShore/LakeShore350.py
bklebel/Cryostat-GUI
2fd523b8358777d00a4ca6db655582e87796bc64
[ "MIT" ]
null
null
null
LakeShore/LakeShore350.py
bklebel/Cryostat-GUI
2fd523b8358777d00a4ca6db655582e87796bc64
[ "MIT" ]
1
2018-10-02T21:32:55.000Z
2018-10-02T21:32:55.000Z
LakeShore/LakeShore350.py
bklebel/Cryostat-GUI
2fd523b8358777d00a4ca6db655582e87796bc64
[ "MIT" ]
3
2018-08-27T12:50:48.000Z
2018-09-28T09:08:42.000Z
"""Module containing a class to interface with a LakeShore 350 Cryogenic Temperature Controller Attributes: logger: a python logger object Classes: LakeShore350: a class for interfacing with a LakeShore350 temperature controller inherits from AbstractGPIBDeviceDriver where the low-level visa ...
41.339673
178
0.567097
e864447c33033f14a02fe5c4aa178a903fb50e63
6,013
py
Python
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_17/exp5_shorter_max_path_len.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_17/exp5_shorter_max_path_len.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_17/exp5_shorter_max_path_len.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from multiworld.envs.pygame import PickAndPlaceEnv from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.sets.rl_launcher import disco_experiment if __name__ == "__main__": variant = dict( env_id='OneObject-PickAndPlace-BigBall-RandomInit-2D-v1', ...
32.502703
148
0.53085
e86445756e8d0f9b697fd110fba62a54521844f3
15,283
py
Python
lib/sequentia/preprocessing/transforms.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
null
null
null
lib/sequentia/preprocessing/transforms.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
null
null
null
lib/sequentia/preprocessing/transforms.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
null
null
null
import numpy as np from copy import copy from tqdm.auto import tqdm from ..internals import _Validator __all__ = ['Transform', 'Equalize', 'TrimZeros', 'MinMaxScale', 'Center', 'Standardize', 'Downsample', 'Filter'] class Transform: """Base class representing a single transformation.""" def __init__(self): ...
35.54186
126
0.598508
e86472a3eb9a15289432498ba51d04544114b28e
1,103
py
Python
models/nlp/portuguese_bert.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
194
2019-04-23T10:25:13.000Z
2022-03-29T04:19:28.000Z
models/nlp/portuguese_bert.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
50
2019-06-24T20:17:51.000Z
2022-03-16T20:05:37.000Z
models/nlp/portuguese_bert.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
85
2019-03-27T12:26:43.000Z
2022-01-27T13:15:37.000Z
"""Custom Bert model pretrained on Portuguese.""" from h2oaicore.models import TextBERTModel, CustomModel class PortugueseBertModel(TextBERTModel, CustomModel): """ Custom model class for using a model from https://huggingface.co/models. Ensure that the model can be loaded using AutoModelForSequenceClass...
42.423077
116
0.726201
e8649ea774ab8972888880426ff2e91ce03085ec
196
py
Python
unittests/test_conf_2.py
arieltrevisan/python-3-from-scratch-practices
09c83edeed7b1eb28e37568ff90a16a511b54ed8
[ "MIT" ]
null
null
null
unittests/test_conf_2.py
arieltrevisan/python-3-from-scratch-practices
09c83edeed7b1eb28e37568ff90a16a511b54ed8
[ "MIT" ]
null
null
null
unittests/test_conf_2.py
arieltrevisan/python-3-from-scratch-practices
09c83edeed7b1eb28e37568ff90a16a511b54ed8
[ "MIT" ]
null
null
null
import pytest def test_conf_2_method_1(setup_only_once, setup_each_method): print("test_conf2_m1") def test_conf_2_method_2(setup_only_once, setup_each_method): print("test_conf2_m2")
19.6
61
0.806122
e864a3c72c9efb23d9b699a84a5761a13014368a
4,612
py
Python
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_vms_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_vms_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_vms_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import unittest import tempfile import os import subprocess import time # Tests for crawlers in kraken crawlers configuration. from vms_crawler import VirtualMachinesCrawler # Tests conducted with a single container running. class VirtualMachinesCrawlerTests(unittest.TestCase): SETUP_ONCE = False vmIDs =...
31.162162
79
0.538378
e864b41aeebb800abbf6554d1def10785569cf24
1,231
py
Python
tests/test_ping.py
fbertsch/mozilla-schema-creator
c932aac4b8c9d162916d42f7b6bf2f546c882bc0
[ "MIT" ]
null
null
null
tests/test_ping.py
fbertsch/mozilla-schema-creator
c932aac4b8c9d162916d42f7b6bf2f546c882bc0
[ "MIT" ]
null
null
null
tests/test_ping.py
fbertsch/mozilla-schema-creator
c932aac4b8c9d162916d42f7b6bf2f546c882bc0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import pytest import yaml from mozilla_schema_generator.config import Config from mozilla_sche...
34.194444
88
0.683997
e864ee1a3f8dd9679008ae416ed1cd72eb5514e4
276
py
Python
Experiments/pyramid_gradients.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/pyramid_gradients.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/pyramid_gradients.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
if __name__ == '__main__': # download_ffhq_thumbnails('../../data') images_dir = '../perceptual_mean_optimization/clusters/z_samples_new/6/data_neighbors6' os.makedirs('pyramid_gradients/reconstrucitons', exist_ok=True) # show_mean_gradient_map(images_dir)
30.666667
91
0.75
e8655234391087696fb885d925d33f39a1d5e922
293
py
Python
src/tango_sdp_master/SDPMaster/__init__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/tango_sdp_master/SDPMaster/__init__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/tango_sdp_master/SDPMaster/__init__.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
# -*- coding: utf-8 -*- """SDP Master device package.""" # pylint: disable=invalid-name from . import release from .SDPMaster import SDPMaster, HealthState, main __all__ = ["SDPMaster", "HealthState", "main", "release"] __version__ = release.VERSION __version_info__ = release.VERSION_INFO
24.416667
57
0.730375
e86587f2530733c028aaa3811750f0b1863b38cd
541
py
Python
test_main.py
Joel-hanson/large-file-processor
e3a6fd0c2f35c8bfc51b4df8c824c14d019a9b3c
[ "MIT" ]
1
2021-06-21T03:46:32.000Z
2021-06-21T03:46:32.000Z
test_main.py
Joel-hanson/large-file-processor
e3a6fd0c2f35c8bfc51b4df8c824c14d019a9b3c
[ "MIT" ]
null
null
null
test_main.py
Joel-hanson/large-file-processor
e3a6fd0c2f35c8bfc51b4df8c824c14d019a9b3c
[ "MIT" ]
1
2022-03-20T15:45:45.000Z
2022-03-20T15:45:45.000Z
""" Run the test using the command py.test """ import pytest # noqa from main import DataPipeline def test_table_counts(): """ Test the overall product count """ number_of_test_run = 2 # Run the pipeline twice for i in range(number_of_test_run): dp = DataPipeline() dp.run() ...
23.521739
64
0.656192
e86597e0870f520af045e5dd257ba2bea4d443ef
7,968
py
Python
examples/05-nautobot-peeringdb/adapter_nautobot.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
67
2020-10-26T14:57:53.000Z
2022-03-28T20:38:03.000Z
examples/05-nautobot-peeringdb/adapter_nautobot.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
47
2020-10-26T14:49:37.000Z
2022-03-04T11:32:10.000Z
examples/05-nautobot-peeringdb/adapter_nautobot.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
13
2020-12-06T02:32:34.000Z
2022-03-28T16:10:02.000Z
"""Diffsync adapter class for Nautobot.""" # pylint: disable=import-error,no-name-in-module import os import requests from models import RegionModel, SiteModel from diffsync import DiffSync NAUTOBOT_URL = os.getenv("NAUTOBOT_URL", "https://demo.nautobot.com") NAUTOBOT_TOKEN = os.getenv("NAUTOBOT_TOKEN", "aaaaaaaaaaaa...
39.84
117
0.595758
e865ab4156a4a656f6e4836b4cb2636db1fbd79a
7,582
py
Python
lemur/tests/test_authorities.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_authorities.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_authorities.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
import json import pytest from lemur.authorities.views import * # noqa from lemur.tests.factories import AuthorityFactory, RoleFactory from lemur.tests.vectors import VALID_ADMIN_API_TOKEN, VALID_ADMIN_HEADER_TOKEN, VALID_USER_HEADER_TOKEN def test_authority_input_schema(client, role, issuer_plugin, logged_in_user...
32.681034
151
0.70641
e865d7c467b52adca27ee9431ed43e1518c18d39
1,087
py
Python
src/infi/asi/errors.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
9
2015-01-05T08:02:34.000Z
2020-07-09T22:26:13.000Z
src/infi/asi/errors.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
3
2017-05-22T22:06:05.000Z
2020-07-11T11:10:09.000Z
src/infi/asi/errors.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-02-12T08:42:42.000Z
2020-07-09T22:27:49.000Z
from binascii import hexlify from infi.exceptools import InfiException class AsiException(InfiException): pass class AsiOSError(AsiException): pass class AsiSCSIError(AsiException): pass class AsiCheckConditionError(AsiSCSIError): def __init__(self, sense_buffer, sense_obj): super(AsiCheckC...
33.96875
120
0.689052
e865e350fa65c00d718c64dca88514d1b53e7a96
195
py
Python
fullcontact/schema/verification_schema.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
8
2020-04-13T15:53:43.000Z
2022-02-04T07:37:17.000Z
fullcontact/schema/verification_schema.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
9
2020-06-04T15:30:50.000Z
2022-02-04T07:36:39.000Z
fullcontact/schema/verification_schema.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
7
2020-09-18T16:02:43.000Z
2022-02-17T09:22:54.000Z
from .base.schema_base import BaseRequestSchema class EmailVerificationRequestSchema(BaseRequestSchema): schema_name = "Email Verification" email: str required_fields = ("email",)
21.666667
56
0.769231
e865e5f1ebc08a2d27da68bf9e73a36e0e2d1779
4,217
py
Python
part_2/python_solution/test_orderbook.py
jessmorecroft/Exchange
7b190b22304c6381db22b7722f0ce4518de3df2c
[ "MIT" ]
3
2020-06-24T20:10:25.000Z
2021-06-09T21:43:06.000Z
part_2/python_solution/test_orderbook.py
jessmorecroft/Exchange
7b190b22304c6381db22b7722f0ce4518de3df2c
[ "MIT" ]
9
2019-06-15T20:01:48.000Z
2020-06-05T03:40:29.000Z
part_2/python_solution/test_orderbook.py
jessmorecroft/Exchange
7b190b22304c6381db22b7722f0ce4518de3df2c
[ "MIT" ]
8
2017-06-15T02:09:23.000Z
2021-01-11T10:11:38.000Z
#! /usr/bin/env python import unittest import Exchange class TestOrderBook(unittest.TestCase): def test_create(self): o = Exchange.OrderBook("AUDUSD") self.assertEqual(o.instrument, "AUDUSD") self.assertEqual(o.buys, []) self.assertEqual(o.sells, []) def test_append(self):...
35.737288
62
0.577425
e865f10514d7e42387802f92dc7e97721df00faf
532
py
Python
trace_feature/core/base_execution.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/core/base_execution.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/core/base_execution.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class BaseExecution(ABC): @abstractmethod def execute(self): pass # this method will execute only a specific feature @abstractmethod def execute_feature(self, filename): pass # this method will execute a specific scenario into a specific f...
25.333333
74
0.703008
e86600528eed8433e650bc6bb4d1695610dd3644
1,669
py
Python
google-cloud-sdk/.install/.backup/lib/surface/billing/accounts/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/billing/accounts/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/billing/accounts/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google 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 by applicable law or ag...
30.907407
75
0.732774
e86606e3a87fd546582d5b02ff97edf4cf01d877
73
py
Python
pyinstaller/cli.py
VolodymyrChapman/cellpose
4a4e78cda44a0728b5bfd27b389e418679ec2b0e
[ "BSD-3-Clause" ]
504
2020-02-04T06:42:53.000Z
2022-03-31T06:13:11.000Z
pyinstaller/cli.py
VolodymyrChapman/cellpose
4a4e78cda44a0728b5bfd27b389e418679ec2b0e
[ "BSD-3-Clause" ]
457
2020-02-04T20:53:06.000Z
2022-03-30T07:30:32.000Z
pyinstaller/cli.py
VolodymyrChapman/cellpose
4a4e78cda44a0728b5bfd27b389e418679ec2b0e
[ "BSD-3-Clause" ]
208
2020-02-04T15:50:20.000Z
2022-03-31T14:57:48.000Z
from cellpose.__main__ import main if __name__ == '__main__': main()
18.25
34
0.712329
e86628bffe1f270b3c27daf8925108e5275e85c6
10,004
py
Python
tasks/any_folder/spiral.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
null
null
null
tasks/any_folder/spiral.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
null
null
null
tasks/any_folder/spiral.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
null
null
null
import sys import os import argparse from pathlib import Path import torch import numpy as np from tqdm import tqdm import imageio sys.path.append(os.path.join(sys.path[0], '../..')) from dataloader.any_folder import DataLoaderAnyFolder from utils.training_utils import set_randomness, load_ckpt_to_net from utils.pos...
46.530233
126
0.678029
e86668c5c85cbb8d077a7b994ca7695e58d5ca83
216
py
Python
MYQT_Application/assets/UI/Scripts/Settings.py
fer-moreira/MYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
1
2019-09-27T14:15:29.000Z
2019-09-27T14:15:29.000Z
MYQT_Application/assets/UI/Scripts/Settings.py
zisongbr/MYSQL_PYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
null
null
null
MYQT_Application/assets/UI/Scripts/Settings.py
zisongbr/MYSQL_PYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
5
2019-03-29T12:27:36.000Z
2020-02-08T17:21:10.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\assets\UI\Layout\Settings.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost!
24
85
0.703704
e866a818674c9d83a9f70b80a45335aa554d268f
1,559
py
Python
python/ray/rllib/examples/saving_experiences.py
bmorier/ray
0aadf11c10e11245229023eeee15019866bf33ec
[ "Apache-2.0" ]
1
2020-12-07T14:55:45.000Z
2020-12-07T14:55:45.000Z
python/ray/rllib/examples/saving_experiences.py
mengjin001/ray
0aa74fb1fd387ee5840e060f615b26f20788eee6
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/examples/saving_experiences.py
mengjin001/ray
0aa74fb1fd387ee5840e060f615b26f20788eee6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function """Simple example of writing experiences to a file using JsonWriter.""" # __sphinx_doc_begin__ import gym import numpy as np from ray.rllib.evaluation.sample_batch_builder import SampleBatchBuilder from ray.rl...
32.479167
75
0.619628
e866cb4d0f2e00f7438132417198131f2d0b3336
1,671
py
Python
Hpatches_Benchmark/ellipseoverlap.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
Hpatches_Benchmark/ellipseoverlap.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
Hpatches_Benchmark/ellipseoverlap.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 2 11:57:35 2020 @author: chenlin """ from matplotlib import pyplot as plt from shapely.geometry.point import Point from shapely import affinity from matplotlib.patches import Polygon import numpy as np def create_ellipse(center, lengths, angle=0): """ create a ...
28.322034
67
0.724117
e866e56485b900391cfebb9a617d6107c39e8ffd
235
py
Python
Snake3Equipe1/main.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
2
2021-01-24T01:04:34.000Z
2021-05-06T16:25:53.000Z
Snake3Equipe1/main.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
null
null
null
Snake3Equipe1/main.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
3
2021-01-26T21:35:43.000Z
2021-05-06T16:06:47.000Z
import pygame from menu import MainMenu import config if __name__ == "__main__": config.music_menu.play() pygame.init() pygame.display.set_caption('SnakeAI') MainMenu(640, 1280, 'Snake 3') pygame.quit() quit()
19.583333
41
0.680851
e8672f2ae425a1c141917317a166ba9455c06557
439
py
Python
api/models/gene_info.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
5
2020-07-30T02:35:20.000Z
2020-12-24T01:26:47.000Z
api/models/gene_info.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
6
2021-03-04T10:30:11.000Z
2022-03-16T16:47:47.000Z
api/models/gene_info.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
2
2020-12-08T10:05:02.000Z
2022-03-10T09:41:19.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng import sys import os import json from itertools import groupby from scipy.stats.mstats import mquantiles import numpy as np import math class GeneInfo: def __init__(self, ps, cache, assembly): ...
17.56
80
0.697039
e8674ffd9d82b3654d8addac04418f519721a6c5
751
py
Python
alipay/aop/api/response/AlipayEbppRechargeUserDetectResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayEbppRechargeUserDetectResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayEbppRechargeUserDetectResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayEbppRechargeUserDetectResponse(AlipayResponse): def __init__(self): super(AlipayEbppRechargeUserDetectResponse, self).__init__() self._check_result = None ...
28.884615
109
0.728362
e867597cdb14be68f8a7651a857e939ee560ab49
25,059
py
Python
molotov/tests/test_run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
401
2017-01-25T13:42:37.000Z
2022-03-27T21:29:18.000Z
molotov/tests/test_run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
131
2017-01-19T20:34:40.000Z
2022-03-02T12:49:32.000Z
molotov/tests/test_run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
31
2017-01-26T01:18:55.000Z
2022-03-25T15:11:42.000Z
import unittest import time import random import os import signal import asyncio from unittest.mock import patch import re from collections import defaultdict import json import io import aiohttp from molotov.api import scenario, global_setup from molotov.tests.support import ( TestLoop, coserver, dedicat...
29.446533
93
0.498144
e86771b6bd0fa10e5e9ca6565d42192d57ae8cc2
164
py
Python
src/ice/runners/__init__.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/runners/__init__.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/runners/__init__.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
""" __init__.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ __all__ = [ "command_line_runner", "qt_runner", ]
13.666667
51
0.664634
e86787d3832cdf7a873775f883aa4481250662f4
786
py
Python
models/dist_statesaving/timer.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
1
2018-09-19T14:42:28.000Z
2018-09-19T14:42:28.000Z
models/dist_statesaving/timer.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
null
null
null
models/dist_statesaving/timer.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
1
2021-01-14T12:21:35.000Z
2021-01-14T12:21:35.000Z
#!/bin/env python import sys sys.path.append("../../src/") import time sys.setrecursionlimit(10000) iters = int(sys.argv[1]) nrmodels = range(10, 150, 10) nodes = 100 import subprocess output = open('/tmp/output', 'w') for statesaving in ["custom", "deepcopy", "pickleH"]: f = open("dist_statesaving/result_" + ...
28.071429
104
0.608142
e867a8fedd1d081fc8eb6e26f6811ce304d2c916
8,892
py
Python
airflow_client/test/test_connection_test.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_connection_test.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_connection_test.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
240.324324
8,173
0.758997
e867cb158af8cb57cef2eae842b05dd020b36672
2,520
py
Python
sdk/databox/azure-mgmt-databox/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/databox/azure-mgmt-databox/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/databox/azure-mgmt-databox/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.054054
91
0.604365
e867d9eae3d05427ba3b4998c25ca2f8d43924aa
2,227
py
Python
docs/source/conf.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
23
2021-01-19T11:50:57.000Z
2021-12-12T17:20:22.000Z
docs/source/conf.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
1
2021-04-06T14:35:03.000Z
2021-06-20T08:56:15.000Z
docs/source/conf.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
8
2021-01-05T10:49:19.000Z
2021-12-12T17:20:38.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
39.070175
108
0.677144
e867e410a700f7a87aca04de53c2235e111b53b1
12,941
py
Python
python_modules/dagster/dagster_tests/scheduler_tests/test_scheduler_failure_recovery.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/scheduler_tests/test_scheduler_failure_recovery.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/scheduler_tests/test_scheduler_failure_recovery.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import multiprocessing import pendulum import pytest from dagster.core.instance import DagsterInstance from dagster.core.scheduler.instigation import TickStatus from dagster.core.storage.pipeline_run import PipelineRunStatus from dagster.core.storage.tags import PARTITION_NAME_TAG, SCHEDULED_EXECUTION_TIME_TAG from d...
39.941358
135
0.682637
e867f0fd5dbbacb3f0903118baa182f4683b88f7
9,206
py
Python
stegcrypt.py
Virodroid/ImageStegoCrypt
63eecf9254ea9a893193ab09ffcce48d54ee7c22
[ "MIT" ]
1
2021-10-30T18:13:32.000Z
2021-10-30T18:13:32.000Z
stegcrypt.py
Virodroid/ImageStegoCrypt
63eecf9254ea9a893193ab09ffcce48d54ee7c22
[ "MIT" ]
null
null
null
stegcrypt.py
Virodroid/ImageStegoCrypt
63eecf9254ea9a893193ab09ffcce48d54ee7c22
[ "MIT" ]
null
null
null
# COS738 Assignment 3 # Ezra Fielding, 3869003 import numpy as np from numpy.fft import fft2, ifft2 import tifffile from PIL import Image class StegCrypt(object): """ Information Hiding with Data Diffusion using Convolutional Encoding for Super-encryption. Hides an image, the 'Plaintext', in a chosen ...
35.137405
80
0.565935
e867f5fc280ad27517897e8e48ad756eb5a0ff98
574
py
Python
p1/interactive.py
elevenchars/numtheory
c52cf0450159c6d73f32a55a551c5f2162e9022e
[ "WTFPL" ]
1
2019-11-21T15:27:59.000Z
2019-11-21T15:27:59.000Z
p1/interactive.py
elevenchars/numtheory
c52cf0450159c6d73f32a55a551c5f2162e9022e
[ "WTFPL" ]
null
null
null
p1/interactive.py
elevenchars/numtheory
c52cf0450159c6d73f32a55a551c5f2162e9022e
[ "WTFPL" ]
null
null
null
from p1 import * # This program provides a way for me to interactively test values of m. while True: inp = input("Enter a modulus m (e to exit): ") if inp.lower() == "e": exit(0) if not inp.isdigit(): print("Please enter an integer.") continue m = int(inp) print("") p...
21.259259
71
0.580139