hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
bfabf4fd12a9332dcec2ddca5c514bd1320a4778
5,954
py
Python
homeassistant/components/tradfri/config_flow.py
tohara/home-assistant
d7fcb5268ad3c48d4e1a4bd202cd926810ab3e26
[ "Apache-2.0" ]
2
2018-01-21T20:25:04.000Z
2018-08-01T08:05:06.000Z
homeassistant/components/tradfri/config_flow.py
tohara/home-assistant
d7fcb5268ad3c48d4e1a4bd202cd926810ab3e26
[ "Apache-2.0" ]
4
2021-03-19T01:22:18.000Z
2022-01-13T01:19:34.000Z
homeassistant/components/tradfri/config_flow.py
tohara/home-assistant
d7fcb5268ad3c48d4e1a4bd202cd926810ab3e26
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""Config flow for Tradfri.""" import asyncio from collections import OrderedDict from uuid import uuid4 import async_timeout import voluptuous as vol from homeassistant import config_entries from .const import ( CONF_IMPORT_GROUPS, CONF_IDENTITY, CONF_HOST, CONF_KEY, CONF_GATEWAY_ID) KEY_SECURITY_CODE = 'secur...
31.336842
79
0.610346
d9c2e4bd6f0c9ce65f421931b5d79cd3eb3dcc19
44
py
Python
midea_beautiful/version.py
ethan021021/midea-beautiful-air
9f71f1111551fa79c3e899c68144c79ffac9ad95
[ "MIT" ]
null
null
null
midea_beautiful/version.py
ethan021021/midea-beautiful-air
9f71f1111551fa79c3e899c68144c79ffac9ad95
[ "MIT" ]
null
null
null
midea_beautiful/version.py
ethan021021/midea-beautiful-air
9f71f1111551fa79c3e899c68144c79ffac9ad95
[ "MIT" ]
null
null
null
""" Version File """ __version__ = "0.8.42"
14.666667
22
0.590909
3ce0f60a187e6b042ad58edd14f17e797bbc9301
744
py
Python
discordbot.py
tasuren/CuBOT-Discord
176549e0f33afb37a28f38c7d2f27f5a254dd603
[ "MIT" ]
null
null
null
discordbot.py
tasuren/CuBOT-Discord
176549e0f33afb37a28f38c7d2f27f5a254dd603
[ "MIT" ]
null
null
null
discordbot.py
tasuren/CuBOT-Discord
176549e0f33afb37a28f38c7d2f27f5a254dd603
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os import sys intents = discord.Intents.all() client = discord.Client(intents=intents) bot = commands.Bot( command_prefix=["Cu!", "cu!"], help_command=None, intents=intents, allowed_mentions=discord.AllowedMentions(replied_user=False, everyone=Fals...
23.25
94
0.751344
fdb7129d116187f6e0260469ccc6937ecf6adbf3
556
py
Python
map/urls.py
noah-dev/meetup_map
fa047518e7c932960473018460a20c3149e61d98
[ "MIT" ]
null
null
null
map/urls.py
noah-dev/meetup_map
fa047518e7c932960473018460a20c3149e61d98
[ "MIT" ]
2
2020-02-11T23:22:17.000Z
2020-06-05T17:24:58.000Z
map/urls.py
noah-dev/event_mapper
fa047518e7c932960473018460a20c3149e61d98
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'map' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^privacy/$', views.privacy, name='privacy'), url(r'^concept/$', views.concept, name='concept'), url(r'^partial/$', views.partial, name='partial'), url(r'^meetups_data/...
37.066667
93
0.690647
f093c86b0ade571a816a02a13203929ef70bb9c7
14,431
py
Python
rpc/train_rnn.py
siddharthgir/google-research
07bf624ffbde9307f3ebe0a685804ec665eef919
[ "Apache-2.0" ]
null
null
null
rpc/train_rnn.py
siddharthgir/google-research
07bf624ffbde9307f3ebe0a685804ec665eef919
[ "Apache-2.0" ]
null
null
null
rpc/train_rnn.py
siddharthgir/google-research
07bf624ffbde9307f3ebe0a685804ec665eef919
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
34.941889
165
0.719285
e33eae78807dd55bc502aaae39697168ab2ab486
1,138
py
Python
scripts/examples/Arduino/Portenta-H7/04-Image-Filters/mean_adaptive_threshold_filter.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
1,761
2015-07-10T23:14:17.000Z
2022-03-30T07:49:49.000Z
scripts/examples/Arduino/Portenta-H7/04-Image-Filters/mean_adaptive_threshold_filter.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
487
2015-07-07T23:21:20.000Z
2022-03-30T17:13:22.000Z
scripts/examples/Arduino/Portenta-H7/04-Image-Filters/mean_adaptive_threshold_filter.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
882
2015-08-01T08:34:19.000Z
2022-03-30T07:36:23.000Z
# Mean Adaptive Threshold Filter Example # # This example shows off mean filtering with adaptive thresholding. # When mean(threshold=True) the mean() method adaptive thresholds the image # by comparing the mean of the pixels around a pixel, minus an offset, with that pixel. import sensor, image, time sensor.reset() #...
43.769231
87
0.730228
a766bb12f6957dc0ecb3ad35df49e5b0f1314691
2,591
py
Python
clustering/visualization.py
ECML-PKDD-2021/SIMPRIM
5d2127b66aa443ac2c2a1e4a59e9b07c055f93d4
[ "MIT" ]
null
null
null
clustering/visualization.py
ECML-PKDD-2021/SIMPRIM
5d2127b66aa443ac2c2a1e4a59e9b07c055f93d4
[ "MIT" ]
null
null
null
clustering/visualization.py
ECML-PKDD-2021/SIMPRIM
5d2127b66aa443ac2c2a1e4a59e9b07c055f93d4
[ "MIT" ]
null
null
null
# Standard import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns; sns.set() # for plot styling from sklearn.metrics import confusion_matrix import skopt.plots def plot_confusion_matrix(true_labels, cluster_class_labels, size=(13,13)): """ Confusion Matrix that show...
31.987654
99
0.644925
0325dd2238cd3ece608986b3ce91cff4016991fb
3,503
py
Python
tests/test_exceptions/test_exceptions.py
ricohapi/ricoh-cloud-sdk-python
740d778c678e6097e3c35478545cbf283276a7ee
[ "MIT" ]
2
2018-08-14T21:01:07.000Z
2019-12-16T07:21:09.000Z
tests/test_exceptions/test_exceptions.py
ricohapi/ricoh-cloud-sdk-python
740d778c678e6097e3c35478545cbf283276a7ee
[ "MIT" ]
null
null
null
tests/test_exceptions/test_exceptions.py
ricohapi/ricoh-cloud-sdk-python
740d778c678e6097e3c35478545cbf283276a7ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017 Ricoh Co., Ltd. All Rights Reserved. from unittest import TestCase from ricohcloudsdk.exceptions import ClientError, ServerError class TestSDKError(TestCase): def __make_sdk_error_message(self, status_code, code='undefined', message='undefined'): ERROR_TEMPLA...
40.264368
118
0.630888
209ebcca233df3cff540ba1f5949787f1924a748
4,749
py
Python
cosmic-core/test/integration/tests/test_vm_migration.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
64
2016-01-30T13:31:00.000Z
2022-02-21T02:13:25.000Z
cosmic-core/test/integration/tests/test_vm_migration.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
525
2016-01-22T10:46:31.000Z
2022-02-23T11:08:01.000Z
cosmic-core/test/integration/tests/test_vm_migration.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
25
2016-01-13T16:46:46.000Z
2021-07-23T15:22:27.000Z
from cosmic.base import * from cosmic.common import * from cosmic.cosmicLog import CosmicLog from cosmic.cosmicTestCase import cosmicTestCase class TestVmMigration(cosmicTestCase): @classmethod def setUpClass(cls, redundant=False): cls.class_cleanup = [] cls.logger = CosmicLog(CosmicLog.LOGGER...
42.026549
134
0.619709
c183a4527519c4f7f32de0e781e5d8e9717b0e2e
296
py
Python
stubs/micropython-pyboard-1_13-95/hashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
stubs/micropython-pyboard-1_13-95/hashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
stubs/micropython-pyboard-1_13-95/hashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
6
2020-12-28T21:11:12.000Z
2022-02-06T04:07:50.000Z
""" Module: 'hashlib' on pyboard 1.13.0-95 """ # MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG') # Stubber: 1.3.4 class sha256: '' def digest(): pass def update(): pass
19.733333
145
0.60473
f6a422180b0dfbf62a353c7a5579b054abc01723
186,707
py
Python
pandas/core/indexes/base.py
falcaopetri/pandas
7673357191709036faad361cbb5f31a802703249
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2021-01-06T04:28:46.000Z
2021-11-24T01:40:20.000Z
pandas/core/indexes/base.py
falcaopetri/pandas
7673357191709036faad361cbb5f31a802703249
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/base.py
falcaopetri/pandas
7673357191709036faad361cbb5f31a802703249
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from datetime import datetime import operator from textwrap import dedent from typing import TYPE_CHECKING, Any, FrozenSet, Hashable, Union import warnings import numpy as np from pandas._libs import algos as libalgos, index as libindex, lib import pandas._libs.join as libjoin from pandas._libs.lib import is_datetime...
32.307839
88
0.560541
2e32cb41a530fd7b7174d641693f1f163ac6db27
1,067
py
Python
reseaut/apps/profiles/migrations/0001_initial.py
koladev32/Beta
30a889f0e62dbb2bf518c1bba78ecc3913783ba6
[ "Apache-2.0" ]
null
null
null
reseaut/apps/profiles/migrations/0001_initial.py
koladev32/Beta
30a889f0e62dbb2bf518c1bba78ecc3913783ba6
[ "Apache-2.0" ]
3
2021-10-06T05:49:36.000Z
2022-02-18T12:57:20.000Z
reseaut/apps/profiles/migrations/0001_initial.py
koladev32/Beta
30a889f0e62dbb2bf518c1bba78ecc3913783ba6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-28 04:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
32.333333
121
0.592315
a7fc464bd6bb7cf321f953ebda332ca0907557e3
595
py
Python
scripts/data/nuc/pasteandrotate.py
abccdabfgc/simdjson
4c132012e39c43a4b23f0db1edda0ce134c59cdb
[ "Apache-2.0" ]
null
null
null
scripts/data/nuc/pasteandrotate.py
abccdabfgc/simdjson
4c132012e39c43a4b23f0db1edda0ce134c59cdb
[ "Apache-2.0" ]
null
null
null
scripts/data/nuc/pasteandrotate.py
abccdabfgc/simdjson
4c132012e39c43a4b23f0db1edda0ce134c59cdb
[ "Apache-2.0" ]
null
null
null
import os import csv try: import pandas as pd except ImportError: import pip pip.main(['install', '--user', 'pandas']) import pandas as pd def getdata(filename): df = pd.read_csv(filename, delim_whitespace=True) return (df["gb_per_s"].tolist()) ourdir=os.path.dirname(os.path.realpath(__file__)) a...
24.791667
53
0.672269
a11f8cf525b5946f65c505f7c288fd8f9e161812
4,486
py
Python
PYats/Genie/005_pyATS-Netbox_tests/utils/tests.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
1
2021-07-10T09:22:55.000Z
2021-07-10T09:22:55.000Z
PYats/Genie/005_pyATS-Netbox_tests/utils/tests.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
PYats/Genie/005_pyATS-Netbox_tests/utils/tests.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
def verify_interface_enabled(netbox_interfaces, pyats_interfaces): """Verifies whether the current interface state matches what's in NetBox Args: netbox_interface: Interfaces for a given device in NetBox pyats_interfaces: Current interfaces on a device Returns: results: Dictionary ...
47.221053
146
0.570218
31e79dfb0e80ad4cae96930c5af559507cdbee07
11,835
py
Python
models/encoder_inception_v4.py
yangsuhui/Attention_ocr_recognition
360aac324573092f5afea924d6548fa2ddf6c4e9
[ "MIT" ]
3
2020-11-06T08:16:06.000Z
2021-09-14T09:27:45.000Z
models/encoder_inception_v4.py
yangsuhui/Attention_ocr_recognition
360aac324573092f5afea924d6548fa2ddf6c4e9
[ "MIT" ]
null
null
null
models/encoder_inception_v4.py
yangsuhui/Attention_ocr_recognition
360aac324573092f5afea924d6548fa2ddf6c4e9
[ "MIT" ]
1
2021-06-20T18:52:06.000Z
2021-06-20T18:52:06.000Z
from __future__ import print_function, division, absolute_import import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo import os import sys __all__ = ['InceptionV4', 'inceptionv4'] pretrained_settings = { 'inceptionv4': { 'imagenet': { ...
33.058659
95
0.56147
ad48ca65a99ee596edd8c14143e57055eacbce6f
245
py
Python
Chapter 09/Chap09_Example9.20.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 09/Chap09_Example9.20.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 09/Chap09_Example9.20.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
with open('readinput.txt') as myfile1: print(myfile1.tell()) # T1 print("-----------") print(myfile1.read(4)) # T2 print(myfile1.tell()) # T3 print("-----------") print(myfile1.read()) # T4 print(myfile1.tell()) # T5
27.222222
38
0.530612
d7cf740d603957e0a915500703af07c95bb8f3a7
4,925
py
Python
app/api/helpers/constants.py
lunyamwis/laylinks-bend
04ff9ebb5da482e5b2642a89654a5b5f0128eaaa
[ "MIT" ]
null
null
null
app/api/helpers/constants.py
lunyamwis/laylinks-bend
04ff9ebb5da482e5b2642a89654a5b5f0128eaaa
[ "MIT" ]
null
null
null
app/api/helpers/constants.py
lunyamwis/laylinks-bend
04ff9ebb5da482e5b2642a89654a5b5f0128eaaa
[ "MIT" ]
null
null
null
USER_REQUIRED_FIELD = ['first_name', 'last_name', 'username', 'email', 'password', 'phone_number'] EMPLOYEE_REQUIRED_FIELD = ['first_name', 'last_name', "email"] INDIVIDUAL_CLIENT_REQUIRED_FIELD = ['first_name', 'last_name', 'gender'] BLOG_REQUIRED_FIELD = ['title','post','summary'] CORPORATE_CLI...
80.737705
130
0.637766
be7ec4dcd7225878b0e3d112be94236ddc52f45d
10,402
py
Python
sahara/context.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
sahara/context.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
sahara/context.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
30.775148
78
0.622092
38f542cdd53fae9f7d670316f1b796ca1e9fa17a
241
py
Python
draugr/drawers/mpl_drawers/spectral/__init__.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
3
2019-09-27T08:04:59.000Z
2020-12-02T06:14:45.000Z
draugr/drawers/mpl_drawers/spectral/__init__.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
64
2019-09-27T08:03:42.000Z
2022-03-28T15:07:30.000Z
draugr/drawers/mpl_drawers/spectral/__init__.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
1
2020-10-01T00:18:57.000Z
2020-10-01T00:18:57.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 03/04/2020 """ from .fast_fourier_transform import * from .fast_fourier_transform_spectrogram import *
20.083333
49
0.659751
e5d95e711a7485f9534860fa422255585c8fe0ba
2,510
py
Python
geography/management/commands/bootstrap_geom_hi.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
1
2018-07-31T13:54:38.000Z
2018-07-31T13:54:38.000Z
geography/management/commands/bootstrap_geom_hi.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
7
2018-04-18T20:57:40.000Z
2021-06-10T20:50:40.000Z
geography/management/commands/bootstrap_geom_hi.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
1
2018-12-15T20:17:52.000Z
2018-12-15T20:17:52.000Z
import os import geojson import shapefile from django.core.management.base import BaseCommand from geography.models import Division, DivisionLevel, Geometry from geography.utils.lookups import county_lookup from .bootstrap._arguments import ArgumentsMethods from .bootstrap._attributes import Attributes from .bootstra...
33.026316
102
0.59004
e306f300b5a6114510052fbb3d04393324526000
837
gyp
Python
binding.gyp
SlimIO/Nixfs
20e198c96231485197ff60161f3c71c70cbc01d1
[ "MIT" ]
null
null
null
binding.gyp
SlimIO/Nixfs
20e198c96231485197ff60161f3c71c70cbc01d1
[ "MIT" ]
115
2019-10-01T17:28:19.000Z
2021-08-02T04:46:26.000Z
binding.gyp
SlimIO/Nixfs
20e198c96231485197ff60161f3c71c70cbc01d1
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "nixfs", "sources": [ "nixfs.cpp" ], "include_dirs": [ "include", "<!@(node -p \"require('node-addon-api').include\")" ], "dependencies": [ ...
27.9
68
0.364397
80607331a1ffa3f85ff0e958a0bc12aa4904daab
16,738
py
Python
compiler/pgates/pnand4.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
335
2018-03-13T21:05:22.000Z
2022-03-30T07:53:25.000Z
compiler/pgates/pnand4.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
87
2018-03-06T00:55:51.000Z
2022-03-30T19:38:29.000Z
compiler/pgates/pnand4.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
95
2018-03-14T16:22:55.000Z
2022-03-24T00:34:37.000Z
# See LICENSE for licensing information. # # Copyright (c) 2016-2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import pgate import debug from tech import drc, ...
42.590331
121
0.539252
6efe3cf78e53cb52649e15717cd3d21439a353f2
15,463
py
Python
config_custom_ruleset_lambda_fucntions/AMI_NOT_PUBLIC_CHECK/AMI_NOT_PUBLIC_CHECK.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
3
2019-09-02T14:24:49.000Z
2022-02-23T16:22:12.000Z
config_custom_ruleset_lambda_fucntions/AMI_NOT_PUBLIC_CHECK/AMI_NOT_PUBLIC_CHECK.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
null
null
null
config_custom_ruleset_lambda_fucntions/AMI_NOT_PUBLIC_CHECK/AMI_NOT_PUBLIC_CHECK.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
1
2019-10-14T19:38:48.000Z
2019-10-14T19:38:48.000Z
''' ##################################### ## Gherkin ## ##################################### Rule Name: AMI_NOT_PUBLIC_CHECK Description: Check whether the Amazon Machine Images are not publicly accessible. The rule is NON_COMPLIANT if one or more Amazon Machine Images are publicly access...
42.833795
178
0.706267
b9970fbcb4163a4c8ec99dca7fd36bd2a6e95059
438
py
Python
python/rabbit/Scripts/easy_install-script.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
1
2021-01-24T02:07:34.000Z
2021-01-24T02:07:34.000Z
python/rabbit/Scripts/easy_install-script.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
python/rabbit/Scripts/easy_install-script.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
#!E:\thomas_program\python\rabbit\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',...
33.692308
83
0.694064
ddc2ee85ae38761d55a9f35e1161725df1c47108
1,196
py
Python
hello_network.py
xlsong2002/test
ddaacb2669637b5355d69cd9c788cc8fe261df45
[ "MIT" ]
2
2021-02-16T19:19:01.000Z
2021-05-07T04:50:43.000Z
hello_network.py
xlsong2002/test
ddaacb2669637b5355d69cd9c788cc8fe261df45
[ "MIT" ]
null
null
null
hello_network.py
xlsong2002/test
ddaacb2669637b5355d69cd9c788cc8fe261df45
[ "MIT" ]
15
2019-03-26T08:55:38.000Z
2022-02-19T21:10:46.000Z
#!/usr/bin/env python """Simple hello world (network) script. Script Dependencies: none Copyright (c) 2018 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software witho...
39.866667
78
0.79097
fd4f84f3ec61fbebc171abbca59803df686df1a0
1,666
py
Python
tools/picker/blades/console/write.py
laurent-malvert/lemona
0b8b6364932c1e8865b3cdfd0f475cbff7584ab2
[ "X11", "MIT" ]
null
null
null
tools/picker/blades/console/write.py
laurent-malvert/lemona
0b8b6364932c1e8865b3cdfd0f475cbff7584ab2
[ "X11", "MIT" ]
null
null
null
tools/picker/blades/console/write.py
laurent-malvert/lemona
0b8b6364932c1e8865b3cdfd0f475cbff7584ab2
[ "X11", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ## ## This file is part of Lemona. ## Copyright (C) 2008 Kenfe-Mickaël Laventure ## ## The contents of this file are subject to the terms of either the ## GNU General Public License Version 2 ("GPL") or the MIT License ## (collectively, the "License"). You may not use this file except in ## comp...
33.32
69
0.617647
a97e7ab2a971714f69c593ec404449aca01062ab
7,276
py
Python
splunk-custom.py
ashbyca/rsc-admin
7af545930ecce054befe2b076a36ef45d3077119
[ "MIT" ]
null
null
null
splunk-custom.py
ashbyca/rsc-admin
7af545930ecce054befe2b076a36ef45d3077119
[ "MIT" ]
1
2018-12-19T17:19:51.000Z
2018-12-19T17:20:09.000Z
splunk-custom.py
ashbyca/misc-scripts
7af545930ecce054befe2b076a36ef45d3077119
[ "MIT" ]
null
null
null
############## CONFIGURATION ######################################################################## ''' The purpose of this custom python code is to create PTR / TRAP Alerts from Splunk Alerts Step 1: Upload this code to Main Menu -> Scripts -> ETL Scripts Step 2: Create a PTR Scripted Listener Event Source Step ...
48.506667
146
0.669874
a2bb2f1f961189d04343533e8367c3b4dc753b2d
17,600
py
Python
neutron/tests/fullstack/resources/environment.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/fullstack/resources/environment.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/fullstack/resources/environment.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Red Hat, 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 agre...
38.76652
79
0.648977
54496375b538ae3aad7296d7d31b61a717ab0968
6,804
py
Python
test/functional/rpc_getblockstats.py
Sebz84/ain
451abddc7802ac4ee4dbf30117ca074414f4fdca
[ "MIT" ]
null
null
null
test/functional/rpc_getblockstats.py
Sebz84/ain
451abddc7802ac4ee4dbf30117ca074414f4fdca
[ "MIT" ]
null
null
null
test/functional/rpc_getblockstats.py
Sebz84/ain
451abddc7802ac4ee4dbf30117ca074414f4fdca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. # # Test getblockstats rpc call # from test_framework.test_framework import DefiTestFramework from test_f...
42
121
0.628307
c3927997db889ca25dd55f32867b6afa548a7624
8,430
py
Python
src/cmdlib.py
barthy1/coreos-assembler
bd3c26292b2e7aae8d8fa026488abff56e8cd8f0
[ "Apache-2.0" ]
null
null
null
src/cmdlib.py
barthy1/coreos-assembler
bd3c26292b2e7aae8d8fa026488abff56e8cd8f0
[ "Apache-2.0" ]
null
null
null
src/cmdlib.py
barthy1/coreos-assembler
bd3c26292b2e7aae8d8fa026488abff56e8cd8f0
[ "Apache-2.0" ]
null
null
null
# Python version of cmdlib.sh """ Houses helper code for python based coreos-assembler commands. """ import hashlib import json import os import subprocess import sys import tempfile import gi import semver gi.require_version("RpmOstree", "1.0") from gi.repository import RpmOstree from datetime import datetime def...
29.578947
79
0.598102
d9d2f6ef162ea75429facf55e74304c213f45805
1,198
py
Python
tests/test_pitch.py
Derrick-Nyongesa/Blog
aff6b97aac958e6f626c934c57fffba1bb1f845d
[ "MIT" ]
null
null
null
tests/test_pitch.py
Derrick-Nyongesa/Blog
aff6b97aac958e6f626c934c57fffba1bb1f845d
[ "MIT" ]
null
null
null
tests/test_pitch.py
Derrick-Nyongesa/Blog
aff6b97aac958e6f626c934c57fffba1bb1f845d
[ "MIT" ]
null
null
null
import unittest from app.models import Pitch,User,Comment from app import db class TestPost(unittest.TestCase): def setUp(self): self.user_Daniel = User(username = 'Daniel',password = 'daniel', email = 'daniel@ms.com') self.new_pitch = Pitch(id=1, category = 'interview',title = 'promotion', pitch =...
39.933333
162
0.688648
1c16f96d3d643557793f8609ab342e4b9ba61332
5,735
py
Python
elliot/recommender/latent_factor_models/FM/factorization_machine.py
deklanw/elliot
729871d29093f63c3fe30d54bc42669fd16eb662
[ "Apache-2.0" ]
null
null
null
elliot/recommender/latent_factor_models/FM/factorization_machine.py
deklanw/elliot
729871d29093f63c3fe30d54bc42669fd16eb662
[ "Apache-2.0" ]
null
null
null
elliot/recommender/latent_factor_models/FM/factorization_machine.py
deklanw/elliot
729871d29093f63c3fe30d54bc42669fd16eb662
[ "Apache-2.0" ]
null
null
null
""" Module description: """ __version__ = '0.1' __author__ = 'Vito Walter Anelli, Claudio Pomo, Daniele Malitesta, Antonio Ferrara' __email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it,' \ 'daniele.malitesta@poliba.it, antonio.ferrara@poliba.it' import pickle import numpy as np from tqdm im...
39.280822
120
0.604359
3f317052dcb126beb42b5a8472bbeedc9daac3ee
181
py
Python
deepmux/templates.py
Deep-Mux/deepmux-cli
ff147259ffb1b0bef613f9b15e4e029fb859d797
[ "MIT" ]
4
2020-11-23T18:56:25.000Z
2021-03-19T23:38:24.000Z
deepmux/templates.py
Deep-Mux/deepmux-cli
ff147259ffb1b0bef613f9b15e4e029fb859d797
[ "MIT" ]
null
null
null
deepmux/templates.py
Deep-Mux/deepmux-cli
ff147259ffb1b0bef613f9b15e4e029fb859d797
[ "MIT" ]
null
null
null
python_function_basic = """name: <function name> env: <function env> python: call: <required, module:function to call> # requirements: <optional, path to requirements.txt> """
25.857143
54
0.718232
82251aa5cefa9ed7f9a6ff69ed68caf447e5b3a8
1,582
py
Python
tests/scanning/test_strings.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/scanning/test_strings.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/scanning/test_strings.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest_check as check from pylox.lox import Lox from pylox.scanner import Scanner from pylox.tokens import Token, TokenType # Base test cases from https://github.com/munificent/craftinginterpreters/blob/master/test/scanning/strings.lox TEST_SRC = dedent( """\ "" "string...
20.815789
111
0.573957
2846baa17e5ab7204d1f59aff523ecfc2b3dccdb
3,252
py
Python
openregistry/lots/loki/constants.py
kukirokuk/openregistry.lots.loki
0467fc881ad0bf31c40cd85adad49e5df14544df
[ "Apache-2.0" ]
null
null
null
openregistry/lots/loki/constants.py
kukirokuk/openregistry.lots.loki
0467fc881ad0bf31c40cd85adad49e5df14544df
[ "Apache-2.0" ]
null
null
null
openregistry/lots/loki/constants.py
kukirokuk/openregistry.lots.loki
0467fc881ad0bf31c40cd85adad49e5df14544df
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta AUCTION_STATUSES = ['scheduled', 'active', 'complete', 'unsuccessful', 'cancelled'] LOT_STATUSES = [ "draft", "composing", "verification", "pending", "pending.deleted", "deleted", "active.salable", "active.auction", "active.contracting", "pending.sold"...
29.297297
114
0.551661
c7ba59b6cd1044bd5807ffa7d4a4d0ec2ff5f793
436
py
Python
aiogram/types/photo_size.py
victorusachev/aiogram
9571669ca4b06165031d8f9830130f3c638b60d8
[ "MIT" ]
3
2020-12-06T16:55:53.000Z
2021-11-19T19:25:57.000Z
aiogram/types/photo_size.py
Kylmakalle/aiogram
550c41e1752aa08c493d7cb4ec5fec402d8e849c
[ "MIT" ]
1
2019-10-18T19:33:20.000Z
2019-10-18T19:33:20.000Z
aiogram/types/photo_size.py
Kylmakalle/aiogram
550c41e1752aa08c493d7cb4ec5fec402d8e849c
[ "MIT" ]
2
2020-12-30T09:51:30.000Z
2021-11-10T16:50:28.000Z
from . import base from . import fields from . import mixins class PhotoSize(base.TelegramObject, mixins.Downloadable): """ This object represents one size of a photo or a file / sticker thumbnail. https://core.telegram.org/bots/api#photosize """ file_id: base.String = fields.Field() width: b...
27.25
77
0.697248
68c0b607e9e93ffc59b20a7f37b59da58688b642
2,138
py
Python
tests/build/scipy/scipy/io/tests/test_fortran.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
26
2018-02-14T23:52:58.000Z
2021-08-16T13:50:03.000Z
tests/build/scipy/scipy/io/tests/test_fortran.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
null
null
null
tests/build/scipy/scipy/io/tests/test_fortran.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
10
2018-08-13T19:38:39.000Z
2020-04-19T03:02:00.000Z
''' Tests for fortran sequential files ''' import tempfile import shutil from os import path from glob import iglob import re from numpy.testing import assert_equal import numpy as np from scipy.io import FortranFile DATA_PATH = path.join(path.dirname(__file__), 'data') def test_fortranfiles_read(): for file...
32.892308
80
0.543966
81533c33e0bb937df2eaa7714af282381a69f866
704
py
Python
API/V1/Python/API.V1.RPC.Client.Python.Example/API.V1.RPC.Client.Python.Example.py
multiplayground/DotNet.Common
f8f9c701e111849930ff99e4b48ae2d4640c7db5
[ "Apache-2.0" ]
null
null
null
API/V1/Python/API.V1.RPC.Client.Python.Example/API.V1.RPC.Client.Python.Example.py
multiplayground/DotNet.Common
f8f9c701e111849930ff99e4b48ae2d4640c7db5
[ "Apache-2.0" ]
7
2019-04-30T16:40:03.000Z
2019-05-14T19:35:53.000Z
API/V1/Python/API.V1.RPC.Client.Python.Example/API.V1.RPC.Client.Python.Example.py
multiplayground/DotNet.Common
f8f9c701e111849930ff99e4b48ae2d4640c7db5
[ "Apache-2.0" ]
2
2019-04-16T12:37:37.000Z
2019-04-30T21:23:28.000Z
#!/usr/bin/env python from RpcClient import RpcClient import asyncio import os #https://stackoverflow.com/questions/4906977/how-to-access-environment-variable-values def getEnvUserPass(userDef="guest", passDef="guest",)->(str,str): theUser = os.getenv('RabbitMQ_User', userDef) thePass = os.getenv('RabbitMQ_Pas...
35.2
96
0.697443
34939d48437bdf1552e4330805d7bc4573877a9e
15,345
py
Python
projects/ISTR/istr/util/misc.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
null
null
null
projects/ISTR/istr/util/misc.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
null
null
null
projects/ISTR/istr/util/misc.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Misc functions, including distributed helpers. Mostly copy-paste from torchvision references. """ import os import subprocess import time from collections import defaultdict, deque import datetime import pickle from typing import Optional, List...
32.788462
116
0.608407
884d11f4da2bbc23f410fb594593d284190978f5
13,487
py
Python
src/manual_solve.py
PDorrian/ARC
ae075225e19a5f721eee8f55fb9d36ba0b882ccd
[ "Apache-2.0" ]
null
null
null
src/manual_solve.py
PDorrian/ARC
ae075225e19a5f721eee8f55fb9d36ba0b882ccd
[ "Apache-2.0" ]
null
null
null
src/manual_solve.py
PDorrian/ARC
ae075225e19a5f721eee8f55fb9d36ba0b882ccd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os, sys import json import numpy as np import re ### YOUR CODE HERE: write at least three functions which solve ### specific tasks by transforming the input x and returning the ### result. Name them according to the task ID as in the three ### examples below. Delete the three examples. The ta...
39.092754
120
0.623638
fa66658feed6a628150b6e8c80870987509fe95f
15,121
py
Python
aiohttp/web.py
mihajenko/aiohttp
1016f552a0962c2a71e72e2212d3ca1051a3f53e
[ "Apache-2.0" ]
49
2019-07-11T13:13:02.000Z
2022-03-26T14:46:23.000Z
aiohttp/web.py
mihajenko/aiohttp
1016f552a0962c2a71e72e2212d3ca1051a3f53e
[ "Apache-2.0" ]
26
2019-07-18T15:32:20.000Z
2022-03-13T10:34:52.000Z
aiohttp/web.py
mihajenko/aiohttp
1016f552a0962c2a71e72e2212d3ca1051a3f53e
[ "Apache-2.0" ]
26
2019-08-02T08:11:21.000Z
2022-03-31T10:14:21.000Z
import asyncio import logging import socket import sys from argparse import ArgumentParser from collections.abc import Iterable from importlib import import_module from typing import Any, Awaitable, Callable, List, Optional, Type, Union, cast from .abc import AbstractAccessLogger from .helpers import all_tasks from .l...
31.17732
79
0.587329
793455b6242409c3d4df7512aa847d43e9236e9a
4,462
py
Python
osr2mp4/osrparse/replay.py
spaceskynet/osr2mp4-core
373e0fe3545a0eccfb4cc528b968e3e8e39857f2
[ "MIT" ]
103
2020-06-07T15:28:41.000Z
2022-03-01T17:07:35.000Z
osr2mp4/osrparse/replay.py
spaceskynet/osr2mp4-core
373e0fe3545a0eccfb4cc528b968e3e8e39857f2
[ "MIT" ]
50
2020-06-07T10:53:21.000Z
2021-12-19T14:47:47.000Z
osr2mp4/osrparse/replay.py
spaceskynet/osr2mp4-core
373e0fe3545a0eccfb4cc528b968e3e8e39857f2
[ "MIT" ]
21
2020-07-12T16:02:35.000Z
2022-03-01T17:07:37.000Z
import _lzma from osr2mp4.Exceptions import NoDataReplay from osr2mp4.osrparse.enums import GameMode, Mod import lzma, struct, datetime class ReplayEvent(object): def __init__(self, time_since_previous_action, x, y, keys_pressed): self.time_since_previous_action = time_since_previous_action self.x = x self.y ...
23.239583
95
0.68736
2d80f954b9490b405b47dd6d6e0f064fee4543a7
313
py
Python
models/__init__.py
giuseppechecchia/frmoda-barcode-checker
1d3c5b97aae23b70057f71a2026ef9b47d42261c
[ "Unlicense" ]
null
null
null
models/__init__.py
giuseppechecchia/frmoda-barcode-checker
1d3c5b97aae23b70057f71a2026ef9b47d42261c
[ "Unlicense" ]
null
null
null
models/__init__.py
giuseppechecchia/frmoda-barcode-checker
1d3c5b97aae23b70057f71a2026ef9b47d42261c
[ "Unlicense" ]
null
null
null
#!/usr/bin/python ############################################################################### # Copyleft (K) 2020-2022 # Developer: Giuseppe Checchia @eldoleo (<https://github.com/giuseppechecchia>) ############################################################################### from . import barcode_checker
44.714286
79
0.370607
37755996135eecf9eb4ea88e48b9dbc15cec53ad
11,207
py
Python
src/robot/running/handlers.py
christestet/robotframework
94e1206bf259bae4c752b5a19d6f875c63934e82
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/handlers.py
christestet/robotframework
94e1206bf259bae4c752b5a19d6f875c63934e82
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-01T12:28:43.000Z
2022-03-01T12:28:43.000Z
src/robot/running/handlers.py
greck2908/robotframework
94e1206bf259bae4c752b5a19d6f875c63934e82
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
36.03537
86
0.658249
a4507eb176fd80ebc5ad51b1f84df59d787e60e3
4,300
py
Python
benchmark/startQiskit1291.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1291.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1291.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=52 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
32.330827
82
0.614186
5b4ef6c33fa07afbda2d1c26146ceddbddf63fc2
3,844
py
Python
hc/ui/monitor/monitor.py
sorki/hacked_cnc
cbdae71f350fb56cd8cc7bd911c4673e98b6adf0
[ "BSD-3-Clause" ]
2
2017-01-25T21:14:16.000Z
2017-11-16T09:25:38.000Z
hc/ui/monitor/monitor.py
sorki/hacked_cnc
cbdae71f350fb56cd8cc7bd911c4673e98b6adf0
[ "BSD-3-Clause" ]
null
null
null
hc/ui/monitor/monitor.py
sorki/hacked_cnc
cbdae71f350fb56cd8cc7bd911c4673e98b6adf0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2 import sys from PyQt5.QtCore import pyqtSlot, QTimer from PyQt5.QtGui import QColor, QTextCursor from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QFileDialog from PyQt5.uic import loadUi from PyQt5.QtNetwork import QTcpSocket, QAbstractSocket class Main(QMainWindow): def __init...
28.902256
78
0.577784
01a745276ae2bd46384a1db0669e10f6d99293b5
3,162
py
Python
settings.py
BertrandWiart/farmbot2019eseo
3502f308f94e5e4f970d5d9dae1a1f1ebb9c60dc
[ "MIT" ]
null
null
null
settings.py
BertrandWiart/farmbot2019eseo
3502f308f94e5e4f970d5d9dae1a1f1ebb9c60dc
[ "MIT" ]
null
null
null
settings.py
BertrandWiart/farmbot2019eseo
3502f308f94e5e4f970d5d9dae1a1f1ebb9c60dc
[ "MIT" ]
null
null
null
from farmware_tools import device commands = { 'rq_connect' : 1, 'rsp_connectSuccess' : 2, 'rsp_connectFail' : 3 } #IP = "localhost" IP = "172.14.1.23" PORT = 36100 PASS = "farmbot" def sendMsg(socket, order, msg="", encoding="utf-8"): device.log(message='Setting sending message !', message_type='su...
27.982301
89
0.555028
697ee47700613aab777605a07fb4094759db7f39
2,179
py
Python
setup.py
MikeHart85/lewis_ophyd_playground
8568e98deefc6a8cea5510165f5afe9679fcf3df
[ "BSD-3-Clause" ]
null
null
null
setup.py
MikeHart85/lewis_ophyd_playground
8568e98deefc6a8cea5510165f5afe9679fcf3df
[ "BSD-3-Clause" ]
null
null
null
setup.py
MikeHart85/lewis_ophyd_playground
8568e98deefc6a8cea5510165f5afe9679fcf3df
[ "BSD-3-Clause" ]
null
null
null
from os import path from setuptools import setup, find_packages import sys import versioneer # NOTE: This file must remain Python 2 compatible for the foreseeable future, # to ensure that we error out properly for people with outdated setuptools # and/or pip. min_version = (3, 6) if sys.version_info < min_version: ...
32.044118
77
0.673245
855ea2648de4926f8259268b541e7400d99a6cef
1,748
py
Python
speech-emotion/speech-emotion-model.py
jinwkim/emotion-detection
54eec1ebdb9622adb3149662ca1e9d85ce1caaea
[ "MIT" ]
null
null
null
speech-emotion/speech-emotion-model.py
jinwkim/emotion-detection
54eec1ebdb9622adb3149662ca1e9d85ce1caaea
[ "MIT" ]
null
null
null
speech-emotion/speech-emotion-model.py
jinwkim/emotion-detection
54eec1ebdb9622adb3149662ca1e9d85ce1caaea
[ "MIT" ]
null
null
null
import numpy as np from pydub import AudioSegment, effects import librosa import noisereduce as nr import tensorflow as tf import keras from keras.models import Sequential from keras import layers from keras import optimizers from keras import callbacks import sklearn from sklearn.model_selection import train_test_...
30.666667
106
0.765446
6a1e87581bec232bd41ab3f2a6ea7de76fc8ddca
31,374
py
Python
ST_spectrum/Ui_ST_main.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
1
2022-03-18T18:38:02.000Z
2022-03-18T18:38:02.000Z
ST_spectrum/Ui_ST_main.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
null
null
null
ST_spectrum/Ui_ST_main.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'G:\WorkDir\gas-sensing_resistors\ST_spectrum\ST_main.ui' # # Created: Tue Jan 19 22:08:53 2016 # by: PyQt4 UI code generator 4.11.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui from Rtime_mp...
54
113
0.710365
b0f3b11ce3e1a44bff9b18c8a3c6ca4198257fd9
13,941
py
Python
models/networks.py
xyang35/pytorch-CycleGAN-and-pix2pix
315e3d63e23e65bfd9440e2848bbfbcc901f0b37
[ "BSD-3-Clause" ]
11
2019-04-12T09:18:02.000Z
2022-02-02T05:54:38.000Z
models/networks.py
richzhang/pytorch-CycleGAN-and-pix2pix
e9146a659a896fc71ebf59cc57248449091e8d16
[ "BSD-3-Clause" ]
null
null
null
models/networks.py
richzhang/pytorch-CycleGAN-and-pix2pix
e9146a659a896fc71ebf59cc57248449091e8d16
[ "BSD-3-Clause" ]
2
2021-10-21T05:56:47.000Z
2022-02-08T10:41:18.000Z
import torch import torch.nn as nn from torch.autograd import Variable import numpy as np ############################################################################### # Functions ############################################################################### def weights_init(m): classname = m.__class__.__name...
38.404959
122
0.58848
8f78632895a03c931da2270520b73966a6919f69
19,178
py
Python
test/functional/wallet_address_types.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
test/functional/wallet_address_types.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
test/functional/wallet_address_types.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Elixir Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test that the wallet can send and receive using all combinations of address types. There are 5 nodes-un...
50.73545
205
0.640682
2b3df1855760478a3552e05abb8546bce843bcd8
928
py
Python
airylib/NetworkManager.py
kickingvegas/airy
672d16a14a59e9ef07f8861687b1f775dcb32588
[ "Apache-2.0" ]
2
2020-10-14T15:43:13.000Z
2020-10-17T19:58:51.000Z
airylib/NetworkManager.py
kickingvegas/airy
672d16a14a59e9ef07f8861687b1f775dcb32588
[ "Apache-2.0" ]
null
null
null
airylib/NetworkManager.py
kickingvegas/airy
672d16a14a59e9ef07f8861687b1f775dcb32588
[ "Apache-2.0" ]
null
null
null
## # Copyright 2020 Charles Y. Choi # # 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 wri...
28.121212
74
0.697198
e87927180fe6bb9148daf66dc2dfd8f83b23004b
10,632
py
Python
framework/CodeInterfaces/Generic/GenericParser.py
mattdon/raven
b5b4a9fc96cec37ca5fb3757c45653eec66522f1
[ "Apache-2.0" ]
null
null
null
framework/CodeInterfaces/Generic/GenericParser.py
mattdon/raven
b5b4a9fc96cec37ca5fb3757c45653eec66522f1
[ "Apache-2.0" ]
null
null
null
framework/CodeInterfaces/Generic/GenericParser.py
mattdon/raven
b5b4a9fc96cec37ca5fb3757c45653eec66522f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
48.995392
175
0.632336
f8e25a6b3f08b8748538280fe147d362c6aa35c4
3,516
py
Python
plot/microbench/distribution/dis_cpr.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
108
2020-04-23T19:06:51.000Z
2022-02-23T20:05:09.000Z
plot/microbench/distribution/dis_cpr.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
1
2021-07-07T05:58:57.000Z
2021-07-07T05:58:57.000Z
plot/microbench/distribution/dis_cpr.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
11
2020-04-24T01:53:50.000Z
2022-01-21T07:36:14.000Z
import sys import os sys.path.append(os.path.abspath('./plot/')) from option import * import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plot import matplotlib.ticker as ticker import numpy as np import csv def autolabel(rects): for rect in rects: height = rect.get_height() ax.text...
34.811881
163
0.628271
ca91fdac2b105147a518343fa7f74fc905b3eece
14,030
py
Python
vaserving/pipeline_manager.py
whbruce/video-analytics-serving
dee544d528122548f14a3993703182e8ab05ef45
[ "BSD-3-Clause" ]
null
null
null
vaserving/pipeline_manager.py
whbruce/video-analytics-serving
dee544d528122548f14a3993703182e8ab05ef45
[ "BSD-3-Clause" ]
null
null
null
vaserving/pipeline_manager.py
whbruce/video-analytics-serving
dee544d528122548f14a3993703182e8ab05ef45
[ "BSD-3-Clause" ]
null
null
null
''' * Copyright (C) 2019-2020 Intel Corporation. * * SPDX-License-Identifier: BSD-3-Clause ''' import os import json import traceback from collections import deque from collections import defaultdict import jsonschema from vaserving.common.utils import logging from vaserving.pipeline import Pipeline import vaserving.s...
42.905199
102
0.533428
e3af5b9815f264063cbaf9456763b8244c629463
1,239
py
Python
src/gamesbyexample/milliondicestats.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
src/gamesbyexample/milliondicestats.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
src/gamesbyexample/milliondicestats.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
"""Million Dice Roll Statistics Simulator By Al Sweigart al@inventwithpython.com A simulation of one million dice rolls. This and other games are available at https://nostarch.com/XX Tags: tiny, beginner, math, simulation""" __version__ = 0 import random, time print('''Million Dice Roll Statistics Simulator By Al Swei...
31.769231
70
0.678773
41827c49b1aef05220a55ce85c77bf51520cc56d
1,148
py
Python
domains/fetch/problems/training/problem1081_CR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/fetch/problems/training/problem1081_CR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/fetch/problems/training/problem1081_CR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_chargeableRobot import * from timer import DURATION from state import state DURATION.TIME = { 'put': 2, 'take': 2, 'perceive': 2, 'charge': 2, 'move': 2, 'moveToEmergency': 2, 'moveCharger': 2, 'addressEmergency': 2, 'wait': 2, } DURATION.COUNTER =...
22.509804
117
0.493902
8d1210ac294cd1d36ac429a739b7b609e6ff67b4
2,906
py
Python
cob/utils/docker.py
oren0e/cob
f2a5d74a15f5262d7980e4cf1f1a20af29194ffb
[ "BSD-3-Clause" ]
2
2019-04-07T20:19:55.000Z
2021-05-27T10:23:31.000Z
cob/utils/docker.py
oren0e/cob
f2a5d74a15f5262d7980e4cf1f1a20af29194ffb
[ "BSD-3-Clause" ]
126
2016-08-10T19:59:45.000Z
2021-11-26T06:58:16.000Z
cob/utils/docker.py
oren0e/cob
f2a5d74a15f5262d7980e4cf1f1a20af29194ffb
[ "BSD-3-Clause" ]
6
2017-11-16T12:05:47.000Z
2021-11-24T09:21:17.000Z
from mitba import cached_function from ..exceptions import MissingDependency import os import shutil import subprocess __all__ = ['docker_cmd', 'docker_compose_cmd'] class Docker: def __init__(self, command_name='docker'): self._cmdname = command_name self._cmd_full_path = None def get_com...
27.942308
87
0.608052
e29536b884c2c732f6620989d007f0a9e7eb181e
6,231
py
Python
docusign_esign/models/bulk_recipients_summary_response.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/bulk_recipients_summary_response.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/bulk_recipients_summary_response.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
1
2021-04-26T20:52:45.000Z
2021-04-26T20:52:45.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from ppr...
32.284974
126
0.634409
58bc6a8fd32b76a2e45ab7a829426ea25d2d8d9e
42,493
py
Python
src/emuvim/dcemulator/net.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/dcemulator/net.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/dcemulator/net.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2015 SONATA-NFV and Paderborn University 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 ap...
43.493347
166
0.595557
12b3356ae54cb1ed487b5c741cc953173b24796e
11,578
py
Python
train.py
abdullahozer11/Segmentation-and-Classification-of-Objects-in-Point-Clouds
08126539226dece8718e6a3c0092992b1666e702
[ "MIT" ]
5
2019-03-12T19:06:21.000Z
2021-07-11T19:57:29.000Z
log/train.py
abdullahozer11/Segmentation-and-Classification-of-Objects-in-Point-Clouds
08126539226dece8718e6a3c0092992b1666e702
[ "MIT" ]
null
null
null
log/train.py
abdullahozer11/Segmentation-and-Classification-of-Objects-in-Point-Clouds
08126539226dece8718e6a3c0092992b1666e702
[ "MIT" ]
2
2019-02-03T09:20:12.000Z
2021-05-02T08:19:56.000Z
import argparse import math import h5py import numpy as np import tensorflow as tf import socket import importlib import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, 'models')) sys.path.append(os.path.join(BASE_DIR, 'utils')) impor...
41.797834
133
0.639143
1ecaa6bea3828721f8a601db451a61f0b335f16e
5,409
py
Python
hw1/behavior_cloning.py
xiaonanchong/DeepRL_CS294
67a0833b657b33ad7f7ad6de30e270847575828d
[ "MIT" ]
null
null
null
hw1/behavior_cloning.py
xiaonanchong/DeepRL_CS294
67a0833b657b33ad7f7ad6de30e270847575828d
[ "MIT" ]
null
null
null
hw1/behavior_cloning.py
xiaonanchong/DeepRL_CS294
67a0833b657b33ad7f7ad6de30e270847575828d
[ "MIT" ]
null
null
null
""" Example usage: python behavior_cloning.py Hopper-v1 --render --hidden_dim 100 --weight_decay 1e-4 \ --batchsize 100 --epoch 50 --test_rollouts 5 """ import pickle import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import gym from torch.optim import Adam from torch.autogra...
34.018868
155
0.577556
a73a1aede40008f0e01cf27b6f89e802aa585e8a
5,583
py
Python
mongo/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
null
null
null
mongo/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
4
2019-07-03T02:53:19.000Z
2019-07-10T14:52:14.000Z
mongo/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import time import pymongo import pytest from datadog_checks.dev import LazyFunction, WaitFor, docker_run, run_command from datadog_checks.mongo import MongoDb from . import common @pytest.fixture(s...
34.89375
116
0.516747
b4a6552c3e9c361e15efa6abdb41ac6c100c44b1
25,463
py
Python
server/tests-py/test_graphql_queries.py
open-source-explorer/graphql-engine
d14300e9c917ed433eebd99d2ef1096951bfe840
[ "Apache-2.0", "MIT" ]
null
null
null
server/tests-py/test_graphql_queries.py
open-source-explorer/graphql-engine
d14300e9c917ed433eebd99d2ef1096951bfe840
[ "Apache-2.0", "MIT" ]
null
null
null
server/tests-py/test_graphql_queries.py
open-source-explorer/graphql-engine
d14300e9c917ed433eebd99d2ef1096951bfe840
[ "Apache-2.0", "MIT" ]
null
null
null
import yaml import pytest from validate import check_query_f from super_classes import DefaultTestSelectQueries @pytest.mark.parametrize("transport", ['http', 'websocket']) class TestGraphQLQueryBasic(DefaultTestSelectQueries): def test_select_query_author(self, hge_ctx, transport): check_query_f(hge_ctx...
48.225379
122
0.756392
932fb4975d926b5d0482909258077d62cbdf308b
12,700
py
Python
model_compression_toolkit/keras/keras_implementation.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/keras/keras_implementation.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/keras/keras_implementation.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
from typing import List, Any, Tuple, Callable import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from model_compression_toolkit import QuantizationConfig, FrameworkInfo, common, GradientPTQConfig, \ MixedPrecisionQuantizationConfig from model_compression_toolkit.common import Gra...
41.368078
118
0.642677
d572d6b5b7aec9fbc05f3252f633f14a53ddedb2
5,536
py
Python
dist_covid2.py
StraigenDaigen/social_distancing_ai
226ff20c0343d02280461527c9ff3c6fbf6dfcf5
[ "MIT" ]
8
2021-08-21T09:39:15.000Z
2021-08-22T09:35:51.000Z
dist_covid2.py
StraigenDaigen/social_distancing_ai
226ff20c0343d02280461527c9ff3c6fbf6dfcf5
[ "MIT" ]
null
null
null
dist_covid2.py
StraigenDaigen/social_distancing_ai
226ff20c0343d02280461527c9ff3c6fbf6dfcf5
[ "MIT" ]
1
2021-08-30T20:40:10.000Z
2021-08-30T20:40:10.000Z
import jetson.inference import jetson.utils import cv2 import argparse import sys import numpy as np #import imutils import itertools def ResizeWithAspectRatio(image, width=None, height=None, inter=cv2.INTER_AREA): dim = None (h, w) = image.shape[:2] if width is None and height is None: return image if width is ...
41.007407
192
0.70466
352f27cabaeb8124ff95bf2b8277a19f50119fae
215
py
Python
pyf/_has_sticky.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
1
2022-03-13T22:08:25.000Z
2022-03-13T22:08:25.000Z
pyf/_has_sticky.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
21
2022-03-17T16:53:04.000Z
2022-03-31T23:55:24.000Z
pyf/_has_sticky.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
null
null
null
def _has_sticky(path): # -k if not path: return False if hasattr(path, '_mode'): return (path._mode & stat.S_ISVTX) != 0 return (os.stat(path).st_mode & stat.S_ISVTX) != 0
26.875
55
0.553488
e252a227ad5a83af1ff6e2c39d1e7ce07fc5502b
180
py
Python
salon/urls.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
null
null
null
salon/urls.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
5
2021-03-30T13:08:19.000Z
2021-09-22T18:54:13.000Z
salon/urls.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
null
null
null
from django.urls import path from salon.api import views urlpatterns = [ path(r'', views.listsalon_view, name='salons'), path(r'<pk>', views.salon_view, name='salon') ]
18
51
0.683333
45a045f14cc57bb6270b293ae0ef7c2e7f09cb89
7,410
py
Python
autobuilder/workers/config.py
madisongh/autobuilder
5290f904334e0236d9c45ed6cf5334fed00d9660
[ "MIT" ]
null
null
null
autobuilder/workers/config.py
madisongh/autobuilder
5290f904334e0236d9c45ed6cf5334fed00d9660
[ "MIT" ]
null
null
null
autobuilder/workers/config.py
madisongh/autobuilder
5290f904334e0236d9c45ed6cf5334fed00d9660
[ "MIT" ]
1
2018-12-07T16:20:57.000Z
2018-12-07T16:20:57.000Z
import os import socket import string from random import SystemRandom import jinja2 from buildbot.plugins import worker from autobuilder.workers.ec2 import MyEC2LatentWorker RNG = SystemRandom() default_svp = {'name': '/dev/xvdf', 'size': 200, 'type': 'standard', 'iops': None} class AutobuilderWorker...
46.024845
112
0.588124
b63e9413ca9050802ac886fd1f16709eb0277273
758
py
Python
MyPyQt5LearnExamples/SepUiBack/calc_ui.py
prayjourney/on_the_way_ing
88d04752b7b18c6d60d74b18357f6b2c09c9748e
[ "MIT" ]
null
null
null
MyPyQt5LearnExamples/SepUiBack/calc_ui.py
prayjourney/on_the_way_ing
88d04752b7b18c6d60d74b18357f6b2c09c9748e
[ "MIT" ]
null
null
null
MyPyQt5LearnExamples/SepUiBack/calc_ui.py
prayjourney/on_the_way_ing
88d04752b7b18c6d60d74b18357f6b2c09c9748e
[ "MIT" ]
1
2020-09-29T14:17:39.000Z
2020-09-29T14:17:39.000Z
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Calc(object): def setupUi(self, Form): self.inputSpinBox1 = QtWidgets.QSpinBox(Form) self.inputSpinBox1.setGeometry(QtCore.QRect(1, 26, 46, 25)) self.inputSpinBox1.setObjectName("inputSpinBox1") # 必须 ...
36.095238
69
0.667546
e5542e89c5dbf782ee5a8dfb1aabef98c2af381e
1,010
py
Python
isi_sdk_8_2_0/test/test_snapshot_schedule_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/test/test_snapshot_schedule_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/test/test_snapshot_schedule_create_params.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: 7 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_2_0 from i...
24.634146
115
0.736634
80b5b718bbb622ce95fe7db66602cb6d5a76c279
626
py
Python
homeassistant/components/upnp/const.py
guiguid/core
d43617c41d6507f2d2b77aadf4fa1ebaf0058b14
[ "Apache-2.0" ]
1
2020-04-07T15:44:54.000Z
2020-04-07T15:44:54.000Z
homeassistant/components/upnp/const.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/components/upnp/const.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Constants for the IGD component.""" from datetime import timedelta import logging from homeassistant.const import TIME_SECONDS CONF_ENABLE_PORT_MAPPING = "port_mapping" CONF_ENABLE_SENSORS = "sensors" CONF_HASS = "hass" CONF_LOCAL_IP = "local_ip" CONF_PORTS = "ports" DOMAIN = "upnp" LOGGER = logging.getLogger(__pa...
27.217391
63
0.798722
5b7dccbcd817ad33f9601e9de811bd7a14766fc8
1,399
py
Python
server/tests/factories/workflow_task_instance_factory.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
server/tests/factories/workflow_task_instance_factory.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
6
2021-11-01T01:35:40.000Z
2022-02-11T03:33:06.000Z
server/tests/factories/workflow_task_instance_factory.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
import factory from faker import Factory as FakerFactory from processes.models import WorkflowTaskInstance from .task_factory import TaskFactory from .workflow_factory import WorkflowFactory faker = FakerFactory.create() class WorkflowTaskInstanceFactory(factory.django.DjangoModelFactory): class Me...
34.121951
91
0.77055
d7fd91d3d5be8f0f4c213dd95ce6e2a45d112b0a
6,193
py
Python
homeassistant/components/geonetnz_quakes/geo_location.py
tubalainen/core
2ba514253c4981062853f3e1981903d3e4aa803c
[ "Apache-2.0" ]
2
2020-03-02T19:17:52.000Z
2020-03-02T19:17:53.000Z
homeassistant/components/geonetnz_quakes/geo_location.py
tubalainen/core
2ba514253c4981062853f3e1981903d3e4aa803c
[ "Apache-2.0" ]
6
2021-02-08T21:05:36.000Z
2022-03-12T00:54:00.000Z
homeassistant/components/geonetnz_quakes/geo_location.py
tubalainen/core
2ba514253c4981062853f3e1981903d3e4aa803c
[ "Apache-2.0" ]
null
null
null
"""Geolocation support for GeoNet NZ Quakes Feeds.""" import logging from typing import Optional from homeassistant.components.geo_location import GeolocationEvent from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_TIME, CONF_UNIT_SYSTEM_IMPERIAL, LENGTH_KILOMETERS, LENGTH_MILES, ) from homea...
32.941489
80
0.6601
9af248c25669af4a79e647e599cc613abc75a29f
412
py
Python
python/sentiments_analyse/Pre_Processing.py
donaldonana/sentiment_analyse
478953fbd0f612a8e20e1f95933466d429626ed2
[ "MIT" ]
null
null
null
python/sentiments_analyse/Pre_Processing.py
donaldonana/sentiment_analyse
478953fbd0f612a8e20e1f95933466d429626ed2
[ "MIT" ]
null
null
null
python/sentiments_analyse/Pre_Processing.py
donaldonana/sentiment_analyse
478953fbd0f612a8e20e1f95933466d429626ed2
[ "MIT" ]
null
null
null
""" We’ll have to do some pre-processing to get the data into a usable format. To start, we’ll construct a vocabulary of all words that exist in our data""" from data_set import train_data, test_data items = list(train_data.items()) with open('../../target.txt', 'w') as mon_fichier: for x, y in items: ...
29.428571
91
0.65534
1c057d114c1e40e49d83f4b6ac10ef053dfef693
11,727
py
Python
nltk/corpus/reader/comparative_sents.py
Bharat123rox/nltk
ba989e5d568f007718cbe69272c885b4a7d1168d
[ "Apache-2.0" ]
9,747
2015-01-01T05:47:33.000Z
2022-03-31T19:36:28.000Z
nltk/corpus/reader/comparative_sents.py
Bharat123rox/nltk
ba989e5d568f007718cbe69272c885b4a7d1168d
[ "Apache-2.0" ]
2,155
2015-01-01T15:16:55.000Z
2022-03-31T07:44:43.000Z
nltk/corpus/reader/comparative_sents.py
Bharat123rox/nltk
ba989e5d568f007718cbe69272c885b4a7d1168d
[ "Apache-2.0" ]
2,846
2015-01-03T23:16:34.000Z
2022-03-29T17:54:34.000Z
# Natural Language Toolkit: Comparative Sentence Corpus Reader # # Copyright (C) 2001-2021 NLTK Project # Author: Pierpaolo Pantone <24alsecondo@gmail.com> # URL: <https://www.nltk.org/> # For license information, see LICENSE.TXT """ CorpusReader for the Comparative Sentence Dataset. - Comparative Sentence Dataset in...
37.829032
87
0.573378
33617a30ea3130bf59ace2e309344764f1ed4f04
607
py
Python
setup.py
payamnj/django-simpletree
c8b6959f27a072a56a8fb3f451ad19bbd78165a7
[ "BSD-3-Clause" ]
2
2016-06-13T09:21:24.000Z
2016-06-28T22:47:17.000Z
setup.py
payamnj/django-simpletree
c8b6959f27a072a56a8fb3f451ad19bbd78165a7
[ "BSD-3-Clause" ]
null
null
null
setup.py
payamnj/django-simpletree
c8b6959f27a072a56a8fb3f451ad19bbd78165a7
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup( name='django_simpletree', version='0.1.2', description='A django app with an abstract model which helps \ to define tree style models with unlimited sub branches', url='https://github.com/payamnj/django-simpletree', author='Payam Najafizadeh', author_email='p...
31.947368
66
0.655684
011e4889d94321f2fbf34465205e73474bb3ab16
2,983
py
Python
QWeb/internal/exceptions.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
1
2021-11-08T09:26:44.000Z
2021-11-08T09:26:44.000Z
QWeb/internal/exceptions.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
QWeb/internal/exceptions.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------- # Copyright © 2014 - Qentinel Group. # # 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/LIC...
28.682692
85
0.723098
1f7ae662d4fcdd772330a3a4aecfeca0acafae4c
8,229
py
Python
build.py
jaraco/aspen
ec0f6d5bef5e7100ac2374b38349a51f8394eabb
[ "MIT" ]
1
2016-08-23T16:13:22.000Z
2016-08-23T16:13:22.000Z
build.py
jaraco/aspen
ec0f6d5bef5e7100ac2374b38349a51f8394eabb
[ "MIT" ]
null
null
null
build.py
jaraco/aspen
ec0f6d5bef5e7100ac2374b38349a51f8394eabb
[ "MIT" ]
null
null
null
from __future__ import division, print_function, unicode_literals, with_statement import os import sys import os.path from fabricate import main, run, shell, autoclean # Core Executables # ================ # We satisfy dependencies using local tarballs, to ensure that we can build # without a network connection. They...
27.158416
124
0.580751
bedf4d04528153ed0fa0b1134e729d819a8dac5c
66
py
Python
tensorflow_advanced_segmentation_models/__version__.py
JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models
f3927d1bf8e3d37ae55a032c2f1477049a255197
[ "MIT" ]
72
2020-09-18T11:15:02.000Z
2022-03-31T04:14:23.000Z
tensorflow_advanced_segmentation_models/__version__.py
JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models
f3927d1bf8e3d37ae55a032c2f1477049a255197
[ "MIT" ]
18
2020-09-13T08:55:23.000Z
2022-02-17T19:18:10.000Z
tensorflow_advanced_segmentation_models/__version__.py
JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models
f3927d1bf8e3d37ae55a032c2f1477049a255197
[ "MIT" ]
29
2020-12-24T15:38:40.000Z
2022-03-24T01:36:05.000Z
VERSION = (0, 4, 8) __version__ = ".".join(map(str, VERSION))
16.5
42
0.575758
c232f05aaa8d8c82a6d6c80dac66caecdd81e374
7,155
py
Python
libcloud/test/compute/test_rackspace.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
1
2015-11-05T15:37:04.000Z
2015-11-05T15:37:04.000Z
libcloud/test/compute/test_rackspace.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
null
null
null
libcloud/test/compute/test_rackspace.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "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 use ...
36.319797
78
0.689308
ae60303002ccada953e812db6c44443264f7d51a
1,554
py
Python
analysis.py
dabows/Spotify_top200_anal
9819c090d8df5160022b7cbc192e119f464f2d73
[ "MIT" ]
null
null
null
analysis.py
dabows/Spotify_top200_anal
9819c090d8df5160022b7cbc192e119f464f2d73
[ "MIT" ]
null
null
null
analysis.py
dabows/Spotify_top200_anal
9819c090d8df5160022b7cbc192e119f464f2d73
[ "MIT" ]
null
null
null
''' Shows top artist by appearances on top 200 as well as top streams. Also makes the vid. ''' import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as ani import bar_chart_race as bar def countArtists(): df = pd.read_csv('./products/all_df.csv') arts = ...
25.9
114
0.644788
cac5785c0a127424a5854dd416e82af15b5509f5
3,192
py
Python
code/arch_12/dataset.py
dalmouiee/RDP-Net-Ret
0f0c7aecef807e00ad71f7ae47827163018a98e8
[ "MIT" ]
null
null
null
code/arch_12/dataset.py
dalmouiee/RDP-Net-Ret
0f0c7aecef807e00ad71f7ae47827163018a98e8
[ "MIT" ]
null
null
null
code/arch_12/dataset.py
dalmouiee/RDP-Net-Ret
0f0c7aecef807e00ad71f7ae47827163018a98e8
[ "MIT" ]
null
null
null
import cv2 import os import glob from sklearn.utils import shuffle import numpy as np def load_train(train_path, image_size, classes): images = [] labels = [] img_names = [] cls = [] print('Going to read training images') for fields in classes: index = classes.index(fields) ...
28
109
0.682331
b60af66ee3c1d843ad05e3f8d23c11736db9db3d
11,881
py
Python
cinder/volume/drivers/datera/datera_common.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/volume/drivers/datera/datera_common.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/volume/drivers/datera/datera_common.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright 2020 Datera # 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 applic...
32.820442
79
0.620655
85e42bf15723640f3e27c294dcae6592cada845d
3,206
py
Python
profiles_project/settings.py
shycoder06/profiles-rest-api
933332b970fb4c0ed3b2c936218abdb80bbf0271
[ "MIT" ]
null
null
null
profiles_project/settings.py
shycoder06/profiles-rest-api
933332b970fb4c0ed3b2c936218abdb80bbf0271
[ "MIT" ]
null
null
null
profiles_project/settings.py
shycoder06/profiles-rest-api
933332b970fb4c0ed3b2c936218abdb80bbf0271
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ fro...
26.716667
91
0.703369
e98c61c6a92db97f657af561559d3046041c8df8
958
py
Python
blog/admin.py
masod-abbasian/mysite
5c321d0079a26ccd6b1bf25ebc7ecc44da05bc85
[ "MIT" ]
2
2021-11-20T04:22:11.000Z
2021-12-03T09:16:51.000Z
blog/admin.py
masod-abbasian/mysite
5c321d0079a26ccd6b1bf25ebc7ecc44da05bc85
[ "MIT" ]
null
null
null
blog/admin.py
masod-abbasian/mysite
5c321d0079a26ccd6b1bf25ebc7ecc44da05bc85
[ "MIT" ]
null
null
null
from django.contrib import admin from blog.models import POST,Category,Comment from django_summernote.admin import SummernoteModelAdmin # Register your models here. # @admin.register(POST) class POSTAdmin(SummernoteModelAdmin): date_hierarchy = 'created_date' empty_value_display = '-empty' list_display = (...
34.214286
109
0.721294
95af88118de8d1e3e33813b45cf6c99fc649f549
5,227
py
Python
train_imp.py
chanyh0/pytorch-CycleGAN-and-pix2pix
4d59a4695fdcf80d05b40c5eff0b35af4271e985
[ "BSD-3-Clause" ]
null
null
null
train_imp.py
chanyh0/pytorch-CycleGAN-and-pix2pix
4d59a4695fdcf80d05b40c5eff0b35af4271e985
[ "BSD-3-Clause" ]
null
null
null
train_imp.py
chanyh0/pytorch-CycleGAN-and-pix2pix
4d59a4695fdcf80d05b40c5eff0b35af4271e985
[ "BSD-3-Clause" ]
null
null
null
"""General-purpose training script for image-to-image translation. This script works for various models (with option '--model': e.g., pix2pix, cyclegan, colorization) and different datasets (with option '--dataset_mode': e.g., aligned, unaligned, single, colorization). You need to specify the dataset ('--dataroot'), e...
62.22619
190
0.666539
b44e43ac8bbbda2be07594e9a9b2ab3c082aaae1
777
py
Python
tests/mainnet-fork/test_mainnet_fork_price_feed.py
PatrickAlphaC/xDai-brownie
91e50772716fe349cc15645450af5c1ed9bf1d55
[ "MIT" ]
2
2021-02-25T23:12:40.000Z
2021-03-17T19:55:07.000Z
tests/mainnet-fork/test_mainnet_fork_price_feed.py
PatrickAlphaC/xDai-brownie
91e50772716fe349cc15645450af5c1ed9bf1d55
[ "MIT" ]
1
2021-01-30T04:26:47.000Z
2021-02-02T23:55:33.000Z
tests/mainnet-fork/test_mainnet_fork_price_feed.py
PatrickAlphaC/chainlink-mix
806d57638367254af992de87aef88a5d765ce3b3
[ "MIT" ]
2
2021-01-19T08:53:14.000Z
2021-04-12T08:36:20.000Z
import pytest from brownie import PriceFeed, accounts, network def test_can_deploy_contract(mainnet_eth_usd_address): # Arrange if network.show_active() != 'mainnet-fork': pytest.skip('Only works for mainnet-fork network') # Act price_feed = PriceFeed.deploy( mainnet_eth_usd_address, {...
29.884615
60
0.696268
9aa3f7c5dea02e6baddb4029d21fc156cbce3a84
317
py
Python
redata/checks/data_volume.py
mociarain/redata
fc4e9826ab47920677383c97e51b6a8bdbd58a4b
[ "MIT" ]
null
null
null
redata/checks/data_volume.py
mociarain/redata
fc4e9826ab47920677383c97e51b6a8bdbd58a4b
[ "MIT" ]
null
null
null
redata/checks/data_volume.py
mociarain/redata
fc4e9826ab47920677383c97e51b6a8bdbd58a4b
[ "MIT" ]
null
null
null
from datetime import date, datetime, time from sqlalchemy.sql import text from redata.db_operations import metrics_db, metrics_session from redata.metric import Metric def check_data_volume(db, table, check, time_interval, conf): result = db.check_data_volume(table, time_interval, conf) return [result]
24.384615
61
0.791798
13ed7575314f02cee7ac68e5c1581480c17339e3
877
py
Python
old/tests/auto-testing/master.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
old/tests/auto-testing/master.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
old/tests/auto-testing/master.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 6 15:27:04 2016 @author: alex """ import numpy as np import os import importlib from AlexRobotics.dynamic import Manipulator ########################### # Load 2 dof robot ########################### x_start = [-1,0.3,0,0] ########################### # test stude...
19.488889
87
0.566705
057bff3b140116de9e70f739b48e67b2e8435e40
1,263
py
Python
web/blog/serializers.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
1
2021-08-11T10:51:28.000Z
2021-08-11T10:51:28.000Z
web/blog/serializers.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
null
null
null
web/blog/serializers.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
6
2021-04-07T17:03:52.000Z
2021-07-18T04:46:59.000Z
from django.contrib.auth import get_user_model from rest_framework import serializers from .models import Category, Article, Comment User = get_user_model() class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'full_name', 'email') class CommentSerializer...
26.3125
95
0.699129
99a6a26b4a15eafaa8e1fd8c54a1589b7c16c1e0
631
py
Python
packages/aws-cdk/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py
RichiCoder1/aws-cdk
626e6aa1a27feffe7ce60a46a6fdcf26f317eaef
[ "Apache-2.0" ]
6,159
2019-07-11T16:53:02.000Z
2022-03-31T20:52:53.000Z
packages/aws-cdk/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py
RichiCoder1/aws-cdk
626e6aa1a27feffe7ce60a46a6fdcf26f317eaef
[ "Apache-2.0" ]
16,881
2019-07-11T18:58:07.000Z
2022-03-31T23:59:47.000Z
packages/aws-cdk/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py
RichiCoder1/aws-cdk
626e6aa1a27feffe7ce60a46a6fdcf26f317eaef
[ "Apache-2.0" ]
2,504
2019-07-11T17:52:52.000Z
2022-03-31T21:19:53.000Z
from aws_cdk import ( core, assertions ) from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack def test_sqs_queue_created(): app = core.App() stack = %name.PascalCased%Stack(app, "%name.StackName%") template = assertions.Template.from_stack(stack) temp...
25.24
81
0.684628
fe797ce88da30e74ae46e836de1684a882cb5715
925
py
Python
crawling_scraping/tabeloghatebu/myproject/myproject/items.py
litteletips/crawling_scraping-scrapy_tool
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
null
null
null
crawling_scraping/tabeloghatebu/myproject/myproject/items.py
litteletips/crawling_scraping-scrapy_tool
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
16
2021-03-19T09:44:52.000Z
2022-03-12T00:22:14.000Z
crawling_scraping/tabeloghatebu/myproject/myproject/items.py
litteletips/crawling_scraping
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html # Spiderが抜き出したデータを格納しておくためのモジュール。 # Restaurant():食べログレストラン情報 # Page():Webページ情報を保存する為のItemクラス import scrapy class Restaurant(scrapy.Item): """ 食べログのレストラン情報。 """ name = scra...
20.555556
74
0.610811
e97687de3427378489a91eaa65da3b8f5bee7b3b
15,952
py
Python
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-04-28T05:15:42.000Z
2021-04-28T05:15:42.000Z
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from functools import wraps from typing import ( Any, Sequence, TypeVar, cast, ) import numpy as np from pandas._libs import lib from pandas._typing import ( F, PositionalIndexer2D, Shape, type_t, ) from pandas.compat.numpy import function as nv from...
32.488798
88
0.606131
db05c6f7cfb30942e974fa246203fd7193899160
16,097
py
Python
microprocessor/processor.py
AlexLitvino/i8080_simulator
fedd950c5e2843f53276f11be9878abbbb5d7c65
[ "Apache-2.0" ]
null
null
null
microprocessor/processor.py
AlexLitvino/i8080_simulator
fedd950c5e2843f53276f11be9878abbbb5d7c65
[ "Apache-2.0" ]
null
null
null
microprocessor/processor.py
AlexLitvino/i8080_simulator
fedd950c5e2843f53276f11be9878abbbb5d7c65
[ "Apache-2.0" ]
null
null
null
from time import clock import sys sys.path.append("./../") sys.path.append("./../common") #sys.path.append("./../microprocessor") from microprocessor.memory import Memory from microprocessor.register import Register from microprocessor.instructions_decoder import cmd_decoder from microprocessor.misc_registers import *...
34.103814
144
0.635087
d891fd75aaffd574d7d475153fa9c10ac1d7f060
443
py
Python
halfpipe/utils/image.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/utils/image.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/utils/image.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: def niftidim(input, idim): if isinstance(input, str): import nibabel as nib input = nib.load(input) if len(input.shape) > idim: return input.shape[...
21.095238
73
0.609481
efafc05de9cfcad4fe88e78aab33ec4924f6d97a
4,604
py
Python
sdk/python/pulumi_aws/ec2transitgateway/get_route_table.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2transitgateway/get_route_table.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2transitgateway/get_route_table.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 Union from .. import utilities, tables class GetRouteTableResul...
37.737705
162
0.673328
82be303d4548a21671033d80e6087bca914d7f5d
3,973
py
Python
soxbindings/effects.py
pseeth/soxbindings
5c2a37969a796a2762c23f6c09c8893538ce396c
[ "MIT" ]
42
2020-05-27T10:00:48.000Z
2022-03-29T05:29:23.000Z
soxbindings/effects.py
pseeth/soxbindings
5c2a37969a796a2762c23f6c09c8893538ce396c
[ "MIT" ]
7
2020-07-15T19:27:00.000Z
2022-01-20T10:46:37.000Z
soxbindings/effects.py
pseeth/soxbindings
5c2a37969a796a2762c23f6c09c8893538ce396c
[ "MIT" ]
3
2020-07-15T21:11:48.000Z
2021-10-05T19:46:40.000Z
import numpy as np from contextlib import contextmanager MAX_NUM_EFFECTS_ARGS = 20 SOX_UNSPEC = 0 SOX_INITIALIZED = False def get_available_effects(): from . import _soxbindings return _soxbindings.get_effect_names() def initialize_sox(): from . import _soxbindings return _soxbindings.sox_init() def...
35.473214
84
0.704505
5df48163b0aef21d584a60c1915539fc9f51db4f
5,001
py
Python
qa/rpc-tests/wallet-hd.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 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 Hierarchical Deterministic wallet function.""" from test_framework.test_framework import BitcoinTestFr...
44.256637
122
0.640272