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
b1d9229c4403977c0473eb8589e173976ce4e166
1,779
py
Python
decrypt.py
AkshayJainG/ContinuousIntrusion
c12f8ce113b1141d3d4647f2de20f943906973e8
[ "MIT" ]
120
2015-11-30T16:27:31.000Z
2021-08-18T13:38:42.000Z
decrypt.py
AkshayJainG/ContinuousIntrusion
c12f8ce113b1141d3d4647f2de20f943906973e8
[ "MIT" ]
null
null
null
decrypt.py
AkshayJainG/ContinuousIntrusion
c12f8ce113b1141d3d4647f2de20f943906973e8
[ "MIT" ]
38
2015-11-14T02:22:23.000Z
2020-09-02T04:51:08.000Z
#!/usr/bin/env python import re import sys import base64 from hashlib import sha256 from binascii import hexlify, unhexlify from Crypto.Cipher import AES MAGIC = "::::MAGIC::::" def usage(): print "./decrypt.py <master.key> <hudson.util.Secret> <credentials.xml>" sys.exit(0) def main(): if len(sys.argv) != 4:...
26.161765
80
0.648679
f79e9b21718f90eb346ee457caf3cc4a8c2c683b
2,289
py
Python
A1014280203/25/25.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
A1014280203/25/25.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
A1014280203/25/25.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
# make with baudi SDK import requests import pyaudio import wave import base64 import json import win32api CHUNK = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 8000 RECORD_SECONDS = 3 WAVE_OUTPUT_FILENAME = "out.wav" def make_audio(): p = pyaudio.PyAudio() stream = p.open(format=FORMAT...
24.094737
76
0.549585
71088483f30887944da400e7d7f60ebc97c7a86c
2,098
py
Python
lib/model/utils/blob.py
galaxy-fangfang/deconv.pytorch
1415638d39c380d6d4567735965e87416b31f73b
[ "MIT" ]
null
null
null
lib/model/utils/blob.py
galaxy-fangfang/deconv.pytorch
1415638d39c380d6d4567735965e87416b31f73b
[ "MIT" ]
null
null
null
lib/model/utils/blob.py
galaxy-fangfang/deconv.pytorch
1415638d39c380d6d4567735965e87416b31f73b
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Blob helper functions.""" import numpy as np # from scipy.misc impo...
31.787879
83
0.590562
7934877f1106921438d1ff14d5adae8d0ec9545e
9,416
py
Python
sudkampPython/transitions/extensions/diagrams.py
thundergolfer/sudkamp-langs-machines-python
04e07758464891dd9815a9578cf158638bab8f24
[ "MIT" ]
8
2016-08-21T10:28:35.000Z
2017-05-30T12:33:50.000Z
sudkampPython/transitions/extensions/diagrams.py
thundergolfer/sudkamp-langs-machines-python
04e07758464891dd9815a9578cf158638bab8f24
[ "MIT" ]
1
2018-02-27T05:10:19.000Z
2018-02-27T05:10:19.000Z
sudkampPython/transitions/extensions/diagrams.py
thundergolfer/sudkamp-langs-machines-python
04e07758464891dd9815a9578cf158638bab8f24
[ "MIT" ]
null
null
null
import abc from ..core import Machine from ..core import Transition from .nesting import NestedState try: import pygraphviz as pgv except: pgv = None import logging logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) class Diagram(object): def __init__(self, machine): ...
34.115942
111
0.562341
9ddf936faa7ba621e7a0b6c328e794576714fc89
5,886
py
Python
inferencia/task/object_detection/object_detection_2d/model/model/yolo_v4/yolo_v4.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
null
null
null
inferencia/task/object_detection/object_detection_2d/model/model/yolo_v4/yolo_v4.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
5
2021-07-25T23:19:29.000Z
2021-07-26T23:35:13.000Z
inferencia/task/object_detection/object_detection_2d/model/model/yolo_v4/yolo_v4.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
1
2021-09-18T12:06:13.000Z
2021-09-18T12:06:13.000Z
import os.path as osp from typing import Union import numpy as np import onnxruntime from .process import (pre_process, post_processing, validate_bbox) from ...object_detection_2d_model import ObjectDetection2DModel from ...object_detection_2d_result import ObjectDetection...
42.963504
124
0.497282
b02b1165e6480c616876d118d7207e9535e5f4bc
1,297
py
Python
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
# example_consumer.py import pika, os, csv from datetime import datetime from influxdb_client import InfluxDBClient, Point, WritePrecision from influxdb_client.client.write_api import SYNCHRONOUS # You can generate a Token from the "Tokens Tab" in the UI token = "MlUoRzyipVkKqyGSjil7696heOcs8s4JDI_IVNWKqvZ5_eVAbaht16...
30.880952
98
0.760216
38e850630e4cfe3a5f24315791c77ffeed270f2b
93
py
Python
PeopleApp/apps.py
kshitij1234/Chemisty-Department-Website
44848fe213aa47e8c02ca612f81c2b49a28b09d1
[ "MIT" ]
null
null
null
PeopleApp/apps.py
kshitij1234/Chemisty-Department-Website
44848fe213aa47e8c02ca612f81c2b49a28b09d1
[ "MIT" ]
null
null
null
PeopleApp/apps.py
kshitij1234/Chemisty-Department-Website
44848fe213aa47e8c02ca612f81c2b49a28b09d1
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PeopleappConfig(AppConfig): name = 'PeopleApp'
15.5
33
0.763441
ab25b3f55aff45b478aab95b4c4a8b7c92c46c97
578
py
Python
ecc/wsgi.py
SocialGouv/ecollecte
1bfce2e0700b563c111c11452356b46ecb2630e4
[ "MIT" ]
9
2018-11-28T07:36:37.000Z
2022-02-04T12:56:11.000Z
ecc/wsgi.py
betagouv/e-controle
b6f790ca2590ac257a47930a1e521b86ce3edb29
[ "MIT" ]
154
2018-11-22T14:41:17.000Z
2022-02-12T08:48:57.000Z
ecc/wsgi.py
betagouv/e-controle
b6f790ca2590ac257a47930a1e521b86ce3edb29
[ "MIT" ]
10
2018-11-13T06:57:10.000Z
2022-03-21T13:04:49.000Z
""" WSGI config for ecc 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/1.11/howto/deployment/wsgi/ """ from dotenv import load_dotenv import os from django.core.wsgi import get_wsgi_application os.envi...
26.272727
78
0.783737
10baf7eab1fdec4f200569729042a0744c2c5450
10,462
py
Python
awx/main/tests/unit/api/test_generics.py
doziya/ansible
96f7371493043e2ae596d059f2ca990bd0a28ad5
[ "Apache-2.0" ]
1
2021-06-11T20:01:06.000Z
2021-06-11T20:01:06.000Z
awx/main/tests/unit/api/test_generics.py
doziya/ansible
96f7371493043e2ae596d059f2ca990bd0a28ad5
[ "Apache-2.0" ]
4
2020-04-29T23:03:16.000Z
2022-03-01T23:56:09.000Z
awx/main/tests/unit/api/test_generics.py
doziya/ansible
96f7371493043e2ae596d059f2ca990bd0a28ad5
[ "Apache-2.0" ]
1
2018-06-06T08:47:22.000Z
2018-06-06T08:47:22.000Z
# Python import pytest import mock # DRF from rest_framework import status from rest_framework.response import Response from rest_framework.exceptions import PermissionDenied # AWX from awx.api.generics import ( ParentMixin, SubListCreateAttachDetachAPIView, SubListAttachDetachAPIView, DeleteLastUnattach...
38.322344
167
0.72749
5323ee5f0bc84c5f271292d8f06c3d6719f38ef6
3,254
py
Python
train_model.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
6
2021-01-11T11:32:27.000Z
2022-03-10T00:41:26.000Z
train_model.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2022-03-09T05:57:29.000Z
2022-03-09T05:57:29.000Z
train_model.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2021-08-17T13:45:00.000Z
2021-08-17T13:45:00.000Z
import os from itertools import islice import matplotlib.pyplot as plt import pandas as pd from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.optimizers import Adam from data_utils import labels_to_number, videos_to_dict from frame_generator import VideoFrameGenerator from models import crea...
28.051724
76
0.710817
b9855db19e535ccb62accb0305b2a93047b61981
5,171
py
Python
docs/conf.py
jiayeguo/geometry_analysis
c6c7073c9ad36d1a736e0cd8b03aac5f8f41bfb0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jiayeguo/geometry_analysis
c6c7073c9ad36d1a736e0cd8b03aac5f8f41bfb0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jiayeguo/geometry_analysis
c6c7073c9ad36d1a736e0cd8b03aac5f8f41bfb0
[ "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 ------------------------------------------------------------...
31.339394
92
0.65674
49b9b9ee59f5fdaff4046d2046ccc5f4c38ad039
733
py
Python
utils/birthday.py
DylanTracey/Quantifying-the-Privacy-Techniques-of-Adblockers
0bb272beb26207b914d610fa0f66eb6543285d7f
[ "MIT" ]
null
null
null
utils/birthday.py
DylanTracey/Quantifying-the-Privacy-Techniques-of-Adblockers
0bb272beb26207b914d610fa0f66eb6543285d7f
[ "MIT" ]
1
2019-07-27T13:55:19.000Z
2019-07-27T13:55:19.000Z
utils/birthday.py
DylanTracey/Quantifying-the-Privacy-Techniques-of-Adblockers
0bb272beb26207b914d610fa0f66eb6543285d7f
[ "MIT" ]
null
null
null
# from https://en.wikipedia.org/wiki/Birthday_attack#Source_code_example from math import log1p, sqrt from settings import r def birthday(probability_exponent, bits): """ Used to estimate the probability cookie segments will clash. Then multiply this result with the likelihood that two of the same first ...
30.541667
119
0.728513
55f9fa17f54e9d3bc1d51b02de71ce3efd3a2a49
6,496
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_partition_key_range_id_region_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-03-24T21:06:20.000Z
2021-03-24T21:07:58.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_partition_key_range_id_region_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_partition_key_range_id_region_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 ...
48.118519
285
0.651016
2f08b0790e55ffcf38737bdf17a16005d6573a1c
284
py
Python
course/2of5/exercise/exercise_7_1.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
course/2of5/exercise/exercise_7_1.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
course/2of5/exercise/exercise_7_1.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
file_name = raw_input("Enter a file with the absolte path: ") #file_text = open('/home/anabrs1/Python_material/code/mbox-short.txt') try: file_text = open(file_name) except: print "You should insert the name with the path." exit() inp = file_text.read() INP = inp.upper() print INP
28.4
70
0.735915
263c78e11ddce5b64bb1483f049907a7db6040f7
525
py
Python
danceschool/discounts/migrations/0011_auto_20210127_2052.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/discounts/migrations/0011_auto_20210127_2052.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/discounts/migrations/0011_auto_20210127_2052.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
# Generated by Django 2.2.17 on 2021-01-28 01:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('discounts', '0010_merge_20191028_1925'), ] operations = [ migrations.AddField( model_name='registrationdiscount', n...
23.863636
79
0.619048
e4e076189eebfb4baa2277aa3e45531ac91ba2e7
3,348
py
Python
guardian/testapp/tests/conf.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
null
null
null
guardian/testapp/tests/conf.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
null
null
null
guardian/testapp/tests/conf.py
ellmetha/django-guardian
af822d75113d048c7686b5b8790a57113c9ef604
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals import os import django from guardian.compat import unittest from guardian.utils import abspath from django.conf import settings from django.conf import UserSettingsHolder from django.utils.functional import wraps THIS = abspath(os.path.dirname(__file__)) TEST_TEMPLATES_DIR = a...
33.818182
96
0.663082
09dc8962a98bb0f8a98e9fecbcc6fd9949cfc86f
3,198
py
Python
inferelator/tests/artifacts/test_stubs.py
gs512/inferelator
391223bd8d07476db72c4c7b1cd5fb5bf7494b9c
[ "BSD-2-Clause" ]
1
2019-05-13T23:12:48.000Z
2019-05-13T23:12:48.000Z
inferelator/tests/artifacts/test_stubs.py
gs512/inferelator
391223bd8d07476db72c4c7b1cd5fb5bf7494b9c
[ "BSD-2-Clause" ]
null
null
null
inferelator/tests/artifacts/test_stubs.py
gs512/inferelator
391223bd8d07476db72c4c7b1cd5fb5bf7494b9c
[ "BSD-2-Clause" ]
null
null
null
from inferelator import amusr_workflow from inferelator import workflow from inferelator.regression.base_regression import RegressionWorkflow from inferelator.postprocessing.results_processor import ResultsProcessor from inferelator.tests.artifacts.test_data import TestDataSingleCellLike, TEST_DATA, TEST_DATA_SPARSE fr...
30.75
115
0.688243
f495edcee4d902fae91fa76d6249eae3a265806a
13,954
py
Python
yolo_Mobilenet.py
dashings/keras-YOLOv3-mobilenet
a7f43f08acb24c31e2061b14a8c34f8e7d1dd18a
[ "MIT" ]
629
2018-09-05T20:05:04.000Z
2022-03-21T11:25:02.000Z
yolo_Mobilenet.py
dashings/keras-YOLOv3-mobilenet
a7f43f08acb24c31e2061b14a8c34f8e7d1dd18a
[ "MIT" ]
61
2018-09-10T21:05:54.000Z
2021-05-27T10:46:00.000Z
yolo_Mobilenet.py
dashings/keras-YOLOv3-mobilenet
a7f43f08acb24c31e2061b14a8c34f8e7d1dd18a
[ "MIT" ]
205
2018-09-06T07:02:36.000Z
2022-03-18T21:25:43.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Run a YOLO_v3 style detection model on test images. """ import colorsys import os from timeit import default_timer as timer import tensorflow as tf import numpy as np from keras import backend as K from keras.models import load_model from keras.layers imp...
41.778443
153
0.561416
c5108848d0cf13fc68ff8b17d69b0c030d413ddf
4,383
py
Python
src/ostorlab/runtimes/local/services/mq.py
ju-c/ostorlab
92c6edc204f3a0c32d0f28a37010cbeddb1818db
[ "Apache-2.0" ]
null
null
null
src/ostorlab/runtimes/local/services/mq.py
ju-c/ostorlab
92c6edc204f3a0c32d0f28a37010cbeddb1818db
[ "Apache-2.0" ]
null
null
null
src/ostorlab/runtimes/local/services/mq.py
ju-c/ostorlab
92c6edc204f3a0c32d0f28a37010cbeddb1818db
[ "Apache-2.0" ]
null
null
null
"""RabbitMQ service in charge of routing Agent messages.""" import binascii import logging import os from typing import Dict import docker import tenacity from docker import errors from docker import types from docker.models import services logger = logging.getLogger(__name__) MQ_IMAGE = 'rabbitmq:3.9-management' ...
35.346774
112
0.605749
4ccabd2598072f4daaa1494a93390120864b9529
2,621
py
Python
tools/create_live_composite.py
bitsawer/renpy-shader
6c750689a3d7952494a3b98a3297762bb4933308
[ "MIT" ]
45
2016-10-04T05:03:23.000Z
2022-02-09T13:20:38.000Z
tools/create_live_composite.py
bitsawer/renpy-shader
6c750689a3d7952494a3b98a3297762bb4933308
[ "MIT" ]
4
2016-10-04T13:35:15.000Z
2020-07-13T10:46:31.000Z
tools/create_live_composite.py
bitsawer/renpy-shader
6c750689a3d7952494a3b98a3297762bb4933308
[ "MIT" ]
10
2017-02-16T04:36:53.000Z
2021-04-10T08:31:29.000Z
""" Helper script for cropping images and creating a RenPy LiveComposite for them. Quite specific and mostly useful for processing images exported from a rendering program like Blender or from Photoshop layers. Requires Pillow Python image processing library to be installed. Command line example ...
32.7625
125
0.634872
3ff923b244efc6378c662d1f9e2fa1e4bbc9bf72
4,465
py
Python
examples/dump.py
joke325/Py3rop
e749715b61d805a838c75eb750480ae7d15944fd
[ "BSD-2-Clause" ]
null
null
null
examples/dump.py
joke325/Py3rop
e749715b61d805a838c75eb750480ae7d15944fd
[ "BSD-2-Clause" ]
null
null
null
examples/dump.py
joke325/Py3rop
e749715b61d805a838c75eb750480ae7d15944fd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020 Janky <box@janky.tech> # All right reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
34.882813
90
0.606271
37e48938505b864e267daa0716d612c1171bbe4b
3,735
py
Python
h2o-py/tests/testdir_parser/pyunit_PUBDEV_5705_drop_columns_parser_gz_large.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2
2019-09-02T15:49:45.000Z
2019-09-02T16:01:58.000Z
h2o-py/tests/testdir_parser/pyunit_PUBDEV_5705_drop_columns_parser_gz_large.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2
2021-06-02T02:24:03.000Z
2021-11-15T17:51:49.000Z
h2o-py/tests/testdir_parser/pyunit_PUBDEV_5705_drop_columns_parser_gz_large.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2021-05-23T07:41:39.000Z
2021-05-23T07:41:39.000Z
from __future__ import print_function import sys sys.path.insert(1, "../../") import h2o from tests import pyunit_utils import random def import_zip_skipped_columns(): # checking out zip file airlineFull = h2o.import_file(path=pyunit_utils.locate("smalldata/jira/adult.gz")) filePath = pyunit_utils.locate(...
41.043956
130
0.658099
d0e0bdb2114c615be1cee968a97083d3cc2a5e3a
1,701
py
Python
app/core/migrations/0001_initial.py
Caiphe/recipe-app-api
f7a9b9b1a2319f54b20779e521bcec94a1c7dae7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Caiphe/recipe-app-api
f7a9b9b1a2319f54b20779e521bcec94a1c7dae7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Caiphe/recipe-app-api
f7a9b9b1a2319f54b20779e521bcec94a1c7dae7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2020-08-01 04:38 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', f...
50.029412
266
0.637272
d768c8cb6c4972e7698729d195817b541afa6a39
1,378
py
Python
numba/cuda/tests/cudapy/test_nondet.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/cuda/tests/cudapy/test_nondet.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/cuda/tests/cudapy/test_nondet.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
import numpy as np from numba import cuda, float32, void from numba.cuda.testing import unittest, CUDATestCase def generate_input(n): A = np.array(np.arange(n * n).reshape(n, n), dtype=np.float32) B = np.array(np.arange(n) + 0, dtype=A.dtype) return A, B class TestCudaNonDet(CUDATestCase): def test_...
27.56
85
0.560958
cffcad09e26f08a28883039a50bd11651bc83a4b
6,831
py
Python
holoviews/plotting/plotly/callbacks.py
petros1999/holoviews
7499b421f349d141c7c05b18517198e0833773cf
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/plotly/callbacks.py
petros1999/holoviews
7499b421f349d141c7c05b18517198e0833773cf
[ "BSD-3-Clause" ]
1
2021-04-17T15:31:36.000Z
2021-04-17T15:31:36.000Z
holoviews/plotting/plotly/callbacks.py
petros1999/holoviews
7499b421f349d141c7c05b18517198e0833773cf
[ "BSD-3-Clause" ]
1
2020-06-02T09:16:36.000Z
2020-06-02T09:16:36.000Z
from weakref import WeakValueDictionary from param.parameterized import add_metaclass from ...streams import ( Stream, Selection1D, RangeXY, RangeX, RangeY, BoundsXY, BoundsX, BoundsY, SelectionXY ) from .util import _trace_to_subplot class PlotlyCallbackMetaClass(type): """ Metaclass for PlotlyCal...
31.334862
86
0.608549
be46144cf6e43548318ab5bb8a4495d5a5fcf30c
76
py
Python
pydfu/scanner.py
rrajaravi/pydfu
8a3847f5c34672ace75ba23b3b01f91e71650fc6
[ "MIT" ]
1
2020-02-05T08:38:21.000Z
2020-02-05T08:38:21.000Z
pydfu/scanner.py
rrajaravi/pydfs
8a3847f5c34672ace75ba23b3b01f91e71650fc6
[ "MIT" ]
null
null
null
pydfu/scanner.py
rrajaravi/pydfs
8a3847f5c34672ace75ba23b3b01f91e71650fc6
[ "MIT" ]
2
2019-08-23T03:14:37.000Z
2020-02-05T08:38:51.000Z
class Scanner(object): def run(self): print("Running scanner")
15.2
32
0.618421
24ccb750fdb871ed8d62e86af97387279b7facf3
17,033
py
Python
db/python/layers/family.py
jeremiahwander/sample-metadata
c494bf4bab3450c721cfb00d377c372d370852cb
[ "MIT" ]
null
null
null
db/python/layers/family.py
jeremiahwander/sample-metadata
c494bf4bab3450c721cfb00d377c372d370852cb
[ "MIT" ]
40
2021-05-05T23:53:36.000Z
2022-03-29T23:50:02.000Z
db/python/layers/family.py
jeremiahwander/sample-metadata
c494bf4bab3450c721cfb00d377c372d370852cb
[ "MIT" ]
2
2021-12-13T17:51:20.000Z
2022-02-23T22:46:57.000Z
# pylint: disable=used-before-assignment from typing import List, Union, Optional from db.python.connect import Connection from db.python.layers.base import BaseLayer from db.python.layers.participant import ParticipantLayer from db.python.tables.family import FamilyTable from db.python.tables.family_participant impor...
35.708595
104
0.567369
c92fa19098f3ba8a22a93e1551251c053740a11b
1,990
py
Python
tests/raw/test_instance_usable.py
johny-b/blargh
45bb94cad8c70b0cd5b0b4f1330682107051fb9d
[ "MIT" ]
null
null
null
tests/raw/test_instance_usable.py
johny-b/blargh
45bb94cad8c70b0cd5b0b4f1330682107051fb9d
[ "MIT" ]
3
2019-07-09T08:01:36.000Z
2020-07-08T10:18:52.000Z
tests/raw/test_instance_usable.py
johny-b/blargh
45bb94cad8c70b0cd5b0b4f1330682107051fb9d
[ "MIT" ]
null
null
null
''' Written/deleted instances should be no longer usable. This is a safeguard agains misusing Instance class. Single world().write() writes all instances, so even those not changed should become unusable. ''' from blargh.engine import world from blargh import exceptions from ..helpers.common import related from examp...
25.512821
73
0.686432
29161fb3c4c2ffc96106d360205ac4c60fb3b70b
1,146
py
Python
mysite/mathswizard/migrations/0002_auto_20171121_1551.py
JayH117/Final_Year_Project
73b31480738f1e957ee6e8f8be28df003732988a
[ "MIT" ]
null
null
null
mysite/mathswizard/migrations/0002_auto_20171121_1551.py
JayH117/Final_Year_Project
73b31480738f1e957ee6e8f8be28df003732988a
[ "MIT" ]
null
null
null
mysite/mathswizard/migrations/0002_auto_20171121_1551.py
JayH117/Final_Year_Project
73b31480738f1e957ee6e8f8be28df003732988a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-21 15:51 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swapp...
34.727273
122
0.604712
20fa748c452b56337e4b58b2ad34ade65622bf34
4,400
py
Python
test/functional/interface_bitcoin_cli.py
CampoDiFiori/bitcoinvault
9cba2b54d7564651192bae4f25b511f9bf97bfb0
[ "MIT" ]
23
2020-03-09T13:08:45.000Z
2021-04-22T09:39:25.000Z
test/functional/interface_bitcoin_cli.py
CampoDiFiori/bitcoinvault
9cba2b54d7564651192bae4f25b511f9bf97bfb0
[ "MIT" ]
7
2020-05-07T02:05:40.000Z
2020-08-07T10:15:21.000Z
test/functional/interface_bitcoin_cli.py
CampoDiFiori/bitcoinvault
9cba2b54d7564651192bae4f25b511f9bf97bfb0
[ "MIT" ]
24
2020-04-17T18:19:56.000Z
2022-01-25T10:39:30.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test bvault-cli""" from test_framework.test_framework import BitcoinTestFramework from test_framework.u...
55
160
0.695
89cc2db45a08fb2789c44b4dbdfd615b6dca7423
5,488
py
Python
classify.py
graviraja/pytorch-sample-codes
f5246c0d31a30302a5c9623f4354c8c2e0330d48
[ "MIT" ]
22
2019-07-24T03:15:48.000Z
2022-03-29T02:50:19.000Z
classify.py
graviraja/pytorch-sample-codes
f5246c0d31a30302a5c9623f4354c8c2e0330d48
[ "MIT" ]
6
2019-07-07T08:55:47.000Z
2021-03-16T04:10:30.000Z
classify.py
graviraja/pytorch-sample-codes
f5246c0d31a30302a5c9623f4354c8c2e0330d48
[ "MIT" ]
11
2019-12-05T09:09:23.000Z
2022-01-16T10:53:45.000Z
""" Char level RNN to classify words. We try to classify surnames from 18 languages. """ from __future__ import unicode_literals, print_function, division from io import open import glob import os import unicodedata import string import torch import torch.nn as nn import random import matplotlib.pyplot as plt import m...
29.505376
101
0.700437
728d4c8046a3ec0d3538d46549285e08b589de2e
2,533
py
Python
dateparser/data/date_translation_data/az-Cyrl.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
1,804
2015-01-01T23:01:54.000Z
2022-03-30T18:36:16.000Z
dateparser/data/date_translation_data/az-Cyrl.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
948
2015-01-04T22:18:39.000Z
2022-03-31T16:29:41.000Z
dateparser/data/date_translation_data/az-Cyrl.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
463
2015-01-10T08:53:39.000Z
2022-03-18T12:45:49.000Z
info = { "name": "az-Cyrl", "date_order": "DMY", "january": [ "јан", "јанвар" ], "february": [ "фев", "феврал" ], "march": [ "мар", "март" ], "april": [ "апр", "апрел" ], "may": [ "май" ], "june":...
14.988166
26
0.259376
082cba67f7507881569b97db419e839a1f675f7c
52,721
bzl
Python
tensorflow/workspace.bzl
lezh/tensorflow
7a4e9467cb1a6604a43dc0ebc3e77322511643b7
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
lezh/tensorflow
7a4e9467cb1a6604a43dc0ebc3e77322511643b7
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
lezh/tensorflow
7a4e9467cb1a6604a43dc0ebc3e77322511643b7
[ "Apache-2.0" ]
null
null
null
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/gpus:rocm_configure.bzl", "rocm_configure") load("//third_party/tensorrt:tensorrt_configure.bzl", "tensorrt_configure") load("//third_party/nccl:nccl_configure.b...
47.88465
203
0.684357
37a312574c011b4dd333ec54c5a8002e0fa61794
4,929
py
Python
components/google-cloud/google_cloud_pipeline_components/experimental/remote/gcp_launcher/custom_job_remote_runner.py
hanwgyu/pipelines
9f9830fef25be0fa88786d472933b914b55874b5
[ "Apache-2.0" ]
null
null
null
components/google-cloud/google_cloud_pipeline_components/experimental/remote/gcp_launcher/custom_job_remote_runner.py
hanwgyu/pipelines
9f9830fef25be0fa88786d472933b914b55874b5
[ "Apache-2.0" ]
null
null
null
components/google-cloud/google_cloud_pipeline_components/experimental/remote/gcp_launcher/custom_job_remote_runner.py
hanwgyu/pipelines
9f9830fef25be0fa88786d472933b914b55874b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 applicabl...
36.783582
90
0.683506
b9a93070899483801218efa0ac5e15f4f16de811
27,276
py
Python
lte/gateway/python/magma/pipelined/tests/test_uplink_bridge.py
hkshiv1/magma
1c91010f9726127b4702f9c85af2970fae7d5e2b
[ "BSD-3-Clause" ]
1
2021-08-08T15:49:05.000Z
2021-08-08T15:49:05.000Z
lte/gateway/python/magma/pipelined/tests/test_uplink_bridge.py
hkshiv1/magma
1c91010f9726127b4702f9c85af2970fae7d5e2b
[ "BSD-3-Clause" ]
143
2020-09-08T06:24:23.000Z
2022-03-29T05:56:53.000Z
lte/gateway/python/magma/pipelined/tests/test_uplink_bridge.py
hkshiv1/magma
1c91010f9726127b4702f9c85af2970fae7d5e2b
[ "BSD-3-Clause" ]
1
2021-12-10T22:41:05.000Z
2021-12-10T22:41:05.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
37.262295
86
0.60962
80f1141b757779cf6c0a7d62673920cc67f5aa66
2,354
py
Python
src/evaluation/MobilenetEvaluation.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
src/evaluation/MobilenetEvaluation.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
src/evaluation/MobilenetEvaluation.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
import logging import os import time import torch import torch.nn as nn from torch.utils.data import DataLoader from torchvision import transforms from ..interfaces import EvaluationStrategy from ..models.MobilenetV2 import TestMobilenetV2 from ..torch_utils import convert_samples_to_dataset, test_model logger = log...
33.15493
101
0.67672
af18c33a642d6877f9a9d9b94ce72e475e6a6263
122
py
Python
pluspacket/__init__.py
mami-project/PyPLUSPacket
6d51fa646801a58ca31adf6c13c6dab530e901fb
[ "BSD-2-Clause" ]
null
null
null
pluspacket/__init__.py
mami-project/PyPLUSPacket
6d51fa646801a58ca31adf6c13c6dab530e901fb
[ "BSD-2-Clause" ]
null
null
null
pluspacket/__init__.py
mami-project/PyPLUSPacket
6d51fa646801a58ca31adf6c13c6dab530e901fb
[ "BSD-2-Clause" ]
null
null
null
from pluspacket.packet import * if __name__ == "__main__": import tests import unittest unittest.main(module='tests')
17.428571
31
0.754098
b8d7132dbd7dcf2c4fab11d02573dc5b48b62c38
1,878
py
Python
dpm/distributions/kumaraswamy.py
nextBillyonair/DPM
840ffaafe15c208b200b74094ffa8fe493b4c975
[ "MIT" ]
1
2021-07-20T14:02:55.000Z
2021-07-20T14:02:55.000Z
dpm/distributions/kumaraswamy.py
nextBillyonair/DPM
840ffaafe15c208b200b74094ffa8fe493b4c975
[ "MIT" ]
null
null
null
dpm/distributions/kumaraswamy.py
nextBillyonair/DPM
840ffaafe15c208b200b74094ffa8fe493b4c975
[ "MIT" ]
null
null
null
import torch from torch.nn import Parameter import dpm.utils as utils from torch.nn.functional import softplus from .distribution import Distribution from .uniform import Uniform from .transform_distribution import TransformDistribution from dpm.transforms import Kumaraswamy as kumaraswamy_tform class Kumaraswamy(Dist...
31.830508
98
0.642705
03a87eccf09e8ef6696d8b620d69bd79b89b68d4
25,176
py
Python
tests/plugins/test_sql.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
tests/plugins/test_sql.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
tests/plugins/test_sql.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
import os import pytest import datetime import sqlalchemy as sa from frictionless import Table, Package, Resource, exceptions from frictionless.plugins.sql import SqlDialect, SqlStorage from dotenv import load_dotenv load_dotenv(".env") # Parser def test_table_sql(database_url): dialect = SqlDialect(table="dat...
34.869806
88
0.564665
8c59205f1e2c9bb33249be3b7cf547fb5e6477d2
9,122
py
Python
src/extensions/COMMANDS/StatusCommand.py
LaudateCorpus1/python-redfish-utility
75dbcde6e4495c2369008fc4f6dd5f78edd305db
[ "Apache-2.0" ]
null
null
null
src/extensions/COMMANDS/StatusCommand.py
LaudateCorpus1/python-redfish-utility
75dbcde6e4495c2369008fc4f6dd5f78edd305db
[ "Apache-2.0" ]
null
null
null
src/extensions/COMMANDS/StatusCommand.py
LaudateCorpus1/python-redfish-utility
75dbcde6e4495c2369008fc4f6dd5f78edd305db
[ "Apache-2.0" ]
null
null
null
### # Copyright 2016-2021 Hewlett Packard Enterprise, 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 # # Un...
38.982906
88
0.420851
4f711d085fd511e0364d4f914c46337657e67239
3,551
py
Python
rplugin/python3/padawan_navigator/__init__.py
phux/padawan-navigator
3a509232bfe530369cc83d26213612ee38f535b8
[ "Unlicense" ]
3
2017-11-27T03:28:13.000Z
2020-05-04T15:30:00.000Z
rplugin/python3/padawan_navigator/__init__.py
phux/padawan-navigator
3a509232bfe530369cc83d26213612ee38f535b8
[ "Unlicense" ]
null
null
null
rplugin/python3/padawan_navigator/__init__.py
phux/padawan-navigator
3a509232bfe530369cc83d26213612ee38f535b8
[ "Unlicense" ]
null
null
null
import neovim from os import path from urllib.error import URLError from socket import timeout import sys import re from padawan_navigator import server # noqa @neovim.plugin class PadawanNavigatorPlugin(object): def __init__(self, vim): self.vim = vim self.current = vim.current server_add...
36.608247
92
0.610532
40e33a38a5c5be25d709329cfeaf79ee56702bdc
7,117
py
Python
data/data_utils.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
data/data_utils.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2020-11-23T16:32:11.000Z
data/data_utils.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from typing import Union, Tuple from loguru import logger from scipy import stats from scipy.signal import medfilt from fcutils.maths.signals import get_onset_offset from data.debug_utils import plot_signal_and_events KEYS = ( "x", "y", "segment", "global_coord"...
29.53112
106
0.627933
50fc61ebea570abfaaf60a69ebcf1da44827505f
52
py
Python
forms/__init__.py
kashifpk/pyckapps.visit_counter
e9769817b7259422307c382e0dea1ccb2cdd4d5f
[ "Apache-2.0" ]
2
2015-01-11T22:23:58.000Z
2016-05-17T06:57:57.000Z
forms/__init__.py
kashifpk/pyckapps.visit_counter
e9769817b7259422307c382e0dea1ccb2cdd4d5f
[ "Apache-2.0" ]
31
2015-01-14T11:30:50.000Z
2017-01-31T14:35:48.000Z
temp/newapp_scaffold/forms/__init__.py
kashifpk/PyCK
11513c6b928d37afcf83de717e8d2f74fce731af
[ "Ruby" ]
null
null
null
#from myforms import MyForm #__all__ = ['MyForm',]
13
27
0.692308
0082af62285df20ee8f30c9f1e5d00e2c62d6307
36
py
Python
7KYU/add_v2.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/add_v2.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/add_v2.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
add = lambda a: lambda b: a + b
18
31
0.527778
433714211d30d91ff6c24b554868309de11fc025
786
py
Python
Python/StackMin.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/StackMin.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/StackMin.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
###Designing Stack with O(1) min,pop,push class Node(obj): def __init__(self,data=None,next_node=None): self.data = data self.next_node = next_node self.min = None def get_val(self): return self.data def get_next(self): return self.next_node def set_nex...
24.5625
48
0.529262
902f003207f59e2fe2b9c9f73c13ad6fd050607e
3,640
py
Python
scripts/artifacts/chromeDownloads.py
f0r3ns1cat0r/ALEAPP
cd7eb4e7fea6f70fbf336382eeec47fda91f61d3
[ "MIT" ]
187
2020-02-22T23:35:32.000Z
2022-03-31T13:46:24.000Z
scripts/artifacts/chromeDownloads.py
f0r3ns1cat0r/ALEAPP
cd7eb4e7fea6f70fbf336382eeec47fda91f61d3
[ "MIT" ]
65
2020-02-25T18:22:47.000Z
2022-03-27T21:41:21.000Z
scripts/artifacts/chromeDownloads.py
f0r3ns1cat0r/ALEAPP
cd7eb4e7fea6f70fbf336382eeec47fda91f61d3
[ "MIT" ]
47
2020-02-24T22:33:35.000Z
2022-03-11T05:19:42.000Z
import os import sqlite3 import textwrap from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, get_next_unused_name, does_column_exist_in_db, open_sqlite_db_readonly def get_browser_name(file_name): if 'microsoft' in file_name.lower(): ...
40.898876
145
0.613462
a22a538527e81ed9317c1e43e3928643133fde0b
15,095
py
Python
polysquarecmakelinter/find_variables_in_scopes.py
polysquare/polysquare-cmake-linter
83f2f12d562b461f9d5bb700b0a17aa9f99751e0
[ "MIT" ]
5
2016-08-15T15:25:53.000Z
2022-03-31T15:49:37.000Z
polysquarecmakelinter/find_variables_in_scopes.py
polysquare/polysquare-cmake-linter
83f2f12d562b461f9d5bb700b0a17aa9f99751e0
[ "MIT" ]
6
2015-01-01T17:05:25.000Z
2018-02-01T02:31:09.000Z
polysquarecmakelinter/find_variables_in_scopes.py
polysquare/polysquare-cmake-linter
83f2f12d562b461f9d5bb700b0a17aa9f99751e0
[ "MIT" ]
1
2021-01-06T17:32:09.000Z
2021-01-06T17:32:09.000Z
# /polysquarecmakelinter/find_variables_in_scopes.py # # Find all variables and order by scope. Scoping in CMake is a bit strange, # by default, all variables will have function scope, or failing that, global # scope. Any variable set by foreach as a loop variable has scope only within # that loop. Macro arguments have...
34.861432
79
0.585426
89aa1a222185d1b2aae3e086a9a34a9f6e1cd4e3
5,537
py
Python
keras/resnet/resnet_s56.py
rjuppa/vmmr
a968b869e00fe46ef862fe794b063318a66c894f
[ "MIT" ]
null
null
null
keras/resnet/resnet_s56.py
rjuppa/vmmr
a968b869e00fe46ef862fe794b063318a66c894f
[ "MIT" ]
null
null
null
keras/resnet/resnet_s56.py
rjuppa/vmmr
a968b869e00fe46ef862fe794b063318a66c894f
[ "MIT" ]
null
null
null
from __future__ import print_function import math, json, os, pickle, sys import keras from keras.callbacks import CSVLogger, EarlyStopping, ModelCheckpoint, LambdaCallback from keras.layers import Dense, Dropout, Flatten, GlobalMaxPooling2D from keras.models import Model, Sequential from keras.optimizers import SGD, A...
36.668874
99
0.611161
39a11f844a67ccdae0c884f92ae57301d5a91156
3,901
py
Python
algos/GLASSO/cuda_GISTA.py
GalSha/GLASSO_Framework
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
[ "BSD-3-Clause" ]
null
null
null
algos/GLASSO/cuda_GISTA.py
GalSha/GLASSO_Framework
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
[ "BSD-3-Clause" ]
null
null
null
algos/GLASSO/cuda_GISTA.py
GalSha/GLASSO_Framework
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
[ "BSD-3-Clause" ]
null
null
null
from numpy import inf from numpy import linalg from algos.GLASSO.base import base from utils.common import cp_soft_threshold from utils.GLASSO.glasso import cuda_objective_f_cholesky class cuda_GISTA(base): def __init__(self, T, N, lam, ls_iter, step_lim): super(cuda_GISTA, self).__init__(T, N, lam) ...
34.830357
141
0.561907
70fbc8e2a17ec307f5572a9f0a9f8601361228f0
255
py
Python
oauth_client/manage.py
brollins90/dsOauth
fb1aeba08286854cdec9d1b3afede64404cce119
[ "MIT" ]
null
null
null
oauth_client/manage.py
brollins90/dsOauth
fb1aeba08286854cdec9d1b3afede64404cce119
[ "MIT" ]
null
null
null
oauth_client/manage.py
brollins90/dsOauth
fb1aeba08286854cdec9d1b3afede64404cce119
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oauth_client.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.181818
76
0.776471
fa2dc4b4f5f6ee2af16a54413dc7d846818c5466
3,181
py
Python
personalapp/personalapp/settings.py
mnithya/mypersonalapp
7a99ce9306107e66a88222bd876164ce813c1835
[ "MIT" ]
null
null
null
personalapp/personalapp/settings.py
mnithya/mypersonalapp
7a99ce9306107e66a88222bd876164ce813c1835
[ "MIT" ]
null
null
null
personalapp/personalapp/settings.py
mnithya/mypersonalapp
7a99ce9306107e66a88222bd876164ce813c1835
[ "MIT" ]
null
null
null
""" Django settings for personalapp project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import o...
26.07377
91
0.700094
24e74e0acfc5c08cd264ca27698cd03dee80c38f
267
py
Python
exercicios/Lista1/Q21.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista1/Q21.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista1/Q21.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
#Leia um valor de massa em libras e apresente-o convertido em quilogramas. #A formula de conversao eh: K=L*0.45 , #Sendo K a massa em quilogramas e L a massa em libras. l=float(input("Informe a massa em libras: ")) k=l*0.45 print(f"O peso convertido em KG eh {k}")
29.666667
74
0.719101
e3304d55e263566a2adac7ca3d08576c8498fa85
4,426
py
Python
extensions/adm/templates/5-todo/__init__.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/adm/templates/5-todo/__init__.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/adm/templates/5-todo/__init__.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
# # Sample Todo module # """ Your license message ... """ import os, bottle, json, datetime from appmodule import AppModule from .modeldb import setupDB, Todo, MyS class MyAppModule(AppModule): def init(self): DSN = self.module_config.get('DSN') try: setupDB(DSN) except: ...
28.012658
118
0.504745
a76a006508a345656b9a3d417222fcd850288638
6,009
py
Python
python/dgl/nn/pytorch/conv/agnnconv.py
gvvynplaine/dgl
6294677f8acc6bc040baf922910473e1c82995ba
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/conv/agnnconv.py
gvvynplaine/dgl
6294677f8acc6bc040baf922910473e1c82995ba
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/conv/agnnconv.py
gvvynplaine/dgl
6294677f8acc6bc040baf922910473e1c82995ba
[ "Apache-2.0" ]
null
null
null
"""Torch Module for Attention-based Graph Neural Network layer""" # pylint: disable= no-member, arguments-differ, invalid-name import torch as th from torch import nn from torch.nn import functional as F from .... import function as fn from ....ops import edge_softmax from ....base import DGLError from ....utils impor...
40.06
95
0.560825
99b1c097234f4402a0e4c4efbbab2058723dabe0
962
py
Python
.github/actions/pr-to-update-go/pr_to_update_go/__main__.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-03-07T06:11:30.000Z
2021-03-07T06:11:30.000Z
.github/actions/pr-to-update-go/pr_to_update_go/__main__.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-03-02T10:45:10.000Z
2022-03-02T10:45:10.000Z
.github/actions/pr-to-update-go/pr_to_update_go/__main__.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
29.151515
74
0.77027
ea2e6d3b745c8a8d0805db680a800afb8487f777
3,259
py
Python
src/helpers/init_helper.py
wqliu657/DSNet
1804176e2e8b57846beb063667448982273fca89
[ "MIT" ]
113
2020-12-04T21:27:34.000Z
2022-03-31T11:09:51.000Z
src/helpers/init_helper.py
wqliu657/DSNet
1804176e2e8b57846beb063667448982273fca89
[ "MIT" ]
23
2021-02-26T15:15:36.000Z
2022-03-24T12:37:08.000Z
src/helpers/init_helper.py
wqliu657/DSNet
1804176e2e8b57846beb063667448982273fca89
[ "MIT" ]
34
2020-12-19T08:38:29.000Z
2022-02-25T05:49:43.000Z
import argparse import logging import random from pathlib import Path import numpy as np import torch def set_random_seed(seed: int) -> None: random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) def init_logger(log_dir: str, log_file: str) -> None: logger = logging.getLogger() format_...
37.034091
77
0.641608
1301902f1173642def2cbb021ca679a5f33efa76
3,684
py
Python
src/npc/careers4.py
Monarda/monarda_bot
2eb2fa9726a6eeee19b56dd3cb39fcfba744c0aa
[ "MIT" ]
null
null
null
src/npc/careers4.py
Monarda/monarda_bot
2eb2fa9726a6eeee19b56dd3cb39fcfba744c0aa
[ "MIT" ]
null
null
null
src/npc/careers4.py
Monarda/monarda_bot
2eb2fa9726a6eeee19b56dd3cb39fcfba744c0aa
[ "MIT" ]
null
null
null
import json import importlib.resources from ... import data with importlib.resources.open_text(data,'careers.json') as f: _careers_data = json.load(f) class Careers4: # Load data about careers, talents and skills def __init__(self): pass def __complex_stuff(self): self._skills_to_car...
34.754717
89
0.587676
8cdbde45a2bf3b396d871150b7723d333093c229
63,576
py
Python
antlir/subvol_utils.py
baioc/antlir
e3b47407b72c4aee835adf4e68fccd9abff457f2
[ "MIT" ]
null
null
null
antlir/subvol_utils.py
baioc/antlir
e3b47407b72c4aee835adf4e68fccd9abff457f2
[ "MIT" ]
null
null
null
antlir/subvol_utils.py
baioc/antlir
e3b47407b72c4aee835adf4e68fccd9abff457f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import functools import logging import os import platform import subprocess import sys import time from contextlib impo...
44.427673
161
0.580927
6fdd2848b27c6e4876044a9445fcc1160f388ae1
11,486
py
Python
PaddleCV/face_detection/reader.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2021-09-13T06:48:23.000Z
2021-09-13T06:48:28.000Z
PaddleCV/face_detection/reader.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
null
null
null
PaddleCV/face_detection/reader.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
1
2019-08-05T11:32:13.000Z
2019-08-05T11:32:13.000Z
# Copyright (c) 2016 PaddlePaddle 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 applic...
35.341538
79
0.555024
47c0202c47c940e1944ff5f13a0699805b520031
12,474
py
Python
nose2/tests/unit/test_junitxml.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
637
2015-01-12T02:02:53.000Z
2022-03-30T19:47:48.000Z
nose2/tests/unit/test_junitxml.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
276
2015-01-02T19:14:06.000Z
2022-03-18T04:03:08.000Z
nose2/tests/unit/test_junitxml.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
127
2015-01-08T12:02:10.000Z
2022-01-10T20:52:29.000Z
import logging import os import sys import unittest from xml.etree import ElementTree as ET import six from nose2 import events, loader, result, session, tools from nose2.plugins import junitxml, logcapture from nose2.plugins.loader import functions, generators, parameters, testcases from nose2.tests._common import T...
37.347305
88
0.619929
7e8a0f4711924eac5ecc2c462974277910cb215c
24,225
py
Python
ironic/tests/unit/api/controllers/v1/test_driver.py
inmotionhosting/ironic
1c7b5f82592e23ab66dddca56e0b059d3cb0710b
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/api/controllers/v1/test_driver.py
inmotionhosting/ironic
1c7b5f82592e23ab66dddca56e0b059d3cb0710b
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/api/controllers/v1/test_driver.py
inmotionhosting/ironic
1c7b5f82592e23ab66dddca56e0b059d3cb0710b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, 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...
45.027881
79
0.623942
97d49d77635d16780fe3a592b4f2c1e5959b3d3b
12,223
py
Python
chives/cmds/passphrase_funcs.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
75
2021-06-27T03:30:59.000Z
2022-03-20T12:32:55.000Z
chives/cmds/passphrase_funcs.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
39
2021-07-02T07:11:24.000Z
2022-03-20T15:00:07.000Z
chives/cmds/passphrase_funcs.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
41
2021-06-24T11:24:43.000Z
2022-03-14T16:11:38.000Z
import click import colorama import os import sys from chives.daemon.client import acquire_connection_to_daemon from chives.util.keychain import Keychain, obtain_current_passphrase, supports_os_passphrase_storage from chives.util.keyring_wrapper import DEFAULT_PASSPHRASE_IF_NO_MASTER_PASSPHRASE from chives.util.misc i...
36.377976
120
0.681338
edb74dda031c12c52bddafbd203becff985c047e
2,905
py
Python
release/stubs.min/System/Net/__init___parts/OpenWriteCompletedEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Net/__init___parts/OpenWriteCompletedEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Net/__init___parts/OpenWriteCompletedEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class OpenWriteCompletedEventHandler(MulticastDelegate,ICloneable,ISerializable): """ Represents the method that will handle the System.Net.WebClient.OpenWriteCompleted event of a System.Net.WebClient. OpenWriteCompletedEventHandler(object: object,method: IntPtr) """ def BeginInvoke(self,sender,e,callb...
30.578947
215
0.723236
cc68f78ef97c96240df40aef807b0d575995cfbb
2,515
py
Python
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/list_managed_cluster_admin_credentials.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/list_managed_cluster_admin_credentials.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/list_managed_cluster_admin_credentials.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.106061
187
0.716103
9459fc97d6d704861f68ff2cbecb32c5b6e0e84a
48,801
py
Python
venv/Lib/site-packages/PyQt4/examples/tools/i18n/i18n_rc.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/tools/i18n/i18n_rc.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/tools/i18n/i18n_rc.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Sat 2. Mar 10:35:48 2013 # by: The Resource Compiler for PyQt (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x03\x4c\ \x3c\ \xb8\x64\x18\xca\xef\x9c\x95\xcd\x21\x1c\xbf\x60\x...
59.152727
96
0.725374
00fa955043ccf40e0e6edc6b528b09cf03de6ad4
369
py
Python
Q3a.py
Gerrydh/Algor
de9a63421b21876f61af49749e76e14dd57e233b
[ "Apache-2.0" ]
null
null
null
Q3a.py
Gerrydh/Algor
de9a63421b21876f61af49749e76e14dd57e233b
[ "Apache-2.0" ]
null
null
null
Q3a.py
Gerrydh/Algor
de9a63421b21876f61af49749e76e14dd57e233b
[ "Apache-2.0" ]
null
null
null
def contains_duplicates(elements): for i in range(0, len(elements)): for j in range (0, len(elements)): if i == j: continue if elements[i] == elements[j]: return True return False test1 = [10, 0, 5, 3, -19, 5] test2 = [0, 1, 0, -12...
26.357143
43
0.509485
b73e37910bb084e49a4ba4499a04b41b74847fe3
3,306
py
Python
platypush/backend/http/app/routes/plugins/sound/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/backend/http/app/routes/plugins/sound/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/backend/http/app/routes/plugins/sound/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
import os import tempfile from flask import Response, Blueprint, request from platypush.backend.http.app import template_folder from platypush.backend.http.app.utils import authenticate, send_request sound = Blueprint('sound', __name__, template_folder=template_folder) # Declare routes list __routes__ = [ sound...
44.08
114
0.543255
31fa8f2ee2fc407e8a100ccee171cede4eb18399
9,929
py
Python
generate_maps_for_testing.py
abhiagni11/Deep-Learning-SDM
a0c30bf957543cac07f656b0edb23b52990af290
[ "MIT" ]
2
2019-02-12T12:15:54.000Z
2019-03-10T02:37:37.000Z
generate_maps_for_testing.py
abhiagni11/Deep-Learning-SDM
a0c30bf957543cac07f656b0edb23b52990af290
[ "MIT" ]
null
null
null
generate_maps_for_testing.py
abhiagni11/Deep-Learning-SDM
a0c30bf957543cac07f656b0edb23b52990af290
[ "MIT" ]
2
2019-04-03T19:15:05.000Z
2019-11-05T00:46:52.000Z
#!/usr/bin/env python ''' This file contains the procedure for map generation Author: Manish Saroya Contact: saroyam@oregonstate.edu DARPA SubT Challenge ''' import matplotlib.pyplot as plt import numpy as np import heapq import random class PriorityQueue: def __init__(self): self.elements = [] def...
33.887372
106
0.509618
361702569f575abffc83ac5ffaccbb311bea382a
1,857
py
Python
pip/commands/completion.py
methane/pip
ee44e13716cb8dad3b52f0ab222eb2c7ce107e48
[ "MIT" ]
1
2019-03-26T02:49:16.000Z
2019-03-26T02:49:16.000Z
pip/commands/completion.py
methane/pip
ee44e13716cb8dad3b52f0ab222eb2c7ce107e48
[ "MIT" ]
null
null
null
pip/commands/completion.py
methane/pip
ee44e13716cb8dad3b52f0ab222eb2c7ce107e48
[ "MIT" ]
null
null
null
import sys from pip.basecommand import Command BASE_COMPLETION = """ # pip %(shell)s completion start%(script)s# pip %(shell)s completion end """ COMPLETION_SCRIPTS = { 'bash': """ _pip_completion() { COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \\ COMP_CWORD=$COMP_CWORD \\ ...
30.442623
86
0.581583
dd15a06d3511f5b87603fe30c94213bc2ed4328d
25,218
py
Python
iceprod/core/pilot.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
2
2017-01-23T17:12:41.000Z
2019-01-14T13:38:17.000Z
iceprod/core/pilot.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
242
2016-05-09T18:46:51.000Z
2022-03-31T22:02:29.000Z
iceprod/core/pilot.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
2
2017-03-27T09:13:40.000Z
2019-01-27T10:55:30.000Z
"""Pilot functionality""" from __future__ import absolute_import, division, print_function import os import sys import math import time import logging import tempfile import shutil import random from functools import partial from collections import namedtuple from datetime import datetime, timedelta from glob import ...
43.705373
111
0.486795
356d6fea8495f543f83188dadbb78f18302e720c
1,595
py
Python
src/pandas_profiling/utils/cache.py
abhicantdraw/pandas-profiling
a12ebb7a94b9371df94bf611237a389d99f8bc00
[ "MIT" ]
8,107
2018-01-07T23:27:39.000Z
2022-02-22T12:57:11.000Z
src/pandas_profiling/utils/cache.py
abhicantdraw/pandas-profiling
a12ebb7a94b9371df94bf611237a389d99f8bc00
[ "MIT" ]
771
2018-01-06T11:33:08.000Z
2022-02-21T11:16:02.000Z
src/pandas_profiling/utils/cache.py
abhicantdraw/pandas-profiling
a12ebb7a94b9371df94bf611237a389d99f8bc00
[ "MIT" ]
1,308
2018-01-08T21:22:08.000Z
2022-02-21T04:10:21.000Z
"""Dataset cache utility functions""" import zipfile from pathlib import Path import requests from pandas_profiling.utils.paths import get_data_path def cache_file(file_name: str, url: str) -> Path: """Check if file_name already is in the data path, otherwise download it from url. Args: file_name: ...
24.538462
86
0.668339
2d5699dbc784663a74de61b54b51a303b70a858f
12,612
py
Python
geoq/maps/views.py
mikiec84/geoq
84bf1349b4049c9ab41b88a36fd0d61837b509b5
[ "MIT" ]
null
null
null
geoq/maps/views.py
mikiec84/geoq
84bf1349b4049c9ab41b88a36fd0d61837b509b5
[ "MIT" ]
4
2021-06-10T23:08:33.000Z
2022-03-12T00:39:28.000Z
geoq/maps/views.py
mikiec84/geoq
84bf1349b4049c9ab41b88a36fd0d61837b509b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) import json from django.contrib.auth.decorators import login_required from django.contri...
36.556522
183
0.646131
c407e6eac3604e3fbe1a387c14190203c23ef54e
385
py
Python
datahub/search/test/search_support/simplemodel/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/search/test/search_support/simplemodel/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/search/test/search_support/simplemodel/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from rest_framework import serializers from datahub.search.serializers import EntitySearchQuerySerializer class SearchSimpleModelSerializer(EntitySearchQuerySerializer): """Serialiser used to validate simple model search POST bodies.""" name = serializers.CharField(required=False) country = serializers....
29.615385
70
0.792208
56407d7f71f5fc360aa3d3311b76d5eca89f51e9
199
py
Python
python/qipy/test/projects/big_project/spam.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qipy/test/projects/big_project/spam.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qipy/test/projects/big_project/spam.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. def spam(): print "spam"
24.875
72
0.723618
9b71eb4c0d83623a28af7a3d1719c13b995a78b8
128
py
Python
compsocsite/groups/apps.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
8
2017-03-07T19:46:51.000Z
2021-06-01T01:41:37.000Z
compsocsite/groups/apps.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
null
null
null
compsocsite/groups/apps.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
9
2016-06-09T03:36:20.000Z
2019-09-11T20:56:23.000Z
from __future__ import unicode_literals from django.apps import AppConfig class GroupsConfig(AppConfig): name = 'groups'
16
39
0.789063
edcf4a668697d20542a3285fbd2024ae6da637fa
24,766
py
Python
python/tvm/testing.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
32
2021-12-09T07:55:32.000Z
2022-03-29T12:20:52.000Z
python/tvm/testing.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2019-10-22T21:09:49.000Z
2019-10-22T21:09:49.000Z
python/tvm/testing.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2019-10-22T08:48:21.000Z
2022-02-19T02:17:50.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 u...
32.247396
97
0.627877
ad352ec4cf76e78a60fbac2aad46554d61210be8
35,941
py
Python
astropy/io/fits/tests/test_connect.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_connect.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_connect.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
import gc import pathlib import warnings import pytest import numpy as np from numpy.testing import assert_allclose, assert_array_equal from astropy.io.fits.column import (_parse_tdisp_format, _fortran_to_python_format, python_to_tdisp) from astropy.io.fits import HDUList, Primary...
39.845898
116
0.58699
1cb80c0ce61c5a98818e4a429c09f9a77de9aa99
1,779
py
Python
myerp/nael/series.py
Ouahdani/myerp
9c14f193b6cab26968df088c18c8e745e75844b6
[ "MIT" ]
null
null
null
myerp/nael/series.py
Ouahdani/myerp
9c14f193b6cab26968df088c18c8e745e75844b6
[ "MIT" ]
null
null
null
myerp/nael/series.py
Ouahdani/myerp
9c14f193b6cab26968df088c18c8e745e75844b6
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr from frappe import msgprint, throw, _ from frappe.model.document import Document from frappe.model.naming ...
33.566038
82
0.722878
1db77e4ca8fbfedba603bc7188cc7d5007e5d762
3,721
py
Python
pymatviz/correlation.py
janosh/pymatviz
17742d161151db1f9e1d615e6f19a3eac678be27
[ "MIT" ]
null
null
null
pymatviz/correlation.py
janosh/pymatviz
17742d161151db1f9e1d615e6f19a3eac678be27
[ "MIT" ]
8
2022-03-01T21:11:01.000Z
2022-03-20T16:46:46.000Z
pymatviz/correlation.py
janosh/pymatviz
17742d161151db1f9e1d615e6f19a3eac678be27
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from matplotlib.axes import Axes from pymatviz.utils import NumArray def marchenko_pastur_pdf(x: float, gamma: float, sigma: float = 1) -> float: """The Marchenko-Pastur probability density function describes the distribution of singular values of large...
37.585859
87
0.667831
9146d8a404a7bc18bf0bae5451d02232c9090827
977
py
Python
geni-lib/samples/userdata.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
geni-lib/samples/userdata.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
geni-lib/samples/userdata.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import geni.portal as portal import geni.rspec.pg as rspec import geni.rspec.igext as IG import geni.rspec.emulab as emulab from lxml import etree as ET pc = portal.Context() request = rspec.Request() pc.defineParameter("param1", "dsc1", portal.ParameterType.INTEGER, 1) pc.defineParameter("par...
23.829268
75
0.756397
73e9e4d8944439ed2bb807e81cd7d9d4db3b4ff7
1,537
py
Python
tests/properties_search_test.py
FabianoBFCarvalho/api-python
fbe8005da2207c45b1f2ca593a160e5f74d35171
[ "Apache-2.0" ]
null
null
null
tests/properties_search_test.py
FabianoBFCarvalho/api-python
fbe8005da2207c45b1f2ca593a160e5f74d35171
[ "Apache-2.0" ]
null
null
null
tests/properties_search_test.py
FabianoBFCarvalho/api-python
fbe8005da2207c45b1f2ca593a160e5f74d35171
[ "Apache-2.0" ]
null
null
null
from google.appengine.ext import testbed import webapp2 import webtest import unittest import json from google.appengine.api import search from views.properties_search import PropertiesSearch class AppTest(unittest.TestCase): def setUp(self): app = webapp2.WSGIApplication([(r'/properties/search', Propert...
36.595238
82
0.672088
3cb48c3d37e0c74ef7d5507c35724ab4d95cf448
797
py
Python
vint/linting/env.py
ViViDboarder/vint
b577a623e9279d44eb3dc81e6817c8eec25add63
[ "MIT" ]
null
null
null
vint/linting/env.py
ViViDboarder/vint
b577a623e9279d44eb3dc81e6817c8eec25add63
[ "MIT" ]
null
null
null
vint/linting/env.py
ViViDboarder/vint
b577a623e9279d44eb3dc81e6817c8eec25add63
[ "MIT" ]
null
null
null
import sys import os import os.path from pathlib import Path from vint.linting.file_filter import find_vim_script def build_environment(cmdargs): return { 'cmdargs': cmdargs, 'home_path': _get_home_path(), 'xdg_config_home': _get_xdg_config_home(), 'cwd': _get_cwd(), 'file_...
19.925
67
0.664994
cc68e11debd722809be961ddcdc35a5803489b73
371
py
Python
solutions/python3/312.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/312.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/312.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def maxCoins(self, nums): memo, nums = {}, [1] + [num for num in nums if num] + [1] def dfs(l, r): if r - l == 1: return 0 if (l, r) not in memo: memo[(l, r)] = max(nums[l] * nums[i] * nums[r] + dfs(l, i) + dfs(i, r) for i in range(l + 1, r)) retur...
46.375
131
0.466307
5c3a6b9cd84603fc89f38a11b1527259457b7d10
17,645
py
Python
st2client/st2client/shell.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
4,920
2015-01-01T15:12:17.000Z
2022-03-31T19:31:15.000Z
st2client/st2client/shell.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
3,563
2015-01-05T19:02:19.000Z
2022-03-31T19:23:09.000Z
st2client/st2client/shell.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
774
2015-01-01T20:41:24.000Z
2022-03-31T13:25:29.000Z
#!/usr/bin/env python # Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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/...
32.31685
104
0.630037
bd195965377e666d8f396b4c974e6d54af054338
1,670
py
Python
russia (1).py
dmliu16/geotunes
8cfc9d7760e7a8050aace7a405e65bec7d287982
[ "CC-BY-3.0" ]
1
2021-05-21T02:18:42.000Z
2021-05-21T02:18:42.000Z
russia (1).py
dmliu16/geotunes
8cfc9d7760e7a8050aace7a405e65bec7d287982
[ "CC-BY-3.0" ]
null
null
null
russia (1).py
dmliu16/geotunes
8cfc9d7760e7a8050aace7a405e65bec7d287982
[ "CC-BY-3.0" ]
null
null
null
# russia year1 = [["Ёлка","Прованс"],["Слава","Одиночество"],["Serebro","Я Тебя Не Отдам"], ["Дима Билан","Болен Тобой"],["Фабрика","А Я За Тобой"],["Сати Казанова","До Рассвета"], ["Пицца","Оружие"],["Винтаж","Знак Водолея"],["30.02","Звёзды В Лужах"], ["Сати Казанова","Чувство Лёгкости"]] import random lst = [] ...
57.586207
89
0.794012
e8cefa5cd7eadb5da14e33b22ae662ba6a52ea9b
2,230
py
Python
utils/build_swift/tests/test_migration.py
LynnKirby/swift
11a8be196751f8f7c194bea83b5f4f8e6a7d5360
[ "Apache-2.0" ]
10
2019-05-11T02:17:28.000Z
2022-02-06T15:37:53.000Z
utils/build_swift/tests/test_migration.py
LynnKirby/swift
11a8be196751f8f7c194bea83b5f4f8e6a7d5360
[ "Apache-2.0" ]
3
2018-09-27T23:09:06.000Z
2018-10-18T18:12:20.000Z
utils/build_swift/tests/test_migration.py
LynnKirby/swift
11a8be196751f8f7c194bea83b5f4f8e6a7d5360
[ "Apache-2.0" ]
3
2017-08-28T13:45:21.000Z
2018-06-28T10:53:37.000Z
# This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS.txt for the list o...
30.972222
79
0.652915
6fcf20e4bbbaec8b0e32841dee7faccdedb09a2a
1,804
py
Python
monk/tf_keras_1/models/params.py
gstearmit/monk_v1
89184ae27dc6d134620034d5b12aa86473ea47ba
[ "Apache-2.0" ]
null
null
null
monk/tf_keras_1/models/params.py
gstearmit/monk_v1
89184ae27dc6d134620034d5b12aa86473ea47ba
[ "Apache-2.0" ]
null
null
null
monk/tf_keras_1/models/params.py
gstearmit/monk_v1
89184ae27dc6d134620034d5b12aa86473ea47ba
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
from tf_keras_1.models.imports import * from system.imports import * from tf_keras_1.models.models import combined_list_lower @accepts(str, dict, post_trace=True) @TraceFunction(trace_args=False, trace_rv=False) def set_model_name(name, system_dict): if(name not in combined_list_lower): msg = "Model name ...
31.649123
74
0.722838
e952ab888ebcba10a3837f4750ebbe8825c277c7
625
py
Python
example_project_app/urls.py
bihealth/sodar_core
a6c22c4f276b64ffae6de48779a82d59a60a9333
[ "MIT" ]
11
2019-06-26T14:05:58.000Z
2020-12-05T02:20:11.000Z
example_project_app/urls.py
bihealth/sodar_core
a6c22c4f276b64ffae6de48779a82d59a60a9333
[ "MIT" ]
11
2019-07-01T06:17:44.000Z
2021-04-20T07:19:40.000Z
example_project_app/urls.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
4
2019-06-26T07:49:50.000Z
2020-05-19T21:58:10.000Z
from django.conf.urls import url from example_project_app import views, views_api app_name = 'example_project_app' # NOTE: Name of object in kwarg which is a Project or has "project" as a member # is expected to correspond 1:1 to the model in question (lowercase ok)! urls = [ url( regex=r'^(?P<pro...
23.148148
79
0.6416
754c4176c660100df442eca420f70ba2ac51fa4c
9,873
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/apic/firmware/execute.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/apic/firmware/execute.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/apic/firmware/execute.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
""" Execute type APIs for APIC """ import time import logging from genie.utils.timeout import Timeout log = logging.getLogger(__name__) def execute_clear_firmware_repository(device, sleep_after_delete=5): """ Clears the firmware repository. Args: device (obj): Device to execute on sleep_af...
35.260714
84
0.648334
8437193c2737d68ca770d5fd5abc843edfed46e1
91,111
py
Python
sympy/integrals/transforms.py
amitport/sympy
d62e689e4f2944939181c89d4b9e99c6b8e2ffa9
[ "BSD-3-Clause" ]
null
null
null
sympy/integrals/transforms.py
amitport/sympy
d62e689e4f2944939181c89d4b9e99c6b8e2ffa9
[ "BSD-3-Clause" ]
3
2022-02-04T14:45:16.000Z
2022-02-04T14:45:45.000Z
sympy/integrals/transforms.py
mlliarm/sympy
3b96442d2d72d3fe3243788372898898bad72280
[ "BSD-3-Clause" ]
null
null
null
""" Integral Transforms """ from functools import reduce, wraps from itertools import repeat from sympy.core import S, pi, I from sympy.core.add import Add from sympy.core.function import (AppliedUndef, count_ops, Derivative, expand, expand_complex, expand_mul, Function, Lambda, ...
32.714901
98
0.554258
ac0708b7c5841d23b40a3b627c05048599668bfe
5,890
py
Python
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Ros2UI/UI/Editors/LaunchFileEditor/GraphEntities/RosExecutableGraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Ros2UI/UI/Editors/LaunchFileEditor/GraphEntities/RosExecutableGraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Ros2UI/UI/Editors/LaunchFileEditor/GraphEntities/RosExecutableGraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
from typing import Dict, List from PyQt5 import QtCore from PyQt5.QtCore import QRectF from PyQt5.QtWidgets import QGraphicsItem from .ParameterGraphEntity import ParameterGraphEntity from .....utils import fullname from .....Representations.Ros2Representations.RosPackage import RosExecutable, RosPackage from ....UIE...
35.914634
217
0.617148
178c3c18b230a90a86eac6b5500d72c36612e9c4
1,120
py
Python
ipython-extension/setup.py
kernelpanek/jupyterlab-autoplot
023b0b6a1ebc1857b4dab95c04286d45ec70fc42
[ "BSD-3-Clause" ]
48
2021-01-27T14:40:00.000Z
2022-03-31T10:15:35.000Z
ipython-extension/setup.py
kernelpanek/jupyterlab-autoplot
023b0b6a1ebc1857b4dab95c04286d45ec70fc42
[ "BSD-3-Clause" ]
1
2021-03-11T06:31:35.000Z
2021-07-29T18:47:29.000Z
ipython-extension/setup.py
kernelpanek/jupyterlab-autoplot
023b0b6a1ebc1857b4dab95c04286d45ec70fc42
[ "BSD-3-Clause" ]
5
2021-04-22T17:44:12.000Z
2022-02-09T22:47:16.000Z
from setuptools import setup, find_packages def get_long_description(): with open("README.md", "r", encoding="utf-8") as f: desc = f.read() return desc setup( name="jupyterlab-autoplot", version="0.2.0", author="Man Alpha Technology", author_email="ManAlphaTech@man.com", license=...
35
112
0.648214
69923a44bb2fed5d1058feccdd07bc0b34d6a23e
1,756
py
Python
neptune/new/internal/backends/factory.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
254
2020-01-27T14:18:57.000Z
2022-03-31T21:40:33.000Z
neptune/new/internal/backends/factory.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
160
2020-02-05T11:00:22.000Z
2022-03-31T08:50:24.000Z
neptune/new/internal/backends/factory.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
23
2020-02-07T09:19:50.000Z
2022-02-15T09:52:56.000Z
# # Copyright (c) 2021, Neptune Labs Sp. z o.o. # # 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...
36.583333
84
0.732346
f0915f440b653f9ce3fd0a7026433327d779dd1c
1,588
py
Python
dtdecoderutils.py
dyeo/dt.py
6ca1913e30c35e1661b2959849e55376fec34ed0
[ "MIT" ]
null
null
null
dtdecoderutils.py
dyeo/dt.py
6ca1913e30c35e1661b2959849e55376fec34ed0
[ "MIT" ]
null
null
null
dtdecoderutils.py
dyeo/dt.py
6ca1913e30c35e1661b2959849e55376fec34ed0
[ "MIT" ]
null
null
null
import re # The error raised when the dt file is invalid. class DTDecodeError(Exception): pass # Type aliases _BOOL = 0 _BYTE = 1 _INT = 2 _SHORT = 3 _LONG = 4 _FLOAT = 5 _DOUBLE = 6 _CHAR = 7 _STRING = 8 # Tokenizer regular expression _rx_tok = r";.*$|\"(?:[^\"\\]|\\.)*\"|\'\\?.\'|[\[\]{}:;]|[^\s\[\]{}:;]+" # Key ...
30.538462
94
0.487406
7080c96ddc9a5b6ffb5deb5fe086803a88f886e6
4,419
py
Python
data/mri_data.py
veritas9872/fastMRI-kspace
4c484b3183e9f06838b5ee108af283611c2e1e77
[ "MIT" ]
18
2019-10-21T23:54:28.000Z
2021-12-23T08:16:04.000Z
data/mri_data.py
veritas9872/fastMRI-kspace
4c484b3183e9f06838b5ee108af283611c2e1e77
[ "MIT" ]
1
2020-07-11T08:05:33.000Z
2020-07-11T08:05:33.000Z
data/mri_data.py
veritas9872/fastMRI-kspace
4c484b3183e9f06838b5ee108af283611c2e1e77
[ "MIT" ]
5
2019-11-23T14:11:54.000Z
2022-02-19T13:39:15.000Z
import pathlib import random from math import ceil import h5py from torch.utils.data import Dataset class SliceData(Dataset): """ A PyTorch Dataset that provides access to MR image slices. """ def __init__(self, root, transform, challenge, sample_rate=1, use_gt=True): """ Args: ...
38.763158
105
0.614166
e84a35d1fb049f779c608e7ad2a3768b21306446
1,221
py
Python
todo-app/quarkus-todo-app/docker_build.py
rajesh-kumar/spring-native-quarkus
f0e097e17a5cc69839982ccfbf46e19378b1e6c9
[ "MIT" ]
null
null
null
todo-app/quarkus-todo-app/docker_build.py
rajesh-kumar/spring-native-quarkus
f0e097e17a5cc69839982ccfbf46e19378b1e6c9
[ "MIT" ]
null
null
null
todo-app/quarkus-todo-app/docker_build.py
rajesh-kumar/spring-native-quarkus
f0e097e17a5cc69839982ccfbf46e19378b1e6c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import re import subprocess from pathlib import Path import docker def main(): parser = argparse.ArgumentParser(description='This is the docker image builder for quarkus-todo-app') parser.add_argument("build_type", help="set build type", default='jvm', choices=['jvm', ...
31.307692
113
0.597871
e6f919a49897af93e38621494d8815a2c2f24671
1,456
py
Python
tests/test/plugin/test_coverage.py
b1u3h4t/brownie
65eefa0da40133687eede2077eaf46d3c93a05c3
[ "MIT" ]
null
null
null
tests/test/plugin/test_coverage.py
b1u3h4t/brownie
65eefa0da40133687eede2077eaf46d3c93a05c3
[ "MIT" ]
1
2021-04-11T13:59:30.000Z
2022-02-06T13:45:00.000Z
tests/test/plugin/test_coverage.py
b1u3h4t/brownie
65eefa0da40133687eede2077eaf46d3c93a05c3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import json test_source = """ import pytest @pytest.mark.no_call_coverage def test_call_and_transact(BrownieTester, accounts, web3, fn_isolation): c = accounts[0].deploy(BrownieTester, True) c.setNum(12, {'from': accounts[0]}) assert web3.eth.blockNumber == 2 c.getTuple(accounts[0]...
29.714286
90
0.692995
1e9547b99fbdf2517c5626ee0b2ae9ee4338d0d6
7,453
py
Python
delta_node/app/v1/task.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
4
2021-07-22T01:11:15.000Z
2022-03-17T03:26:20.000Z
delta_node/app/v1/task.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
10
2021-09-13T09:55:02.000Z
2022-03-23T09:41:26.000Z
delta_node/app/v1/task.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import math import os import shutil from tempfile import TemporaryFile from typing import IO, List, Optional import sqlalchemy as sa from delta_node import chain, coord, db, entity, pool, registry from fastapi import (APIRouter, BackgroundTasks, Depends, File, HTTPException, ...
29.458498
94
0.64994
ccf486c696c5c952ddd29cfb6e3287dbfbd4f859
77,048
py
Python
tests/test_continuous_futures.py
maartenb/zipline-reloaded
7cd7ef496dde7b5efe5423ae6c98181a67a99c15
[ "Apache-2.0" ]
null
null
null
tests/test_continuous_futures.py
maartenb/zipline-reloaded
7cd7ef496dde7b5efe5423ae6c98181a67a99c15
[ "Apache-2.0" ]
null
null
null
tests/test_continuous_futures.py
maartenb/zipline-reloaded
7cd7ef496dde7b5efe5423ae6c98181a67a99c15
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
38.795569
88
0.526295
0a5599e0e159b2035132bfac2aeb72cc55e4cda1
6,130
py
Python
fsdemo/gallery.py
dyslab/flask-site-demo
6c00a3a7df724d27577f5c57f5f169607e06570d
[ "MIT" ]
1
2020-05-25T19:55:07.000Z
2020-05-25T19:55:07.000Z
fsdemo/gallery.py
dyslab/flask-site-demo
6c00a3a7df724d27577f5c57f5f169607e06570d
[ "MIT" ]
null
null
null
fsdemo/gallery.py
dyslab/flask-site-demo
6c00a3a7df724d27577f5c57f5f169607e06570d
[ "MIT" ]
null
null
null
from flask import Blueprint, request, redirect, render_template from flask import url_for, current_app from flask_uploads import UploadSet, IMAGES, configure_uploads from fsdemo.pagedata.gallery import GalleryUploadPageData, GalleryListPageData from fsdemo.pagedata.gallery import GalleryEditPageData from fsdemo.pagedat...
31.761658
78
0.59217