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
e6d9f079b621c9c3abe1a936a461166e5fcb1fc0
271
py
Python
webdriver_manager/logger.py
dariopnc/webdriver_manager
4c108baf15fecec002ab3cf0f4baded961c60786
[ "Apache-2.0" ]
1
2021-08-03T06:22:55.000Z
2021-08-03T06:22:55.000Z
webdriver_manager/logger.py
dariopnc/webdriver_manager
4c108baf15fecec002ab3cf0f4baded961c60786
[ "Apache-2.0" ]
null
null
null
webdriver_manager/logger.py
dariopnc/webdriver_manager
4c108baf15fecec002ab3cf0f4baded961c60786
[ "Apache-2.0" ]
null
null
null
import logging import os logger = logging.getLogger('WDM') def _init_logger(level=logging.INFO): """Initialize the logger.""" log_level = os.getenv('WDM_LOG_LEVEL') if log_level: level = int(log_level) logger.setLevel(level) _init_logger()
19.357143
42
0.682657
bbe69d1c31d4bf9ef02ee6b13add23ec2a31e78a
1,094
py
Python
Contents/Libraries/Shared/guessit/rules/markers/groups.py
jippo015/Sub-Zero.bundle
734e0f7128c05c0f639e11e7dfc77daa1014064b
[ "MIT" ]
1,553
2015-11-09T02:17:06.000Z
2022-03-31T20:24:52.000Z
Contents/Libraries/Shared/guessit/rules/markers/groups.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
691
2015-11-05T21:32:26.000Z
2022-03-17T10:52:45.000Z
Contents/Libraries/Shared/guessit/rules/markers/groups.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
162
2015-11-06T19:38:55.000Z
2022-03-16T02:42:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Groups markers (...), [...] and {...} """ from rebulk import Rebulk def groups(): """ Builder for rebulk object. :return: Created Rebulk object :rtype: Rebulk """ rebulk = Rebulk() rebulk.defaults(name="group", marker=True) starting = ...
21.88
65
0.47989
e8da37cc9995034ae20f54059e4102ad371c2551
584
py
Python
drones/graphql/schema/types.py
miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn
75143af8948c445a03042168cb09f344234a4a04
[ "MIT" ]
null
null
null
drones/graphql/schema/types.py
miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn
75143af8948c445a03042168cb09f344234a4a04
[ "MIT" ]
null
null
null
drones/graphql/schema/types.py
miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn
75143af8948c445a03042168cb09f344234a4a04
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.auth.models import User from graphene_django.types import DjangoObjectType from drones.models import DroneCategory, Drone, Pilot, Competition class CategoryType(DjangoObjectType): class Meta: model = DroneCategory class DroneType(DjangoObjectType): class ...
18.83871
66
0.712329
0b3437aa787ea4b2ed726996fd21e597680650af
360
py
Python
grnet_detect/setup.py
565353780/grnet-detect-ros
e15f735e8479300925cdaa5ba09ac72470cd3dfd
[ "MIT" ]
null
null
null
grnet_detect/setup.py
565353780/grnet-detect-ros
e15f735e8479300925cdaa5ba09ac72470cd3dfd
[ "MIT" ]
null
null
null
grnet_detect/setup.py
565353780/grnet-detect-ros
e15f735e8479300925cdaa5ba09ac72470cd3dfd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['GRNetDetector'], package_...
22.5
61
0.733333
54f7f0ab0640b7f6a6b795bf20ff87acd2b048b9
4,038
py
Python
rapp_core_agent/src/rapp_core_agent/AudioRecordServer/AudioRecordServer.py
rapp-project/rapp-pc-agent
8df615c4728cf2d5331b0c407d729c46f4ba8674
[ "Apache-2.0" ]
1
2016-01-15T16:37:47.000Z
2016-01-15T16:37:47.000Z
rapp_core_agent/src/rapp_core_agent/AudioRecordServer/AudioRecordServer.py
rapp-project/rapp-pc-agent
8df615c4728cf2d5331b0c407d729c46f4ba8674
[ "Apache-2.0" ]
null
null
null
rapp_core_agent/src/rapp_core_agent/AudioRecordServer/AudioRecordServer.py
rapp-project/rapp-pc-agent
8df615c4728cf2d5331b0c407d729c46f4ba8674
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ## # Copyright 2015 RAPP # # 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 a...
34.512821
80
0.604507
65f5008d6cf2f11f07d391ede18bcc03ef126f94
4,149
py
Python
PySONIC/core/stimobj.py
scbao/pysonic
b4ccaf49772d55f632a0995c411d1cc042d71903
[ "MIT" ]
null
null
null
PySONIC/core/stimobj.py
scbao/pysonic
b4ccaf49772d55f632a0995c411d1cc042d71903
[ "MIT" ]
null
null
null
PySONIC/core/stimobj.py
scbao/pysonic
b4ccaf49772d55f632a0995c411d1cc042d71903
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Theo Lemaire # @Email: theo.lemaire@epfl.ch # @Date: 2020-04-21 11:32:49 # @Last Modified by: Theo Lemaire # @Last Modified time: 2020-06-08 20:21:15 import abc from ..utils import isIterable, si_format class StimObject(metaclass=abc.ABCMeta): ''' Generic interface to a si...
32.414063
99
0.54712
7e09fe8c68194c50ee52914603ef33749ea2ace9
5,220
py
Python
sdl2/ext/time.py
iKarith/py-sdl2
30c36b02077d83a0f00f27243cf45e11d7eff7ee
[ "CC0-1.0" ]
null
null
null
sdl2/ext/time.py
iKarith/py-sdl2
30c36b02077d83a0f00f27243cf45e11d7eff7ee
[ "CC0-1.0" ]
null
null
null
sdl2/ext/time.py
iKarith/py-sdl2
30c36b02077d83a0f00f27243cf45e11d7eff7ee
[ "CC0-1.0" ]
null
null
null
"""Track and control game time and framerate. .. note:: This is a **MODIFIED**, pure Python implementation of time-related functions from `PyGameSDL2's time`_, in Cython, released under zlib license. .. code-block:: none PygameSDL2 Notice / zlib License: ----------------------------------------------------...
30.526316
78
0.635632
58ef5937b6841bdcc153b6b5d660aca9ac2eb543
32,362
py
Python
learners/TTTabstractlearner.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
2
2019-10-15T11:28:12.000Z
2021-01-28T15:14:09.000Z
learners/TTTabstractlearner.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
null
null
null
learners/TTTabstractlearner.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
null
null
null
import tempfile from collections import deque from queue import Queue from graphviz import Digraph from equivalencecheckers.equivalencechecker import EquivalenceChecker from itertools import product, chain, combinations, permutations from functools import reduce from equivalencecheckers.bruteforce import BFEquivalenc...
34.101159
138
0.554941
168bdc56e02125b69092a083ce47838cb1d4ab80
9,144
py
Python
legacy-v6.0.2/webfilter/fortios_webfilter_search_engine.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
14
2018-09-25T20:35:25.000Z
2021-07-14T04:30:54.000Z
legacy-v6.0.2/webfilter/fortios_webfilter_search_engine.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
legacy-v6.0.2/webfilter/fortios_webfilter_search_engine.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, 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 Lic...
30.078947
138
0.590223
a863b4d2a03352f558ac57368f3c42e607c367c4
1,881
py
Python
offline-rl-algorithms/CQL/cql-train.py
TJU-DRL-LAB/ai-optimizer
f558cc524c66460913989519779873b371bf78bc
[ "MIT" ]
null
null
null
offline-rl-algorithms/CQL/cql-train.py
TJU-DRL-LAB/ai-optimizer
f558cc524c66460913989519779873b371bf78bc
[ "MIT" ]
null
null
null
offline-rl-algorithms/CQL/cql-train.py
TJU-DRL-LAB/ai-optimizer
f558cc524c66460913989519779873b371bf78bc
[ "MIT" ]
null
null
null
import argparse import tjuOfflineRL from sklearn.model_selection import train_test_split import torch def main(args): torch.set_num_threads(2) dataset, env = tjuOfflineRL.datasets.get_dataset(args.dataset) # fix seed tjuOfflineRL.seed(args.seed) env.seed(args.seed) _, test_episod...
36.173077
82
0.582137
c94019c9762c03b645a5541ce9d6418bb1feca70
118
py
Python
Chapter09/exceptiontype.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
Chapter09/exceptiontype.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
Chapter09/exceptiontype.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
try: num = int(raw_input("Enter the number ")) re = 100/num print re except Exception as e : print e, type(e)
16.857143
43
0.644068
8600ce819c6c159c13c7a572c4721c4cb15c1c9c
1,357
py
Python
timemory/gperf/heap_profiler.py
m-gul/timemory
36520ff4aedc09ea7b54981dd8c97c4960f6ee79
[ "MIT" ]
1
2019-12-06T22:21:13.000Z
2019-12-06T22:21:13.000Z
timemory/gperf/heap_profiler.py
hbrunie/timemory
36520ff4aedc09ea7b54981dd8c97c4960f6ee79
[ "MIT" ]
null
null
null
timemory/gperf/heap_profiler.py
hbrunie/timemory
36520ff4aedc09ea7b54981dd8c97c4960f6ee79
[ "MIT" ]
null
null
null
#!@PYTHON_EXECUTABLE@ # MIT License # # Copyright (c) 2019, The Regents of the University of California, # through Lawrence Berkeley National Laboratory (subject to receipt of any # required approvals from the U.S. Dept. of Energy). All rights reserved. # # Permission is hereby granted, free of charge, to any person o...
45.233333
80
0.77745
ae92d0d08eaac78407f0fc411cb55bd7fad28c2c
674
py
Python
queensChecker.py
Kronossaurus/OCEV
181cb42a2d40a759a6024ddd7c0de53827f8aad1
[ "MIT" ]
null
null
null
queensChecker.py
Kronossaurus/OCEV
181cb42a2d40a759a6024ddd7c0de53827f8aad1
[ "MIT" ]
null
null
null
queensChecker.py
Kronossaurus/OCEV
181cb42a2d40a759a6024ddd7c0de53827f8aad1
[ "MIT" ]
null
null
null
import sys argc = len(sys.argv) if argc == 1: filename = "nQueens.txt" else: filename = sys.argv[1] file = open(filename, "r") n = file.readline() queens = file. readline().split() conflict = [] for i in queens: for j in queens[queens.index(i)+1::]: if i == j or abs(int(i)-int(j)) == abs(queens.index(...
22.466667
74
0.630564
7b6522f0d4cf96cf99bdfd1a38fb82a8cb5dbe0b
112,174
py
Python
tbnf/grammar_parser_raw.py
thautwarm/Typed-BNF
897a4a2bd389dcb2ca16c6c773b28f0388336f63
[ "MIT" ]
38
2022-01-01T06:45:27.000Z
2022-03-20T14:18:38.000Z
tbnf/grammar_parser_raw.py
thautwarm/typed-bnf
b5694a34fe21a064250f2ef88745d8ebad51eb33
[ "MIT" ]
7
2021-09-17T16:46:50.000Z
2021-12-31T20:49:35.000Z
tbnf/grammar_parser_raw.py
thautwarm/typed-bnf
b5694a34fe21a064250f2ef88745d8ebad51eb33
[ "MIT" ]
3
2022-01-01T07:33:44.000Z
2022-01-09T11:41:33.000Z
# The file was automatically generated by Lark v1.1.2 __version__ = "1.1.2" # # # Lark Stand-alone Generator Tool # ---------------------------------- # Generates a stand-alone LALR(1) parser # # Git: https://github.com/erezsh/lark # Author: Erez Shinan (erezshin@gmail.com) # # # >>> LICENSE # #...
36.742221
7,140
0.620839
3bb9537d69c171cebc33faa8c9656d5519b761a7
9,624
py
Python
ML_MMI_TL/GM_ML_Kaggle_TL_500_epochs_MMI_64_Frozen_Layer_NewKaggle_ARC_FL8.py
gmurashova/MLWA
f42660cd4423bb1222b7f69daf96201d52e5309b
[ "MIT" ]
null
null
null
ML_MMI_TL/GM_ML_Kaggle_TL_500_epochs_MMI_64_Frozen_Layer_NewKaggle_ARC_FL8.py
gmurashova/MLWA
f42660cd4423bb1222b7f69daf96201d52e5309b
[ "MIT" ]
2
2021-08-13T12:40:35.000Z
2021-08-14T00:04:20.000Z
ML_MMI_TL/GM_ML_Kaggle_TL_500_epochs_MMI_64_Frozen_Layer_NewKaggle_ARC_FL8.py
colbrydi/MLWA
c4e7a250c9155ad0f3c06a170233f366b3efe9dc
[ "MIT" ]
1
2021-08-16T14:46:56.000Z
2021-08-16T14:46:56.000Z
#!/usr/bin/env python from __future__ import absolute_import, division, print_function # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt # matplotlib.use('agg') import numpy as np import pandas as pd import os# from tens...
38.650602
297
0.652328
1b3e93f4fe701280e16680949c28e0c93e9915bb
5,648
py
Python
brainscore/benchmarks/freemanziemba2013.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
52
2019-12-13T06:43:44.000Z
2022-02-21T07:47:39.000Z
brainscore/benchmarks/freemanziemba2013.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
104
2019-12-06T18:08:54.000Z
2022-03-31T23:57:51.000Z
brainscore/benchmarks/freemanziemba2013.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
32
2019-12-05T14:31:14.000Z
2022-03-10T02:04:45.000Z
import brainscore from brainscore.benchmarks._neural_common import NeuralBenchmark, average_repetition from brainscore.metrics.ceiling import InternalConsistency, RDMConsistency from brainscore.metrics.rdm import RDMCrossValidated from brainscore.metrics.regression import CrossRegressedCorrelation, pls_regression, pear...
55.920792
456
0.630135
1990f7fd9fa6ea179df47ba73465bb75fa3b134a
12,936
py
Python
symphony/bdk/gen/agent_model/v4_import_response_list.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/agent_model/v4_import_response_list.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/agent_model/v4_import_response_list.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
""" Agent API This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key mana...
45.87234
1,445
0.58944
edbd17e4c5f5167458545c70c094e1463cec5b57
501
py
Python
data/scripts/templates/object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_s9_gen1.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_s9_gen1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_s9_gen1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Weapon() result.template = "object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_s9_gen1....
29.470588
110
0.754491
28db5efc752453759c2749eda7bd87310634a14a
30
py
Python
test_for.py
ioaio/pynet_testx
a0113be0d1ba7328de3f46dbeb4e63d9be16a08f
[ "Apache-2.0" ]
null
null
null
test_for.py
ioaio/pynet_testx
a0113be0d1ba7328de3f46dbeb4e63d9be16a08f
[ "Apache-2.0" ]
null
null
null
test_for.py
ioaio/pynet_testx
a0113be0d1ba7328de3f46dbeb4e63d9be16a08f
[ "Apache-2.0" ]
null
null
null
for i in range (10): print i
10
20
0.633333
8dbfc67cabdcdf05e7617815fab8b188d06dea2a
6,326
py
Python
face_recognition/face_pb2.py
chenqianfzh/kube-cluster-sample
a71f326ac222dff23378eac36129027c9bcf2ce1
[ "Apache-2.0" ]
40
2018-04-16T15:37:16.000Z
2022-03-26T15:09:12.000Z
face_recognition/face_pb2.py
chenqianfzh/kube-cluster-sample
a71f326ac222dff23378eac36129027c9bcf2ce1
[ "Apache-2.0" ]
21
2018-05-04T08:04:50.000Z
2021-12-10T08:02:34.000Z
face_recognition/face_pb2.py
chenqianfzh/kube-cluster-sample
a71f326ac222dff23378eac36129027c9bcf2ce1
[ "Apache-2.0" ]
11
2018-04-20T10:04:07.000Z
2022-02-08T00:18:29.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: face.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
27.745614
501
0.753241
c96fc0e121982baadd998995010f2cc27a4c2328
699
py
Python
hash-tables/firsrt_recuring_character.py
ra1ski/data-structures
64a2e21904f5e8a6dfce9c15a9d5362d9761073b
[ "Apache-2.0" ]
null
null
null
hash-tables/firsrt_recuring_character.py
ra1ski/data-structures
64a2e21904f5e8a6dfce9c15a9d5362d9761073b
[ "Apache-2.0" ]
null
null
null
hash-tables/firsrt_recuring_character.py
ra1ski/data-structures
64a2e21904f5e8a6dfce9c15a9d5362d9761073b
[ "Apache-2.0" ]
null
null
null
from typing import List, Union example_one = [2, 5, 1, 2, 3, 5, 1, 2, 4] # returns 2 example_two = [2, 1, 1, 2, 3, 5, 1, 2, 4] # returns 1 example_three = [2, 3, 4, 5] # returns None def first_recurring_character(a_list: List[int]) -> Union[int, None]: """ Hash map solution. Good time complexity. Tradeoff: me...
24.964286
69
0.642346
2e02bef72efe2b0a27d9569c5b69c2eb7caaba98
3,835
py
Python
simplified/agent2.py
andreybabynin/td
28fc38c4dc849cb283acda9b640be1fc9ac7e175
[ "Apache-2.0" ]
2
2020-02-07T18:07:29.000Z
2020-10-14T18:41:21.000Z
simplified/agent2.py
andreybabynin/td
28fc38c4dc849cb283acda9b640be1fc9ac7e175
[ "Apache-2.0" ]
1
2021-01-27T03:54:08.000Z
2021-09-15T21:11:19.000Z
simplified/agent2.py
andreybabynin/td
28fc38c4dc849cb283acda9b640be1fc9ac7e175
[ "Apache-2.0" ]
2
2020-08-08T10:23:17.000Z
2020-10-24T16:33:45.000Z
from settings import GAMMA import numpy as np import torch class DQN: def __init__(self, engine, explore_start=0.3, explore_stop=0.001, decay_rate=0.000001): self.engine = engine # NN architecture self.explore_start = explore_start self.explore_stop = explore_stop ...
41.684783
110
0.612516
f81a7000ed1e7a7ee6cca2d4d0a08936abd0b9cf
1,730
py
Python
process_input_args.py
dipans/image_classifier
e296b6f189584eda1b40c33059974ca92e6430e4
[ "MIT" ]
1
2019-07-30T18:38:53.000Z
2019-07-30T18:38:53.000Z
process_input_args.py
dipans/image-classifier
e296b6f189584eda1b40c33059974ca92e6430e4
[ "MIT" ]
null
null
null
process_input_args.py
dipans/image-classifier
e296b6f189584eda1b40c33059974ca92e6430e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # PROGRAMMER: Dipan S. # DATE CREATED: 5/20/2019 # PURPOSE: Create a function that retrieves the following command line inputs # from the user using the Argparse Python module. If the user fails to # provide some or all...
49.428571
120
0.679769
ed433164684849805f623e8ff1505aaeb09f5689
28,924
py
Python
kivymd/uix/toolbar/toolbar.py
vhn0912/KivyMD
2f6f2b78a3c1f9ff15d18ede24fd034a8db5371d
[ "MIT" ]
1
2022-02-26T22:09:34.000Z
2022-02-26T22:09:34.000Z
kivymd/uix/toolbar/toolbar.py
vhn0912/KivyMD
2f6f2b78a3c1f9ff15d18ede24fd034a8db5371d
[ "MIT" ]
null
null
null
kivymd/uix/toolbar/toolbar.py
vhn0912/KivyMD
2f6f2b78a3c1f9ff15d18ede24fd034a8db5371d
[ "MIT" ]
null
null
null
""" Components/Toolbar ================== .. seealso:: `Material Design spec, App bars: top <https://material.io/components/app-bars-top>`_ `Material Design spec, App bars: bottom <https://material.io/components/app-bars-bottom/app-bars-bottom.html>`_ `Material Design 3 spec, App bars: bottom <https://m3....
29.757202
115
0.599917
829ce1b6e3d29197cfedfad4943b80be9cb7d744
553
py
Python
collective/stats/ldapstats.py
enfold/collective.stats
c8a1a47763da739875ac326f609401ff3b4878fa
[ "ZPL-1.1", "ZPL-2.1" ]
null
null
null
collective/stats/ldapstats.py
enfold/collective.stats
c8a1a47763da739875ac326f609401ff3b4878fa
[ "ZPL-1.1", "ZPL-2.1" ]
null
null
null
collective/stats/ldapstats.py
enfold/collective.stats
c8a1a47763da739875ac326f609401ff3b4878fa
[ "ZPL-1.1", "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- from collective.stats import init_stats from collective.stats import STATS from datetime import datetime from ldap.ldapobject import SimpleLDAPObject original_ldap_call = SimpleLDAPObject._ldap_call def _ldap_call(self, func, *args, **kwargs): if getattr(STATS, 'stats', None) is None: ...
27.65
63
0.735986
68ff0132348af83951e6027058b8abeef94ae236
3,924
py
Python
botolkey/bk.py
shyamjangid07/Reverse-Engineering
469efabcd6057f7895d8d891f1fabdf2ffe730b0
[ "Apache-2.0" ]
337
2020-08-15T12:22:14.000Z
2022-03-29T06:05:15.000Z
botolkey/bk.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
3
2020-11-12T14:30:48.000Z
2021-05-18T16:56:22.000Z
botolkey/bk.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
83
2020-08-15T00:22:58.000Z
2022-03-31T08:40:23.000Z
# Decompiled by HTR-TECH | TAHMID RAYAT # Github : https://github.com/htr-tech #--------------------------------------- # Auto Dis Parser 2.2.0 # Source File : patched.pyc # Bytecode Version : 2.7 # Time : Sat Aug 8 14:41:37 2020 #--------------------------------------- # waste of Time # -*- coding: utf-8 -*- impor...
28.852941
153
0.441386
0d7d61fdca5476020c4b407102414c4ad63590a0
2,470
py
Python
get_images_from_url_old.py
fdphd15/make-movie-from-imagefiles
5b37954759f43e2981aea006c548a9bbdee203ae
[ "Apache-2.0" ]
null
null
null
get_images_from_url_old.py
fdphd15/make-movie-from-imagefiles
5b37954759f43e2981aea006c548a9bbdee203ae
[ "Apache-2.0" ]
null
null
null
get_images_from_url_old.py
fdphd15/make-movie-from-imagefiles
5b37954759f43e2981aea006c548a9bbdee203ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Based on code posted in forum reply by Liquid_Fire on 11/27/11 from # http://stackoverflow.com/questions/8286352/how-to-save-an-image-locally- # using-python-whose-url-address-i-already-know import urllib.request # Input Parameters input_data = { \ 'url': { \ 'address': "http://spacewea...
38.59375
82
0.553441
c61eb96df02fc12b30bf115590491f9138dbe6e1
818
py
Python
python/phonenumbers/shortdata/region_UA.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/shortdata/region_UA.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_UA.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. UA metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_UA = PhoneMetadata(id='UA', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_number_pattern='\\d{...
62.923077
151
0.760391
2466547e2948b739e11d754814568d9b55ec0bf1
4,469
py
Python
pandas/tests/frame/test_cumulative.py
panjacek/pandas
a7ecced88a42c426bf61016c0131cab023c0cdff
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_cumulative.py
panjacek/pandas
a7ecced88a42c426bf61016c0131cab023c0cdff
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_cumulative.py
panjacek/pandas
a7ecced88a42c426bf61016c0131cab023c0cdff
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" Tests for DataFrame cumulative operations See also -------- tests.series.test_cumulative """ import numpy as np import pytest from pandas import DataFrame, Series, _is_numpy_dev import pandas._testing as tm class TestDataFrameCumulativeOps: # ----------------------------------------------------------------...
31.251748
85
0.597449
65a6e9cc3dfbe24604dfb123121df6ec76961199
4,503
py
Python
setup.py
cloudmesh/cloudmesh-box
182a03d4bab8267d616384f6a649dfd6e567e793
[ "Apache-2.0" ]
null
null
null
setup.py
cloudmesh/cloudmesh-box
182a03d4bab8267d616384f6a649dfd6e567e793
[ "Apache-2.0" ]
null
null
null
setup.py
cloudmesh/cloudmesh-box
182a03d4bab8267d616384f6a649dfd6e567e793
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ----------------------------------------------------------------------- # # Copyright 2008-2010, Gregor von Laszewski # # Copyright 2010-2018, cloudmesh.org # # ...
36.024
75
0.549189
f5418a0aa9c79775eb4ce2a8ce96816972e22b85
210
py
Python
mlb/scripts/summarize_retrosheet.py
seankelly/mlb-data
1f54545bcabc55693e4da448f56695294ac84047
[ "Apache-2.0" ]
2
2016-03-13T15:19:20.000Z
2019-06-23T01:40:22.000Z
mlb/scripts/summarize_retrosheet.py
seankelly/mlb-data
1f54545bcabc55693e4da448f56695294ac84047
[ "Apache-2.0" ]
null
null
null
mlb/scripts/summarize_retrosheet.py
seankelly/mlb-data
1f54545bcabc55693e4da448f56695294ac84047
[ "Apache-2.0" ]
null
null
null
from mlb.retrosheet.summarize import summarize_stats from mlb.util import commandline_args def run(): args, extra_args = commandline_args('Summarize Retrosheet data') summarize_stats(args, extra_args)
30
68
0.8
3fcc9de26f18448a0bf83ff6a6738ff1e149369f
2,217
py
Python
venv/Lib/site-packages/adodbapi/examples/db_print.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
150
2021-11-02T05:31:51.000Z
2022-03-24T06:22:22.000Z
venv/Lib/site-packages/adodbapi/examples/db_print.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
4
2021-12-01T11:55:58.000Z
2022-02-24T16:14:37.000Z
venv/Lib/site-packages/adodbapi/examples/db_print.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
33
2021-11-03T00:29:41.000Z
2022-03-15T13:15:56.000Z
""" db_print.py -- a simple demo for ADO database reads.""" import sys import adodbapi.ado_consts as adc cmd_args = ("filename", "table_name") if "help" in sys.argv: print("possible settings keywords are:", cmd_args) sys.exit() kw_args = {} # pick up filename and proxy address from command line (optionally)...
30.369863
88
0.567433
3ebbc0705bc97aba9cb974684810992d39aa672c
445
py
Python
projects/permissions/comments.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
3
2019-02-07T14:47:00.000Z
2022-02-15T14:09:38.000Z
projects/permissions/comments.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
74
2017-12-13T09:18:04.000Z
2022-03-11T23:29:59.000Z
projects/permissions/comments.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
8
2017-12-13T09:31:20.000Z
2022-02-15T13:10:34.000Z
from rest_framework import permissions class CommentPermissions(permissions.BasePermission): def has_object_permission(self, request, view, obj): # Read is always allowed if request.method in permissions.SAFE_METHODS: return True if request.method == 'POST': return...
29.666667
67
0.678652
ed434cab186ef244957f98e83f5f9f167917a644
2,691
py
Python
neutron/tests/unit/plugins/ml2/drivers/ovn/agent/test_neutron_agent.py
10088/neutron
38cdfb88558887b830514b4ef390fd535c11942c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/plugins/ml2/drivers/ovn/agent/test_neutron_agent.py
10088/neutron
38cdfb88558887b830514b4ef390fd535c11942c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/plugins/ml2/drivers/ovn/agent/test_neutron_agent.py
10088/neutron
38cdfb88558887b830514b4ef390fd535c11942c
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Red Hat, 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 agre...
38.442857
78
0.67447
2560fb98e4d0238eab78142c4b8e3f752b51e314
2,417
py
Python
gaeenv/utils.py
soulnai/gaeenv
6b2ab86651e3dc8addb8ed5505a197cbb03550fb
[ "Apache-2.0" ]
1
2015-03-31T20:50:43.000Z
2015-03-31T20:50:43.000Z
gaeenv/utils.py
signalpillar/gaeenv
6b2ab86651e3dc8addb8ed5505a197cbb03550fb
[ "Apache-2.0" ]
2
2015-01-23T13:48:02.000Z
2015-01-23T15:17:48.000Z
gaeenv/utils.py
soulnai/gaeenv
6b2ab86651e3dc8addb8ed5505a197cbb03550fb
[ "Apache-2.0" ]
null
null
null
import logging import os def mkdir(path): """ Create directory """ if not os.path.exists(path): logger.debug(' * Creating: %s ... ', path) os.makedirs(path) logger.debug('done.') else: logger.debug(' * Directory %s already exists', path) def writefile(dest, conten...
26.855556
75
0.529996
0160279a859bbe5b80d7d5f14e524b48c23d472c
10,431
py
Python
homeassistant/setup.py
niulinlnc/home-assistant
135e5ea15d482daf444afb96bbb290170c51f56e
[ "Apache-2.0" ]
null
null
null
homeassistant/setup.py
niulinlnc/home-assistant
135e5ea15d482daf444afb96bbb290170c51f56e
[ "Apache-2.0" ]
null
null
null
homeassistant/setup.py
niulinlnc/home-assistant
135e5ea15d482daf444afb96bbb290170c51f56e
[ "Apache-2.0" ]
null
null
null
"""All methods needed to bootstrap a Home Assistant instance.""" import asyncio import logging.handlers from timeit import default_timer as timer from types import ModuleType from typing import Awaitable, Callable, Optional, Dict, List from homeassistant import requirements, core, loader, config as conf_util from hom...
32.905363
78
0.640303
94dcf96a6cee411057ada35171ceaf3501e0b6e2
2,144
py
Python
dojo/unittests/tools/test_dockle_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/unittests/tools/test_dockle_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/unittests/tools/test_dockle_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
from django.test import TestCase from dojo.tools.dockle.parser import DockleParser from dojo.models import Test class TestDockleParser(TestCase): def test_parse_no_findings(self): testfile = open("dojo/unittests/scans/dockle/no_findings.json") parser = DockleParser() findings = parser.get...
43.755102
97
0.665578
69b0cb34eae05bc50b644239e5314a61c9f7602b
1,151
py
Python
mistral/tests/unit/utils/test_expression_utils.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
3
2015-08-28T04:57:56.000Z
2017-03-27T10:59:56.000Z
mistral/tests/unit/utils/test_expression_utils.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
21
2015-04-14T22:41:53.000Z
2019-02-20T09:30:10.000Z
mistral/tests/unit/utils/test_expression_utils.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
12
2015-08-14T02:27:37.000Z
2020-12-31T10:09:21.000Z
# Copyright 2014 - Mirantis, 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 ag...
25.577778
77
0.670721
90ab54c59cc897be88eb73fabd32f61377f2f86d
30,744
py
Python
python/ambassador/config/config.py
viveksinghggits/ambassador
76395e903bbc0040a6169e16641fe04acf0d2702
[ "Apache-2.0" ]
null
null
null
python/ambassador/config/config.py
viveksinghggits/ambassador
76395e903bbc0040a6169e16641fe04acf0d2702
[ "Apache-2.0" ]
null
null
null
python/ambassador/config/config.py
viveksinghggits/ambassador
76395e903bbc0040a6169e16641fe04acf0d2702
[ "Apache-2.0" ]
1
2021-12-13T08:40:18.000Z
2021-12-13T08:40:18.000Z
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37.862069
149
0.613648
40b9b2b69301a1f7c7471249ba76068cd002a8e3
10,113
py
Python
climetlab/arguments/climetlab_types.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
climetlab/arguments/climetlab_types.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
climetlab/arguments/climetlab_types.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2021 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
24.97037
108
0.612182
7dfa5849a424c43a161e39e7448269a157204c4d
8,875
py
Python
docs/source/conf.py
onaio/tally-ho
f7a81909755924370653051bfc8315588dc75356
[ "Apache-2.0" ]
12
2015-09-07T17:12:42.000Z
2021-12-29T07:51:18.000Z
docs/source/conf.py
onaio/tally-ho
f7a81909755924370653051bfc8315588dc75356
[ "Apache-2.0" ]
122
2018-09-18T04:05:39.000Z
2022-01-17T10:12:48.000Z
docs/source/conf.py
onaio/tally-ho
f7a81909755924370653051bfc8315588dc75356
[ "Apache-2.0" ]
13
2015-06-06T17:32:34.000Z
2020-09-10T12:58:07.000Z
# -*- coding: utf-8 -*- # # tally-ho documentation build configuration file, created by # sphinx-quickstart on Mon Mar 3 12:03:23 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
32.155797
79
0.709859
083aa8b69190e77f5e0b9ec659cf6c06a3411de6
23,816
py
Python
nipype/pipeline/engine/tests/test_engine.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/pipeline/engine/tests/test_engine.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/pipeline/engine/tests/test_engine.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.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: """Tests for the engine module """ from copy import deepcopy from glob import glob import os import pytest from ... import engine as pe from .test_base import EngineTestInterface ...
35.17873
115
0.591997
ec91b1b0f745cdc26d2e9b637c3d11b37be853e8
7,830
py
Python
src/bindings/python/src/openvino/runtime/opset7/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
2
2021-12-14T15:27:46.000Z
2021-12-14T15:34:16.000Z
src/bindings/python/src/openvino/runtime/opset7/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
33
2021-09-23T04:14:30.000Z
2022-01-24T13:21:32.000Z
src/bindings/python/src/openvino/runtime/opset7/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
11
2021-11-09T00:51:40.000Z
2021-11-10T12:04:16.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.runtime.opset1.ops import absolute from openvino.runtime.opset1.ops import absolute as abs from openvino.runtime.opset1.ops import acos from openvino.runtime.opset4.ops import acosh from openvino.runtime.opset1.ops import a...
49.872611
71
0.859898
4256dc3b083058528bbe0d45b03127ec2d8b2f5d
145
py
Python
nimbus/errors.py
usdhs/nimbus
8d53510081c42cb585ebf6b6a3bcff72a33a8bf9
[ "CC0-1.0" ]
null
null
null
nimbus/errors.py
usdhs/nimbus
8d53510081c42cb585ebf6b6a3bcff72a33a8bf9
[ "CC0-1.0" ]
1
2017-12-21T19:34:59.000Z
2017-12-21T19:34:59.000Z
nimbus/errors.py
usdhs/nimbus
8d53510081c42cb585ebf6b6a3bcff72a33a8bf9
[ "CC0-1.0" ]
1
2022-03-29T15:32:27.000Z
2022-03-29T15:32:27.000Z
"""" Exception classes """ class NimbusError(Exception): pass class NotFound(NimbusError): pass class ManyFound(NimbusError): pass
12.083333
29
0.703448
22bc24316bc24ed3e18896396e43a6ec89c79303
706
py
Python
trackermodule/nettracker.py
code-master5/Distributed-Downloader-and-Merger
120a2382bd74cd0c0641cd025a05d219b52175b0
[ "MIT" ]
8
2018-03-20T14:26:10.000Z
2021-12-02T02:53:46.000Z
trackermodule/nettracker.py
code-master5/Distributed-Downloader-and-Merger
120a2382bd74cd0c0641cd025a05d219b52175b0
[ "MIT" ]
1
2021-06-01T23:21:27.000Z
2021-06-01T23:21:27.000Z
trackermodule/nettracker.py
code-master5/Distributed-Downloader-and-Merger
120a2382bd74cd0c0641cd025a05d219b52175b0
[ "MIT" ]
1
2018-05-16T14:02:46.000Z
2018-05-16T14:02:46.000Z
""" Tracker Functionality Interface """ class NetTracker: """ Provides tracker functionality """ def __init__(self): self.peer_servers_set = set() def add_peer(self, peer_server): """ add a peer server to current list """ self.peer_servers_set.add(peer_server) def remove_...
28.24
82
0.640227
317ce07d4175d912805b450733b7787a943ebb6b
2,072
py
Python
run_optimization.py
joha2/ToOptixCore
8ad17dcee349173a1b000c28de66e567ba2ad7a1
[ "MIT" ]
null
null
null
run_optimization.py
joha2/ToOptixCore
8ad17dcee349173a1b000c28de66e567ba2ad7a1
[ "MIT" ]
null
null
null
run_optimization.py
joha2/ToOptixCore
8ad17dcee349173a1b000c28de66e567ba2ad7a1
[ "MIT" ]
null
null
null
from ToOptix.OptimizationController import OptimizationController import os import json def run_optimization(penal, matSets, opti_type, sol_type, weight_factors, max_iteration, vol_frac, files, workDir='work', solverPath='ccx', cpus=2, no_design_set=Non...
37.672727
77
0.666506
f34273f419eb42d5990e6ba087adc13b1b158a79
1,960
py
Python
autofish.py
doupoa/Minecraft-AutoFish
e323b6da56f598252a903b32ffbe8e8a93b981e4
[ "Apache-2.0" ]
1
2022-02-24T21:06:42.000Z
2022-02-24T21:06:42.000Z
autofish.py
doupoa/Minecraft-AutoFish
e323b6da56f598252a903b32ffbe8e8a93b981e4
[ "Apache-2.0" ]
null
null
null
autofish.py
doupoa/Minecraft-AutoFish
e323b6da56f598252a903b32ffbe8e8a93b981e4
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 from mss import mss import time from pynput.mouse import Button, Controller imgname = mss().shot() print("正在获取您的屏幕..") img = cv2.imread(imgname) sp = img.shape szX = sp[1] szY = sp[0] print("当前您的屏幕尺寸为{}x{}".format(szX, szY)) point1 = (int(szX * 0.49), int(szY * 0.6)) point2 ...
28.823529
74
0.57551
4b90a57da712f7e5d34af510e3ca35344d421dc7
4,929
py
Python
src/foremast/pipeline/create_pipeline_lambda.py
e4r7hbug/foremast
40fe2fcfb69e0037c57c5cfd72b65ee66717147f
[ "Apache-2.0" ]
null
null
null
src/foremast/pipeline/create_pipeline_lambda.py
e4r7hbug/foremast
40fe2fcfb69e0037c57c5cfd72b65ee66717147f
[ "Apache-2.0" ]
null
null
null
src/foremast/pipeline/create_pipeline_lambda.py
e4r7hbug/foremast
40fe2fcfb69e0037c57c5cfd72b65ee66717147f
[ "Apache-2.0" ]
null
null
null
# Foremast - Pipeline Tooling # # Copyright 2018 Gogo, 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...
35.978102
116
0.621424
458f77887215640f13e78f2c435748e2e9809ee0
5,841
py
Python
CartPole/CartPoleNumpyGPU.py
LinuxIsCool/756project
cf43e24ce5dc8ebb9810b1680d839e7d47f5ff5f
[ "Apache-2.0" ]
2
2018-10-11T18:47:10.000Z
2020-04-05T06:45:02.000Z
CartPole/CartPoleNumpyGPU.py
LinuxIsCool/756project
cf43e24ce5dc8ebb9810b1680d839e7d47f5ff5f
[ "Apache-2.0" ]
null
null
null
CartPole/CartPoleNumpyGPU.py
LinuxIsCool/756project
cf43e24ce5dc8ebb9810b1680d839e7d47f5ff5f
[ "Apache-2.0" ]
3
2018-10-11T18:47:11.000Z
2020-04-01T06:21:19.000Z
""" Simple code for Distributed ES proposed by OpenAI. Based on this paper: Evolution Strategies as a Scalable Alternative to Reinforcement Learning Details can be found in : https://arxiv.org/abs/1703.03864 Visit more on my tutorial site: https://morvanzhou.github.io/tutorials/ """ import minpy.numpy as np import num...
38.94
128
0.621469
0bf547f4cbedba4618ac32d594dcf5db22ae1179
16,523
py
Python
sharpy-sc2/dummies/protoss/cannon_rush.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
1
2020-12-06T18:04:27.000Z
2020-12-06T18:04:27.000Z
sharpy-sc2/dummies/protoss/cannon_rush.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
null
null
null
sharpy-sc2/dummies/protoss/cannon_rush.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
null
null
null
from math import floor from typing import List, Optional from sc2 import UnitTypeId, Race from sc2.ids.upgrade_id import UpgradeId from sc2.position import Point2 from sc2.unit import Unit from sharpy.knowledges import KnowledgeBot, Knowledge from sharpy.managers.core import ManagerBase from sharpy.managers.core.buil...
40.3
117
0.543848
cf50f95aeb6090fc71e7bd4ce8e4fa30203f9aab
2,629
py
Python
pull_test_rows.py
wxppl/cfpb
3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee
[ "CC0-1.0" ]
2
2018-07-26T19:47:04.000Z
2019-02-25T00:48:07.000Z
pull_test_rows.py
wxppl/cfpb
3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee
[ "CC0-1.0" ]
10
2015-12-08T13:09:30.000Z
2015-12-17T14:47:49.000Z
pull_test_rows.py
wxppl/cfpb
3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee
[ "CC0-1.0" ]
4
2017-07-14T03:07:11.000Z
2021-02-20T10:49:03.000Z
''' Takes an OpenAddresses formatted file and writes every good row without or with a zipcode into an output file, defaults to without a zip code ''' import argparse import os #command line parser parser = argparse.ArgumentParser(description = 'Code that takes all good rows without zip codes') parser.add_argument('in...
49.603774
141
0.705591
7e6dced040557aa5a7c6ab2b67e26dfe575c018c
42,340
py
Python
src/you_get/common.py
gonewbee/you-get
858f46090287dbf294455b119e02b4c865cba43d
[ "MIT" ]
1
2019-09-24T09:22:39.000Z
2019-09-24T09:22:39.000Z
src/you_get/common.py
orianna14/you-get
858f46090287dbf294455b119e02b4c865cba43d
[ "MIT" ]
null
null
null
src/you_get/common.py
orianna14/you-get
858f46090287dbf294455b119e02b4c865cba43d
[ "MIT" ]
1
2020-11-18T13:16:18.000Z
2020-11-18T13:16:18.000Z
#!/usr/bin/env python SITES = { '163' : 'netease', '56' : 'w56', 'acfun' : 'acfun', 'archive' : 'archive', 'baidu' : 'baidu', 'bandcamp' : 'bandcamp', 'baomihua' : 'baomihua', 'bilibili' : 'bilibili', ...
34.200323
241
0.545111
ff6665da372a7c25d79777d4c9f5eb43642b1404
3,256
py
Python
src/data/process_imputation_data.py
ashokuniq/airbin_prediction
8a4d5ccff54c4d7473917af6242c86b26707717c
[ "MIT" ]
null
null
null
src/data/process_imputation_data.py
ashokuniq/airbin_prediction
8a4d5ccff54c4d7473917af6242c86b26707717c
[ "MIT" ]
null
null
null
src/data/process_imputation_data.py
ashokuniq/airbin_prediction
8a4d5ccff54c4d7473917af6242c86b26707717c
[ "MIT" ]
null
null
null
import numpy from src.data.process_data import AirbnbPricePredictor from docs.data_config import * import pandas as pd class MissingDataPredictor(AirbnbPricePredictor): def __init__(self, input_csv: str, save_csv_path: str): super().__init__(input_csv, save_csv_path) self.input_csv = input_csv ...
27.59322
119
0.640356
5c2c43ee98c3dac6831c4c9b8ebcb35bce9027fa
1,003
py
Python
exchangelib/services/move_item.py
kraglik/exchangelib
3d4aad35f5e24bc282f02e5fa8d67ee683fda64e
[ "BSD-2-Clause" ]
null
null
null
exchangelib/services/move_item.py
kraglik/exchangelib
3d4aad35f5e24bc282f02e5fa8d67ee683fda64e
[ "BSD-2-Clause" ]
null
null
null
exchangelib/services/move_item.py
kraglik/exchangelib
3d4aad35f5e24bc282f02e5fa8d67ee683fda64e
[ "BSD-2-Clause" ]
null
null
null
from ..util import create_element, set_xml_value, MNS from .common import EWSAccountService, create_item_ids_element class MoveItem(EWSAccountService): """ MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/moveitem-operation """ SERVICE_NAME = 'MoveItem' elemen...
37.148148
109
0.696909
878695cf4efffa0f001801b2744aa996a489e883
2,285
py
Python
examples/shapes.py
orsinium-labs/svg.py
0906f86f99fa1d83fcba7edb871df1a82744dd24
[ "MIT" ]
2
2022-03-09T12:02:02.000Z
2022-03-15T22:40:18.000Z
examples/shapes.py
orsinium-labs/svg.py
0906f86f99fa1d83fcba7edb871df1a82744dd24
[ "MIT" ]
null
null
null
examples/shapes.py
orsinium-labs/svg.py
0906f86f99fa1d83fcba7edb871df1a82744dd24
[ "MIT" ]
null
null
null
""" Tutorial: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Basic_Shapes Usage: python3 examples/shapes.py > examples/shapes.svg xdg-open examples/shapes.svg """ import svg def draw() -> svg.SVG: return svg.SVG( width=200, height=250, xmlns="http://www.w3.org/2000/...
26.264368
74
0.365427
0e3e8da9ddf01a7bd89470a75d92a7eddffbab0e
3,078
py
Python
tests/simple/signal.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
420
2015-07-30T00:02:21.000Z
2022-03-28T16:52:28.000Z
tests/simple/signal.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
198
2015-07-29T17:17:36.000Z
2022-01-20T18:31:28.000Z
tests/simple/signal.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
75
2015-07-29T15:17:54.000Z
2022-02-24T06:50:23.000Z
#!/usr/bin/env python ####################################################### # Copyright (c) 2015, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ###############################...
23.676923
72
0.606238
25377ac10c8fd2548b840971afeabbf68a1fd97d
733
py
Python
sandbox/test_isready_connection_closed.py
mrmilosz/psycopg2
34d3ac428c81b2dce93d3202af978e977de4b099
[ "OpenSSL" ]
6
2015-09-11T05:24:55.000Z
2021-12-18T04:24:57.000Z
sandbox/test_isready_connection_closed.py
mrmilosz/psycopg2
34d3ac428c81b2dce93d3202af978e977de4b099
[ "OpenSSL" ]
1
2015-01-22T22:50:42.000Z
2015-01-22T22:50:42.000Z
sandbox/test_isready_connection_closed.py
beyang/psycopg2
62dfd8e9841616b4b7eea12fc923b3ee57fc5cc4
[ "OpenSSL" ]
4
2016-02-15T19:11:47.000Z
2022-03-16T18:41:25.000Z
import gc import sys import os import signal import warnings import psycopg2 print "Testing psycopg2 version %s" % psycopg2.__version__ dbname = os.environ.get('PSYCOPG2_TESTDB', 'psycopg2_test') conn = psycopg2.connect("dbname=%s" % dbname) curs = conn.cursor() curs.isready() print "Now restart the test postgresql ...
22.90625
100
0.729877
740daaf6929ca739a0b6ba1bdf524fe8e2e0c170
4,524
py
Python
mantle/lattice/mantle40/LUT.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
null
null
null
mantle/lattice/mantle40/LUT.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
null
null
null
mantle/lattice/mantle40/LUT.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
null
null
null
from collections import Sequence from magma import * from magma.compatibility import IntegerTypes from magma.bitutils import lutinit, int2seq from ..ice40.PLB import SB_LUT4, A0, A1, A2, A3 __all__ = ['LUT1', 'LUT2', 'LUT3', 'LUT4'] __all__ += ['LUT5', 'LUT6', 'LUT7', 'LUT8'] __all__ += ['LUTN', 'LUT'] __all__ += ['A...
29.960265
123
0.438329
274cfb8b49246d4a9621b9d94ea349ec4c906261
10,571
py
Python
exchangeConnection/huobi/huobiService913.py
yyy999/auto_ma912
b62bd6d59c2140116ec81f8c5c1567e5deec0569
[ "BSD-2-Clause" ]
null
null
null
exchangeConnection/huobi/huobiService913.py
yyy999/auto_ma912
b62bd6d59c2140116ec81f8c5c1567e5deec0569
[ "BSD-2-Clause" ]
null
null
null
exchangeConnection/huobi/huobiService913.py
yyy999/auto_ma912
b62bd6d59c2140116ec81f8c5c1567e5deec0569
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #from Util import * from exchangeConnection.huobi.util import * ''' Market data API ''' # 获取历史行情信息(huobi api接口,未处理) # 获取KLine def get_kline(symbol, period, size=150): """ :param symbol:交易品种 :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week...
21.706366
131
0.580267
eb869f93cd5e9f2e49739fc546ad0fbfc41906cf
2,249
py
Python
backend/ideaspro_test_1_1/urls.py
crowdbotics-dev/ideaspro-test-1-1
65841d4094572e17b3fb6515e3104bd867bbf59f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/ideaspro_test_1_1/urls.py
crowdbotics-dev/ideaspro-test-1-1
65841d4094572e17b3fb6515e3104bd867bbf59f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/ideaspro_test_1_1/urls.py
crowdbotics-dev/ideaspro-test-1-1
65841d4094572e17b3fb6515e3104bd867bbf59f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""ideaspro_test_1_1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
35.698413
87
0.712761
5b26e26ed24e0acffa8b2c4803b7f6010ebe76f8
1,487
py
Python
chat/consumers.py
juo20/MyChat
17b2595647b5b205cae987343be8fe8de8970a53
[ "BSD-3-Clause" ]
null
null
null
chat/consumers.py
juo20/MyChat
17b2595647b5b205cae987343be8fe8de8970a53
[ "BSD-3-Clause" ]
null
null
null
chat/consumers.py
juo20/MyChat
17b2595647b5b205cae987343be8fe8de8970a53
[ "BSD-3-Clause" ]
null
null
null
# chat/consumers.py import json from channels.generic.websocket import AsyncWebsocketConsumer class ChatConsumer(AsyncWebsocketConsumer): async def connect(self): self.room_name = self.scope['url_route']['kwargs']['room_name'] self.room_group_name = 'chat_%s' % self.room_name # Getting the ...
29.156863
71
0.604573
2f3957b0d1b437678b76ecfe2f493b52638fd2e7
17,311
py
Python
src/pynwb/form/utils.py
JesseLivezey/pynwb
c3a1bed686ff291bb0e523573b9b04ea073dcfc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/form/utils.py
JesseLivezey/pynwb
c3a1bed686ff291bb0e523573b9b04ea073dcfc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/form/utils.py
JesseLivezey/pynwb
c3a1bed686ff291bb0e523573b9b04ea073dcfc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
import itertools as _itertools import copy as _copy from abc import ABCMeta import six from six import raise_from import numpy as np import h5py __macros = { 'array_data': [np.ndarray, list, tuple, h5py.Dataset], 'scalar_data': [str, int, float], } def docval_macro(macro): def _dec(cls): if macro...
36.139875
114
0.602103
67164392b8f1eec92815d559d991aa004752e948
11,998
py
Python
plugins/modules/oci_compute_image_capability_schema_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_image_capability_schema_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_image_capability_schema_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.84858
152
0.625354
ae0247bb90146d9bef8dcf0b7d02a7ffe9c2379b
2,752
py
Python
networkx-1.8.1/networkx/algorithms/components/tests/test_connected.py
lthurlow/Boolean-Constrained-Routing
d60a648d17d5dadaa0fb5ef9961fcea9d9784dfe
[ "MIT" ]
12
2015-03-25T20:20:26.000Z
2021-11-14T19:44:56.000Z
networkx-1.8.1/networkx/algorithms/components/tests/test_connected.py
lthurlow/Boolean-Constrained-Routing
d60a648d17d5dadaa0fb5ef9961fcea9d9784dfe
[ "MIT" ]
71
2015-01-05T16:50:55.000Z
2020-09-30T19:17:47.000Z
networkx-1.8.1/networkx/algorithms/components/tests/test_connected.py
lthurlow/Boolean-Constrained-Routing
d60a648d17d5dadaa0fb5ef9961fcea9d9784dfe
[ "MIT" ]
14
2015-02-15T22:19:18.000Z
2020-09-30T18:54:54.000Z
#!/usr/bin/env python from nose.tools import * import networkx as nx from networkx import convert_node_labels_to_integers as cnlti from networkx import NetworkXError class TestConnected: def setUp(self): G1=cnlti(nx.grid_2d_graph(2,2),first_label=0,ordering="sorted") G2=cnlti(nx.lollipop_graph(3,3...
37.69863
77
0.645349
aa82745d2723097d3b455d43a0b04c30b792c2c9
621
py
Python
helper_functions_test.py
PatrickRaborn/Lambdata
4799075fda0db5e7c25e9ed6d92a353063ea14d8
[ "MIT" ]
null
null
null
helper_functions_test.py
PatrickRaborn/Lambdata
4799075fda0db5e7c25e9ed6d92a353063ea14d8
[ "MIT" ]
null
null
null
helper_functions_test.py
PatrickRaborn/Lambdata
4799075fda0db5e7c25e9ed6d92a353063ea14d8
[ "MIT" ]
null
null
null
"""Basic unit test for helper_functions package""" import pandas as pd import numpy as np import pytest from lambdata.helper_functions import LambdaClass as LC from pydataset import data df = data('titanic') # Dataset example from which to run test def test_null(): '''Test that output is dataframe dtype and in...
27
61
0.729469
82aa153fa8352fbdac6ddd670bfde3bf895d0ee6
21,855
py
Python
tulip/abstract/prop2partition.py
Duckie-town-isu/tulip-control
07de9f85591a36e9556c612a371e9c28693156d2
[ "BSD-3-Clause" ]
91
2015-01-28T10:18:48.000Z
2022-02-09T16:37:32.000Z
tulip/abstract/prop2partition.py
Duckie-town-isu/tulip-control
07de9f85591a36e9556c612a371e9c28693156d2
[ "BSD-3-Clause" ]
166
2015-01-21T17:30:58.000Z
2022-01-31T19:42:24.000Z
tulip/abstract/prop2partition.py
Duckie-town-isu/tulip-control
07de9f85591a36e9556c612a371e9c28693156d2
[ "BSD-3-Clause" ]
34
2015-08-25T01:04:23.000Z
2021-11-05T19:35:59.000Z
# Copyright (c) 2011-2014 by California Institute of Technology # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice,...
32.619403
83
0.581423
d4ff224fc05302f2bf51be2e3c489b66d4d70ea3
3,628
py
Python
deck/models.py
thbland/deckofcards
7ca3ebd7c8eb3c45d2f5f999e1b223c3f38a0cfb
[ "MIT" ]
null
null
null
deck/models.py
thbland/deckofcards
7ca3ebd7c8eb3c45d2f5f999e1b223c3f38a0cfb
[ "MIT" ]
null
null
null
deck/models.py
thbland/deckofcards
7ca3ebd7c8eb3c45d2f5f999e1b223c3f38a0cfb
[ "MIT" ]
null
null
null
import random import string import datetime from django.db import models from django.contrib.auth.models import AbstractUser from jsonfield import JSONField def random_string(): return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(12)) class User(AbstractUser): class Meta: ...
39.434783
118
0.601158
44b20cb098448e243ff8f529d1e984034d31cd73
1,246
py
Python
edzapp/django_edzapp/jobs/models.py
jamesadney/edzapp-scraper
03c55a6db342dc75a1299d9ea450dfb4b460392f
[ "BSD-3-Clause" ]
1
2015-11-26T13:54:59.000Z
2015-11-26T13:54:59.000Z
edzapp/django_edzapp/jobs/models.py
jamesadney/edzapp-scraper
03c55a6db342dc75a1299d9ea450dfb4b460392f
[ "BSD-3-Clause" ]
null
null
null
edzapp/django_edzapp/jobs/models.py
jamesadney/edzapp-scraper
03c55a6db342dc75a1299d9ea450dfb4b460392f
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Job(models.Model): job_id = models.IntegerField(primary_key=True) # FIXME: field should be 'users' not 'user' user = models.ManyToManyField(User) position = models.CharField(max_length=200, null=True, blank=True) url = ...
49.84
74
0.747191
9146e00937727d9b66cdbccea4715e688da39e39
8,832
bzl
Python
subpar.bzl
scaledata/subpar
79c58560a4e6c8f74a9a67339759dc3921548e6a
[ "Apache-2.0" ]
546
2016-08-12T06:56:48.000Z
2022-03-31T14:56:35.000Z
subpar.bzl
scaledata/subpar
79c58560a4e6c8f74a9a67339759dc3921548e6a
[ "Apache-2.0" ]
110
2016-08-05T21:44:05.000Z
2021-11-10T01:22:29.000Z
subpar.bzl
scaledata/subpar
79c58560a4e6c8f74a9a67339759dc3921548e6a
[ "Apache-2.0" ]
78
2016-10-06T00:47:06.000Z
2021-12-22T05:57:59.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.100386
116
0.663383
9a313ce7dd284ff9724c0a062519267dcef06625
4,228
py
Python
purity_fb/purity_fb_1dot4/models/alert_watcher_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot4/models/alert_watcher_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot4/models/alert_watcher_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Pure Storage FlashBlade REST 1.4 Python SDK Pure Storage FlashBlade REST 1.4 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.4 Contact: i...
27.454545
204
0.581599
f69d1c522ac932952cbd969d695576669db2e23e
5,688
py
Python
docs/conf.py
adapap/poker-stats
b0d8c385af4e9ecca124b1de459b4cc51df2853e
[ "MIT" ]
null
null
null
docs/conf.py
adapap/poker-stats
b0d8c385af4e9ecca124b1de459b4cc51df2853e
[ "MIT" ]
null
null
null
docs/conf.py
adapap/poker-stats
b0d8c385af4e9ecca124b1de459b4cc51df2853e
[ "MIT" ]
1
2019-01-02T05:16:52.000Z
2019-01-02T05:16:52.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.471503
79
0.64557
7f5582fd0fe3ba03aa5bbf291f58680e5371ea32
2,882
py
Python
homeassistant/components/notify/rest.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/notify/rest.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/notify/rest.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
1
2018-11-20T17:44:08.000Z
2018-11-20T17:44:08.000Z
""" homeassistant.components.notify.rest ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REST platform for notify component. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/notify.rest/ """ import logging import requests from homeassistant.components.notify import ...
35.146341
76
0.641568
6425829d3d84496c9b7c9c7219ad8003d020df61
1,195
py
Python
algorithms/google/seti/shaking_hands_at_round_table.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/google/seti/shaking_hands_at_round_table.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/google/seti/shaking_hands_at_round_table.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
# a round table is surrounded by n people, find the ways of people shaking hands # there're two rules: # 1. one people can only shake hand with another one people # 2. two handshakes cannot intersect # # example: # f(4) = 2 # 1 1-2, 3-4 # --- 1-4, 2-3 # 4 |table| 2 1-3, 2-4 (invalid since ...
29.146341
80
0.537238
0e78dbdcb955d2b76040f3ff8c43bc4b12268e96
20,708
py
Python
src/sage/combinat/sf/schur.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/sf/schur.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/sf/schur.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
""" Schur symmetric functions """ #***************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com> # 2012 Mike Zabrocki <mike.zabrocki@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # # T...
38.490706
185
0.496185
15aa6a4e37c362786cfc0bb459f4db5b03123c82
632
py
Python
example_one/example_one.py
lucsdorta/allpython
1dc82abe18dec8c797dc7d5725d8ef2ea321d727
[ "MIT" ]
1
2020-02-27T19:47:30.000Z
2020-02-27T19:47:30.000Z
example_one/example_one.py
lucsdorta/allpython
1dc82abe18dec8c797dc7d5725d8ef2ea321d727
[ "MIT" ]
null
null
null
example_one/example_one.py
lucsdorta/allpython
1dc82abe18dec8c797dc7d5725d8ef2ea321d727
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 print ("Calculator\n") while True: number_1 = int(input("Type first number: ")) op_value = input("Type operation (+, -, *, /): ") number_2 = int(input("Type second number: ")) if (op_value == '+'): print ("{} + {} = {}".format(number_1, number_2, number_1 + number_2)) elif (op_value == ...
31.6
72
0.59019
bb7307c728140e06910154021b8bc209527ce124
4,292
py
Python
script/gen_requirements_all.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
2
2017-02-25T00:27:06.000Z
2017-02-25T03:09:30.000Z
script/gen_requirements_all.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
null
null
null
script/gen_requirements_all.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Generate an updated requirements_all.txt.""" import importlib import os import pkgutil import re import sys COMMENT_REQUIREMENTS = ( 'RPi.GPIO', 'rpi-rf', 'Adafruit_Python_DHT', 'Adafruit_BBIO', 'fritzconnection', 'pybluez', 'bluepy', 'python-lirc', 'gattli...
26.331288
76
0.587372
533ceadc3936e78cfd2c095bc43dfc5c87e1141f
474
py
Python
event_store/stream.py
Magni77/django-event-store
cc52d4748fced42df0cc49f8a4f72368595809df
[ "MIT" ]
4
2021-11-24T20:51:11.000Z
2021-11-25T15:37:38.000Z
event_store/stream.py
mgodkowicz/django-event-store
cc52d4748fced42df0cc49f8a4f72368595809df
[ "MIT" ]
1
2021-11-25T08:15:37.000Z
2021-11-25T08:15:37.000Z
event_store/stream.py
mgodkowicz/django-event-store
cc52d4748fced42df0cc49f8a4f72368595809df
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional from event_store.exceptions import IncorrectStreamData GLOBAL_STREAM = "global_stream" @dataclass class Stream: name: str def __post_init__(self): if not self.name: raise IncorrectStreamData @property def is_global(s...
19.75
54
0.700422
e40ae9b5c60cd2f72a684fb97f68fc2a5f164c47
120
py
Python
app_config_example.py
gabordanielski/Django-Python-JS--Expenses-app
dfe0561d2d4ee73a9c695be14388077e732f43f8
[ "MIT" ]
null
null
null
app_config_example.py
gabordanielski/Django-Python-JS--Expenses-app
dfe0561d2d4ee73a9c695be14388077e732f43f8
[ "MIT" ]
null
null
null
app_config_example.py
gabordanielski/Django-Python-JS--Expenses-app
dfe0561d2d4ee73a9c695be14388077e732f43f8
[ "MIT" ]
null
null
null
config = { 'DB_NAME': 'dbname', 'DB_USER': 'dbuser', 'DB_PASSWORD': 'dbpassword', 'DB_HOST': 'dbhost' }
17.142857
32
0.55
77c07bd1a3d119afe1a02c746b6e6c944220a5d2
828
py
Python
piecrust/templating/base.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
43
2015-04-24T05:30:04.000Z
2022-02-03T17:47:35.000Z
piecrust/templating/base.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
54
2015-01-03T01:58:44.000Z
2021-05-06T21:56:26.000Z
piecrust/templating/base.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
8
2015-05-10T01:50:46.000Z
2016-12-26T20:53:15.000Z
class TemplateNotFoundError(Exception): pass class TemplatingError(Exception): def __init__(self, message, filename=None, lineno=-1): super(TemplatingError, self).__init__() self.message = message self.filename = filename self.lineno = lineno def __str__(self): m...
21.789474
58
0.595411
491374f247591aefa90bd9e7a54e6f352be82470
5,035
py
Python
tests/test_deps.py
trendels/schemainspect
d1cf961ce628db517400dbb227b2211bf9e71e3a
[ "Unlicense" ]
36
2017-03-08T15:00:45.000Z
2022-03-11T13:17:02.000Z
tests/test_deps.py
trendels/schemainspect
d1cf961ce628db517400dbb227b2211bf9e71e3a
[ "Unlicense" ]
61
2016-08-14T07:06:40.000Z
2022-03-18T16:56:09.000Z
tests/test_deps.py
trendels/schemainspect
d1cf961ce628db517400dbb227b2211bf9e71e3a
[ "Unlicense" ]
43
2017-10-12T12:50:13.000Z
2022-03-11T07:41:10.000Z
from sqlbag import S from schemainspect import get_inspector CREATES = """ create extension pg_trgm; create or replace function "public"."fff"(t text) returns TABLE(score decimal) as $$ select similarity('aaa', 'aaab')::decimal $$ language SQL VOLATILE CALLED ON NULL INPUT SECURITY INVOKER; ...
31.867089
94
0.538232
ff1e4509c0e0b73a1ec35778210d837b96e1d105
433
py
Python
tests/app/models.py
radiac/django-fastview
31b06003c303c552e9c51184656d83a30b88377f
[ "BSD-3-Clause" ]
8
2019-12-30T19:16:30.000Z
2021-09-06T14:08:25.000Z
tests/app/models.py
radiac/django-fastview
31b06003c303c552e9c51184656d83a30b88377f
[ "BSD-3-Clause" ]
3
2021-03-10T04:45:19.000Z
2022-02-12T07:01:55.000Z
tests/app/models.py
radiac/django-fastview
31b06003c303c552e9c51184656d83a30b88377f
[ "BSD-3-Clause" ]
null
null
null
""" Models for tests """ from django.conf import settings from django.db import models class Entry(models.Model): title = models.CharField(max_length=255, default="Title") author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) class Comment(models.Model): entry = models.ForeignKe...
27.0625
82
0.757506
12013d3162657815598b5883c60c72cc95a8ac64
3,796
py
Python
neo/Prompt/Commands/tests/test_loadsmartcontract.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
387
2017-07-17T18:25:54.000Z
2021-11-18T06:19:47.000Z
neo/Prompt/Commands/tests/test_loadsmartcontract.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
967
2017-08-19T15:48:03.000Z
2021-06-01T21:42:39.000Z
neo/Prompt/Commands/tests/test_loadsmartcontract.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
286
2017-07-17T03:44:36.000Z
2021-11-18T06:19:32.000Z
from unittest import TestCase from neo.Prompt.Commands.LoadSmartContract import LoadContract, GatherLoadedContractParams import mock class LoadSmartContractTestCase(TestCase): def test_loadcontract(self): # test for void (ff) type in params with self.assertRaises(ValueError) as e: ...
39.957895
150
0.611697
bc4c9afab05b8a75b3f4e29020c10e76ff14439c
588
py
Python
Talleres/Taller 7/PlotDifusion.py
bernalde/Laboratorio_Metodos_Computacionales
7a6a3d249b0b24d65687fec6e1951565cdbbc641
[ "MIT" ]
null
null
null
Talleres/Taller 7/PlotDifusion.py
bernalde/Laboratorio_Metodos_Computacionales
7a6a3d249b0b24d65687fec6e1951565cdbbc641
[ "MIT" ]
null
null
null
Talleres/Taller 7/PlotDifusion.py
bernalde/Laboratorio_Metodos_Computacionales
7a6a3d249b0b24d65687fec6e1951565cdbbc641
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import sys t=int(sys.argv[1]) if(t<0): print 'El valor del delta_t debe ser mayor a 0' elif(t>1000): print 'El maximo valor de delta_t sebe ser 1000' else: data=np.loadtxt('ResultsDifusionAnim.dat') tam=data.shape[1]-1 x=data[:,0] u=data[:,1:...
19.6
52
0.60034
be2446731a9b3d6eaa7d1e3f2dce0d764b4d1387
15,087
py
Python
ee/cli/plugins/info.py
iam404/easyengine-py
ca074bea7821a3d13e33816325a94bcc8464f964
[ "MIT" ]
2
2018-11-12T12:13:28.000Z
2021-04-22T12:04:20.000Z
ee/cli/plugins/info.py
iam404/easyengine-py
ca074bea7821a3d13e33816325a94bcc8464f964
[ "MIT" ]
null
null
null
ee/cli/plugins/info.py
iam404/easyengine-py
ca074bea7821a3d13e33816325a94bcc8464f964
[ "MIT" ]
null
null
null
"""EEInfo Plugin for EasyEngine.""" from cement.core.controller import CementBaseController, expose from cement.core import handler, hook from ee.core.variables import EEVariables from pynginxconfig import NginxConfig from ee.core.aptget import EEAptGet from ee.core.shellexec import EEShellExec from ee.core.logging im...
51.845361
252
0.583482
fdb4d159d862ad8f9c5be4a432d05471c27ca6f0
7,945
py
Python
IPython/kernel/zmq/iostream.py
ptone/ipython
b91d6a658d4526746dcbfb62e653d71c5d84eee9
[ "BSD-3-Clause-Clear" ]
2
2015-02-10T18:00:31.000Z
2015-05-01T02:53:46.000Z
IPython/kernel/zmq/iostream.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/kernel/zmq/iostream.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
1
2021-05-22T13:52:12.000Z
2021-05-22T13:52:12.000Z
"""wrappers for stdout/stderr forwarding over zmq """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software...
34.24569
84
0.537193
dc97b71a71af8241a34608014e88d7f9887ab88a
2,639
py
Python
stacks/aws_cloudtrail_lake_detections_stack.py
raajheshkannaa/aws-cloudtrail-lake-detections
f557483cd3cc4f362245eb777f9af7a7b43f1c13
[ "MIT" ]
null
null
null
stacks/aws_cloudtrail_lake_detections_stack.py
raajheshkannaa/aws-cloudtrail-lake-detections
f557483cd3cc4f362245eb777f9af7a7b43f1c13
[ "MIT" ]
null
null
null
stacks/aws_cloudtrail_lake_detections_stack.py
raajheshkannaa/aws-cloudtrail-lake-detections
f557483cd3cc4f362245eb777f9af7a7b43f1c13
[ "MIT" ]
null
null
null
from constructs import Construct from aws_cdk import ( Duration, Stack, aws_lambda as lmb, aws_events as events, aws_events_targets as targets, aws_iam as iam, aws_ec2 as ec2, ) from .config import AUTOMATION_ACCOUNT class CloudTrailLakeDetections(Stack): def __init__(self, scope: Construct, construct_id: st...
28.376344
80
0.736264
1cabbd8e69918f5d18be5cb7ad38f635ce8203c7
114
py
Python
tests/test_api_interaction.py
tmccormi/susi_linux
c9551bd6313f88aea5d3b531558e05aebe1a00a9
[ "Apache-2.0" ]
613
2019-07-29T12:18:33.000Z
2021-11-08T12:56:22.000Z
tests/test_api_interaction.py
tmccormi/susi_linux
c9551bd6313f88aea5d3b531558e05aebe1a00a9
[ "Apache-2.0" ]
1
2021-06-25T15:31:14.000Z
2021-06-25T15:31:14.000Z
tests/test_api_interaction.py
tmccormi/susi_linux
c9551bd6313f88aea5d3b531558e05aebe1a00a9
[ "Apache-2.0" ]
1
2019-02-22T04:19:19.000Z
2019-02-22T04:19:19.000Z
import susi_python as susi def test_response(): response = susi.ask('Hi') assert response is not None
12.666667
31
0.692982
d66dade94e82788af3b8c9decc0a3fcc10e3c724
3,326
py
Python
app/app/settings.py
Engineer-s-Lab/recipe-app-api
e551022292cd5f9e9f7c8bbad239d7e89554d839
[ "MIT" ]
null
null
null
app/app/settings.py
Engineer-s-Lab/recipe-app-api
e551022292cd5f9e9f7c8bbad239d7e89554d839
[ "MIT" ]
null
null
null
app/app/settings.py
Engineer-s-Lab/recipe-app-api
e551022292cd5f9e9f7c8bbad239d7e89554d839
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.389313
91
0.685809
1b8c01c637183799eb174010db9798cac3bca034
17,811
py
Python
google/cloud/talent_v4beta1/services/completion/client.py
renovate-bot/python-talent
3cc68aacad4bb40af10c9051dece2248d270b156
[ "Apache-2.0" ]
21
2020-03-05T21:22:43.000Z
2022-03-24T11:38:02.000Z
google/cloud/talent_v4beta1/services/completion/client.py
renovate-bot/python-talent
3cc68aacad4bb40af10c9051dece2248d270b156
[ "Apache-2.0" ]
83
2020-02-06T17:46:41.000Z
2022-03-31T22:59:03.000Z
google/cloud/talent_v4beta1/services/completion/client.py
renovate-bot/python-talent
3cc68aacad4bb40af10c9051dece2248d270b156
[ "Apache-2.0" ]
6
2020-02-03T19:01:22.000Z
2022-01-29T08:13:35.000Z
# -*- coding: utf-8 -*- # 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...
41.324826
107
0.645837
34a6d5777a4dfd07eacc49ec1a074cd94d33c4b4
4,508
py
Python
DepthSynthesis/evaluation_demo.py
Jhonve/DCL-DepthSynthesis
cbb1c0f9200f62caf30ff9674e5c8c842053bd27
[ "MIT" ]
3
2022-01-25T00:07:44.000Z
2022-03-22T06:22:18.000Z
DepthSynthesis/evaluation_demo.py
Jhonve/DCL-DepthSynthesis
cbb1c0f9200f62caf30ff9674e5c8c842053bd27
[ "MIT" ]
null
null
null
DepthSynthesis/evaluation_demo.py
Jhonve/DCL-DepthSynthesis
cbb1c0f9200f62caf30ff9674e5c8c842053bd27
[ "MIT" ]
1
2022-01-25T00:07:46.000Z
2022-01-25T00:07:46.000Z
import os import math import cv2 import torch import numpy as np from options.test_options import TestOptions from models import create_model def evaluation(opt, inputs_list, inputs_path, model): for i_test in range(len(inputs_list)): if len(opt.gpu_ids) > 0: torch.cuda.synchronize() ...
34.412214
184
0.630213
4dd20dfa43e50ffdd58a8371a5cdcfaca43c647e
2,120
py
Python
subscriptions_api/notifications.py
ydaniels/drf-django-flexible-subscriptions
689d54f693491ace6aaebaa1d44f2b2fa7e02485
[ "0BSD" ]
5
2020-03-25T07:54:05.000Z
2022-03-03T12:55:09.000Z
subscriptions_api/notifications.py
ydaniels/drf-django-flexible-subscriptions
689d54f693491ace6aaebaa1d44f2b2fa7e02485
[ "0BSD" ]
2
2021-01-20T12:48:26.000Z
2021-01-28T02:18:08.000Z
subscriptions_api/notifications.py
ydaniels/drf-django-flexible-subscriptions
689d54f693491ace6aaebaa1d44f2b2fa7e02485
[ "0BSD" ]
2
2020-09-22T01:14:13.000Z
2021-06-06T10:37:08.000Z
from django.core.mail import EmailMultiAlternatives class EmailNotification: """A simple class to send email notification from subscription""" def __init__(self, subscription, notification, **kwargs): self.subscription = subscription self.kwargs = kwargs self.notification = notificati...
29.041096
87
0.621698
c8b9afed8892f989a1ec26e9b22afd97aa373cfe
730
py
Python
copylist.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
3,271
2015-03-19T11:27:39.000Z
2022-03-19T03:00:37.000Z
copylist.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
78
2015-03-19T09:45:09.000Z
2020-12-24T08:47:15.000Z
copylist.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
531
2015-03-19T11:12:52.000Z
2022-03-23T15:07:07.000Z
#! /usr/bin/env python3 import sys """a fast way to make a shallow copy of a list""" a = [1, 2, 3, 4, 5] print(a[:]) """adding an empty list yields a copy of initial list""" a = [1, 2, 3, 4, 5] print(a + []) # in python3, for small lists performs faster than a[:] """copy list by typecasting method""" a = [1, 2...
16.976744
70
0.594521
85ad5a300cc54ae79d110269c229c67268da8f62
2,889
py
Python
Lib/site-packages/numarray/examples/convolve/benchmark.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/numarray/examples/convolve/benchmark.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/numarray/examples/convolve/benchmark.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
#! /usr/bin/env python # # This script times the 2D convolution code in various forms. import time from numarray import * a=arange(10.0**6) a.setshape(1000,1000) c=a.copy() b = a.copy() b.byteswap() d = a.copy() d._aligned = 0 a1=arange(10.0**6) c1=a1.copy() b1 = a1.copy() b1.byteswap() d1 = a1.copy() d1._aligned =...
33.988235
82
0.513326
04068ead6e93b543191d0a8bcb76b1e86fa42e49
88
py
Python
forms.py
procurator5/tippspiel
247fd5d28e501cadf0d94e58740747eb42982a49
[ "MIT" ]
null
null
null
forms.py
procurator5/tippspiel
247fd5d28e501cadf0d94e58740747eb42982a49
[ "MIT" ]
null
null
null
forms.py
procurator5/tippspiel
247fd5d28e501cadf0d94e58740747eb42982a49
[ "MIT" ]
null
null
null
from django import forms class SearchForm(forms.Form): quote=forms.CharField()
17.6
29
0.727273
8e8077be953bf66d3826299273cce4eb9ca9a908
2,189
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_ip_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_ip_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_ip_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.537037
149
0.624943
8469f4a2be2f646ed23a51ea974097027a9aea70
24,586
py
Python
xlwings/udfs.py
davtoh/xlwings
9b7bb52def9e0b2c947068008af794c5e6f9fb1c
[ "BSD-3-Clause" ]
null
null
null
xlwings/udfs.py
davtoh/xlwings
9b7bb52def9e0b2c947068008af794c5e6f9fb1c
[ "BSD-3-Clause" ]
null
null
null
xlwings/udfs.py
davtoh/xlwings
9b7bb52def9e0b2c947068008af794c5e6f9fb1c
[ "BSD-3-Clause" ]
null
null
null
import os import os.path import sys import re import tempfile import inspect from importlib import import_module from threading import Thread from importlib import reload # requires >= py 3.4 from win32com.client import Dispatch, CDispatch import pywintypes from . import conversion, xlplatform, Range, apps from .uti...
40.504119
223
0.551208
f0d43cb2c41a370e0c3bec10ddb0ccec9e7f4632
785
py
Python
python/visualization/visualize_trajectory.py
ryanprinster/lab
0d7c8dc09c2c3fa11e3c3865b06ef5b95e04fd71
[ "CC-BY-4.0" ]
null
null
null
python/visualization/visualize_trajectory.py
ryanprinster/lab
0d7c8dc09c2c3fa11e3c3865b06ef5b95e04fd71
[ "CC-BY-4.0" ]
null
null
null
python/visualization/visualize_trajectory.py
ryanprinster/lab
0d7c8dc09c2c3fa11e3c3865b06ef5b95e04fd71
[ "CC-BY-4.0" ]
1
2019-05-29T23:42:18.000Z
2019-05-29T23:42:18.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation a = np.load('/Users/ryanprinster/test/pos_data.npy') print(len(a)) x = a[:,0] y = a[:,1] plt.plot(x, y) plt.show() # a = np.load('/Users/ryanprinster/test/vel_trans_data_2.npy') # print(a) # vel = a[:,0] # x = range(l...
18.690476
71
0.598726
1f18a72d50335e63944351de2f7c562ff5ed1045
10,006
py
Python
docu/source/conf.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
2
2020-06-12T18:18:48.000Z
2021-12-18T03:35:08.000Z
docu/source/conf.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
docu/source/conf.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Evaluation System documentation build configuration file, created by # sphinx-quickstart on Mon Jan 14 14:47:04 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
32.592834
148
0.71627
de23ffd476a74768d5b11c152e7faec9cae87d60
456
py
Python
config.py
Rtshaw/LineBot
2a9269532139a6d5b13b399d6429dda1696fd48f
[ "MIT" ]
null
null
null
config.py
Rtshaw/LineBot
2a9269532139a6d5b13b399d6429dda1696fd48f
[ "MIT" ]
null
null
null
config.py
Rtshaw/LineBot
2a9269532139a6d5b13b399d6429dda1696fd48f
[ "MIT" ]
null
null
null
# get channel_secret and channel_access_token from environment variable channel_secret = 'channel_secret' channel_access_token = 'channel_access_token' # push_token = user_id user_id = 'user_id' client_id = 'client_id' # imgur client id client_secret = 'client_secret' # imgur client secret album_id_bea...
32.571429
72
0.763158
d6fe5d420889c6f253ba2899594dcba7ca22bbba
4,830
py
Python
python2/koans/about_classes.py
imkevinxu/python-koans
455fe5a95793830a54c8df3faf558554f341db74
[ "MIT" ]
3
2017-04-28T07:07:00.000Z
2021-01-27T05:04:32.000Z
python2/koans/about_classes.py
imkevinxu/python-koans
455fe5a95793830a54c8df3faf558554f341db74
[ "MIT" ]
null
null
null
python2/koans/about_classes.py
imkevinxu/python-koans
455fe5a95793830a54c8df3faf558554f341db74
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutClasses(Koan): class Dog(object): "Dogs need regular walkies. Never, ever let them drive." def test_instances_of_classes_can_be_created_adding_parentheses(self): fido = self.Dog() self.assertEqual("Dog...
30.56962
100
0.57971