hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6903a4248a7ead61e31446b710de4750a3b54c9a
2,225
py
Python
tensorflow_datasets/public_api.py
facaiy/datasets
830a663e996b7b95c45acddd58ba6e6532599c0c
[ "Apache-2.0" ]
1
2019-07-23T22:05:16.000Z
2019-07-23T22:05:16.000Z
tensorflow_datasets/public_api.py
facaiy/datasets
830a663e996b7b95c45acddd58ba6e6532599c0c
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/public_api.py
facaiy/datasets
830a663e996b7b95c45acddd58ba6e6532599c0c
[ "Apache-2.0" ]
1
2019-04-29T11:44:16.000Z
2019-04-29T11:44:16.000Z
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.246377
92
0.784719
77595d1075e692ffe42d5f21d040606e8f8b0298
1,151
py
Python
user/filter.py
emreoztoklu/DSP_in_python
3b917dc753a820dd699df0172ae90028f44c64fc
[ "Unlicense" ]
null
null
null
user/filter.py
emreoztoklu/DSP_in_python
3b917dc753a820dd699df0172ae90028f44c64fc
[ "Unlicense" ]
null
null
null
user/filter.py
emreoztoklu/DSP_in_python
3b917dc753a820dd699df0172ae90028f44c64fc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 26 16:24:52 2022 @author: emreo """ from scipy import signal import matplotlib.pyplot as plt import numpy as np t = np.linspace(-1, 1, 201) f1 = 0.75 w1 = 2*np.pi*f1 f2 = 1.25 w2 = 2*np.pi*f2 f3 = 3.85 w3 = 2*np.pi*f3 s1= np.sin(w1 * t *(1.5-t)) s2= 0.1*np.sin...
18.564516
86
0.470895
62f069cf9f0837dffd198107a37944d6c144825e
6,248
py
Python
PM.py
thautwarm/Stardust
3fa3927792958c02e51e4e5a6a5c74b6b2ecf37d
[ "Apache-2.0" ]
2
2017-08-02T03:57:26.000Z
2017-10-07T01:57:42.000Z
PM.py
thautwarm/Stardust
3fa3927792958c02e51e4e5a6a5c74b6b2ecf37d
[ "Apache-2.0" ]
2
2017-06-05T12:13:24.000Z
2018-08-31T13:04:22.000Z
PM.py
thautwarm/Stardust
3fa3927792958c02e51e4e5a6a5c74b6b2ecf37d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ thautwarm committed on 5 Jun 2017 @author: misakawa """ from collections import Iterable,defaultdict import re PMRegex=re.compile('__.*__') def DefaultReturn(RetDeal=None): def outw(func): def wrapper(*args,**kwargs): try: tail...
33.772973
112
0.481594
76e8b6c3bff4bb330699523ee113e04890119813
7,577
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200501/security_partner_provider.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200501/security_partner_provider.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200501/security_partner_provider.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
42.329609
593
0.655668
42adec05338b553c89c8db2d17855ea196615b30
2,254
py
Python
venv/Lib/site-packages/IPython/html/widgets/widget_selectioncontainer.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
1
2017-12-30T20:43:28.000Z
2017-12-30T20:43:28.000Z
venv/Lib/site-packages/IPython/html/widgets/widget_selectioncontainer.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
venv/Lib/site-packages/IPython/html/widgets/widget_selectioncontainer.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
"""SelectionContainer class. Represents a multipage container that can be used to group other widgets into pages. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The...
32.666667
78
0.528394
cef60469b67ef61ce45ba209bdcab0f37066142e
455
py
Python
test/test_math_stuff.py
nchristensen/pytools
82da2e0aad6863763f1950318bcb933662020135
[ "MIT" ]
52
2015-06-23T10:30:24.000Z
2021-07-28T20:50:31.000Z
test/test_math_stuff.py
nchristensen/pytools
82da2e0aad6863763f1950318bcb933662020135
[ "MIT" ]
72
2015-10-22T18:57:08.000Z
2022-03-01T00:04:45.000Z
test/test_math_stuff.py
nchristensen/pytools
82da2e0aad6863763f1950318bcb933662020135
[ "MIT" ]
27
2015-09-14T07:24:04.000Z
2021-12-17T14:31:33.000Z
def test_variance(): data = [4, 7, 13, 16] def naive_var(data): n = len(data) return (( sum(di**2 for di in data) - sum(data)**2/n) / (n-1)) from pytools import variance orig_variance = variance(data, entire_pop=False) assert abs(naive_var(data)...
25.277778
72
0.569231
8470ca7b4c73884308e3d400198de46e7f9554fa
1,189
py
Python
spec/puzzle/examples/mim/p3_2_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
2
2020-08-18T18:43:09.000Z
2020-08-18T20:05:59.000Z
spec/puzzle/examples/mim/p3_2_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
spec/puzzle/examples/mim/p3_2_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
import astor from data import warehouse from puzzle.examples.mim import p3_2 from puzzle.problems import logic_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('p3_2'): with before.all: warehouse.save() prod_config.init() self.puzzle = p3_2.get() with afte...
28.309524
59
0.686291
6ac1326545a5ce1d88ed657a144515569602b0de
6,531
py
Python
homeassistant/helpers/check_config.py
lkollar/home-assistant
f4f7c25f744c0678b12acb2cc905894cca9f46ef
[ "Apache-2.0" ]
2
2017-08-29T15:40:44.000Z
2017-08-30T21:40:12.000Z
homeassistant/helpers/check_config.py
lkollar/home-assistant
f4f7c25f744c0678b12acb2cc905894cca9f46ef
[ "Apache-2.0" ]
3
2021-09-08T03:25:06.000Z
2022-03-12T00:58:54.000Z
homeassistant/helpers/check_config.py
lkollar/home-assistant
f4f7c25f744c0678b12acb2cc905894cca9f46ef
[ "Apache-2.0" ]
1
2020-05-12T13:35:56.000Z
2020-05-12T13:35:56.000Z
"""Helper to check the configuration file.""" from collections import OrderedDict from typing import List, NamedTuple, Optional import attr import voluptuous as vol from homeassistant import loader from homeassistant.config import ( CONF_CORE, CONF_PACKAGES, CORE_CONFIG_SCHEMA, _format_config_error, ...
34.373684
86
0.64569
de50bb1dc761deadeb4f511feaa679e125e49080
991
py
Python
src/transformers/meetup.py
muxer-dev/event-pipeline
06ba7dd05a9ece3b7dcae5bc40599b3c4c371ccb
[ "MIT" ]
1
2019-03-14T20:18:56.000Z
2019-03-14T20:18:56.000Z
src/transformers/meetup.py
muxer-dev/event-pipeline
06ba7dd05a9ece3b7dcae5bc40599b3c4c371ccb
[ "MIT" ]
29
2020-02-04T15:02:07.000Z
2020-03-18T12:02:30.000Z
src/transformers/meetup.py
muxer-dev/event-pipeline
06ba7dd05a9ece3b7dcae5bc40599b3c4c371ccb
[ "MIT" ]
null
null
null
import datetime def transform(events, location): transformed_events = [] for event in events: start = datetime.datetime.fromtimestamp(int(event["time"] / 1000)).strftime( "%Y-%m-%d %H:%M:%SZ" ) # TODO update to end time end = datetime.datetime.fromtimestamp(int(eve...
27.527778
84
0.468214
873bf7b6703ba4dbb10e4e683cc4941deb5aa003
602
py
Python
test/test_spider.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
6
2021-08-09T01:35:44.000Z
2022-02-15T08:14:29.000Z
test/test_spider.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
null
null
null
test/test_spider.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
4
2021-08-13T06:41:13.000Z
2021-12-07T15:53:56.000Z
# encoding=utf-8 import time import fastspider class TestSpider(fastspider.LightSpider): douban_url = "https://movie.douban.com/top250" def start_requests(self): yield fastspider.Request(url=self.douban_url) # yield fastspider.Request(url=self.douban_url) def parser(self, request, response): movies = resp...
24.08
71
0.686047
fa9670d2d093ebe558aaf467ecc3d30e78091c2f
2,373
py
Python
test/solutions/test_checkout.py
DPNT-Sourcecode/CHK-xeio01
9a6b9f852e51e371a603045ef8753012056b7570
[ "Apache-2.0" ]
null
null
null
test/solutions/test_checkout.py
DPNT-Sourcecode/CHK-xeio01
9a6b9f852e51e371a603045ef8753012056b7570
[ "Apache-2.0" ]
null
null
null
test/solutions/test_checkout.py
DPNT-Sourcecode/CHK-xeio01
9a6b9f852e51e371a603045ef8753012056b7570
[ "Apache-2.0" ]
null
null
null
import unittest from lib.solutions.checkout import checkout class TestCheckout(unittest.TestCase): def test_illegal_input_returns_minus_one(self): self.assertEqual( -1, checkout('1') ) def test_promo_applied_to_a(self): self.assertEqual( 250, ...
21.770642
73
0.542351
0e83289648c918844fd7c741d08479f4835f30e5
12,352
py
Python
start-training.py
staceysv/safelife
9577a8f5bece55a71ea9d069f24e6fc2c0b4fd8d
[ "Apache-2.0" ]
null
null
null
start-training.py
staceysv/safelife
9577a8f5bece55a71ea9d069f24e6fc2c0b4fd8d
[ "Apache-2.0" ]
null
null
null
start-training.py
staceysv/safelife
9577a8f5bece55a71ea9d069f24e6fc2c0b4fd8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Main entry point for starting a training job. """ import argparse import logging import os import platform import shutil import subprocess import sys import time import json import torch import numpy as np logger = logging.getLogger('training') safety_dir = os.path.realpath(os.path.dirnam...
36.116959
86
0.643701
ffed86bf13bda84ac5e2586ca3ec7f812d3be6b1
1,183
py
Python
setup.py
torms3/DataTools
8144a9485ca69dc2208bbcc20f59132def977b7a
[ "MIT" ]
null
null
null
setup.py
torms3/DataTools
8144a9485ca69dc2208bbcc20f59132def977b7a
[ "MIT" ]
null
null
null
setup.py
torms3/DataTools
8144a9485ca69dc2208bbcc20f59132def977b7a
[ "MIT" ]
2
2018-05-29T18:27:18.000Z
2018-06-01T13:36:24.000Z
from Cython.Build import cythonize # from distutils.core import Extension from distutils.sysconfig import get_python_inc from setuptools import setup, Extension import numpy import os include_dirs = [ './datatools', './datatools/backend', os.path.dirname(get_python_inc()), numpy.get_include(), ] ex...
22.75
66
0.610313
665e47cb7fcf43393dde27abaeda050b080b1cb8
11,614
py
Python
lbry/scripts/wallet_server_monitor.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/scripts/wallet_server_monitor.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/scripts/wallet_server_monitor.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
import sys import json import random import asyncio import argparse import traceback from time import time from datetime import datetime try: import aiohttp import psycopg2 import slack except ImportError: print(f"To run {sys.argv[0]} you need to install aiohttp, psycopg2 and slackclient:") print(f...
34.981928
125
0.572585
efff51da9c8609287140cfb126779e9e0c1e4e23
723
py
Python
StackApp/env/lib/python2.7/site-packages/pylint/test/input/func_first_arg.py
jonathanmusila/StackOverflow-Lite
a9a03f129592c6f741eb4d1e608ca2db0e40bf11
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
virtual/lib/python3.6/site-packages/pylint/test/input/func_first_arg.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/pylint/test/input/func_first_arg.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# pylint: disable=C0111, W0232 """check for methods first arguments """ __revision__ = 0 class Obj(object): # C0202, classmethod def __new__(something): pass # C0202, classmethod def class1(cls): pass class1 = classmethod(class1) def class2(other): pass class2 = ...
16.813953
41
0.608575
df5bf95c3bf4348ed2b8a8a2ee595205e45af97c
9,132
py
Python
salt/modules/win_pkg.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
1
2016-09-16T17:12:11.000Z
2016-09-16T17:12:11.000Z
salt/modules/win_pkg.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
salt/modules/win_pkg.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
''' A module to manage software on Windows ''' try: import pythoncom import win32com.client import win32api import win32con except: pass def __virtual__(): ''' Set the virtual pkg module if the os is Windows ''' return 'pkg' if __grains__['os'] == 'Windows' else False def _list_re...
28.448598
79
0.585633
dd4a2666d351424876e9f4ec11510640567a1128
21,310
py
Python
sphinx_js/jsdoc.py
nemetris/sphinx-js
479b398c82aa40fdd8abe73e4207768d8e2c6fad
[ "MIT" ]
null
null
null
sphinx_js/jsdoc.py
nemetris/sphinx-js
479b398c82aa40fdd8abe73e4207768d8e2c6fad
[ "MIT" ]
null
null
null
sphinx_js/jsdoc.py
nemetris/sphinx-js
479b398c82aa40fdd8abe73e4207768d8e2c6fad
[ "MIT" ]
null
null
null
"""JavaScript analyzer Analyzers run jsdoc or typedoc or whatever, squirrel away their output, and then lazily constitute IR objects as requested. """ from codecs import getreader, getwriter from collections import defaultdict from errno import ENOENT from json import load, dumps from os.path import join, normpath, r...
41.378641
223
0.629564
0c47d07c176658db36bcda66502601e1a651c17e
6,243
py
Python
plumbing/database.py
svetlyak40wt/plumbing
928e7900d8b55f3ae031c3acfeeb374150df268a
[ "MIT" ]
null
null
null
plumbing/database.py
svetlyak40wt/plumbing
928e7900d8b55f3ae031c3acfeeb374150df268a
[ "MIT" ]
null
null
null
plumbing/database.py
svetlyak40wt/plumbing
928e7900d8b55f3ae031c3acfeeb374150df268a
[ "MIT" ]
1
2019-06-10T16:14:24.000Z
2019-06-10T16:14:24.000Z
# Built-in modules # import sqlite3 # Internal modules # from common import get_next_item from color import Color from autopaths import FilePath from cache import property_cached ################################################################################ def convert_to_sql(source, dest, keys, values, sql_field_t...
38.776398
114
0.592504
f12333a518a594663621ac78f99839630d069702
416
py
Python
wastecoinapp/migrations/0002_auto_20200603_1731.py
BuildForSDG/wastecoinBackup
32899d9b3d2f36eb44ded52a341cf9d4e227f8cc
[ "MIT" ]
null
null
null
wastecoinapp/migrations/0002_auto_20200603_1731.py
BuildForSDG/wastecoinBackup
32899d9b3d2f36eb44ded52a341cf9d4e227f8cc
[ "MIT" ]
7
2020-06-03T19:08:42.000Z
2021-09-22T19:08:32.000Z
wastecoinapp/migrations/0002_auto_20200603_1731.py
BuildForSDG/wastecoinBackup
32899d9b3d2f36eb44ded52a341cf9d4e227f8cc
[ "MIT" ]
1
2020-06-03T19:22:39.000Z
2020-06-03T19:22:39.000Z
# Generated by Django 2.2.4 on 2020-06-03 16:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wastecoinapp', '0001_initial'), ] operations = [ migrations.AlterField( model_name='otp', name='otp_reset_code', ...
21.894737
81
0.608173
9b5b3c7a825d40d5fec975266da0f1cc9d966c18
1,317
py
Python
baseline/sota_semantic_hashing/get_best_sem_acc_stterror.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
32
2020-01-03T09:53:03.000Z
2021-09-07T07:23:26.000Z
baseline/sota_semantic_hashing/get_best_sem_acc_stterror.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
null
null
null
baseline/sota_semantic_hashing/get_best_sem_acc_stterror.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
6
2020-01-21T06:50:21.000Z
2021-01-22T08:04:00.000Z
dir_path = './results/results_trigram_hash_stterror_768_10runs/' runs = 10 for tts_stt in ["gtts_witai", "macsay_witai"]: str_write = '' for dataset_name in ['chatbot', 'snips']: str_write += dataset_name + '\n' acc_avg = 0 acc_max = 0 for run in range(1, runs + 1): ...
34.657895
73
0.488231
af902054e01d415904c7aa772259191b98ceebf1
10,436
py
Python
generators/cppevent.py
Lomadriel/xpp
d2ff2aaba6489f606bbcc090c0a78a8a3f9fcd1f
[ "MIT" ]
null
null
null
generators/cppevent.py
Lomadriel/xpp
d2ff2aaba6489f606bbcc090c0a78a8a3f9fcd1f
[ "MIT" ]
null
null
null
generators/cppevent.py
Lomadriel/xpp
d2ff2aaba6489f606bbcc090c0a78a8a3f9fcd1f
[ "MIT" ]
null
null
null
import sys # stderr from utils import \ get_namespace, \ get_ext_name, \ _n_item, \ _ext, \ _reserved_keywords from resource_classes import _resource_classes _field_accessor_template_specialization = \ '''\ template<typename Connection> template<> %s %s<Connection>::%s<%s>(voi...
27.391076
111
0.483039
3e55297e77b69676733cdacad032163a9b15713c
12,506
py
Python
aries_cloudagent/issuer/indy.py
BoschDigitalSolutions/aries-cloudagent-python
1b7d209cc70f01593c5c78be512af00c2cc1c9a8
[ "Apache-2.0" ]
1
2020-07-02T12:36:32.000Z
2020-07-02T12:36:32.000Z
aries_cloudagent/issuer/indy.py
BoschDigitalSolutions/aries-cloudagent-python
1b7d209cc70f01593c5c78be512af00c2cc1c9a8
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/issuer/indy.py
BoschDigitalSolutions/aries-cloudagent-python
1b7d209cc70f01593c5c78be512af00c2cc1c9a8
[ "Apache-2.0" ]
null
null
null
"""Indy issuer implementation.""" import json import logging from typing import Sequence, Tuple import indy.anoncreds import indy.blob_storage from indy.error import AnoncredsRevocationRegistryFullError, IndyError, ErrorCode from ..messaging.util import encode from .base import ( BaseIssuer, IssuerError, ...
34.738889
88
0.589717
d4843b9fca3844663ce331ec5e6e5404bb121d07
2,194
py
Python
tests/test_custom_backend.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
21
2015-01-01T02:06:25.000Z
2022-03-19T13:57:42.000Z
tests/test_custom_backend.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
2
2015-01-07T07:38:53.000Z
2015-01-07T07:39:01.000Z
tests/test_custom_backend.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
7
2015-01-03T19:45:14.000Z
2022-03-19T13:57:44.000Z
import os import unittest from unittest import mock from alligator.backends.sqlite_backend import Client as SQLiteClient from alligator.constants import ALL from alligator.gator import Gator, Options from alligator.tasks import Task def add(a, b): return a + b class CustomBackendTestCase(unittest.TestCase): ...
28.128205
72
0.638104
bb3ad575d98b4193ec3677662dd2a38683fa6742
1,674
py
Python
flow/scenarios/loop/loop_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
null
null
null
flow/scenarios/loop/loop_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
null
null
null
flow/scenarios/loop/loop_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
1
2020-08-24T07:41:49.000Z
2020-08-24T07:41:49.000Z
from flow.scenarios.base_scenario import Scenario from flow.core.params import InitialConfig from flow.core.traffic_lights import TrafficLights ADDITIONAL_NET_PARAMS = { # length of the ring road "length": 230, # number of lanes "lanes": 1, # speed limit for all edges "speed_limit": 30, # r...
30.436364
79
0.599164
f500d0d79758fd599f53516496c0c752844a95ac
4,590
py
Python
python/create-hole-example.py
ianksalter/shv
e0df96a21060df224ebcf1679d1f956bf9462445
[ "MIT" ]
null
null
null
python/create-hole-example.py
ianksalter/shv
e0df96a21060df224ebcf1679d1f956bf9462445
[ "MIT" ]
null
null
null
python/create-hole-example.py
ianksalter/shv
e0df96a21060df224ebcf1679d1f956bf9462445
[ "MIT" ]
null
null
null
import bpy # Delete default cube bpy.ops.object.delete(use_global=False) # Ensure we are using the metric system bpy.context.scene.unit_settings.system = 'METRIC' wall_1_location = (0, 0, 1.5) wall_1_scale = (2.5, 0.1, 1.5) hole_1_x_start = 1 # x distance from the x coordinate of the least vertex hole_1_z_start = 0...
36.141732
114
0.720044
8c5ae485dad12246f288f49d02aaee0835ce3e60
2,132
py
Python
arkane/encorr/__init__.py
tza0035/RMG-Py
38c49f7107d1b19e4a534408a1040ddd313b8596
[ "MIT" ]
250
2015-06-06T23:32:00.000Z
2022-03-22T16:45:16.000Z
arkane/encorr/__init__.py
tza0035/RMG-Py
38c49f7107d1b19e4a534408a1040ddd313b8596
[ "MIT" ]
1,781
2015-05-26T23:52:00.000Z
2022-03-31T19:07:54.000Z
arkane/encorr/__init__.py
tza0035/RMG-Py
38c49f7107d1b19e4a534408a1040ddd313b8596
[ "MIT" ]
161
2015-06-02T14:28:59.000Z
2022-03-02T19:37:14.000Z
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
64.606061
79
0.463884
2f1882f06fe40999e75b82692f4409f879626948
99
py
Python
pageNotFound/apps.py
loribonna/EsameLDPython
02f671d0813e4e3cfed5a977018ab295b8675d60
[ "MIT" ]
null
null
null
pageNotFound/apps.py
loribonna/EsameLDPython
02f671d0813e4e3cfed5a977018ab295b8675d60
[ "MIT" ]
null
null
null
pageNotFound/apps.py
loribonna/EsameLDPython
02f671d0813e4e3cfed5a977018ab295b8675d60
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PagenotfoundConfig(AppConfig): name = 'pageNotFound'
16.5
36
0.777778
5be419f807bd774ecdbc6ca019cc481d3d62db5f
4,294
py
Python
tests/conftest.py
luiscastilho/toute
56207d3d92b8bc1066e115c285cf79f96be3e249
[ "MIT" ]
3
2021-01-04T02:12:33.000Z
2021-09-22T14:41:39.000Z
tests/conftest.py
luiscastilho/toute
56207d3d92b8bc1066e115c285cf79f96be3e249
[ "MIT" ]
6
2020-08-04T22:34:12.000Z
2020-10-10T12:40:14.000Z
tests/conftest.py
luiscastilho/toute
56207d3d92b8bc1066e115c285cf79f96be3e249
[ "MIT" ]
1
2020-08-04T21:59:43.000Z
2020-08-04T21:59:43.000Z
# content of conftest.py import pytest import elasticsearch.helpers as eh_original from toute import Document from toute.fields import IntegerField, KeywordField, FloatField DOUBLE_ID_FIELD = "double_id" _INDEX = 'index' _DOC_TYPE = 'doc_type' class ES(object): test_id = 100 test_ids = [100, 101] def i...
22.134021
70
0.509781
a44ee8ece1aefc03a797169be151684cffc8336a
194
py
Python
oprogramowanie_1/Zadanie01.py
Pervicorn/oprogramowanie
c17d8511d4dd650694b291d7cb904831a2e5b0ea
[ "MIT" ]
null
null
null
oprogramowanie_1/Zadanie01.py
Pervicorn/oprogramowanie
c17d8511d4dd650694b291d7cb904831a2e5b0ea
[ "MIT" ]
null
null
null
oprogramowanie_1/Zadanie01.py
Pervicorn/oprogramowanie
c17d8511d4dd650694b291d7cb904831a2e5b0ea
[ "MIT" ]
1
2020-10-21T11:31:11.000Z
2020-10-21T11:31:11.000Z
# -*- coding: utf-8 -*- # Zadanie 1 --------------------------------- cel = float(input('Proszę podać temperaturę w °C: ')) fah = (cel * (9/5)) + 32 print('\n') print(cel, '°C =', fah, '°F')
19.4
53
0.43299
9cc6a015fbaa1a299af1e67b872f86563cabd9c7
19,365
py
Python
lib_pypy/pyrepl/unix_console.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
4
2019-02-11T06:58:43.000Z
2020-03-15T14:12:32.000Z
lib_pypy/pyrepl/unix_console.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib_pypy/pyrepl/unix_console.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# Copyright 2000-2010 Michael Hudson-Doyle <micahel@gmail.com> # Antonio Cuni # Armin Rigo # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fe...
34.033392
83
0.552905
9f452377f3e83ba3f42bea1df3b8eea68f1c57df
5,063
py
Python
examples/plot_lcmv_decoding.py
wmvanvliet/workbench
3f299f820fdc8e4fb9bf3db31a50cb590040cead
[ "BSD-3-Clause" ]
null
null
null
examples/plot_lcmv_decoding.py
wmvanvliet/workbench
3f299f820fdc8e4fb9bf3db31a50cb590040cead
[ "BSD-3-Clause" ]
null
null
null
examples/plot_lcmv_decoding.py
wmvanvliet/workbench
3f299f820fdc8e4fb9bf3db31a50cb590040cead
[ "BSD-3-Clause" ]
null
null
null
#encoding: utf-8 """ Decoding with a spatio-temporal LCMV beamformer =============================================== This example will demonstrate a simple decoder based on an LCMV beamformer applied to the MNE-Sample dataset. This dataset contains MEG recordings of a subject being presented with audio beeps on either...
39.554688
79
0.639937
06f8745efe290149be73d6a4f53485386e6d4a44
8,458
py
Python
regionator/parse_object_db.py
rootlabs/neohabitat
0600dbee95f6cf95cd24e5615d4f15af6508ac6d
[ "MIT" ]
null
null
null
regionator/parse_object_db.py
rootlabs/neohabitat
0600dbee95f6cf95cd24e5615d4f15af6508ac6d
[ "MIT" ]
null
null
null
regionator/parse_object_db.py
rootlabs/neohabitat
0600dbee95f6cf95cd24e5615d4f15af6508ac6d
[ "MIT" ]
null
null
null
''' Parse the MC_object database from the Habitat Stratus backup. There are still lots of unknowns: * Many objects have container 0x20202020. They appear to be unused, but it's unclear why. * Some address strings have unprintable characters. It's unclear if this was intentional or garbage data. * Matchbook (class...
31.095588
79
0.537952
1e9d1c8bf1e53ebc7c858c51bab0fccc892933dd
29,818
py
Python
openstackclient/tests/identity/v3/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/identity/v3/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/identity/v3/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Nebula 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...
32.166127
79
0.574049
b8bf7b390f3371e0d1e26f3ef7f13b6c3bea39f0
749
py
Python
tests/wait_server.py
Uxio0/psycogreen
6674b71955f0fb1b526beb0cd4aebd8d1c42f4d0
[ "BSD-3-Clause" ]
65
2020-02-23T07:04:45.000Z
2022-03-08T07:23:28.000Z
tests/wait_server.py
Uxio0/psycogreen
6674b71955f0fb1b526beb0cd4aebd8d1c42f4d0
[ "BSD-3-Clause" ]
4
2020-07-20T09:17:49.000Z
2021-10-14T08:39:25.000Z
tests/wait_server.py
Uxio0/psycogreen
6674b71955f0fb1b526beb0cd4aebd8d1c42f4d0
[ "BSD-3-Clause" ]
3
2020-03-12T12:02:18.000Z
2022-01-08T21:26:41.000Z
#!/usr/bin/env python """A server to test with blocking I/O.""" # Copyright (C) 2010-2020 Daniele Varrazzo <daniele.varrazzo@gmail.com> # All rights reserved. See COPYING file for details. from __future__ import print_function import time from wsgiref.simple_server import make_server def wait_app(environ, start_r...
24.16129
71
0.683578
da2125b5c553c284e6859f4cbb50f0832750ee9c
426
py
Python
07_07_scrolling.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
26
2015-04-28T14:34:14.000Z
2021-12-03T21:29:29.000Z
07_07_scrolling.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
null
null
null
07_07_scrolling.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
27
2015-09-06T16:45:33.000Z
2021-03-26T15:58:51.000Z
#07_07_scrolling.py from tkinter import * class App: def __init__(self, master): scrollbar = Scrollbar(master) scrollbar.pack(side=RIGHT, fill=Y) text = Text(master, yscrollcommand=scrollbar.set) text.pack(side=LEFT, fill=BOTH) text.insert(END, 'word ' * 1000) scr...
22.421053
57
0.65493
af0d6ac994677e3a7505fc88c1ca3bc27aa2c02e
6,458
py
Python
ssc/DR_random.py
cdslabamotong/USCO-Solver
6fd61cf03db44ebc778bcf51b546f37f431e5ae9
[ "MIT" ]
1
2021-12-09T04:24:25.000Z
2021-12-09T04:24:25.000Z
ssc/DR_random.py
cdslabamotong/USCO-Solver
6fd61cf03db44ebc778bcf51b546f37f431e5ae9
[ "MIT" ]
null
null
null
ssc/DR_random.py
cdslabamotong/USCO-Solver
6fd61cf03db44ebc778bcf51b546f37f431e5ae9
[ "MIT" ]
null
null
null
""" ============================== ssc random method # License: BSD 3-clause ============================== """ import numpy as np from DR_one_slack_ssvm import OneSlackSSVM from DR import (DR_Utils, DR_InputInstance) from basic_Utils import (Utils) from basic_USCO import (Model) import multiprocessing import argparse...
31.656863
174
0.607773
a66d7c5203999d338a5d8fb6b97722d7017913db
435
py
Python
python/venv/Scripts/pip3.8-script.py
namseokyoo/homework
458aef509ba7b6483b72f319e23d6fde2f732f76
[ "MIT" ]
1
2020-03-30T01:17:14.000Z
2020-03-30T01:17:14.000Z
python/venv/Scripts/pip3.8-script.py
namseokyoo/homework
458aef509ba7b6483b72f319e23d6fde2f732f76
[ "MIT" ]
1
2020-04-05T08:10:17.000Z
2020-04-06T10:36:41.000Z
python/venv/Scripts/pip3.8-script.py
namseokyoo/homework
458aef509ba7b6483b72f319e23d6fde2f732f76
[ "MIT" ]
null
null
null
#!C:\Users\Namseok\Desktop\Sparta\homework\homework\python\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex...
33.461538
82
0.675862
c3b74ae0a96ccf4ef1bece678abe2d8f019399cf
2,344
py
Python
studentPerformance.py
ManasRaturi/C109
af957b188b80ac2adcea7ce14e2cf4e8296acaf4
[ "MIT" ]
null
null
null
studentPerformance.py
ManasRaturi/C109
af957b188b80ac2adcea7ce14e2cf4e8296acaf4
[ "MIT" ]
null
null
null
studentPerformance.py
ManasRaturi/C109
af957b188b80ac2adcea7ce14e2cf4e8296acaf4
[ "MIT" ]
null
null
null
import plotly.figure_factory as ff import pandas as pd import csv import plotly.graph_objects as go import random import statistics df = pd.read_csv("StudentPerformance.csv") data = df["reading score"].tolist() mean = sum(data) / len(data) std_deviation = statistics.stdev(data) median = statistics.median(data) mode =...
63.351351
142
0.790956
bec56a7becd23889ad4d3b632fef55dad21dd01b
4,302
py
Python
examples/filters-general/voxelize-points.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
145
2018-07-20T21:46:27.000Z
2022-02-21T02:23:06.000Z
examples/filters-general/voxelize-points.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
50
2018-06-14T22:38:27.000Z
2021-11-29T03:38:08.000Z
examples/filters-general/voxelize-points.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
34
2018-07-27T07:48:20.000Z
2022-03-23T06:39:57.000Z
""" Voxelize Points ~~~~~~~~~~~~~~~ This example will demonstrate how to connect a set of points defined on a regular grid to create a `vtkUnstructuredGrid` which can be used to perform volumetric operations. This example demos :class:`PVGeo.filters.VoxelizePoints` """ # sphinx_gallery_thumbnail_number = 2 import py...
39.833333
82
0.626453
aaea3c9e09589bc1e2b05764e4255aa29f53b560
2,264
py
Python
samples/gae/main.py
goodtune/pycloudinary
741c13ba94ecbd7833fc3a1c770e9f6de44d8d2c
[ "MIT" ]
199
2015-01-11T14:46:06.000Z
2022-03-22T15:37:23.000Z
samples/gae/main.py
goodtune/pycloudinary
741c13ba94ecbd7833fc3a1c770e9f6de44d8d2c
[ "MIT" ]
132
2015-01-21T08:13:27.000Z
2022-03-04T14:36:44.000Z
samples/gae/main.py
goodtune/pycloudinary
741c13ba94ecbd7833fc3a1c770e9f6de44d8d2c
[ "MIT" ]
117
2015-02-04T04:23:59.000Z
2022-03-19T11:30:34.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
36.516129
118
0.646201
823f8ae60aa199d870c42169ad6861e9688ec04f
200
py
Python
agdss/settings/dev-suryadhir.py
nemaderinku/deepgis
807567af739adfb7f2c7bc7e523f6b987cb6a0a9
[ "Apache-2.0" ]
4
2019-08-12T20:57:52.000Z
2022-01-06T19:31:27.000Z
agdss/settings/dev-suryadhir.py
nemaderinku/deepgis
807567af739adfb7f2c7bc7e523f6b987cb6a0a9
[ "Apache-2.0" ]
32
2019-10-11T09:30:18.000Z
2021-02-02T17:32:12.000Z
agdss/settings/dev-suryadhir.py
nemaderinku/deepgis
807567af739adfb7f2c7bc7e523f6b987cb6a0a9
[ "Apache-2.0" ]
2
2019-08-14T06:25:55.000Z
2020-02-17T05:20:31.000Z
from agdss.settings.common import * #Note: Include a '/' at end of folder names STATIC_ROOT = "/Users/suryadhir/Desktop/" LABEL_FOLDER_NAME='temp/' LABEL_AVERAGE_FOLDER_NAME='temp_averages/'
25
44
0.75
1b03a3aef2a1a61033cf65c2c2a28e5f7634b141
12,705
py
Python
reviewboard/webapi/tests/test_webhook.py
davidt/reviewboard
66b08d06aec9be921e737b99c5ab78acc8b7a6fe
[ "MIT" ]
1
2017-01-16T09:39:15.000Z
2017-01-16T09:39:15.000Z
reviewboard/webapi/tests/test_webhook.py
davidt/reviewboard
66b08d06aec9be921e737b99c5ab78acc8b7a6fe
[ "MIT" ]
null
null
null
reviewboard/webapi/tests/test_webhook.py
davidt/reviewboard
66b08d06aec9be921e737b99c5ab78acc8b7a6fe
[ "MIT" ]
1
2018-01-15T19:13:49.000Z
2018-01-15T19:13:49.000Z
from __future__ import unicode_literals from django.utils import six from djblets.testing.decorators import add_fixtures from djblets.webapi.errors import INVALID_FORM_DATA from reviewboard.notifications.models import WebHookTarget from reviewboard.site.models import LocalSite from reviewboard.webapi.resources import...
35.193906
78
0.574105
a4cf2f2c60fb793d37bfc54c78d55510a3e552a7
2,826
py
Python
hyperbox/networks/repnas/utils.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/networks/repnas/utils.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/networks/repnas/utils.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
from hyperbox.mutables.spaces import OperationSpace from numpy.lib.arraysetops import isin import torch import torch.nn as nn # from .rep_ops import * from hyperbox.networks.repnas.rep_ops import * def fuse(candidates, weights, kernel_size=3): k_list = [] b_list = [] for i in range(len(candidates)): ...
38.712329
91
0.58351
bef560a89b5a53789b765d1a67074dcaabfb5af9
12,779
py
Python
lib/nest_client/entities/base.py
dskrypa/nest-client
361ef2fb91d18151bbf8f0aa8510652dcec95d9d
[ "Apache-2.0" ]
null
null
null
lib/nest_client/entities/base.py
dskrypa/nest-client
361ef2fb91d18151bbf8f0aa8510652dcec95d9d
[ "Apache-2.0" ]
null
null
null
lib/nest_client/entities/base.py
dskrypa/nest-client
361ef2fb91d18151bbf8f0aa8510652dcec95d9d
[ "Apache-2.0" ]
null
null
null
""" Classes that represent Nest Structures, Users, Devices/Thermostats, etc. :author: Doug Skrypa """ import logging from datetime import datetime from threading import RLock from typing import TYPE_CHECKING, Any, Union, Optional, TypeVar, Type, Callable from ..constants import BUCKET_CHILD_TYPES from ..exceptions i...
39.934375
118
0.622271
b7f950d5819720cac0e3b02a614e5bfafe0f239d
3,603
py
Python
test/functional/mining_getblocktemplate_longpoll.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The TNGC Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test longpolling with getblocktemplate.""" from decimal import Decimal import random import threading fr...
43.939024
134
0.679711
eabbf15760ccc9555acc8b8c43094483bfd2ffa9
889
py
Python
assets/guessing-game-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/guessing-game-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/guessing-game-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
# Guessing game (step 2) # Store off the computer's target number. # We're using a string here, instead of an integer, so we can # directly compare it to the return of raw_input() (the user's typed-in guess). my_number = 4 # We need to declare the user's guess variable to use it in the while loop # below, but don't w...
34.192308
80
0.701912
83084c41fa388009717a7266fe3dd7de5a4bf0b9
598
py
Python
mongoengine_plus/models/event_handlers.py
cuenca-mx/mongoengine-plus
01e55db2af58477bac2621ff51708daae3416268
[ "MIT" ]
3
2020-12-11T16:48:44.000Z
2021-03-29T00:05:57.000Z
agave/lib/mongoengine/event_handlers.py
cuenca-mx/agave
d4719bdbab8e200c98d206475df6adb275e9fdcc
[ "MIT" ]
115
2020-08-26T13:26:07.000Z
2022-03-31T23:58:22.000Z
agave/lib/mongoengine/event_handlers.py
cuenca-mx/agave
d4719bdbab8e200c98d206475df6adb275e9fdcc
[ "MIT" ]
null
null
null
import datetime as dt from typing import Any from blinker import NamedSignal from mongoengine import signals def handler(event: NamedSignal): """ http://docs.mongoengine.org/guide/signals.html?highlight=update Signal decorator to allow use of callback functions as class decorators """ def de...
20.62069
67
0.67893
d4a812bc698ec232379ecda87e57e373fb24c1be
7,298
py
Python
sdks/python/apache_beam/io/gcp/gcsio_integration_test.py
bobingm/beam
7dce40187f939424b8249c2c21eaeb4c70c26d31
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/io/gcp/gcsio_integration_test.py
bobingm/beam
7dce40187f939424b8249c2c21eaeb4c70c26d31
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/io/gcp/gcsio_integration_test.py
bobingm/beam
7dce40187f939424b8249c2c21eaeb4c70c26d31
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-06-03T19:54:48.000Z
2021-06-03T19:54:48.000Z
# # 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 License, Version 2.0 # (the "License"); you may not us...
36.128713
79
0.725404
7c8da78924dd44a43ffd3624bc13d80fb1513ea3
3,977
py
Python
bot/ext/pictionary/src/anti_abuse.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
bot/ext/pictionary/src/anti_abuse.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
bot/ext/pictionary/src/anti_abuse.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
import time class AntiAbuse: def __init__(self): self.watching_sessions = {} def start_watching_session(self, guild_id, channel_id, rounds, members): session_id = str(guild_id)+str(channel_id) self.watching_sessions[session_id] = (rounds, members, time.time()) def flag_suspicious...
40.581633
268
0.599447
cb37e3dbc9d09ffd27e893676207ddcded385519
3,816
py
Python
work_unit/watchfile_db.py
rnov/Fingerpay
c66667f8dd3a1bb2f66c0746c20de8677251af4d
[ "MIT" ]
1
2016-11-17T21:50:47.000Z
2016-11-17T21:50:47.000Z
work_unit/watchfile_db.py
rnov/Fingerpay
c66667f8dd3a1bb2f66c0746c20de8677251af4d
[ "MIT" ]
2
2016-11-17T19:43:13.000Z
2016-11-17T21:34:04.000Z
work_unit/watchfile_db.py
rnov/Fingerpay
c66667f8dd3a1bb2f66c0746c20de8677251af4d
[ "MIT" ]
null
null
null
import sys import os import os.path import logging import linecache import time #sys.path.remove('/usr/lib/python2.7/site-packages') # para test, probar dependencias custom_path = '{0}/{1}' sys.path.insert(1, custom_path.format(os.getcwd(), 'depen_packages')) sys.path.insert(1, custom_path.format(os.getcwd(), 'payfi')...
38.545455
118
0.649895
fdebae8d49449bf0224d1a676d5b5121d3b27b8e
4,505
py
Python
pymc/deprecator.py
mjhajharia/pymc3
f1dbc5f07a49744a0d52da77b082dea94987d27b
[ "Apache-2.0" ]
null
null
null
pymc/deprecator.py
mjhajharia/pymc3
f1dbc5f07a49744a0d52da77b082dea94987d27b
[ "Apache-2.0" ]
null
null
null
pymc/deprecator.py
mjhajharia/pymc3
f1dbc5f07a49744a0d52da77b082dea94987d27b
[ "Apache-2.0" ]
null
null
null
import functools import inspect import warnings import regex as re import textwrap def deprecator(reason=None, version=None,action='deprecate', deprecated_args=None, docs=True): """ PyMC deprecation helper. This decorator emits deprecated warnings. """ if deprecated_args is not None: depre...
39.517544
141
0.564928
cbe3ce7aee7f59834a1c767d68bd8f5b4a11affc
451
py
Python
devices/urls.py
j-windsor/iRiot-WebApp
2af059f88bd010b98e50b9ee593c89027dcc53e0
[ "MIT" ]
null
null
null
devices/urls.py
j-windsor/iRiot-WebApp
2af059f88bd010b98e50b9ee593c89027dcc53e0
[ "MIT" ]
null
null
null
devices/urls.py
j-windsor/iRiot-WebApp
2af059f88bd010b98e50b9ee593c89027dcc53e0
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^update/$', views.update, name='update'), url(r'^new/$', views.new, name='new'), url(r'^(?P<room_id>[0-9]+)/manage/$', views.manage, name='manage'), url(r'^(?P<room_id>[0-9]+)/remove_device/(?P<device_id>[0-9]+)$', views.remove...
37.583333
113
0.636364
107d2e648d67ee5fc83ce06e05d412efb2e98bc1
1,063
py
Python
Owner_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
Owner_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
Owner_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
import sys import os import time import solcx from solcx import compile_files from logzero import logger from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:7545')) # GANACHE w3.eth.defaultAccount = w3.eth.accounts[0] print('install solcx 0.8.0..') solcx.install_solc('0.8.0') def deploy(contract_file,...
29.527778
71
0.761994
5449e9a22bb55ff31210acb04bee6393e78a52b4
10,775
py
Python
etsin_finder/rems_service.py
tahme/etsin-finder
ee9207d1af0e6bf40adde9b28e92105e6bbe19df
[ "MIT" ]
null
null
null
etsin_finder/rems_service.py
tahme/etsin-finder
ee9207d1af0e6bf40adde9b28e92105e6bbe19df
[ "MIT" ]
null
null
null
etsin_finder/rems_service.py
tahme/etsin-finder
ee9207d1af0e6bf40adde9b28e92105e6bbe19df
[ "MIT" ]
null
null
null
# This file is part of the Etsin service # # Copyright 2017-2018 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland <servicedesk@csc.fi> # :license: MIT """Used for performing operations related to Fairdata Rems""" from requests import request, HTTPError from flask...
38.345196
148
0.638051
e3bb9b1cce00a22f0495fbdf5a953d3c7d1075dd
185
py
Python
Hackerrank/Contests/Project Euler/euler001.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Contests/Project Euler/euler001.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Contests/Project Euler/euler001.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
for _ in range(int(input())): n = int(input()) occ3, occ5, occ15 = (n-1)//3, (n-1)//5, (n-1)//15 print(3*(occ3*(occ3+1))//2 + 5*(occ5*(occ5+1))//2 - 15*(occ15*(occ15+1))//2)
46.25
80
0.497297
55fa187f5a1dcda6c909d5000a56a6ba09caf913
364
py
Python
virtualcrypto/__init__.py
sevenc-nanashi/virtualcrypto-python
28d48f63ecdb191b4ba14fdadf2a06dc3697f0a7
[ "MIT" ]
1
2022-02-20T15:12:23.000Z
2022-02-20T15:12:23.000Z
virtualcrypto/__init__.py
sevenc-nanashi/virtualcrypto-python
28d48f63ecdb191b4ba14fdadf2a06dc3697f0a7
[ "MIT" ]
2
2021-05-05T03:21:35.000Z
2021-05-05T13:57:15.000Z
virtualcrypto/__init__.py
sevenc-nanashi/virtualcrypto-python
28d48f63ecdb191b4ba14fdadf2a06dc3697f0a7
[ "MIT" ]
3
2021-03-07T12:01:54.000Z
2021-05-29T22:22:00.000Z
"""Top-level package for VirtualCrypto.py.""" from .structs import User, Currency, Claim, ClaimStatus, Scope, Balance from .errors import VirtualCryptoException, MissingScope, BadRequest from .client import VirtualCryptoClient from .async_client import AsyncVirtualCryptoClient __author__ = """sizumita""" __email__ = '...
36.4
71
0.796703
ea76eb8683a0dee5e72fac1a17567abbe5cfcf17
3,608
py
Python
server/dockyard/var.py
tor4z/Galileo-dockyard
c7f65c1466a1450315935ad03a5a504e7bdb1660
[ "MIT" ]
null
null
null
server/dockyard/var.py
tor4z/Galileo-dockyard
c7f65c1466a1450315935ad03a5a504e7bdb1660
[ "MIT" ]
null
null
null
server/dockyard/var.py
tor4z/Galileo-dockyard
c7f65c1466a1450315935ad03a5a504e7bdb1660
[ "MIT" ]
null
null
null
import threading from tornado.ioloop import IOLoop from dockyard.const import ExpStatus import logging class __GlobalVar: __INSTANCE = None __DATA = {} __INITIATED = False __LOCK = threading.Lock() MID = "_id" MDEL...
31.649123
73
0.528548
00803dfe72d3421b2809997701cbaa8e17b57c2d
50,992
py
Python
python/tracer.py
vorfol/vms-ide
bbd584c3ae7074bae2024668220794d10d13f174
[ "MIT" ]
2
2021-01-23T20:30:59.000Z
2021-03-18T09:11:41.000Z
python/tracer.py
vorfol/vms-ide
bbd584c3ae7074bae2024668220794d10d13f174
[ "MIT" ]
7
2021-02-27T01:52:35.000Z
2021-04-07T12:34:39.000Z
python/tracer.py
vorfol/vms-ide
bbd584c3ae7074bae2024668220794d10d13f174
[ "MIT" ]
1
2021-04-06T13:24:03.000Z
2021-04-06T13:24:03.000Z
import ctypes import signal import socket import sys import threading import time import os.path import collections import base64 import re # settings class SETTINGS: HOST = '127.0.0.1' PORT = 54326 # messages to send class MESSAGE: AMEND = 'AMEND' BP_CONFIRM = 'BP_CONFIRM' BP_CONFIRM64 = 'BP_CONFI...
43.582906
172
0.50704
8fd3f12a1e278fef102d76b21fdbeb9534bbbe59
5,158
py
Python
mscreen/autodocktools_prepare_py3k/MolKit/pdb2pqr/pdb2pka/ligandclean/peoe_PDB2PQR.py
e-mayo/mscreen
a50f0b2f7104007c730baa51b4ec65c891008c47
[ "MIT" ]
9
2021-03-06T04:24:28.000Z
2022-01-03T09:53:07.000Z
MolKit/pdb2pqr/pdb2pka/ligandclean/peoe_PDB2PQR.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
3
2021-03-07T05:37:16.000Z
2021-09-19T15:06:54.000Z
MolKit/pdb2pqr/pdb2pka/ligandclean/peoe_PDB2PQR.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
4
2019-08-28T23:11:39.000Z
2021-11-27T08:43:36.000Z
# http://users.unimi.it/~ddl/vega/manual/pages/appx_a.htm # Type a b c d # ============================================= # H 7.17 6.24 -0.56 12.85 # C3 7.98 9.18 1.88 19.04 # C2 8.79 9.32 1.51 19.62 # C1 10.39 9.45 ...
35.819444
116
0.403451
70ecf9b6589782d26a80b22bec8c300bb1b9de9e
25,331
py
Python
redis/google/cloud/redis_v1beta1/gapic/cloud_redis_client.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
null
null
null
redis/google/cloud/redis_v1beta1/gapic/cloud_redis_client.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
null
null
null
redis/google/cloud/redis_v1beta1/gapic/cloud_redis_client.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
44.440351
157
0.608464
618050544cfb6f83887e7e97bdf5839d9eaba27b
3,847
py
Python
zat/json_log_to_dataframe.py
SuperCowPowers/zat
7f0de8bb052e8c84ab9bd00f195514d957eac9ec
[ "Apache-2.0" ]
146
2019-11-07T20:57:27.000Z
2022-03-24T00:03:55.000Z
zat/json_log_to_dataframe.py
Kitware/BroUtils
fed88c4310cf70c8b01c9a7eb0918b8c4d117e77
[ "Apache-2.0" ]
43
2017-09-18T06:22:35.000Z
2018-09-05T19:59:43.000Z
zat/json_log_to_dataframe.py
Kitware/BroUtils
fed88c4310cf70c8b01c9a7eb0918b8c4d117e77
[ "Apache-2.0" ]
41
2017-09-11T09:59:47.000Z
2018-09-01T18:36:47.000Z
"""JSONLogToDataFrame: Converts a Zeek JSON log to a Pandas DataFrame""" import os # Third Party import pandas as pd # Local Imports class JSONLogToDataFrame(object): """JSONLogToDataFrame: Converts a Zeek JSON log to a Pandas DataFrame Notes: Unlike the regular Zeek logs, when you dump the...
34.348214
100
0.642839
c66439f72b275b5d7dda40bc5ea351b65b78d99c
304
py
Python
Life2Coding/01-hello-world/main.py
dloperab/Python-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
2
2019-03-17T16:08:09.000Z
2019-03-29T06:37:16.000Z
Life2Coding/01-hello-world/main.py
dloperab/OpenCV-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
null
null
null
Life2Coding/01-hello-world/main.py
dloperab/OpenCV-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
2
2020-03-14T04:32:19.000Z
2021-03-09T17:21:33.000Z
import sys from PyQt5.QtWidgets import QDialog, QApplication from PyQt5.uic import loadUi class MainForm(QDialog): def __init__(self): super(MainForm, self).__init__() loadUi('main-form.ui', self) app = QApplication(sys.argv) window = MainForm() window.show() sys.exit(app.exec_())
21.714286
49
0.713816
cb67fa550ae2060c163ba777faa26bc67fac9a81
1,306
py
Python
allauth/socialaccount/providers/soundcloud/tests.py
swapnilt/django-mongoengine-allauth
c35127a2b140fad7a06989edb6ad9defffe9e657
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/soundcloud/tests.py
swapnilt/django-mongoengine-allauth
c35127a2b140fad7a06989edb6ad9defffe9e657
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/soundcloud/tests.py
swapnilt/django-mongoengine-allauth
c35127a2b140fad7a06989edb6ad9defffe9e657
[ "MIT" ]
1
2019-06-10T16:02:31.000Z
2019-06-10T16:02:31.000Z
from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import SoundCloudProvider class SoundCloudTests(OAuth2TestsMixin, TestCase): provider_id = SoundCloudProvider.id def get_mocked_response(self): return MockedResponse(200, """ ...
34.368421
90
0.562787
cd6f71f77fc0c1c0f4bafc682681f31f0218cfeb
1,893
py
Python
Loan/code.py
deepikakeswani/ga-learner-dsmp-repo
e06132631df81c22384bc4f74187fdc566baa4c8
[ "MIT" ]
null
null
null
Loan/code.py
deepikakeswani/ga-learner-dsmp-repo
e06132631df81c22384bc4f74187fdc566baa4c8
[ "MIT" ]
null
null
null
Loan/code.py
deepikakeswani/ga-learner-dsmp-repo
e06132631df81c22384bc4f74187fdc566baa4c8
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode # code starts here bank=pd.read_csv(path) categorical_var=bank.select_dtypes(include='object') print(categorical_var) numerical_var=bank.select_dtypes(include='number') # code ends here # -------------- # c...
22.011628
114
0.713154
6611f2623dea4fe3358c4854f01af5dd766d12cb
40,241
py
Python
omxdsm/tests/test_xdsm_viewer.py
naylor-b/OpenMDAO-XDSM
1497d0e9b1b4d7e62278f42ff036cf772b604039
[ "Apache-2.0" ]
null
null
null
omxdsm/tests/test_xdsm_viewer.py
naylor-b/OpenMDAO-XDSM
1497d0e9b1b4d7e62278f42ff036cf772b604039
[ "Apache-2.0" ]
null
null
null
omxdsm/tests/test_xdsm_viewer.py
naylor-b/OpenMDAO-XDSM
1497d0e9b1b4d7e62278f42ff036cf772b604039
[ "Apache-2.0" ]
null
null
null
import os import unittest import numpy as np from numpy.distutils.exec_command import find_executable import openmdao.api as om from omxdsm import write_xdsm, write_html from openmdao.test_suite.components.sellar import SellarNoDerivatives, SellarDis1, SellarDis2 from openmdao.test_suite.components.sellar_feature imp...
38.251901
100
0.585199
4f21001becfd9476ad6b20a4c27f4f5c7622f70a
92
py
Python
src/setup.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
src/setup.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
src/setup.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name="bricks", packages=find_packages())
23
46
0.804348
a6f5e791299d0c55de717f2a12dbb1ac756ae437
1,786
py
Python
ff_wrapper/logbuffer.py
hidnoiz/ff_wrapper
4571a2141b3e6cb21ac40f5ead5497b41f1d8f4b
[ "MIT" ]
null
null
null
ff_wrapper/logbuffer.py
hidnoiz/ff_wrapper
4571a2141b3e6cb21ac40f5ead5497b41f1d8f4b
[ "MIT" ]
null
null
null
ff_wrapper/logbuffer.py
hidnoiz/ff_wrapper
4571a2141b3e6cb21ac40f5ead5497b41f1d8f4b
[ "MIT" ]
null
null
null
from typing import List def progress_str_to_dict(progress_log: str) -> dict: progress_log = progress_log.strip().split(' ') result = {} for line in progress_log: k, v = line.split('=') result[k] = v return result class LogBuffer: def __init__(self, size_max): self._next ...
32.472727
91
0.585666
5532bb8ac7abbe470df4e6c8382d9ea18ce7a2df
1,056
py
Python
favorProject/tests/factories.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
2
2020-03-24T05:06:09.000Z
2021-06-15T04:26:51.000Z
favorProject/tests/factories.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
25
2020-06-06T01:34:05.000Z
2022-03-12T00:20:44.000Z
favorProject/tests/factories.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
null
null
null
import factory from django.contrib.auth.models import User from favorApp.models import Favor from django.utils import timezone class UserFactory(factory.Factory): class Meta: model = User first_name = 'John' last_name = 'Doe' id = factory.Sequence(lambda n: n) email = factory.Sequence(lamb...
25.756098
75
0.675189
37eb4a482cd853b6b5b7aaaee12705a4a5c2ea98
2,162
py
Python
101-200/121-130/128-longestConsecutiveSequence/longestConsecutiveSequence.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/121-130/128-longestConsecutiveSequence/longestConsecutiveSequence.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/121-130/128-longestConsecutiveSequence/longestConsecutiveSequence.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def longestConsecutive(self, nums): """ :type nums: List[int] :rtype: int """ nums = set(nums) best = 0 for num in nums: if num - 1 not in nums: y = num + 1 while y in nums: ...
30.027778
81
0.418131
f252bd3a9a28837fd81e8e266ba1ed1dc708a34c
2,928
py
Python
theta/exampleFortran/src/driver.py
FilippoSimini/smartsim_alcf
213dc01fb5aa9d330995621a69b8316dd2a7ddde
[ "BSD-3-Clause" ]
3
2021-11-04T19:19:37.000Z
2021-11-17T16:44:49.000Z
theta/exampleFortran/src/driver.py
FilippoSimini/smartsim_alcf
213dc01fb5aa9d330995621a69b8316dd2a7ddde
[ "BSD-3-Clause" ]
null
null
null
theta/exampleFortran/src/driver.py
FilippoSimini/smartsim_alcf
213dc01fb5aa9d330995621a69b8316dd2a7ddde
[ "BSD-3-Clause" ]
null
null
null
import os, sys, time from smartsim import Experiment from smartsim.settings import AprunSettings from smartsim.database import CobaltOrchestrator # Parse command line arguments ppn = int(sys.argv[1]) nodes = int(sys.argv[2]) allprocs = int(sys.argv[3]) dbnodes = int(sys.argv[4]) simnodes = int(sys.argv[5]) mlnodes = i...
29.28
104
0.696721
1987ce4046d17516960692e56454602185051eff
26
py
Python
terrascript/grafana/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/grafana/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/grafana/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
1
2018-11-15T16:23:05.000Z
2018-11-15T16:23:05.000Z
"""2019-05-28 10:49:41"""
13
25
0.538462
7587eaaf88e0305b1ae5174128ab4388ad6462a9
5,233
py
Python
app_backend/forms/production_sensitive.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
1
2020-06-21T04:08:26.000Z
2020-06-21T04:08:26.000Z
app_backend/forms/production_sensitive.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
13
2019-10-18T17:19:32.000Z
2022-01-13T00:44:43.000Z
app_backend/forms/production_sensitive.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
5
2019-02-07T03:15:16.000Z
2021-09-04T14:06:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: production_sensitive.py @time: 2018-08-14 16:34 """ from __future__ import unicode_literals from flask_babel import lazy_gettext as _ from flask_wtf import FlaskForm from wtforms import StringField, DateField, IntegerField, Select...
25.778325
69
0.515574
696f848af010e1d6fbd4fca0c416f71fbb7167e3
77,464
py
Python
vectorbt/generic/accessors.py
davidandreoletti/vectorbt
0cd596e1be975d4af6379d883090ffb5b7375d08
[ "Apache-2.0" ]
null
null
null
vectorbt/generic/accessors.py
davidandreoletti/vectorbt
0cd596e1be975d4af6379d883090ffb5b7375d08
[ "Apache-2.0" ]
null
null
null
vectorbt/generic/accessors.py
davidandreoletti/vectorbt
0cd596e1be975d4af6379d883090ffb5b7375d08
[ "Apache-2.0" ]
null
null
null
"""Custom pandas accessors. Methods can be accessed as follows: * `GenericSRAccessor` -> `pd.Series.vbt.*` * `GenericDFAccessor` -> `pd.DataFrame.vbt.*` ```python-repl >>> import pandas as pd >>> import vectorbt as vbt >>> # vectorbt.generic.accessors.GenericAccessor.rolling_mean >>> pd.Series([1, 2, 3, 4]).vbt.rol...
39.684426
119
0.555949
fdba70f3770fa06d062e01f1e1c25c3e133d16f3
15,812
py
Python
ckanext-hdx_package/ckanext/hdx_package/helpers/helpers.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_package/ckanext/hdx_package/helpers/helpers.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_package/ckanext/hdx_package/helpers/helpers.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
import re import urlparse import uuid import json import logging import ckan.lib.helpers as h import ckan.model as model import ckan.lib.base as base import ckan.logic as logic import ckan.plugins.toolkit as tk import ckan.authz as new_authz import ckan.lib.activity_streams as activity_streams import ckan.model.pack...
33.571125
111
0.632811
149dc4c6c4bc1c55bfd2ed6798dd09e163cf6b43
28
py
Python
rlib/algorithms/dqn/__init__.py
MarcioPorto/rlib
5919f2dc52105000a23a25c31bbac260ca63565f
[ "MIT" ]
1
2019-09-08T08:33:13.000Z
2019-09-08T08:33:13.000Z
rlib/algorithms/dqn/__init__.py
MarcioPorto/rlib
5919f2dc52105000a23a25c31bbac260ca63565f
[ "MIT" ]
26
2019-03-15T03:11:21.000Z
2022-03-11T23:42:46.000Z
rlib/algorithms/dqn/__init__.py
MarcioPorto/rlib
5919f2dc52105000a23a25c31bbac260ca63565f
[ "MIT" ]
null
null
null
from .agent import DQNAgent
14
27
0.821429
6e1231a9751730f42907c5ad1cc9d361f8a9d6c5
14,718
py
Python
nolearn/lasagne/tests/test_handlers.py
KEVINYZY/nolearn
342915012081f31bb88f69daa8857fd2f4e15a1d
[ "MIT" ]
968
2015-01-02T00:37:08.000Z
2022-03-14T02:52:41.000Z
nolearn/lasagne/tests/test_handlers.py
KEVINYZY/nolearn
342915012081f31bb88f69daa8857fd2f4e15a1d
[ "MIT" ]
269
2015-01-01T20:44:58.000Z
2021-11-21T19:59:00.000Z
nolearn/lasagne/tests/test_handlers.py
KEVINYZY/nolearn
342915012081f31bb88f69daa8857fd2f4e15a1d
[ "MIT" ]
315
2015-01-10T03:15:21.000Z
2022-01-28T14:59:58.000Z
from collections import OrderedDict import pickle from lasagne.layers import ConcatLayer from lasagne.layers import Conv2DLayer from lasagne.layers import DenseLayer from lasagne.layers import MaxPool2DLayer from lasagne.layers import InputLayer from lasagne.nonlinearities import softmax from lasagne.updates import ne...
32.276316
78
0.578951
11c80539e1f577ca6dd67fdb56d31c90276d1a98
1,518
py
Python
modules/extra_tabs/messages.py
sharabeshj/course-editor-test
9af15d10ef1f039fdf5758134a7cb72384ccf3f5
[ "Apache-2.0" ]
1
2021-01-06T17:58:30.000Z
2021-01-06T17:58:30.000Z
modules/extra_tabs/messages.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
27
2016-08-31T19:04:46.000Z
2016-09-29T00:22:32.000Z
modules/extra_tabs/messages.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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 ...
33
78
0.754941
d4c81433594931854624274697b1dba33c6f549a
2,404
py
Python
util/util_lldp.py
nocsysmars/xmppd
386aacd71194fb072d9a9f45cbc19ca2f01e92e8
[ "Apache-2.0" ]
null
null
null
util/util_lldp.py
nocsysmars/xmppd
386aacd71194fb072d9a9f45cbc19ca2f01e92e8
[ "Apache-2.0" ]
null
null
null
util/util_lldp.py
nocsysmars/xmppd
386aacd71194fb072d9a9f45cbc19ca2f01e92e8
[ "Apache-2.0" ]
1
2021-11-24T02:22:03.000Z
2021-11-24T02:22:03.000Z
# # util_lldp.py # # lldp related APIs. # import util_utl, util_method_tbl, pdb from xml.etree import cElementTree as ET # # set functions # # # get functions # lldp_info_fake = [ { "lldp_rem_port_id_subtype" : "2", "lldp_rem_port_id" : "20", "lldp_rem_chassis_id_subtype" : "4",...
28.282353
85
0.596922
7491641098e49c2aa4c735afe0f16521c041943f
6,602
py
Python
base/car.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
base/car.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
base/car.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
from util.vec import Vec3 from util.orientation import Orientation from util.math_funcs import turn_radius, clamp from util import constants from util.boost import Boost, BoostTracker from base.ball import Ball from base.goal import Goal from rlbot.utils.structures.game_data_struct import GameTickPacket, BoostPad, Play...
38.16185
127
0.625417
cd40031d0c4db219c451b9ee7cef9e1458d334c6
1,936
py
Python
src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py
asifsmohammed/opensearch-build
f78859000d676d35c29b15e08bbf4310c4df05b9
[ "Apache-2.0" ]
62
2021-05-14T04:06:09.000Z
2022-03-23T03:30:13.000Z
src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py
asifsmohammed/opensearch-build
f78859000d676d35c29b15e08bbf4310c4df05b9
[ "Apache-2.0" ]
1,590
2021-05-07T20:21:19.000Z
2022-03-31T23:57:53.000Z
src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py
mch2/opensearch-build
39464ae1ded2b628d5b6cacb22064b715906520d
[ "Apache-2.0" ]
134
2021-05-07T19:27:56.000Z
2022-03-24T23:06:17.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging import os import re from typing import List from zipfile import ZipFile from build_workflow.build_artifact_chec...
45.023256
134
0.704545
abc80fea1b475a0c9c64129e3defb51ad83383a6
2,684
py
Python
inst/models.py
collinsbett29/insta
2b78fbef9b4739cfd5fe6e6a86ccf4f850f33581
[ "MIT" ]
null
null
null
inst/models.py
collinsbett29/insta
2b78fbef9b4739cfd5fe6e6a86ccf4f850f33581
[ "MIT" ]
3
2020-06-06T00:04:18.000Z
2021-09-08T01:25:53.000Z
inst/models.py
collinsbett29/Instagram
2b78fbef9b4739cfd5fe6e6a86ccf4f850f33581
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User import datetime as dt from django.db import models from tinymce.models import HTMLField from django.db.models.signals import post_save from django.dispatch import receiver class Profile(models.Model): """ Class that contains profile details """ bio = HTMLFiel...
25.084112
89
0.665797
3db7eadc50270fb62a61df300a2d6571c1cd79bd
718
py
Python
ppo/Config.py
leonjovanovic/drl-ml-agents-3dball
d9f8241209bfeba210ac03baa37fbcea77536690
[ "MIT" ]
null
null
null
ppo/Config.py
leonjovanovic/drl-ml-agents-3dball
d9f8241209bfeba210ac03baa37fbcea77536690
[ "MIT" ]
null
null
null
ppo/Config.py
leonjovanovic/drl-ml-agents-3dball
d9f8241209bfeba210ac03baa37fbcea77536690
[ "MIT" ]
null
null
null
import datetime test_episodes = 100 total_steps = 350 update_steps = 5 batch_size = 2048 minibatch_size = 32 gae = True gae_lambda = 0.85 seed = 0 policy_lr = 0.0003 critic_lr = 0.0004 max_grad_norm = 0.5 adam_eps = 1e-5 gamma = 0.99 write = True now = datetime.datetime.now() date_time = "{}...
24.758621
104
0.566852
6f782efd59e984d8844734980e002d93f2e7acea
36,697
py
Python
apps/oozie/src/oozie/tests2.py
dvopsway/hue
3c0dbca37a21ec92cd0b987f80fba7e3fc3589a7
[ "Apache-2.0" ]
1
2020-04-10T07:54:39.000Z
2020-04-10T07:54:39.000Z
apps/oozie/src/oozie/tests2.py
dvopsway/hue
3c0dbca37a21ec92cd0b987f80fba7e3fc3589a7
[ "Apache-2.0" ]
null
null
null
apps/oozie/src/oozie/tests2.py
dvopsway/hue
3c0dbca37a21ec92cd0b987f80fba7e3fc3589a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ## -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 ...
48.095675
8,323
0.55198
2b80025269d014114bb0c0c22c74e1ef00685887
3,220
py
Python
facebook_business/adobjects/shop.py
GDGSNF/facebook-python-business-sdk
95e64a10d987d7a53963d17036b6730d07f84ab5
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/adobjects/shop.py
GDGSNF/facebook-python-business-sdk
95e64a10d987d7a53963d17036b6730d07f84ab5
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/adobjects/shop.py
GDGSNF/facebook-python-business-sdk
95e64a10d987d7a53963d17036b6730d07f84ab5
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.179775
103
0.695963
0f50b2de440707e50fc0f3e64567409763c0748a
2,048
py
Python
templateReader.py
adamrees89/PythonExcelReader
f51dbf4ab9fd0c9e2cfd43a2ec25f8312f5ecf19
[ "MIT" ]
1
2019-11-13T05:36:58.000Z
2019-11-13T05:36:58.000Z
templateReader.py
adamrees89/PythonExcelReader
f51dbf4ab9fd0c9e2cfd43a2ec25f8312f5ecf19
[ "MIT" ]
3
2017-08-22T08:06:57.000Z
2021-07-13T08:34:07.000Z
templateReader.py
adamrees89/PythonExcelReader
f51dbf4ab9fd0c9e2cfd43a2ec25f8312f5ecf19
[ "MIT" ]
null
null
null
import sqlite3 import openpyxl import sys import os #Create the cell function def templateCell(s,sn,col,r): conn = sqlite3.connect("template.db") c = conn.cursor() cellRef = col + r val = s[cellRef].value fname = s[cellRef].font.name fsize = s[cellRef].font.size fbold = int(s[c...
33.032258
71
0.57959
25c01a732ea1c72fe6c1435e910e1e5705997771
2,414
py
Python
src/cybersource/settings.py
thelabnyc/django-oscar-cybersource
510ecdc045edcf93ff7a62a120cb1eeaa56f40a9
[ "0BSD" ]
3
2016-06-18T01:37:50.000Z
2021-02-08T04:07:11.000Z
src/cybersource/settings.py
thelabnyc/django-oscar-cybersource
510ecdc045edcf93ff7a62a120cb1eeaa56f40a9
[ "0BSD" ]
24
2019-12-04T21:37:21.000Z
2022-03-11T23:15:43.000Z
src/cybersource/settings.py
thelabnyc/django-oscar-cybersource
510ecdc045edcf93ff7a62a120cb1eeaa56f40a9
[ "0BSD" ]
3
2016-05-31T10:02:30.000Z
2017-09-01T10:55:20.000Z
from django.conf import settings from django.core.exceptions import ImproperlyConfigured import warnings def overridable(name, default=None, required=False): if required: if not hasattr(settings, name) or not getattr(settings, name): raise ImproperlyConfigured("%s must be defined in Django set...
38.31746
108
0.783761
f00756f9f48fc1af2dbe3b1998483a17f5014ff7
258
py
Python
neurokit2/eeg/__init__.py
1110sillabo/NeuroKit
b12315465db559ef0228470a4c31b85371775896
[ "MIT" ]
1
2021-11-14T21:18:43.000Z
2021-11-14T21:18:43.000Z
neurokit2/eeg/__init__.py
1110sillabo/NeuroKit
b12315465db559ef0228470a4c31b85371775896
[ "MIT" ]
null
null
null
neurokit2/eeg/__init__.py
1110sillabo/NeuroKit
b12315465db559ef0228470a4c31b85371775896
[ "MIT" ]
1
2021-11-14T21:18:48.000Z
2021-11-14T21:18:48.000Z
"""Submodule for NeuroKit.""" from .mne_channel_add import mne_channel_add from .mne_channel_extract import mne_channel_extract from .mne_to_df import mne_to_df, mne_to_dict __all__ = ["mne_channel_add", "mne_channel_extract", "mne_to_df", "mne_to_dict"]
28.666667
80
0.806202
8e5d7523e5de4613b5226ef151ee10aa818b58ac
434
py
Python
demo.py
tomviner/parkrun-tools
43d3b2937813e836ab40af2d1549dde2760388cd
[ "MIT" ]
1
2019-09-17T07:10:35.000Z
2019-09-17T07:10:35.000Z
demo.py
tomviner/parkrun-tools
43d3b2937813e836ab40af2d1549dde2760388cd
[ "MIT" ]
null
null
null
demo.py
tomviner/parkrun-tools
43d3b2937813e836ab40af2d1549dde2760388cd
[ "MIT" ]
null
null
null
import stackprinter import parkrun stackprinter.set_excepthook() inputs = { 'hh': 'hh-2019-05-11-tabs.txt', 'tw': 'tw-2019-06-01-tabs.txt', } for infile in inputs.values(): results = parkrun.importResults( infile, skiprows=12, skipfooter=38, report=True ) parkrun.print_stats(results) ...
19.727273
57
0.677419
c87471ba657cc0f976b159996aefdf8dab5e6d99
22,405
py
Python
references/classification/train.py
nlgranger/vision
eba853e1089ee6235e3717344e8ffde445058406
[ "BSD-3-Clause" ]
2
2022-01-28T08:27:25.000Z
2022-01-28T08:27:38.000Z
references/classification/train.py
nlgranger/vision
eba853e1089ee6235e3717344e8ffde445058406
[ "BSD-3-Clause" ]
null
null
null
references/classification/train.py
nlgranger/vision
eba853e1089ee6235e3717344e8ffde445058406
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import time import warnings import presets import torch import torch.utils.data import torchvision import transforms import utils from sampler import RASampler from torch import nn from torch.utils.data.dataloader import default_collate from torchvision.transforms.functional import Interpolat...
43.504854
120
0.666146
fa10c1fb129b1a11f1c52dd7b5195e576cce0d28
1,030
py
Python
commandment/enroll/__init__.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
138
2017-11-21T17:57:59.000Z
2022-02-16T13:08:39.000Z
commandment/enroll/__init__.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
24
2017-11-12T01:42:13.000Z
2022-02-24T21:53:28.000Z
commandment/enroll/__init__.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
35
2017-11-15T12:14:44.000Z
2022-02-26T00:44:36.000Z
from enum import Enum class DeviceAttributes(Enum): """This enumeration describes all of the device attributes available to OTA profile enrolment. """ UDID = 'UDID' VERSION = 'VERSION' PRODUCT = 'PRODUCT' DEVICE_NAME = 'DEVICE_NAME' SERIAL = 'SERIAL' MODEL = 'MODEL' MAC_ADDRESS_EN0...
25.75
98
0.700971
2ff1a9aacdf8482b9290491e78148a6f22869af8
211
py
Python
train/cmpnn/data/__init__.py
prokia/DL-Anti-Osteoporosis
351e3d15b3a86df95833ad8fb9e86485c41cd0e6
[ "MIT" ]
4
2020-01-18T04:39:07.000Z
2021-09-11T15:45:14.000Z
train/cmpnn/data/__init__.py
prokia/DL-Anti-Osteoporosis
351e3d15b3a86df95833ad8fb9e86485c41cd0e6
[ "MIT" ]
1
2021-05-10T06:10:08.000Z
2021-05-10T06:10:08.000Z
train/cmpnn/data/__init__.py
prokia/DL-Anti-Osteoporosis
351e3d15b3a86df95833ad8fb9e86485c41cd0e6
[ "MIT" ]
3
2020-02-24T01:46:59.000Z
2021-05-11T06:18:32.000Z
# -*- coding: utf-8 -*- """ Created on Wed Nov 27 19:12:55 2019 @author: SY """ from .data import MoleculeDatapoint, MoleculeDataset from .scaffold import scaffold_to_smiles from .scaler import StandardScaler
19.181818
52
0.744076
27e854c6bf62b720e214208a74a16423157a4f47
1,213
py
Python
setup.py
repelista/aptlyapi
59f58c0b8cb9036d5b25acae295848515ca0143d
[ "MIT" ]
3
2016-09-15T22:18:03.000Z
2016-09-16T21:23:27.000Z
setup.py
repelista/aptlyapi
59f58c0b8cb9036d5b25acae295848515ca0143d
[ "MIT" ]
null
null
null
setup.py
repelista/aptlyapi
59f58c0b8cb9036d5b25acae295848515ca0143d
[ "MIT" ]
2
2016-12-07T20:25:29.000Z
2019-10-21T20:29:23.000Z
#!/usr/bin/env python import uuid from setuptools import setup, find_packages from pip.req import parse_requirements from pyptly import __version__ install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(req.req) for req in install_reqs] setup(name="pyptly", version=__version__,...
34.657143
75
0.629843
70875721911955ad3ace205e86bf085539429a08
23,162
py
Python
var/spack/repos/builtin/packages/root/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/root/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
17
2018-09-20T18:32:50.000Z
2019-12-04T16:58:12.000Z
var/spack/repos/builtin/packages/root/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import sys class Root(CMakePackage): """ROOT is a data analysis framework.""" homepage = "...
43.701887
113
0.560228
17a24a98683e5da2f44cdfcee4e32fbc432577d3
5,988
py
Python
napari/utils/_injection.py
Napari/napari
2dc5aa659f875c353bfbde3b20d8f07a664ed8a8
[ "BSD-3-Clause" ]
7
2018-07-03T17:35:46.000Z
2018-11-07T15:48:58.000Z
napari/utils/_injection.py
guiwitz/napari
1546f18ecc13364d5415623a9c11ed760ff043e2
[ "BSD-3-Clause" ]
120
2018-09-04T22:05:13.000Z
2019-03-02T01:13:57.000Z
napari/utils/_injection.py
guiwitz/napari
1546f18ecc13364d5415623a9c11ed760ff043e2
[ "BSD-3-Clause" ]
8
2018-09-04T21:48:26.000Z
2019-01-29T04:48:30.000Z
from functools import wraps from inspect import isgeneratorfunction, signature from typing import Any, Callable, Dict, Optional, Type, TypeVar from typing_extensions import get_type_hints from .. import components, layers, viewer from ..viewer import current_viewer T = TypeVar("T") _NULL = object() def _get_active...
31.025907
79
0.641951
215718f0a82ec16cbbae3bc9a18a25f77badd202
8,058
py
Python
lib/rucio/tests/test_judge_injector.py
efajardo/rucio
460f394715568b937584ef671382b2b93add1758
[ "Apache-2.0" ]
1
2019-03-04T09:09:42.000Z
2019-03-04T09:09:42.000Z
lib/rucio/tests/test_judge_injector.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_judge_injector.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
1
2021-06-17T14:15:15.000Z
2021-06-17T14:15:15.000Z
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Martin Barisits, <m...
46.848837
227
0.657111
ec37d0edf5d3d5e5456eeafde80463e6a20eb512
9,835
py
Python
test/tst_slicing.py
sridish123/netcdf4-python
c9520f4e697d6ba1ba170748547bafa681bf5177
[ "MIT" ]
null
null
null
test/tst_slicing.py
sridish123/netcdf4-python
c9520f4e697d6ba1ba170748547bafa681bf5177
[ "MIT" ]
null
null
null
test/tst_slicing.py
sridish123/netcdf4-python
c9520f4e697d6ba1ba170748547bafa681bf5177
[ "MIT" ]
1
2021-05-17T07:15:47.000Z
2021-05-17T07:15:47.000Z
from netCDF4 import Dataset from numpy.random import seed, randint from numpy.testing import assert_array_equal, assert_equal,\ assert_array_almost_equal import tempfile, unittest, os, random import numpy as np file_name = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).name xdim=9; ydim=10; zdim=11 #seed(9) #...
36.835206
87
0.525572
c7d0691bba174e5f070dad0b0b9d66c529352d0f
2,082
py
Python
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/DisableWorkflowRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/DisableWorkflowRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/DisableWorkflowRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# 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 License, Version 2.0 (the # "License"); you may not u...
37.854545
76
0.760807
e71905cf7deea3e60dbe9e904ce429b2dcfdc088
4,028
py
Python
Tests/fTestDependencies.py
SkyLined/mFileSystem2
b0e70564f6dcd31f20d4d722e2a5aba6ccec9d12
[ "CC-BY-4.0" ]
2
2019-07-23T06:49:49.000Z
2021-01-30T07:29:30.000Z
Tests/fTestDependencies.py
SkyLined/mFileSystem2
b0e70564f6dcd31f20d4d722e2a5aba6ccec9d12
[ "CC-BY-4.0" ]
null
null
null
Tests/fTestDependencies.py
SkyLined/mFileSystem2
b0e70564f6dcd31f20d4d722e2a5aba6ccec9d12
[ "CC-BY-4.0" ]
null
null
null
def fTestDependencies(): import sys; # Save the list of names of default loaded modules: def fasGetLoadedModulesNames(): return set([ sModuleName.split(".", 1)[0].lstrip("_") for sModuleName in sys.modules.keys() ]); asOriginalModuleNames = fasGetLoadedModulesNames(); import json, os; #...
46.298851
129
0.741063
781c2379eae7e20edec9263003327da7af3dff41
1,567
py
Python
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
37.309524
125
0.610721
20e695391e240fb4e6e80c1a51444f690b3e82c9
5,564
py
Python
docs/conf.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
docs/conf.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
docs/conf.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # lakesuperior documentation build configuration file, created by # sphinx-quickstart on Sat Mar 24 23:05:46 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
30.23913
79
0.691229