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
682d918e5754cd3360545570fca72b7de87ed1cd
4,646
py
Python
bert.py
yifanhunter/BERT-E2E-ABSA
ea6b0ee10891df03956012774671077db00dcc59
[ "Apache-2.0" ]
null
null
null
bert.py
yifanhunter/BERT-E2E-ABSA
ea6b0ee10891df03956012774671077db00dcc59
[ "Apache-2.0" ]
1
2020-11-19T12:18:06.000Z
2020-11-19T12:18:06.000Z
bert.py
yifanhunter/BERT-E2E-ABSA
ea6b0ee10891df03956012774671077db00dcc59
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google AI Language, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
43.420561
119
0.69393
77db169a17ce5a997f9eae677efd74828a39a19d
269
py
Python
Curso_em_Video_Exercicios/ex086.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
Curso_em_Video_Exercicios/ex086.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
Curso_em_Video_Exercicios/ex086.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
matriz = [[], [], []] pares = soma_3 = 0 for i in range(3): for j in range(3): matriz[i].append(int(input(f'Insira o valor da coordenada ({i}, {j}): '))) for i in range(3): for j in range(3): print(f'[ {matriz[i][j]:^5}]', end=' ') print()
24.454545
82
0.509294
2484f6f58e821979812dd117ffaacbbbb03caa09
1,387
py
Python
team-violet-code/storage-provider/src/main.py
shaunkane21/omh-dsu-ri
c00e1bccaa29c4efafbb270e5660d062f591c98b
[ "Apache-2.0" ]
null
null
null
team-violet-code/storage-provider/src/main.py
shaunkane21/omh-dsu-ri
c00e1bccaa29c4efafbb270e5660d062f591c98b
[ "Apache-2.0" ]
null
null
null
team-violet-code/storage-provider/src/main.py
shaunkane21/omh-dsu-ri
c00e1bccaa29c4efafbb270e5660d062f591c98b
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_pymongo import PyMongo from flask_restx import Api, Resource from flask_cors import CORS from bson import ObjectId import json import datetime import os import logging import sys class JSONEncoder(json.JSONEncoder): ''' extend json-encoder class''' def default(self, o): ...
25.218182
103
0.710887
e0c2e47d8d1640511d80d638c51a181e87bc7f78
12,201
py
Python
openprocurement/tender/esco/tests/auction.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/esco/tests/auction.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/esco/tests/auction.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from copy import deepcopy from openprocurement.api.tests.base import snitch from openprocurement.tender.belowthreshold.tests.auction import ( TenderAuctionResourceTestMixin, TenderLotAuctionResourceTestMixin, TenderMultipleLotAuctionResourceTestMixin ) from openpro...
44.046931
136
0.668716
f1d565ae2a6fdc1d676ed32d10abd155e43a1a8c
13,750
py
Python
tests/test_prokaryote_schema.py
KarrLab/wc_kb
5eed01810c9f7ccb44256307cdbdfc57663fcb98
[ "MIT" ]
3
2018-12-24T16:20:05.000Z
2020-12-22T16:48:18.000Z
tests/test_prokaryote_schema.py
KarrLab/wc_kb
5eed01810c9f7ccb44256307cdbdfc57663fcb98
[ "MIT" ]
31
2018-03-23T06:51:44.000Z
2019-09-29T01:11:31.000Z
tests/test_prokaryote_schema.py
KarrLab/wc_kb
5eed01810c9f7ccb44256307cdbdfc57663fcb98
[ "MIT" ]
5
2018-12-15T00:52:14.000Z
2020-04-29T14:15:08.000Z
""" Tests of the knowledge base schema for prokaryotes :Author: Balazs Szigeti <balazs.szigeti@mssm.edu> :Author: Jonathan Karr <jonrkarr@gmail.com> :Author: Bilal Shaikh <bilal.shaikh@columbia.edu> :Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu> :Author: Yin Hoon Chew <yinhoon.chew@mssm.edu> :Date: 2018-02-07 :Co...
43.512658
155
0.645818
b23bc9fefd6e31495b214566b86dc4b9dc3b4bfd
2,008
py
Python
desktop/main.py
Embedded-AMS/EmbeddedProto_Example_MSP430_SD_Logger
f20df5d45759e5a118790821508063a698f47f34
[ "CECILL-B" ]
1
2021-11-06T23:37:43.000Z
2021-11-06T23:37:43.000Z
desktop/main.py
Embedded-AMS/EmbeddedProto_Example_MSP430_SD_Logger
f20df5d45759e5a118790821508063a698f47f34
[ "CECILL-B" ]
null
null
null
desktop/main.py
Embedded-AMS/EmbeddedProto_Example_MSP430_SD_Logger
f20df5d45759e5a118790821508063a698f47f34
[ "CECILL-B" ]
null
null
null
# # Copyright (C) 2020-2021 Embedded AMS B.V. - All Rights Reserved # # This file is part of Embedded Proto. # # Embedded Proto is open source software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, version 3 of the license. ...
30.892308
105
0.63994
80ff75dc2c838958ab76abdb07e6ece549cb3896
9,819
py
Python
docs/conf.py
4383/Botanick
793908f8e2ea72a8fe9c5bf47a4482359564a8c0
[ "MIT" ]
null
null
null
docs/conf.py
4383/Botanick
793908f8e2ea72a8fe9c5bf47a4482359564a8c0
[ "MIT" ]
3
2016-11-11T15:05:07.000Z
2021-11-15T17:46:52.000Z
docs/conf.py
4383/Botanick
793908f8e2ea72a8fe9c5bf47a4482359564a8c0
[ "MIT" ]
1
2016-11-10T18:31:47.000Z
2016-11-10T18:31:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Botanick documentation build configuration file, created by # sphinx-quickstart on Thu Nov 10 17:24:38 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
28.879412
80
0.702923
3c9b727f347ad09f6f5aeeb9ca0de8bb860f26ee
11,917
py
Python
huntserver/migrations/0021_auto_20180402_2224.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
18
2017-03-07T19:53:03.000Z
2022-02-24T04:58:47.000Z
huntserver/migrations/0021_auto_20180402_2224.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
161
2016-11-14T00:04:42.000Z
2021-06-10T17:25:17.000Z
huntserver/migrations/0021_auto_20180402_2224.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
22
2016-09-27T18:00:10.000Z
2022-03-13T17:51:44.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('huntserver', '0020_auto_20171008_2203'), ] operations = [ migrations.AlterField( ...
45.659004
245
0.611228
ea0c100dba080fe3094c26f8116fc6e63891395e
948
py
Python
pages/themes/beginners/parallelProgramming/examples/threading/countdown_in_a_file.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/parallelProgramming/examples/threading/countdown_in_a_file.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/parallelProgramming/examples/threading/countdown_in_a_file.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
import threading import time def countdown(n, ouptut_file): while n > 0: n -= 1 def countdown_in_file(n, ouptut_file): with open(ouptut_file, "a") as f: f.write(threadID+"\n") while n > 0: n -= 1 f.write("{}".format(n)) ouptut_file = "countdown.txt" count = 100_000_000 ###############...
23.7
66
0.544304
de81cc3135f0c34ca644eb9cc1a4a1f65f6c8589
1,837
py
Python
config.py
awaemmanuel/2020-S109A
7a141df45ea5bc224dc05a7e86747a08dc18054c
[ "MIT" ]
25
2020-06-22T16:15:04.000Z
2021-01-01T06:13:04.000Z
config.py
awaemmanuel/2020-S109A
7a141df45ea5bc224dc05a7e86747a08dc18054c
[ "MIT" ]
null
null
null
config.py
awaemmanuel/2020-S109A
7a141df45ea5bc224dc05a7e86747a08dc18054c
[ "MIT" ]
30
2020-06-21T19:20:56.000Z
2021-08-08T00:46:31.000Z
COURSE_NAME = 'S109A' AUTHOR = 'Kevin Rader' SITEURL = 'https://harvard-iacs.github.io/2020-S109A' GITHUB = 'https://github.com/Harvard-IACS/2020-S109A' COLOR = '#8996A0' MENUITEMS = [ ('Syllabus', 'pages/syllabus.html'), ('Calendars', 'pages/calendars.html'), ('Schedule', 'pages/schedule.html'), (...
19.336842
117
0.685357
3afdc733c827a659288e651d0b0ba3bf2d5a0b41
11,375
py
Python
third_party/ros_aarch64/lib/python2.7/dist-packages/trajectory_msgs/msg/_MultiDOFJointTrajectoryPoint.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
2
2018-01-29T03:10:39.000Z
2020-12-08T09:08:41.000Z
third_party/ros_x86_64/lib/python2.7/dist-packages/trajectory_msgs/msg/_MultiDOFJointTrajectoryPoint.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
null
null
null
third_party/ros_x86_64/lib/python2.7/dist-packages/trajectory_msgs/msg/_MultiDOFJointTrajectoryPoint.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
3
2018-01-29T12:22:56.000Z
2020-12-08T09:08:46.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from trajectory_msgs/MultiDOFJointTrajectoryPoint.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import genpy class MultiDOFJointTrajectoryPoint...
34.159159
145
0.607736
bc87fde94675823b1094fb030af95101519345af
4,610
py
Python
tensorflow/lite/testing/generate_examples.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/lite/testing/generate_examples.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/lite/testing/generate_examples.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.897059
80
0.726464
4797555bc2e4165be031cff29a2ed4e8d81858a3
6,658
py
Python
ros-spine-control/src/opencv_work/scripts/backups/2019-01-21/opencv_object_tracker_backup_2018_11.28.py
BerkeleyExpertSystemTechnologiesLab/2d-spine-control-hardware
3fc2cdaeabf3b8ab2596e22bbd1912d84e9f062b
[ "Apache-2.0" ]
1
2021-04-01T22:33:40.000Z
2021-04-01T22:33:40.000Z
ros-spine-control/src/opencv_work/scripts/backups/2019-01-21/opencv_object_tracker_backup_2018_11.28.py
GusSosa/ROS_navMod
719cb233f7d386a60f63c4ed9fd1c8394f1b0b97
[ "Apache-2.0" ]
null
null
null
ros-spine-control/src/opencv_work/scripts/backups/2019-01-21/opencv_object_tracker_backup_2018_11.28.py
GusSosa/ROS_navMod
719cb233f7d386a60f63c4ed9fd1c8394f1b0b97
[ "Apache-2.0" ]
2
2020-03-21T20:24:37.000Z
2022-01-28T08:27:55.000Z
# Ubuntu 18.04: How to install OpenCVShell # $ cd ~ # $ workon cv # $ python # Python 3.6.5 (default, Apr 1 2018, 05:46:30) # [GCC 7.3.0] on linux # Type "help", "copyright", "credits" or "license" for more information. # >>> import cv2 # >>> cv2.__version__ # '3.4.1' # >>> quit() # import the necessary packages from...
33.457286
78
0.572544
8f6cbcfd7963abee0436f9d1d7460060756ba3c6
16,514
py
Python
msl/equipment/resources/thorlabs/kinesis/filter_flipper.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/equipment/resources/thorlabs/kinesis/filter_flipper.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/equipment/resources/thorlabs/kinesis/filter_flipper.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
""" This module provides all the functionality required to control a Filter Flipper (MFF101, MFF102). """ from ctypes import byref, c_int64 from msl.equipment.resources import register from msl.equipment.resources.utils import WORD, DWORD from msl.equipment.resources.thorlabs.kinesis.motion_control import MotionContr...
33.227364
111
0.600763
a999594bb14f28f0db768a45cd8080dbcd65d34c
308
py
Python
python__OOP/01.defining_classes_lab/01.rhombus.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
1
2020-07-14T12:32:47.000Z
2020-07-14T12:32:47.000Z
python__OOP/01.defining_classes_lab/01.rhombus.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
null
null
null
python__OOP/01.defining_classes_lab/01.rhombus.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
null
null
null
def generate_line(index, n): indent = ' ' * (n - index - 1) stars = "* " * (index + 1) return f"{indent}{stars}" def print_rhombus(n): for i in range(n): print(generate_line(i, n)) for i in range(n - 2, -1, -1): print(generate_line(i, n)) print_rhombus(int(input()))
19.25
34
0.548701
0c074ce20d2d3c1bb021e0209c262872b7eeeca4
95
py
Python
mysettings/apps.py
ProjectFFF/FFF
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
[ "BSD-2-Clause" ]
6
2020-09-02T18:48:28.000Z
2022-02-06T11:13:06.000Z
mysettings/apps.py
ProjectFFF/FFF
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
[ "BSD-2-Clause" ]
23
2020-09-04T08:57:28.000Z
2020-10-25T07:03:47.000Z
mysettings/apps.py
ProjectFFF/FFF
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig class MysettingsConfig(AppConfig): name = 'mysettings'
15.833333
34
0.768421
9600f30d5ac644f61b1328af23712d7f9dc68d1b
497
py
Python
insert_farmacia.py
VictorCastao/BD-Trabalhos
83fe69ee9cd9fe8c258e9c24faaa3b79353fd1b4
[ "MIT" ]
null
null
null
insert_farmacia.py
VictorCastao/BD-Trabalhos
83fe69ee9cd9fe8c258e9c24faaa3b79353fd1b4
[ "MIT" ]
null
null
null
insert_farmacia.py
VictorCastao/BD-Trabalhos
83fe69ee9cd9fe8c258e9c24faaa3b79353fd1b4
[ "MIT" ]
null
null
null
import csv import psycopg2 conn = psycopg2.connect(database="base_farmacia", user="postgres", password="banco", host="localhost",port=5432) cur = conn.cursor() with open('/home/vgcc287/Downloads/remedio.csv', 'r') as csv_file: csv_reader = csv.reader(csv_file) for line in csv_reader: x=line x[0]...
33.133333
112
0.617706
2464baaa60953b1f88448271e908ec65eac8bfa9
18,074
py
Python
parlai/agents/transformer/polyencoder.py
omry/ParlAI
61703c7b76dce45bc7f7282b20a35be64c6a0880
[ "MIT" ]
1
2019-11-08T18:38:42.000Z
2019-11-08T18:38:42.000Z
parlai/agents/transformer/polyencoder.py
omry/ParlAI
61703c7b76dce45bc7f7282b20a35be64c6a0880
[ "MIT" ]
3
2021-05-08T09:44:24.000Z
2021-07-21T14:03:28.000Z
parlai/agents/transformer/polyencoder.py
omry/ParlAI
61703c7b76dce45bc7f7282b20a35be64c6a0880
[ "MIT" ]
1
2020-04-16T15:56:29.000Z
2020-04-16T15:56:29.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # hack to make sure -m transformer/generator works as expected """Poly-encoder Agent.""" from .modules import TransformerEncoder from .modules i...
39.462882
88
0.599535
f8ca258b1611d5caad9072a9a870950f37e5b9f4
2,304
py
Python
src/poliastro/core/thrust/change_ecc_inc.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
8
2015-05-09T17:21:57.000Z
2020-01-28T06:59:18.000Z
src/poliastro/core/thrust/change_ecc_inc.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
4
2015-12-29T13:08:01.000Z
2019-12-27T12:58:04.000Z
src/poliastro/core/thrust/change_ecc_inc.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
1
2016-10-05T08:34:44.000Z
2016-10-05T08:34:44.000Z
"""Simultaneous eccentricity and inclination changes. References ---------- * Pollard, J. E. "Simplified Analysis of Low-Thrust Orbital Maneuvers", 2000. """ import numpy as np from numba import njit as jit from numpy import cross from poliastro._math.linalg import norm from poliastro.core.elements import circular_v...
27.759036
87
0.575087
c5d53764bfea63f23c517c15e32974842820adb1
310
py
Python
London_COVID_maps/_nbdev.py
lukemshepherd/London_Covid_Maps
44ed9d2ff613dbf00e1d0ac007f67df82e86899e
[ "Apache-2.0" ]
null
null
null
London_COVID_maps/_nbdev.py
lukemshepherd/London_Covid_Maps
44ed9d2ff613dbf00e1d0ac007f67df82e86899e
[ "Apache-2.0" ]
null
null
null
London_COVID_maps/_nbdev.py
lukemshepherd/London_Covid_Maps
44ed9d2ff613dbf00e1d0ac007f67df82e86899e
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {} modules = [] doc_url = "https://lukemshepherd.github.io/London_COVID_maps/" git_url = "https://github.com/lukemshepherd/London_COVID_maps/tree/master/" def custom_doc_links(name): return None
22.142857
75
0.732258
5ef7472bc1a579832e4cb4573c7bf25926725a18
3,751
py
Python
ddtrace/contrib/tornado/__init__.py
dchengrove/dd-trace-py
549e8d532679c2a7dd0c572ac0a0eb520f6e4d49
[ "BSD-3-Clause" ]
1
2020-03-10T01:45:56.000Z
2020-03-10T01:45:56.000Z
ddtrace/contrib/tornado/__init__.py
dchengrove/dd-trace-py
549e8d532679c2a7dd0c572ac0a0eb520f6e4d49
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/tornado/__init__.py
dchengrove/dd-trace-py
549e8d532679c2a7dd0c572ac0a0eb520f6e4d49
[ "BSD-3-Clause" ]
null
null
null
""" The Tornado integration traces all ``RequestHandler`` defined in a Tornado web application. Auto instrumentation is available using the ``patch`` function that **must be called before** importing the tornado library. The following is an example:: # patch before importing tornado and concurrent.futures from...
35.386792
109
0.652093
7a3d88c1517cc2481bc33a612e0c1717650387b6
6,861
py
Python
src/pyotr/server.py
berislavlopac/pyotr
0324983eef6793a720f04ec99cb4c930c8943d75
[ "MIT" ]
53
2019-07-09T08:57:46.000Z
2022-03-29T05:33:30.000Z
src/pyotr/server.py
berislavlopac/pyotr
0324983eef6793a720f04ec99cb4c930c8943d75
[ "MIT" ]
13
2019-10-11T11:10:47.000Z
2021-11-04T09:17:34.000Z
src/pyotr/server.py
berislavlopac/pyotr
0324983eef6793a720f04ec99cb4c930c8943d75
[ "MIT" ]
null
null
null
from collections import namedtuple from functools import wraps from http import HTTPStatus from importlib import import_module from inspect import iscoroutine from pathlib import Path from types import ModuleType from typing import Callable, Optional, Union from urllib.parse import urlsplit from openapi_core import cr...
38.329609
92
0.624836
ae614310c6455bbc3e6cad0e6dcb076e8f549e1d
815
py
Python
src/data/1238.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1238.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1238.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque def main(): N, Q = map(int, input().split()) path_dat = [list(map(int, input().split())) for _ in range(N - 1)] queries = [list(map(int, input().split())) for _ in range(Q)] paths = [[] for _ in range(N)] for a, b in path_dat: a -= 1 b -= 1 pa...
21.447368
70
0.451534
e1c654b46bd5a8cdd37f7c022af6307e3dab9109
1,591
py
Python
src/waldur_rancher/urls.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_rancher/urls.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_rancher/urls.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
from django.urls import re_path from . import views def register_in(router): router.register( r'rancher-clusters', views.ClusterViewSet, basename='rancher-cluster' ) router.register(r'rancher-nodes', views.NodeViewSet, basename='rancher-node') router.register( r'rancher-catalogs', vie...
33.145833
94
0.686361
f63ee916e04837f8094bb61e87d641b1ffb41b51
1,683
py
Python
shared/templates/create_sockets_disabled.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
shared/templates/create_sockets_disabled.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
shared/templates/create_sockets_disabled.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # # create_sockets_disabled.py # automatically generate checks for disabled sockets. # # NOTE: The file 'template_socket_disabled' should be located in the same # working directory as this script. The template contains the following tags # that *must* be replaced successfully in order for the ...
28.525424
76
0.607249
e778bbd10837ecf55bbf11f9a8cfebb4cb162d42
3,195
py
Python
lib/jnpr/healthbot/swagger/models/trigger_action_schema.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
10
2019-10-23T12:54:37.000Z
2022-02-07T19:24:30.000Z
lib/jnpr/healthbot/swagger/models/trigger_action_schema.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
5
2019-09-30T04:29:25.000Z
2022-02-16T12:21:06.000Z
lib/jnpr/healthbot/swagger/models/trigger_action_schema.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
4
2019-09-30T01:17:48.000Z
2020-08-25T07:27:54.000Z
# coding: utf-8 """ Paragon Insights APIs API interface for PI application # noqa: E501 OpenAPI spec version: 4.0.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TriggerActi...
27.543103
84
0.569953
6b25d8e38cb061b862ae5a1a092ae36b81d7d898
24
py
Python
oauth/textapis/__init__.py
Stuff7/stuff7
c4210ad99c7d745ded3742a645cc9173243946b1
[ "MIT" ]
null
null
null
oauth/textapis/__init__.py
Stuff7/stuff7
c4210ad99c7d745ded3742a645cc9173243946b1
[ "MIT" ]
null
null
null
oauth/textapis/__init__.py
Stuff7/stuff7
c4210ad99c7d745ded3742a645cc9173243946b1
[ "MIT" ]
null
null
null
from .textapis import *
12
23
0.75
1f8b48cf7c0f2fb57d2555e661c6a2346cb5bc59
2,698
py
Python
airbyte-integrations/connectors/source-iterable/source_iterable/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/source-iterable/source_iterable/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
29
2021-10-07T17:20:29.000Z
2021-12-27T13:07:09.000Z
airbyte-integrations/connectors/source-iterable/source_iterable/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from typing import Any, List, Mapping, Tuple from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from .api import ( Campaigns, CampaignsMetrics, Channels, Em...
38
117
0.66086
7a41bd21013805ef6489ed747623125509f86c0f
264
py
Python
yatube/posts/apps.py
KostKH/MockTube
58e5246784830cc3a95f528b852d3b98c2f1dcbb
[ "BSD-3-Clause" ]
null
null
null
yatube/posts/apps.py
KostKH/MockTube
58e5246784830cc3a95f528b852d3b98c2f1dcbb
[ "BSD-3-Clause" ]
null
null
null
yatube/posts/apps.py
KostKH/MockTube
58e5246784830cc3a95f528b852d3b98c2f1dcbb
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class PostsConfig(AppConfig): """Класс нужен для конфигурации класса Post. В частности, дано название класса для целей вывода на странице админа.""" name = 'posts' verbose_name = 'Управление постами и группами'
26.4
66
0.734848
d8221f6210fc46410d0aab2911a03510db867759
9,911
py
Python
accounts/views.py
XplosionDev/xplosionweb
0bf899516495f91807e8bfa27dadf561c4437661
[ "MIT" ]
null
null
null
accounts/views.py
XplosionDev/xplosionweb
0bf899516495f91807e8bfa27dadf561c4437661
[ "MIT" ]
null
null
null
accounts/views.py
XplosionDev/xplosionweb
0bf899516495f91807e8bfa27dadf561c4437661
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.contrib.auth import (authenticate,login,logout) from random import randint from django.contrib.auth.decorators import login_required from django.contrib import messages from django.shortcuts import render, redirect from django.contrib.auth.model...
35.021201
159
0.660176
c33ae80513db5e7587a493a7d8ea75dc73bac405
601
py
Python
google/storage/speckle/python/tool/__init__.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
1,463
2015-04-07T09:41:28.000Z
2022-03-30T02:05:19.000Z
AppServer/google/storage/speckle/python/tool/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/storage/speckle/python/tool/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
698
2015-04-28T12:02:00.000Z
2022-03-19T23:53:55.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.352941
74
0.753744
1338c5f9645748f2e93415aae3904f59513cc23a
3,173
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/nfs_exports_summary_summary.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/nfs_exports_summary_summary.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/nfs_exports_summary_summary.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: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class NfsExportsSummarySummary(o...
27.353448
91
0.564135
0920c0b9bd96fd6874aef1ad6ae5cd7c027906bc
11,510
py
Python
visualize.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
4
2021-06-01T02:06:57.000Z
2022-02-23T02:14:07.000Z
visualize.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
null
null
null
visualize.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
2
2021-01-28T05:48:20.000Z
2022-01-24T11:59:13.000Z
# -*- coding: UTF-8 -*- #!/usr/bin/python3 """ """ #************************************************************ # Imported Libraries #************************************************************ import sys import os import matplotlib.pyplot as plt from scipy.misc import imread import torch import numpy as np import f...
39.417808
131
0.646829
c7903dfb7b826c1c044f0e56d6ecbc71f8edbac1
248
py
Python
pyalp/gs_interface/__init__.py
Mause/pyalp
fb0f723070e11f8c9ed57e2475eb963599f442a6
[ "MIT" ]
null
null
null
pyalp/gs_interface/__init__.py
Mause/pyalp
fb0f723070e11f8c9ed57e2475eb963599f442a6
[ "MIT" ]
2
2021-06-08T19:32:48.000Z
2022-03-11T23:17:45.000Z
pyalp/gs_interface/__init__.py
Mause/pyalp
fb0f723070e11f8c9ed57e2475eb963599f442a6
[ "MIT" ]
null
null
null
from os.path import join, dirname, exists, isdir HERE = dirname(__file__) KEYS_DIR = join(HERE, 'keys') assert exists(KEYS_DIR) and isdir(KEYS_DIR) def init(): import sys sys.path.insert( 0, join(HERE, 'tinyrpc') )
15.5
48
0.637097
be2d55a631fd7131ea469a6f7ceab8b841b22982
3,511
py
Python
experiments-xml/makeInterventions.py
CherryKitty/PROTON-OC
a116103aed3f2286db40b092c2d797a59e8b1a39
[ "MIT" ]
3
2020-02-23T10:33:55.000Z
2021-04-16T08:11:29.000Z
experiments-xml/makeInterventions.py
Deh18/PROTON-OC
09f74038adadee13dfb61d3264fe0171a2db6612
[ "MIT" ]
46
2020-04-24T15:50:19.000Z
2021-09-13T09:53:47.000Z
experiments-xml/makeInterventions.py
Deh18/PROTON-OC
09f74038adadee13dfb61d3264fe0171a2db6612
[ "MIT" ]
1
2021-12-25T01:36:48.000Z
2021-12-25T01:36:48.000Z
import xml.etree.ElementTree as ET repetitions = 20 #pretty print method def indent(elem, level=0): i = "\n" + level*" " j = "\n" + (level-1)*" " if len(elem): if not elem.text or not elem.text.strip(): elem.text = i + " " if not elem.tail or not elem.tail.strip(): ...
27.645669
67
0.623754
2a902aff660471b0fdc2abce4cdad1d42563b84d
2,101
py
Python
nipype/interfaces/slicer/filtering/tests/test_auto_N4ITKBiasFieldCorrection.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/slicer/filtering/tests/test_auto_N4ITKBiasFieldCorrection.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/slicer/filtering/tests/test_auto_N4ITKBiasFieldCorrection.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..n4itkbiasfieldcorrection import N4ITKBiasFieldCorrection def test_N4ITKBiasFieldCorrection_inputs(): input_map = dict( args=dict(argstr='%s', ), bsplineorder=dict(argstr='--bsplineorder %d', ), ...
32.323077
72
0.57544
32f578b389906de5a6d3396caa40edaa80eb7e3e
496
py
Python
myproject/src/calender/migrations/0007_studio_calendar_hourly_rate.py
Denny143/Online-Community-Project
d2e754b2ab5da195ed1846dd99bc7b1d40dfe246
[ "MIT" ]
null
null
null
myproject/src/calender/migrations/0007_studio_calendar_hourly_rate.py
Denny143/Online-Community-Project
d2e754b2ab5da195ed1846dd99bc7b1d40dfe246
[ "MIT" ]
null
null
null
myproject/src/calender/migrations/0007_studio_calendar_hourly_rate.py
Denny143/Online-Community-Project
d2e754b2ab5da195ed1846dd99bc7b1d40dfe246
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-14 22:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('calender', '0006_auto_20170814_1324'), ] operations = [ migrations.AddField...
23.619048
82
0.639113
7d9adeede0a17498813f64e9a328592d7cf6de04
264
py
Python
app/site_company/urls.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
app/site_company/urls.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
app/site_company/urls.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
from django.urls import path, include app_name = "students" urlpatterns = [ # path("mypage/", include("app.site_student.mypage.urls"), name="mypage"), path("student-profile/", include("app.site_student.student_profile.urls"), name="student_profile"), ]
26.4
103
0.712121
9b39431446d317ed5504ff79311ea322c9dbdfa1
38
py
Python
shepherd/__init__.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
5
2018-10-13T19:03:07.000Z
2019-02-25T06:44:27.000Z
shepherd/__init__.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
62
2018-09-13T08:03:39.000Z
2022-01-03T09:05:54.000Z
shepherd/__init__.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
null
null
null
__all__ = [''] __version__ = '0.5.3'
9.5
21
0.552632
d0b5a3072a67cb12761ab292b2ea8455b5daf226
9,420
py
Python
sl1m/planner_scenarios/talos/rubble_stairs.py
JasonChmn/sl1m
87a4af495cc59568fb0f65df0f20d8d0d6c116cd
[ "BSD-2-Clause" ]
7
2020-01-26T15:51:53.000Z
2021-11-18T08:22:27.000Z
sl1m/planner_scenarios/talos/rubble_stairs.py
JasonChmn/sl1m
87a4af495cc59568fb0f65df0f20d8d0d6c116cd
[ "BSD-2-Clause" ]
8
2020-05-10T16:39:23.000Z
2021-08-31T15:21:10.000Z
sl1m/planner_scenarios/talos/rubble_stairs.py
JasonChmn/sl1m
87a4af495cc59568fb0f65df0f20d8d0d6c116cd
[ "BSD-2-Clause" ]
10
2020-01-23T10:11:41.000Z
2022-02-17T10:51:07.000Z
import numpy as np from sl1m.constants_and_tools import * from numpy import array, asmatrix, matrix, zeros, ones from numpy import array, dot, stack, vstack, hstack, asmatrix, identity, cross, concatenate from numpy.linalg import norm from sl1m.planner import * from sl1m.tools.plot_plytopes import * Z_AXIS = np....
46.865672
474
0.578238
993242138f48c6646f23e4ee87a6325fc3f5b4b8
681
py
Python
Python_source/PWM_Moter.py
liquse14/MIT-python
a4698de88c97bc3f1a01d067d3b8f8bc671567aa
[ "MIT" ]
null
null
null
Python_source/PWM_Moter.py
liquse14/MIT-python
a4698de88c97bc3f1a01d067d3b8f8bc671567aa
[ "MIT" ]
null
null
null
Python_source/PWM_Moter.py
liquse14/MIT-python
a4698de88c97bc3f1a01d067d3b8f8bc671567aa
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time pin=18 GPIO.setmode(GPIO.BCM) GPIO.setup(pin,GPIO.OUT) p=GPIO.PWM(pin,50) p.start(0) left_angle=12.5 center_angle=7.5 right_angle=2.5 def doAngle(angle): p.ChangeDutyCycle(angle) print ("Angle: %d"%angle) time.sleep(0.5) try: while True: var=input("Enter...
19.457143
37
0.565345
5dfddf6134a770d8bbd5247a4124cbf9e0cb34dd
339
py
Python
posthog/migrations/0062_team_anonymize_ips.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/migrations/0062_team_anonymize_ips.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/migrations/0062_team_anonymize_ips.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
# Generated by Django 3.0.6 on 2020-06-24 05:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0061_featureflag"), ] operations = [ migrations.AddField(model_name="team", name="anonymize_ips", field=models.BooleanField(defau...
22.6
112
0.678466
bf9b9fbb2584888ed97f8293802579250e62de2d
5,223
py
Python
with_noise/pulse with noise/the statistics/expectancy_vs_sigma.py
helene-todd/M2_thesis_code
f844d6652229c6abe09bd40aa43f5002faa9e5ba
[ "MIT" ]
null
null
null
with_noise/pulse with noise/the statistics/expectancy_vs_sigma.py
helene-todd/M2_thesis_code
f844d6652229c6abe09bd40aa43f5002faa9e5ba
[ "MIT" ]
null
null
null
with_noise/pulse with noise/the statistics/expectancy_vs_sigma.py
helene-todd/M2_thesis_code
f844d6652229c6abe09bd40aa43f5002faa9e5ba
[ "MIT" ]
null
null
null
from matplotlib import cm, rcParams import matplotlib.pyplot as plt import matplotlib.colors as colors import matplotlib as matplotlib import numpy as np import math as math import random as rand import os, sys, csv import pandas as pd #matplotlib.pyplot.xkcd(scale=.5, length=100, randomness=2) c = ['#aa3863', '#d9702...
33.915584
147
0.554854
2b1e189a72b43a9e1551417d8110317e75551c05
1,094
py
Python
jp.atcoder/abc054/abc054_b/8211407.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc054/abc054_b/8211407.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc054/abc054_b/8211407.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
n, m = [int(x) for x in input().split()] img_a = [input() for _ in range(n)] img_b = [input() for _ in range(m)] found = False for a in range(n - m + 1): border = 0 isok = True while isok and not flag: for b in range(m): if img_b[b] in img_a[b + a][border:]: i...
29.567568
81
0.439671
06238ea2acd3ef3e37b1b0814e35e24e6e85493a
1,042
py
Python
Competitive Programming/Google Code Jam 2018/GoGopher.py
piyushravi/Random
c8ccd0861ff0d3dc5542f23e0ce2f8ec4da38865
[ "MIT" ]
null
null
null
Competitive Programming/Google Code Jam 2018/GoGopher.py
piyushravi/Random
c8ccd0861ff0d3dc5542f23e0ce2f8ec4da38865
[ "MIT" ]
null
null
null
Competitive Programming/Google Code Jam 2018/GoGopher.py
piyushravi/Random
c8ccd0861ff0d3dc5542f23e0ce2f8ec4da38865
[ "MIT" ]
null
null
null
import sys t = int(input()) for _ in range(t): A = int(input()) n = A//3 n += int(bool(A%3)) L = [] n = max(n, 3) for x in range(n): L.append([False, False, False]) flag = [False]*n solved = False unsolved = False #print L while False in flag: for x in ran...
20.431373
57
0.362764
5d5244478f3ef9be1c43488cd47ac5a1f9a53b1f
1,996
py
Python
cyint_aws_ml_ops_tools/deployment/inference.py
CYINT/cyint-aws-ml-ops-tools
5c20ae080f05f57b8aa3704a260be05594b9c1ef
[ "MIT" ]
null
null
null
cyint_aws_ml_ops_tools/deployment/inference.py
CYINT/cyint-aws-ml-ops-tools
5c20ae080f05f57b8aa3704a260be05594b9c1ef
[ "MIT" ]
null
null
null
cyint_aws_ml_ops_tools/deployment/inference.py
CYINT/cyint-aws-ml-ops-tools
5c20ae080f05f57b8aa3704a260be05594b9c1ef
[ "MIT" ]
null
null
null
import os import boto3 import sagemaker from sagemaker.deserializers import JSONDeserializer from sagemaker.model import Model from sagemaker.pipeline import PipelineModel from sagemaker.serializers import CSVSerializer from sagemaker.session import Session from ..universal.pipeline import ( create_s3bucket_if_no...
26.972973
78
0.71994
10d54e79ce699efb49ba4e653f5a1f4a10bb0f66
2,277
py
Python
hsds/delete_bucket.py
murlock/hsds
9f5fc3cdb64017d07e34eb422eee5398553d213c
[ "Apache-2.0" ]
null
null
null
hsds/delete_bucket.py
murlock/hsds
9f5fc3cdb64017d07e34eb422eee5398553d213c
[ "Apache-2.0" ]
null
null
null
hsds/delete_bucket.py
murlock/hsds
9f5fc3cdb64017d07e34eb422eee5398553d213c
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # Th...
28.111111
78
0.51076
2d485232b0aad214ee7e36b8834999a682f7f21f
40,880
py
Python
source/NVDAObjects/__init__.py
davidhilton936/clone
0889f95ef2d74f43b2c98f4d45bf09b0c605f1de
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAObjects/__init__.py
davidhilton936/clone
0889f95ef2d74f43b2c98f4d45bf09b0c605f1de
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAObjects/__init__.py
davidhilton936/clone
0889f95ef2d74f43b2c98f4d45bf09b0c605f1de
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: UTF-8 -*- #NVDAObjects/__init__.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2016 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Patrick Zajda #This file is covered by the GNU General Public License. #See the file COPYING for more details. """Module that contains the base N...
37.367459
348
0.730773
fc46c44601b5193017d5090be03dfac21f03114b
407
py
Python
backend/speakeasy_28830/wsgi.py
crowdbotics-apps/speakeasy-28830
4ea91d73b9eeaa78a76871e192a0c44207ab5f60
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/speakeasy_28830/wsgi.py
crowdbotics-apps/speakeasy-28830
4ea91d73b9eeaa78a76871e192a0c44207ab5f60
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/speakeasy_28830/wsgi.py
crowdbotics-apps/speakeasy-28830
4ea91d73b9eeaa78a76871e192a0c44207ab5f60
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for speakeasy_28830 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
5c62f20f0d2c5f6dba205d172e9f08fabfb9a642
388
py
Python
app/__init__.py
GenryEden/weatherStationMonitoring
efddc5c816cfa33a26a39de59cf756ec77da7f56
[ "MIT" ]
null
null
null
app/__init__.py
GenryEden/weatherStationMonitoring
efddc5c816cfa33a26a39de59cf756ec77da7f56
[ "MIT" ]
null
null
null
app/__init__.py
GenryEden/weatherStationMonitoring
efddc5c816cfa33a26a39de59cf756ec77da7f56
[ "MIT" ]
null
null
null
from flask import Flask from app import newDbWorker as dbWorker from app import config from apscheduler.schedulers.background import BackgroundScheduler app = Flask(__name__) worker = dbWorker.worker() from app import graphMaker scheduler = BackgroundScheduler() job = scheduler.add_job(graphMaker.make, 'interval', ...
22.823529
79
0.814433
9de7613d5def486e8be9b08de14f0841e7a77f0e
2,154
py
Python
leo/leo.py
patel-bhavin/leonidas
c317af28dae820380462f641f7ad59d3002b15f5
[ "MIT" ]
null
null
null
leo/leo.py
patel-bhavin/leonidas
c317af28dae820380462f641f7ad59d3002b15f5
[ "MIT" ]
null
null
null
leo/leo.py
patel-bhavin/leonidas
c317af28dae820380462f641f7ad59d3002b15f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Leo - case executor for Leonidas. Takes a config file as its first argument. """ import json # import logging import sys import time import requests import yaml if __name__ == "__main__": config = yaml.safe_load(open(sys.argv[1], "r")) print("Url: {}".format(config["url"])) fo...
35.9
105
0.577066
58a0265301c70c249ce31b28214ba167e583eda1
2,981
py
Python
data/interpolate_elliptic_integral_3.py
pmehta08/MulensModel
261738c445a8d116d09c90e65f6e847cfc8a7ad8
[ "MIT" ]
30
2016-08-30T23:32:43.000Z
2022-03-07T20:06:25.000Z
data/interpolate_elliptic_integral_3.py
pmehta08/MulensModel
261738c445a8d116d09c90e65f6e847cfc8a7ad8
[ "MIT" ]
25
2018-08-22T19:14:22.000Z
2022-03-28T17:22:56.000Z
data/interpolate_elliptic_integral_3.py
pmehta08/MulensModel
261738c445a8d116d09c90e65f6e847cfc8a7ad8
[ "MIT" ]
11
2016-10-03T16:00:50.000Z
2022-03-23T16:53:54.000Z
""" Calculates interpolation tables for elliptical integral of the third kind. """ import math import numpy as np from math import sin, cos, sqrt from scipy import integrate from scipy.interpolate import interp1d, interp2d from sympy.functions.special.elliptic_integrals import elliptic_pi as ellip3 accuracy = 1.e-4 n...
30.111111
77
0.587722
31e50d182ac5a01e9c3dc2afb147fa9018f381e7
2,536
py
Python
07_Septuple/septuple_pelirrojo_2_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
17
2020-01-14T06:25:10.000Z
2022-01-25T18:02:37.000Z
07_Septuple/septuple_pelirrojo_2_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
null
null
null
07_Septuple/septuple_pelirrojo_2_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
5
2020-05-30T18:49:18.000Z
2021-09-03T19:38:39.000Z
''' @author: Manuel Eusebio de Paz Carmona // Pelirrojo @Link: https://github.com/Pelirrojo/DeepRacerRewardFunctionsCollection @License: MIT Inspired on sextuple_tiboonn_v1.py ''' def reward_function(params): # Read input parameters ############################## speed = params['speed'] ...
31.308642
79
0.627366
ac86732f806514e916a01836105ec625898d67e9
41,183
py
Python
localstack/services/sns/sns_listener.py
omps/localstack
81e7e99eb04d9f0bc2eed9f38a5b70edd9c31675
[ "Apache-2.0" ]
null
null
null
localstack/services/sns/sns_listener.py
omps/localstack
81e7e99eb04d9f0bc2eed9f38a5b70edd9c31675
[ "Apache-2.0" ]
null
null
null
localstack/services/sns/sns_listener.py
omps/localstack
81e7e99eb04d9f0bc2eed9f38a5b70edd9c31675
[ "Apache-2.0" ]
null
null
null
import ast import asyncio import base64 import datetime import json import logging import time import traceback import uuid from typing import Dict, List from urllib.parse import parse_qs, urlparse import requests import six import xmltodict from flask import Response as FlaskResponse from moto.sns.exceptions import D...
37.202349
117
0.595416
58d255c3eeea31c9008728ca883ce47975a16609
7,317
py
Python
tests/test_plugin.py
jairhenrique/pytest-testdox
ea8796fe09cfb10b7b00786453c690d4630f9076
[ "MIT" ]
42
2016-11-04T15:15:22.000Z
2022-03-06T11:02:34.000Z
tests/test_plugin.py
renanivo/pytest-testdox
86f8224b416a74ccc5b102b49c24a918c42d87d4
[ "MIT" ]
68
2017-03-08T16:15:23.000Z
2022-03-10T18:35:48.000Z
tests/test_plugin.py
jairhenrique/pytest-testdox
ea8796fe09cfb10b7b00786453c690d4630f9076
[ "MIT" ]
9
2018-01-21T06:21:53.000Z
2022-03-06T11:16:27.000Z
from collections import Counter import pytest from pytest_testdox import constants class TestReport: @pytest.fixture def testdir(self, testdir): testdir.makeconftest(""" pytest_plugins = 'pytest_testdox.plugin' """) return testdir def test_should_print_a_green_passi...
29.035714
79
0.569769
32913606e5cbb2287150be187eadc93854106ae1
400
py
Python
Homework 1/data_cleaning.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
4
2020-04-29T04:34:50.000Z
2021-11-11T07:49:08.000Z
Homework 1/data_cleaning.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
null
null
null
Homework 1/data_cleaning.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
1
2020-04-23T07:32:44.000Z
2020-04-23T07:32:44.000Z
# Script to rename option files, from the R data download script format to # OOC-compliant names. from context import fe621 import os option_file_paths = [os.getcwd() + i for i in ['/Homework 1/data/DATA1/AMZN', '/Homework 1/data/DATA1/SPY']] for option_file_path in op...
30.769231
77
0.68
ca0915a95f740966ebf1bcbce096a3484626cefa
4,108
py
Python
qiskit/aqua/algorithms/classifiers/qsvm/_qsvm_multiclass.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
2
2020-06-29T16:08:12.000Z
2020-08-07T22:42:13.000Z
qiskit/aqua/algorithms/classifiers/qsvm/_qsvm_multiclass.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/classifiers/qsvm/_qsvm_multiclass.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2022-01-25T07:09:10.000Z
2022-01-25T07:09:10.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
39.5
99
0.6463
ea543c1a37635daac456f0f79666f376baac2d4b
604
py
Python
setup.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
1
2019-06-07T10:45:58.000Z
2019-06-07T10:45:58.000Z
setup.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
setup.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages packages = find_packages('.', include=['yandexcloud*', 'yandex*']) setup(name='yandexcloud', version='0.9.0', description='The Yandex.Cloud official SDK', url='https://github.com/yandex-cloud/python-sdk', author='Yandex LLC', author_email='clou...
27.454545
66
0.594371
8d5707735402ded3d3375eaed1c117c95ae7c53e
4,155
py
Python
scripts/generate_gan_data.py
ssundaram21/6.819FinalProjectRAMP
ff7ec9020f480b0cd966c283a80d1871998d5a06
[ "MIT" ]
2
2021-10-07T20:30:22.000Z
2022-03-20T18:48:14.000Z
scripts/generate_gan_data.py
ssundaram21/6.819FinalProjectRAMP
ff7ec9020f480b0cd966c283a80d1871998d5a06
[ "MIT" ]
null
null
null
scripts/generate_gan_data.py
ssundaram21/6.819FinalProjectRAMP
ff7ec9020f480b0cd966c283a80d1871998d5a06
[ "MIT" ]
null
null
null
import pickle import numpy as np import pandas as pd import tensorflow as tf import PIL.Image import imageio # import tfutils import matplotlib.pyplot as plt import os import sys from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" network_path = "/om/user/shobhit...
37.098214
148
0.672443
94cc323e3338ad2dbbf5bfc5efcc5caa570b9651
1,824
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ResolveETLJobSqlSchemaRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ResolveETLJobSqlSchemaRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ResolveETLJobSqlSchemaRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "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...
33.777778
75
0.763706
ad21025667490d00e09808810c9e38ce771e5cb6
1,396
py
Python
graph/Ratndeep/Distance of nearest cell having 1.py
ayroti-18/Competitive-Programming
d1ea08a91c63e54f0bba2365e56f98db71eb9054
[ "MIT" ]
3
2020-12-20T10:23:11.000Z
2021-06-16T10:34:18.000Z
graph/Ratndeep/Distance of nearest cell having 1.py
Spring-dot/Competitive-Programming
98add277a8b029710c749d1082de25c524e12408
[ "MIT" ]
null
null
null
graph/Ratndeep/Distance of nearest cell having 1.py
Spring-dot/Competitive-Programming
98add277a8b029710c749d1082de25c524e12408
[ "MIT" ]
null
null
null
from collections import defaultdict def BFS(self, s): visited = [False] * (len(self.graph)) queue = [] queue.append(s) visited[s] = True while queue: s = queue.pop(0) print (s, end = " ") for i in self.graph[s]: if visited[i] == False: ...
26.339623
62
0.517192
3d251ae53a2e3c507f00e71685bd921ffb37b099
371
py
Python
Scrapy_CrawlSpider/pipelines.py
SunDevilThor/Scrapy_CrawlSpider
5472f31b4974a05999fb21f979ea22765165ff66
[ "MIT" ]
null
null
null
Scrapy_CrawlSpider/pipelines.py
SunDevilThor/Scrapy_CrawlSpider
5472f31b4974a05999fb21f979ea22765165ff66
[ "MIT" ]
null
null
null
Scrapy_CrawlSpider/pipelines.py
SunDevilThor/Scrapy_CrawlSpider
5472f31b4974a05999fb21f979ea22765165ff66
[ "MIT" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class ScrapyCrawlspiderPipeline: def pro...
26.5
66
0.773585
245d46d1545f6166b18a6990b8334073db0c747d
596
py
Python
classwork/02_27_2021/wikipedia.py
Katsute/Baruch-CIS-3120-Assignments
2cb470a7e3b7bf2d49da520fdff079f832624c06
[ "CC0-1.0" ]
null
null
null
classwork/02_27_2021/wikipedia.py
Katsute/Baruch-CIS-3120-Assignments
2cb470a7e3b7bf2d49da520fdff079f832624c06
[ "CC0-1.0" ]
null
null
null
classwork/02_27_2021/wikipedia.py
Katsute/Baruch-CIS-3120-Assignments
2cb470a7e3b7bf2d49da520fdff079f832624c06
[ "CC0-1.0" ]
1
2022-01-12T18:19:11.000Z
2022-01-12T18:19:11.000Z
from typing import List import requests from bs4 import BeautifulSoup, Tag url: str = "https://en.wikipedia.org/wiki/List_of_United_States_cities_by_population" soup: BeautifulSoup = BeautifulSoup(requests.get(url).content, "html.parser") table: Tag = soup.find("table", class_="wikitable sortable") grid: List[List...
23.84
85
0.651007
c55587a3d1679457f8fcc065f56a78240c927883
1,320
py
Python
tests/etl_test/config1.py
topdown618/aliyun-log-python-sdk
395949a5c307722e8223d926b366c50dacd32126
[ "MIT" ]
130
2017-03-31T07:41:46.000Z
2022-03-27T14:31:22.000Z
tests/etl_test/config1.py
topdown618/aliyun-log-python-sdk
395949a5c307722e8223d926b366c50dacd32126
[ "MIT" ]
170
2017-02-17T06:07:31.000Z
2022-03-17T02:32:42.000Z
tests/etl_test/config1.py
topdown618/aliyun-log-python-sdk
395949a5c307722e8223d926b366c50dacd32126
[ "MIT" ]
111
2017-01-16T07:35:01.000Z
2022-03-18T03:31:32.000Z
from aliyun.log.etl_core import * KEEP_EVENT_default = True KEEP_EVENT_pass_or_failure = [{"result": r"(?i)ok|pass"}, {"status": lambda v: int(v) == 200}, lambda e: (('status' in e and int(e['status']) > 200) or ('__raw__' in e and 'error' in e['__raw__']))] DROP_EVENT_useless = ...
32.195122
139
0.60303
98d91e51765f9ac825a557d3ee98ba9036dcd529
1,314
py
Python
altar/altar/bayesian/Controller.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
6
2019-07-25T08:02:09.000Z
2022-02-09T04:19:31.000Z
altar/altar/bayesian/Controller.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
null
null
null
altar/altar/bayesian/Controller.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
null
null
null
# -*- python -*- # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # # (c) 2013-2021 parasim inc # (c) 2010-2021 california institute of technology # all rights reserved # # get the package import altar # the controller protocol class Controller(altar.protocol, family="altar.controllers...
22.655172
82
0.648402
17ac5d72935336f1b7f5e2b725af80657980313d
56
py
Python
Codeforces/C_A_and_B_and_Team_Training.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/C_A_and_B_and_Team_Training.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/C_A_and_B_and_Team_Training.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
n,m = map(int, input().split()) print(min(n,m,(n+m)//3))
28
31
0.553571
ca7910fcc167a0bd60189a3e6b673553dc9fe35f
1,122
py
Python
neural_network.py
petomuro/Snake_SL
8f2e4d00733ef56dad0893c009510bb0f0a6c154
[ "MIT" ]
null
null
null
neural_network.py
petomuro/Snake_SL
8f2e4d00733ef56dad0893c009510bb0f0a6c154
[ "MIT" ]
null
null
null
neural_network.py
petomuro/Snake_SL
8f2e4d00733ef56dad0893c009510bb0f0a6c154
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras from tensorflow.keras import Sequential, layers, Input from tensorflow.keras.layers import Dense from tensorflow.keras.optimizers import Adam from datetime import datetime class NeuralNetwork: def __init__(self, no_of_layers, no_of_neurons, lr): self.no...
30.324324
79
0.668449
40c3d5013f776109c1c0dc10b1b24d2b69704641
793
py
Python
wwwhero/migrations/0004_charactercooldown.py
IharSha/build_a_hero
4a0f0aa701c205d04edd6bc801707a73bcc210f2
[ "BSD-3-Clause" ]
null
null
null
wwwhero/migrations/0004_charactercooldown.py
IharSha/build_a_hero
4a0f0aa701c205d04edd6bc801707a73bcc210f2
[ "BSD-3-Clause" ]
2
2021-01-08T11:53:33.000Z
2021-09-23T07:04:20.000Z
wwwhero/migrations/0004_charactercooldown.py
IharSha/build_a_hero
4a0f0aa701c205d04edd6bc801707a73bcc210f2
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-05 18:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wwwhero', '0003_characterselection'), ] operations = [ migrations.CreateModel( name='CharacterC...
33.041667
124
0.604035
543ddf40edddbc3ea64f63ba1239492159469b09
3,812
py
Python
mmtbx/regression/real_space_refine_chain/tst_01.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
mmtbx/regression/real_space_refine_chain/tst_01.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/regression/real_space_refine_chain/tst_01.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import time, os import iotbx.pdb import mmtbx.utils from mmtbx import monomer_library from scitbx.array_family import flex import mmtbx.refinement.real_space.explode_and_refine from mmtbx.geometry_restraints import reference from iotbx import reflection_f...
37.372549
82
0.716422
fad723fb5616215fe627bf19aeb6197ea1be17db
8,915
py
Python
k8syaml/k8s_yaml_obj.py
paoloalba/deployer_k8s
1dcee64122dcad8a72a3c434550e8f9d73828442
[ "MIT" ]
2
2020-12-01T20:37:22.000Z
2020-12-02T20:02:22.000Z
k8syaml/k8s_yaml_obj.py
paoloalba/deployer_k8s
1dcee64122dcad8a72a3c434550e8f9d73828442
[ "MIT" ]
null
null
null
k8syaml/k8s_yaml_obj.py
paoloalba/deployer_k8s
1dcee64122dcad8a72a3c434550e8f9d73828442
[ "MIT" ]
null
null
null
import json import yaml import copy from yaml import YAMLObject from enum import Enum from .encode_base64 import encodeb64 class ConversionType(Enum): quoted_string = 1 integer_string = 2 normal = 3 class K8Selector(YAMLObject): def __init__(self, matchLabels_dict): self.matchLabels = copy...
31.953405
94
0.592036
7855708544753d413de62f54a7f509a405281942
1,620
py
Python
unit_tests/MLP/test_network.py
stovorov/NaiveNeurals
88d91f3d4d39859eef372285f093643a447571a4
[ "MIT" ]
1
2019-01-16T13:45:47.000Z
2019-01-16T13:45:47.000Z
unit_tests/MLP/test_network.py
stovorov/NaiveNeurals
88d91f3d4d39859eef372285f093643a447571a4
[ "MIT" ]
2
2020-03-24T16:17:06.000Z
2020-03-30T23:53:16.000Z
unit_tests/MLP/test_network.py
stovorov/NaiveNeurals
88d91f3d4d39859eef372285f093643a447571a4
[ "MIT" ]
null
null
null
"""Module contains test for MLP classes""" from NaiveNeurals.MLP.network import NeuralNetwork inputs = [[0, 0, 1, 1], [0, 1, 0, 1]] targets = [[0, 1, 1, 0]] testing_model = { "input": { "node_0": { "weight_0": 1 }, "node_1": { "weight_0": 1 } }, "hid...
24.923077
91
0.525309
b7bcde4e676aa11b86c12f97134641053cab602b
26
py
Python
Dashboard/backend/tests/__init__.py
CESNET/Nemea-GUI
5ab626a23fa8a3cbd58968dfd7bc8ae2263d0595
[ "BSD-3-Clause" ]
null
null
null
Dashboard/backend/tests/__init__.py
CESNET/Nemea-GUI
5ab626a23fa8a3cbd58968dfd7bc8ae2263d0595
[ "BSD-3-Clause" ]
null
null
null
Dashboard/backend/tests/__init__.py
CESNET/Nemea-GUI
5ab626a23fa8a3cbd58968dfd7bc8ae2263d0595
[ "BSD-3-Clause" ]
1
2019-06-05T08:04:04.000Z
2019-06-05T08:04:04.000Z
from .db_data_gen import *
26
26
0.807692
a7c84377ed49c8dd0eb04a0eaedf72445184d87b
3,640
py
Python
include/scons/test/MSVS/vs-14.1-files.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
include/scons/test/MSVS/vs-14.1-files.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
include/scons/test/MSVS/vs-14.1-files.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # 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 without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
33.394495
79
0.762088
fed46453021b165d2e7aefa929aa1f68907c7ebd
411
py
Python
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/overseer/plugins/network_interfaces.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
46
2017-05-15T11:15:08.000Z
2018-07-02T03:32:52.000Z
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/overseer/plugins/network_interfaces.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
null
null
null
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/overseer/plugins/network_interfaces.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
24
2017-05-17T03:26:17.000Z
2018-07-09T07:00:50.000Z
import dsz MENU_TEXT = 'List all network interfaces' def main(): dsz.ui.Echo('Running network interface commands...', dsz.GOOD) dsz.control.echo.Off() dsz.cmd.Run('background log devicequery -deviceclass net', dsz.RUN_FLAG_RECORD) dsz.cmd.Run('background log performance -data NetworkInterface'...
34.25
90
0.698297
c196fa1fac069b963ebe62d3355f45222c12cab7
2,414
py
Python
bank/admin.py
WillieShi/security-protocol
7b55a06315bfbd61b7fe811b185624259ae5900a
[ "Apache-2.0" ]
null
null
null
bank/admin.py
WillieShi/security-protocol
7b55a06315bfbd61b7fe811b185624259ae5900a
[ "Apache-2.0" ]
null
null
null
bank/admin.py
WillieShi/security-protocol
7b55a06315bfbd61b7fe811b185624259ae5900a
[ "Apache-2.0" ]
null
null
null
""" Bank Server This module implements the admin access to the database """ import db import cmd import json import os class Admin(cmd.Cmd, object): intro = 'Welcome to the Admin Interface, type help or ? to list commands.\n' prompt = 'admin$ ' def __init__(self): super(Admin, self).__init__() ...
27.747126
80
0.527341
96957f71013bc8f3e2d07ea2a7f0a2eb59f53d14
1,507
py
Python
automl/beta/video_object_tracking_create_dataset_test.py
summersab/python-docs-samples
7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66
[ "Apache-2.0" ]
2
2020-09-19T04:22:52.000Z
2020-09-23T14:04:17.000Z
automl/beta/video_object_tracking_create_dataset_test.py
summersab/python-docs-samples
7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66
[ "Apache-2.0" ]
1
2020-07-24T19:18:29.000Z
2020-07-24T19:45:23.000Z
automl/beta/video_object_tracking_create_dataset_test.py
summersab/python-docs-samples
7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66
[ "Apache-2.0" ]
2
2020-09-13T03:47:22.000Z
2020-09-23T14:04:19.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.980769
74
0.736563
3350515acbfda6d2034196986fb49dcfb1e25369
4,360
py
Python
functions/plots.py
danibachar/idc_CANLab
7bf6fc9b1908d5a2608f070770ccf6536be0686f
[ "MIT" ]
null
null
null
functions/plots.py
danibachar/idc_CANLab
7bf6fc9b1908d5a2608f070770ccf6536be0686f
[ "MIT" ]
1
2020-08-18T13:48:07.000Z
2020-08-18T13:48:07.000Z
functions/plots.py
danibachar/idc_CANLab
7bf6fc9b1908d5a2608f070770ccf6536be0686f
[ "MIT" ]
null
null
null
from bokeh.plotting import figure, show, output_file, save from bokeh.layouts import gridplot from bokeh.models import ColumnDataSource,Range1d from .core.storage import upload_file from .utils import chunks, build_remote_and_local_file_names def plots_by_group_and_features(df, groupping_col_name, y_name, x_name, gri...
40.37037
123
0.643807
fd8c23672343fcd341258315447dd3b1275b4961
3,144
py
Python
cirq/google/api/v2/program.py
muneerqu/Cirq
729d993312467d8ea9127103f9e15ae2391e7d85
[ "Apache-2.0" ]
1
2020-07-14T19:43:54.000Z
2020-07-14T19:43:54.000Z
cirq/google/api/v2/program.py
1eedaegon/Cirq
de0c5e855069bba71e55b070fc9b06f58c07a861
[ "Apache-2.0" ]
null
null
null
cirq/google/api/v2/program.py
1eedaegon/Cirq
de0c5e855069bba71e55b070fc9b06f58c07a861
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.823529
77
0.656807
8540d54c36bb5808481314080ef487152eac9fa5
13,339
py
Python
backend/tests/baserow/contrib/database/rows/test_rows_handler.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
1
2021-04-13T16:27:58.000Z
2021-04-13T16:27:58.000Z
backend/tests/baserow/contrib/database/rows/test_rows_handler.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
6
2021-04-08T22:03:06.000Z
2022-01-13T03:38:17.000Z
backend/tests/baserow/contrib/database/rows/test_rows_handler.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
null
null
null
import pytest from unittest.mock import patch from decimal import Decimal from django.core.exceptions import ValidationError from django.db import models from baserow.core.exceptions import UserNotInGroupError from baserow.contrib.database.rows.handler import RowHandler from baserow.contrib.database.rows.exceptions ...
35.381963
87
0.693155
a6d81dda318396912956f87808143d62e83b9639
4,861
py
Python
keras2onnx/main.py
aj-ames/keras-onnx
74e855a759ff934b1762a0b31589e28bdb8be98e
[ "MIT" ]
1
2021-04-15T16:35:54.000Z
2021-04-15T16:35:54.000Z
keras2onnx/main.py
aj-ames/keras-onnx
74e855a759ff934b1762a0b31589e28bdb8be98e
[ "MIT" ]
null
null
null
keras2onnx/main.py
aj-ames/keras-onnx
74e855a759ff934b1762a0b31589e28bdb8be98e
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
44.59633
107
0.703559
29ed58be5d8bfcc23246ce013dd46f1da56d726d
291
py
Python
configs/conformer/conformer-base-p16_8xb128_in1k.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-07T13:55:57.000Z
2022-03-07T13:55:57.000Z
configs/conformer/conformer-base-p16_8xb128_in1k.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
5
2022-03-02T02:58:56.000Z
2022-03-23T05:51:53.000Z
configs/conformer/conformer-base-p16_8xb128_in1k.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-01-04T03:19:50.000Z
2022-01-04T03:19:50.000Z
_base_ = [ '../_base_/models/conformer/base-p16.py', '../_base_/datasets/imagenet_bs64_swin_224.py', '../_base_/schedules/imagenet_bs1024_adamw_conformer.py', '../_base_/default_runtime.py' ] data = dict(samples_per_gpu=128) evaluation = dict(interval=1, metric='accuracy')
29.1
61
0.714777
3ee3bbe4eece41d497ffdaccc2cb244c393538ca
26,743
py
Python
insights/specs/__init__.py
pilhuhn/insights-core
9aff2aa315867a59f2c9de89615058368b342326
[ "Apache-2.0" ]
null
null
null
insights/specs/__init__.py
pilhuhn/insights-core
9aff2aa315867a59f2c9de89615058368b342326
[ "Apache-2.0" ]
null
null
null
insights/specs/__init__.py
pilhuhn/insights-core
9aff2aa315867a59f2c9de89615058368b342326
[ "Apache-2.0" ]
null
null
null
from insights.core.spec_factory import SpecSet, RegistryPoint class Openshift(SpecSet): cluster_operators = RegistryPoint(raw=True) crds = RegistryPoint(raw=True) crs = RegistryPoint(raw=True, multi_output=True) machine_configs = RegistryPoint(raw=True) machines = RegistryPoint(raw=True) machi...
42.7888
84
0.757843
b44e4943769f19418cc181ba078f19dd74547f61
365
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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. # ---------------------------------------------------------------------...
45.625
76
0.452055
38cea18b85b823c9a8786c6143e6d146a10900ba
2,803
py
Python
airom/postprocess.py
jcgh582/physio-rom
15ec69a5a2a9c157d4dcfedac985c3549db5208e
[ "MIT" ]
null
null
null
airom/postprocess.py
jcgh582/physio-rom
15ec69a5a2a9c157d4dcfedac985c3549db5208e
[ "MIT" ]
null
null
null
airom/postprocess.py
jcgh582/physio-rom
15ec69a5a2a9c157d4dcfedac985c3549db5208e
[ "MIT" ]
null
null
null
import numpy as np # Given an image and a range of motion test this will generate a report. # ------------------------------ UTILITIES def getJointROM(data, joint_ind): # Get extremal values of a given joint_ind # data : output from getAnglesInDir # joint_ind : index to joint. In order: 'Right elbow','Lef...
40.623188
191
0.683553
76a2be026f14f9b8d542dad6a4376191c7f9ab1f
466
py
Python
photos/urls.py
petersoleeh/TheGram
4ab3fc8a6caaa59cf71868efa035ec9418ce254a
[ "MIT" ]
2
2018-10-17T18:08:01.000Z
2020-05-17T02:53:43.000Z
photos/urls.py
petersoleeh/TheGram
4ab3fc8a6caaa59cf71868efa035ec9418ce254a
[ "MIT" ]
null
null
null
photos/urls.py
petersoleeh/TheGram
4ab3fc8a6caaa59cf71868efa035ec9418ce254a
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url(r'^$',views.index,name='index'), url(r'^profile/',views.profile,name='profile'), url(r'^new/post/', views.new_post, name='new-post'), url(r'^profile/edit',v...
31.066667
81
0.725322
a400ac4d939f84927b822cc42e5b2a1cbee87971
12,995
py
Python
recognition/ArcFace/train_parall.py
hhsummerwind/insightface
a78836fdf8a609c7d2ddc0460a98d163156f459f
[ "MIT" ]
1
2021-02-05T18:44:06.000Z
2021-02-05T18:44:06.000Z
recognition/ArcFace/train_parall.py
charmere/insightface
60bb5829b1d76bfcec7930ce61c41dde26413279
[ "MIT" ]
null
null
null
recognition/ArcFace/train_parall.py
charmere/insightface
60bb5829b1d76bfcec7930ce61c41dde26413279
[ "MIT" ]
null
null
null
''' @author: insightface ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import math import random import logging import pickle import sklearn import numpy as np from image_iter import FaceImageIter import mxnet as mx from mxnet im...
36.298883
155
0.656406
a3304d53baf0a00ebc8ef3b517856ec6cfb00538
1,451
py
Python
auth-api/tests/unit/utils/test_logging.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
11
2019-09-26T06:58:25.000Z
2022-01-26T06:19:39.000Z
auth-api/tests/unit/utils/test_logging.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
1,622
2019-05-07T21:08:38.000Z
2022-03-28T17:07:15.000Z
auth-api/tests/unit/utils/test_logging.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
98
2019-03-01T21:36:15.000Z
2021-12-01T22:11:25.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
33.744186
88
0.753274
44375316ce9cbbe8fe3381afb16d30f77dbbced3
15,242
py
Python
locust/argument_parser.py
lhupfeldt/locust
dd14aac36e1aaa99a8acdb8ab6ad926ef8843ca1
[ "MIT" ]
1
2021-10-22T02:58:36.000Z
2021-10-22T02:58:36.000Z
locust/argument_parser.py
FremanZhang/locust
aa7b34db3a87fa5cd7a2fa9e4030777f8ca2f3a3
[ "MIT" ]
null
null
null
locust/argument_parser.py
FremanZhang/locust
aa7b34db3a87fa5cd7a2fa9e4030777f8ca2f3a3
[ "MIT" ]
null
null
null
import argparse import os import sys import textwrap import configargparse import locust version = locust.__version__ DEFAULT_CONFIG_FILES = ["~/.locust.conf", "locust.conf"] def _is_package(path): """ Is the given path a Python package? """ return os.path.isdir(path) and os.path.exists(os.path.j...
35.200924
244
0.637449
c99407499393329c581e7346e562f93b61523886
10,728
py
Python
tests/components/somfy_mylink/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/somfy_mylink/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/somfy_mylink/test_config_flow.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Test the Somfy MyLink config flow.""" import asyncio from unittest.mock import patch import pytest from openpeerpower import config_entries, data_entry_flow, setup from openpeerpower.components.dhcp import HOSTNAME, IP_ADDRESS, MAC_ADDRESS from openpeerpower.components.somfy_mylink.const import ( CONF_REVERSED...
32.216216
91
0.617263
1730d6f6198b07db49941fd308c745f41b3c402e
418
py
Python
test/__init__.py
leiyangleon/RAiDER
40c083a23ded02470939318daba36f3c2a25e52b
[ "Apache-2.0" ]
2
2020-04-16T16:06:46.000Z
2022-02-15T13:37:43.000Z
test/__init__.py
leiyangleon/RAiDER
40c083a23ded02470939318daba36f3c2a25e52b
[ "Apache-2.0" ]
null
null
null
test/__init__.py
leiyangleon/RAiDER
40c083a23ded02470939318daba36f3c2a25e52b
[ "Apache-2.0" ]
null
null
null
import os from contextlib import contextmanager from pathlib import Path test_dir = Path(__file__).parents[0] @contextmanager def pushd(dir): """ Change the current working directory within a context. """ prevdir = os.getcwd() os.chdir(dir) yield os.chdir(prevdir) TEST_DIR = test_dir.ab...
19
58
0.705742
48010f4e4070325e93474fd3a764bee2721da3e1
4,801
py
Python
tests/system/step_defs/test_model_steps.py
leferrad/meli_datachallenge2019
4efb624b8ddea9e7044d1bac159ff03e5b13a289
[ "MIT" ]
1
2022-02-08T03:28:23.000Z
2022-02-08T03:28:23.000Z
tests/system/step_defs/test_model_steps.py
leferrad/meli_datachallenge2019
4efb624b8ddea9e7044d1bac159ff03e5b13a289
[ "MIT" ]
null
null
null
tests/system/step_defs/test_model_steps.py
leferrad/meli_datachallenge2019
4efb624b8ddea9e7044d1bac159ff03e5b13a289
[ "MIT" ]
null
null
null
"""Steps for model.feature""" import json import os import subprocess import pytest from pytest_bdd import given, when, then, scenarios, parsers from melidatachall19.utils import load_profile from .utils.checks import MODELING_ACCEPTANCE_THRESHOLDS from .utils.paths import PROJECT_PATH scenarios('../features/mode...
34.539568
93
0.659238
b21709043fb1f41939213baad1eed24ffdd5cf5f
14,861
py
Python
intrinioAPI/main.py
mikelhsia/initrinioAPI
114b0641ce98cf1b883f138f44db6f66058b3c43
[ "MIT" ]
null
null
null
intrinioAPI/main.py
mikelhsia/initrinioAPI
114b0641ce98cf1b883f138f44db6f66058b3c43
[ "MIT" ]
2
2020-06-10T03:23:47.000Z
2020-06-10T04:04:10.000Z
intrinioAPI/main.py
mikelhsia/intrinioAPI
114b0641ce98cf1b883f138f44db6f66058b3c43
[ "MIT" ]
null
null
null
from datetime import datetime, date, timedelta import time import pandas as pd import numpy as np from intrinio_sdk.rest import ApiException from urllib3.exceptions import MaxRetryError from sqlalchemy import func, or_, and_ from sqlalchemy.orm import sessionmaker from models import Company, Security, SecurityPrice, St...
39.107895
185
0.645111
4bf26de3bff3dad98d99f72248d6cfb8ef234fe9
554
py
Python
dnsdb_common/dal/models/view_records.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
378
2019-01-22T02:16:28.000Z
2022-03-31T01:34:27.000Z
dnsdb_common/dal/models/view_records.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
51
2019-01-23T03:15:16.000Z
2021-05-08T02:22:23.000Z
dnsdb_common/dal/models/view_records.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
139
2019-01-22T02:43:39.000Z
2022-02-21T09:16:01.000Z
# -*- coding: utf-8 -*- from . import AuditTimeMixin from .. import db class ViewRecords(db.Model, AuditTimeMixin): __tablename__ = 'tb_view_record' id = db.Column(db.Integer, primary_key=True) domain_name = db.Column(db.String(256), nullable=False) record = db.Column(db.String(256), nullable=False)...
32.588235
59
0.698556
06db365af14fd1855eb42849eb80e4abc0d8a2df
77
py
Python
taiga/utils.py
erikw/python-taiga
006fce1c793a345cc4464ca7a1bfdd1beedb7744
[ "MIT" ]
null
null
null
taiga/utils.py
erikw/python-taiga
006fce1c793a345cc4464ca7a1bfdd1beedb7744
[ "MIT" ]
1
2018-05-27T11:37:47.000Z
2018-05-27T11:41:49.000Z
taiga/utils.py
erikw/python-taiga
006fce1c793a345cc4464ca7a1bfdd1beedb7744
[ "MIT" ]
null
null
null
def urljoin(*parts): return '/'.join(part.strip('/') for part in parts)
19.25
54
0.623377
3aad506101de377763dbd0ee763386cd4cf8d3b2
7,680
py
Python
batchregister.py
aaabbb200909/applconn
18568a16d94e5b47950cbb34f9beb740e73ca2a7
[ "Apache-2.0" ]
null
null
null
batchregister.py
aaabbb200909/applconn
18568a16d94e5b47950cbb34f9beb740e73ca2a7
[ "Apache-2.0" ]
null
null
null
batchregister.py
aaabbb200909/applconn
18568a16d94e5b47950cbb34f9beb740e73ca2a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import glob import json import requests import networkx as nx from networkx.readwrite import json_graph import settings json_filepath=settings.json_filepath elasticsearchurl=settings.elasticsearchurl rsyncgitpath=settings.rsyncgitpath def import_rsyncgit(G): '''rsyncgit...
34.439462
124
0.631641
f1bc422b3bc787a150ad6dab1d7ab3534bd7d2dc
1,469
py
Python
myhood/migrations/0002_auto_20220112_0645.py
davospots/theHood
72e9f0ead64849d576a3728731c0c753f870f29d
[ "MIT" ]
null
null
null
myhood/migrations/0002_auto_20220112_0645.py
davospots/theHood
72e9f0ead64849d576a3728731c0c753f870f29d
[ "MIT" ]
null
null
null
myhood/migrations/0002_auto_20220112_0645.py
davospots/theHood
72e9f0ead64849d576a3728731c0c753f870f29d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-12 03:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myhood', '0001_initial'), ] operations = [ migrations.CreateModel( name='Business', fields=[ ('id', ...
34.162791
114
0.580667
d955d49f925d735ad40c30a8dc6267671793cede
1,110
py
Python
TracRemote/tests/test_top_level.py
weaverba137/trac-remote
7ca15ccce9ff91413b3d84a43dc924fda0c9fdd5
[ "BSD-3-Clause" ]
null
null
null
TracRemote/tests/test_top_level.py
weaverba137/trac-remote
7ca15ccce9ff91413b3d84a43dc924fda0c9fdd5
[ "BSD-3-Clause" ]
1
2019-06-10T18:18:19.000Z
2019-06-10T18:18:19.000Z
TracRemote/tests/test_top_level.py
weaverba137/trac-remote
7ca15ccce9ff91413b3d84a43dc924fda0c9fdd5
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ =============================== TracRemote.tests.test_top_level =============================== Test things defined in the top level __init__.py file. """ import unittest import re import sys from .. import __version__ as tr_ve...
27.75
69
0.491892
21f1b0687c8c1b6fc12136d5765fa5f02519c3ef
132,479
py
Python
sox/transform.py
abugler/pysox
65784bd634e456debb6802b6741287b83f85939b
[ "BSD-3-Clause" ]
null
null
null
sox/transform.py
abugler/pysox
65784bd634e456debb6802b6741287b83f85939b
[ "BSD-3-Clause" ]
null
null
null
sox/transform.py
abugler/pysox
65784bd634e456debb6802b6741287b83f85939b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Python wrapper around the SoX library. This module requires that SoX is installed. ''' from __future__ import print_function from .log import logger import random import os import numpy as np from .core import ENCODING_VALS from .core import is_number from .core impo...
36.943391
246
0.579367
372b78973109279a1686d9f75640f98d78632615
3,193
py
Python
vitrage/opts.py
charliebr30/vitrage
33e7d9a27a542c3ad4755a03dbbc8ff613caab32
[ "Apache-2.0" ]
null
null
null
vitrage/opts.py
charliebr30/vitrage
33e7d9a27a542c3ad4755a03dbbc8ff613caab32
[ "Apache-2.0" ]
null
null
null
vitrage/opts.py
charliebr30/vitrage
33e7d9a27a542c3ad4755a03dbbc8ff613caab32
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 - Alcatel-Lucent # Copyright 2016 - Nokia # # 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 applicabl...
32.252525
78
0.690573
5273d5fed3d5b3ecf1d76679cbead58213200246
13,770
py
Python
twistedcaldav/memcachepool.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
twistedcaldav/memcachepool.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
twistedcaldav/memcachepool.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2008-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
30.668151
80
0.622803