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
16fd232c0205bc961d584aa0dc8a764d33f272ac
4,441
py
Python
midap_software/min_mem_access.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
2
2021-03-28T16:19:06.000Z
2022-02-26T08:58:33.000Z
midap_software/min_mem_access.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
null
null
null
midap_software/min_mem_access.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
1
2021-02-22T08:44:20.000Z
2021-02-22T08:44:20.000Z
from __future__ import print_function from functools import reduce from config import cfg from midap_software.layer_compiler import LayerCompiler class MinMemAccess(LayerCompiler): def _preprocess(self): from generic_op import ConvOp super(MinMemAccess, self)._preprocess() self.num_remai...
37.008333
137
0.654357
8f1b95ea0c47ad6f208731f9d91c0c210fdd71f9
2,306
py
Python
rupo/stress/word.py
dagrigorev/rupo
3b1bb5873f3d0f8ef4fe662221d5f7a3573909cc
[ "Apache-2.0" ]
171
2017-06-06T17:01:32.000Z
2022-02-03T10:32:54.000Z
rupo/stress/word.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
12
2017-03-20T18:09:54.000Z
2021-07-28T17:39:38.000Z
rupo/stress/word.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
33
2017-03-29T13:27:56.000Z
2022-02-21T18:36:38.000Z
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Класс слова с ударением. from enum import Enum from typing import List, Set from russ.syllables import get_syllables class Stress: """ Ударение """ class Type(Enum): ANY = -1 PRIMARY = 0 SECONDARY = 1 def __init__(s...
28.469136
100
0.625325
eafb3a44b3532350d1a9bf9d1201622262e7cdab
3,139
py
Python
PythonAPI/quickstart/26-npc-trigger-waypoints.py
MaheshM99/PolyVerif
7894bdd46796b059dc856e6058935eb294ed299a
[ "Apache-2.0" ]
1
2022-03-07T05:56:21.000Z
2022-03-07T05:56:21.000Z
PythonAPI/quickstart/26-npc-trigger-waypoints.py
MaheshM99/PolyVerif
7894bdd46796b059dc856e6058935eb294ed299a
[ "Apache-2.0" ]
null
null
null
PythonAPI/quickstart/26-npc-trigger-waypoints.py
MaheshM99/PolyVerif
7894bdd46796b059dc856e6058935eb294ed299a
[ "Apache-2.0" ]
1
2021-12-31T09:35:59.000Z
2021-12-31T09:35:59.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019-2021 LG Electronics, Inc. # # This software contains code licensed as described in LICENSE. # from environs import Env import lgsvl print("Python API Quickstart #26: NPC triggering the waypoints callbacks") env = Env() sim = lgsvl.Simulator(env.str("LGSVL__S...
32.030612
180
0.69863
74c875711f6d38b58f09e4045876d69ca544fb7a
3,003
py
Python
util/undirected_graph_sage.py
rburing/gcaops
3866e11584d42354c65643c70cd2b6982866c129
[ "MIT" ]
null
null
null
util/undirected_graph_sage.py
rburing/gcaops
3866e11584d42354c65643c70cd2b6982866c129
[ "MIT" ]
null
null
null
util/undirected_graph_sage.py
rburing/gcaops
3866e11584d42354c65643c70cd2b6982866c129
[ "MIT" ]
null
null
null
from graph.undirected_graph import UndirectedGraph from util.permutation import selection_sort import sage.all # make SageMath work when called from Python from sage.graphs.graph import Graph import subprocess import os NAUTY_PREFIX = '' # e.g. '/home/rburing/src/nauty27r1/' def nauty_generate_undirected(num_vertices...
44.161765
133
0.692308
e30892581ec843b73d6f10668b9e1c4bbfa70788
540
py
Python
problems/exercism/luhn/luhn.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/luhn/luhn.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/luhn/luhn.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
import re class Luhn: def __init__(self, cardNo: str) -> None: self.cardNo = cardNo.strip() def valid(self) -> bool: if len(self.cardNo) == 1 or re.search("[^0-9 ]", self.cardNo): return False sum, sanitized = 0, re.sub("[^0-9]", "", self.cardNo) for i, digit in e...
25.714286
70
0.448148
cdd010448843b6cb7c6faf2bdbc0a903c3f339aa
8,085
py
Python
avalanche/benchmarks/classic/cinaturalist.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
1
2021-09-15T13:57:27.000Z
2021-09-15T13:57:27.000Z
avalanche/benchmarks/classic/cinaturalist.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
avalanche/benchmarks/classic/cinaturalist.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
38.684211
80
0.653309
45720093fa7234f0c2cc4000abc1fe880619a385
15,901
py
Python
pysnmp/CXAtmDxi-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CXAtmDxi-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CXAtmDxi-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CXAtmDxi-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXAtmDxi-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:16:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
117.785185
2,370
0.764858
135cc94285abc24dd77630cb1da42d9dc58269cc
12
py
Python
tests/syntax/space_between_operators_1.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
287
2019-04-08T13:18:29.000Z
2021-03-14T19:10:21.000Z
tests/syntax/space_between_operators_1.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
191
2019-04-08T14:39:18.000Z
2021-03-14T22:14:56.000Z
tests/syntax/space_between_operators_1.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
9
2019-04-08T12:54:08.000Z
2020-11-20T02:26:27.000Z
a = 2 * * 5
6
11
0.25
3c34999bf63c571ad2302399829abfd18e1f7629
10,647
py
Python
sdk/python/pulumi_azure/network/get_gateway_connection.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/get_gateway_connection.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/get_gateway_connection.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetGat...
52.448276
528
0.703391
37e6636c93140a776c3daf42708b9a1126f25b0a
22,599
py
Python
geotrek/maintenance/migrations/0004_auto__del_field_intervention_comments__add_field_intervention_descript.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/maintenance/migrations/0004_auto__del_field_intervention_comments__add_field_intervention_descript.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/maintenance/migrations/0004_auto__del_field_intervention_comments__add_field_intervention_descript.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.db import db from south.v2 import SchemaMigration from django.conf import settings class Migration(SchemaMigration): def forwards(self, orm): db.rename_column('m_t_intervention', 'commentaire', 'descriptif') def backwards(self, orm): db.rename_column('m_t...
100.888393
252
0.57591
a1920efd22067084ef1d3df4e99a09efa61481f9
408
py
Python
Assignments/a2_7.py
gargraghav/Probability-and-Statistics-for-Data-Scientists
756e6195e99f829f5e5de0c7389163dfbce1448b
[ "MIT" ]
null
null
null
Assignments/a2_7.py
gargraghav/Probability-and-Statistics-for-Data-Scientists
756e6195e99f829f5e5de0c7389163dfbce1448b
[ "MIT" ]
null
null
null
Assignments/a2_7.py
gargraghav/Probability-and-Statistics-for-Data-Scientists
756e6195e99f829f5e5de0c7389163dfbce1448b
[ "MIT" ]
null
null
null
import numpy as np def steady_state_power(transition_matrix): # k >> 1 k = 1000 # raise to power function res = np.linalg.matrix_power(transition_matrix,k) print ("Steady_State: Power iteration >> " + str(res[1,:])) return res[1,:] matrix = [[0.9, 0, 0.1, 0], [0.8, 0, 0.2, 0], ...
25.5
63
0.546569
194e29921ff23552cf03f738d6ac9194d8bd35b2
11,194
py
Python
txjsonrpc/web/jsonrpc.py
aborilov/txjsonrpc
9501ab023a51ca6f3e37fcad3c9c9ff04223986b
[ "MIT" ]
null
null
null
txjsonrpc/web/jsonrpc.py
aborilov/txjsonrpc
9501ab023a51ca6f3e37fcad3c9c9ff04223986b
[ "MIT" ]
null
null
null
txjsonrpc/web/jsonrpc.py
aborilov/txjsonrpc
9501ab023a51ca6f3e37fcad3c9c9ff04223986b
[ "MIT" ]
null
null
null
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """ A generic resource for publishing objects via JSON-RPC. Requires simplejson; can be downloaded from http://cheeseshop.python.org/pypi/simplejson API Stability: unstable Maintainer: U{Duncan McGreggor<mailto:oubiwann@adytum.us>} """...
35.993569
165
0.637931
73ef43e9b11b24e7c11fc90e7ad23eed08ba90cb
6,247
py
Python
mmdet/core/bbox/assigners/cross_assigner.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/assigners/cross_assigner.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/assigners/cross_assigner.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
import torch from ..builder import BBOX_ASSIGNERS from .assign_result import AssignResult from .base_assigner import BaseAssigner @BBOX_ASSIGNERS.register_module() class CrossAssigner(BaseAssigner): """Assign a corresponding gt bbox or background to each point. Each proposals will be assigned with ...
46.274074
79
0.576597
e90f49d4e163de25f227d57ac8bfed4d4fdec081
5,691
py
Python
AdvancedDataStructures/PersistentDS/persistence.py
StevenBryceLee/AdvancedDataStructures
0a1d5190c618bdd2edab1a6afd2212cdedd95285
[ "MIT" ]
null
null
null
AdvancedDataStructures/PersistentDS/persistence.py
StevenBryceLee/AdvancedDataStructures
0a1d5190c618bdd2edab1a6afd2212cdedd95285
[ "MIT" ]
null
null
null
AdvancedDataStructures/PersistentDS/persistence.py
StevenBryceLee/AdvancedDataStructures
0a1d5190c618bdd2edab1a6afd2212cdedd95285
[ "MIT" ]
null
null
null
''' This file is to follow along with session 1 of MIT advanced Data Structures: Persistent Data Structures ''' import numpy as np from numpy import array ''' Definitions ------------------ Pointer machine A class or struct of pointers to other nodes. Memory model Operations x = new node x = y.field...
47.425
123
0.68213
158c5c0198743e7a21ba0e723ab8fe2453bd9eee
4,929
py
Python
Neural_Netowrk.py
thakur-nishant/Flappy-Bird-NeuroEvolution
93e09d0693c02f7479b4c2f816f0ef25e376004c
[ "MIT" ]
1
2018-03-03T23:55:43.000Z
2018-03-03T23:55:43.000Z
Neural_Netowrk.py
thakur-nishant/Flappy-Bird-NeuroEvolution
93e09d0693c02f7479b4c2f816f0ef25e376004c
[ "MIT" ]
2
2018-03-01T18:39:29.000Z
2018-03-03T23:53:43.000Z
Neural_Netowrk.py
thakur-nishant/Flappy-Bird-NeuroEvolution
93e09d0693c02f7479b4c2f816f0ef25e376004c
[ "MIT" ]
3
2018-02-25T20:41:23.000Z
2018-03-02T15:44:38.000Z
import numpy as np class NeuronLayer: def __init__(self, neurons, neurons_in_previous_layer, b=[0.0], w=[[0.0]]): # import time # np.random.seed(int(time.time())) # np.random.seed(1) self.bias = np.random.random() self.weights_from_previous_to_this = 2 * np.random.random((n...
44.405405
115
0.634409
38d1944ffd42849898f6d3320dae46bbf2626b12
863
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
xueran1991/CarND-Capstone
ed0fe33b5c9b8590788ae9def2d0ea5d9c7439ff
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
xueran1991/CarND-Capstone
ed0fe33b5c9b8590788ae9def2d0ea5d9c7439ff
[ "MIT" ]
8
2020-09-26T00:43:15.000Z
2022-02-10T01:12:34.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
xueran1991/CarND-Capstone
ed0fe33b5c9b8590788ae9def2d0ea5d9c7439ff
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight class TLClassifier(object): def __init__(self): #TODO load classifier self.classes = {0: TrafficLight.RED, 1: TrafficLight.YELLOW, 2: TrafficLight.GREEN, 4: TrafficLight.UNKNOWN}...
27.83871
80
0.531866
807a60c4758a6c8e0b1ff9a94fcaea8844adc260
888
py
Python
run_story.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
null
null
null
run_story.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
null
null
null
run_story.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os.path from zvm import zmachine, trivialzui def usage(): print """Usage: %s <story file> Run a Z-Machine story under ZVM. """ % sys.argv[0] sys.exit(1) def main(): if len(sys.argv) != 2: usage() story_file = sys.argv[1] if not os.path.isfile(story...
22.2
59
0.545045
b8623cb7dc54ff22eb681a4f7d66be2adf87abf6
83
py
Python
library/src/detectors/autoencoder/__init__.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
3
2019-11-01T04:51:51.000Z
2019-12-17T04:25:18.000Z
library/src/detectors/htm/__init__.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
1
2019-11-11T18:29:36.000Z
2019-11-11T18:29:36.000Z
library/src/detectors/autoencoder/__init__.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
2
2019-12-18T11:49:00.000Z
2020-03-27T20:06:15.000Z
# Created by Xinyu Zhu on 10/5/2019, 11:03 PM import sys sys.path.append("../../")
20.75
45
0.650602
0ad3bbc834beff47374fc02a0990463ece79798f
598
py
Python
python/test.py
CiscoDevNet/flare
def72b74961a27c441f31039b4c3b1c61a870f1d
[ "Apache-2.0" ]
18
2015-10-29T13:02:09.000Z
2021-11-15T15:34:34.000Z
python/test.py
CiscoDevNet/flare
def72b74961a27c441f31039b4c3b1c61a870f1d
[ "Apache-2.0" ]
4
2015-11-03T17:29:29.000Z
2016-03-31T13:41:16.000Z
python/test.py
CiscoDevNet/flare
def72b74961a27c441f31039b4c3b1c61a870f1d
[ "Apache-2.0" ]
11
2015-10-28T14:13:37.000Z
2021-11-15T15:34:36.000Z
import flare for environment in flare.getEnvironments(): environment_id = environment['_id'] print(environment_id + ' - ' + environment['name']) for zone in flare.getZones(environment_id): zone_id = zone['_id'] print(' ' + zone_id + ' - ' + zone['name']) for thing in flare.g...
33.222222
62
0.575251
5729ce1d7028d6178e54f615400fd3a4ea86f376
874
py
Python
tools/workspace_status.py
GerritCodeReview/plugins_rename-project
f49236d1b697bef4566914d9717ac22222d05c40
[ "Apache-2.0" ]
null
null
null
tools/workspace_status.py
GerritCodeReview/plugins_rename-project
f49236d1b697bef4566914d9717ac22222d05c40
[ "Apache-2.0" ]
1
2019-03-07T09:24:50.000Z
2019-03-07T09:24:50.000Z
tools/workspace_status.py
GerritCodeReview/plugins_rename-project
f49236d1b697bef4566914d9717ac22222d05c40
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # This script will be run by bazel when the build process starts to # generate key-value information that represents the status of the # workspace. The output should be like # # KEY1 VALUE1 # KEY2 VALUE2 # # If the script exits with non-zero code, it's considered as a failure # and the output wil...
27.3125
71
0.685355
fa992af92ba91ba7dc8f775a6940d47e4ddffc95
1,621
py
Python
problem_19/problem_19.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
problem_19/problem_19.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
problem_19/problem_19.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
import sys # give this example # 1 | 2 | 3 # 4 | 8 | 2 # 1 | 5 | 3 # the minimum cost to go to path (2, 2) is # 1 (x) | 2 (x) | 3 # 4 | 8 | 2 (x) # 1 | 5 | 3 (x) # to reach (m, n) must be through one of 3 cells (m-1, n-1) or (m-1, n) or (m, n-1) # plus cost(m, n) R = 3 C = 3 # using Minimum Cost Path def min_cost(co...
30.584906
109
0.473782
b66dd4ecdc2d223325adc8e1007fcb29157b34c2
3,888
py
Python
open_api_tools/test/chain.py
specify/open_api_tools
97f7a63df1197ca4ecb5612caf82225cf1dddc2e
[ "MIT" ]
null
null
null
open_api_tools/test/chain.py
specify/open_api_tools
97f7a63df1197ca4ecb5612caf82225cf1dddc2e
[ "MIT" ]
null
null
null
open_api_tools/test/chain.py
specify/open_api_tools
97f7a63df1197ca4ecb5612caf82225cf1dddc2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Allow to test a chain of requests.""" import json from typing import Callable, List, Dict, Union from dataclasses import dataclass from termcolor import colored from open_api_tools.common.load_schema import Schema from open_api_tools.test.test_endpoint import parse_parameters from open_api_...
29.679389
79
0.528035
ce841cb9e1a16858dcd15f1bdfa19870f546868a
9,677
py
Python
sdk/python/pulumi_azure_native/eventgrid/v20180101/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20180101/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20180101/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...
41.178723
164
0.666736
a91e5207a71341bd5eebb3cf9f266898ad5eae57
43,542
py
Python
python/src/keyczar/keys.py
piplcom/keyczar
ac750b95c2dd496f906e5d0cc5e5ebdb42925fa8
[ "Apache-2.0" ]
null
null
null
python/src/keyczar/keys.py
piplcom/keyczar
ac750b95c2dd496f906e5d0cc5e5ebdb42925fa8
[ "Apache-2.0" ]
null
null
null
python/src/keyczar/keys.py
piplcom/keyczar
ac750b95c2dd496f906e5d0cc5e5ebdb42925fa8
[ "Apache-2.0" ]
null
null
null
# # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
33.136986
99
0.661706
1c487dc61b9ee3171cbff46d329fc9b97936f78e
386
py
Python
profiles_api/urls.py
doglzz0806/profiles-rest-api
11f9ee0ee6e278570b1edab30e27d0a41382ffca
[ "MIT" ]
1
2021-03-17T00:21:20.000Z
2021-03-17T00:21:20.000Z
profiles_api/urls.py
doglzz0806/profiles-rest-api
11f9ee0ee6e278570b1edab30e27d0a41382ffca
[ "MIT" ]
null
null
null
profiles_api/urls.py
doglzz0806/profiles-rest-api
11f9ee0ee6e278570b1edab30e27d0a41382ffca
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset') router.register('profile', views.UserProfileViewSet) urlpatterns = [ path('hello-view/',vi...
27.571429
79
0.772021
56abd34b321ed57ce6250e8f5f98a85905618662
9,147
py
Python
DjangoBlog/settings.py
snxkxk/blog
7c018c5a64c705a7aad2e50a94c863f77d22e992
[ "MIT" ]
null
null
null
DjangoBlog/settings.py
snxkxk/blog
7c018c5a64c705a7aad2e50a94c863f77d22e992
[ "MIT" ]
6
2021-03-19T01:47:07.000Z
2022-03-12T00:22:55.000Z
DjangoBlog/settings.py
snxkxk/blog
7c018c5a64c705a7aad2e50a94c863f77d22e992
[ "MIT" ]
null
null
null
""" Django settings for DjangoBlog project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
30.188119
110
0.660216
7a368755fc6de8b911a77abcd0eab1852fcfdaa1
166
py
Python
blogapi/posts/urls.py
HyanBatista/blog-api-prometheus-grafana
144ed51de4e0b7997afd45440f4c0448b9f81c6f
[ "MIT" ]
null
null
null
blogapi/posts/urls.py
HyanBatista/blog-api-prometheus-grafana
144ed51de4e0b7997afd45440f4c0448b9f81c6f
[ "MIT" ]
null
null
null
blogapi/posts/urls.py
HyanBatista/blog-api-prometheus-grafana
144ed51de4e0b7997afd45440f4c0448b9f81c6f
[ "MIT" ]
null
null
null
from django.urls import path from .views import PostList, PostDetail urlpatterns = [ path('<int:pk>/', PostDetail.as_view()), path('', PostList.as_view()), ]
23.714286
44
0.680723
b1a41e2c7147a214e83621c71c7f5ffefe6fafd4
416
py
Python
Aula 07 - Operadores Aritméticos/desafio011.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
3
2020-10-07T03:21:07.000Z
2020-10-13T14:18:49.000Z
Aula 07 - Operadores Aritméticos/desafio011.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
Aula 07 - Operadores Aritméticos/desafio011.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
# ler largura e altura de uma parede em metros e calcule a sua area e a quantidade de tinta # necessária para pintar, cada litro de tinta pinta uma area de 2m². largura = float(input('largura da parede em Metros: ')) altura = float(input('altura da parede em Metros: ')) area = largura*altura litro_tinta = area/2 print...
37.818182
91
0.735577
e970cb46cbe26d72d96aa796ad69c15fe2073f9c
577
py
Python
layerserver/widgets/modificationdatetime.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
5
2018-06-07T12:54:35.000Z
2022-01-14T10:38:38.000Z
layerserver/widgets/modificationdatetime.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
140
2018-06-18T10:27:28.000Z
2022-03-23T09:53:15.000Z
layerserver/widgets/modificationdatetime.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
1
2021-04-13T11:20:54.000Z
2021-04-13T11:20:54.000Z
from datetime import datetime from django.utils.timezone import get_current_timezone from .datetime import DatetimeWidget class ModificationDatetimeWidget(DatetimeWidget): base_type = 'datetime' @staticmethod def update(request, instance, validated_data, widget): validated_data[widget['name']] ...
28.85
80
0.757366
c3cd24fbaceabdb175f21b073a8d3d4559c5e3f2
5,160
py
Python
airbyte-integrations/connectors/source-instagram/source_instagram/source.py
datacequia/airbyte
99ec90c1116bd6b2be9b3c38b0096ae11a40495e
[ "MIT" ]
2
2021-08-04T03:17:38.000Z
2021-11-15T10:16:08.000Z
airbyte-integrations/connectors/source-instagram/source_instagram/source.py
datacequia/airbyte
99ec90c1116bd6b2be9b3c38b0096ae11a40495e
[ "MIT" ]
52
2021-06-11T12:39:05.000Z
2022-03-30T04:59:35.000Z
airbyte-integrations/connectors/source-instagram/source_instagram/source.py
datacequia/airbyte
99ec90c1116bd6b2be9b3c38b0096ae11a40495e
[ "MIT" ]
1
2021-08-04T03:25:02.000Z
2021-08-04T03:25:02.000Z
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
45.663717
181
0.702132
cc1ac93e369f6ee9998b693f383581403d3369c4
5,790
py
Python
COTR/datasets/megadepth_dataset.py
jiangwei221/COTR-1
96abd8f95e23c7bf4d04811db6dd131887a2f37a
[ "Apache-2.0" ]
283
2021-04-30T17:56:13.000Z
2022-03-30T10:33:02.000Z
COTR/datasets/megadepth_dataset.py
jiangwei221/COTR-1
96abd8f95e23c7bf4d04811db6dd131887a2f37a
[ "Apache-2.0" ]
27
2021-06-04T10:36:53.000Z
2022-03-31T04:58:07.000Z
COTR/datasets/megadepth_dataset.py
jiangwei221/COTR-1
96abd8f95e23c7bf4d04811db6dd131887a2f37a
[ "Apache-2.0" ]
34
2021-05-13T04:15:28.000Z
2022-01-17T21:22:03.000Z
''' dataset specific layer for megadepth ''' import os import json import random from collections import namedtuple import numpy as np from COTR.datasets import colmap_helper from COTR.global_configs import dataset_config from COTR.sfm_scenes import knn_search from COTR.utils import debug_utils, utils, constants Sc...
41.06383
202
0.692228
8685153218025a7affb222c5cb69e18c9319c560
1,886
py
Python
smoke/convert/modis_aod_to_nc.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
smoke/convert/modis_aod_to_nc.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
smoke/convert/modis_aod_to_nc.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
""" Functions to transform MODIS Aerosol Optical Depth files to netCDF files """ import datetime import logging import os import sys import xarray as xr import click import smoke.utils.utilities as utilities from pathlib import Path from smoke.load.parsers import * logging.getLogger(__name__).addHandler(logging.Null...
29.015385
80
0.71474
a676ef9a12e09e1b750fc3e11e9e41a83edb3329
48,447
py
Python
tensorflow/python/training/optimizer.py
ashuven63/tf_audio
bc561b81069001da01a1c7df4c16f6b9ba9a400b
[ "Apache-2.0" ]
1
2018-05-30T00:34:05.000Z
2018-05-30T00:34:05.000Z
tensorflow/python/training/optimizer.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
null
null
null
tensorflow/python/training/optimizer.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
1
2021-11-16T19:59:48.000Z
2021-11-16T19:59:48.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.906919
115
0.696927
305dff128ceb1c0c4ee229afab49462dc249dd35
2,613
py
Python
src/pyams_portal/portlets/spacer/skin/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
src/pyams_portal/portlets/spacer/skin/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
src/pyams_portal/portlets/spacer/skin/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2021 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
34.84
90
0.798316
79e9856d8e13dc948385709553647c71ef698485
2,476
py
Python
tiledb/__init__.py
georgeSkoumas/TileDB-Py
e02824be50fdac445c81f78c6b1586ab1ec79696
[ "MIT" ]
1
2020-10-21T08:14:43.000Z
2020-10-21T08:14:43.000Z
tiledb/__init__.py
georgeSkoumas/TileDB-Py
e02824be50fdac445c81f78c6b1586ab1ec79696
[ "MIT" ]
null
null
null
tiledb/__init__.py
georgeSkoumas/TileDB-Py
e02824be50fdac445c81f78c6b1586ab1ec79696
[ "MIT" ]
null
null
null
from __future__ import absolute_import import ctypes import os import sys if os.name == "posix": if sys.platform == "darwin": lib_name = "libtiledb.dylib" else: lib_name = "libtiledb.so" else: lib_name = "tiledb" # On Windows and whl builds, we may have a shared library already linked, or...
25.791667
100
0.682956
8736f8588a223c729cacecbc04a33c175ef52985
923
py
Python
smdebug_rulesconfig/debugger_rules/_ruleGroups.py
tomassosorio/sagemaker-debugger-rulesconfig
60b348e12f939d87404b44b96151596782f70b46
[ "Apache-2.0" ]
8
2020-02-09T19:57:56.000Z
2021-10-20T14:51:04.000Z
smdebug_rulesconfig/debugger_rules/_ruleGroups.py
tomassosorio/sagemaker-debugger-rulesconfig
60b348e12f939d87404b44b96151596782f70b46
[ "Apache-2.0" ]
6
2020-06-30T04:29:29.000Z
2021-03-09T03:27:41.000Z
smdebug_rulesconfig/debugger_rules/_ruleGroups.py
tomassosorio/sagemaker-debugger-rulesconfig
60b348e12f939d87404b44b96151596782f70b46
[ "Apache-2.0" ]
7
2019-12-08T20:17:04.000Z
2021-07-08T09:36:21.000Z
# set of rules that are expected to work for all supported frameworks # Supported Frameworks: Mxnet, Pytorch, Tensorflow, Xgboost UNIVERSAL_RULES = { "AllZero", "ClassImbalance", "Confusion", "LossNotDecreasing", "Overfit", "Overtraining", "SimilarAcrossRuns", "StalledTrainingRule", ...
28.84375
88
0.735645
157eaacd9ca79022ac942c50bcc78019e9ea719e
869
py
Python
members/apps.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
25
2017-02-27T19:44:23.000Z
2021-04-11T00:11:49.000Z
members/apps.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
26
2016-07-16T15:41:07.000Z
2016-10-11T16:44:04.000Z
members/apps.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
9
2016-08-08T17:19:34.000Z
2020-03-04T00:31:26.000Z
# members.apps # Describes the Members application for Django # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Sat Aug 22 10:41:24 2015 -0500 # # Copyright (C) 2015 District Data Labs # For license information, see LICENSE.txt # # ID: apps.py [d011c91] benjamin@bengfort.com $ """ Describes ...
27.15625
74
0.472957
65f1576963aaeaefe29edf090f737e0efaa6ebcd
761
pyde
Python
mode/examples/Basics/Transform/Rotate/Rotate.pyde
kazimuth/processing.py
9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1
[ "Apache-2.0" ]
4
2016-08-09T14:14:36.000Z
2021-12-10T07:51:35.000Z
mode/examples/Basics/Transform/Rotate/Rotate.pyde
kazimuth/processing.py
9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1
[ "Apache-2.0" ]
null
null
null
mode/examples/Basics/Transform/Rotate/Rotate.pyde
kazimuth/processing.py
9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1
[ "Apache-2.0" ]
null
null
null
""" Rotate. Rotating a square around the Z axis. To get the results you expect, send the rotate function angle parameters that are values between 0 and PI*2 (TWO_PI which is roughly 6.28). If you prefer to think about angles as degrees (0-360), you can use the radians() method to convert your values. For example: s...
21.742857
75
0.641261
6f8110ddcd796d50c60f5e5ae09010caf8840c52
3,639
py
Python
pills_online/settings.py
TermiNutZ/PillsOnline
d524cf076262285f1d6e1b2368e2653477e0eccc
[ "MIT" ]
null
null
null
pills_online/settings.py
TermiNutZ/PillsOnline
d524cf076262285f1d6e1b2368e2653477e0eccc
[ "MIT" ]
null
null
null
pills_online/settings.py
TermiNutZ/PillsOnline
d524cf076262285f1d6e1b2368e2653477e0eccc
[ "MIT" ]
null
null
null
""" Django settings for pills_online project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impo...
25.626761
91
0.699368
4502fb02b6c6aafecc11908a3319e662003a4e6f
13,148
py
Python
corehq/apps/reports/standard/inspect.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/reports/standard/inspect.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/reports/standard/inspect.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
import functools from couchdbkit.exceptions import ResourceNotFound from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_noop from jsonobject import DateTimeProperty from corehq.apps.reports import util from corehq.apps.reports.fi...
38.557185
133
0.581685
425c927f11250887d0b8d2c283d0737c79a87888
8,219
py
Python
experiments/plotting.py
xin-alice/cs159_safe_learning
44761774c38cec36f156b2978b5eb5ec1ca712e9
[ "MIT" ]
169
2017-11-08T17:05:12.000Z
2022-03-01T21:30:41.000Z
examples/plotting.py
hubbs5/safe_learning
98ecd359b41fd96aef542340b5dcfcfc616a3698
[ "MIT" ]
8
2018-08-23T14:55:48.000Z
2020-12-09T15:51:41.000Z
examples/plotting.py
hubbs5/safe_learning
98ecd359b41fd96aef542340b5dcfcfc616a3698
[ "MIT" ]
66
2017-11-08T17:07:06.000Z
2022-03-17T20:05:44.000Z
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from IPython.display import display, HTML from mpl_toolkits.mplot3d import Axes3D from safe_learning.utilities import (with_scope, get_storage, set_storage, get_feed_dict) __all__ = ['plot_lyapunov_1d', 'p...
34.245833
106
0.580971
47f4b99e97196bf4b7c67b16b8ceb677b35fa63c
28,178
py
Python
external/mysql/mysql-connector-python-8.0.11/lib/mysql/connector/protocol.py
Army-Ant/ArmyAntServer
3e292b9d38dd53807b03748fc767970dc8adbfb0
[ "BSD-3-Clause" ]
1
2018-05-30T01:38:23.000Z
2018-05-30T01:38:23.000Z
Others/Source/17/17.1/dbapp/mysql/connector/protocol.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
Others/Source/17/17.1/dbapp/mysql/connector/protocol.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
# Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, as # published by the Free Software Foundation. # # This program is also distributed with certain s...
38.233379
80
0.548158
f7c9b51e8ae1ff253ab63706d6e7258fa8566f78
6,141
py
Python
src/experiments/compare_filters/experiment_compare_filters.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
src/experiments/compare_filters/experiment_compare_filters.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
src/experiments/compare_filters/experiment_compare_filters.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
import os from os import listdir, makedirs from os.path import join import pickle import sys import cv2 import matplotlib.pyplot as plt from PIL import Image import numpy as np from time import time from skimage import filters # threshold_yen, frangi from skimage.exposure import rescale_intensity import src.data.cons...
33.741758
79
0.623351
69886bbbfb81337731eadce0420cbbe659ee3281
1,020
py
Python
programme/migrations/0025_auto_20160202_2237.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
programme/migrations/0025_auto_20160202_2237.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
programme/migrations/0025_auto_20160202_2237.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-02 20:31 import re from django.db import migrations SLUGIFY_CHAR_MAP = { 'ä': 'a', 'å': 'a', 'ö': 'o', 'ü': 'u', ' ': '-', '_': '-', '.': '-', } SLUGIFY_FORBANNAD_RE = re.compile(r'[^a-z0-9-]', re.UNICODE) SLUGIFY_MULTIDASH_RE = re.compil...
20.816327
60
0.614706
520d7912c1a10e802341f148485206262a565f7c
19,157
py
Python
python/pyspark/ml/recommendation.py
ChenWeiye83/spark
1f1d98c6facd556b70f457184231b5af78de8d53
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2018-09-11T15:27:22.000Z
2019-06-24T21:46:53.000Z
python/pyspark/ml/recommendation.py
ChenWeiye83/spark
1f1d98c6facd556b70f457184231b5af78de8d53
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5
2015-07-14T14:03:07.000Z
2018-06-06T12:40:44.000Z
python/pyspark/ml/recommendation.py
ChenWeiye83/spark
1f1d98c6facd556b70f457184231b5af78de8d53
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14
2015-10-31T14:19:10.000Z
2022-01-31T05:52:41.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 us...
39.417695
100
0.627186
13b3d71425a3836d7448536464038ef001322542
1,225
py
Python
setup.py
richClubb/python-lin
de837ab4c7c602ada4f4eefeae3a4749f82a7b1f
[ "MIT" ]
5
2019-03-18T19:01:22.000Z
2022-03-14T06:51:43.000Z
setup.py
richClubb/python-lin
de837ab4c7c602ada4f4eefeae3a4749f82a7b1f
[ "MIT" ]
6
2020-01-14T13:51:11.000Z
2021-08-25T12:15:21.000Z
setup.py
richClubb/python-lin
de837ab4c7c602ada4f4eefeae3a4749f82a7b1f
[ "MIT" ]
2
2020-01-14T12:58:00.000Z
2022-03-14T06:51:53.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from setuptools import setup, find_packages with open...
29.166667
74
0.689796
d13da94272848df7191e18587dbbdb6bfd54e4ff
916
py
Python
migrations/versions/71e498fe9d0f_.py
sumedhbala/catalog
ab969ccf39ce343ba0172e92221f56c18478f743
[ "MIT" ]
null
null
null
migrations/versions/71e498fe9d0f_.py
sumedhbala/catalog
ab969ccf39ce343ba0172e92221f56c18478f743
[ "MIT" ]
null
null
null
migrations/versions/71e498fe9d0f_.py
sumedhbala/catalog
ab969ccf39ce343ba0172e92221f56c18478f743
[ "MIT" ]
null
null
null
"""empty message Revision ID: 71e498fe9d0f Revises: Create Date: 2018-11-07 12:56:41.179420 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "71e498fe9d0f" down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
24.756757
73
0.649563
38085516bcda0cdaefafef39c86989498c704cf5
4,131
py
Python
LibrairieVideoCompress/Test_SophieCompression.py
JostTim/custom_libs
8f9e3f45c6f5f7e47b6582e072d09a8910efddd3
[ "MIT" ]
null
null
null
LibrairieVideoCompress/Test_SophieCompression.py
JostTim/custom_libs
8f9e3f45c6f5f7e47b6582e072d09a8910efddd3
[ "MIT" ]
null
null
null
LibrairieVideoCompress/Test_SophieCompression.py
JostTim/custom_libs
8f9e3f45c6f5f7e47b6582e072d09a8910efddd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 17 14:28:30 2019 @author: Timothe """ from VideoCompression.HirisSeqReader import HirisSeqReader, VideoArrayWrite, Foldersearch, Seq_to_Video from termcolor import colored import os import sys import re import logging from datetime import datetime import tkinter as tk fr...
42.153061
182
0.591382
94f6bb13ba98181ee7c6be301ee451d0871f69f9
9,918
py
Python
src/rtransformer/masked_transformer.py
cxqj/51-recurrent-transformer
e43647217ca30133aace0bce94b750a19d0deb70
[ "MIT" ]
143
2020-05-18T22:10:19.000Z
2022-03-22T06:28:38.000Z
src/rtransformer/masked_transformer.py
Tikquuss/mart
81b0ec274ab598f0b5b3e1cb00bfa238c2569099
[ "MIT" ]
10
2020-07-09T18:37:12.000Z
2021-07-13T18:52:28.000Z
src/rtransformer/masked_transformer.py
Tikquuss/mart
81b0ec274ab598f0b5b3e1cb00bfa238c2569099
[ "MIT" ]
28
2020-07-11T08:03:10.000Z
2022-02-17T08:07:46.000Z
""" Copyright (c) 2018, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause References: https://github.com/salesforce/densecap/blob/master/model/transformer.py Modified by J...
36.869888
117
0.604658
9efd82e3927dd7c8e09d92eeb8ed30ae98e4b411
895
py
Python
nicos_mlz/reseda/setups/guide_fields.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/reseda/setups/guide_fields.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/reseda/setups/guide_fields.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'Guide fields' group = 'lowlevel' display_order = 20 tango_base = 'tango://resedahw2.reseda.frm2:10000/reseda' devices = { 'gf%i' % i: device('nicos.devices.entangle.PowerSupply', description = 'Guide field %i' % i, tangodevice = '%s/coil/gf%i' % (tango_base,...
27.96875
71
0.556425
16ccdd69811e44fe64f9c7e75d8328873f1790a7
2,364
py
Python
backend/similarConferenceFinder.py
vunetsys/paper_search
f53222204761852f97b72876b79bef117cdfd463
[ "MIT" ]
null
null
null
backend/similarConferenceFinder.py
vunetsys/paper_search
f53222204761852f97b72876b79bef117cdfd463
[ "MIT" ]
null
null
null
backend/similarConferenceFinder.py
vunetsys/paper_search
f53222204761852f97b72876b79bef117cdfd463
[ "MIT" ]
1
2021-10-29T20:43:27.000Z
2021-10-29T20:43:27.000Z
import pandas as pd import numpy as np from sklearn.metrics.pairwise import euclidean_distances from sklearn.metrics.pairwise import linear_kernel from scipy import spatial def create_collaborative_keyworddb(db): # counts finger prints of keywords from each conference panda_keywords = [] stop_update_header =...
38.129032
130
0.711083
31082376927734d93ab61d91725275821f9b43c1
907
py
Python
share/qt/clean_mac_info_plist.py
bogdanoffcoin/bogdanoffcoin
a860f5f4c29c020b635d9d7e7e240365cd69e322
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
bogdanoffcoin/bogdanoffcoin
a860f5f4c29c020b635d9d7e7e240365cd69e322
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
bogdanoffcoin/bogdanoffcoin
a860f5f4c29c020b635d9d7e7e240365cd69e322
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Bogdanoffcoin-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./"...
30.233333
109
0.728776
fba551c42003afa852e57f357b649d108c419c48
9,673
py
Python
Api/utils.py
erfanhs/Tuky
11bd23ca31892e4579ec904b14a3ee701e58f9d8
[ "MIT" ]
3
2020-05-04T11:23:38.000Z
2020-06-19T14:04:16.000Z
Api/utils.py
erfanhs/Tuky
11bd23ca31892e4579ec904b14a3ee701e58f9d8
[ "MIT" ]
6
2021-03-30T13:15:49.000Z
2022-03-12T00:27:41.000Z
Api/utils.py
erfanhs/Tuky
11bd23ca31892e4579ec904b14a3ee701e58f9d8
[ "MIT" ]
1
2020-09-02T10:23:01.000Z
2020-09-02T10:23:01.000Z
from django.conf import settings from django.core.mail import send_mail from django.utils.crypto import get_random_string from hashlib import md5, sha1 import re import requests import datetime from dateutil.relativedelta import relativedelta import pytz from . import models tz = pytz.timezone('As...
38.233202
189
0.574072
b7d752aa1a360efb6bb96228e083bcb76e78e64c
10,539
py
Python
src/tools/test_ndn.py
funalab/QCANet
6e8503a3ac78e7cbde18881314c8ad53774f59e5
[ "MIT" ]
26
2018-06-02T01:50:28.000Z
2022-01-18T20:20:13.000Z
src/tools/test_ndn.py
funalab/QCANet
6e8503a3ac78e7cbde18881314c8ad53774f59e5
[ "MIT" ]
7
2018-11-30T13:43:10.000Z
2021-01-16T11:15:28.000Z
src/tools/test_ndn.py
funalab/QCANet
6e8503a3ac78e7cbde18881314c8ad53774f59e5
[ "MIT" ]
7
2018-06-20T07:58:59.000Z
2022-03-17T07:37:28.000Z
# -*- coding: utf-8 -*- import csv import sys import time import random import copy import math import os import numpy as np import os.path as pt from skimage import io from skimage import transform as tr from skimage import morphology as mor from argparse import ArgumentParser from chainer import cuda sys.path.appen...
49.247664
290
0.591707
bb293fa030d1402dd37326f11fd8ad23be4afcbc
5,094
py
Python
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
null
null
null
import os import pytest from dagster_aws.emr import EmrJobRunner, emr_pyspark_resource from dagster_pyspark import pyspark_resource, pyspark_solid from moto import mock_emr from dagster import ( DagsterInvalidDefinitionError, ModeDefinition, RunConfig, execute_pipeline, pipeline, ) from dagster.se...
33.513158
98
0.561837
d2555a3bfdb15bd379659fd32924764af5f1cb8c
13,293
py
Python
luna/gateware/soc/peripheral.py
modwizcode/luna
a401e5240d210ccc59526660604451bca92dc17c
[ "BSD-3-Clause" ]
609
2019-10-17T07:17:21.000Z
2022-03-29T02:31:28.000Z
luna/gateware/soc/peripheral.py
modwizcode/luna
a401e5240d210ccc59526660604451bca92dc17c
[ "BSD-3-Clause" ]
132
2020-01-19T11:48:03.000Z
2022-03-29T20:31:14.000Z
luna/gateware/soc/peripheral.py
modwizcode/luna
a401e5240d210ccc59526660604451bca92dc17c
[ "BSD-3-Clause" ]
113
2019-12-17T02:31:25.000Z
2022-03-18T13:01:17.000Z
# # This file is part of LUNA. # # Adapted from lambdasoc. # This file includes content Copyright (C) 2020 LambdaConcept. # # Per our BSD license, derivative files must include this license disclaimer. # # Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com> # SPDX-License-Identifier: BSD-3-Clause """ P...
35.073879
102
0.599714
b75d4c9dcabdde04b3574e84021e6cb9e0c111bf
680
py
Python
python-threatexchange/threatexchange/cli/tests/cli_smoke_test.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
997
2015-03-13T18:04:03.000Z
2022-03-30T12:09:10.000Z
python-threatexchange/threatexchange/cli/tests/cli_smoke_test.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
444
2015-03-26T17:28:49.000Z
2022-03-28T19:34:05.000Z
python-threatexchange/threatexchange/cli/tests/cli_smoke_test.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
294
2015-03-13T22:19:43.000Z
2022-03-30T08:42:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import sys import pytest from threatexchange.cli import main def test_all_helps(): """ Just executes all the commands to make sure they don't throw on help. View the pretty output with py.test -s """ def help(command=None):...
24.285714
73
0.630882
fa66763cb6972a92806bcf929a87e7d65ee83a88
425
py
Python
soustypes.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
soustypes.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
soustypes.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import arcpy arcpy.env.workspace = "C:/Temp/donnees.gdb" soustypes = arcpy.da.ListSubtypes("villes") for stcode, stdict in list(soustypes.items()): print("code: ", stcode, " nom: ", stdict['Name'], " defaut: ", stdict['Default']) """ Retourne ceci: ('code: ', 0, ' no...
22.368421
86
0.592941
0ebfc566cb1815ab821093f5020c7b817895e3a4
594
py
Python
fleet_management/core/notification/models.py
nahidsaikat/Fleet-Management-Backend
d3a20a9b971600eb039bcc62068599cbbc72537e
[ "MIT" ]
3
2018-08-09T14:06:09.000Z
2021-10-31T08:49:56.000Z
fleet_management/core/notification/models.py
nahidsaikat/Fleet-Management-Backend
d3a20a9b971600eb039bcc62068599cbbc72537e
[ "MIT" ]
null
null
null
fleet_management/core/notification/models.py
nahidsaikat/Fleet-Management-Backend
d3a20a9b971600eb039bcc62068599cbbc72537e
[ "MIT" ]
2
2018-10-09T08:38:28.000Z
2022-01-19T12:27:58.000Z
from django.db import models from django.contrib.auth.models import User # from django.contrib.auth.models import User as SecondUser class Notification(models.Model): message = models.TextField(null=False) from_employee_id = models.ForeignKey(User, on_delete=models.CASCADE, related_name='%(class)s_from_employ...
45.692308
112
0.784512
d6f4e33b92fa12180d10f3edeecfda8217d401ca
4,248
py
Python
docker/jupyterhub_config.py
GoogleCloudDataproc/jupyterhub-dataprocspawner
8859c088088cf7e15f0b395aaa4b1334a1d1c894
[ "Apache-2.0" ]
7
2020-06-01T15:35:21.000Z
2022-02-04T18:45:51.000Z
docker/jupyterhub_config.py
GoogleCloudDataproc/jupyterhub-dataprocspawner
8859c088088cf7e15f0b395aaa4b1334a1d1c894
[ "Apache-2.0" ]
20
2020-08-12T10:54:53.000Z
2021-06-25T19:55:17.000Z
docker/jupyterhub_config.py
GoogleCloudDataproc/jupyterhub-dataprocspawner
8859c088088cf7e15f0b395aaa4b1334a1d1c894
[ "Apache-2.0" ]
5
2020-04-28T12:02:13.000Z
2021-02-12T22:55:59.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
44.715789
126
0.780603
7b2f18da68a0f5d2dcefb8f1a6940803a206757a
2,555
py
Python
tenma_dev.py
ScopeFoundry/HW_tenma_power
e29f9f432b8888a0b250d7892c312be6c4566d4b
[ "BSD-3-Clause" ]
null
null
null
tenma_dev.py
ScopeFoundry/HW_tenma_power
e29f9f432b8888a0b250d7892c312be6c4566d4b
[ "BSD-3-Clause" ]
null
null
null
tenma_dev.py
ScopeFoundry/HW_tenma_power
e29f9f432b8888a0b250d7892c312be6c4566d4b
[ "BSD-3-Clause" ]
null
null
null
''' Created on Jul 6, 2017 @author: Alan Buckley <alanbuckley@lbl.gov> ''' import serial import time import logging logger = logging.getLogger(__name__) class TenmaDev(object): name = 'tenma_dev' def __init__(self, port="COM5", debug = False): self.port = port self.debug = debug ...
27.771739
84
0.526419
a4814887e2012d699b9ebb5f8b9828534740f6fd
58
py
Python
Storylines/storyline_evaluation/__init__.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Storylines/storyline_evaluation/__init__.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Storylines/storyline_evaluation/__init__.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 6/04/2021 10:33 AM """
14.5
28
0.62069
b7682276177fd6ab33aa343ed422541b827f460f
3,948
py
Python
Performance_Evaluation.py
alhomayani/OutFin
34cf8e8126ebb9bb1c47c62cbbaed1f56c8ded29
[ "MIT" ]
null
null
null
Performance_Evaluation.py
alhomayani/OutFin
34cf8e8126ebb9bb1c47c62cbbaed1f56c8ded29
[ "MIT" ]
null
null
null
Performance_Evaluation.py
alhomayani/OutFin
34cf8e8126ebb9bb1c47c62cbbaed1f56c8ded29
[ "MIT" ]
null
null
null
import numpy as np import os import pandas as pd from sklearn.preprocessing import MinMaxScaler from sklearn.utils import shuffle from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC from sklearn.tree import DecisionTreeClassifier f...
40.701031
112
0.66464
7aa4fa934c1256120ad178cb78b93a531007672d
821
py
Python
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
null
null
null
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
1
2020-10-30T02:01:39.000Z
2020-10-30T02:01:39.000Z
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
null
null
null
import numpy as np def get_relative_coordinates(sample, references=(4, 8, 12, 16)): # input: C, T, V, M c, t, v, m = sample.shape final_sample = np.zeros((4 * c, t, v, m)) valid_frames = (sample != 0).sum(axis=3).sum(axis=2).sum(axis=0) > 0 start = valid_frames.argmax...
31.576923
88
0.5676
0983163a0587338bb5d55dcb80bc7b466b5f512c
6,809
py
Python
pytext/data/utils.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
pytext/data/utils.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
pytext/data/utils.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import collections import itertools import re from typing import Dict, List, Tuple import torch from pytext.config.component import Component, ComponentType from pytext.utils import cuda def should_iter(i): """Whether ...
32.42381
88
0.653694
c95f82ba7f5dfc324e2aa3c928eea25928ca6a08
603
py
Python
listings/python_code.py
VsevolodKozlov-git/cs-lab-7
7526401b08033a7aa042b8ad183c4b38a2268b21
[ "MIT" ]
null
null
null
listings/python_code.py
VsevolodKozlov-git/cs-lab-7
7526401b08033a7aa042b8ad183c4b38a2268b21
[ "MIT" ]
null
null
null
listings/python_code.py
VsevolodKozlov-git/cs-lab-7
7526401b08033a7aa042b8ad183c4b38a2268b21
[ "MIT" ]
null
null
null
def f(x): return (5*x / (4-x**2)) def main(): #init figure fig = plt.figure() y = f(x) #clear vert. asymptots y[y>30] = np.inf y[y<-30] = -np.inf #plot main graphic plt.plot(x, y) #plot horizontal asymptots for i in [-2, 2]: plt.axvline(x=i, linestyle='dashed', colo...
22.333333
60
0.570481
36385416dc0cc6937df2057d82d96e3458ce5efb
506
py
Python
test_utils.py
drscotthawley/SPNet
94f1195c91e2373bee1f36bc7d834c4e07388369
[ "MIT" ]
1
2021-02-02T16:06:23.000Z
2021-02-02T16:06:23.000Z
test_utils.py
drscotthawley/SPNet
94f1195c91e2373bee1f36bc7d834c4e07388369
[ "MIT" ]
8
2021-01-25T15:53:26.000Z
2022-03-12T00:54:07.000Z
test_utils.py
drscotthawley/SPNet
94f1195c91e2373bee1f36bc7d834c4e07388369
[ "MIT" ]
1
2022-02-03T10:35:21.000Z
2022-02-03T10:35:21.000Z
import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from utils import * n = 100 features = 3 img_dims = [256.0,256.0] X_test = np.random.rand(n,features)-.5 Y_test = np.random.rand(n,features)-.5 Y_pred = Y_test + 0.02*(np.random.rand(n,features)-.5) #utils.plot_prediction(X_tes...
20.24
58
0.729249
cd667a87ce3e86a19a062d8a98d86c3bf6d387a1
3,444
py
Python
pypureclient/flashblade/FB_2_1/models/rapid_data_locking.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_1/models/rapid_data_locking.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_1/models/rapid_data_locking.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.1, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
29.186441
116
0.551103
b970fb6dfae526db8989800a6a62e9f472714a7c
20,723
py
Python
glocaltokens/client.py
leikoilja/google-home-local-authentication-tokens
f253172f71f39ecb633050e3655a8d140c9e8c79
[ "MIT" ]
1
2020-12-29T15:40:03.000Z
2020-12-29T15:40:03.000Z
glocaltokens/client.py
leikoilja/google-home-local-authentication-tokens
f253172f71f39ecb633050e3655a8d140c9e8c79
[ "MIT" ]
null
null
null
glocaltokens/client.py
leikoilja/google-home-local-authentication-tokens
f253172f71f39ecb633050e3655a8d140c9e8c79
[ "MIT" ]
null
null
null
"""Client""" from __future__ import annotations from datetime import datetime import json import logging import random from gpsoauth import perform_master_login, perform_oauth import grpc from zeroconf import Zeroconf from .const import ( ACCESS_TOKEN_APP_NAME, ACCESS_TOKEN_CLIENT_SIGNATURE, ACCESS_TOKEN...
39.248106
88
0.578536
22ec7e40360d5091f7ca8a4c99cda8bbb2b61db0
1,512
py
Python
flowmater/graph_util.py
KanHatakeyama/flowmater
d8b3bec06ee10c41cc2a83ada4a2966fd61f9535
[ "MIT" ]
null
null
null
flowmater/graph_util.py
KanHatakeyama/flowmater
d8b3bec06ee10c41cc2a83ada4a2966fd61f9535
[ "MIT" ]
null
null
null
flowmater/graph_util.py
KanHatakeyama/flowmater
d8b3bec06ee10c41cc2a83ada4a2966fd61f9535
[ "MIT" ]
null
null
null
""" ****************************** process graph files ****************************** """ import copy import networkx as nx import matplotlib.pyplot as plt #draw graph def draw_graph(g): pos = nx.spring_layout(g,k=0.2) nx.draw_networkx_labels(g, pos, labels = nx.get_node_attributes(g,'label')) plt.figur...
27
80
0.654101
109d50c07c93d41c991371b3a5d9107d6d0487f7
52,304
py
Python
src/assisted_test_infra/test_infra/helper_classes/cluster.py
mhrivnak/assisted-test-infra
5db2d3bf9999dda2f6756a412ecd6968cc55e95a
[ "Apache-2.0" ]
null
null
null
src/assisted_test_infra/test_infra/helper_classes/cluster.py
mhrivnak/assisted-test-infra
5db2d3bf9999dda2f6756a412ecd6968cc55e95a
[ "Apache-2.0" ]
23
2022-01-13T21:50:32.000Z
2022-03-28T09:14:43.000Z
src/assisted_test_infra/test_infra/helper_classes/cluster.py
mhrivnak/assisted-test-infra
5db2d3bf9999dda2f6756a412ecd6968cc55e95a
[ "Apache-2.0" ]
null
null
null
import contextlib import ipaddress import json import os import random import re import time import warnings from collections import Counter from pathlib import Path from typing import Any, Dict, List, Optional, Set, Union import requests import waiting import yaml from assisted_service_client import models from assis...
42.214689
120
0.679394
de697138aebfebdd6f4c178215b3bcaea9938718
6,434
py
Python
src/robot/model/testsuite.py
mbrzozowski/robotframework
3bb3301a715d2809647915b5150f54ddde83b5e0
[ "ECL-2.0", "Apache-2.0" ]
4
2020-09-13T08:56:49.000Z
2021-01-10T11:21:34.000Z
src/robot/model/testsuite.py
sotayamashita/robotframework
63cc1dac3d3ab8c9019d15e2fb0c61da99f026df
[ "ECL-2.0", "Apache-2.0" ]
55
2021-03-10T01:16:34.000Z
2022-03-14T01:27:43.000Z
src/robot/model/testsuite.py
sotayamashita/robotframework
63cc1dac3d3ab8c9019d15e2fb0c61da99f026df
[ "ECL-2.0", "Apache-2.0" ]
4
2016-02-29T15:42:22.000Z
2018-05-08T08:58:18.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
36.556818
79
0.632577
97747ae2932ba2dba81daffe4ef0804fc426f464
13,146
py
Python
pnc_cli/buildconfigurationsets.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
null
null
null
pnc_cli/buildconfigurationsets.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
null
null
null
pnc_cli/buildconfigurationsets.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
null
null
null
import logging from argh import arg from six import iteritems import json import pnc_cli.common as common import pnc_cli.cli_types as types import pnc_cli.utils as utils from pnc_cli import swagger_client from pnc_cli.swagger_client.apis.buildconfigurations_api import BuildconfigurationsApi from pnc_cli.swagger_clie...
42.543689
156
0.712156
d091e387b0465bdc4056a2be6c30784d3a8d28f0
2,863
py
Python
datas/models.py
ballon3/SUW-Demo
09c8793ab70de743b8f4484f6dc6120e2425570c
[ "MIT" ]
null
null
null
datas/models.py
ballon3/SUW-Demo
09c8793ab70de743b8f4484f6dc6120e2425570c
[ "MIT" ]
null
null
null
datas/models.py
ballon3/SUW-Demo
09c8793ab70de743b8f4484f6dc6120e2425570c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Datas https://iothook.com/ The MIT License (MIT) 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 right...
48.525424
93
0.7073
04cf83e657eae3d4dd8f461379ce5c0eb4f7ecd3
8,741
py
Python
eggs/sqlalchemy_migrate-0.7.2-py2.7.egg/migrate/versioning/schemadiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2015-11-05T09:43:45.000Z
2017-05-31T14:22:02.000Z
eggs/sqlalchemy_migrate-0.7.2-py2.7.egg/migrate/versioning/schemadiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2016-04-19T13:03:17.000Z
2016-04-19T13:03:17.000Z
eggs/sqlalchemy_migrate-0.7.2-py2.7.egg/migrate/versioning/schemadiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
""" Schema differencing support. """ import logging import sqlalchemy from sqlalchemy.types import Float log = logging.getLogger(__name__) def getDiffOfModelAgainstDatabase(metadata, engine, excludeTables=None): """ Return differences of model against database. :return: object which will evaluate to...
29.832765
85
0.590893
84c11a2bec9765cc4f991823a2b46c894c677043
3,912
py
Python
python/tink/prf/_prf_key_manager_test.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
12,366
2017-05-12T11:22:39.000Z
2022-03-31T13:40:46.000Z
python/tink/prf/_prf_key_manager_test.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
505
2017-05-18T20:54:30.000Z
2022-03-30T19:51:56.000Z
python/tink/prf/_prf_key_manager_test.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
1,179
2017-05-12T11:25:34.000Z
2022-03-31T14:31:15.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.980583
78
0.758436
54b17d949444d6a7a25b4af491a6a1ac17657fd2
26,091
py
Python
numba/core/compiler.py
charlesbluca/numba
3131959c98e567d74ab6db402230cfea6ceecafe
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/core/compiler.py
numba/numba
8e6fa5690fbe4138abf69263363be85987891e8b
[ "BSD-2-Clause", "BSD-3-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/core/compiler.py
charlesbluca/numba
3131959c98e567d74ab6db402230cfea6ceecafe
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
from collections import namedtuple import copy import warnings from numba.core.tracing import event from numba.core import (utils, errors, typing, interpreter, bytecode, postproc, config, callconv, cpu) from numba.parfors.parfor import ParforDiagnostics from numba.core.errors import CompilerErr...
34.105882
80
0.601318
2a8a6da652a66a194b3fbf78a4f936fbd5aae01f
739
py
Python
hashkernel/tests/__init__.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
hashkernel/tests/__init__.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
hashkernel/tests/__init__.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
from random import Random from time import perf_counter from hashkernel import Stringable class BytesGen: def __init__(self, seed=None): self.random = Random() if seed is None: self.random.seed(perf_counter(), version=2) else: self.random.seed(seed, version=2) ...
23.09375
71
0.654939
2b8c94bb42521c1d5aa5bb8ecba3c9d5d0e07d38
11,040
py
Python
tests/meerkat/columns/test_image_column.py
HazyResearch/meerkat
e3b437d47809ef8e856a5f732ac1e11a1176ba1f
[ "Apache-2.0" ]
null
null
null
tests/meerkat/columns/test_image_column.py
HazyResearch/meerkat
e3b437d47809ef8e856a5f732ac1e11a1176ba1f
[ "Apache-2.0" ]
null
null
null
tests/meerkat/columns/test_image_column.py
HazyResearch/meerkat
e3b437d47809ef8e856a5f732ac1e11a1176ba1f
[ "Apache-2.0" ]
null
null
null
"""Unittests for NumpyColumn.""" from __future__ import annotations import os from typing import List, Union import numpy as np import pandas as pd import pytest import torch import torchvision.datasets.folder as folder from PIL import Image from torchvision.transforms.functional import to_tensor import meerkat from...
35.844156
86
0.546649
ec69c137116e6bb51e0dd23bdf6d7c07c746076a
1,073
py
Python
doc/gauss/listings/containers/Mersenne.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
doc/gauss/listings/containers/Mersenne.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
doc/gauss/listings/containers/Mersenne.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2021 all rights reserved # import random from PointCloud import PointCloud class Mersenne(PointCloud): """ A point generator implemented using the Mersenne Twister random number generator that is available as part of the python stan...
29
92
0.657036
32f765bcc3fefa1db1d93d14f72687f16f84f453
10,652
py
Python
darknet.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
darknet.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
darknet.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
#!python3 """ Python 3 wrapper for identifying objects in images Requires DLL compilation Both the GPU and no-GPU version should be compiled; the no-GPU version should be renamed "yolo_cpp_dll_nogpu.dll". On a GPU system, you can force CPU evaluation by any of: - Set global variable DARKNET_FORCE_CPU to T...
33.39185
140
0.638847
cfd926738b1e09eee7c8dfb4b641e33f5422173e
2,161
py
Python
etl/parsers/etw/Microsoft_Windows_PerfNet.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_PerfNet.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_PerfNet.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-PerfNet GUID : cab2b8a5-49b9-4eec-b1b0-fac21da05a3b """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.par...
28.434211
123
0.716798
fdabdb156b624a4e3d69d72da3b004bcd3b3be82
18,330
py
Python
xarray/core/missing.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
1
2019-10-05T18:20:27.000Z
2019-10-05T18:20:27.000Z
xarray/core/missing.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/core/missing.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
import warnings from functools import partial from typing import Any, Callable, Dict, Sequence import numpy as np import pandas as pd from . import utils from .common import _contains_datetime_like_objects from .computation import apply_ufunc from .duck_array_ops import dask_array_type from .utils import OrderedSet, ...
29.23445
88
0.607965
43e3c2380103300ca4ed67ff7e55061988807a48
870
py
Python
phone_db/test.py
zhengwei5981/phone_db
a9e66f6064a1f971303d66c344fe8886e359c0cc
[ "MIT" ]
105
2019-02-19T13:43:32.000Z
2022-03-10T06:55:42.000Z
phone_db/test.py
zhengwei5981/phone_db
a9e66f6064a1f971303d66c344fe8886e359c0cc
[ "MIT" ]
2
2019-04-26T07:38:48.000Z
2019-05-30T09:34:20.000Z
phone_db/test.py
zhengwei5981/phone_db
a9e66f6064a1f971303d66c344fe8886e359c0cc
[ "MIT" ]
26
2019-02-19T14:21:14.000Z
2021-06-18T12:10:15.000Z
# -*- coding: utf-8 -*- import unittest from sqlalchemy.orm.dynamic import AppenderQuery from model import Session, Phone, Region class TestModel(unittest.TestCase): def setUp(self): self.session = Session() def tearDown(self): pass def test_phone(self): p = self.session.query(P...
27.1875
75
0.658621
d1fc540d8bf8fda8702fd4e2a0d85aabd692a78e
3,613
py
Python
docs/tools/blog.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1
2022-03-25T03:10:20.000Z
2022-03-25T03:10:20.000Z
docs/tools/blog.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
2
2021-10-12T23:45:51.000Z
2022-02-05T23:27:52.000Z
docs/tools/blog.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import datetime import logging import os import time import nav # monkey patches mkdocs import mkdocs.commands from mkdocs import config from mkdocs import exceptions import mdx_clickhouse import redirects import util def build_for_lang(lang, args): logging.info(f"Building {lang} blog"...
31.417391
88
0.569056
29d38a1061ef643d7b7bcfdc88b3a8d93b2e6008
280
py
Python
cloudmesh-exercises/e-cloudmesh-5.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/e-cloudmesh-5.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
2
2019-09-25T00:58:50.000Z
2019-09-25T01:10:35.000Z
cloudmesh-exercises/e-cloudmesh-5.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
1
2019-09-06T17:44:28.000Z
2019-09-06T17:44:28.000Z
# E.Cloudmesh.Common.5 # Develop a program that demostrate a use of cloudmesh.common.StopWatch from cloudmesh.common.StopWatch import StopWatch from time import sleep StopWatch.start("My stop watch") sleep(2) StopWatch.stop("My stop watch") print(StopWatch.get("My stop watch"))
28
71
0.789286
a70fcbced3f5562f045a227ae38c26a805a8bbdc
10,112
py
Python
sdk/python/pulumi_azure_nextgen/network/v20170601/route_filter_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20170601/route_filter_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20170601/route_filter_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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...
55.256831
2,241
0.676919
aa52a9ef853bf6c47c116de46dc834c65bf85c7d
2,537
py
Python
union_find/kruskal_algorithm.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
union_find/kruskal_algorithm.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
union_find/kruskal_algorithm.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
class DisjointSet: class Node: def __init__(self, x): self.parent = self self.rank = 0 self.val = x def __init__(self): self.map = {} def make_set(self, graph): """ Args: graph: the adjacent list of the ...
23.490741
77
0.445014
6f0a091ff47bd095a328403484d4d59519143138
9,429
py
Python
Tools/peg_generator/pegen/build.py
Tech-Matt/cpython
ed524b4569b1e4a166886c880018418d46284378
[ "0BSD" ]
2
2021-08-25T11:22:50.000Z
2021-08-28T05:35:44.000Z
Tools/peg_generator/pegen/build.py
Tech-Matt/cpython
ed524b4569b1e4a166886c880018418d46284378
[ "0BSD" ]
16
2018-06-03T02:04:29.000Z
2022-03-01T00:00:50.000Z
Tools/peg_generator/pegen/build.py
zed/cpython
863154c9292e70c5a8a1a3f22ef4ee42e2304281
[ "0BSD" ]
1
2021-09-04T09:56:10.000Z
2021-09-04T09:56:10.000Z
import pathlib import shutil import tokenize import sysconfig import tempfile import itertools from typing import Optional, Tuple, List, IO, Set, Dict from pegen.c_generator import CParserGenerator from pegen.grammar import Grammar from pegen.grammar_parser import GeneratedParser as GrammarParser from pegen.parser im...
36.405405
97
0.685651
c00b9fd7b44b75ce4c9ada8ba50aad4b5d12a64f
24,885
py
Python
cogs/roles.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
1
2021-09-04T04:52:13.000Z
2021-09-04T04:52:13.000Z
cogs/roles.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
null
null
null
cogs/roles.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
null
null
null
import asyncio import logging import disnake from disnake.ext import commands from cogs.mixins import AceMixin from utils.configtable import ConfigTable from utils.context import can_prompt from utils.converters import EmojiConverter, MaxLengthConverter from utils.string import po, shorten log = logging.getLogger(__...
26.758065
125
0.687884
8f9b5884737dbaf11254f6fe4f1fbd5c85750048
1,913
py
Python
zvt/domain/fundamental/dividend_financing.py
aaron8tang/zvt
568cf0d42577eb05b96e1a07ec512aed34245b2d
[ "MIT" ]
null
null
null
zvt/domain/fundamental/dividend_financing.py
aaron8tang/zvt
568cf0d42577eb05b96e1a07ec512aed34245b2d
[ "MIT" ]
null
null
null
zvt/domain/fundamental/dividend_financing.py
aaron8tang/zvt
568cf0d42577eb05b96e1a07ec512aed34245b2d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Column, String, DateTime, Float from sqlalchemy.orm import declarative_base from zvt.contract import Mixin from zvt.contract.register import register_schema DividendFinancingBase = declarative_base() class DividendFinancing(DividendFinancingBase, Mixin): """ 分红...
24.525641
126
0.713539
bc47832b0bd6b21188a6def528db9f0d8982de73
633
py
Python
python/src/comandos/uptime.py
devRMA/scriptsBotDiscord
917ab6e5d4b369f319ad886c4f8e0a150afa2de1
[ "MIT" ]
6
2021-12-10T13:17:34.000Z
2022-03-14T17:47:55.000Z
python/src/comandos/uptime.py
devRMA/scriptsBotDiscord
917ab6e5d4b369f319ad886c4f8e0a150afa2de1
[ "MIT" ]
null
null
null
python/src/comandos/uptime.py
devRMA/scriptsBotDiscord
917ab6e5d4b369f319ad886c4f8e0a150afa2de1
[ "MIT" ]
2
2022-03-14T12:30:16.000Z
2022-03-15T18:04:17.000Z
# Command uptime # Exemplo: !uptime # Linguagem usada: python 3.10 # Author: Sl4ker#1985 # Obtém o tempo que o bot está online # ATENÇÃO: Comando feito com o discord.py v2 import discord from discord.utils import format_dt, utcnow from discord.ext import commands bot = commands.Bot(command_prefix='!') @bot.event as...
24.346154
76
0.71722
ea590c99e1e5457013f3676fc92684e01cedb4bf
1,035
py
Python
app/app7_sigma49/h.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2020-05-30T06:01:50.000Z
2020-05-30T06:01:50.000Z
app/app7_sigma49/h.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
null
null
null
app/app7_sigma49/h.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2019-10-20T21:11:48.000Z
2019-10-20T21:11:48.000Z
import sys import csv import os sys.path.append('../../') import h_lib in_strFastaFilename = '{!s}/data/protein/sigma_49/Sigma_49_sequence.fasta'.format(os.environ.get('HOME')) in_strPeptideFilename = '{!s}/data/protein/sigma_49/Sigma_49.txt'.format(os.environ.get('HOME')) in_strProtRefsDir = '../app4_sigma49/protRef...
41.4
105
0.777778
2d25ef58a590de9d57d82ee57a69acfe5bf21368
1,544
py
Python
discussion_forum/accounts/views.py
SUTHARRAM/discussion_forum
84cc10f4118eb22e5e42a3acc7e564d0f85b8607
[ "MIT" ]
null
null
null
discussion_forum/accounts/views.py
SUTHARRAM/discussion_forum
84cc10f4118eb22e5e42a3acc7e564d0f85b8607
[ "MIT" ]
null
null
null
discussion_forum/accounts/views.py
SUTHARRAM/discussion_forum
84cc10f4118eb22e5e42a3acc7e564d0f85b8607
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.contrib.auth import ( authenticate, get_user_model, login, logout, ) from django.shortcuts import render, redirect from .forms import UserLoginForm, UserRegisterForm def login_view(request): #print(request.user.is_aut...
26.62069
74
0.645078
98b6322b2042079eb73edf5ee5e38e32ab3f0007
1,714
py
Python
insectcrop.py
erasta/insectcrop
5e0d1a3865c03983b2ecfd72a8fe1d295cdeba8c
[ "MIT" ]
null
null
null
insectcrop.py
erasta/insectcrop
5e0d1a3865c03983b2ecfd72a8fe1d295cdeba8c
[ "MIT" ]
null
null
null
insectcrop.py
erasta/insectcrop
5e0d1a3865c03983b2ecfd72a8fe1d295cdeba8c
[ "MIT" ]
null
null
null
import numpy as np import urllib.request import cv2 import os try: os.mkdir( "out" ) except: pass # def url_to_image(url): # resp = urllib.request.urlopen(url) # image = np.asarray(bytearray(resp.read()), dtype="uint8") # image = cv2.imdecode(image, cv2.IMREAD_GRAYSCALE) # return image # img = url_to_imag...
48.971429
608
0.723454
629799b33db5c8cf2cb8c0c47e14b57cbbd2babb
2,333
py
Python
lib/datasets/factory.py
opencvfun/faster-rcnn-pedestrian-detection
182a55095619042b70716b718087e05937567b46
[ "MIT" ]
1
2018-01-18T06:55:13.000Z
2018-01-18T06:55:13.000Z
lib/datasets/factory.py
opencvfun/faster-rcnn-pedestrian-detection
182a55095619042b70716b718087e05937567b46
[ "MIT" ]
null
null
null
lib/datasets/factory.py
opencvfun/faster-rcnn-pedestrian-detection
182a55095619042b70716b718087e05937567b46
[ "MIT" ]
1
2021-02-22T21:25:42.000Z
2021-02-22T21:25:42.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" __sets = {} fro...
33.811594
79
0.6018
12233f5837105f7b91c6d2b22d4eae4797778869
5,578
py
Python
litex_boards/targets/camlink_4k.py
pftbest/litex-boards
7525b8772f5b2e17ee4803d27863788ba381d7a1
[ "BSD-2-Clause" ]
1
2021-05-29T21:57:17.000Z
2021-05-29T21:57:17.000Z
litex_boards/targets/camlink_4k.py
pftbest/litex-boards
7525b8772f5b2e17ee4803d27863788ba381d7a1
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/camlink_4k.py
pftbest/litex-boards
7525b8772f5b2e17ee4803d27863788ba381d7a1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause import argparse import sys from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex_boards.platforms import camlin...
39.560284
115
0.539978
8509df436b8bd0a6e02716799e9c80927410f327
784
py
Python
Medium/12. Integer to Roman/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
3
2020-05-09T12:55:09.000Z
2022-03-11T18:56:05.000Z
Medium/12. Integer to Roman/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
null
null
null
Medium/12. Integer to Roman/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
1
2022-03-11T18:56:16.000Z
2022-03-11T18:56:16.000Z
# 12. Integer to Roman # Runtime: 56 ms, faster than 40.29% of Python3 online submissions for Integer to Roman. # Memory Usage: 13.8 MB, less than 6.15% of Python3 online submissions for Integer to Roman. class Solution: def intToRoman(self, num: int) -> str: map = {1000: "M", 900: "CM",...
27.034483
92
0.422194
826bebaa9410f509b8414980169d3d75e9e39fa2
13,615
py
Python
test/devices_tests/switch_test.py
magicbear/xknx
e6fe7bbd292e0fee29b2c4f210aff3031d76539d
[ "MIT" ]
null
null
null
test/devices_tests/switch_test.py
magicbear/xknx
e6fe7bbd292e0fee29b2c4f210aff3031d76539d
[ "MIT" ]
null
null
null
test/devices_tests/switch_test.py
magicbear/xknx
e6fe7bbd292e0fee29b2c4f210aff3031d76539d
[ "MIT" ]
null
null
null
"""Unit test for Switch objects.""" import asyncio from unittest.mock import AsyncMock, Mock import pytest from xknx import XKNX from xknx.devices import Switch from xknx.dpt import DPTBinary from xknx.telegram import GroupAddress, Telegram from xknx.telegram.apci import GroupValueRead, GroupValueResponse, GroupValueW...
34.208543
112
0.614249
5d9b5d57df7d44e644eab9cd29abd9040fa5d7cd
11,422
py
Python
venv/Lib/site-packages/nipype/utils/tests/test_config.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/utils/tests/test_config.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/utils/tests/test_config.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import sys import pytest from nipype import config from unittest.mock import MagicMock try: import xvfbwrapper has_Xvfb = True except ImportError: has_Xvfb = ...
38.587838
85
0.708983