hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79591e717183a6e5800c17fc5beaac6be84c34bb
7,779
py
Python
creme/decomposition/test_.py
Leo-VK/creme
0b02df4f4c826368747ee91946efca1a7e8653a6
[ "BSD-3-Clause" ]
23
2020-11-21T22:09:24.000Z
2022-03-21T22:33:07.000Z
creme/decomposition/test_.py
53X/creme
3b397d6aafdfad48dbb36813c90ed3fd1844fc30
[ "BSD-3-Clause" ]
null
null
null
creme/decomposition/test_.py
53X/creme
3b397d6aafdfad48dbb36813c90ed3fd1844fc30
[ "BSD-3-Clause" ]
1
2021-04-25T16:24:43.000Z
2021-04-25T16:24:43.000Z
""" The tests performed here confirm that the outputs of the online LDA are exactly the same as those of the original with a batch_size of size 1. Coverage is 100%. References: 1. Jordan Boyd-Graber, Ke Zhai, Online Latent Dirichlet Allocation with Infinite Vocabulary. http://proceedings.mlr.press/v28/zhai13.p...
25.758278
100
0.552899
79591ef9119514d085188518ec5cc4d21a404de7
2,723
py
Python
resdk/resources/process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
"""Process resource.""" from __future__ import absolute_import, division, print_function, unicode_literals from .base import BaseResolweResource from .utils import _print_input_line class Process(BaseResolweResource): """Resolwe Process resource. One and only one of the identifiers (slug, id or model_data) ...
38.9
95
0.648182
795920af35d3e3a468756e0c86f8a6ef41c73e9a
15,892
py
Python
model/scoring.py
SproutProject/sptoj-server
9590c9f2308e4ad7447e60740372ed6a8f32e7b8
[ "MIT" ]
null
null
null
model/scoring.py
SproutProject/sptoj-server
9590c9f2308e4ad7447e60740372ed6a8f32e7b8
[ "MIT" ]
null
null
null
model/scoring.py
SproutProject/sptoj-server
9590c9f2308e4ad7447e60740372ed6a8f32e7b8
[ "MIT" ]
null
null
null
'''Scoring model module''' import math import asyncio import aiopg.sa import config import sqlalchemy as sa from model.user import UserModel, UserCategory from model.problem import ProblemModel from model.proset import ProSetModel, ProItemModel from model.challenge import ChallengeModel, SubtaskModel from model.chall...
33.386555
79
0.600868
7959233b2729c5b625f6b3b605b5066eec16d212
10,707
py
Python
contrib/devtools/update-translations.py
AgenorCore/Agenor
c022ba2f2d29cea98a6966205f881389707b558b
[ "MIT" ]
46
2021-04-11T20:15:51.000Z
2021-06-02T16:13:11.000Z
contrib/devtools/update-translations.py
criptorob/Agenor
38aa56e3b1cb75911bbb3fe63f4dab8fd243a85a
[ "MIT" ]
5
2021-04-24T13:08:45.000Z
2021-11-24T14:28:55.000Z
contrib/devtools/update-translations.py
criptorob/Agenor
38aa56e3b1cb75911bbb3fe63f4dab8fd243a85a
[ "MIT" ]
9
2021-04-12T12:28:34.000Z
2021-05-14T14:45:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the foll...
39.363971
154
0.63239
7959235857b9410533d8a160b5f763e14c896e61
21,334
py
Python
bruce_slam/src/bruce_slam/mapping.py
jake3991/sonar-SLAM
995bfa61e61d99667bec7a7f70bea4d6d486c312
[ "MIT" ]
null
null
null
bruce_slam/src/bruce_slam/mapping.py
jake3991/sonar-SLAM
995bfa61e61d99667bec7a7f70bea4d6d486c312
[ "MIT" ]
null
null
null
bruce_slam/src/bruce_slam/mapping.py
jake3991/sonar-SLAM
995bfa61e61d99667bec7a7f70bea4d6d486c312
[ "MIT" ]
null
null
null
import numpy as np import cv2 from scipy.special import logit, expit from nav_msgs.msg import OccupancyGrid from .sonar import * from .utils.conversions import * from . import pcl class Submap(object): def __init__(self): # index self.k = 0 # gtsam.Pose2 self.pose = None ...
36.593482
86
0.529296
7959242c5ec0821f3fe8bb38eff0f864c241712f
10,077
py
Python
SICK_rl_pub/src/nn_utils/integration_func.py
taoshen58/ReSAN
f65f3fe656907be0ec14ddf18cd7d2608e7ef905
[ "Apache-2.0" ]
30
2018-03-31T12:10:43.000Z
2021-11-18T06:27:58.000Z
SICK_rl_pub/src/nn_utils/integration_func.py
taoshen58/ReSAN
f65f3fe656907be0ec14ddf18cd7d2608e7ef905
[ "Apache-2.0" ]
3
2018-03-31T12:41:25.000Z
2018-04-08T07:59:37.000Z
SICK_rl_pub/src/nn_utils/integration_func.py
taoshen58/ReSAN
f65f3fe656907be0ec14ddf18cd7d2608e7ef905
[ "Apache-2.0" ]
8
2018-04-20T13:00:28.000Z
2020-06-16T17:10:25.000Z
from src.nn_utils.general import get_last_state, exp_mask_for_high_rank, mask_for_high_rank from src.nn_utils.nn import linear, get_logits, pooling_with_mask, softsel, feature_combination, dropout,\ bn_dense_layer from src.nn_utils.rnn_cell import SwitchableDropoutWrapper from src.nn_utils.rnn import dynamic_rnn, b...
48.447115
111
0.601072
7959244ffb63315acaa0239c16cef8fa44a55a5b
1,817
py
Python
eoxserver/views.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
eoxserver/views.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
eoxserver/views.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Stephan Krause <stephan.krause@eox.at> # Stephan Meissl <stephan.meissl@eox.at> # Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------...
43.261905
80
0.64557
795924b056540f32452f16bbfe11e2156b8d98a8
1,091
py
Python
_states/urbackup_group.py
alkivi-sas/urbackup-formula
5d9aa7cf8920b444eb5337f965967ee07c209946
[ "Apache-2.0" ]
1
2017-10-27T09:54:05.000Z
2017-10-27T09:54:05.000Z
_states/urbackup_group.py
alkivi-sas/urbackup-formula
5d9aa7cf8920b444eb5337f965967ee07c209946
[ "Apache-2.0" ]
null
null
null
_states/urbackup_group.py
alkivi-sas/urbackup-formula
5d9aa7cf8920b444eb5337f965967ee07c209946
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Manage Urbackup Settings ''' # Import Python libs from __future__ import absolute_import import logging # Import salt libs import salt.utils from salt.exceptions import * log = logging.getLogger(__name__) def __virtual__(): ''' Only load if urbackup is available ''' retur...
22.729167
74
0.592117
795924fb1f2ec7873fd784a2ba2e30174f06a159
1,581
py
Python
accounts/graphql/constants.py
vedant-5/django-job-portal
3b4e96fdff28b155e9625d3fe16bd9e822bd9c6e
[ "MIT" ]
1
2022-02-13T06:13:47.000Z
2022-02-13T06:13:47.000Z
accounts/graphql/constants.py
vedant-5/django-job-portal
3b4e96fdff28b155e9625d3fe16bd9e822bd9c6e
[ "MIT" ]
null
null
null
accounts/graphql/constants.py
vedant-5/django-job-portal
3b4e96fdff28b155e9625d3fe16bd9e822bd9c6e
[ "MIT" ]
null
null
null
from django.utils.translation import gettext as _ class Messages: INVALID_PASSWORD = [{"message": _("Invalid password."), "code": "invalid_password"}] UNAUTHENTICATED = [{"message": _("Unauthenticated."), "code": "unauthenticated"}] INVALID_TOKEN = [{"message": _("Invalid token."), "code": "invalid_token"...
32.265306
88
0.552815
79592508832478b8c7d63de676b8f1f2fba36b59
603
py
Python
src/device_requests/send_value.py
CabraKill/hihome-dataAnalysis-client
448957c45b0629d9ace54c367a5b57d2fb8885dc
[ "MIT" ]
null
null
null
src/device_requests/send_value.py
CabraKill/hihome-dataAnalysis-client
448957c45b0629d9ace54c367a5b57d2fb8885dc
[ "MIT" ]
null
null
null
src/device_requests/send_value.py
CabraKill/hihome-dataAnalysis-client
448957c45b0629d9ace54c367a5b57d2fb8885dc
[ "MIT" ]
null
null
null
import requests import time def send_value_to_ip(ip: str, value: str): start = time.time() response = requests.get(f'http://{ip}/RELAY={value.upper()}') flightTime = (time.time() - start) * 1000 flightTimeString = str(flightTime) print(f'Flight time request: {flightTimeString}') if response.st...
27.409091
69
0.640133
795925de3a996d75be946c2f98fab819a32d8ae6
989
py
Python
groupify.py
jhclark/groupify
868719c6b87637a957f71a26670ceb09a972f49b
[ "Apache-2.0" ]
null
null
null
groupify.py
jhclark/groupify
868719c6b87637a957f71a26670ceb09a972f49b
[ "Apache-2.0" ]
null
null
null
groupify.py
jhclark/groupify
868719c6b87637a957f71a26670ceb09a972f49b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from __future__ import division import sys import random WHO_FILE = "who.txt" def usage(): print("Usage: groupify <max_per_group>") print() print("First, place the members of your group who will be attending in who.txt") def load_who(): with open(WH...
22.477273
82
0.656218
795927e3d5a3c97b2bdc6243eb73efa264e035ee
1,046
py
Python
examples/StatisticalLearningMethod/naive_bayes.py
wwwy-binary/NP_ML
a51b2f3cd753e4a8b5a67bec343c3e75b3fe52d8
[ "MIT" ]
237
2018-03-17T08:50:18.000Z
2022-02-24T12:57:46.000Z
examples/StatisticalLearningMethod/naive_bayes.py
pawopawo/NP_ML
a4cba12f191348526a6f6cc94df5084658fcfdea
[ "MIT" ]
2
2019-01-28T03:30:31.000Z
2021-03-03T01:47:38.000Z
examples/StatisticalLearningMethod/naive_bayes.py
pawopawo/NP_ML
a4cba12f191348526a6f6cc94df5084658fcfdea
[ "MIT" ]
79
2018-03-21T12:22:09.000Z
2021-12-17T02:39:09.000Z
import numpy as np from np_ml import NaiveBayes if __name__ == '__main__': print("--------------------------------------------------------") print("Naive Bayes simple example!") print("example in Statistical Learning Method(《统计学习方法》)") print("--------------------------------------------------------") ...
29.885714
77
0.313576
79592832ce460b525ff5e6ee40f4f089fa92a6ee
556
py
Python
djangocms_bootstrap5/contrib/bootstrap5_link/forms.py
crydotsnake/djangocms-boostrap5
d9693eca62b5c04f150b0231c668564ea2ae24b4
[ "BSD-3-Clause" ]
4
2021-09-10T10:43:15.000Z
2022-02-15T08:53:00.000Z
djangocms_bootstrap5/contrib/bootstrap5_link/forms.py
crydotsnake/djangocms-boostrap5
d9693eca62b5c04f150b0231c668564ea2ae24b4
[ "BSD-3-Clause" ]
3
2021-09-27T07:45:29.000Z
2022-02-02T18:37:25.000Z
djangocms_bootstrap5/contrib/bootstrap5_link/forms.py
crydotsnake/djangocms-boostrap5
d9693eca62b5c04f150b0231c668564ea2ae24b4
[ "BSD-3-Clause" ]
3
2021-09-20T16:36:32.000Z
2021-12-17T10:36:27.000Z
from django import forms from djangocms_icon.fields import IconField from djangocms_link.forms import LinkForm from .constants import LINK_CHOICES from .models import Bootstrap5Link class Bootstrap5LinkForm(LinkForm): link_type = forms.ChoiceField( choices=LINK_CHOICES, initial=LINK_CHOICES[0][0...
25.272727
66
0.721223
79592905fc0cd338c093dac5ca661f0abf343e58
2,422
py
Python
hadiths/tests/tests.py
rafidka/HadithHouseApi
207a9a35b820a7eebeb5f6e869cbc16e44e9d721
[ "MIT" ]
1
2021-02-02T23:54:34.000Z
2021-02-02T23:54:34.000Z
hadiths/tests/tests.py
rafidka/HadithHouseApi
207a9a35b820a7eebeb5f6e869cbc16e44e9d721
[ "MIT" ]
190
2015-11-12T20:54:31.000Z
2018-02-04T21:37:18.000Z
hadiths/tests/tests.py
hadithhouse/HadithHouseWebsite
3b59c42356262ee2a848e1e2251d5c51b4a669d1
[ "MIT" ]
3
2016-02-24T20:22:26.000Z
2017-02-01T23:04:18.000Z
# -*- coding: utf-8 -*- from django.test import TestCase from hadiths.models import Person, Book, BookVolume, BookChapter, BookSection, \ HadithTag, Hadith class PersonTestCase(TestCase): def test_pre_save(self): p = Person() p.display_name = u'إخْتِبار إزَاْلة عَلامات التَشْكيل' p.fu...
30.658228
80
0.625516
79592929b45f054f654a6cdf2dcfcbbdc827db6b
5,292
py
Python
dashboard/dashboard/models/alert_group.py
lincocc/catapult
a34cee3161ef5a20e4e255cd01076bec810689c8
[ "BSD-3-Clause" ]
1
2021-04-21T07:55:55.000Z
2021-04-21T07:55:55.000Z
dashboard/dashboard/models/alert_group.py
Keshawnjones/catapult
b226a4b7af31ec65e2c3ae3fcf3f46eb89df28ac
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/models/alert_group.py
Keshawnjones/catapult
b226a4b7af31ec65e2c3ae3fcf3f46eb89df28ac
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The database model for an "Anomaly", which represents a step up or down.""" from __future__ import print_function from __future__ import division from __fu...
33.493671
80
0.667989
79592c310aabee07642e492d480dda7159d6aff0
457
py
Python
mundo 3/075.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
1
2021-08-04T13:21:22.000Z
2021-08-04T13:21:22.000Z
mundo 3/075.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
mundo 3/075.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
valores = (int(input('Digite 4 valores: ')), int(input('Digite 4 valores: ')), int(input('Digite 4 valores: ')), int(input('Digite 4 valores: '))) print(f'O numero 9 apareceu {valores.count(9)} vezes') if 3 in valores: print(f'O numero 3 apareceu na {valores.index(3) + 1}º posição.') e...
25.388889
69
0.59081
79592c8044bd63fd68c2017ab2d25742ca2930d0
3,614
py
Python
ext_modules/_maix_image/example/maix_image_base_test.py
znstj/MaixPy3
f672b2049b668a5a72ad249933cf9a009760799e
[ "MIT" ]
null
null
null
ext_modules/_maix_image/example/maix_image_base_test.py
znstj/MaixPy3
f672b2049b668a5a72ad249933cf9a009760799e
[ "MIT" ]
null
null
null
ext_modules/_maix_image/example/maix_image_base_test.py
znstj/MaixPy3
f672b2049b668a5a72ad249933cf9a009760799e
[ "MIT" ]
null
null
null
from maix import image, display, camera import time import signal def handle_signal_z(signum, frame): print("APP OVER") exit(0) signal.signal(signal.SIGINT, handle_signal_z) def test_draw(): img = image.Image().new(size=(240, 240), color=(255, 0, 0), mode="RGB") # draw_string img.draw_strin...
22.873418
81
0.598783
79592e204cb769e5540d67719993d60b3f223a23
960
py
Python
weread/question.py
songjiang951130/JD-Coin
03e2183435e6e8e4cf109fa7286d15cf5f6933da
[ "Apache-2.0" ]
5
2019-08-01T10:35:48.000Z
2019-12-15T02:58:01.000Z
weread/question.py
songjiang951130/JD-Coin
03e2183435e6e8e4cf109fa7286d15cf5f6933da
[ "Apache-2.0" ]
1
2020-01-21T08:38:24.000Z
2020-01-21T08:38:24.000Z
weread/question.py
songjiang951130/JD-Coin
03e2183435e6e8e4cf109fa7286d15cf5f6933da
[ "Apache-2.0" ]
7
2019-08-28T11:36:15.000Z
2022-01-16T14:55:41.000Z
# import pytesseract # from PIL import Image # import baidu # token = baidu.getToken() # print(token) # # image.show() # #需要配置下载文件 # result = pytesseract.image_to_string(image, lang="chi_sim") # print(result) from aip import AipOcr from PIL import Image import base64 from io import BytesIO """ 你的 APPID AK SK 图2的内容...
21.333333
61
0.728125
79592e49b6b12a8e22773a46d683304dc4781c15
4,406
py
Python
skyfield/tests/test_strs_and_reprs.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
skyfield/tests/test_strs_and_reprs.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
skyfield/tests/test_strs_and_reprs.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
import textwrap from ..api import Topos, load, wgs84 from ..sgp4lib import EarthSatellite lines = [ 'ISS (ZARYA) ', '1 25544U 98067A 13330.58127943 .00000814 00000-0 21834-4 0 1064', '2 25544 51.6484 23.7537 0001246 74.1647 18.7420 15.50540527859894', ] def dedent(s): return text...
34.155039
104
0.621879
79592e4ad15a226655e1b947611f31fbe28a6617
8,027
py
Python
.github/run-clang-format.py
mwikenma/maya-usd
08dde686f23820b27a3aef438e092c4e13405c3b
[ "Apache-2.0" ]
507
2019-07-30T20:05:10.000Z
2022-03-30T07:38:43.000Z
.github/run-clang-format.py
mwikenma/maya-usd
08dde686f23820b27a3aef438e092c4e13405c3b
[ "Apache-2.0" ]
1,188
2019-07-31T11:27:27.000Z
2022-03-31T21:06:06.000Z
.github/run-clang-format.py
mwikenma/maya-usd
08dde686f23820b27a3aef438e092c4e13405c3b
[ "Apache-2.0" ]
165
2019-07-30T22:27:57.000Z
2022-03-25T07:20:23.000Z
#!/usr/bin/env python '''Run clang-format on files in this repository By default, runs on all files, but may pass specific files. ''' from __future__ import absolute_import, division, print_function, unicode_literals import argparse import inspect import fnmatch import io import os import re import stat import sys ...
34.157447
167
0.628628
79592ed6fec877de51e957325bc75abb0beb48b3
24,627
py
Python
.ipython/profile_default/ipython_qtconsole_config.py
elsdrium/.unix_settings
1c3cf9dfc9a4a465178d22c82f3a05f380cda926
[ "MIT" ]
5
2016-11-06T07:17:08.000Z
2019-02-24T11:15:23.000Z
.ipython/profile_default/ipython_qtconsole_config.py
elsdrium/.unix_settings
1c3cf9dfc9a4a465178d22c82f3a05f380cda926
[ "MIT" ]
null
null
null
.ipython/profile_default/ipython_qtconsole_config.py
elsdrium/.unix_settings
1c3cf9dfc9a4a465178d22c82f3a05f380cda926
[ "MIT" ]
null
null
null
# Configuration file for ipython-qtconsole. c = get_config() #------------------------------------------------------------------------------ # IPythonQtConsoleApp configuration #------------------------------------------------------------------------------ # IPythonQtConsoleApp will inherit config from: BaseIPythonA...
37.088855
411
0.712145
79592f69b1be10f1980b501cacfb176f9106a7c0
1,416
py
Python
celery-sqs/app.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
celery-sqs/app.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
celery-sqs/app.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
from celery import Celery from kombu.utils.url import safequote import os AWS_ACCESS_KEY = os.getenv('AWS_ACCESS_KEY', 'ABCDEFGHIJKLMNOPQRST') AWS_SECRET_KEY = os.getenv('AWS_SECRET_KEY', 'ZYXK7NiynG/TogH8Nj+P9nlE73sq3') AWS_REGION = os.getenv('AWS_REGION', 'ap-northeast-2') AWS_USER_ID= os.getenv('AWS_USER_ID', '1919...
27.764706
94
0.644774
79593016e2cf7c34399eb5bb456f49e3446ee037
4,452
py
Python
airflow/providers/slack/operators/slack_webhook.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
2
2021-07-30T17:25:56.000Z
2021-08-03T13:51:09.000Z
airflow/providers/slack/operators/slack_webhook.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
null
null
null
airflow/providers/slack/operators/slack_webhook.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
1
2020-11-06T01:26:29.000Z
2020-11-06T01:26:29.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
36.195122
90
0.670934
7959306c5932a545d0599e75262f6d887412ac43
1,888
py
Python
tests/data-files/plugins/noop_raster_source.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
3
2020-07-05T04:04:18.000Z
2021-02-05T16:19:55.000Z
tests/data-files/plugins/noop_raster_source.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
tests/data-files/plugins/noop_raster_source.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2020-04-27T15:21:53.000Z
2020-04-27T15:21:53.000Z
import numpy as np import rastervision as rv from rastervision.core import Box from rastervision.data import (RasterSource, RasterSourceConfig, RasterSourceConfigBuilder, IdentityCRSTransformer) from rastervision.protos.raster_source_pb2 \ import Raster...
27.764706
74
0.683792
7959308d6508bd704336d955d1d283eea89d0293
5,346
py
Python
game.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2017-09-07T22:47:52.000Z
2017-09-07T22:47:52.000Z
game.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
null
null
null
game.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2020-04-12T16:12:20.000Z
2020-04-12T16:12:20.000Z
import numpy as np import gym from gym import spaces #from gym.utils import seeding #from gym.envs.classic_control import rendering import os from subprocess import Popen, PIPE LEFT = 0b00 RIGHT = 0b01 UP = 0b10 DOWN = 0b11 action_str = { LEFT : "LEFT", RIGHT : "RIGHT", UP : "UP", DOWN ...
27.989529
117
0.468762
795930901ca005aa07dd52a06c1a6aed2aae3a8d
1,090
py
Python
gradient_descent_local_minima.py
Shathra/gradient-descent-demonstration
0244a3602e7cbefb6c3b1905c3af5af5fd753022
[ "MIT" ]
9
2018-06-29T08:10:17.000Z
2021-11-18T23:48:47.000Z
gradient_descent_local_minima.py
Shathra/gradient-descent-demonstration
0244a3602e7cbefb6c3b1905c3af5af5fd753022
[ "MIT" ]
null
null
null
gradient_descent_local_minima.py
Shathra/gradient-descent-demonstration
0244a3602e7cbefb6c3b1905c3af5af5fd753022
[ "MIT" ]
6
2018-11-25T20:37:21.000Z
2020-12-10T05:48:53.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation # Function to minmize def f(x): return 8 * (x-10) * np.sin(0.5*x-5) + 200 # Derivative of the function def fd(x): return 4 * (x - 10) * np.cos(0.5*x - 5) + 8 * np.sin(0.5*x-5) x_min = -30 x_max = 30 x = np.linspace(x_min, x...
19.818182
62
0.655963
795931b03361eaf5e206c1cbeb109f9c93debeca
20,454
py
Python
oot-graph-builder/oot_graph_builder.py
DarkMuesli/OoT-Graph-Model
c740839c13a046b6e8000087d39b467462fe87ef
[ "MIT" ]
null
null
null
oot-graph-builder/oot_graph_builder.py
DarkMuesli/OoT-Graph-Model
c740839c13a046b6e8000087d39b467462fe87ef
[ "MIT" ]
null
null
null
oot-graph-builder/oot_graph_builder.py
DarkMuesli/OoT-Graph-Model
c740839c13a046b6e8000087d39b467462fe87ef
[ "MIT" ]
null
null
null
from __future__ import annotations import collections import math from typing import Any import networkx as nx import pandas as pd ACTOR_LABEL = 'actor' TRANSITION_ACTOR_LABEL = 'transition_actor' SPAWN_LABEL = 'spawn' NODE_TYPE_LABEL = 'node_type' SAVEW_EDGE_LABEL = 'save_warp' DEATHW_EDGE_LABEL = 'death_warp' SONG...
31.959375
117
0.596803
79593336303ce0193e69555864ca3b0366c081a3
2,441
py
Python
apps/students/signals.py
Daniel-TheProgrammer/DSchoo_With_Django
5f5d7872230a7213307e1cbeb357133eec5df381
[ "MIT" ]
4
2021-07-19T09:55:49.000Z
2021-08-06T06:33:00.000Z
apps/students/signals.py
ronnykarani/Django-sch-manager
54140cc8a6d230a6fe9c6df32137e36f63164f30
[ "MIT" ]
null
null
null
apps/students/signals.py
ronnykarani/Django-sch-manager
54140cc8a6d230a6fe9c6df32137e36f63164f30
[ "MIT" ]
2
2021-08-06T06:25:03.000Z
2021-08-06T06:33:05.000Z
import os import csv from io import StringIO from django.db.models.signals import post_save, post_delete from django.dispatch import receiver from apps.corecode.models import StudentClass from .models import Student, StudentBulkUpload @receiver(post_save, sender=StudentBulkUpload) def create_bulk_student(sender, crea...
36.984848
103
0.661204
795933885eb6ef4176b4e5386a263e18eb54a47b
2,246
py
Python
superset/migrations/versions/e99391269cc8_add_filter_set_to_db_storage_trac.py
stevetracvc/superset
77b7c73d827bcdc0149ee52933ba5f3ae1383cbf
[ "Apache-2.0" ]
null
null
null
superset/migrations/versions/e99391269cc8_add_filter_set_to_db_storage_trac.py
stevetracvc/superset
77b7c73d827bcdc0149ee52933ba5f3ae1383cbf
[ "Apache-2.0" ]
5
2022-03-28T03:35:40.000Z
2022-03-28T03:47:12.000Z
superset/migrations/versions/e99391269cc8_add_filter_set_to_db_storage_trac.py
stevetracvc/superset
77b7c73d827bcdc0149ee52933ba5f3ae1383cbf
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
40.107143
87
0.72707
79593599a467897cac0382a7ae98b9a6719e8eb6
338
py
Python
tests/test_time.py
workforce-data-initiative/skills-utils
4cf9b7c2938984f34bbcc33d45482d23c52c7539
[ "MIT" ]
null
null
null
tests/test_time.py
workforce-data-initiative/skills-utils
4cf9b7c2938984f34bbcc33d45482d23c52c7539
[ "MIT" ]
12
2017-04-06T22:34:14.000Z
2018-02-11T20:08:32.000Z
tests/test_time.py
workforce-data-initiative/skills-utils
4cf9b7c2938984f34bbcc33d45482d23c52c7539
[ "MIT" ]
3
2018-03-05T18:36:26.000Z
2020-07-29T23:08:06.000Z
from skills_utils.time import dates_in_range from datetime import date def test_dates_in_range(): start = date(2012, 5, 29) end = date(2012, 6, 3) assert dates_in_range(start, end) == [ date(2012, 5, 29), date(2012, 5, 30), date(2012, 5, 31), date(2012, 6, 1), date(2...
24.142857
44
0.573964
7959359ba9b0e8b60590168a8e7d4c7a85d9ed81
68
py
Python
client_start.py
Xyfuture/ChatRoom
e09ba6393de420489d27acf104a52014ebfc15ac
[ "MIT" ]
151
2017-12-27T16:21:41.000Z
2022-03-29T08:01:51.000Z
client_start.py
Jonnyyangyang/ChatRoom
c4bf1dea13a13083f8182d65dab897619758ca3d
[ "MIT" ]
3
2019-05-21T08:17:26.000Z
2021-04-08T06:58:18.000Z
client_start.py
Jonnyyangyang/ChatRoom
c4bf1dea13a13083f8182d65dab897619758ca3d
[ "MIT" ]
40
2018-03-19T08:36:49.000Z
2022-03-22T12:10:30.000Z
from client.client import Client client = Client() client.start()
11.333333
32
0.75
7959362fa87369666085f353e6cf87d2dedb39d1
4,554
py
Python
commands/portables.py
SeymourGx/RunePy
7c6b7a8d828d63e8f2e129e2ed6563387d98f6ce
[ "MIT" ]
null
null
null
commands/portables.py
SeymourGx/RunePy
7c6b7a8d828d63e8f2e129e2ed6563387d98f6ce
[ "MIT" ]
null
null
null
commands/portables.py
SeymourGx/RunePy
7c6b7a8d828d63e8f2e129e2ed6563387d98f6ce
[ "MIT" ]
1
2019-06-12T16:48:33.000Z
2019-06-12T16:48:33.000Z
from secret import GOOGLE_API_KEY from datetime import datetime from util.arguments import Arguments from discord.ext import commands from shlex import split from util.choices import enum from collections import namedtuple import util import re import urllib import discord class Portables: def __init__(self, bot...
35.858268
126
0.581467
795937864f3be553608c7615310a02e02cb91c31
4,129
py
Python
conll_to_examples.py
spyysalo/prodigy-relation-annotation
f03acd4ad18c23e9966b71ea5d07f75c4806347b
[ "MIT" ]
null
null
null
conll_to_examples.py
spyysalo/prodigy-relation-annotation
f03acd4ad18c23e9966b71ea5d07f75c4806347b
[ "MIT" ]
null
null
null
conll_to_examples.py
spyysalo/prodigy-relation-annotation
f03acd4ad18c23e9966b71ea5d07f75c4806347b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import json import html import uuid import random from argparse import ArgumentParser from collections import namedtuple Mention = namedtuple('Mention', 'start end type text') # Entity type pairs to include in output TARGET_TYPE_PAIRS = [ ('PERSON', 'ORG'), ] def argparser(...
29.283688
79
0.566239
795938870cfce0009337bfbfbebda0e193310133
1,832
py
Python
tests/h/emails/test_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/emails/test_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/emails/test_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest from h._compat import string_types from h.emails.test import generate from h import __version__ class TestGenerate: def test_calls_renderers_with_appropriate_context( self, pyramid_request, html_renderer, text_renderer, matc...
31.050847
88
0.683952
795938b5bb3542e728eb283e5ebe2848c199ed1b
2,940
py
Python
businesstimedelta/rules/rules.py
moseswynn/businesstimedelta
5b91f9342428281f7c8887f5f50827e3c2b39783
[ "MIT" ]
23
2016-01-26T00:49:46.000Z
2022-01-16T13:00:25.000Z
businesstimedelta/rules/rules.py
moseswynn/businesstimedelta
5b91f9342428281f7c8887f5f50827e3c2b39783
[ "MIT" ]
10
2016-02-16T00:28:04.000Z
2022-02-02T21:18:31.000Z
businesstimedelta/rules/rules.py
moseswynn/businesstimedelta
5b91f9342428281f7c8887f5f50827e3c2b39783
[ "MIT" ]
7
2016-02-09T10:32:21.000Z
2022-01-25T13:34:43.000Z
from .rule import Rule from ..businesstimedelta import localize_unlocalized_dt class Rules(Rule): """Combine a list of rules together to form one rule. Args: rules: a list of rule objects. """ def __init__(self, rules, *args, **kwargs): self.available_rules = [x for x in rules if not x...
33.793103
72
0.52551
795938d36a6f772b373ddc3a4a01f325d8b32825
18,469
py
Python
artellapipe/tools/welcome/_version.py
ArtellaPipe/artellapipe-tools-welcome
0734d1675b1876ec8f3198fec4d99cbe5fee1b5b
[ "MIT" ]
null
null
null
artellapipe/tools/welcome/_version.py
ArtellaPipe/artellapipe-tools-welcome
0734d1675b1876ec8f3198fec4d99cbe5fee1b5b
[ "MIT" ]
null
null
null
artellapipe/tools/welcome/_version.py
ArtellaPipe/artellapipe-tools-welcome
0734d1675b1876ec8f3198fec4d99cbe5fee1b5b
[ "MIT" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.449136
79
0.584872
7959393fd386df8c13da4864577559ca4ddafff0
5,856
py
Python
mediapipe/calculators/tensorflow/vector_float_to_tensor_calculator_options_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/tensorflow/vector_float_to_tensor_calculator_options_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/tensorflow/vector_float_to_tensor_calculator_options_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/tensorflow/vector_float_to_tensor_calculator_options.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
46.47619
617
0.818648
795939b91d94edc1e1480417252064365abde2da
1,431
py
Python
robot-server/robot_server/service/session/command_execution/command.py
ferlzc/opentrons
29fac8ae6e456439f87fce60e8c935c2a2aaa582
[ "Apache-2.0" ]
null
null
null
robot-server/robot_server/service/session/command_execution/command.py
ferlzc/opentrons
29fac8ae6e456439f87fce60e8c935c2a2aaa582
[ "Apache-2.0" ]
null
null
null
robot-server/robot_server/service/session/command_execution/command.py
ferlzc/opentrons
29fac8ae6e456439f87fce60e8c935c2a2aaa582
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from dataclasses import dataclass, field from typing import Optional from robot_server.service.session.models.command import ( CommandDataType, CommandStatus, CommandResultType) from robot_server.service.session.models.command_definitions import \ CommandDefinitionType from robot_...
25.553571
73
0.754018
79593a22507a6425e8b78aa96cb07f22d40aeb55
389
py
Python
metrics/serializers.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
null
null
null
metrics/serializers.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
6
2021-03-18T22:01:48.000Z
2022-02-10T07:19:13.000Z
metrics/serializers.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
null
null
null
from rest_framework import serializers from metrics.models import InventoryProduct class InventoryProductSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = InventoryProduct fields = ( 'pk', 'product', 'total_qty_purchased', 'total_qty_sold', 'total_qty_expired', '...
29.923077
112
0.701799
79593a27d0cfc4d62d084b71a6549cc567a74cee
5,714
py
Python
scripts/tests/sample_module/doc/conf.py
pv/pydocweb
05c7b69c3903e2bb90cca511f18f9c10d7926cc6
[ "BSD-3-Clause" ]
2
2016-07-26T17:13:00.000Z
2017-12-13T12:46:46.000Z
scripts/tests/sample_module/doc/conf.py
pv/pydocweb
05c7b69c3903e2bb90cca511f18f9c10d7926cc6
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/sample_module/doc/conf.py
pv/pydocweb
05c7b69c3903e2bb90cca511f18f9c10d7926cc6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # sample_module documentation build configuration file, created by # sphinx-quickstart on Sun Sep 7 16:40:03 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't p...
31.744444
82
0.731362
79593ae545f680614c6d4061d912969bc9d385ee
53,769
py
Python
tests/templates/test_subroutines.py
DanielPolatajko/pennylane
d603e810a4d34d727a436d852c540fdc0fe21a85
[ "Apache-2.0" ]
1
2021-02-18T02:14:27.000Z
2021-02-18T02:14:27.000Z
tests/templates/test_subroutines.py
markhop20/pennylane
8792f0f88178f70a04d6f7afbbb9dd90d2e758b3
[ "Apache-2.0" ]
null
null
null
tests/templates/test_subroutines.py
markhop20/pennylane
8792f0f88178f70a04d6f7afbbb9dd90d2e758b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies 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...
36.330405
114
0.473619
79593bf354de0872e7871b8c89b72e845c3d4c2c
4,937
py
Python
cloakx/JS_Replace.py
skarami/cloakx
a6d0b808b5cfa665a1328c49931511d57f8aa6a7
[ "BSD-2-Clause" ]
2
2020-08-20T14:11:14.000Z
2021-04-12T08:11:57.000Z
cloakx/JS_Replace.py
skarami/cloakx
a6d0b808b5cfa665a1328c49931511d57f8aa6a7
[ "BSD-2-Clause" ]
null
null
null
cloakx/JS_Replace.py
skarami/cloakx
a6d0b808b5cfa665a1328c49931511d57f8aa6a7
[ "BSD-2-Clause" ]
1
2022-02-09T18:13:53.000Z
2022-02-09T18:13:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from slimit import ast from slimit.parser import Parser from slimit.visitors import nodevisitor from pprint import PrettyPrinter import re import esprima pp = PrettyPrinter(indent=2) data = """ var a = "content other" // YES NO var b = 'content -content' // YES...
32.913333
108
0.568361
79593c7c18bf3a028fac5558d7d0d4cf96e42b78
15,827
py
Python
hex/NNet.py
phil-hawkins/alpha-zero-general
b218bd3f98740f917a98bbf2609a516fcfcef6fc
[ "MIT" ]
null
null
null
hex/NNet.py
phil-hawkins/alpha-zero-general
b218bd3f98740f917a98bbf2609a516fcfcef6fc
[ "MIT" ]
null
null
null
hex/NNet.py
phil-hawkins/alpha-zero-general
b218bd3f98740f917a98bbf2609a516fcfcef6fc
[ "MIT" ]
null
null
null
import os import sys import math import numpy as np import torch import torch.optim as optim from time import time from tqdm import tqdm from absl import logging sys.path.append('../../') from utils import dotdict, AverageMeter from NeuralNet import NeuralNet from .models.scale_cnn import CNNHex, RecurrentCNNHex from ....
42.093085
146
0.606053
79593d9dc514d6c99f859102028371ceea308d98
7,656
py
Python
.pytool/CISettings.py
dyww2/edk2
f1d78c489a39971b5aac5d2fc8a39bfa925c3c5d
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
7
2016-11-03T17:04:00.000Z
2021-11-03T23:00:42.000Z
.pytool/CISettings.py
dyww2/edk2
f1d78c489a39971b5aac5d2fc8a39bfa925c3c5d
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
7
2020-02-08T15:55:59.000Z
2020-06-08T09:13:15.000Z
.pytool/CISettings.py
dyww2/edk2
f1d78c489a39971b5aac5d2fc8a39bfa925c3c5d
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
7
2019-05-11T10:03:35.000Z
2022-03-14T13:15:11.000Z
# @file # # Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: BSD-2-Clause-Patent ## import os import logging from edk2toolext.environment import shell_environment from edk2toolext.invocables.edk2_ci_build import CiBuildSettingsManager from edk2toolext.invocables.edk2_setup import SetupSettingsMa...
42.065934
108
0.536442
79593e297f1a4ae108d241233feefe7796c593d6
35,000
py
Python
src/xml_processing/code/lib/xml_to_json.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
null
null
null
src/xml_processing/code/lib/xml_to_json.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
39
2021-10-18T17:02:49.000Z
2022-03-28T20:56:24.000Z
src/xml_processing/code/lib/xml_to_json.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
1
2021-10-21T00:11:18.000Z
2021-10-21T00:11:18.000Z
""" xml_to_json =========== module that converts XMLs to JSON files """ import json import urllib.request import re import os import logging import hashlib import click import coloredlogs import sys # from dotenv import load_dotenv # # load_dotenv() # pipenv run python xml_to_json.py -f /home/azurebrd/git/agr_li...
47.619048
160
0.553143
79593fc2fc344d63be9c57dc707962e755139c90
5,094
py
Python
First Version/AutomationI40Ontology-Example/OPC UA Clients/opcua-client-deviceI/ADCLibrary/captura_analog.py
sagilar/Automation-I4.0-Ontology
ce37fc4b55e51c2f3219db343ce6c273cbfb71f1
[ "Apache-2.0" ]
3
2021-01-15T07:58:15.000Z
2021-03-25T13:01:35.000Z
First Version/AutomationI40Ontology-Example/OPC UA Clients/opcua-client-deviceI/ADCLibrary/captura_analog.py
sagilar/Automation-I4.0-Ontology
ce37fc4b55e51c2f3219db343ce6c273cbfb71f1
[ "Apache-2.0" ]
null
null
null
First Version/AutomationI40Ontology-Example/OPC UA Clients/opcua-client-deviceI/ADCLibrary/captura_analog.py
sagilar/Automation-I4.0-Ontology
ce37fc4b55e51c2f3219db343ce6c273cbfb71f1
[ "Apache-2.0" ]
14
2019-03-18T15:02:43.000Z
2021-11-21T07:54:00.000Z
import sys from ADS1256_definitions import * from pipyadc import ADS1256 import requests # coding=utf-8 POTI = POS_AIN0|NEG_AINCOM # Light dependant resistor of the same board: LDR = POS_AIN1|NEG_AINCOM # The other external input screw terminals of the Waveshare board: EXT2, EXT3, EXT4 = POS_AIN2|NEG_AINCOM, POS_AI...
37.182482
123
0.667845
7959417466fc60be32064770a2a8263c66ee0f01
1,509
py
Python
color_logger.py
NikolayBlokhin/color-logger
70d85d4bb445e59e9b72c1a7010fdb6c5c94e761
[ "MIT" ]
null
null
null
color_logger.py
NikolayBlokhin/color-logger
70d85d4bb445e59e9b72c1a7010fdb6c5c94e761
[ "MIT" ]
null
null
null
color_logger.py
NikolayBlokhin/color-logger
70d85d4bb445e59e9b72c1a7010fdb6c5c94e761
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import logging.handlers from termcolor import cprint class ColorLogger(object): """ Write log messages to console (with any colors and backgrounds) and to file (optional). """ def __init__(self, logger_name=None, log_file_name=None): ...
30.18
77
0.615639
7959432d0b0f1ae70d5985a757fbff46306f4524
42,320
py
Python
evaluations.py
HarisSmajlovic/mwt-boost
33c6bb3df9cc3fc9ac8b43f81399c19caf08062c
[ "MIT" ]
1
2021-03-14T13:17:20.000Z
2021-03-14T13:17:20.000Z
evaluations.py
HarisSmajlovic/mwt-boost
33c6bb3df9cc3fc9ac8b43f81399c19caf08062c
[ "MIT" ]
7
2021-03-14T00:30:19.000Z
2021-03-14T00:30:38.000Z
evaluations.py
HarisSmajlovic/mwt-boost
33c6bb3df9cc3fc9ac8b43f81399c19caf08062c
[ "MIT" ]
null
null
null
import helpers.draw import libraries.st_lib from helpers import benchmark from helpers.benchmark import output_stats from libraries.st_lib import get_gct from libraries.st_lib import get_gct_edges from solutions.artificial_bee_colony import random_wandering_abc_algorithm from solutions.particle_swarm_optimization impor...
138.300654
4,924
0.606498
79594376cf5b4dde47869a31af3144fddf155ba5
15,282
py
Python
profiles/tests/test_audit_log.py
City-of-Helsinki/opencity-profile
a430b562b9937f443d391475fabdc27068b95c49
[ "MIT" ]
null
null
null
profiles/tests/test_audit_log.py
City-of-Helsinki/opencity-profile
a430b562b9937f443d391475fabdc27068b95c49
[ "MIT" ]
null
null
null
profiles/tests/test_audit_log.py
City-of-Helsinki/opencity-profile
a430b562b9937f443d391475fabdc27068b95c49
[ "MIT" ]
null
null
null
import json import logging from dataclasses import dataclass from datetime import datetime, timedelta, timezone from string import Template from typing import Any, List, Optional import pytest from django.conf import settings from guardian.shortcuts import assign_perm from open_city_profile.tests import to_graphql_na...
31.251534
92
0.634537
795943e7744517c98a486a4d07e5f86906d9e8b9
12,392
py
Python
vectorizers/ngram_vectorizer.py
cjweir/vectorizers
6400af95e130cc692e13244ec5d696222b784606
[ "BSD-3-Clause" ]
1
2021-04-08T15:03:25.000Z
2021-04-08T15:03:25.000Z
vectorizers/ngram_vectorizer.py
cjweir/vectorizers
6400af95e130cc692e13244ec5d696222b784606
[ "BSD-3-Clause" ]
null
null
null
vectorizers/ngram_vectorizer.py
cjweir/vectorizers
6400af95e130cc692e13244ec5d696222b784606
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import numba from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils.validation import ( check_is_fitted, ) from collections import defaultdict import scipy.linalg import scipy.stats import scipy.sparse from .utils import ( flatten, validate_homogeneous_token_types,...
37.438066
111
0.622337
7959444b1258513576d96aa9649f30077372cbfe
7,289
py
Python
src/python/pants/backend/core/tasks/what_changed.py
lcary/pants
9ffe5262909ad9521e8cdf2beffd6e86330bd3bc
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/core/tasks/what_changed.py
lcary/pants
9ffe5262909ad9521e8cdf2beffd6e86330bd3bc
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/core/tasks/what_changed.py
lcary/pants
9ffe5262909ad9521e8cdf2beffd6e86330bd3bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import re from pant...
42.377907
113
0.680203
795945531000060970ccece824325ef7c9e72084
1,071
py
Python
setup.py
annihilatorrrr/dumbot
c4ff0db681cb1a3d13e8ce7ef5158e3f2bf46a55
[ "MIT" ]
null
null
null
setup.py
annihilatorrrr/dumbot
c4ff0db681cb1a3d13e8ce7ef5158e3f2bf46a55
[ "MIT" ]
null
null
null
setup.py
annihilatorrrr/dumbot
c4ff0db681cb1a3d13e8ce7ef5158e3f2bf46a55
[ "MIT" ]
null
null
null
import os import shutil from distutils.core import setup PKG_DIR = 'dumbot' BOT_SRC = 'dumbot.py' INIT_PY = os.path.join(PKG_DIR, '__init__.py') try: if os.path.isfile(BOT_SRC): os.makedirs(PKG_DIR, exist_ok=True) shutil.copy(BOT_SRC, INIT_PY) setup( name='dumbot', packages=[...
29.75
67
0.570495
79594557660ded1c70399167e8a151316a1a0b8f
5,613
py
Python
canvas-bulk-marking-utility.py
kylejcharlton/canvas-bulk-marking-utility
11a5825dc28cd546be535e84862b5652a6a929d4
[ "MIT" ]
null
null
null
canvas-bulk-marking-utility.py
kylejcharlton/canvas-bulk-marking-utility
11a5825dc28cd546be535e84862b5652a6a929d4
[ "MIT" ]
null
null
null
canvas-bulk-marking-utility.py
kylejcharlton/canvas-bulk-marking-utility
11a5825dc28cd546be535e84862b5652a6a929d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import sys import datetime import time import requests # Initialize some variables: start_date = datetime.datetime(1970, 1, 1).isoformat() def generate_auth_header(token: str): return {'Authorization': 'Bearer ' + token} # Necessary to list all announcements # W...
40.673913
206
0.633529
7959459535a2c3baaf293ab055d6254b4144ba67
2,127
py
Python
tests/test_conjugates.py
brandonwillard/symbolic-pymc3
13fa4a9f5b4639bc9dc63e4df71cde10aac4bb3b
[ "Apache-2.0" ]
1
2020-12-29T17:49:46.000Z
2020-12-29T17:49:46.000Z
tests/test_conjugates.py
brandonwillard/symbolic-pymc3
13fa4a9f5b4639bc9dc63e4df71cde10aac4bb3b
[ "Apache-2.0" ]
null
null
null
tests/test_conjugates.py
brandonwillard/symbolic-pymc3
13fa4a9f5b4639bc9dc63e4df71cde10aac4bb3b
[ "Apache-2.0" ]
null
null
null
import theano.tensor as tt import numpy as np from theano.gof.opt import EquilibriumOptimizer from theano.gof.graph import inputs as tt_inputs from symbolic_pymc import MvNormalRV, observed from symbolic_pymc.opt import KanrenRelationSub, FunctionGraph from symbolic_pymc.utils import optimize_graph from symbolic_pymc...
34.306452
77
0.694875
7959477541e635868df28fb169d4fd6024995573
7,702
py
Python
onlinepayments/sdk/domain/redirect_payment_method_specific_input.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/redirect_payment_method_specific_input.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/redirect_payment_method_specific_input.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This class was auto-generated. # from onlinepayments.sdk.data_object import DataObject from onlinepayments.sdk.domain.redirect_payment_product809_specific_input import RedirectPaymentProduct809SpecificInput from onlinepayments.sdk.domain.redirect_payment_product840_specific_input import Redi...
42.788889
335
0.708907
7959488b7ece28a479e8754eee07b49bf77f7ee3
12,255
py
Python
pipa/ltsp/src/ltsp_usage_monitor/daemon.py
kiberpipa/Intranet
2bc2ffd4e9e9f36c78d0444b60575fa1de562f73
[ "BSD-2-Clause-FreeBSD" ]
3
2015-01-20T17:25:37.000Z
2021-09-16T17:28:02.000Z
pipa/ltsp/src/ltsp_usage_monitor/daemon.py
avian2/kiberpipa-intranet
e36f09e3fe74c95d73ea61e4efed8f42b97d08ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pipa/ltsp/src/ltsp_usage_monitor/daemon.py
avian2/kiberpipa-intranet
e36f09e3fe74c95d73ea61e4efed8f42b97d08ea
[ "BSD-2-Clause-FreeBSD" ]
2
2017-09-11T22:13:51.000Z
2022-01-14T18:19:35.000Z
__author__ = "Shane Hathaway" __doc__ = """ Downloaded from http://hathawaymix.org/Software/Sketches/daemon.py See also http://blog.ianbicking.org/daemon-best-practices.html Daemon base class Provides a framework for daemonizing a process. Features: - reads the command line - reads a configuration file - ...
31.104061
78
0.551285
7959489d41e9f1311f07cc1728e0d73086e3d127
602
py
Python
src/PYnative/exercise/Random Data Generation/Q6.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Random Data Generation/Q6.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Random Data Generation/Q6.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
# Generate a random Password which meets the following conditions # Password length must be 10 characters long. # It must contain at least 2 upper case letter, 2 digits, and 2 special symbols. # My Solution import random import string source = string.ascii_letters + string.digits + string.punctuation password = rando...
30.1
80
0.769103
79594933c0d74a262753633a669147b2de39c55b
8,924
py
Python
build/lib/rsnapsim/SSA_Soln.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
build/lib/rsnapsim/SSA_Soln.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
build/lib/rsnapsim/SSA_Soln.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 17 17:57:33 2020 @author: willi """ from . import GenericMetaData GenericMetaData = GenericMetaData.GenericMetaData import numpy as np import json, codecs from json import encoder class SSA_Soln(): ''' SSA container class holds intensity / ribosome data as ...
36.876033
170
0.453384
795949e3e773bc18c896588ae258abed3b29623f
417,198
py
Python
nova/tests/compute/test_compute.py
bopopescu/plumgrid-nova
87579b67ed9a2d62f04d3540d6fb817cc002cead
[ "Apache-2.0" ]
null
null
null
nova/tests/compute/test_compute.py
bopopescu/plumgrid-nova
87579b67ed9a2d62f04d3540d6fb817cc002cead
[ "Apache-2.0" ]
null
null
null
nova/tests/compute/test_compute.py
bopopescu/plumgrid-nova
87579b67ed9a2d62f04d3540d6fb817cc002cead
[ "Apache-2.0" ]
1
2020-07-24T09:07:58.000Z
2020-07-24T09:07:58.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); y...
44.147937
79
0.612695
79594a6cef04e3396940cdd474affc9cfe72f2f1
826
py
Python
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
import argparse from camp_real_engine.engine import RealizationEngine class CLI(object): def __init__(self): self.parser = argparse.ArgumentParser(prog='rcamp', description='CAMP Realization Tool') self.parser.add_argument('realize', nargs=1, help='"realize" is a command to start realization') self.parser.ad...
30.592593
98
0.745763
79594af5a913a347dca8e86d2ca9e721ca9a822e
98,962
py
Python
nova/virt/xenapi/vm_utils.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/virt/xenapi/vm_utils.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/virt/xenapi/vm_utils.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2011 Piston Cloud Computing, Inc. # Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
37.945552
79
0.632182
79594b4608f07cdaeb5ceeda0f9a522dd6685742
3,551
py
Python
waf/middleware/session.py
tickbh/luojiawaf_server
814793ff7989141caf38c3dedee95b4ecfacf8cc
[ "MulanPSL-1.0" ]
2
2022-03-14T12:07:53.000Z
2022-03-17T02:28:24.000Z
waf/middleware/session.py
tickbh/luojiawaf_server
814793ff7989141caf38c3dedee95b4ecfacf8cc
[ "MulanPSL-1.0" ]
null
null
null
waf/middleware/session.py
tickbh/luojiawaf_server
814793ff7989141caf38c3dedee95b4ecfacf8cc
[ "MulanPSL-1.0" ]
1
2022-03-29T09:33:16.000Z
2022-03-29T09:33:16.000Z
import time from importlib import import_module from django.conf import settings from django.contrib.sessions.backends.base import UpdateError from django.contrib.sessions.exceptions import SessionInterrupted from django.utils.cache import patch_vary_headers from django.utils.deprecation import MiddlewareMixin from dj...
46.116883
79
0.606871
79594bb2249b5f6e5b0f8817e0a4788cca2d0f21
1,557
py
Python
p1_navigation/model.py
Achronus/Udacity-DRL-Nanodegree-Projects
a732d1bd779eda5a9daead33f472eb316e61da5e
[ "MIT" ]
null
null
null
p1_navigation/model.py
Achronus/Udacity-DRL-Nanodegree-Projects
a732d1bd779eda5a9daead33f472eb316e61da5e
[ "MIT" ]
null
null
null
p1_navigation/model.py
Achronus/Udacity-DRL-Nanodegree-Projects
a732d1bd779eda5a9daead33f472eb316e61da5e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F #----------------------------------------------------------------------- # Class Title: QNetwork #----------------------------------------------------------------------- class QNetwork(nn.Module): """ Deep Q-Network architecture. """ #--------...
33.847826
80
0.472704
79594bf35df2bb8df48fd9ffd63328b1ea514ea2
14,555
py
Python
src/oci/core/models/instance_pool_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/instance_pool_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/instance_pool_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.820574
245
0.660598
79594bf9a7a740dd1bb80f774f8410eb6ef3b703
28,125
py
Python
rich/table.py
JettChenT/rich
bd98aafb68273847e01b32a38f11461e59f472e4
[ "MIT" ]
1
2021-02-08T12:28:22.000Z
2021-02-08T12:28:22.000Z
rich/table.py
JettChenT/rich
bd98aafb68273847e01b32a38f11461e59f472e4
[ "MIT" ]
null
null
null
rich/table.py
JettChenT/rich
bd98aafb68273847e01b32a38f11461e59f472e4
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import TYPE_CHECKING, Iterable, List, NamedTuple, Optional, Tuple, Union from . import box, errors from ._loop import loop_first_last, loop_last from ._ratio import ratio_distribute, ratio_reduce from .jupyter import JupyterMixin from .measure import Measurement fro...
38.109756
163
0.570738
79594c90b2827ce0a4b4839f675228d1ab03d3a2
582
py
Python
vedadet/ops/dcn/__init__.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
1,467
2020-03-24T01:38:24.000Z
2022-03-31T03:02:05.000Z
vedadet/ops/dcn/__init__.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
208
2020-03-26T16:24:23.000Z
2022-03-30T13:12:07.000Z
vedadet/ops/dcn/__init__.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
300
2020-03-24T03:55:02.000Z
2022-03-29T19:08:07.000Z
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv, ModulatedDeformConvPack, deform_conv, modulated_deform_conv) from .deform_pool import (DeformRoIPooling, DeformRoIPoolingPack, ModulatedDeformRoIPoolingPack, deform_ro...
44.769231
76
0.706186
79594d01fd1e15203d722f03169d7ffc40654904
24,469
py
Python
workitem.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
workitem.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
workitem.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
1
2021-11-01T07:58:18.000Z
2021-11-01T07:58:18.000Z
# Copyright (c) 2004-2006 gocept gmbh & co. kg # See also LICENSE.txt # $Id$ """Work item base classes""" import DateTime import persistent.list import zope.interface import zope.component from AccessControl import ClassSecurityInfo, getSecurityManager from Globals import InitializeClass import zope.app.annotation.int...
34.270308
83
0.643958
79594d501b816c0f8587fae598e48a2f2c16d5f7
11,492
py
Python
fairness_teaching/rl/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
fairness_teaching/rl/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
fairness_teaching/rl/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 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...
41.487365
126
0.656805
79594d524316aafdaf0ea282cb4f4ade8a1f00e5
16,078
py
Python
log_mito/model_67.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_67.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_67.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
87.857923
710
0.803458
79594d8a10d482d64808e4eb2abc83f0f2525898
5,119
py
Python
sdk/deviceupdate/azure-mgmt-deviceupdate/azure/mgmt/deviceupdate/aio/_device_update.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/deviceupdate/azure-mgmt-deviceupdate/azure/mgmt/deviceupdate/aio/_device_update.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/deviceupdate/azure-mgmt-deviceupdate/azure/mgmt/deviceupdate/aio/_device_update.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.221154
129
0.728658
79594df029a6d687d43add1ddd6eb0554cde7a7d
57,636
py
Python
tensorflow/python/ops/math_grad.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
9
2019-12-29T01:47:37.000Z
2021-12-21T13:47:41.000Z
tensorflow/python/ops/math_grad.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/math_grad.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
1
2019-06-18T05:39:22.000Z
2019-06-18T05:39:22.000Z
# Copyright 2015 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...
34.574685
81
0.68603
79594dfd3670022bf64fcb7f01a1ee9cb621460e
119
py
Python
autokey/data/Emacs/c_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
2
2021-05-29T18:11:26.000Z
2021-10-21T20:53:16.000Z
autokey/data/Emacs/c_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
autokey/data/Emacs/c_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
if store.get_global_value("ctrl-space"): keyboard.send_keys("<shift>+<left>") else: keyboard.send_key("<left>")
29.75
40
0.689076
79594e516d36f8ba24d7fc4323d1b167102b43a0
1,009
py
Python
setup.py
Secretions/pytest-docker-compose
7569131cb2fbbc91888835675a21f399f8b99530
[ "Apache-2.0" ]
null
null
null
setup.py
Secretions/pytest-docker-compose
7569131cb2fbbc91888835675a21f399f8b99530
[ "Apache-2.0" ]
null
null
null
setup.py
Secretions/pytest-docker-compose
7569131cb2fbbc91888835675a21f399f8b99530
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.rst", "r") as f: long_description = f.read() setup( name="pytest-docker-compose", description="Manages Docker containers during your integration tests", long_description=long_description, version="3.2.0", author="Roald Storm", a...
30.575758
74
0.6333
79594e63e8b3e80a9f61899d81caca139d04470e
35,128
py
Python
tensorbay/client/segment.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
null
null
null
tensorbay/client/segment.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
null
null
null
tensorbay/client/segment.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """The segment of remote dataset on TensorBay.""" import os import time from copy import deepcopy from itertools import zip_longest from typing import TYPE_CHECKING, Any, Dict, Generator, Iterable, Optional, Tuple, Union import filetype...
35.590679
100
0.602881
79594f7d99365467aff33d3b1dcba308dda8e337
5,358
py
Python
docs/conf.py
dipperwang5/molssi
d563c0e7508bf97aaf1dc024c647af953e232349
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
dipperwang5/molssi
d563c0e7508bf97aaf1dc024c647af953e232349
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
dipperwang5/molssi
d563c0e7508bf97aaf1dc024c647af953e232349
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
30.617143
142
0.658455
79594fc5e5280cbd58c23a398173c7c4673a8a84
885
py
Python
human_eval/5918fa1d-8ddd-4a93-8a62-6a434c0078af.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
3
2021-07-29T23:40:15.000Z
2021-08-12T10:18:09.000Z
human_eval/5918fa1d-8ddd-4a93-8a62-6a434c0078af.py
openai/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:15.000Z
2021-09-19T06:44:15.000Z
human_eval/5918fa1d-8ddd-4a93-8a62-6a434c0078af.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:03.000Z
2021-09-19T06:44:03.000Z
ENTRY_POINT = 'generate_integers' #[PROMPT] def generate_integers(a, b): """ Given two positive integers a and b, return the even digits between a and b, in ascending order. For example: generate_integers(2, 8) => [2, 4, 6, 8] generate_integers(8, 2) => [2, 4, 6, 8] generate_integers(10, 1...
28.548387
80
0.59774
7959521bc1901c942c15594321f5e10a2971485f
2,186
py
Python
tests/test_mixins.py
star302b/dj-stripe
1d26394414515c4f3ada7132b0eae8f793a0badd
[ "MIT" ]
null
null
null
tests/test_mixins.py
star302b/dj-stripe
1d26394414515c4f3ada7132b0eae8f793a0badd
[ "MIT" ]
null
null
null
tests/test_mixins.py
star302b/dj-stripe
1d26394414515c4f3ada7132b0eae8f793a0badd
[ "MIT" ]
null
null
null
""" .. module:: dj-stripe.tests.test_mixins :synopsis: dj-stripe Mixin Tests. .. moduleauthor:: Alex Kavanaugh (@kavdev) """ from copy import deepcopy from django.contrib.auth import get_user_model from django.test.client import RequestFactory from django.test.testcases import TestCase from mock import patch fr...
32.626866
114
0.712717
795952457934fef219874e07eb8d18d9e54bf29a
40,818
py
Python
experimental/autoscale/waf/via-lb/existing-stack/payg/f5-payg-autoscale-bigip-waf.py
memes/f5-google-gdm-templates
177dee253607cfe9cc29ab2d06ed2598aeb85e3a
[ "Apache-2.0" ]
33
2017-05-17T06:38:28.000Z
2021-10-10T20:38:54.000Z
experimental/autoscale/waf/via-lb/existing-stack/payg/f5-payg-autoscale-bigip-waf.py
F5Networks/f5-google-gdm-templates
a19825b975b7f6f98edcc54622a4d6f2cf1cfa75
[ "Apache-2.0" ]
71
2018-05-18T16:43:29.000Z
2022-03-30T20:05:22.000Z
experimental/autoscale/waf/via-lb/existing-stack/payg/f5-payg-autoscale-bigip-waf.py
F5Networks/f5-google-gdm-templates
a19825b975b7f6f98edcc54622a4d6f2cf1cfa75
[ "Apache-2.0" ]
52
2017-09-15T23:06:37.000Z
2022-03-09T08:41:06.000Z
# Copyright 2021 F5 Networks All rights reserved. # # Version 3.14.0 """Creates BIG-IP""" COMPUTE_URL_BASE = 'https://www.googleapis.com/compute/v1/' def Storage(context,storageName): # Build storage container storage = { 'name': storageName, 'type': 'storage.v1.bucket', 'properties': ...
93.405034
10,149
0.601009
795952a45e4f03c3ab795841c75f987107ff5f65
6,794
py
Python
dream_evaluator.py
danvk/concordance
9e30df2a27b3344256a53737f5ab92e7b5ade34f
[ "Apache-2.0" ]
2
2015-02-01T23:58:56.000Z
2015-04-22T00:34:45.000Z
dream_evaluator.py
danvk/concordance
9e30df2a27b3344256a53737f5ab92e7b5ade34f
[ "Apache-2.0" ]
null
null
null
dream_evaluator.py
danvk/concordance
9e30df2a27b3344256a53737f5ab92e7b5ade34f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys, os import vcf import argparse ''' Submission evaluation code for TCGA/ICGC/DREAM SMC Adam Ewing, ewingad@soe.ucsc.edu Requires PyVCF (https://github.com/jamescasbon/PyVCF) ''' def match(subrec, trurec, vtype='SNV'): assert vtype in ('SNV', 'SV', 'INDEL') if vtype == 'SNV'...
36.724324
140
0.621578
795952c233339aa0ee9567310247fd9a0a0315ec
8,272
py
Python
release.py
mitodl/release-script
615fbabac46a7a3c6ffb62a1cefe20c6df6dbd7b
[ "BSD-3-Clause" ]
15
2017-02-20T22:07:23.000Z
2020-10-10T15:39:46.000Z
release.py
mitodl/release-script
615fbabac46a7a3c6ffb62a1cefe20c6df6dbd7b
[ "BSD-3-Clause" ]
311
2016-02-11T17:09:33.000Z
2022-01-20T19:07:54.000Z
release.py
mitodl/release-script
615fbabac46a7a3c6ffb62a1cefe20c6df6dbd7b
[ "BSD-3-Clause" ]
7
2017-03-20T03:52:46.000Z
2020-05-16T05:52:16.000Z
#!/usr/bin/env python3 """Release script for ODL projects""" import re import os from subprocess import CalledProcessError from pkg_resources import parse_version from async_subprocess import ( call, check_call, check_output, ) from constants import ( GIT_RELEASE_NOTES_PATH, SCRIPT_DIR, YARN_P...
32.3125
94
0.643496
795952d9f30478163738e53ed45314d679cd3f28
7,059
py
Python
Python3/Tornado/apps/ExchangeWalletApi/ExWallet/ltc/proxy.py
youngqqcn/QBlockChainNotes
85122049024dc5555705bf016312491a51966621
[ "MIT" ]
24
2018-11-01T03:36:43.000Z
2022-03-28T08:20:30.000Z
Python3/Tornado/apps/ExchangeWalletApi/ExWallet/ltc/proxy.py
songning4/QBlockChainNotes
d65ede073f5a20f728f41cc6850409693820cdb1
[ "MIT" ]
57
2019-12-04T08:26:47.000Z
2022-03-08T07:35:15.000Z
Python3/Tornado/apps/ExchangeWalletApi/ExWallet/ltc/proxy.py
youngqqcn/QBlockChainNotes
85122049024dc5555705bf016312491a51966621
[ "MIT" ]
11
2019-01-04T08:41:57.000Z
2022-03-16T03:51:36.000Z
try: import http.client as httplib except ImportError: import httplib import base64 import decimal import json try: import urllib.parse as urlparse except ImportError: import urlparse USER_AGENT = "AuthServiceProxy/0.1" HTTP_TIMEOUT = 20 class JSONRPCException(Exception): def __init__(self, rpc_e...
37.152632
141
0.557728
7959536ceb80b16b7ee06bd2ce349bf974c0a49b
6,480
py
Python
tests/test_settings.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-23T19:18:45.000Z
2020-05-23T19:18:45.000Z
tests/test_settings.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-09T08:09:20.000Z
2021-05-09T08:09:20.000Z
tests/test_settings.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Copyright 2019-2020 Lukas Schmelzeisen # # 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...
28.8
86
0.635494
795953aa2cca20527a41a702d9ac496f9e4c0139
2,785
py
Python
scripts/08_plot_ice.py
sellberg/SACLA2018A8063
26a95f1b1d73fe0f7243787cd70fab81da98939b
[ "BSD-2-Clause" ]
null
null
null
scripts/08_plot_ice.py
sellberg/SACLA2018A8063
26a95f1b1d73fe0f7243787cd70fab81da98939b
[ "BSD-2-Clause" ]
null
null
null
scripts/08_plot_ice.py
sellberg/SACLA2018A8063
26a95f1b1d73fe0f7243787cd70fab81da98939b
[ "BSD-2-Clause" ]
null
null
null
#!/home/software/SACLA_tool/bin/python2.7 import numpy as np import h5py import matplotlib import matplotlib.pyplot as plt import argparse import time #import pandas as pd import sys from argparse import ArgumentParser parser = ArgumentParser() parser = ArgumentParser(description="Plot intense ice shots") parser....
33.963415
129
0.660323
7959547dccc7d8d5d13d62571ce6b55f93abf542
61,857
py
Python
econml/ortho_forest.py
econwang/EconML
6f89c2145f9e334ae66e1e34facfceee9517a3c7
[ "MIT" ]
1
2021-08-24T14:22:45.000Z
2021-08-24T14:22:45.000Z
econml/ortho_forest.py
FoundryAI/EconML
4554706bd9f803985e34399b7fc65035598ce195
[ "MIT" ]
null
null
null
econml/ortho_forest.py
FoundryAI/EconML
4554706bd9f803985e34399b7fc65035598ce195
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Orthogonal Random Forest. Orthogonal Random Forest (ORF) is an algorithm for heterogenous treatment effect estimation. Orthogonal Random Forest combines orthogonalization, a technique that effectively removes the confound...
48.325781
118
0.625572
795954ab33a4583428e9dca27bb6d4f41294f51e
1,608
py
Python
dataviva/utils/title_format.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
126
2015-03-24T12:30:43.000Z
2022-01-06T03:29:54.000Z
dataviva/utils/title_format.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
694
2015-01-14T11:55:28.000Z
2021-02-08T20:23:11.000Z
dataviva/utils/title_format.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
52
2015-06-19T01:54:56.000Z
2019-09-23T13:10:46.000Z
import re from flask import g from flask.ext.babel import gettext from .title_case import title_case def title_format(title, attr): if not isinstance(attr, (list, tuple)): attr = [attr] joiner = " {} ".format(gettext("and")) if attr[0].id == "all" or attr[0].id == "sabra": type = "bra" ...
32.816327
162
0.567786
7959555d4a2acd8a20805a5a499ff8009511567e
8,957
py
Python
peas/server/start_service.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
2
2021-08-16T17:45:07.000Z
2021-09-18T19:00:58.000Z
peas/server/start_service.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
4
2021-09-26T15:50:20.000Z
2021-10-06T06:18:51.000Z
peas/server/start_service.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
3
2021-09-29T19:08:41.000Z
2022-03-15T08:47:28.000Z
import asyncio import os import logging import logging.config import signal from sys import platform from typing import Any, Callable, List, Optional, Tuple from peas.daemon.server import singleton, service_launch_lock_path from peas.server.ssl_context import peas_ssl_ca_paths, private_ssl_ca_paths try: import uv...
34.988281
115
0.634364
7959562fdf884a0d4f23f4a4fb24ef0ff331d948
2,026
py
Python
doe.py
Shom770/doe
a71fc491b89ccdd4b981eaca953ecdddbba5e3f9
[ "MIT" ]
null
null
null
doe.py
Shom770/doe
a71fc491b89ccdd4b981eaca953ecdddbba5e3f9
[ "MIT" ]
null
null
null
doe.py
Shom770/doe
a71fc491b89ccdd4b981eaca953ecdddbba5e3f9
[ "MIT" ]
null
null
null
from sys import exit import click from pynput.keyboard import Key, Listener from rich.layout import Layout from rich.live import Live from rich.panel import Panel from lexing.lexer import Lexer class HandleInputs: def __init__(self, tokens): self._tokens = tokens self.token_pos = 0 self...
28.138889
85
0.601185
795957de5cb16f947b9d6fcaa08f608a587acf86
510
py
Python
users/migrations/0005_auto_20200622_1633.py
jdpeinado/BodyMeasureControlWeb
38a278d2b580eba3044ddff74218961b8abd30e0
[ "MIT" ]
null
null
null
users/migrations/0005_auto_20200622_1633.py
jdpeinado/BodyMeasureControlWeb
38a278d2b580eba3044ddff74218961b8abd30e0
[ "MIT" ]
5
2021-03-30T13:39:51.000Z
2021-09-08T02:09:24.000Z
users/migrations/0005_auto_20200622_1633.py
jdpeinado/BodyMeasureControlWeb
38a278d2b580eba3044ddff74218961b8abd30e0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 16:33 from django.db import migrations import django_measurement.models import measurement.measures.distance class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20200608_0008'), ] operations = [ migrations.AlterField( ...
24.285714
113
0.678431
79595850e184508a3938154f97c588d9aa809d1e
1,190
py
Python
fabfile/utils.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
15
2015-02-21T13:56:25.000Z
2019-08-14T21:19:09.000Z
fabfile/utils.py
nprapps/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
444
2015-01-06T16:54:13.000Z
2021-09-22T11:46:33.000Z
fabfile/utils.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
13
2015-01-05T14:33:15.000Z
2021-02-23T10:45:32.000Z
#!/usr/bin/env python """ Utilities used by multiple commands. """ from glob import glob import re import boto from boto.s3.connection import OrdinaryCallingFormat from fabric.api import local, prompt from fabric.state import env import app_config def confirm(message): """ Verify a users intentions. "...
20.877193
68
0.64958
795959676427baa91bd06d418f949d57e3d7eecc
6,295
py
Python
src/auto_cluster.py
DataRescueBoulder/Nasa
5029ef95e4ea6132a00ca9f5731197fdc1090d27
[ "RSA-MD" ]
1
2017-07-19T15:37:56.000Z
2017-07-19T15:37:56.000Z
src/auto_cluster.py
DataRescueBoulder/Nasa
5029ef95e4ea6132a00ca9f5731197fdc1090d27
[ "RSA-MD" ]
1
2017-05-19T16:58:03.000Z
2020-01-29T17:34:49.000Z
src/auto_cluster.py
DataRescueBoulder/Nasa
5029ef95e4ea6132a00ca9f5731197fdc1090d27
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """auto_parse scientific fixed-width blocks of data""" import sys import os import codecs import re import json import logging import collections import numpy as np import matplotlib.pyplot as plt def chunkstring(string, length): "A generator which return the string, split up into fixed-widt...
33.484043
209
0.637649
79595a27a49425fcbcd467e4b8b411726ef0c29b
3,939
py
Python
jasmin/protocols/cli/test/test_cmdprotocol.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
2
2020-05-14T18:27:01.000Z
2021-03-21T17:26:19.000Z
jasmin/protocols/cli/test/test_cmdprotocol.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
null
null
null
jasmin/protocols/cli/test/test_cmdprotocol.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
1
2020-11-24T06:48:22.000Z
2020-11-24T06:48:22.000Z
from jasmin.protocols.cli.factory import CmdFactory from twisted.trial import unittest from twisted.test import proto_helpers from twisted.internet import reactor, defer class ProtocolTestCases(unittest.TestCase): def getBuffer(self, clear=False, split=True): b = self.tr.value() if clear: ...
39.39
116
0.551917
79595a4761db1839926037fa8cf8bc2c92aebd9e
4,423
py
Python
evosoro/tools/selection.py
leguiart/MSc_Thesis
22ffc73c75d814856850f26c4586d90896b74cf3
[ "MIT" ]
null
null
null
evosoro/tools/selection.py
leguiart/MSc_Thesis
22ffc73c75d814856850f26c4586d90896b74cf3
[ "MIT" ]
null
null
null
evosoro/tools/selection.py
leguiart/MSc_Thesis
22ffc73c75d814856850f26c4586d90896b74cf3
[ "MIT" ]
null
null
null
import random import math def pareto_selection(population): """Return a list of selected individuals from the population. All individuals in the population are ranked by their level, i.e. the number of solutions they are dominated by. Individuals are added to a list based on their ranking, best to worst,...
37.168067
120
0.642098
79595a8e619a31cad75dafa4b4b8e09948b92fbb
7,093
py
Python
sample_op.py
nanato12/pylinebot
20cdc177d9ef37b86d7ae85b8661d95b01c81bdf
[ "Apache-2.0" ]
13
2020-05-22T03:03:00.000Z
2022-03-30T03:13:52.000Z
sample_op.py
nanato12/pylinebot
20cdc177d9ef37b86d7ae85b8661d95b01c81bdf
[ "Apache-2.0" ]
10
2020-05-18T14:54:20.000Z
2020-11-20T03:32:22.000Z
sample_op.py
nanato12/pylinebot
20cdc177d9ef37b86d7ae85b8661d95b01c81bdf
[ "Apache-2.0" ]
3
2020-06-07T05:02:12.000Z
2020-06-24T07:43:13.000Z
import json from typing import Any, List from pylinebot import LINE from pylinebot.structs.message import ( AudioMessage, FlexMessage, ImageMessage, LocationMessage, StickerMessage, TextMessage, VideoMessage, ) from pylinebot.types.event import Event from pylinebot.types.message import Cont...
36.374359
111
0.617369
79595acb32b344334185e9dea11afa3a9370686a
4,699
py
Python
fabfile.py
xlvector/yoyo-migrations
adcdffa5fdcd5d470be87431b24059f6e5cadcc6
[ "BSD-3-Clause" ]
12
2016-08-14T02:52:21.000Z
2021-01-31T11:21:03.000Z
fabfile.py
xlvector/yoyo-migrations
adcdffa5fdcd5d470be87431b24059f6e5cadcc6
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
xlvector/yoyo-migrations
adcdffa5fdcd5d470be87431b24059f6e5cadcc6
[ "BSD-3-Clause" ]
8
2015-01-20T05:22:12.000Z
2021-12-06T05:48:04.000Z
import re from shutil import rmtree from contextlib import contextmanager from fabric.api import env, lcd, local, prompt, task from tempfile import mkdtemp env.shell = '/bin/sh -c' #: Name of python module provided by this package env.module_name = 'yoyo' #: PyPI registered name env.package_name = 'yoyo-migrations' ...
27.005747
79
0.611407
79595cd71b068e067b15bc2263ba82d47b558a82
4,069
py
Python
scripts/blaster.py
ronit-arora/waksman-clone-analysis
2003d8ad51c375788879123352096fac6ac9ed0f
[ "MIT" ]
null
null
null
scripts/blaster.py
ronit-arora/waksman-clone-analysis
2003d8ad51c375788879123352096fac6ac9ed0f
[ "MIT" ]
null
null
null
scripts/blaster.py
ronit-arora/waksman-clone-analysis
2003d8ad51c375788879123352096fac6ac9ed0f
[ "MIT" ]
null
null
null
from lxml import html import requests import re import zipfile import io import json import datawait # My personal (Ronit Arora) api key - this may change over time if I replaced it, which could affect the script. api_key = '5319163d6a6ab2543a166a4b93e5116c1f08' # Global variables base_url = 'https://blas...
25.917197
119
0.676825
79595d973d1c808130e228f82a0b0e2c03f721e6
10,053
py
Python
sql-scripts/binary.py
JithinPavithran/tools
62225671aaccd48c14b39f94bf94f0e70af60319
[ "MIT" ]
null
null
null
sql-scripts/binary.py
JithinPavithran/tools
62225671aaccd48c14b39f94bf94f0e70af60319
[ "MIT" ]
null
null
null
sql-scripts/binary.py
JithinPavithran/tools
62225671aaccd48c14b39f94bf94f0e70af60319
[ "MIT" ]
null
null
null
""" A script to do TIME BASED SQLi. -- Uses BINARY SEARCH to speed up the process. -- Can be used against vulnerable parameters in a POST request body. Note: If the wait time for success is too high, consider using straight.py straight.py does linear search. Linear search only require one truth response. He...
37.233333
132
0.587486
79595ebf65fe8ff4e0d7581e0e00e84edf164c6e
1,281
py
Python
mqtt_panel/web/widget/value.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
mqtt_panel/web/widget/value.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
mqtt_panel/web/widget/value.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
import logging from mqtt_panel.web.widget.widget import Widget class Value(Widget): widget_type = 'value' def __init__(self, *args, **kwargs): super(Value, self).__init__(*args, **kwargs) def open(self): self._mqtt.subscribe(self._c['subscribe'], self._on_mqtt) def _on_mqtt(self, pay...
25.117647
77
0.521468
79596032c59fac17c00e20b29265fa6dbb0d3754
30,587
py
Python
cinder/volume/drivers/hitachi/hbsd_common.py
Boye-Z/cinder
2a959e6645379842880373dd9aad4d5ff3b6fd02
[ "Apache-2.0" ]
1
2021-07-25T18:11:41.000Z
2021-07-25T18:11:41.000Z
cinder/volume/drivers/hitachi/hbsd_common.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hitachi/hbsd_common.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020, Hitachi, 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 law or...
39.113811
79
0.607088
795960b93129fe4dcb4b3b484e74caa8a56f7ca8
3,105
py
Python
ci/long_running_tests/workloads/actor_deaths.py
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
2
2019-06-17T12:38:24.000Z
2020-11-11T07:52:26.000Z
ci/long_running_tests/workloads/actor_deaths.py
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
3
2018-08-15T19:19:25.000Z
2021-06-30T01:54:46.000Z
ci/long_running_tests/workloads/actor_deaths.py
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
2
2017-10-31T23:20:07.000Z
2019-11-13T20:16:03.000Z
# This workload tests repeatedly killing actors and submitting tasks to them. from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import sys import time import ray from ray.cluster_utils import Cluster num_redis_shards = 1 redis_max_memory ...
28.75
79
0.668599
795960c5d61bc337c34d7db73946ec971cc55b02
881
py
Python
Curso de Python 3 - Mundo 1 - Fundamentos/#058.py
bitwoman/curso-em-video-python
bb097eb925f271c34e97e20902e6b18cca62c275
[ "MIT" ]
null
null
null
Curso de Python 3 - Mundo 1 - Fundamentos/#058.py
bitwoman/curso-em-video-python
bb097eb925f271c34e97e20902e6b18cca62c275
[ "MIT" ]
null
null
null
Curso de Python 3 - Mundo 1 - Fundamentos/#058.py
bitwoman/curso-em-video-python
bb097eb925f271c34e97e20902e6b18cca62c275
[ "MIT" ]
null
null
null
# Exercício Python 058: Melhore o jogo do DESAFIO 028 onde o computador vai "pensar" em um número entre 0 e 10. # Só que agora o jogador vai tentar adivinhar até acertar, mostrando no final quantos palpites foram necessários para vencer. from random import randint from time import sleep attempts = 0 computer = randin...
28.419355
125
0.692395