hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6def2642f9446a76af2a86f6f2f39e58bc6b55e3
4,560
py
Python
rj_gameplay/rj_gameplay/play/penalty_defense.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
200
2015-01-26T01:45:34.000Z
2022-03-19T13:05:31.000Z
rj_gameplay/rj_gameplay/play/penalty_defense.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
1,254
2015-01-03T01:57:35.000Z
2022-03-16T06:32:21.000Z
rj_gameplay/rj_gameplay/play/penalty_defense.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
206
2015-01-21T02:03:18.000Z
2022-02-01T17:57:46.000Z
import stp.play as play import stp.tactic as tactic from rj_gameplay.tactic import wall_tactic, nmark_tactic, goalie_tactic, move_tactic import stp.skill as skill import stp.role as role from stp.role.assignment.naive import NaiveRoleAssignment import stp.rc as rc from typing import Dict, Generic, Iterator, List, Opti...
35.625
88
0.605702
c3b87680cd4dfb16ea1f5cec475860083a3bf25f
1,861
py
Python
learned_optimization/eval_training_multi_device_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
70
2021-12-16T07:12:11.000Z
2022-03-31T19:13:36.000Z
learned_optimization/eval_training_multi_device_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
10
2021-12-29T10:03:37.000Z
2022-03-22T15:59:55.000Z
learned_optimization/eval_training_multi_device_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
5
2021-12-16T04:52:35.000Z
2022-03-22T03:45:31.000Z
# coding=utf-8 # Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.086207
80
0.717894
4aa1def8b7ff5e7090256ac6db5110bfd064d508
231
py
Python
steelrumors/links/admin.py
mmadil/steelrumors-web
2faf9cc407690a2da10f08badda09ad025c4a8c1
[ "MIT" ]
3
2016-08-27T12:03:37.000Z
2020-05-24T21:21:11.000Z
steelrumors/links/admin.py
mmadil/steelrumors-web
2faf9cc407690a2da10f08badda09ad025c4a8c1
[ "MIT" ]
null
null
null
steelrumors/links/admin.py
mmadil/steelrumors-web
2faf9cc407690a2da10f08badda09ad025c4a8c1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Link, Vote class LinkAdmin(admin.ModelAdmin): pass class VoteAdmin(admin.ModelAdmin): pass admin.site.register(Link, LinkAdmin) admin.site.register(Vote, VoteAdmin)
16.5
36
0.770563
28c8fa7445c82c2c1a7fca091ee9f27f3a0c080f
1,316
py
Python
src/olympia/activity/serializers.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
1
2020-04-07T07:21:25.000Z
2020-04-07T07:21:25.000Z
src/olympia/activity/serializers.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
null
null
null
src/olympia/activity/serializers.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
2
2018-03-04T00:11:22.000Z
2019-12-14T09:45:55.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from olympia.users.serializers import BaseUserSerializer from olympia.devhub.models import ActivityLog class ActivityLogSerializer(serializers.ModelSerializer): action = serializers.SerializerMethodField() action_...
34.631579
77
0.692249
03072aa8db90dadcc9d18086c2b4a886bc592f43
378
py
Python
fib_iter.py
xeroxzen/MIT-Computer-Science-and-Programming-Using-Python
de3cbe171a9f9cf266fd2eac0581bf1292f63c96
[ "MIT" ]
null
null
null
fib_iter.py
xeroxzen/MIT-Computer-Science-and-Programming-Using-Python
de3cbe171a9f9cf266fd2eac0581bf1292f63c96
[ "MIT" ]
null
null
null
fib_iter.py
xeroxzen/MIT-Computer-Science-and-Programming-Using-Python
de3cbe171a9f9cf266fd2eac0581bf1292f63c96
[ "MIT" ]
null
null
null
""" Created on Mon Jul 26 17:23:16 2021 @author: Andile Jaden Mbele """ """ Complexity of the iterative fibonacci 1. Best case: O(1) 2. Worst case: O(1) + O(n) + O(1) => O(n) """ def fib_iter(n): if n == 0: return 0 elif n == 1: return 1 else: fib_i = 0 fib_ii = 1 for i in range(n - 1): tmp = fib_i ...
14.538462
41
0.589947
1363f0f6b258bc9d9d4cca8463eb2e911040794a
3,326
py
Python
test/algorithm/test_shortestpath.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
57
2019-12-08T00:02:14.000Z
2022-03-24T20:40:40.000Z
test/algorithm/test_shortestpath.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
3
2020-01-26T03:38:31.000Z
2020-06-21T13:42:46.000Z
test/algorithm/test_shortestpath.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
8
2020-04-20T08:17:57.000Z
2021-10-04T06:04:51.000Z
import unittest from math import inf from random import random, seed, randrange from logging import getLogger, FATAL from ptrlib.algorithm.shortestpath import * NODE_COUNT = 100 PATH_PROB = 0.5 EDGE_WEIGHT_MIN = 1 EDGE_WEIGHT_MAX = 100 SEED = 1337 ALGORITHMS = ["dijkstra", "floydwarshall"] class TestShortestPath(uni...
36.152174
84
0.521948
14ef8327d14025ba5af9079a80ee9e9ee3b37e66
31,138
py
Python
neutron/tests/unit/test_l3_schedulers.py
ksshanam/neutron-vrrp
f9fb7f9b41adc0de401cc118a4d97026d3abb6e0
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/test_l3_schedulers.py
ksshanam/neutron-vrrp
f9fb7f9b41adc0de401cc118a4d97026d3abb6e0
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/test_l3_schedulers.py
ksshanam/neutron-vrrp
f9fb7f9b41adc0de401cc118a4d97026d3abb6e0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # 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 ...
42.249661
79
0.593166
14bba34f828ba7265850f096fbb9c4a3f2460592
1,872
py
Python
src/main/python/reldata/util/__init__.py
phohenecker/rel-data
1664336442aaadd0828a275c5b6e13284b6da824
[ "BSD-2-Clause" ]
1
2020-03-01T22:48:17.000Z
2020-03-01T22:48:17.000Z
src/main/python/reldata/util/__init__.py
phohenecker/rel-data
1664336442aaadd0828a275c5b6e13284b6da824
[ "BSD-2-Clause" ]
1
2020-03-03T03:23:45.000Z
2020-03-03T23:23:42.000Z
src/main/python/reldata/util/__init__.py
phohenecker/rel-data
1664336442aaadd0828a275c5b6e13284b6da824
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """This package provides various utility classes.""" __author__ = "Patrick Hohenecker" __copyright__ = ( "Copyright (c) 2017, Patrick Hohenecker\n" "All rights reserved.\n" "\n" "Redistribution and use in source and binary forms, with or without\n" "mod...
50.594595
93
0.691774
8ffa3647e755b20050fa87f7042ff5ed69fbd992
1,013
py
Python
gaia-sdk-python/gaia_sdk/graphql/request/type/UpdatedPromptImpulse.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
null
null
null
gaia-sdk-python/gaia_sdk/graphql/request/type/UpdatedPromptImpulse.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
10
2019-11-14T07:55:47.000Z
2022-02-26T19:36:45.000Z
gaia-sdk-python/gaia_sdk/graphql/request/type/UpdatedPromptImpulse.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
2
2020-05-12T11:09:53.000Z
2020-12-25T14:03:04.000Z
from gaia_sdk.graphql.request.type.Prompt import Prompt from typing import Callable, List from gaia_sdk.api.VariableRegistry import VariableRegistry from gaia_sdk.graphql.request.enumeration.Order import Order from gaia_sdk.graphql.request.enumeration.OrderByField import OrderByField from gaia_sdk.graphql.request.enu...
31.65625
82
0.711747
6b801b252a64833b2fc57e6443822d80200f33d7
1,746
py
Python
setup.py
yunojuno/django-autocomplete-light
299df0d952632e02d8224559d4657d0c6d38a46a
[ "MIT" ]
null
null
null
setup.py
yunojuno/django-autocomplete-light
299df0d952632e02d8224559d4657d0c6d38a46a
[ "MIT" ]
null
null
null
setup.py
yunojuno/django-autocomplete-light
299df0d952632e02d8224559d4657d0c6d38a46a
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice because now 1) we have a top-level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.path....
33.576923
77
0.618557
bea071d011c6dac9617268895a923b64211d5cff
195
py
Python
seoabot/crab/templatetags/crabtemplate.py
llennox/projects
b52e9a56260a67a290492479a8792fad690b327a
[ "MIT" ]
null
null
null
seoabot/crab/templatetags/crabtemplate.py
llennox/projects
b52e9a56260a67a290492479a8792fad690b327a
[ "MIT" ]
null
null
null
seoabot/crab/templatetags/crabtemplate.py
llennox/projects
b52e9a56260a67a290492479a8792fad690b327a
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter(name='keyColor') def keyColor(value): if value[:2] == 'no': return True else: return False
13.928571
33
0.635897
cf9bcaeb9bdd0c805bc7dd306cbd28c7dbf8ad6d
1,290
py
Python
model-optimizer/extensions/ops/proposal_python_example.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/extensions/ops/proposal_python_example.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/ops/proposal_python_example.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
31.463415
100
0.74031
da552c91086ee7d1d11d0f281745c62ab39a1487
2,053
py
Python
custom_components/programmable_thermostat/__init__.py
jsiemek/climate.programmable_thermostat
ddda931f70684ac2b0467054ea13039124199927
[ "Unlicense" ]
null
null
null
custom_components/programmable_thermostat/__init__.py
jsiemek/climate.programmable_thermostat
ddda931f70684ac2b0467054ea13039124199927
[ "Unlicense" ]
null
null
null
custom_components/programmable_thermostat/__init__.py
jsiemek/climate.programmable_thermostat
ddda931f70684ac2b0467054ea13039124199927
[ "Unlicense" ]
null
null
null
""" This is an upgraded version of Generic Thermostat. This, compared to the old one allow to have a variable target temperature according to a sensor. Best use is with 'file_restore' that allow to program a temperature profile and the heating system will make your home confortable. """ import os import logging import ...
38.018519
131
0.772041
08ea945d6e119857b6d099c02796652039330778
898
py
Python
src/gw_tf_playground.py
gp-wang/facenet_celeb
6dba84d4d64951e6d27fe92d385bb5c290123088
[ "MIT" ]
null
null
null
src/gw_tf_playground.py
gp-wang/facenet_celeb
6dba84d4d64951e6d27fe92d385bb5c290123088
[ "MIT" ]
null
null
null
src/gw_tf_playground.py
gp-wang/facenet_celeb
6dba84d4d64951e6d27fe92d385bb5c290123088
[ "MIT" ]
null
null
null
# http://adventuresinmachinelearning.com/python-tensorflow-tutorial/ import tensorflow as tf import numpy as np # first, create a TensorFlow constant const = tf.constant(2.0, name="const") # create TensorFlow variables # b = tf.Variable(2.0, name='b') # gw-0 # create TensorFlow variables b = tf.placeholder(tf.float32...
24.944444
75
0.658129
edb67caca2d6dbd205642939144f8425f41c489d
10,529
py
Python
caption_COMIC/src/infer_fn_v2.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
caption_COMIC/src/infer_fn_v2.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
caption_COMIC/src/infer_fn_v2.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Aug 28 17:12:19 2017 @author: jiahuei """ import tensorflow as tf # import numpy as np import pickle import os import re import time import json import logging import common.ops_v1 as ops from tqdm import tqdm from json import encoder from src.models im...
38.996296
117
0.583721
91f27a07519b89f73326cb1054f827d062fbd0cd
28,482
py
Python
work_log.py
Crossroadsman/treehouse-techdegree-python-project3
c8f5018f023347052f0315e6be8cfe8505e1b182
[ "Apache-2.0" ]
null
null
null
work_log.py
Crossroadsman/treehouse-techdegree-python-project3
c8f5018f023347052f0315e6be8cfe8505e1b182
[ "Apache-2.0" ]
10
2018-04-26T15:50:47.000Z
2018-04-27T07:05:58.000Z
work_log.py
Crossroadsman/treehouse-techdegree-python-project3
c8f5018f023347052f0315e6be8cfe8505e1b182
[ "Apache-2.0" ]
null
null
null
import datetime import re from csv_manager import CsvManager class Menu: # CONSTANTS DATE_FORMATS = { 'iso 8601': {'UI format': 'yyyy-mm-dd', 'datetime format': '%Y-%m-%d'}, 'uk': {'UI format': 'dd/mm/yyyy', 'datetime format': '%d/%m/%Y'}, ...
38.026702
80
0.533811
ebd0fb83fff7e861b2d6e77063f6568052e74588
502
py
Python
src/pygnmi/capabilities.py
MatthewGP/openmgmt
036d7832de54649ff27f5388ba22064379e652bc
[ "Apache-2.0" ]
null
null
null
src/pygnmi/capabilities.py
MatthewGP/openmgmt
036d7832de54649ff27f5388ba22064379e652bc
[ "Apache-2.0" ]
null
null
null
src/pygnmi/capabilities.py
MatthewGP/openmgmt
036d7832de54649ff27f5388ba22064379e652bc
[ "Apache-2.0" ]
null
null
null
import os import json from pprint import pprint as pp from pygnmi.client import gNMIclient ARISTA_HOST = os.getenv("ARISTA_HOST", "198.51.100.105") ARISTA_PORT = os.getenv("ARISTA_PORT", "6030") ARISTA_USERNAME = os.getenv("ARISTA_USERNAME", "arista") ARISTA_PASSWORD = os.getenv("ARISTA_PASSWORD", "arista") host = (...
26.421053
82
0.75498
d1b80f88dc2ceff6c4dbd542a00301982c221e16
8,582
py
Python
Lib/test/test_curses.py
leepro/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/test/test_curses.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/test/test_curses.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
# # Test script for the curses module # # This script doesn't actually display anything very coherent. but it # does call every method and function. # # Functions not tested: {def,reset}_{shell,prog}_mode, getch(), getstr(), # init_color() # Only called, not tested: getmouse(), ungetmouse() # import curses, sys, tempf...
30.540925
79
0.606735
53f4839a8febccf6d4b2f3a2c164c59dedb5a24c
37,983
py
Python
myems-api/reports/shopfloorstatistics.py
lijinchang3/myems
ede74ec2982e610d218095904817268951d3bc06
[ "MIT" ]
2
2021-02-19T10:22:36.000Z
2021-02-19T10:23:22.000Z
myems-api/reports/shopfloorstatistics.py
tianlinzhong/myems
07dd1eb8060f4145be66c8d1a20b5e064a68281b
[ "MIT" ]
null
null
null
myems-api/reports/shopfloorstatistics.py
tianlinzhong/myems
07dd1eb8060f4145be66c8d1a20b5e064a68281b
[ "MIT" ]
1
2022-01-29T14:18:47.000Z
2022-01-29T14:18:47.000Z
import falcon import simplejson as json import mysql.connector import config from datetime import datetime, timedelta, timezone from core import utilities from decimal import Decimal import excelexporters.shopfloorstatistics class Reporting: @staticmethod def __init__(): pass @staticmethod de...
60.482484
120
0.512229
69d4fd2519181d69c00253a9f7ee24d549988dd8
17,405
py
Python
plugins/keepkey/plugin.py
AndrewWelc/electrum-stak
4cf4a945f33c7af4b410861d86d9762fdff31a4b
[ "MIT" ]
null
null
null
plugins/keepkey/plugin.py
AndrewWelc/electrum-stak
4cf4a945f33c7af4b410861d86d9762fdff31a4b
[ "MIT" ]
null
null
null
plugins/keepkey/plugin.py
AndrewWelc/electrum-stak
4cf4a945f33c7af4b410861d86d9762fdff31a4b
[ "MIT" ]
null
null
null
from binascii import hexlify, unhexlify from electrum_stak.util import bfh, bh2u from electrum_stak.bitcoin import (b58_address_to_hash160, xpub_from_pubkey, TYPE_ADDRESS, TYPE_SCRIPT, is_segwit_address) from electrum_stak import constants from electrum_stak....
43.29602
119
0.584142
ce42ba951ea2b8ca06868f4eea1dad41a200b52a
2,776
py
Python
Configuration/Geometry/python/GeometryExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
Configuration/Geometry/python/GeometryExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
Configuration/Geometry/python/GeometryExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryExtended2026D90_cff import * # tracker from Geometry.CommonTopologies.globalTrackin...
45.508197
84
0.804755
ab3c3a9a738df7dfbd0210fb584f6b3b73cc249a
29,379
py
Python
qiskit/optimization/algorithms/admm_optimizer.py
kareem1925/qiskit-aqua
7056f9bdd9ece32c41e162faecdcd24cf483da6f
[ "Apache-2.0" ]
null
null
null
qiskit/optimization/algorithms/admm_optimizer.py
kareem1925/qiskit-aqua
7056f9bdd9ece32c41e162faecdcd24cf483da6f
[ "Apache-2.0" ]
null
null
null
qiskit/optimization/algorithms/admm_optimizer.py
kareem1925/qiskit-aqua
7056f9bdd9ece32c41e162faecdcd24cf483da6f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 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 modif...
40.466942
100
0.638619
4a6efadc1ad378c3a33f0326d2f4e81a8a7da8df
1,443
py
Python
tests/test_graphite_utils.py
EasyPost/biggraphite
d4f8b0ed76605c41d982a572c7462dea5b79de70
[ "Apache-2.0" ]
125
2016-05-02T17:10:32.000Z
2022-02-12T17:23:27.000Z
tests/test_graphite_utils.py
EasyPost/biggraphite
d4f8b0ed76605c41d982a572c7462dea5b79de70
[ "Apache-2.0" ]
515
2016-05-03T13:23:02.000Z
2022-03-31T23:21:38.000Z
tests/test_graphite_utils.py
EasyPost/biggraphite
d4f8b0ed76605c41d982a572c7462dea5b79de70
[ "Apache-2.0" ]
43
2016-05-03T17:46:48.000Z
2022-02-21T10:57:57.000Z
#!/usr/bin/env python # Copyright 2018 Criteo # # 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 agree...
31.369565
74
0.72973
841df3ea01eeb69f449896a745fad84bb6849912
4,822
py
Python
azurelinuxagent/common/resourceusage.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/resourceusage.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/resourceusage.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
1
2020-08-18T20:15:17.000Z
2020-08-18T20:15:17.000Z
# Copyright 2019 Microsoft Corporation # # 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...
34.198582
134
0.675446
42ce2fb77d773f29ca22ee7bcb4c359000eb8f65
13,363
py
Python
venv/Lib/site-packages/jupyter_client/consoleapp.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
5
2022-01-20T22:59:04.000Z
2022-02-06T06:11:35.000Z
venv/Lib/site-packages/jupyter_client/consoleapp.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/Lib/site-packages/jupyter_client/consoleapp.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
""" A minimal application base mixin for all ZMQ based IPython frontends. This is not a complete console app, as subprocess will not be able to receive input, there is no real readline support, among other limitations. This is a refactoring of what used to be the IPython/qt/console/qtconsoleapp.py """ # Copyright (c) ...
38.18
101
0.596947
1c0bce846ef670e25180e71e31476974a2351fbd
2,748
py
Python
widgets/centralwidget/ui/welcome.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
3
2021-02-02T18:10:18.000Z
2021-07-27T14:20:20.000Z
widgets/centralwidget/ui/welcome.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
null
null
null
widgets/centralwidget/ui/welcome.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'welcome.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("For...
39.826087
162
0.692868
c9f49b1c76d14bdcfe640cb207892621ab7da022
590
py
Python
rtrw/config/rtrw.py
iboen/rtrw
b8e16c46a3f267a7006ddeeb9d271701824805a4
[ "MIT" ]
null
null
null
rtrw/config/rtrw.py
iboen/rtrw
b8e16c46a3f267a7006ddeeb9d271701824805a4
[ "MIT" ]
null
null
null
rtrw/config/rtrw.py
iboen/rtrw
b8e16c46a3f267a7006ddeeb9d271701824805a4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("RT RW"), "items": [ { "type": "doctype", "name": "RW", "onboard": 1 }, { "type": "doctype", "name": "RT", "onboard": 1 } ] }, { "label": _("Data War...
14.047619
39
0.416949
ec963743cb8974eb6e54c6391ce8a7c669892b21
4,409
py
Python
bot/main.py
lobotomoe/vas3k.club
21786cc28072a816ca70b5b84247e8e63bd18b55
[ "MIT" ]
2
2021-01-19T08:18:13.000Z
2021-08-04T18:54:10.000Z
bot/main.py
lobotomoe/vas3k.club
21786cc28072a816ca70b5b84247e8e63bd18b55
[ "MIT" ]
5
2020-06-09T12:34:40.000Z
2021-02-18T09:03:10.000Z
bot/main.py
lobotomoe/vas3k.club
21786cc28072a816ca70b5b84247e8e63bd18b55
[ "MIT" ]
1
2020-05-29T10:15:10.000Z
2020-05-29T10:15:10.000Z
import logging import os import sys import django # IMPORTANT: this should go before any django-related imports (models, apps, settings) # These lines must be kept together till THE END sys.path.append(os.path.join(os.path.dirname(__file__), "..")) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "club.settings") djang...
40.824074
110
0.711953
3923cc3a7c9b2153b94866b9b2e847fb2c9d61b1
24,172
py
Python
timeline_custom.py
sanyalington/dltimelines
c650eed8da95e56e748c358474e08f997214833b
[ "MIT" ]
null
null
null
timeline_custom.py
sanyalington/dltimelines
c650eed8da95e56e748c358474e08f997214833b
[ "MIT" ]
null
null
null
timeline_custom.py
sanyalington/dltimelines
c650eed8da95e56e748c358474e08f997214833b
[ "MIT" ]
null
null
null
# Copyright 2016 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...
37.76875
80
0.662378
150b717646c1037657d1ae47d7a40904ffb5f799
1,136
py
Python
myapi/migrations/0031_auto_20220110_1039.py
akhm7/atm-managment-system
50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf
[ "Apache-2.0" ]
null
null
null
myapi/migrations/0031_auto_20220110_1039.py
akhm7/atm-managment-system
50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf
[ "Apache-2.0" ]
null
null
null
myapi/migrations/0031_auto_20220110_1039.py
akhm7/atm-managment-system
50639ac8bc2a7e21aa3828c3bae2fb2e6b0bd6bf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-10 05:39 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapi', '0030_auto_20220108_1506'), ] operations = [ migrations.AlterField( model_name='regdevdata', ...
32.457143
117
0.59331
b7b07b293704a3e10ee7adc9b0fcb092b696d1cd
29,407
py
Python
snorkel/contrib/brat/brat.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
30
2019-08-22T19:27:59.000Z
2022-03-13T22:03:15.000Z
snorkel/contrib/brat/brat.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
2
2019-08-22T16:51:58.000Z
2022-03-21T02:59:18.000Z
snorkel/contrib/brat/brat.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
31
2019-08-22T19:28:08.000Z
2022-03-23T12:50:49.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import * import os import re import sys import glob import codecs import shutil import signal import zipfile import tarfile import itertools import subproce...
37.461146
117
0.595096
7fa2c2a1355db72c84547f0ed7c9e677d2149be3
676
py
Python
codeChallenge_one.py
bobbybabra/codeGuild
0b49dbb6a0f113e1179e28fd36d59e7c327c7d31
[ "BSD-2-Clause" ]
null
null
null
codeChallenge_one.py
bobbybabra/codeGuild
0b49dbb6a0f113e1179e28fd36d59e7c327c7d31
[ "BSD-2-Clause" ]
null
null
null
codeChallenge_one.py
bobbybabra/codeGuild
0b49dbb6a0f113e1179e28fd36d59e7c327c7d31
[ "BSD-2-Clause" ]
null
null
null
# 1. The parameter weekday is True if it is a weekday, and # the parameter vacation is True if we are on vacation. # We sleep in if it is not a weekday or we're on vacation. # Return True if we sleep in. # # This is the start of the function to get you started. weekday == TRUE vacation == TRUE def sle...
27.04
62
0.68787
0a5305e40576fce492237293b286f6806b2b0b4d
2,829
py
Python
streamlit/classifier.py
abegpatel/Accuracy-prediction-of-ML-Classifier-Using-Streamlit
13f8740cb729f01b0d28b142aa2401a7940827c0
[ "MIT" ]
1
2021-06-12T06:51:36.000Z
2021-06-12T06:51:36.000Z
streamlit/classifier.py
abegpatel/Accuracy-prediction-of-ML-Classifier-Using-Streamlit
13f8740cb729f01b0d28b142aa2401a7940827c0
[ "MIT" ]
null
null
null
streamlit/classifier.py
abegpatel/Accuracy-prediction-of-ML-Classifier-Using-Streamlit
13f8740cb729f01b0d28b142aa2401a7940827c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 25 12:03:01 2021 @author: Abeg """ from sklearn import datasets from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier import streamlit as st import numpy as np from sklearn.decomposi...
31.433333
120
0.681159
1f8c796d22d8ab4d71a9db59d380d99360d4ca2a
4,833
py
Python
experiments/ashvin/icml2020/hand/distpolicy/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/distpolicy/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/distpolicy/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.396226
77
0.561349
4e1de408730d52c0d16642f6d2d6bb4d78af63d7
22,112
py
Python
Pathfinding_Algorithm_Visualizer_tkinter.py
DariaSVasileva/Pathfinding_Algorithm_Visualizer_tkinter
1da23b43a6c52385d2c8792751d54eb8019ad7c9
[ "MIT" ]
1
2021-11-27T15:07:08.000Z
2021-11-27T15:07:08.000Z
Pathfinding_Algorithm_Visualizer_tkinter.py
DariaSVasileva/Pathfinding_Algorithm_Visualizer_tkinter
1da23b43a6c52385d2c8792751d54eb8019ad7c9
[ "MIT" ]
null
null
null
Pathfinding_Algorithm_Visualizer_tkinter.py
DariaSVasileva/Pathfinding_Algorithm_Visualizer_tkinter
1da23b43a6c52385d2c8792751d54eb8019ad7c9
[ "MIT" ]
null
null
null
######################################################################## # Pathfinding Algorithm Visualizer program # Using tkinter # Python 3.8.5 # Daria Vasileva # 06/06/2021 ######################################################################## # Sources used: # # @Tech With Tim: Python A* Path Finding T...
33.151424
106
0.53532
1d38ff5b18f2aefc0eb2062f006f8a273392aa9e
197
py
Python
phasma_food_v2/dashboard/apps.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/dashboard/apps.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/dashboard/apps.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class DashboardConfig(AppConfig): name = "phasma_food_v2.dashboard" verbose_name = _("Dashboard")
24.625
54
0.781726
bc7ccbc259412f39bd83e5f49eff3a9137a19edf
485
py
Python
7-alykodin-kaukosaadin/PythonRemote/boxInsideBox.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
null
null
null
7-alykodin-kaukosaadin/PythonRemote/boxInsideBox.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
1
2021-04-17T19:30:17.000Z
2021-04-17T19:30:17.000Z
7-alykodin-kaukosaadin/PythonRemote/boxInsideBox.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
null
null
null
#!/usr/bin/env python # boxInsideBox.py - Combine boxes to lay out elements # in rows and columns. # (c) Kimmo Karvinen & Tero Karvinen http://sulautetut.fi import gtk window=gtk.Window() window.connect("destroy", gtk.main_quit) vbox=gtk.VBox() window.add(vbox) b1=gtk.Button("Button 1") vbox.pack_start(b1) ...
17.321429
57
0.715464
2e08839777bcd9e6cbd4b4f04195224522548fdc
1,138
py
Python
chaoshub/settings.py
chaostoolkit-incubator/chaostoolkit-chaoshub
8b82bc3f8d3e699d3f7e58aa3d6ccb6005efcffa
[ "Apache-2.0" ]
1
2020-10-06T12:59:39.000Z
2020-10-06T12:59:39.000Z
chaoshub/settings.py
chaostoolkit-attic/chaostoolkit-chaoshub
8b82bc3f8d3e699d3f7e58aa3d6ccb6005efcffa
[ "Apache-2.0" ]
7
2018-06-28T15:06:55.000Z
2018-08-10T08:42:53.000Z
chaoshub/settings.py
chaostoolkit/chaostoolkit-chaoshub
8b82bc3f8d3e699d3f7e58aa3d6ccb6005efcffa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from urllib.parse import urlparse from chaoslib.types import Settings __all__ = ["set_chaos_hub_settings"] def set_chaos_hub_settings(hub_url: str, token: str, settings: Settings): """ Set the Chaos Hub related entries in the Chaos Toolkit settings. """ if 'auths' not in sett...
26.465116
73
0.594025
cb985536c4cf2a2ff249641fcdb1a72a07b490a9
14,524
py
Python
src/sdk/pynni/nni/nas_utils.py
LTHODAVDOPL/nni
025e0b4681384ca70e7bc79bb948b2739160e5a3
[ "MIT" ]
1
2019-11-02T01:13:37.000Z
2019-11-02T01:13:37.000Z
src/sdk/pynni/nni/nas_utils.py
LTHODAVDOPL/nni
025e0b4681384ca70e7bc79bb948b2739160e5a3
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/nas_utils.py
LTHODAVDOPL/nni
025e0b4681384ca70e7bc79bb948b2739160e5a3
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # # MIT License # # 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 u...
43.746988
122
0.664142
2e410431d504ddb4911ac7da76947d6a1fb2cc7f
9,626
py
Python
effects.py
Zekx/CS332Fighting_Game
4dbded68f8ebe955db29b12f8d3409db2710c019
[ "CECILL-B" ]
null
null
null
effects.py
Zekx/CS332Fighting_Game
4dbded68f8ebe955db29b12f8d3409db2710c019
[ "CECILL-B" ]
null
null
null
effects.py
Zekx/CS332Fighting_Game
4dbded68f8ebe955db29b12f8d3409db2710c019
[ "CECILL-B" ]
null
null
null
import pygame class Effects(pygame.sprite.Sprite): def __init__(self): """ Initializes the "abstract" class for all effects animation. :return: """ self.image = None self.effects_animation = [] self.index = 0 class ThrowDust(Effects): def __init__(sel...
38.658635
113
0.608872
b348eab2284aba0377cfdb1188be5e21d2ef03e5
1,106
py
Python
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/pp-rec-component.py
aps337/unum-sdk
2de3ae625e474c5064f6a88b720ec2ffdcdefad9
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/pp-rec-component.py
aps337/unum-sdk
2de3ae625e474c5064f6a88b720ec2ffdcdefad9
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/pp-rec-component.py
aps337/unum-sdk
2de3ae625e474c5064f6a88b720ec2ffdcdefad9
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
# Copyright (C) 2014-2019 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This progr...
30.722222
71
0.719711
b2417ac31642cf4089ce9e55faf46df995f90032
2,470
py
Python
src/app/scripts_dev/acoustics.py
NowacekLab/Duke-Whale-TagDataVis
89f5f1af5fa558ddfec41ac6dad6e7239be4b3be
[ "MIT" ]
null
null
null
src/app/scripts_dev/acoustics.py
NowacekLab/Duke-Whale-TagDataVis
89f5f1af5fa558ddfec41ac6dad6e7239be4b3be
[ "MIT" ]
null
null
null
src/app/scripts_dev/acoustics.py
NowacekLab/Duke-Whale-TagDataVis
89f5f1af5fa558ddfec41ac6dad6e7239be4b3be
[ "MIT" ]
null
null
null
from scipy.io import wavfile as wav import matplotlib.pyplot as plt import numpy as np from scipy.fftpack import fft from matplotlib.widgets import Slider from helpers import cmdArgs def acousticPlot(wav_file_path, new_file_path, is_export): frameSize = 100 rate, data = wav.read(wav_file_path) fq = rate ...
31.265823
90
0.62753
6593c327abcbf9ca34e46a2ce5ab32ea8a52f158
2,550
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=13 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
28.021978
118
0.637647
c74cfc68a941258fc2ae74941bc8e0cfd02848c8
22,653
py
Python
goku_train.py
jc-audet/GOKU
5627052a96bc95d9e893fe589bb51af447ff4f01
[ "MIT" ]
null
null
null
goku_train.py
jc-audet/GOKU
5627052a96bc95d9e893fe589bb51af447ff4f01
[ "MIT" ]
null
null
null
goku_train.py
jc-audet/GOKU
5627052a96bc95d9e893fe589bb51af447ff4f01
[ "MIT" ]
null
null
null
import argparse import numpy as np import torch from utils import ODE_dataset, utils import models import os from config import load_goku_train_config ###### REMOVE THIS import matplotlib.pyplot as plt def plot_samples(pred_x, mini_batch, file='sample.png'): plt.figure() # specifying the overall grid size ...
48.30064
189
0.577186
b82a6f681c762e0ef292ce6aa78bbd7535945677
3,699
py
Python
heliosburn/django/hbproject/webui/urls.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/django/hbproject/webui/urls.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/django/hbproject/webui/urls.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
1
2020-09-17T18:19:05.000Z
2020-09-17T18:19:05.000Z
from django.conf.urls import patterns, url from webui.views.dashboard import DashboardView from webui.views.login import LoginView from webui.views.logs import LogsView urlpatterns = patterns( 'webui.views', url(r'^$', DashboardView.as_view(), name='dashboard'), url(r'^signin/$', LoginView.as_view(), name...
61.65
131
0.681536
ff29ff36ff62003cb2c647da40418f4fe0e69eeb
9,438
py
Python
objects/sakuro.py
osu-Sakuru/sakuro
1deb36140bc894218170f3d39248a8b34e74f1bc
[ "MIT" ]
1
2021-09-07T00:04:50.000Z
2021-09-07T00:04:50.000Z
objects/sakuro.py
osu-Sakuru/sakuro
1deb36140bc894218170f3d39248a8b34e74f1bc
[ "MIT" ]
null
null
null
objects/sakuro.py
osu-Sakuru/sakuro
1deb36140bc894218170f3d39248a8b34e74f1bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ( 'ContextWrap', 'Sakuro', 'CommandWrap' ) import asyncio import functools import os import time import traceback from collections import defaultdict from sys import exc_info from typing import Optional import aiohttp import discord import orjson from...
34.072202
110
0.534435
5c9016db5ce60c5dd1f54b2c41725892af0ecc0f
1,272
py
Python
test.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
test.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
test.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
import random from ac_flask.hipchat import Addon, room_client, addon_client, sender, context from ac_flask.hipchat.glance import Glance from flask import Flask addon = Addon(app=Flask(__name__), key="test-addon", name="Test AddOn", allow_room=True, scopes=['send_...
33.473684
95
0.68239
faa60621383b446dc68f31d515548c90d00846ba
1,345
py
Python
articles/codefiles/create-workspace.py
sdgilley/docfx-seed
ac1a305ccbe135d0b812af99b2b5cad1355e8587
[ "MIT" ]
null
null
null
articles/codefiles/create-workspace.py
sdgilley/docfx-seed
ac1a305ccbe135d0b812af99b2b5cad1355e8587
[ "MIT" ]
null
null
null
articles/codefiles/create-workspace.py
sdgilley/docfx-seed
ac1a305ccbe135d0b812af99b2b5cad1355e8587
[ "MIT" ]
null
null
null
# code snippets for the quickstart-create-workspace-with-python article # <import> import azureml.core print(azureml.core.VERSION) # </import> # this is NOT a snippet. If this code changes, go fix it in the article! from azureml.core import Workspace ws = Workspace.create(name='myworkspace', sub...
24.454545
74
0.672119
aa21617ff8b6babb70c2493e7c35290809f451f4
3,124
py
Python
Compressing data/functions_1.py
zhengzhang96/Hardware-efficient-MUA-compression
5304eece53c4db350e081382e0b7f01a56dbd31f
[ "MIT" ]
null
null
null
Compressing data/functions_1.py
zhengzhang96/Hardware-efficient-MUA-compression
5304eece53c4db350e081382e0b7f01a56dbd31f
[ "MIT" ]
null
null
null
Compressing data/functions_1.py
zhengzhang96/Hardware-efficient-MUA-compression
5304eece53c4db350e081382e0b7f01a56dbd31f
[ "MIT" ]
1
2022-02-23T21:52:02.000Z
2022-02-23T21:52:02.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 9 20:00:55 2021 @author: oscar """ import numpy as np import math def bin_MUA_data(MUA,bin_res): counter = 0 binned_MUA = np.zeros([math.ceil(len(MUA[:,1])/bin_res),len(MUA[1,:])]) for bin in range(math.ceil(len(MUA[:,1])/bin_res)): if...
34.32967
119
0.587708
5d47340f58332d169c4b03d28b4a81fad6426bc6
5,128
py
Python
examples/latent_depth/src/models/latent_transformer.py
phantomcoder1996/fairseq
d6ec742e8d6f7ab53c01207b3c93023c3579474f
[ "MIT" ]
6
2020-04-30T01:58:26.000Z
2021-04-12T07:15:30.000Z
examples/latent_depth/src/models/latent_transformer.py
phantomcoder1996/fairseq
d6ec742e8d6f7ab53c01207b3c93023c3579474f
[ "MIT" ]
2
2020-10-17T05:25:59.000Z
2021-01-13T10:23:43.000Z
examples/latent_depth/src/models/latent_transformer.py
phantomcoder1996/fairseq
d6ec742e8d6f7ab53c01207b3c93023c3579474f
[ "MIT" ]
1
2021-12-30T10:55:01.000Z
2021-12-30T10:55:01.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. from typing import Any, Dict, Optional import torch.nn as nn from fairseq.models.fairseq_encoder import EncoderOut from fairseq.models.transf...
39.145038
120
0.698908
417334a0fb7b0ce052ca6e98aa7c9d379cd3d8f6
89
py
Python
spinner/apps.py
AhmadTariqAlflahat/name_spinner
704c4a620b7fe815ac5d47ea9be722513ea42af4
[ "MIT" ]
null
null
null
spinner/apps.py
AhmadTariqAlflahat/name_spinner
704c4a620b7fe815ac5d47ea9be722513ea42af4
[ "MIT" ]
null
null
null
spinner/apps.py
AhmadTariqAlflahat/name_spinner
704c4a620b7fe815ac5d47ea9be722513ea42af4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SpinnerConfig(AppConfig): name = 'spinner'
14.833333
33
0.752809
24e52e5db7b8dc50686910e07816c688de656194
1,414
py
Python
src/plot_csv/plot_csv.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/plot_csv/plot_csv.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/plot_csv/plot_csv.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
#!/bin/env python import argparse import matplotlib.pyplot as plt import os import sys # insert current directory into PYTHONPATH to allow imports sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from cmdline import define_cmdline_args, parse_cmdline_args from csv_io import gen_input_files, read_csv_fi...
33.666667
106
0.660537
4d95d3718b33bbdc7e0bfbbe3d82f3b4ec016a49
1,741
py
Python
blog/views.py
TeeblaQ1/zuriblogapp
dd3759358deee2169fadc1c900a98a8dcac03adc
[ "MIT" ]
null
null
null
blog/views.py
TeeblaQ1/zuriblogapp
dd3759358deee2169fadc1c900a98a8dcac03adc
[ "MIT" ]
null
null
null
blog/views.py
TeeblaQ1/zuriblogapp
dd3759358deee2169fadc1c900a98a8dcac03adc
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView from .models import Post, Comment from django.urls import reverse_lazy from .forms import CommentForm from django.contrib.auth.mixins import LoginRequiredMixin # Create your ...
31.654545
106
0.685238
47cfb952b34efff0f9ad4e55cea3343f0c8a67db
1,503
py
Python
thumbor/optimizers/jpegtran.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/optimizers/jpegtran.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/optimizers/jpegtran.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from subprocess import Popen, PIPE from thumbor.optimizers import B...
28.358491
78
0.625416
9d607183c40d0f61412fc986522bb3265f190922
220,760
py
Python
sdk/python/pulumi_azure_native/recoveryservices/v20190615/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20190615/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20190615/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from ... import _utilities fro...
42.372361
171
0.655644
7e36c956622155c299c603aa0998825ca31a3905
2,516
py
Python
scoap3/modules/api/views.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
1
2021-08-04T09:48:38.000Z
2021-08-04T09:48:38.000Z
scoap3/modules/api/views.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
158
2018-09-10T07:31:14.000Z
2022-03-30T07:18:51.000Z
scoap3/modules/api/views.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
9
2015-04-28T11:55:04.000Z
2021-09-28T12:14:53.000Z
from __future__ import absolute_import, print_function from flask import Blueprint, render_template, request, flash, current_app, url_for from invenio_accounts.models import User from invenio_mail.api import TemplatedMessage from .models import ApiRegistrations from invenio_db import db blueprint = Blueprint( '...
31.45
99
0.631955
0dfa35a673792802caffd890623f0e9fd9b0381d
4,472
py
Python
utils/image.py
lior1990/Efficient-GPNN
bbabd6f621e497faf387fbfde208972ce11ea1d3
[ "Apache-2.0" ]
null
null
null
utils/image.py
lior1990/Efficient-GPNN
bbabd6f621e497faf387fbfde208972ce11ea1d3
[ "Apache-2.0" ]
null
null
null
utils/image.py
lior1990/Efficient-GPNN
bbabd6f621e497faf387fbfde208972ce11ea1d3
[ "Apache-2.0" ]
null
null
null
import os import cv2 import torch from torch.nn import functional as F from torchvision import transforms import torchvision.utils def save_image(img, path): os.makedirs(os.path.dirname(path), exist_ok=True) torchvision.utils.save_image(torch.clip(img, -1, 1), path, normalize=True) def cv2pt(img): img ...
36.655738
137
0.664356
d04da8597ea1350278688f48b96c2eec0a1de2c5
9,789
py
Python
pyobs_archive/api/models.py
pyobs/pyobs-archive
b7d4560850f202f9e9f714a128a34ffbe52e23a1
[ "MIT" ]
null
null
null
pyobs_archive/api/models.py
pyobs/pyobs-archive
b7d4560850f202f9e9f714a128a34ffbe52e23a1
[ "MIT" ]
3
2020-02-12T01:23:48.000Z
2020-10-02T07:20:19.000Z
pyobs_archive/api/models.py
pyobs/pyobs-archive
b7d4560850f202f9e9f714a128a34ffbe52e23a1
[ "MIT" ]
null
null
null
import math import logging import subprocess from urllib.parse import urljoin import os import io from astropy.io import fits from astropy.time import Time from django.db import models from django.conf import settings from django.utils.timezone import make_aware from pyobs_archive.api.utils import FilenameFormatter ...
39.955102
104
0.617121
3baf15780313835afe4402f4982aa607aae590a6
90
py
Python
custom/ewsghana/reminders/const.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
custom/ewsghana/reminders/const.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
custom/ewsghana/reminders/const.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import unicode_literals IN_CHARGE_ROLE = 'In Charge' DAYS_UNTIL_LATE = 5
18
39
0.822222
de81bd9d3348469479b6ba79ba857c993b7368b8
5,191
py
Python
cnn/test.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
cnn/test.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
cnn/test.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '../cnn/') sys.path.insert(0, 'net/') import numpy as np import torch import genotypes import utils import logging import argparse import torch.nn as nn import torch.utils import torch.backends.cudnn as cudnn from torch.autograd import Variable from model import NetworkCIFAR as Network f...
38.451852
120
0.670969
fef7755b508175045c25bb7df85f1e2834ccce56
19,233
py
Python
flax/errors.py
isaaccorley/flax
03ea1a741bd840b91f98a0f19fcdab1cdc4caccb
[ "Apache-2.0" ]
2,249
2020-03-08T12:13:08.000Z
2022-03-31T10:25:13.000Z
flax/errors.py
isaaccorley/flax
03ea1a741bd840b91f98a0f19fcdab1cdc4caccb
[ "Apache-2.0" ]
1,338
2020-03-06T16:56:34.000Z
2022-03-31T13:46:49.000Z
flax/errors.py
isaaccorley/flax
03ea1a741bd840b91f98a0f19fcdab1cdc4caccb
[ "Apache-2.0" ]
343
2020-03-06T16:35:39.000Z
2022-03-27T17:31:45.000Z
# Copyright 2021 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.969091
100
0.659543
7793d88820b49e8f36c2d5ff8247622aaed35bde
451
py
Python
openpeerpower/helpers/recorder.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
openpeerpower/helpers/recorder.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
openpeerpower/helpers/recorder.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Helpers to check recorder.""" from openpeerpower.core import OpenPeerPower async def async_migration_in_progress(opp: OpenPeerPower) -> bool: """Check to see if a recorder migration is in progress.""" if "recorder" not in opp.config.components: return False from openpeerpower.components impor...
28.1875
85
0.727273
0de89d81a15e4a9e48516e3577d74c18e2bb33b4
391
py
Python
rosjava/test/int64_publisher.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
1
2016-06-16T22:48:20.000Z
2016-06-16T22:48:20.000Z
rosjava/test/int64_publisher.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rosjava/test/int64_publisher.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from ros import rospy from ros import std_msgs import std_msgs.msg def publisher(): rospy.init_node('int64_publisher') pub = rospy.Publisher('int64_in', std_msgs.msg.Int64) i = 0 r = rospy.Rate(10) m = std_msgs.msg.Int64(i) while not rospy.is_shutdown(): pub.publish(m) i += 1 ...
19.55
55
0.667519
42197f90b538d4d6ce5dfb72fc175dc8b0a776b1
932
py
Python
esda/tests/test_local_geary.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
145
2017-04-06T06:28:08.000Z
2022-03-26T18:31:29.000Z
esda/tests/test_local_geary.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
150
2017-03-13T23:18:56.000Z
2022-03-07T06:51:54.000Z
esda/tests/test_local_geary.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
50
2017-03-13T21:19:31.000Z
2022-03-31T09:30:46.000Z
import unittest import libpysal from libpysal.common import pandas, RTOL, ATOL from esda.geary_local import Geary_Local import numpy as np PANDAS_EXTINCT = pandas is None class Geary_Local_Tester(unittest.TestCase): def setUp(self): np.random.seed(10) self.w = libpysal.io.open(libpysal.examples.ge...
28.242424
79
0.699571
02abf35d919055fddf6215aa50a87dfa5f65b664
768
py
Python
nli/code/utils/thread.py
Avmb/lrn
d71775d9f44efa2e73f126f56a41fe7d678203db
[ "BSD-3-Clause" ]
25
2019-05-22T03:35:44.000Z
2020-09-28T07:08:35.000Z
nli/code/utils/thread.py
Avmb/lrn
d71775d9f44efa2e73f126f56a41fe7d678203db
[ "BSD-3-Clause" ]
3
2019-11-22T10:27:49.000Z
2021-02-02T22:01:11.000Z
nli/code/utils/thread.py
Avmb/lrn
d71775d9f44efa2e73f126f56a41fe7d678203db
[ "BSD-3-Clause" ]
1
2020-09-03T16:18:02.000Z
2020-09-03T16:18:02.000Z
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import threading class threadsafe_iter: """Takes an iterator/generator and makes it thread-safe by serializing call to the `next` method of given iterator/generator. """ def ...
20.756757
76
0.652344
f486e1211a0b47387e375d148b0a0fb258f47dbf
1,046
py
Python
radpress/compat.py
gkmngrgn/radpress
2ed3b97f94e722479601832ffc40ea2135cda916
[ "MIT" ]
19
2015-01-02T21:40:40.000Z
2018-04-30T19:38:44.000Z
radpress/compat.py
gkmngrgn/radpress
2ed3b97f94e722479601832ffc40ea2135cda916
[ "MIT" ]
8
2015-01-03T10:28:26.000Z
2019-07-30T12:32:47.000Z
radpress/compat.py
gkmngrgn/radpress
2ed3b97f94e722479601832ffc40ea2135cda916
[ "MIT" ]
17
2015-01-02T21:40:53.000Z
2019-05-22T14:48:29.000Z
from django import VERSION as DJANGO_VERSION from django.conf import settings def get_user_model(): """ Returns the user model to use at runtime. :return: User or custom user """ if DJANGO_VERSION >= (1, 5): from django.contrib.auth import get_user_model return get_user_model() #...
24.904762
78
0.652964
a92cfff4eb5f94e535df19bac016f30fd27e7450
702
py
Python
article/models.py
zhouxwyeah/huanjuan-blog
b1a9a81db4803d8f06f72154f2818b164d0ccaa2
[ "MIT" ]
null
null
null
article/models.py
zhouxwyeah/huanjuan-blog
b1a9a81db4803d8f06f72154f2818b164d0ccaa2
[ "MIT" ]
null
null
null
article/models.py
zhouxwyeah/huanjuan-blog
b1a9a81db4803d8f06f72154f2818b164d0ccaa2
[ "MIT" ]
null
null
null
from django.db import models from django.core.urlresolvers import reverse # Create your models here. class Article(models.Model): title = models.CharField(max_length=100) # 博客题目 category = models.CharField(max_length=50, blank=True) # 博客标签 date_time = models.DateTimeField(auto_now_add=True) # 博客日期 ...
30.521739
66
0.676638
617a8d338800df902321e359d9bb3c2f0bf778af
10,733
py
Python
01_openlibs/tensorflow/02_tfgirls/TensorFlow-and-DeepLearning-Tutorial-master/Season1/12-15/dp.py
karst87/ml
e201aaad2da22b07c89f41aefd9d2bf8102a67a1
[ "MIT" ]
null
null
null
01_openlibs/tensorflow/02_tfgirls/TensorFlow-and-DeepLearning-Tutorial-master/Season1/12-15/dp.py
karst87/ml
e201aaad2da22b07c89f41aefd9d2bf8102a67a1
[ "MIT" ]
null
null
null
01_openlibs/tensorflow/02_tfgirls/TensorFlow-and-DeepLearning-Tutorial-master/Season1/12-15/dp.py
karst87/ml
e201aaad2da22b07c89f41aefd9d2bf8102a67a1
[ "MIT" ]
null
null
null
# 为了 Python2 玩家们 from __future__ import print_function, division # 第三方 import tensorflow as tf from sklearn.metrics import confusion_matrix import numpy as np # 我们自己 import load train_samples, train_labels = load._train_samples, load._train_labels test_samples, test_labels = load._test_samples, load._test_labels p...
36.506803
117
0.707817
edb0d1e9d6f1696d6dae0ca60313acbde2f1a358
197
py
Python
pl_bolts/models/audio/__init__.py
aribornstein/pytorch-lightning-bolts
ad148dc7583dd174988af80f3766505a1c72fbcd
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/audio/__init__.py
aribornstein/pytorch-lightning-bolts
ad148dc7583dd174988af80f3766505a1c72fbcd
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/audio/__init__.py
aribornstein/pytorch-lightning-bolts
ad148dc7583dd174988af80f3766505a1c72fbcd
[ "Apache-2.0" ]
null
null
null
__all__ = [] try: from pl_bolts.models.audio.resnet34 import ResNet34 except ModuleNotFoundError: # pragma: no-cover pass # pragma: no-cover else: __all__.append('ResNet34')
21.888889
56
0.685279
7cf3b3663a627cccfbe5677c03c97203f1b5b20d
7,230
py
Python
tests/android_native/calculator_tests/del_button_test.py
ikostan/TEST_AUTOMATION_FRAMEWORK_USING_APPIUM_WITH_PYTHON
f7f443f438e1272ecb9927c61360d3eb9ce0db57
[ "Unlicense" ]
1
2019-08-30T22:46:01.000Z
2019-08-30T22:46:01.000Z
tests/android_native/calculator_tests/del_button_test.py
ikostan/TEST_AUTOMATION_FRAMEWORK_USING_APPIUM_WITH_PYTHON
f7f443f438e1272ecb9927c61360d3eb9ce0db57
[ "Unlicense" ]
null
null
null
tests/android_native/calculator_tests/del_button_test.py
ikostan/TEST_AUTOMATION_FRAMEWORK_USING_APPIUM_WITH_PYTHON
f7f443f438e1272ecb9927c61360d3eb9ce0db57
[ "Unlicense" ]
3
2020-05-27T10:18:48.000Z
2022-03-04T11:34:56.000Z
"""Android Calculator App Test: DEL Button""" # Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ import allure from tests.android_native.calculator_tests.calculator_base_testcase import AndroidCalculatorBaseTestCase @allure.epic('Android Native App...
36.700508
107
0.759613
98bc96a45f8ceb034b0dc19f8866c447f330d7e2
1,865
py
Python
samples/elevator/data_generation/label_distribution.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
samples/elevator/data_generation/label_distribution.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
samples/elevator/data_generation/label_distribution.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
# ********************************************************************************************************************** # # brief: script to print the distribution of polygon labels over all images # # author: Lukas Reithmeier # date: 31.07.2020 # # ************************************************************...
34.537037
120
0.582306
f31cfd03fe575c414cd84fa9d40433fa270566a3
1,982
py
Python
service/surf/apps/users/models.py
surfedushare/search-portal
f5486d6b07b7b04a46ce707cee5174db4f8da222
[ "MIT" ]
2
2021-08-19T09:40:59.000Z
2021-12-14T11:08:20.000Z
service/surf/apps/users/models.py
surfedushare/search-portal
708a0d05eee13c696ca9abd7e84ab620d3900fbe
[ "MIT" ]
159
2020-05-14T14:17:34.000Z
2022-03-23T10:28:13.000Z
service/surf/apps/users/models.py
nppo/search-portal
aedf21e334f178c049f9d6cf37cafd6efc07bc0d
[ "MIT" ]
1
2021-11-11T13:37:22.000Z
2021-11-11T13:37:22.000Z
from django.contrib.auth.models import AbstractUser from django.contrib.sessions.models import Session from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.html import escape from rest_framework.authtoken.models import Token from surf.vendor.surfconext.models import Da...
44.044444
92
0.572654
acbb7aedb1c50f8bdaf5a77d652451f99d8c144a
1,601
py
Python
environment.py
sammy-nyubs/sovtech
95d13f5830b259925bac32151dfe0d3309cfee0d
[ "Apache-2.0" ]
null
null
null
environment.py
sammy-nyubs/sovtech
95d13f5830b259925bac32151dfe0d3309cfee0d
[ "Apache-2.0" ]
null
null
null
environment.py
sammy-nyubs/sovtech
95d13f5830b259925bac32151dfe0d3309cfee0d
[ "Apache-2.0" ]
null
null
null
from toolium.behave.environment import (before_all as toolium_before_all, before_feature as toolium_before_feature, before_scenario as toolium_before_scenario, after_scenario as toolium_after_scenario, ...
28.087719
115
0.694566
4340be4c756420f6e801537eb0dd0fb4ccf97132
1,167
py
Python
examples/gen-README.py
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
7
2017-07-11T01:12:02.000Z
2017-09-21T23:39:54.000Z
examples/gen-README.py
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
null
null
null
examples/gen-README.py
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
3
2018-03-21T11:48:05.000Z
2021-10-16T15:38:01.000Z
""" Script to generate README.md """ from pwn import * out = '''# Examples While these examples should all work, they are not very representative of the pwntools project. We have a plan to create a separate repository with examples, primarily exploits. Until we do so, we recommend new users to look at https://docs....
27.139535
73
0.588689
ece037ff60e3d26f78cd9c419f8f7058bc72b498
514
py
Python
init_programs/hello_world.py
Joes-BitGit/LearnPython
974b34fd37b425de611fff5079257ca31cf476f9
[ "MIT" ]
null
null
null
init_programs/hello_world.py
Joes-BitGit/LearnPython
974b34fd37b425de611fff5079257ca31cf476f9
[ "MIT" ]
1
2019-10-04T18:48:20.000Z
2019-10-04T18:48:20.000Z
init_programs/hello_world.py
Joes-BitGit/LearnPython
974b34fd37b425de611fff5079257ca31cf476f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The following main function is a wrapper function. It contains the program itself and it will only be executed if it is not imported to another *.py file """ def main(): print('Hello, World!') """ The following if statetmant triggers the main function if it wasn't called by another ...
19.769231
58
0.727626
f08df93ac3c52c147ad77a1cd9aefe091fe7c660
5,683
py
Python
optimizers/lars/lars.py
HuyTu7/dl_optimizers
245242718324cebcabe657bdbc704aa54ad0b8d2
[ "MIT" ]
null
null
null
optimizers/lars/lars.py
HuyTu7/dl_optimizers
245242718324cebcabe657bdbc704aa54ad0b8d2
[ "MIT" ]
null
null
null
optimizers/lars/lars.py
HuyTu7/dl_optimizers
245242718324cebcabe657bdbc704aa54ad0b8d2
[ "MIT" ]
null
null
null
""" Layer-wise adaptive rate scaling for SGD in PyTorch! """ import torch from torch.optim.optimizer import Optimizer, required # use the default values here to start with # parser.add_argument('--batch-size', type=int, default=4096, metavar='N', # help='input batch size for training (de...
47.756303
108
0.545663
0fe75dc0383d74d0e23fc10a4da66f265dc0ee35
17,139
py
Python
model.py
jiangyu-AI/dcgan-completion.tensorflow
160007b4bfffca6255347d5e92fb33c1724e228c
[ "MIT" ]
null
null
null
model.py
jiangyu-AI/dcgan-completion.tensorflow
160007b4bfffca6255347d5e92fb33c1724e228c
[ "MIT" ]
null
null
null
model.py
jiangyu-AI/dcgan-completion.tensorflow
160007b4bfffca6255347d5e92fb33c1724e228c
[ "MIT" ]
null
null
null
# Original Version: Taehoon Kim (http://carpedm20.github.io) # + Source: https://github.com/carpedm20/DCGAN-tensorflow/blob/e30539fb5e20d5a0fed40935853da97e9e55eee8/model.py # + License: MIT # [2016-08-05] Modifications for Completion: Brandon Amos (http://bamos.github.io) # + License: MIT from __future__ import...
42.954887
132
0.575179
ea154e2a25c3c1ffa4a220ca2caba7084164ecb8
1,864
py
Python
synthtiger/components/color/color_map.py
moonbings/synthtiger
87f6de877d8497d3f3b14d414bd3b0ea5f017175
[ "MIT" ]
1
2021-11-17T10:07:59.000Z
2021-11-17T10:07:59.000Z
synthtiger/components/color/color_map.py
moonbings/synthtiger
87f6de877d8497d3f3b14d414bd3b0ea5f017175
[ "MIT" ]
null
null
null
synthtiger/components/color/color_map.py
moonbings/synthtiger
87f6de877d8497d3f3b14d414bd3b0ea5f017175
[ "MIT" ]
null
null
null
""" SynthTIGER Copyright (c) 2021-present NAVER Corp. MIT license """ import numpy as np from synthtiger.components.component import Component class ColorMap(Component): def __init__(self, paths=(), weights=(), k=2): super().__init__() self.paths = paths self.weights = weights se...
31.066667
78
0.54721
e78786a3f0aec4f0a60e6934f9d55bd80b915165
666
py
Python
myproject/blog/views.py
ChoiDongKyu96/myFirstDynamicBlog
df6c270c9b25caf310505d0faf99739a858bd612
[ "MIT" ]
null
null
null
myproject/blog/views.py
ChoiDongKyu96/myFirstDynamicBlog
df6c270c9b25caf310505d0faf99739a858bd612
[ "MIT" ]
null
null
null
myproject/blog/views.py
ChoiDongKyu96/myFirstDynamicBlog
df6c270c9b25caf310505d0faf99739a858bd612
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from blog.models import Post # Create your views here. # def helloworld(request): # return render(request, 'blog/helloworld.html') def post_list(request): posts = Post.objects.filter(published_date__isnull=False).order_by('-created_date') ...
30.272727
84
0.735736
83c9d400e1ffdefbdcde8ff4846d6c4f7d65a143
361
py
Python
config.py
elleryq/ifriend
9d3d0856a763bcdee3af2e4b930089686bda1530
[ "MIT" ]
null
null
null
config.py
elleryq/ifriend
9d3d0856a763bcdee3af2e4b930089686bda1530
[ "MIT" ]
null
null
null
config.py
elleryq/ifriend
9d3d0856a763bcdee3af2e4b930089686bda1530
[ "MIT" ]
null
null
null
import os class Config: # 除錯 DEBUG = os.environ.get('FLASK_DEBUG', "False").lower() == "true" # SECRET_KEY SECRET_KEY = os.environ.get('FLASK_SECRET_KEY', 'this_is_an_example').encode('ascii') # 上傳路徑 UPLOAD_FOLDER = os.environ.get('FLASK_UPLOAD_FOLDER', './media') # 允許最大長度 MAX_CONT...
21.235294
89
0.642659
412532a1e627f9a38cfdda996f5b20103909265e
1,807
py
Python
calc/handle_time.py
Staffanox/Binance_futures_pnl
a3c7f8ca8983ab15a02b26a7bbba105defe578ea
[ "MIT" ]
7
2020-01-26T21:25:06.000Z
2022-01-19T04:52:11.000Z
calc/handle_time.py
Staffanox/Binance_futures_pnl
a3c7f8ca8983ab15a02b26a7bbba105defe578ea
[ "MIT" ]
null
null
null
calc/handle_time.py
Staffanox/Binance_futures_pnl
a3c7f8ca8983ab15a02b26a7bbba105defe578ea
[ "MIT" ]
2
2020-06-05T19:59:57.000Z
2020-11-11T18:48:45.000Z
from datetime import datetime, timedelta import calendar # No year because I generally assume you at least know the year formatter = "%d.%m" def dates(start_year, start_month, start_day, end_year, end_month, end_day): start_date = int(datetime(start_year, start_month, start_day).timestamp() * 1000) ...
32.267857
105
0.685113
7cf79edfafed9e3121abb87f1ea674e6a8e868b8
14,220
py
Python
pytorch-frontend/caffe2/python/operator_test/recurrent_network_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/caffe2/python/operator_test/recurrent_network_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/caffe2/python/operator_test/recurrent_network_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import recurrent, workspace from caffe2.python.model_helper import ModelHelper from hypothesis import given, settings import caffe2.python.hypothesis_t...
36.744186
80
0.60436
987023a1bbe2f8f745c90b167d1cb4c8f2f34a4d
1,069
py
Python
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/key_presses_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/key_presses_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
51
2021-04-08T11:39:59.000Z
2021-05-07T12:01:27.000Z
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/key_presses_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
""" @author: Yi-Pei, Tu @email: yptu@kth.se @date: 23-Apr-19 """ from pages import dynamic_controls_page from pages.key_presses_page import KeyPressesPage from pages.welcome_page import WelcomePage from utility.drivermanager import DriverManagerFirefox, DriverManagerChrome from nose.plugins.attrib import attr @attr(g...
31.441176
75
0.764266
0ca423e717b4cc413f44edf6bedeaecf28449b6d
66,829
py
Python
torch/functional.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
7
2021-05-29T16:31:51.000Z
2022-02-21T18:52:25.000Z
torch/functional.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
1
2021-03-25T13:42:15.000Z
2021-03-25T13:42:15.000Z
torch/functional.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
1
2021-08-12T09:37:29.000Z
2021-08-12T09:37:29.000Z
from typing import ( Tuple, Optional, Union, Any, Sequence, TYPE_CHECKING ) import torch import torch.nn.functional as F from ._lowrank import svd_lowrank, pca_lowrank from .overrides import ( has_torch_function, has_torch_function_unary, has_torch_function_variadic, handle_torch_function) from ._jit_inter...
42.566242
125
0.613102
86204d167ff6dbc83e49bf45d305a8ce5c784d9e
1,768
py
Python
girder/api/api_main.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
girder/api/api_main.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
girder/api/api_main.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
29.966102
79
0.630656
8867f08bbe87c3776928460413ba89577afc5477
2,008
py
Python
day_1.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_1.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_1.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
from __future__ import division, print_function import os from my_utils.tests import test_function def solve_capcha(capcha_str): """Function which calculates the solution to part 1 Arguments --------- capcha_str : str, a string of numbers Returns ------- total : int, the sum of a...
26.421053
70
0.585657
d8bed8ac20cb0f8a4d5485a3471c6c2752021c6e
4,270
py
Python
misc/parity/test_json_diff.py
winder/indexer
18f48f026f022cdeef92dcac558d3900d6ea798d
[ "MIT" ]
null
null
null
misc/parity/test_json_diff.py
winder/indexer
18f48f026f022cdeef92dcac558d3900d6ea798d
[ "MIT" ]
1
2022-02-23T02:39:04.000Z
2022-02-23T02:39:04.000Z
misc/parity/test_json_diff.py
winder/indexer
18f48f026f022cdeef92dcac558d3900d6ea798d
[ "MIT" ]
null
null
null
from cmath import exp from copy import deepcopy from .json_diff import deep_diff def test_deep_diff(): d1 = { "dad": 55, "mom": 56, } d2 = { "mom": 55, "dad": 55, } actual = deep_diff(d1, d2) expected = {"mom": [56, 55]} assert expected == actual, f"expecte...
34.435484
159
0.52178
d904173cdf180e0b458804ca052c927826b4ffe3
151
py
Python
yc179/627.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc179/627.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc179/627.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
T = int(input()) x = 0 for _ in range(T): X = int(input()) if x + 1 != X and x -1 != X: print('F') exit() x = X print('T')
15.1
32
0.403974
2fa26dd8099eeec1d4e8760d3b1fc94673eda83c
44,778
py
Python
src/compas/datastructures/network/core/graph.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas/datastructures/network/core/graph.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas/datastructures/network/core/graph.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import json try: from collections.abc import MutableMapping # python > 3.3 except ImportError: from collections import MutableMapping # python 2.7 from random import sample from random import choi...
29.266667
133
0.489548
9551e62fbfddcaf4f1860696ff0b4e2f811d456a
771
py
Python
test.py
ekilinckiran/transparency.EPIAS
35e647f10ccc36f49f4d9cffb9adafbe905b9cbc
[ "Apache-2.0" ]
1
2021-08-24T16:12:53.000Z
2021-08-24T16:12:53.000Z
test.py
ekilinckiran/EPIAS
35e647f10ccc36f49f4d9cffb9adafbe905b9cbc
[ "Apache-2.0" ]
null
null
null
test.py
ekilinckiran/EPIAS
35e647f10ccc36f49f4d9cffb9adafbe905b9cbc
[ "Apache-2.0" ]
null
null
null
#Hangi Path üzerinden API sorgusu yapılacaksa onu import edin from EpiasApi import market #IP erişim yetkisi aldıktan sonra EPIAS API Portal içerisinde bir application oluşturup, #API erişimi için bir anahtar almanız gerekmektedir. endPoint = market.EpiasApi("INSERT_EPIAS_API_KEY_HERE") status, result = endPoint....
36.714286
97
0.789883
3b21916eb968e8b5097026d306224aeaa0ea3c7c
2,626
py
Python
azurerm/resourcegroups.py
muralipi/azurerm
cf960ebec5c19b4f8965655dd1fba2f194398449
[ "MIT" ]
null
null
null
azurerm/resourcegroups.py
muralipi/azurerm
cf960ebec5c19b4f8965655dd1fba2f194398449
[ "MIT" ]
null
null
null
azurerm/resourcegroups.py
muralipi/azurerm
cf960ebec5c19b4f8965655dd1fba2f194398449
[ "MIT" ]
null
null
null
'''resourcegroups.py - azurerm functions for Resource Groups.''' import json from .restfns import do_delete, do_get, do_put from .settings import get_rm_endpoint, BASE_API def create_resource_group(access_token, subscription_id, rgname, location): '''Create a resource group in the specified location. Args: ...
33.240506
75
0.613861
ac1ebac316a9bd56bd69184ed40a504ba745c631
1,539
py
Python
com/algos/gfg/mustdo/trees/BalancedTree.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
com/algos/gfg/mustdo/trees/BalancedTree.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
com/algos/gfg/mustdo/trees/BalancedTree.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
''' Problem statement: Given a binary tree, find if it is height balanced or not. A tree is height balanced if difference between heights of left and right subtrees is not more than one for all nodes of tree. ''' class Node: # Constructor to create a new Node def __init__(self, data): self.data = data ...
22.632353
117
0.584146
ec9104c2447fa881cbebcb70e68c70427962cf7d
31,409
py
Python
adanet/core/iteration_test.py
ssameerr/adanet
18c8775becf5647a636c428d98d3a21bfa85e412
[ "Apache-2.0" ]
1
2019-01-07T04:58:15.000Z
2019-01-07T04:58:15.000Z
adanet/core/iteration_test.py
ssameerr/adanet
18c8775becf5647a636c428d98d3a21bfa85e412
[ "Apache-2.0" ]
null
null
null
adanet/core/iteration_test.py
ssameerr/adanet
18c8775becf5647a636c428d98d3a21bfa85e412
[ "Apache-2.0" ]
null
null
null
"""Test AdaNet iteration single graph implementation. Copyright 2018 The AdaNet 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 https://www.apache.org/licenses/LI...
34.214597
80
0.574358
d3221cf66f3b6903b9a5b9ba31c9f2ba048ff056
897
py
Python
Workshop 2/Exercises/Recursion.py
ATLAS-P/Python-Introduction
1baed0ec1fc67a3578b68667cbebbae144bf8450
[ "MIT" ]
2
2016-10-26T09:57:05.000Z
2018-06-27T11:47:33.000Z
Workshop 2/Exercises/Recursion.py
ATLAS-P/Introduction
1baed0ec1fc67a3578b68667cbebbae144bf8450
[ "MIT" ]
null
null
null
Workshop 2/Exercises/Recursion.py
ATLAS-P/Introduction
1baed0ec1fc67a3578b68667cbebbae144bf8450
[ "MIT" ]
null
null
null
import turtle import random def tree(drawer, length, angle, branches): rint = random.random() * branches if ((rint > 2 or branches == 2) or length > 299) and length > 50 and branches > 1: drawer.color((length / 76) % 1, (length / 27) % 1, (length / 41) % 1) drawer.forward(length) d...
21.357143
86
0.608696
1cb47cc65b8355e01ec7eebc6f80d4e3f976fd53
60,985
py
Python
tests/api_test.py
StephenHogg/jax
5c9438864e64c8b02b0e13fce9759d8a8ed3d488
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/api_test.py
StephenHogg/jax
5c9438864e64c8b02b0e13fce9759d8a8ed3d488
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/api_test.py
StephenHogg/jax
5c9438864e64c8b02b0e13fce9759d8a8ed3d488
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.582082
100
0.605231
62c77d4136de76e9be9d58ac9e865a819c726d4c
5,899
py
Python
test/test_abstract_pipeline.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
38
2019-09-04T17:39:31.000Z
2021-11-09T21:20:24.000Z
test/test_abstract_pipeline.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
66
2019-09-05T15:55:19.000Z
2021-11-21T05:36:54.000Z
test/test_abstract_pipeline.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
6
2019-12-02T09:05:30.000Z
2021-12-09T16:12:36.000Z
import pytest from primrose.base.pipeline import AbstractPipeline from primrose.base.pipeline import PipelineModeType from primrose.configuration.configuration import Configuration from primrose.data_object import DataObject from primrose.readers.csv_reader import CsvReader from primrose.base.transformer_sequence impor...
30.884817
89
0.624852
87856ee5b03c1b4432fa95040c00bba0555e413d
16,651
py
Python
manila/tests/scheduler/test_scheduler.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
null
null
null
manila/tests/scheduler/test_scheduler.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
null
null
null
manila/tests/scheduler/test_scheduler.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
42.694872
79
0.622005
f4bf1254debd90794dd92a07326cde68c9beafe2
3,963
py
Python
lexer/jsidentifiers.py
bbraithwaite/js-lang
d97be539a2b16d164273d86ec2ad66ff3058ba15
[ "MIT" ]
2
2016-02-27T12:33:38.000Z
2020-10-30T20:20:27.000Z
lexer/jsidentifiers.py
bbraithwaite/js-lang
d97be539a2b16d164273d86ec2ad66ff3058ba15
[ "MIT" ]
null
null
null
lexer/jsidentifiers.py
bbraithwaite/js-lang
d97be539a2b16d164273d86ec2ad66ff3058ba15
[ "MIT" ]
null
null
null
from jsnumbers import hex_digit_re from ply.lex import TOKEN identifer = ( 'IDENTIFIER', ) # # The following tokens are ECMAScript keywords and may not be used as Identifiers in ECMAScript programs. # keywords = ( 'BREAK', # break 'CASE', # case 'CATCH', # catch '...
31.959677
109
0.50921
5bee1e42797e8899add14875455683abb6eda870
31,192
py
Python
tools/refguide_check.py
hadrev/scipy
bf3ea59982a552e65f0388d4dd17b256b962adbb
[ "BSD-3-Clause" ]
1
2021-06-30T14:42:40.000Z
2021-06-30T14:42:40.000Z
tools/refguide_check.py
hadrev/scipy
bf3ea59982a552e65f0388d4dd17b256b962adbb
[ "BSD-3-Clause" ]
null
null
null
tools/refguide_check.py
hadrev/scipy
bf3ea59982a552e65f0388d4dd17b256b962adbb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ refguide_check.py [OPTIONS] [-- ARGS] Check for a Scipy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. Example of usage:: $ python refguide_check.py optimize Note that this is a helper script to be able to check if things ar...
32.525547
101
0.580053
028708dc5415ba4dac98583dfd5e0a72ee71c9c1
8,327
py
Python
SVassembly/assign_sv_haps_f.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/assign_sv_haps_f.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/assign_sv_haps_f.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
1
2019-01-22T19:16:24.000Z
2019-01-22T19:16:24.000Z
#!/usr/bin/env python ### LOAD THE NECESSARY PACKAGES ### import os, sys, argparse, __main__ as main import pandas as pd, numpy as np import pysam, vcf pd.options.mode.chained_assignment = None #global vars #vcf_reader_norm = NULL #vcf_reader_tum #(vcf_norm_input, vcf_tum_input, sv_input, bam_input, outpre, windo...
39.842105
273
0.651255