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
93f536a9e823041ab06f03832848670bf730a4a1
1,047
py
Python
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" import requests import json send_url = 'http://freegeoip.net/json' r = requests.get(send_url) j = json.loads(r.text) #lat = j['latitude'] #lon = j['longitude'] print(j) #print (lat,lon) ############################### [22.5697, 88.3697] Loading formatted geocoded file... [OrderedDict([('lat', '22.56263'), ...
20.94
54
0.606495
c3b5933285a764b1748f2c0ea1c9880b22d98e4a
7,789
py
Python
alipay/aop/api/domain/AlipaySocialBaseBcClustermsgSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseBcClustermsgSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseBcClustermsgSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ImageTemplateData import ImageTemplateData from alipay.aop.api.domain.LinksTemplateData import LinksTemplateData from alipay.aop.api.domain.MiniAppTemplateData import MiniAppTemplat...
36.227907
93
0.631917
38d99edee8cfb930e40395a2a304e589ffcbc1d6
13,844
py
Python
src/compas/rpc/proxy.py
kant/compas
e38859475aae7f7d087fb26e3ab03b8af449922b
[ "MIT" ]
null
null
null
src/compas/rpc/proxy.py
kant/compas
e38859475aae7f7d087fb26e3ab03b8af449922b
[ "MIT" ]
null
null
null
src/compas/rpc/proxy.py
kant/compas
e38859475aae7f7d087fb26e3ab03b8af449922b
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import time import compas import compas._os from compas.rpc import RPCServerError from compas.utilities import DataDecoder from compas.utilities import DataEncoder try: from xmlrpclib import S...
34.523691
160
0.593109
7cddf96b0011eef058445930abbe2db37638825d
2,642
py
Python
office365/teams/channels/channel.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/teams/channels/channel.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/teams/channels/channel.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
from office365.entity_collection import EntityCollection from office365.runtime.compat import quote from office365.entity import Entity from office365.onedrive.driveitems.driveItem import DriveItem from office365.runtime.resource_path import ResourcePath from office365.teams.channels.conversation_member import Convers...
42.612903
118
0.653293
8a04cb61b5f419e76b7be07438d5955d4a44a829
20,740
py
Python
hapiclient/plot/heatmap.py
lkilcommons/client-python
7f8f895bd6b43aa12c4531e4498d1bab91c30691
[ "BSD-3-Clause" ]
null
null
null
hapiclient/plot/heatmap.py
lkilcommons/client-python
7f8f895bd6b43aa12c4531e4498d1bab91c30691
[ "BSD-3-Clause" ]
null
null
null
hapiclient/plot/heatmap.py
lkilcommons/client-python
7f8f895bd6b43aa12c4531e4498d1bab91c30691
[ "BSD-3-Clause" ]
null
null
null
import datetime import warnings import numpy as np import matplotlib from matplotlib import colors from matplotlib.patches import Patch from matplotlib.colors import LogNorm from matplotlib import rc_context from hapiclient.plot.datetick import datetick def heatmap(x, y, z, **kwargs): """Plot a heatmap using pc...
36.132404
134
0.525313
11400612a26a2706367a385747a179a35de7d137
686
py
Python
raspberry.py
ahmdrz/simpleIoT
e5dfc7b30fb6a35902d6e89e21e9e0cf6a79d183
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
raspberry.py
ahmdrz/simpleIoT
e5dfc7b30fb6a35902d6e89e21e9e0cf6a79d183
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
raspberry.py
ahmdrz/simpleIoT
e5dfc7b30fb6a35902d6e89e21e9e0cf6a79d183
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
import urllib2 import time import json import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(12, GPIO.OUT) p = GPIO.PWM(12, 50) p.start(0) try: while 1: headers = { 'Authorization':'<Token>' } req = urllib2.Request('http://<ServerIP>/lights/get/<LightID>', None, headers) response = ...
26.384615
87
0.600583
e01014c48764bdf4293143c0fd858cf04ef22b23
4,511
py
Python
MIDI Remote Scripts/ableton/v2/control_surface/components/playable.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/ableton/v2/control_surface/components/playable.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/ableton/v2/control_surface/components/playable.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\components\playable.py # Compiled at: 2018...
35.242188
150
0.689869
76d9a8503eb89682ee24fc8e8582c0d396479227
2,742
py
Python
smoking/format/partition.py
luckyharryji/smoking-modeling
d46644dd321059b399a204f4ba5f7a7e052de2e2
[ "MIT" ]
null
null
null
smoking/format/partition.py
luckyharryji/smoking-modeling
d46644dd321059b399a204f4ba5f7a7e052de2e2
[ "MIT" ]
null
null
null
smoking/format/partition.py
luckyharryji/smoking-modeling
d46644dd321059b399a204f4ba5f7a7e052de2e2
[ "MIT" ]
null
null
null
from googleplaces import GooglePlaces, types, lang from numpy import * import csv import matplotlib.pyplot as plt from sklearn.cluster import MeanShift, estimate_bandwidth, KMeans from sklearn.mixture import GMM import json from settings import place_type def load_data(URL,type_user): with open(URL,'rU') as f_in:...
29.483871
81
0.63895
75620462b03a92eb3e8af8cfa00a68611d222e76
7,837
py
Python
python_ws/her/experiment/config.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
2
2019-02-28T01:47:23.000Z
2021-04-10T14:37:46.000Z
python_ws/her/experiment/config.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
python_ws/her/experiment/config.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
import os import numpy as np import gym from baselines import logger from baselines.her.ddpg import DDPG from baselines.her.her_sampler import make_sample_her_transitions from baselines.bench.monitor import Monitor DEFAULT_ENV_PARAMS = { 'FetchReach-v1': { 'n_cycles': 10, }, } DEFAULT_PARAMS = { ...
38.416667
152
0.627536
ca17e2ce134704362a22bfc14d938a306a54de8f
7,516
py
Python
scripts/setup.py
cosmonium/P3DModuleBuilder
48913d871001acc52ef91b92126c800b986e5d6f
[ "MIT" ]
null
null
null
scripts/setup.py
cosmonium/P3DModuleBuilder
48913d871001acc52ef91b92126c800b986e5d6f
[ "MIT" ]
null
null
null
scripts/setup.py
cosmonium/P3DModuleBuilder
48913d871001acc52ef91b92126c800b986e5d6f
[ "MIT" ]
1
2020-06-28T05:22:57.000Z
2020-06-28T05:22:57.000Z
import shutil import sys import multiprocessing from os import chdir, _exit from os.path import isdir, isfile from panda3d.core import PandaSystem from .common import get_output_dir, try_makedir, fatal_error, is_windows from .common import is_linux, join_abs, get_panda_lib_path, is_64_bit from .common import try_exec...
37.58
119
0.653539
f734061f0d85620d2525a90bb81efc3ddacea8d3
1,541
py
Python
keystonemiddleware/tests/unit/audit/test_logging_notifier.py
mahak/keystonemiddleware
90df936708aee36d77cead548d04cb7db2327f47
[ "Apache-1.1" ]
55
2015-01-29T20:10:42.000Z
2022-03-11T04:02:22.000Z
keystonemiddleware/tests/unit/audit/test_logging_notifier.py
mahak/keystonemiddleware
90df936708aee36d77cead548d04cb7db2327f47
[ "Apache-1.1" ]
1
2016-08-25T01:01:57.000Z
2016-08-25T01:01:57.000Z
keystonemiddleware/tests/unit/audit/test_logging_notifier.py
mahak/keystonemiddleware
90df936708aee36d77cead548d04cb7db2327f47
[ "Apache-1.1" ]
49
2015-02-02T23:57:09.000Z
2021-12-17T19:01:53.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.690476
79
0.709929
5c82dfe810abb100ac27caf087a5cacc4d9f3857
23,898
py
Python
crispy/quanty/calculation.py
mretegan/crispy
1bc8792eb9330f730902112359888f58728bf783
[ "MIT" ]
26
2016-03-11T14:51:56.000Z
2022-02-26T08:01:23.000Z
crispy/quanty/calculation.py
mretegan/crispy
1bc8792eb9330f730902112359888f58728bf783
[ "MIT" ]
46
2016-11-02T10:55:44.000Z
2021-07-22T21:01:27.000Z
crispy/quanty/calculation.py
mretegan/crispy
1bc8792eb9330f730902112359888f58728bf783
[ "MIT" ]
12
2017-06-06T22:50:30.000Z
2021-02-19T08:25:00.000Z
# coding: utf-8 ################################################################### # Copyright (c) 2016-2020 European Synchrotron Radiation Facility # # # # Author: Marius Retegan # # ...
31.906542
95
0.595364
c41e3afd59c30759bd00f18ef542204693b432b3
1,138
py
Python
tcp_check/tests/common.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
tcp_check/tests/common.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
tcp_check/tests/common.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.dev.docker import using_windows_containers from datadog_checks.tcp_check import TCPCheck CHECK_NAME = "tcp_check" INSTANCE = {'host': 'datadoghq.com', 'port': 80, 'timeout': 1.5, 'nam...
42.148148
110
0.717047
5547e9b2db8be77783736d97c5c314d38343b59c
1,232
py
Python
bookstone/library/tag.py
Timtam/bookstone
fe06e35ad18c51e452d400a5e679aa2824931557
[ "MIT" ]
null
null
null
bookstone/library/tag.py
Timtam/bookstone
fe06e35ad18c51e452d400a5e679aa2824931557
[ "MIT" ]
3
2020-10-29T23:55:17.000Z
2021-04-16T20:41:46.000Z
bookstone/library/tag.py
Timtam/bookstone
fe06e35ad18c51e452d400a5e679aa2824931557
[ "MIT" ]
null
null
null
import copy from typing import Any, cast class Tag: value: str _name: str _default: str def __init__(self, name: str, value: str = "") -> None: self._name = name self.value = value self._default = value def isModified(self) -> bool: return self....
22.4
81
0.539773
7b592671a63a2fc2ebbf560925a5e3e4dfed47d6
10,350
py
Python
mainCode/1.old/Train using Keras CNN model - Arena-Copy1.py
dreamspy/Endnet
0370ec4ee075b76db12a7649c568f453bc1c9bc8
[ "Apache-2.0" ]
null
null
null
mainCode/1.old/Train using Keras CNN model - Arena-Copy1.py
dreamspy/Endnet
0370ec4ee075b76db12a7649c568f453bc1c9bc8
[ "Apache-2.0" ]
10
2020-03-24T16:48:40.000Z
2022-03-11T23:42:37.000Z
mainCode/1.old/Train using Keras CNN model - Arena-Copy1.py
dreamspy/Endnet
0370ec4ee075b76db12a7649c568f453bc1c9bc8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Which GPU to use # In[1]: multiGPU = False whichGPU = 0 # Select which GPU to use if(multiGPU): from keras.utils.training_utils import multi_gpu_model else: import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" # The GPU id to use, usually either "0" or "1" os.environ["CU...
26.538462
114
0.664058
4bbbb7df2f399a6002193c52430656ea69af8772
1,860
py
Python
pandas/tests/extension/conftest.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
2
2019-01-09T07:43:12.000Z
2020-05-30T05:49:11.000Z
pandas/tests/extension/conftest.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
3
2018-09-24T22:09:28.000Z
2018-10-01T21:10:00.000Z
pandas/tests/extension/conftest.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
1
2019-05-26T12:57:52.000Z
2019-05-26T12:57:52.000Z
import operator import pytest @pytest.fixture def dtype(): """A fixture providing the ExtensionDtype to validate.""" raise NotImplementedError @pytest.fixture def data(): """Length-100 array for this type.""" raise NotImplementedError @pytest.fixture def data_missing(): """Length-2 array with...
20.898876
64
0.667742
239c473e739da92c21e5b5f0ff571407806d8e64
1,255
py
Python
app/core/tests/test_models.py
thewoodagency/recipe-app-api
ab3c72c5715e7c1948fc6a4e1a49581c6551557d
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
thewoodagency/recipe-app-api
ab3c72c5715e7c1948fc6a4e1a49581c6551557d
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
thewoodagency/recipe-app-api
ab3c72c5715e7c1948fc6a4e1a49581c6551557d
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """test creating a new user with email""" email = "test@test.com" password = "123456" user = get_user_model().objects.crea...
31.375
70
0.649402
5f69cc253377612b5032c29178e08e87772d7ebd
7,058
py
Python
seno/cmds/plots.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
33
2021-06-26T22:50:48.000Z
2022-02-09T04:31:40.000Z
seno/cmds/plots.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
18
2021-06-27T17:13:13.000Z
2022-01-04T11:45:56.000Z
seno/cmds/plots.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
19
2021-06-26T00:17:08.000Z
2022-03-15T06:58:21.000Z
import logging import sys from pathlib import Path import click DEFAULT_STRIPE_SIZE = 65536 log = logging.getLogger(__name__) def show_plots(root_path: Path): from seno.plotting.plot_tools import get_plot_directories print("Directories where plots are being searched for:") print("Note that subdirectori...
35.827411
120
0.682771
0d2ce6d81453d1c735d16a6de10326ce3e0b903c
859
py
Python
scripts/addons/CheckToolBox/core/report.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/CheckToolBox/core/report.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/CheckToolBox/core/report.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distrib...
27.709677
73
0.703143
280ba311fe370efd38d055c5777381e8b4f4e86e
2,673
py
Python
jp.atcoder/practice2/practice2_i/26605124.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/practice2/practice2_i/26605124.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/practice2/practice2_i/26605124.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing def sa_is(a: typing.List[int]) -> typing.List[int]: mn = min(a) a = [x - mn + 1 for x in a] a.append(0) n = len(a) m = max(a) + 1 is_s = [True] * n for i in range(n - 2, -1, -1): is_s[i] = is_s[i + 1] if a[i] == a[i + 1] else a[i] < a[i + 1] ...
28.136842
84
0.431351
5a378f160ba597350eb356cd8d09fd93c31b9d1f
3,147
py
Python
fastlmmhpc/association/tests/tests_util.py
epiproject/FaST-LMM-HPC
5d6df81268aeff19015194ab0718a9163b8d33af
[ "Apache-2.0" ]
2
2019-12-10T09:55:40.000Z
2019-12-11T20:58:10.000Z
fastlmmhpc/association/tests/tests_util.py
epiproject/FaST-LMM-HPC
5d6df81268aeff19015194ab0718a9163b8d33af
[ "Apache-2.0" ]
null
null
null
fastlmmhpc/association/tests/tests_util.py
epiproject/FaST-LMM-HPC
5d6df81268aeff19015194ab0718a9163b8d33af
[ "Apache-2.0" ]
null
null
null
import fastlmmhpc.feature_selection.PerformSelectionDistributable as psd import fastlmmhpc.util.preprocess as up import numpy as np def set_Gexclude(G_exclude, G1, i_exclude): if G_exclude is None and i_exclude is not None and i_exclude.sum()>0: assert self.G0 is not None, "i_exclude without SNPs t...
44.957143
174
0.598348
8872eb394a6dd24594efc2c99c27343dd41831ba
1,243
py
Python
death/trashcan/DNCparam.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
death/trashcan/DNCparam.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
death/trashcan/DNCparam.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
# all variables starting with param refers to variables declared in this python file # other variables are Latex representation of variables stated in Methods section of Nature paper ''' Controller parameters ''' class ParamManager(): # make it an object so I can modify it on the fly. def __init__(self): ...
27.021739
97
0.622687
48822d67f98a5aa9f08931ae64be5fe89d7520d7
3,171
py
Python
tests/wallet/rl_wallet/test_rl_wallet.py
Tony4467/littlelambocoin-blockchain
3d4f2b577cd5a2feb324fca50e0981a728583aee
[ "Apache-2.0" ]
null
null
null
tests/wallet/rl_wallet/test_rl_wallet.py
Tony4467/littlelambocoin-blockchain
3d4f2b577cd5a2feb324fca50e0981a728583aee
[ "Apache-2.0" ]
null
null
null
tests/wallet/rl_wallet/test_rl_wallet.py
Tony4467/littlelambocoin-blockchain
3d4f2b577cd5a2feb324fca50e0981a728583aee
[ "Apache-2.0" ]
null
null
null
import asyncio import pytest from littlelambocoin.simulator.simulator_protocol import FarmNewBlockProtocol from littlelambocoin.types.peer_info import PeerInfo from littlelambocoin.util.ints import uint16, uint64 from littlelambocoin.wallet.rl_wallet.rl_wallet import RLWallet from tests.setup_nodes import self_hostna...
36.448276
105
0.715232
255a65d44a9053440a3f921852e1fdbbfd24def0
8,657
py
Python
console_gateway_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
console_gateway_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
console_gateway_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ingress.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
52.466667
1,028
0.765739
709a6ef24d722003b3b0039c068ee8714db93432
9,625
py
Python
torch_geometric_signed_directed/data/signed/polarized_SSBM.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
torch_geometric_signed_directed/data/signed/polarized_SSBM.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
torch_geometric_signed_directed/data/signed/polarized_SSBM.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
from typing import Tuple import random import math import numpy as np import networkx as nx import scipy.sparse as sp import numpy.random as rnd from .SSBM import SSBM def polarized_SSBM(total_n: int=100, num_com: int=3, N: int=30, K: int=2, p: float=0.1, eta: float=0.1,\ size_ratio: float=1) -> Tuple[Tuple[sp.s...
53.176796
167
0.55761
b4f8dd36f7d7ce565d9320913a2e19fced3825f1
4,177
py
Python
huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/update_job_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/update_job_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/update_job_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateJobRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key i...
25.315152
79
0.553507
be964a1e9c62ea70afe9a437f41a7c944c283340
847
py
Python
Models/Tests/Transition_test.py
yvesjordan06/automata-brains
1c34dd9315fcee7ce1807a2b94a0ec48421d03b1
[ "MIT" ]
3
2020-01-31T15:54:48.000Z
2020-02-01T10:01:35.000Z
Models/Tests/Transition_test.py
Tcomputer5/automata-brains
6c2a7714d1fcb16763084a33a2f0f1364d4f8eb8
[ "MIT" ]
null
null
null
Models/Tests/Transition_test.py
Tcomputer5/automata-brains
6c2a7714d1fcb16763084a33a2f0f1364d4f8eb8
[ "MIT" ]
2
2020-02-01T09:59:51.000Z
2020-02-01T10:02:12.000Z
import unittest from Models.Transition import Transition, Etat class AlphabetTestCase(unittest.TestCase): def setUp(self): self.a = Etat('a') self.b = Etat('b') self.t = Transition(self.a,'',self.b); def test_verification(self): self.assertEqual(self.t, Transition(self.a,'€',s...
38.5
89
0.646989
335cd3f1057b33f7d6628e6e747909046f575097
391
py
Python
expr_newfirst.py
virtuald/transparent-pypkg-redir
28aad384360683a8b53feefa86c4190d78ca96cd
[ "MIT" ]
null
null
null
expr_newfirst.py
virtuald/transparent-pypkg-redir
28aad384360683a8b53feefa86c4190d78ca96cd
[ "MIT" ]
null
null
null
expr_newfirst.py
virtuald/transparent-pypkg-redir
28aad384360683a8b53feefa86c4190d78ca96cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Ensure that importing newpkg first works fine # import sys from newpkg.subpkg.mod import ClsInMod from rootpkg.oldpkg.subpkg.mod import ClsInMod as OldClsInMod assert ClsInMod is OldClsInMod assert sys.modules["newpkg.subpkg.mod"] is sys.modules["rootpkg.oldpkg.subpkg.mod"] assert sys.mod...
23
83
0.774936
da38eae2ae84733163c5d8c57cc8302653231328
3,671
py
Python
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
105
2018-02-05T19:35:43.000Z
2022-02-04T13:48:28.000Z
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
4
2018-02-17T17:14:30.000Z
2021-04-02T20:38:42.000Z
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
37
2018-03-19T14:14:41.000Z
2021-11-22T16:36:24.000Z
#!/usr/bin/env python # Copyright 2016 Amazon.com, Inc. or its # affiliates. 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. A copy of the License is # located at # # http://aws.amazon.com/apache2.0/ # # or i...
30.848739
79
0.614002
387cf448d33a007d47c4def2a77251484212be26
1,246
py
Python
spacy/tests/lang/lb/test_text.py
jrc/spaCy
4465d0943e799521ad4f46849043c366b175d43c
[ "MIT" ]
1
2020-02-24T06:23:07.000Z
2020-02-24T06:23:07.000Z
spacy/tests/lang/lb/test_text.py
jrc/spaCy
4465d0943e799521ad4f46849043c366b175d43c
[ "MIT" ]
4
2021-06-02T00:49:27.000Z
2022-01-13T01:59:34.000Z
spacy/tests/lang/lb/test_text.py
jrc/spaCy
4465d0943e799521ad4f46849043c366b175d43c
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import pytest def test_lb_tokenizer_handles_long_text(lb_tokenizer): text = """Den Nordwand an d'Sonn An der Zäit hunn sech den Nordwand an d'Sonn gestridden, wie vun hinnen zwee wuel méi staark wier, wéi e Wanderer, deen an ee waarme Mantel agepak war, iww...
51.916667
714
0.743981
902f96693e145809e0657a7396fccdbcbc835371
1,018
py
Python
manga_py/providers/hiperdex_com.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
manga_py/providers/hiperdex_com.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
manga_py/providers/hiperdex_com.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
from .helpers.std import Std from .rawdevart_com_old import RawDevArtComOld from requests import get class HiperDexCom(RawDevArtComOld, Std): _chapter_selector = r'/manga/[^/]+/(?:chapter-)?(\d+(?:[\.-]\d+)?)/' def get_chapters(self): items = self.document_fromstring(self.content, '#manga-chapters-ho...
29.941176
89
0.616896
cfef5554a10435a6dd845334cb85b7aca518d702
6,430
py
Python
examples/tow.py
cheshrkat/holideck
4ee6e11d728ef24c32670e6b15a16de27c8f7406
[ "MIT" ]
2
2018-01-03T09:58:00.000Z
2019-05-15T07:26:33.000Z
examples/tow.py
jpwarren/holideck
4fd39f5cf5bd3a1749d5c57f1a73ea70fd9a8f49
[ "MIT" ]
null
null
null
examples/tow.py
jpwarren/holideck
4fd39f5cf5bd3a1749d5c57f1a73ea70fd9a8f49
[ "MIT" ]
null
null
null
#/usr/bin/python # """Try to open a filtered search stream And grab the #qanda tagged tweets Then spit out the timestamp of the tweet. Which can then be used as an input to another script. BECAUSE MODADS. Homepage and documentation: http://dev.moorescloud.com/ Copyright (c) 2012, Mark Pesce. License: MIT ...
28.577778
113
0.708243
1c589a721de326db5a68433e816f42907d106231
4,611
py
Python
tensorflow/python/ops/ragged/ragged_to_tensor_op_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
2
2020-07-27T13:51:44.000Z
2021-02-18T02:21:40.000Z
tensorflow/python/ops/ragged/ragged_to_tensor_op_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
8
2019-07-08T10:09:18.000Z
2019-09-26T20:55:43.000Z
tensorflow/python/ops/ragged/ragged_to_tensor_op_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
1
2020-01-19T16:33:55.000Z
2020-01-19T16:33:55.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.656934
80
0.481891
f390a9b23be6f121824dc25f51d5fad319125284
5,215
py
Python
test/IECoreScene/SWAReaderTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
5
2015-09-13T14:49:30.000Z
2017-02-04T21:04:59.000Z
test/IECoreScene/SWAReaderTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreScene/SWAReaderTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
3
2015-02-03T17:13:40.000Z
2022-01-07T15:55:00.000Z
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of sou...
47.409091
108
0.714477
ab2e58dd5d6d35471879ad1561b7c7a030ee226e
4,348
py
Python
src/sagemaker/workflow/condition_step.py
rohangujarathi/sagemaker-python-sdk
67be6284a0d7184a70b37602c7bb36599eaee5c6
[ "Apache-2.0" ]
null
null
null
src/sagemaker/workflow/condition_step.py
rohangujarathi/sagemaker-python-sdk
67be6284a0d7184a70b37602c7bb36599eaee5c6
[ "Apache-2.0" ]
null
null
null
src/sagemaker/workflow/condition_step.py
rohangujarathi/sagemaker-python-sdk
67be6284a0d7184a70b37602c7bb36599eaee5c6
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
37.162393
101
0.671113
22880f29b6be1ef1f3d8c996c0aba11d16a1d0e6
944
py
Python
test_dbupgrade/main.py
srittau/dbupgrade
53472599c175768e2269d84ca7aed670d55c202b
[ "MIT" ]
1
2020-10-26T13:28:47.000Z
2020-10-26T13:28:47.000Z
test_dbupgrade/main.py
srittau/dbupgrade
53472599c175768e2269d84ca7aed670d55c202b
[ "MIT" ]
83
2020-06-02T09:38:02.000Z
2022-02-01T07:56:05.000Z
test_dbupgrade/main.py
srittau/dbupgrade
53472599c175768e2269d84ca7aed670d55c202b
[ "MIT" ]
null
null
null
import logging from dectest import TestCase, before, test from dbupgrade.args import Arguments from dbupgrade.main import main class MainTest(TestCase): @before def setup_patches(self) -> None: self.args = Arguments("myschema", "sqlite:///", "/tmp") self.logging = self.patch("dbupgrade.main....
30.451613
79
0.676907
5c3913e292e4913319ec5d2a87a111133f69fa9f
7,828
py
Python
docs/conf.py
putza/nwhacks2020
3e14452dd3c3d38cc3548ef778474a36d0b6def8
[ "MIT" ]
null
null
null
docs/conf.py
putza/nwhacks2020
3e14452dd3c3d38cc3548ef778474a36d0b6def8
[ "MIT" ]
null
null
null
docs/conf.py
putza/nwhacks2020
3e14452dd3c3d38cc3548ef778474a36d0b6def8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # nmHacks2020 documentation build configuration file, created by # sphinx-quickstart. # # 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 # autogenerated file. # # All configuration values ha...
31.95102
94
0.708355
41e9dbe59a59fe93dfb59f50fb4f039232eaf194
3,367
py
Python
wecom_hrm/wizard/user_bind_wecom.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
5
2021-12-17T06:44:41.000Z
2022-02-05T03:34:07.000Z
wecom_hrm/wizard/user_bind_wecom.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
null
null
null
wecom_hrm/wizard/user_bind_wecom.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
2
2022-02-06T13:27:56.000Z
2022-02-27T08:06:59.000Z
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.addons.wecom_api.api.wecom_abstract_api import ApiException import logging _logger = logging.getLogger(__name__) RESPONSE = {} class UserBindWecom(models.TransientModel): _name = "wecom.wizard.user_b...
36.204301
88
0.49896
dd67e718d61bff6ce95a4fa793781acdca4abb68
4,135
py
Python
bot/gameObjects/items/modules/spectralFilterModule.py
GOF2BountyBot/GOF2BountyBot
f7f276a1b0a8fa376fab3d48e0a1f3989e15c80d
[ "MIT" ]
1
2021-08-30T15:04:34.000Z
2021-08-30T15:04:34.000Z
bot/gameObjects/items/modules/spectralFilterModule.py
KroeteTroete/GOF2BountyBot-1
f7f276a1b0a8fa376fab3d48e0a1f3989e15c80d
[ "MIT" ]
783
2021-01-22T20:54:48.000Z
2022-03-29T08:22:49.000Z
bot/gameObjects/items/modules/spectralFilterModule.py
KroeteTroete/GOF2BountyBot-1
f7f276a1b0a8fa376fab3d48e0a1f3989e15c80d
[ "MIT" ]
2
2021-05-23T17:32:00.000Z
2021-08-28T13:13:16.000Z
from . import moduleItem from ....cfg import bbData from .... import lib from typing import List from ..gameItem import spawnableItem @spawnableItem class SpectralFilterModule(moduleItem.ModuleItem): """A module allowing the user to see plasma clouds in space. :var showOnRadar: Whether or not plasma clouds a...
52.341772
126
0.647884
50153ae54dfa93dbd3d510cbba9df40a20c45cfa
3,404
py
Python
pulser/channels.py
julienbremont/Pulser
792ac4ac4fa8bf8f0e4294613f6cb1d9eb9c1b76
[ "Apache-2.0" ]
null
null
null
pulser/channels.py
julienbremont/Pulser
792ac4ac4fa8bf8f0e4294613f6cb1d9eb9c1b76
[ "Apache-2.0" ]
2
2021-05-05T10:57:08.000Z
2021-05-17T15:39:04.000Z
pulser/channels.py
julienbremont/Pulser
792ac4ac4fa8bf8f0e4294613f6cb1d9eb9c1b76
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.70297
79
0.656874
c98684ffeb7fb21a1987fe04102295cc3242f2c9
1,557
py
Python
ExampleSingleInterferogram.py
rdrews-dev/GPRI_Processing
3066204177fb5f8739815dc21d1b6be620e34798
[ "MIT" ]
1
2021-11-25T08:57:23.000Z
2021-11-25T08:57:23.000Z
ExampleSingleInterferogram.py
rdrews-dev/GPRI_Processing
3066204177fb5f8739815dc21d1b6be620e34798
[ "MIT" ]
null
null
null
ExampleSingleInterferogram.py
rdrews-dev/GPRI_Processing
3066204177fb5f8739815dc21d1b6be620e34798
[ "MIT" ]
null
null
null
import os import numpy as np from datetime import date, datetime, timedelta from GPRIBatchProcessFunctions import * import pickle import time import pylab as plt ## In Python3 Shell: exec(open('Main.py').read()) def main(): ## All Folderst with "/" at the end Root = '../proc2/' #RootDirectoryWithSlcFolder...
33.847826
134
0.712909
144ec92572361d0af9aff1fc425959821b316b5f
102
py
Python
emerald/boa/__init__.py
yu3ufff/emeraldml
0c7247e59819383ba1d354aae5aa9c276015a046
[ "MIT" ]
2
2021-06-24T15:19:22.000Z
2021-09-27T00:09:15.000Z
emerald/boa/__init__.py
yu3ufff/gokboru
0c7247e59819383ba1d354aae5aa9c276015a046
[ "MIT" ]
null
null
null
emerald/boa/__init__.py
yu3ufff/gokboru
0c7247e59819383ba1d354aae5aa9c276015a046
[ "MIT" ]
null
null
null
""" Build. Optimize. Analyze. """ from ._regression import RegressionBoa __all__ = ['RegressionBoa']
14.571429
38
0.72549
f6cabccc4d3729f627137adb60c6d922f424c277
6,675
py
Python
handler.py
Mageti/webssh
b88a159fbb3bdebf087f732672962b41430d2610
[ "MIT" ]
null
null
null
handler.py
Mageti/webssh
b88a159fbb3bdebf087f732672962b41430d2610
[ "MIT" ]
null
null
null
handler.py
Mageti/webssh
b88a159fbb3bdebf087f732672962b41430d2610
[ "MIT" ]
1
2018-11-30T08:15:23.000Z
2018-11-30T08:15:23.000Z
import io import logging import socket import threading import traceback import weakref import paramiko import tornado.web from tornado.ioloop import IOLoop from worker import Worker, recycle_worker, workers try: from concurrent.futures import Future except ImportError: from tornado.concurrent import Future ...
32.091346
79
0.615431
c8cc84efdbd89f3311d4484371be59ba4bd3f7d4
34,200
py
Python
networking_cisco/plugins/ml2/drivers/cisco/nexus/nexus_restapi_network_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
networking_cisco/plugins/ml2/drivers/cisco/nexus/nexus_restapi_network_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
networking_cisco/plugins/ml2/drivers/cisco/nexus/nexus_restapi_network_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2017 Cisco Systems, 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 # # Unl...
37.790055
79
0.592339
c4d4e88b0b0adcfd1e82588699ffd82f01a3e26c
400
py
Python
backend/home/migrations/0003_auto_20210726_1021.py
crowdbotics-apps/test1-29185
9202c6f315964afb7c44031b82e5e0982cf29565
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0003_auto_20210726_1021.py
crowdbotics-apps/test1-29185
9202c6f315964afb7c44031b82e5e0982cf29565
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0003_auto_20210726_1021.py
crowdbotics-apps/test1-29185
9202c6f315964afb7c44031b82e5e0982cf29565
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-26 10:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0002_platforms'), ] operations = [ migrations.AlterField( model_name='platforms', name='name', ...
21.052632
74
0.5975
e0889fd5e9d89eb0bb89cb9ccc8be9fdb5801786
3,872
py
Python
test/functional/mempool_persist.py
DanielLuci/testcoin
c749274fe783e530ba9a5588c7f06e23a27cd7a7
[ "MIT" ]
31
2018-01-01T19:22:42.000Z
2022-02-05T22:55:39.000Z
test/functional/mempool_persist.py
DanielLuci/testcoin
c749274fe783e530ba9a5588c7f06e23a27cd7a7
[ "MIT" ]
18
2017-05-29T06:34:44.000Z
2018-01-23T00:42:07.000Z
test/functional/mempool_persist.py
DanielLuci/testcoin
c749274fe783e530ba9a5588c7f06e23a27cd7a7
[ "MIT" ]
60
2017-12-29T06:25:11.000Z
2022-02-17T16:37:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool persistence. By default, bitcoind will dump mempool on shutdown and then reload it on sta...
42.549451
127
0.696539
07628380035abd274e641b70c8413ab5be5ea295
2,141
py
Python
parlai/crowdsourcing/tasks/turn_annotations_static/util.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
2
2017-09-20T21:49:51.000Z
2018-08-12T06:58:10.000Z
parlai/crowdsourcing/tasks/turn_annotations_static/util.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
null
null
null
parlai/crowdsourcing/tasks/turn_annotations_static/util.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
1
2017-09-20T21:49:56.000Z
2017-09-20T21:49:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import random import shutil import subprocess from mephisto.operations.operator import Operator from mephisto...
31.028986
88
0.716021
cd751135aa5efdde39ca888db4e7bb2e0a3398d4
6,947
py
Python
visualize-aritb.py
pommes/architekturrichtlinie-it-bund-scraper
d07412997dfb7c62f4f8173b2aea0765cabd0086
[ "MIT" ]
1
2020-10-15T13:13:52.000Z
2020-10-15T13:13:52.000Z
visualize-aritb.py
pommes/architekturrichtlinie-it-bund-scraper
d07412997dfb7c62f4f8173b2aea0765cabd0086
[ "MIT" ]
null
null
null
visualize-aritb.py
pommes/architekturrichtlinie-it-bund-scraper
d07412997dfb7c62f4f8173b2aea0765cabd0086
[ "MIT" ]
null
null
null
# - Neu, Geändert, Entfallen visualisieren # - Fokus nach Tags (Kreise) visualisieren # - Relevanz auf Systemarchitektur visualisieren # - Übersicht der Änderungen (1 Seite) # - Anmerkugen zu Richtlinien (1 Seite) # - from pprint import pprint import numpy as np import pandas as pd import seaborn as sns import matplot...
37.551351
183
0.588168
c59f15693b2f65b9f65c2d737c8a8ef40c1cd12b
13,983
py
Python
deepxde/callbacks.py
ChrisDeGrendele/deepxde
a33b7940a51422b4f3d1b20e94415797e1cd08b6
[ "Apache-2.0" ]
2
2021-05-07T03:49:12.000Z
2021-08-17T16:14:25.000Z
deepxde/callbacks.py
yadhukartha/deepxde
9444e8c32becbe977adfdbd3269f4332caed5baa
[ "Apache-2.0" ]
null
null
null
deepxde/callbacks.py
yadhukartha/deepxde
9444e8c32becbe977adfdbd3269f4332caed5baa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import time import numpy as np from . import gradients as grad from .utils import list_to_str, save_animation class Callback(object): """Callback base class. Attributes: model: i...
31.779545
116
0.602231
47e493fe7de42d0eae57edb8a1d240ae58645689
478
py
Python
2020-11-08/gabi/restaurante_do_titio_justin_j.py
justinharringa/aprendendo-python
b4e472033cc31e7827190cb18bc01b2d425e2f86
[ "MIT" ]
null
null
null
2020-11-08/gabi/restaurante_do_titio_justin_j.py
justinharringa/aprendendo-python
b4e472033cc31e7827190cb18bc01b2d425e2f86
[ "MIT" ]
null
null
null
2020-11-08/gabi/restaurante_do_titio_justin_j.py
justinharringa/aprendendo-python
b4e472033cc31e7827190cb18bc01b2d425e2f86
[ "MIT" ]
null
null
null
#criar o garçon #falar com usuario #fazer o pedido #perguntar se se tem mais #salvar tudo na lista garçon = [] while True: pedido = input('cliente - fala ae brol, oq tu tem pra comer ai? garçon - ') tem_mais = input('cliente - tem mais garçon? garçon - [s/n] ') pedido.insart(0) tem_mais.i...
21.727273
82
0.633891
75a17f7adbb34953d463e7b3ce4749d0ee6506d0
18,903
py
Python
zerver/lib/email_mirror.py
laurynmm/zulip
aa5536fe3046d76813015dd7db83297a213ca03a
[ "Apache-2.0" ]
4
2021-09-16T16:46:55.000Z
2022-02-06T13:00:21.000Z
zerver/lib/email_mirror.py
jai2201/zulip
95303a9929424b55a1f7c7cce9313c4619a9533b
[ "Apache-2.0" ]
null
null
null
zerver/lib/email_mirror.py
jai2201/zulip
95303a9929424b55a1f7c7cce9313c4619a9533b
[ "Apache-2.0" ]
null
null
null
import logging import re import secrets from email.headerregistry import AddressHeader from email.message import EmailMessage from typing import Dict, List, Optional, Tuple from django.conf import settings from django.utils.timezone import now as timezone_now from django.utils.timezone import timedelta from zerver.ac...
34.244565
121
0.67439
26a7e66dad023f917d680398a565138f41184e28
13,281
py
Python
pyxl/html.py
dcramer/pyxl
c4cfed0e9dd42108b738bf854e8aa094654c31f0
[ "Apache-2.0" ]
1
2015-11-06T10:46:39.000Z
2015-11-06T10:46:39.000Z
pyxl/html.py
dcramer/pyxl
c4cfed0e9dd42108b738bf854e8aa094654c31f0
[ "Apache-2.0" ]
null
null
null
pyxl/html.py
dcramer/pyxl
c4cfed0e9dd42108b738bf854e8aa094654c31f0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from pyxl.utils import escape from pyxl.base import x_base class x_html_element(x_base): def _to_list(self, l): l.extend((u'<', self.__tag__)) for name, value in self.__attributes__.iteritems(): l.extend((u' ', name, u'="', escape(value), u'"')) l.append(u...
20.49537
104
0.557563
0cb20220f3fc874945acf4fa52b9614beac9bac0
41,094
py
Python
zarr/convenience.py
madsbk/zarr-python
9babfae7e1c2235e27eed1e0dec8bf51f2ae2dbb
[ "MIT" ]
null
null
null
zarr/convenience.py
madsbk/zarr-python
9babfae7e1c2235e27eed1e0dec8bf51f2ae2dbb
[ "MIT" ]
null
null
null
zarr/convenience.py
madsbk/zarr-python
9babfae7e1c2235e27eed1e0dec8bf51f2ae2dbb
[ "MIT" ]
null
null
null
"""Convenience functions for storing and loading data.""" import io import itertools import os import re from collections.abc import Mapping, MutableMapping from zarr.core import Array from zarr.creation import array as _create_array from zarr.creation import normalize_store_arg, open_array from zarr.errors import Cop...
34.474832
96
0.579963
1ba113f9472ed5914bcb9681a83e5313432bdbd8
2,197
py
Python
cirrocumulus/abstract_dataset.py
jkanche/cirrocumulus
242a178fd15c26cea2f5949b62f7a38fe756087d
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/abstract_dataset.py
jkanche/cirrocumulus
242a178fd15c26cea2f5949b62f7a38fe756087d
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/abstract_dataset.py
jkanche/cirrocumulus
242a178fd15c26cea2f5949b62f7a38fe756087d
[ "BSD-3-Clause" ]
null
null
null
import gzip import json import os from abc import abstractmethod, ABC class AbstractDataset(ABC): def __init__(self): super().__init__() @abstractmethod def get_suffixes(self): pass @abstractmethod def read_dataset(self, file_system, path, keys=None, dataset=None): pass ...
34.328125
119
0.529358
ec6221541747a18f1c991d33b373581e417211ef
1,330
py
Python
radionets/simulations/scripts/simulate_images.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
9
2021-06-17T10:12:28.000Z
2022-03-23T23:04:19.000Z
radionets/simulations/scripts/simulate_images.py
radionets-project/radionets
9b87ddbf704e78db55944e70071a7002f6213399
[ "MIT" ]
24
2021-02-12T13:57:11.000Z
2022-03-03T08:00:31.000Z
radionets/simulations/scripts/simulate_images.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
3
2020-01-08T09:01:09.000Z
2020-10-19T18:53:13.000Z
import click import toml from radionets.simulations.simulate import create_fft_images, sample_fft_images from radionets.simulations.utils import check_outpath, read_config, calc_norm @click.command() @click.argument("configuration_path", type=click.Path(exists=True, dir_okay=False)) def main(configuration_path): ...
28.913043
83
0.703759
807ca5d0c8d5055049e8fe752e2683bc874a5b83
4,913
py
Python
insertData.py
DLR-SC/conference-analyzer
661cdceafdb38a16b16ad7a81ae16286d21b7e2d
[ "Apache-2.0" ]
null
null
null
insertData.py
DLR-SC/conference-analyzer
661cdceafdb38a16b16ad7a81ae16286d21b7e2d
[ "Apache-2.0" ]
null
null
null
insertData.py
DLR-SC/conference-analyzer
661cdceafdb38a16b16ad7a81ae16286d21b7e2d
[ "Apache-2.0" ]
null
null
null
from neo4j.v1 import GraphDatabase from DataModels import Conference, Talk, Topic, Conference_Series class insertData(object): def __init__(self, uri, user, password): self._driver = GraphDatabase.driver(uri, auth=(user, password)) def close(self): self._driver.close() def insert_data(se...
66.391892
146
0.645634
191c75d467877ca982b5d4eb54ad35a294d70e79
2,011
py
Python
parsl/__init__.py
jrueb/parsl
96f02919442d94c06d35346706f1ed57a70a0965
[ "Apache-2.0" ]
null
null
null
parsl/__init__.py
jrueb/parsl
96f02919442d94c06d35346706f1ed57a70a0965
[ "Apache-2.0" ]
null
null
null
parsl/__init__.py
jrueb/parsl
96f02919442d94c06d35346706f1ed57a70a0965
[ "Apache-2.0" ]
null
null
null
"""Parsl is a Parallel Scripting Library, designed to enable efficient workflow execution. Importing --------- To get all the required functionality, we suggest importing the library as follows: >>> import parsl >>> from parsl import * Constants --------- AUTO_LOGNAME Special value that indicates Parsl should c...
22.595506
90
0.754848
44d89e685c89b6caa54d8e494fff66b5ecb3b42a
401
py
Python
backend/log_in_32579/wsgi.py
crowdbotics-apps/log-in-32579
72a5c0fe713b76d93592f3a85cbbcbf56ced6db6
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/log_in_32579/wsgi.py
crowdbotics-apps/log-in-32579
72a5c0fe713b76d93592f3a85cbbcbf56ced6db6
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/log_in_32579/wsgi.py
crowdbotics-apps/log-in-32579
72a5c0fe713b76d93592f3a85cbbcbf56ced6db6
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for log_in_32579 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
f484f44e1be84147ebb23e69b0bc1a1017ee4989
832
py
Python
idis/fmt.py
phantie/informative-disassembler
5931227ef5b76c9bbf609ab1d2fa24ce6cdb94a7
[ "MIT" ]
null
null
null
idis/fmt.py
phantie/informative-disassembler
5931227ef5b76c9bbf609ab1d2fa24ce6cdb94a7
[ "MIT" ]
null
null
null
idis/fmt.py
phantie/informative-disassembler
5931227ef5b76c9bbf609ab1d2fa24ce6cdb94a7
[ "MIT" ]
null
null
null
__all__ = ( 'comp', 'shorten_long', 'replace_obj', 'hide_none', 'replace_bool_with_symbol', ) import inspect import functools def comp(f, *fs): """Takes a set of functions and returns a fn that is the composition of those fns. The returned fn takes a variable number of args, applies the leftmost of fns...
24.470588
87
0.663462
1516b62405d94e3e69f3d950c83371998720da7b
1,617
py
Python
policies/spiral_policy.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
policies/spiral_policy.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
policies/spiral_policy.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
from policies.policy import Policy class SpiralPolicy(Policy): """Policy goes straight forward until it hits a wall, then turns. Baseline strategy, smarter policies should be able to outperform this. """ def __init__(self): """Initialize MazeWalkerPolicy.""" self.clockwise = True ...
32.34
74
0.58256
c361d3160ff8e04f9835692108abed4cc2dd6326
4,918
py
Python
python/cluster_motifs.py
takaho/toriilab
1222167a2fe624c5769b7d8e5f9fb714b2e638a5
[ "Apache-2.0" ]
null
null
null
python/cluster_motifs.py
takaho/toriilab
1222167a2fe624c5769b7d8e5f9fb714b2e638a5
[ "Apache-2.0" ]
null
null
null
python/cluster_motifs.py
takaho/toriilab
1222167a2fe624c5769b7d8e5f9fb714b2e638a5
[ "Apache-2.0" ]
null
null
null
""" Clustering motifs """ import numpy as np import pandas as pd import sklearn.cluster import plotly.offline import plotly.graph_objs as go import sys, argparse parser = argparse.ArgumentParser() parser.add_argument('-i' ) parser.add_argument('-n', default=7, type=int ) parser.add_argument('-o', default=None) parser...
31.729032
117
0.552664
6d94e208e81ba998875e0d6373d6765b70e7aad9
4,173
py
Python
Tasky/settings.py
elecro/Tasky
7610f6c1c3e46c543b138507cdd8ad84eaf84cfd
[ "MIT" ]
null
null
null
Tasky/settings.py
elecro/Tasky
7610f6c1c3e46c543b138507cdd8ad84eaf84cfd
[ "MIT" ]
null
null
null
Tasky/settings.py
elecro/Tasky
7610f6c1c3e46c543b138507cdd8ad84eaf84cfd
[ "MIT" ]
null
null
null
""" Django settings for Tasky project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
25.601227
100
0.669063
6124fd46dee9e311f57ca586c5af2e78d6aa2949
7,434
py
Python
tests/chainer_tests/links_tests/connection_tests/test_peephole.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
7
2017-05-08T07:02:40.000Z
2018-12-02T18:35:39.000Z
tests/chainer_tests/links_tests/connection_tests/test_peephole.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
tests/chainer_tests/links_tests/connection_tests/test_peephole.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy import chainer from chainer import cuda from chainer import gradient_check from chainer import links from chainer import testing from chainer.testing import attr def _sigmoid(x): xp = cuda.get_array_module(x) half = x.dtype.type(0.5) return xp.tanh(x * half) * half + half ...
34.100917
77
0.60573
4110cbccca90b48160e258ff20904db874349f8f
484
py
Python
dv/common/python/pybfms_wishbone_tests/initiator_smoke.py
pybfms/wishbone_bfms
14659a90b93c0af747d7c6cc550147b872df925c
[ "Apache-2.0" ]
null
null
null
dv/common/python/pybfms_wishbone_tests/initiator_smoke.py
pybfms/wishbone_bfms
14659a90b93c0af747d7c6cc550147b872df925c
[ "Apache-2.0" ]
null
null
null
dv/common/python/pybfms_wishbone_tests/initiator_smoke.py
pybfms/wishbone_bfms
14659a90b93c0af747d7c6cc550147b872df925c
[ "Apache-2.0" ]
null
null
null
''' Created on Dec 3, 2020 @author: mballance ''' import cocotb import pybfms import wishbone_bfms from wishbone_bfms.wb_initiator_bfm import WbInitiatorBfm @cocotb.test() async def entry(dut): print("entry") await pybfms.init() u_bfm : WbInitiatorBfm = pybfms.find_bfm(".*u_bfm") print("u_bfm=" ...
18.615385
57
0.626033
29c5990a904f72d3e038fabb6ca41b6c1d7c5ae8
722
py
Python
soluciones/conversor_temperatura.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
soluciones/conversor_temperatura.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
soluciones/conversor_temperatura.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Conversor de temperatura TODO: add docstrings and typing. """ from prototools import menu from prototools.menu import EzMenu from prototools.entradas import entrada_float def _fahrenheit_to_celsius(F): return (F - 32)*(5/9) def _celsius_to_fahrenhe...
21.235294
62
0.696676
cb1f63c673596d3b8c89028f780b52c1cf066e41
678
py
Python
scripts/paper_experiments/pend_img/dt_ekf_kvae_pend_img/eval_dt_ekf_kvae_pend_img.py
wuphilipp/replay-overshooting
184b1537c22ebc2f614677be8fe171de785bda42
[ "MIT" ]
null
null
null
scripts/paper_experiments/pend_img/dt_ekf_kvae_pend_img/eval_dt_ekf_kvae_pend_img.py
wuphilipp/replay-overshooting
184b1537c22ebc2f614677be8fe171de785bda42
[ "MIT" ]
null
null
null
scripts/paper_experiments/pend_img/dt_ekf_kvae_pend_img/eval_dt_ekf_kvae_pend_img.py
wuphilipp/replay-overshooting
184b1537c22ebc2f614677be8fe171de785bda42
[ "MIT" ]
1
2022-03-01T07:51:20.000Z
2022-03-01T07:51:20.000Z
from dynamics_learning.data.datasets import ( ImageDynamicDatasetConfig, PendFixedDatasetConfig, ) from dynamics_learning.training.evaluation import evaluate, load_metadata if __name__ == "__main__": pend_fixed = PendFixedDatasetConfig(traj_len=33, num_viz_trajectories=1000) dataset_config = ImageDynam...
32.285714
81
0.761062
fadbbca1e1634825470449289d397bf5db981059
11,172
pyde
Python
butterballs/butterballs.pyde
cclauss/generative_art
fc179177badd8b54b4faefd6f36f3d974ff0ca65
[ "MIT" ]
null
null
null
butterballs/butterballs.pyde
cclauss/generative_art
fc179177badd8b54b4faefd6f36f3d974ff0ca65
[ "MIT" ]
null
null
null
butterballs/butterballs.pyde
cclauss/generative_art
fc179177badd8b54b4faefd6f36f3d974ff0ca65
[ "MIT" ]
null
null
null
########################################################################## # Aaron Penne # https://github.com/aaronpenne ########################################################################## import datetime import string import sys from random import shuffle, seed import helper import bug_palette ##############...
30.52459
154
0.477086
9b96f9ce0252c58384f33186de21195f855f2af1
10,013
py
Python
Proper/proper/prop_zernikes.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
1
2021-06-25T17:35:56.000Z
2021-06-25T17:35:56.000Z
Proper/proper/prop_zernikes.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
null
null
null
Proper/proper/prop_zernikes.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
2
2018-12-08T15:05:13.000Z
2019-08-08T17:28:24.000Z
# Copyright 2016, 2017 California Institute of Technology # Users must agree to abide by the restrictions listed in the # file "LegalStuff.txt" in the PROPER library directory. # # PROPER developed at Jet Propulsion Laboratory/California Inst. Technology # Original IDL version by John Krist # Python transla...
43.34632
252
0.522121
76d62a544d804a416f7202ee697fb911fe239c3a
3,370
py
Python
jschon/catalog/_2020_12.py
ikonst/jschon
4aa5c2ffce1dca831342aab232bceff9c542c137
[ "MIT" ]
53
2021-03-31T15:32:14.000Z
2022-03-19T03:32:00.000Z
jschon/catalog/_2020_12.py
ikonst/jschon
4aa5c2ffce1dca831342aab232bceff9c542c137
[ "MIT" ]
27
2021-03-31T15:43:38.000Z
2022-03-25T08:24:49.000Z
jschon/catalog/_2020_12.py
ikonst/jschon
4aa5c2ffce1dca831342aab232bceff9c542c137
[ "MIT" ]
5
2021-03-31T18:42:10.000Z
2022-02-02T13:52:11.000Z
import pathlib from jschon.catalog import Catalog, LocalSource from jschon.uri import URI from jschon.vocabulary.annotation import * from jschon.vocabulary.applicator import * from jschon.vocabulary.core import * from jschon.vocabulary.format import * from jschon.vocabulary.validation import * def initialize(catalog...
29.823009
96
0.652522
dfc4dd42826345e44f3dd008417fb5746f4ccdfb
15,442
py
Python
chia/cmds/init_funcs.py
xchdata/chia-blockchain
cf16f523204e20eda7cca83eb8664c994d189d95
[ "Apache-2.0" ]
1
2021-12-07T19:21:40.000Z
2021-12-07T19:21:40.000Z
chia/cmds/init_funcs.py
xchdata/chia-blockchain
cf16f523204e20eda7cca83eb8664c994d189d95
[ "Apache-2.0" ]
null
null
null
chia/cmds/init_funcs.py
xchdata/chia-blockchain
cf16f523204e20eda7cca83eb8664c994d189d95
[ "Apache-2.0" ]
null
null
null
import os import shutil from pathlib import Path from typing import Any, Dict, List, Optional, Tuple import yaml from chia import __version__ from chia.consensus.coinbase import create_puzzlehash_for_pk from chia.ssl.create_ssl import ( ensure_ssl_dirs, generate_ca_signed_cert, get_chia_ca_crt_key, ma...
39.798969
118
0.672193
57cd65c57e6e4acc794d1d9b9f9fc4ed8516c503
782
py
Python
ant_1-6-1_ARC004/ARC004.py
staguchi0703/ant_book_for_atcoder
3970ccd93b38a76175fe954c8835e442ce892a6a
[ "MIT" ]
null
null
null
ant_1-6-1_ARC004/ARC004.py
staguchi0703/ant_book_for_atcoder
3970ccd93b38a76175fe954c8835e442ce892a6a
[ "MIT" ]
null
null
null
ant_1-6-1_ARC004/ARC004.py
staguchi0703/ant_book_for_atcoder
3970ccd93b38a76175fe954c8835e442ce892a6a
[ "MIT" ]
null
null
null
# %% # VScodeで入力をテキストから読み込んで標準入力に渡す import sys import os f=open(r'.\ant_1-6-1_ARC004\ARC004_input.txt', 'r', encoding="utf-8") # inputをフルパスで指定 # win10でファイルを作るとs-jisで保存されるため、読み込みをutf-8へエンコードする必要あり # VScodeでinput file開くとutf8になってるんだけど中身は結局s-jisになっているらしい sys.stdin=f # # 入力スニペット # num = int(input()) # num_list = [int(item)...
23.69697
72
0.626598
d9e6004507b89a3e9a1c50d0095eed45a28a98c4
13,109
py
Python
Lib/fontbakery/commands/check_profile.py
Archangel-Ambriel/fontbakery
360551e750c57461c49fe0be39c95797d4a65b4f
[ "Apache-2.0" ]
null
null
null
Lib/fontbakery/commands/check_profile.py
Archangel-Ambriel/fontbakery
360551e750c57461c49fe0be39c95797d4a65b4f
[ "Apache-2.0" ]
null
null
null
Lib/fontbakery/commands/check_profile.py
Archangel-Ambriel/fontbakery
360551e750c57461c49fe0be39c95797d4a65b4f
[ "Apache-2.0" ]
1
2020-06-14T17:13:59.000Z
2020-06-14T17:13:59.000Z
#!/usr/bin/env python # usage: # $ fontbakery check-profile fontbakery.profiles.googlefonts -h import argparse import importlib.util import os import sys from collections import OrderedDict from fontbakery.checkrunner import ( distribute_generator , CheckRunner , ValueValidationEr...
37.778098
102
0.604699
2ae7b73f38cd3e40e43ce4f5b66ba3d87e6060a3
144
py
Python
src/napari_convpaint/__init__.py
guiwitz/napari-convpaint
8eb9e4b8ce0b9c71cba7ea606789a3358e5b8a9b
[ "BSD-3-Clause" ]
1
2022-01-12T16:37:22.000Z
2022-01-12T16:37:22.000Z
src/napari_convpaint/__init__.py
guiwitz/napari-convpaint
8eb9e4b8ce0b9c71cba7ea606789a3358e5b8a9b
[ "BSD-3-Clause" ]
null
null
null
src/napari_convpaint/__init__.py
guiwitz/napari-convpaint
8eb9e4b8ce0b9c71cba7ea606789a3358e5b8a9b
[ "BSD-3-Clause" ]
null
null
null
try: from ._version import version as __version__ except ImportError: __version__ = "unknown" from .conv_paint import ConvPaintWidget
18
48
0.770833
d627fccb4ce41c43e33ab67768b9a8444e1dd8ed
9,435
py
Python
tests/engine/test_graph_node.py
Goxiaoy/rasa
93d9983e465f7a426930a746fef1252cbb2f8f35
[ "Apache-2.0" ]
null
null
null
tests/engine/test_graph_node.py
Goxiaoy/rasa
93d9983e465f7a426930a746fef1252cbb2f8f35
[ "Apache-2.0" ]
null
null
null
tests/engine/test_graph_node.py
Goxiaoy/rasa
93d9983e465f7a426930a746fef1252cbb2f8f35
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import Any, Dict, Optional, Text from unittest.mock import Mock import pytest import rasa.shared import rasa.shared.utils import rasa.shared.utils.io from rasa.engine.exceptions import GraphComponentException from rasa.engine.graph import ( ExecutionContext, Grap...
28.765244
87
0.640488
2f4b5edf659adb9c54c16aa2826c366e03fa43bd
2,182
py
Python
stabilizer.py
babakhajizadeh/Linux-Internet-Stabilizer
33d38ca7f0afb13c6e2d53a8d5ee4d2c63a2fa04
[ "MIT" ]
null
null
null
stabilizer.py
babakhajizadeh/Linux-Internet-Stabilizer
33d38ca7f0afb13c6e2d53a8d5ee4d2c63a2fa04
[ "MIT" ]
null
null
null
stabilizer.py
babakhajizadeh/Linux-Internet-Stabilizer
33d38ca7f0afb13c6e2d53a8d5ee4d2c63a2fa04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import time import requests import json import signal import os if os.geteuid() != 0: exit("You need to grant root privileges to run this script.") class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = ...
33.569231
118
0.544455
4c119768159179172261baf429117cf02ffe2ffb
4,354
py
Python
setup.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
setup.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
setup.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function import os import sys import subprocess import re from setuptools import setup from setuptools.command.sdist import sdist as _sdist from setuptools.command.install import install as _install VERSION_PY = """ # This file...
29.619048
104
0.570969
ef396fa1eda3fd7c7ad3187747c9ff086f440deb
168
py
Python
0x05-python-exceptions/dev/5-main.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
null
null
null
0x05-python-exceptions/dev/5-main.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
null
null
null
0x05-python-exceptions/dev/5-main.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
1
2020-09-25T17:54:36.000Z
2020-09-25T17:54:36.000Z
#!/usr/bin/python3 raise_exception = __import__('5-raise_exception').raise_exception try: raise_exception() except TypeError as te: print("Exception raised")
18.666667
65
0.75
0cd79326efadffda01715bd15821ad5875624cfa
2,312
py
Python
{compiler-p3}/tests/functional/test_misc.py
Zurek0x/Ready_Or_Not_Better-Presence
7369a1bbdf5d0c75674d3787fe67caf287f53105
[ "Apache-2.0" ]
1
2022-03-16T17:51:47.000Z
2022-03-16T17:51:47.000Z
{compiler-p3}/tests/functional/test_misc.py
Zurek0x/Ready_Or_Not_Better-Presence
7369a1bbdf5d0c75674d3787fe67caf287f53105
[ "Apache-2.0" ]
null
null
null
{compiler-p3}/tests/functional/test_misc.py
Zurek0x/Ready_Or_Not_Better-Presence
7369a1bbdf5d0c75674d3787fe67caf287f53105
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt, dis...
37.901639
119
0.650952
5d8ae1f2e4dfe6491e591e0e27f1e55d1d837917
1,665
py
Python
scripts/integrate/iree_modules.py
not-jenni/iree-samples
c726345c95cb3efa4ee622482c16c6ec4a3187d0
[ "Apache-2.0" ]
11
2022-02-23T04:07:30.000Z
2022-03-30T22:01:26.000Z
scripts/integrate/iree_modules.py
not-jenni/iree-samples
c726345c95cb3efa4ee622482c16c6ec4a3187d0
[ "Apache-2.0" ]
5
2022-02-21T17:20:59.000Z
2022-03-03T17:43:11.000Z
scripts/integrate/iree_modules.py
not-jenni/iree-samples
c726345c95cb3efa4ee622482c16c6ec4a3187d0
[ "Apache-2.0" ]
3
2022-02-21T17:18:50.000Z
2022-03-14T12:20:46.000Z
# Copyright 2022 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception class ModuleInfo: def __init__(self, *, name: str, path: str, branch_pin_file: str, ...
37.840909
78
0.685886
1432b638d722bb1a2875c68c4062907e312bdc4e
9,964
py
Python
asdl/gen_python.py
msingle/oil
5623c58d4558d37cd43e6274574d94a0e547f192
[ "Apache-2.0" ]
null
null
null
asdl/gen_python.py
msingle/oil
5623c58d4558d37cd43e6274574d94a0e547f192
[ "Apache-2.0" ]
null
null
null
asdl/gen_python.py
msingle/oil
5623c58d4558d37cd43e6274574d94a0e547f192
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """ gen_python.py Generate Python code from and ASDL schema. TODO: - What about Id? app_types? """ from __future__ import print_function from asdl import meta from asdl import visitor #from core.util import log class GenMyPyVisitor(visitor.AsdlVisitor): """Generate code with MyPy type ann...
33.776271
80
0.622541
1151ca845adfb33fca7fcbbda95a8734735e1025
15,021
py
Python
tests/test_cbers.py
Blockchainforcommons/rio-tiler-pds
5864189a8157cf42ba9bd311f7a9958a22a5e7d1
[ "BSD-3-Clause" ]
null
null
null
tests/test_cbers.py
Blockchainforcommons/rio-tiler-pds
5864189a8157cf42ba9bd311f7a9958a22a5e7d1
[ "BSD-3-Clause" ]
null
null
null
tests/test_cbers.py
Blockchainforcommons/rio-tiler-pds
5864189a8157cf42ba9bd311f7a9958a22a5e7d1
[ "BSD-3-Clause" ]
null
null
null
"""tests rio_tiler.sentinel2""" import os from unittest.mock import patch import pytest import rasterio from rio_tiler.errors import InvalidBandName, MissingBands, TileOutsideBounds from rio_tiler_pds.cbers.aws import CBERSReader from rio_tiler_pds.cbers.utils import sceneid_parser from rio_tiler_pds.errors import I...
31.689873
88
0.581319
f56ff2124705f0ac46a197e815f6b1d4cc9515af
75,106
py
Python
cw/header.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
null
null
null
cw/header.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
null
null
null
cw/header.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
1
2022-03-16T07:49:27.000Z
2022-03-16T07:49:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import io import sys import re import copy import weakref import subprocess import wx import pygame import xml.parsers.expat import shutil import math import cw def to_imgpaths(dbrec, imgdbrec): """1枚イメージの情報を持つDBレコードと 複数イメージの情報を持つD...
38.575244
168
0.53551
e1c219fbed3149d7817042626c862a4c485266b0
2,934
py
Python
extras.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
2
2015-09-26T10:46:01.000Z
2018-11-26T19:06:48.000Z
extras.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
2
2017-01-04T13:37:10.000Z
2017-01-24T14:15:52.000Z
extras.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
5
2015-09-26T12:22:16.000Z
2021-03-24T12:13:43.000Z
import _ast import os import sys from setuptools import Command #from pyflakes.scripts import pyflakes as flakes def check(filename): from pyflakes import reporter as mod_reporter from pyflakes.checker import Checker codeString = open(filename).read() reporter = mod_reporter._makeDefaultReporter() ...
33.724138
86
0.600886
29227165c2219244ceaf1e2eba15292b8652de41
568
py
Python
photos/migrations/0002_category.py
Mugisha-Beline/my-gallery
36aa676c0df72ad879aedcee925cfdb7fa445e9b
[ "MIT" ]
null
null
null
photos/migrations/0002_category.py
Mugisha-Beline/my-gallery
36aa676c0df72ad879aedcee925cfdb7fa445e9b
[ "MIT" ]
null
null
null
photos/migrations/0002_category.py
Mugisha-Beline/my-gallery
36aa676c0df72ad879aedcee925cfdb7fa445e9b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-10-04 08:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('photos', '0001_initial'), ] operations = [ migrations.CreateModel( ...
25.818182
114
0.589789
e6e72e1244ee0df887231d35041afe10571d35a8
1,077
py
Python
analysis3.py
nonsk131/USRP2016
1764aefa30f0491fd725befc6af0b6fd9fd4866e
[ "MIT" ]
null
null
null
analysis3.py
nonsk131/USRP2016
1764aefa30f0491fd725befc6af0b6fd9fd4866e
[ "MIT" ]
null
null
null
analysis3.py
nonsk131/USRP2016
1764aefa30f0491fd725befc6af0b6fd9fd4866e
[ "MIT" ]
null
null
null
import pandas as pd from isochrones.dartmouth import Dartmouth_Isochrone from isochrones.starmodel import StarModel from isochrones.observation import ObservationTree import numpy as np df_data = pd.DataFrame() for i in range(6000,7000,1): df = pd.read_csv('/tigress/np5/dataFrame/df_binary_test{}.csv'.format(i)) ...
32.636364
85
0.675952
e5463e08fcd5d68d75b305d2de5b76ca5948486f
1,558
py
Python
xml-cnn/code/models/xmlCNN.py
NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations
ce3cb8fc4c63b16f41fc41d8788503ebe146c73c
[ "MIT" ]
3
2021-12-27T00:57:07.000Z
2022-03-17T00:48:51.000Z
xml-cnn/code/models/xmlCNN.py
NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations
ce3cb8fc4c63b16f41fc41d8788503ebe146c73c
[ "MIT" ]
null
null
null
xml-cnn/code/models/xmlCNN.py
NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations
ce3cb8fc4c63b16f41fc41d8788503ebe146c73c
[ "MIT" ]
null
null
null
from header import * from cnn_encoder import cnn_encoder from lib.utils import Measure class xmlCNN(nn.Module): def __init__(self, params, embedding_weights): super(xmlCNN, self).__init__() self.params = params self.embedding_layer = embedding_layer(params, embedding_weights) self.c...
33.148936
80
0.566752
b0e36d2534c7a012fd12d3096cd78c7fa642f33b
76,038
py
Python
dohq_teamcity/api/vcs_root_api.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
23
2018-10-19T07:28:45.000Z
2021-11-12T12:46:09.000Z
dohq_teamcity/api/vcs_root_api.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
31
2018-10-16T05:53:11.000Z
2021-09-09T14:44:14.000Z
dohq_teamcity/api/vcs_root_api.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
12
2018-10-28T23:00:17.000Z
2021-09-07T12:07:13.000Z
# coding: utf-8 """ TeamCity REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2018.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import fro...
41.101622
150
0.615179
7126c0d7b3896d0e91fe950969ca8e9f5c5bd72c
231
py
Python
f5_lbaasv2_bigiq_driver/constants.py
zhaoqin-github/f5-openstack-lbaasv2-bigiq-driver
44f7d476a6c2a899c12e6d3292595727018bf31c
[ "Apache-2.0" ]
null
null
null
f5_lbaasv2_bigiq_driver/constants.py
zhaoqin-github/f5-openstack-lbaasv2-bigiq-driver
44f7d476a6c2a899c12e6d3292595727018bf31c
[ "Apache-2.0" ]
null
null
null
f5_lbaasv2_bigiq_driver/constants.py
zhaoqin-github/f5-openstack-lbaasv2-bigiq-driver
44f7d476a6c2a899c12e6d3292595727018bf31c
[ "Apache-2.0" ]
null
null
null
LBAASV2_BIGIQ_AGENT_TYPE = 'F5 LBaasV2 BIG-IQ Agent' # RPC channel names TOPIC_LBAASV2_BIGIQ_DRIVER = "f5-lbaasv2-bigiq-driver" TOPIC_LBAASV2_BIGIQ_AGENT = "f5-lbaasv2-bigiq-agent" RPC_API_VERSION = '1.0' RPC_API_NAMESPACE = None
28.875
54
0.805195
14cc1428eea725c82bdefeba48e71a0d24546bd6
64
py
Python
tests/tests/acceptance/__init__.py
daynejones/django-moderation
565481f1832114da2d0c48b0c23977d4d3a9b914
[ "BSD-3-Clause" ]
97
2015-03-21T02:18:39.000Z
2022-02-22T01:30:19.000Z
tests/tests/acceptance/__init__.py
daynejones/django-moderation
565481f1832114da2d0c48b0c23977d4d3a9b914
[ "BSD-3-Clause" ]
85
2015-05-05T05:22:23.000Z
2022-03-28T10:32:00.000Z
tests/tests/acceptance/__init__.py
daynejones/django-moderation
565481f1832114da2d0c48b0c23977d4d3a9b914
[ "BSD-3-Clause" ]
70
2015-04-13T07:29:32.000Z
2022-03-24T10:54:58.000Z
''' Package contains acceptance tests for django-moderation '''
16
55
0.765625
cac6b111d9bfda38021675d486d771ffa0b5bd76
1,877
py
Python
Gse/generated/Ref/commands/ALOG_SET_EVENT_REPORT_FILTER.py
dstockhouse/eaglesat-fprime
e640b3faea0000e1ca8acab4d6ff66150196c32b
[ "Apache-2.0" ]
null
null
null
Gse/generated/Ref/commands/ALOG_SET_EVENT_REPORT_FILTER.py
dstockhouse/eaglesat-fprime
e640b3faea0000e1ca8acab4d6ff66150196c32b
[ "Apache-2.0" ]
null
null
null
Gse/generated/Ref/commands/ALOG_SET_EVENT_REPORT_FILTER.py
dstockhouse/eaglesat-fprime
e640b3faea0000e1ca8acab4d6ff66150196c32b
[ "Apache-2.0" ]
null
null
null
''' Created on Wednesday, 10 April 2019 @author: David THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT!!! XML Source: /cygdrive/c/Users/David/Documents/eaglesat/eaglesat-fprime/Svc/ActiveLogger/ActiveLoggerComponentAi.xml ''' # Import the types this way so they do not need prefixing for execution. from models.ser...
34.127273
193
0.78423
46ea8e09644cbefc24d788bcc6c5374367dd5d71
5,813
py
Python
synapse/util/caches/response_cache.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
1
2021-03-29T22:47:31.000Z
2021-03-29T22:47:31.000Z
synapse/util/caches/response_cache.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
1
2019-04-04T05:08:04.000Z
2019-04-04T05:08:04.000Z
synapse/util/caches/response_cache.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2016 OpenMarket Ltd # # 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 la...
35.662577
88
0.634612
6aa73623e6e60f80bfb5957bbf8a3dc2124e6f66
24,121
py
Python
test/functional/test_framework/mininode.py
mrostecki/bitcoin
5f19155e5bca37bf1fe14515758c6f589f6806ae
[ "MIT" ]
6
2021-06-01T04:12:51.000Z
2021-09-05T22:29:09.000Z
test/functional/test_framework/mininode.py
mrostecki/bitcoin
5f19155e5bca37bf1fe14515758c6f589f6806ae
[ "MIT" ]
2
2020-01-30T04:41:59.000Z
2020-02-12T14:10:23.000Z
test/functional/test_framework/mininode.py
mrostecki/bitcoin
5f19155e5bca37bf1fe14515758c6f589f6806ae
[ "MIT" ]
5
2019-12-17T23:52:00.000Z
2021-06-13T20:39:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin P2P ...
38.287302
182
0.642386
d59647e822d07868ab73eab06d0e76c114c04df1
3,372
py
Python
tests/test_loopdiagram.py
cristianomariacumer/eppy
4ed38c2b40121a6bdf3c9f5dc33d1f1243cfc4be
[ "MIT" ]
116
2015-04-07T13:58:34.000Z
2022-02-23T15:52:35.000Z
tests/test_loopdiagram.py
cristianomariacumer/eppy
4ed38c2b40121a6bdf3c9f5dc33d1f1243cfc4be
[ "MIT" ]
324
2015-01-01T04:10:46.000Z
2022-03-16T16:28:13.000Z
tests/test_loopdiagram.py
cristianomariacumer/eppy
4ed38c2b40121a6bdf3c9f5dc33d1f1243cfc4be
[ "MIT" ]
65
2015-07-14T21:57:02.000Z
2022-02-14T08:39:02.000Z
# Copyright (c) 2012 Santosh Philip # Copyright (c) 2016 Jamie Bull # ======================================================================= # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ======================================================...
27.193548
88
0.510973
25179f1e62132671bd009017891f3646f35dfc18
1,611
py
Python
src/reporter/query_NTNE.py
cnoelle/ngsi-timeseries-api
77ed420c0a7532bcc13d941c0402f457cc40407a
[ "MIT" ]
null
null
null
src/reporter/query_NTNE.py
cnoelle/ngsi-timeseries-api
77ed420c0a7532bcc13d941c0402f457cc40407a
[ "MIT" ]
null
null
null
src/reporter/query_NTNE.py
cnoelle/ngsi-timeseries-api
77ed420c0a7532bcc13d941c0402f457cc40407a
[ "MIT" ]
null
null
null
from exceptions.exceptions import AmbiguousNGSIIdError from flask import request from reporter.reporter import _validate_query_params from translators.crate import CrateTranslatorInstance, CrateTranslator import logging def query_NTNE(limit=10000, type_=None, # In Query from_date=Non...
30.980769
70
0.55928
b2e2a04a59f56087d7b9fd6fab3fe7254cea0580
104
py
Python
market.py
ds-vologdin/market-form-flask
28a46e4cb9077f6b3f7bc0e2727bb51d401fd68c
[ "MIT" ]
13
2019-05-24T20:52:31.000Z
2022-02-02T10:27:54.000Z
market.py
ds-vologdin/market-form-flask
28a46e4cb9077f6b3f7bc0e2727bb51d401fd68c
[ "MIT" ]
null
null
null
market.py
ds-vologdin/market-form-flask
28a46e4cb9077f6b3f7bc0e2727bb51d401fd68c
[ "MIT" ]
7
2019-11-05T09:25:41.000Z
2021-11-16T15:48:37.000Z
from app.app import create_app app = create_app() if __name__ == '__main__': app.run(debug=True)
13
30
0.692308
9199814f3ad405fa05b88df1fd3c8fc566abd7dd
976
py
Python
isi_sdk_8_0_1/test/test_snapshot_schedule_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/test/test_snapshot_schedule_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/test/test_snapshot_schedule_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
23.804878
106
0.727459
087fda3c9907d7832a7194fed2896d736192fbf8
7,950
py
Python
tests/project/reliability/prm/test_elcc_surface.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
tests/project/reliability/prm/test_elcc_surface.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
tests/project/reliability/prm/test_elcc_surface.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.491071
76
0.567925
1d65a5b2e74cfaa2532c3792ba7493886a4361bf
470
py
Python
main/migrations/0006_vaccine_slug.py
sirodoht/allthevaccines
1bce333cbf4e3e048d89bcdad003bfa036b7005e
[ "MIT" ]
2
2022-01-06T17:39:37.000Z
2022-01-06T19:29:30.000Z
main/migrations/0006_vaccine_slug.py
sirodoht/allthevaccines
1bce333cbf4e3e048d89bcdad003bfa036b7005e
[ "MIT" ]
null
null
null
main/migrations/0006_vaccine_slug.py
sirodoht/allthevaccines
1bce333cbf4e3e048d89bcdad003bfa036b7005e
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-20 18:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main", "0005_vaccine_other_url_vaccine_wikipedia_url"), ] operations = [ migrations.AddField( model_name="vaccine", na...
23.5
85
0.625532
2785d21b4e52df16e04609d6cb33f467a29de667
2,518
py
Python
olist_ecommerce/load_data.py
mara/mara-olist-ecommerce-data
663660edff1b4cd711a172027081915771628b9f
[ "MIT" ]
1
2021-03-12T04:47:05.000Z
2021-03-12T04:47:05.000Z
olist_ecommerce/load_data.py
mara/mara-olist-ecommerce-data
663660edff1b4cd711a172027081915771628b9f
[ "MIT" ]
null
null
null
olist_ecommerce/load_data.py
mara/mara-olist-ecommerce-data
663660edff1b4cd711a172027081915771628b9f
[ "MIT" ]
null
null
null
import contextlib import logging import pathlib import psycopg2 from olist_ecommerce import config ECOMMERCE_TABLES = ['ecommerce.customers', 'ecommerce.geolocation', 'ecommerce.order_items', 'ecommerce.order_payments', 'ecommerce.order_reviews', 'ecommerce.orders', 'ecommerce...
34.972222
119
0.683876
7c1c237b9171e5e7fbfb13827ca3b355a278eee3
637
py
Python
contrib/python/numpy/numpy/testing/setup.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
195
2016-01-14T16:03:02.000Z
2021-12-29T09:15:02.000Z
contrib/python/numpy/numpy/testing/setup.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
75
2016-01-14T16:03:02.000Z
2020-04-29T22:51:53.000Z
contrib/python/numpy/numpy/testing/setup.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
44
2017-02-04T19:40:03.000Z
2020-10-01T19:24:19.000Z
#!/usr/bin/env python from __future__ import division, print_function def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('testing', parent_package, top_path) config.add_data_dir('tests') return config if __name__ == '__main_...
30.333333
63
0.687598