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
de4b996cdd3116fa9fa669ebca22af2ac9cd3d8d
7,466
py
Python
cryptoapis/model/new_confirmed_tokens_transactions_and_each_confirmation_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/new_confirmed_tokens_transactions_and_each_confirmation_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/new_confirmed_tokens_transactions_and_each_confirmation_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
42.420455
484
0.620948
5803c2308fbadf795e222892e0c2fb99db771264
99,621
py
Python
securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/securitycenter_v1beta1/proto/securitycenter_service.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 ...
49.292924
10,650
0.754319
2e019ad99116b030e3871e36493866aeae6c595a
575
py
Python
framework/Targets/drupal_6_14/__init__.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2019-01-25T21:32:42.000Z
2019-01-25T21:32:42.000Z
framework/Targets/drupal_6_14/__init__.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/Targets/drupal_6_14/__init__.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2021-06-23T04:44:25.000Z
2021-06-23T04:44:25.000Z
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import os from framework.Targets import ApacheTarget class Target(ApacheTarget): def get_path(filename): return os.path.dirname(os.pat...
28.75
75
0.718261
369ea1a4a200b78a9882503da5c19a8586892be2
4,816
py
Python
tests/network/account/test_account_deploy.py
x3devships/brownie
b0bedf5352d729903365e33d16df561b86f6c8da
[ "MIT" ]
1,595
2020-06-01T19:41:53.000Z
2022-03-31T16:09:54.000Z
tests/network/account/test_account_deploy.py
x3devships/brownie
b0bedf5352d729903365e33d16df561b86f6c8da
[ "MIT" ]
532
2020-05-30T12:06:17.000Z
2022-03-31T22:33:41.000Z
tests/network/account/test_account_deploy.py
x3devships/brownie
b0bedf5352d729903365e33d16df561b86f6c8da
[ "MIT" ]
303
2020-06-17T00:38:34.000Z
2022-03-31T10:59:48.000Z
#!/usr/bin/python3 import pytest from brownie import compile_source from brownie.exceptions import VirtualMachineError from brownie.network.contract import ProjectContract from brownie.network.transaction import TransactionReceipt def test_returns_contract_on_success(BrownieTester, accounts): """returns a Contr...
35.674074
93
0.716777
76408a62d31ffc7392e8f725487b6dde31b6c822
19,002
py
Python
generators/randomtester.py
apepkuss/TSTL-Extensions
e87bb0a0a2dfb886f9cd31739911a247a8928b3e
[ "Apache-2.0" ]
null
null
null
generators/randomtester.py
apepkuss/TSTL-Extensions
e87bb0a0a2dfb886f9cd31739911a247a8928b3e
[ "Apache-2.0" ]
null
null
null
generators/randomtester.py
apepkuss/TSTL-Extensions
e87bb0a0a2dfb886f9cd31739911a247a8928b3e
[ "Apache-2.0" ]
null
null
null
import os import sys # Appending current working directory to sys.path # So that user running randomtester from the directory where sut.py is located current_working_dir = os.getcwd() sys.path.append(current_working_dir) import sut as SUT import random import time import traceback import argparse from collections imp...
39.260331
152
0.539154
570ab4adf1b9c841b5bcf55755f57c4cfe23e051
4,161
py
Python
trial_regression_Lynmore_sales.py
Llewelyn62/Public_sharing
27de0963731991110bdb00504cc43f206fe40f08
[ "MIT" ]
null
null
null
trial_regression_Lynmore_sales.py
Llewelyn62/Public_sharing
27de0963731991110bdb00504cc43f206fe40f08
[ "MIT" ]
null
null
null
trial_regression_Lynmore_sales.py
Llewelyn62/Public_sharing
27de0963731991110bdb00504cc43f206fe40f08
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from keras.models import Sequential from keras.layers import Dense from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import cross_val_score from sklearn.model_selection import KFold from sklearn.preprocessing import...
40.794118
102
0.711367
71f6fb0744e8d75d951d902e6415e2fb4dcd0dd7
4,495
py
Python
cix.py
BenoitValdes/custom_ix
9728513ea7c797cd5ce83a64910518f64faf40c0
[ "MIT" ]
null
null
null
cix.py
BenoitValdes/custom_ix
9728513ea7c797cd5ce83a64910518f64faf40c0
[ "MIT" ]
null
null
null
cix.py
BenoitValdes/custom_ix
9728513ea7c797cd5ce83a64910518f64faf40c0
[ "MIT" ]
null
null
null
""" DISCLAIMER: This repository and it's development is not linked to ISOTROPIX in any manear. This module is meant to wrap Clarisse API in a way it's easier for a user used to python or other DCC API like Maya to work with Clarisse API. CIX means Custom IX. There is almost no override of IX API, it's just a different...
36.844262
172
0.67386
4f61e61f6f3b70910eb4a02c73266f4928c8ccda
79,493
py
Python
astropy/io/fits/tests/test_image.py
b1quint/astropy
a170a74739e4356c169429a42e554f9777b53f4d
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_image.py
b1quint/astropy
a170a74739e4356c169429a42e554f9777b53f4d
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_image.py
b1quint/astropy
a170a74739e4356c169429a42e554f9777b53f4d
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see PYFITS.rst import math import os import platform import re import time import warnings import pytest import numpy as np from numpy.testing import assert_equal from astropy.io import fits from astropy.utils.exceptions import AstropyPendingDeprecationWarning from as...
41.597593
104
0.551105
17553a17c8469c8a778b5b0a3e8c8b93ed6d98fa
878
py
Python
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709204748.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709204748.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709204748.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Global and local Scopes Scopes and Namespaces When an object is assigned to a variable # a = 10 that variable points to some object and we say that the variable (name) is bound to that object That object can be accessed using that name in various parts of our code...
25.823529
102
0.698178
8699b7e31c0e403ba952e756f977aa73d4843e1a
1,372
py
Python
Chris/Day10/hodges_day10.py
addyess/AdventOfCode2020
c0ec648d48508bb43bed8f3c0b6843dea45b0ed5
[ "MIT" ]
4
2020-12-01T01:37:07.000Z
2020-12-08T07:55:05.000Z
Chris/Day10/hodges_day10.py
addyess/AdventOfCode2020
c0ec648d48508bb43bed8f3c0b6843dea45b0ed5
[ "MIT" ]
2
2020-12-17T04:56:00.000Z
2021-01-10T16:14:21.000Z
Chris/Day10/hodges_day10.py
addyess/AdventOfCode2020
c0ec648d48508bb43bed8f3c0b6843dea45b0ed5
[ "MIT" ]
4
2020-12-01T01:49:35.000Z
2020-12-15T04:57:20.000Z
from typing import List, Dict, Generator import math def parse_input(filename: str) -> List[int]: return_list = [0] with open(filename, 'r') as f: lines = list(map(lambda x: int(x), f.read().splitlines())) return_list.extend(lines) return_list.extend([max(lines) + 3]) return return_list de...
31.181818
85
0.652332
3f44eb2ad9a8f511490cf6e773abd8f4b1cc1ea4
19,252
py
Python
src/waldur_mastermind/marketplace/registrators.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/marketplace/registrators.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/marketplace/registrators.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
import logging from datetime import timedelta from django.core.exceptions import ObjectDoesNotExist from django.db import transaction from django.db.models import signals from django.utils import timezone from waldur_core.core import utils as core_utils from waldur_mastermind.common import mixins as common_mixins fro...
39.613169
108
0.602119
4311bd96185fc15585f7db9e4308ac629c451e2c
45,588
py
Python
py3status/py3.py
rafaelleru/py3status
a3cb9c16f8e2f26de99ba715419636aea825c263
[ "BSD-3-Clause" ]
null
null
null
py3status/py3.py
rafaelleru/py3status
a3cb9c16f8e2f26de99ba715419636aea825c263
[ "BSD-3-Clause" ]
null
null
null
py3status/py3.py
rafaelleru/py3status
a3cb9c16f8e2f26de99ba715419636aea825c263
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division import collections import os import sys import shlex from copy import deepcopy from fnmatch import fnmatch from math import log10 from pprint import pformat from subprocess import Popen, PIPE, STDOUT from time import time from uuid import uuid4 from py3status import exceptions from py...
35.783359
95
0.578003
022a7e988caa29dbdadd3350f4d38e4d487a7aaf
2,401
py
Python
leetcode/link-list/design_hash_set.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
5
2018-09-14T13:14:34.000Z
2021-12-29T11:07:35.000Z
leetcode/link-list/design_hash_set.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
leetcode/link-list/design_hash_set.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
# link: https://leetcode.com/problems/design-hashset/submissions/ class ListNode(object): def __init__(self, key): self.key = key self.next = None class MyHashSet(object): def __init__(self): """ Initialize your data structure here. """ self.bucket_size = 10000...
24.01
65
0.434819
dbed5f8a3877b2d2f4b7b6907545406165f5793a
790
py
Python
src/enstore_user2.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
src/enstore_user2.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
src/enstore_user2.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python ############################################################################### # src/$RCSfile$ $Revision$ # try: #Sometime after python 2.2.3 but before 2.4.3 this python library was # added. It causes a problem with freeze if not imported explicitly. # The problem being that the ex...
25.483871
79
0.622785
2dedd6bf2ce9a36fa605eaa34bd90e633aa4e67c
1,030
py
Python
neighbor/forms.py
Collinskanyiri/ip4-jijini
7b5c6950f4c86d47a3328f1852c6cb24737a1525
[ "MIT" ]
null
null
null
neighbor/forms.py
Collinskanyiri/ip4-jijini
7b5c6950f4c86d47a3328f1852c6cb24737a1525
[ "MIT" ]
null
null
null
neighbor/forms.py
Collinskanyiri/ip4-jijini
7b5c6950f4c86d47a3328f1852c6cb24737a1525
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Neighborhood, Profile, Business, Post class SignUpForm(UserCreationForm): def __init__(self, *args, **kwargs): super(SignUpForm, self).__init__(*args, **kwargs) ...
25.121951
65
0.652427
b883fc5a5a42d92dbb1fff8c07875918b3345550
1,638
py
Python
framenet_tools/data_handler/annotation.py
AMarkard/framenet-tools
7ed6bb0ae9b68dd424f9b3acf011e116f20d7192
[ "Apache-2.0" ]
1
2019-12-02T11:43:20.000Z
2019-12-02T11:43:20.000Z
framenet_tools/data_handler/annotation.py
AMarkard/framenet-tools
7ed6bb0ae9b68dd424f9b3acf011e116f20d7192
[ "Apache-2.0" ]
null
null
null
framenet_tools/data_handler/annotation.py
AMarkard/framenet-tools
7ed6bb0ae9b68dd424f9b3acf011e116f20d7192
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple class Annotation(object): """ Annotation class Saves and manages all data of one frame for a given sentence. """ def __init__( self, frame: str = "Default", fee: str = None, position: int = None, fee_raw: str = None, ...
27.3
104
0.571429
17b418beaca704cd122d36e26b9281010cddc643
942
py
Python
src/bindings/python/tests_compatibility/test_ngraph/test_swish.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
runtime/bindings/python/tests_compatibility/test_ngraph/test_swish.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
runtime/bindings/python/tests_compatibility/test_ngraph/test_swish.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import ngraph as ng from ngraph.impl import Shape, Type def test_swish_props_with_beta(): float_dtype = np.float32 data = ng.parameter(Shape([3, 10]), dtype=float_dtype, name="data") beta = ng.parameter(S...
31.4
71
0.694268
fe98780ff251a32f6c98a971f1d35e44ba79b398
23
py
Python
src/post/models/__init__.py
aliemamalinezhad/CodeRoom
acc4bd66b0874aff68b4595844b8618be32a8da7
[ "MIT" ]
19
2015-10-17T10:46:22.000Z
2022-03-04T07:29:38.000Z
src/post/models/__init__.py
aliemamalinezhad/CodeRoom
acc4bd66b0874aff68b4595844b8618be32a8da7
[ "MIT" ]
36
2017-06-21T03:01:30.000Z
2022-03-04T17:26:36.000Z
src/post/models/__init__.py
aliemamalinezhad/CodeRoom
acc4bd66b0874aff68b4595844b8618be32a8da7
[ "MIT" ]
18
2015-05-17T03:53:38.000Z
2021-04-16T19:00:56.000Z
from .post import Post
11.5
22
0.782609
92daa5f0b916facd47a61080d951456b3543f7a0
340
py
Python
python-wrapper/TestUnpredictable.py
ERIGrid2/JRA-2.1.1-dev
5e6431a0aaa5b3232a12a66edb965469eb301a68
[ "BSD-2-Clause" ]
null
null
null
python-wrapper/TestUnpredictable.py
ERIGrid2/JRA-2.1.1-dev
5e6431a0aaa5b3232a12a66edb965469eb301a68
[ "BSD-2-Clause" ]
null
null
null
python-wrapper/TestUnpredictable.py
ERIGrid2/JRA-2.1.1-dev
5e6431a0aaa5b3232a12a66edb965469eb301a68
[ "BSD-2-Clause" ]
1
2021-05-25T20:36:55.000Z
2021-05-25T20:36:55.000Z
#!/usr/bin/python3 from TestFMU import testFMU model_path = '../fmi3/build/dist' model_name = 'Pipeline_unpredictable' instance_name = 'test_sim_ict' visible = False debug_logging= True event_mode= True early_return= True testFMU(model_path, model_name, instance_name, visible, debug_logging, event_...
26.153846
96
0.758824
6c5369032cd0df5b806a2d7a64c1aff286bae3d8
12,750
py
Python
test/querying/test_query_actions.py
castrapel/policy_sentry
298cce62b2b21a9bcfc2161c85e4ec8524146a5d
[ "MIT" ]
null
null
null
test/querying/test_query_actions.py
castrapel/policy_sentry
298cce62b2b21a9bcfc2161c85e4ec8524146a5d
[ "MIT" ]
null
null
null
test/querying/test_query_actions.py
castrapel/policy_sentry
298cce62b2b21a9bcfc2161c85e4ec8524146a5d
[ "MIT" ]
null
null
null
import unittest import json from policy_sentry.shared.constants import DATABASE_FILE_PATH from policy_sentry.shared.database import connect_db from policy_sentry.querying.actions import ( get_actions_for_service, get_action_data, get_actions_with_access_level, get_actions_with_arn_type_and_access_level,...
39.596273
126
0.634118
7b2d4c47279767c319ea7693deeb093282c86dfa
3,558
py
Python
lib/config/default.py
wszsycn/DarkPose-for-VIP2021
3658c74ed8bc76c497cb0269dbe10ed6898e07fb
[ "Apache-2.0" ]
506
2019-10-31T10:02:30.000Z
2022-03-29T01:10:30.000Z
lib/config/default.py
twittering0912/DarkPose
09ac7d582a79986874ac8e9cccaf8fac2dded1c1
[ "Apache-2.0" ]
35
2019-12-11T18:14:08.000Z
2022-03-25T05:31:33.000Z
lib/config/default.py
twittering0912/DarkPose
09ac7d582a79986874ac8e9cccaf8fac2dded1c1
[ "Apache-2.0" ]
79
2019-11-19T09:10:49.000Z
2022-03-17T04:26:38.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Hanbin Dai (daihanbin.ac@gmail.com) and Feng Zhang (zhangfengwcy@gmail.com) # ---------------------------------------...
21.962963
89
0.67566
c133338acf904a8396e3408a53e2151764232633
503
py
Python
data/scripts/templates/object/tangible/component/armor/shared_armor_segment_bone_advanced.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/component/armor/shared_armor_segment_bone_advanced.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/component/armor/shared_armor_segment_bone_advanced.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 = Tangible() result.template = "object/tangible/component/armor/shared_armor_segment_bone_advanced.iff" result.attr...
29.588235
91
0.755467
e5819310f3e3a11cc3c92b33b764eda924493068
111,067
py
Python
src/azure-cli/azure/cli/command_modules/vm/_params.py
idear1203/azure-cli
eedd4dc63e0cef6e5aed60340cdaeb63c935f0a6
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/vm/_params.py
idear1203/azure-cli
eedd4dc63e0cef6e5aed60340cdaeb63c935f0a6
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/vm/_params.py
idear1203/azure-cli
eedd4dc63e0cef6e5aed60340cdaeb63c935f0a6
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
91.942881
789
0.70904
acfb29aff5583055d34ddbb5937133bea5d94281
2,219
py
Python
vb2py/PythonCard/components/togglebutton.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/components/togglebutton.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/components/togglebutton.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
""" __version__ = "$Revision: 1.2 $" __date__ = "$Date: 2004/05/13 02:40:24 $" """ import wx from PythonCard import event, widget # KEA 2004-05-06 # expose the same interface as CheckBox class ToggleButtonMouseClickEvent(event.MouseClickEvent): binding = wx.EVT_TOGGLEBUTTON id = wx.wxEVT_COMMAND_TOGGLEBUTTO...
31.253521
87
0.676431
ab75bf8c8513610aa0346aee88db656ba63f8f7b
939
py
Python
examples/onclicktest/OnClickTest.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
examples/onclicktest/OnClickTest.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
examples/onclicktest/OnClickTest.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
import pyjd # dummy in pyjs from pyjamas.ui.Button import Button from pyjamas.ui.RootPanel import RootPanel from pyjamas import Window def onButtonClick(sender): Window.alert("function called") class Object(object): pass class OnClickTest: def onModuleLoad(self): def localFunc(sender): ...
26.828571
66
0.651757
f5b1fcfbc6592e8dc9a7750ee92584a10bc7b1a6
1,702
py
Python
config/settings/test.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
config/settings/test.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
config/settings/test.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="5O5nHa0M2...
32.730769
80
0.49765
ec42d688be5cf74085a069041f9b04063918a7f9
1,329
py
Python
tests/eval_image_test.py
MartinThoma/sst
d0032c7ace8bfc2accea5ceed2a121cd1dd5e576
[ "MIT" ]
null
null
null
tests/eval_image_test.py
MartinThoma/sst
d0032c7ace8bfc2accea5ceed2a121cd1dd5e576
[ "MIT" ]
null
null
null
tests/eval_image_test.py
MartinThoma/sst
d0032c7ace8bfc2accea5ceed2a121cd1dd5e576
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import nose import os import pkg_resources import numpy as np import scipy # tested module from sst import eval_image def eval_script_get_parser_test(): eval_image.get_parser() def get_error_matrix_test(): misc_path = pkg_resources.resource_filename('sst', 'mi...
30.906977
73
0.623025
5b51ae7ecc93e52eb291d1e2edf557bdb87d74a5
1,534
py
Python
04-data-pipelines-with-airflow/03-production-data-pipelines/airflow/plugins/operators/facts_calculator.py
amaterasuBearer/Udacity-Data-Engineer-nanodegree
3c34433172a964fc12775fb1e1c56a88ba012116
[ "Apache-2.0" ]
33
2020-09-01T20:10:28.000Z
2022-02-11T06:15:55.000Z
04-data-pipelines-with-airflow/03-production-data-pipelines/airflow/plugins/operators/facts_calculator.py
amaterasuBearer/Udacity-Data-Engineer-nanodegree
3c34433172a964fc12775fb1e1c56a88ba012116
[ "Apache-2.0" ]
null
null
null
04-data-pipelines-with-airflow/03-production-data-pipelines/airflow/plugins/operators/facts_calculator.py
amaterasuBearer/Udacity-Data-Engineer-nanodegree
3c34433172a964fc12775fb1e1c56a88ba012116
[ "Apache-2.0" ]
64
2021-01-21T11:55:34.000Z
2022-03-10T08:14:11.000Z
import logging from airflow.hooks.postgres_hook import PostgresHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class FactsCalculatorOperator(BaseOperator): facts_sql_template = """ DROP TABLE IF EXISTS {destination_table}; CREATE TABLE {destination_table} ...
33.347826
71
0.660365
ba4dbee2cb05d9e4e931ddef0ec3db538f18a1a9
3,048
py
Python
ait/core/server/broker.py
robschneider16/AIT-Core
628e7f60041c4929b82e55dad1a576fc1e8e5e9f
[ "MIT" ]
1
2019-07-29T20:18:34.000Z
2019-07-29T20:18:34.000Z
ait/core/server/broker.py
seanlu99/AIT-Core
d746079bcff574d930f633bee59337eabf54e99c
[ "MIT" ]
null
null
null
ait/core/server/broker.py
seanlu99/AIT-Core
d746079bcff574d930f633bee59337eabf54e99c
[ "MIT" ]
null
null
null
import zmq.green as zmq import gevent import gevent.monkey; gevent.monkey.patch_all() import ait.core import ait.core.server from ait.core import log class Broker(gevent.Greenlet): """ This broker contains the ZeroMQ context and proxy that connects all streams and plugins to each other through publish-su...
35.034483
76
0.588255
22f7d5c0e599a18fc02197eb726763b9019e78d6
478
py
Python
setup.py
jlchamaa/wf-cli
bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d
[ "MIT" ]
null
null
null
setup.py
jlchamaa/wf-cli
bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d
[ "MIT" ]
null
null
null
setup.py
jlchamaa/wf-cli
bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="WF-CLI", version="0.0.1", author="JlChamaa", author_email="jlchamaa@gmail.com", description="A custom CLI Client for Workflowy", url="https://github.com/jlchamaa/wf_cli", packages=setuptools.find_packages(), classifiers=[ "Programming La...
26.555556
52
0.633891
9410090b5fb72868b16e440f629e2a4a2d942341
4,775
py
Python
networkx/algorithms/traversal/tests/test_edgedfs.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
networkx/algorithms/traversal/tests/test_edgedfs.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
networkx/algorithms/traversal/tests/test_edgedfs.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
2
2020-02-13T10:33:34.000Z
2020-08-09T07:59:26.000Z
import pytest import networkx as nx edge_dfs = nx.algorithms.edge_dfs FORWARD = nx.algorithms.edgedfs.FORWARD REVERSE = nx.algorithms.edgedfs.REVERSE # These tests can fail with hash randomization. The easiest and clearest way # to write these unit tests is for the edges to be output in an expected total # order, b...
36.174242
78
0.559581
3fe7949f64ab4f13a5f0ccee6233f075731baba2
507,093
py
Python
nova/tests/unit/compute/test_compute.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
44.283731
79
0.598795
dc33de1c9b3671f9ecf11d4b6ead2f6a3b1fabc5
770
py
Python
kafkaConsumer.py
Microshak/KafkaWeatherStreamer
b774a72e4bc1f32db2244f929b5c608a1e935de1
[ "Apache-2.0" ]
null
null
null
kafkaConsumer.py
Microshak/KafkaWeatherStreamer
b774a72e4bc1f32db2244f929b5c608a1e935de1
[ "Apache-2.0" ]
null
null
null
kafkaConsumer.py
Microshak/KafkaWeatherStreamer
b774a72e4bc1f32db2244f929b5c608a1e935de1
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaConsumer import json MessagesToSend = 0 if __name__ == '__main__': # To consume latest messages and auto-commit offsets consumer = KafkaConsumer('microTopic', group_id='my-group', bootstrap_servers='localhost:9092',auto_offset_reset='earl...
35
89
0.533766
2c145bb7cb64e0563e477a5aa482a08240bff12c
1,188
py
Python
ImageProcess/MaskRemoveBackground.py
soybase/DroneImageScripts
c077325a868237569592bd3820b3d873eddb4f83
[ "MIT" ]
3
2019-08-04T06:11:15.000Z
2021-01-20T11:48:05.000Z
ImageProcess/MaskRemoveBackground.py
soybase/DroneImageScripts
c077325a868237569592bd3820b3d873eddb4f83
[ "MIT" ]
null
null
null
ImageProcess/MaskRemoveBackground.py
soybase/DroneImageScripts
c077325a868237569592bd3820b3d873eddb4f83
[ "MIT" ]
3
2019-08-04T06:11:18.000Z
2021-02-18T13:21:58.000Z
# USAGE # python /home/nmorales/cxgn/DroneImageScripts/ImageProcess/MaskRemoveBackground.py --image_path /folder/mypic.png --mask_image_path /folder/mymaskpic.png --outfile_path /export/mychoppedimages/outimage.png # import the necessary packages import argparse import imutils import cv2 import numpy as np import math...
33
206
0.765152
d02b8c7e5b385648c2d662976759ba7f4fcf7533
1,219
py
Python
optimus_manager/checks.py
bagool185/optimus-manager
c31cca9ae5e67667fb489049f11be50bf11a8a2f
[ "MIT" ]
null
null
null
optimus_manager/checks.py
bagool185/optimus-manager
c31cca9ae5e67667fb489049f11be50bf11a8a2f
[ "MIT" ]
null
null
null
optimus_manager/checks.py
bagool185/optimus-manager
c31cca9ae5e67667fb489049f11be50bf11a8a2f
[ "MIT" ]
null
null
null
from optimus_manager.bash import exec_bash, BashError class CheckError(Exception): pass def is_gpu_powered(): state = exec_bash("cat /proc/acpi/bbswitch | cut -d' ' -f 2").stdout.decode('utf-8')[:-1] return state == "ON" def is_login_manager_active(config): state = exec_bash("systemctl is-active...
20.316667
93
0.616079
027ac74e2002f199316308153ab35252e64239a8
3,455
py
Python
examples/examples_test.py
iolloj/jax
1b80feea6acf758fd9dc3e616e8efcb8db831ce9
[ "Apache-2.0" ]
17,375
2018-11-18T02:15:55.000Z
2022-03-31T23:49:46.000Z
examples/examples_test.py
iolloj/jax
1b80feea6acf758fd9dc3e616e8efcb8db831ce9
[ "Apache-2.0" ]
5,018
2018-11-22T17:04:07.000Z
2022-03-31T23:36:25.000Z
examples/examples_test.py
abattery/jax
62c7744e68c66fae9faf9d8d00fea8aad4418cf3
[ "Apache-2.0" ]
1,805
2018-11-21T10:13:53.000Z
2022-03-31T23:49:19.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.55
77
0.715774
ae68a34a03e9c76c60cf576cafc8751d01747379
15,457
py
Python
tests/integration/test_quota/test.py
bgiard/ClickHouse
be2cf70da869c0407d3a09f5b7d9e8d659e79674
[ "Apache-2.0" ]
3
2021-09-14T08:36:18.000Z
2022-02-24T02:55:38.000Z
tests/integration/test_quota/test.py
bgiard/ClickHouse
be2cf70da869c0407d3a09f5b7d9e8d659e79674
[ "Apache-2.0" ]
null
null
null
tests/integration/test_quota/test.py
bgiard/ClickHouse
be2cf70da869c0407d3a09f5b7d9e8d659e79674
[ "Apache-2.0" ]
1
2020-05-18T11:31:48.000Z
2020-05-18T11:31:48.000Z
import pytest from helpers.cluster import ClickHouseCluster from helpers.test_tools import assert_eq_with_retry import os import re import time cluster = ClickHouseCluster(__file__) instance = cluster.add_instance('instance', config_dir="configs") query_from_system_quotas = "SELECT * F...
61.337302
296
0.70667
e0b27cb0f45a33896a6c38c199f5076efdb353b0
880
py
Python
Binary-Classification/Dataset.py
salman-/Neural-Network
e8ece87f7f45c0ffb959b3b938001f14b6f5e3bb
[ "MIT" ]
1
2021-11-25T20:32:56.000Z
2021-11-25T20:32:56.000Z
Binary-Classification/Dataset.py
salman-/Neural-Network
e8ece87f7f45c0ffb959b3b938001f14b6f5e3bb
[ "MIT" ]
1
2021-11-20T11:00:30.000Z
2021-11-21T15:52:22.000Z
Binary-Classification/Dataset.py
salman-/Neural-Network
e8ece87f7f45c0ffb959b3b938001f14b6f5e3bb
[ "MIT" ]
null
null
null
from sklearn.datasets import make_circles import pandas as pd from sklearn.model_selection import train_test_split class Dataset: def __init__(self): n_sample = 1000 X, y = make_circles(n_sample, noise=0.03, random_state=42) self.dt = pd.DataFrame({"Coordinate_X": X[:, 0], "Coordinate_Y"...
40
120
0.721591
c290a237ee7e58faff7ec9abe6fe0c6cb23b227d
5,698
py
Python
nevow/test/test_consolejstest.py
wthie/nevow
e630de8f640f27df85c38bc37ecdaf4e7b931afc
[ "MIT" ]
49
2015-03-18T15:29:16.000Z
2021-11-17T12:30:51.000Z
src/nevow/test/test_consolejstest.py
winjer/squeal
20401986e0d1698776f5b482b28e14c57b11833c
[ "Apache-2.0" ]
62
2015-01-21T08:48:08.000Z
2021-04-02T17:31:29.000Z
src/nevow/test/test_consolejstest.py
winjer/squeal
20401986e0d1698776f5b482b28e14c57b11833c
[ "Apache-2.0" ]
30
2015-02-26T09:35:39.000Z
2021-07-24T12:45:04.000Z
# Copyright (c) 2006 Divmod. # See LICENSE for details. """ Test the dependency tracking and javascript generation code in L{nevow.jsutil}. """ from textwrap import dedent from twisted.internet.utils import getProcessOutput from twisted.trial.unittest import TestCase from nevow.testutil import setJavascriptInterprete...
33.321637
118
0.542822
9dfd3296ec75d4e1058af44dccbf5783dc70602c
16,851
py
Python
superset/utils.py
joaovaz/supersetopvizor
acf436a8a21ac166a42256645ed9fce5d63834c5
[ "Apache-2.0" ]
null
null
null
superset/utils.py
joaovaz/supersetopvizor
acf436a8a21ac166a42256645ed9fce5d63834c5
[ "Apache-2.0" ]
null
null
null
superset/utils.py
joaovaz/supersetopvizor
acf436a8a21ac166a42256645ed9fce5d63834c5
[ "Apache-2.0" ]
null
null
null
"""Utility functions used across Superset""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import decimal import functools import json import logging import numpy import os import parsedatetime import pytz import smt...
28.903945
79
0.643701
ac5b8f93898f7e7997d370b7a916383f257399d0
2,414
py
Python
tests/opentelemetry-docker-tests/tests/sqlalchemy_tests/test_instrument.py
toumorokoshi/opentelemetry-python-contrib
7159372e3b381119715c99a37603b3d2d6b9ea46
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/opentelemetry-docker-tests/tests/sqlalchemy_tests/test_instrument.py
toumorokoshi/opentelemetry-python-contrib
7159372e3b381119715c99a37603b3d2d6b9ea46
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/opentelemetry-docker-tests/tests/sqlalchemy_tests/test_instrument.py
toumorokoshi/opentelemetry-python-contrib
7159372e3b381119715c99a37603b3d2d6b9ea46
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.485714
77
0.689312
aee4db35381b1a55dc06ec41210783fd3ecd6c86
3,575
py
Python
customer.py
pgmoka/checkout-simulator
bce7e68ba47b9309f19514a9199d43bdbbbc4ffc
[ "MIT" ]
null
null
null
customer.py
pgmoka/checkout-simulator
bce7e68ba47b9309f19514a9199d43bdbbbc4ffc
[ "MIT" ]
null
null
null
customer.py
pgmoka/checkout-simulator
bce7e68ba47b9309f19514a9199d43bdbbbc4ffc
[ "MIT" ]
null
null
null
''' ----------------------------------------------------------------------- Additional Documentation Made by Zachary A Brader, Kieran Coito, Pedro Goncalves Mokarzel while attending University of Washington Bothell Made in 03/09/2020 Based on instruction in CSS 458, taught by professor Johnny Li...
32.798165
85
0.547972
23b198a74388dc73b7b0863edd0a3543d923023c
9,038
py
Python
0000_tbm/opt_ik.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
23
2021-04-02T09:02:04.000Z
2022-03-22T05:31:03.000Z
0000_tbm/opt_ik.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
35
2021-04-12T09:41:05.000Z
2022-03-26T13:32:46.000Z
0000_tbm/opt_ik.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
16
2021-03-30T11:55:45.000Z
2022-03-30T07:10:59.000Z
import copy import math import time import random import numpy as np from scipy.optimize import minimize import basis.robot_math as rm class OptIK(object): def __init__(self, rbt_s, component_name, obstacle_list=[], toggle_debug=False): self.rbt = rbt_s self.jlc_name = component_name self...
41.081818
88
0.6289
52caff5f01653a03d62b057ebba158f6793e702f
2,249
py
Python
setup.py
YBadiss/ggshotsproject
314cfa897f68f9e2aaded37dea98bcfc4ab12afb
[ "MIT" ]
null
null
null
setup.py
YBadiss/ggshotsproject
314cfa897f68f9e2aaded37dea98bcfc4ab12afb
[ "MIT" ]
null
null
null
setup.py
YBadiss/ggshotsproject
314cfa897f68f9e2aaded37dea98bcfc4ab12afb
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
30.808219
79
0.679413
4a0ed8e4fc51373fea48956443be2732cce699b4
1,832
py
Python
tests/test_misc.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
505
2019-06-26T17:02:44.000Z
2022-03-31T04:03:23.000Z
tests/test_misc.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
255
2019-06-27T07:04:17.000Z
2022-03-29T18:25:48.000Z
tests/test_misc.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
171
2019-06-27T05:33:50.000Z
2022-03-30T03:34:24.000Z
import unittest from pyrep.errors import PyRepError from tests.core import TestCore from pyrep.misc.distance import Distance from pyrep.misc.signals import IntegerSignal, FloatSignal from pyrep.misc.signals import DoubleSignal, StringSignal # TODO: These tests will be re-enabled once bug has been fixed in CoppeliaSim...
31.050847
78
0.620633
aaed4467816da5050684fef2d03fd0446b4ed5c7
3,115
py
Python
pandas/tests/indexes/multi/test_contains.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
2
2019-01-09T07:43:12.000Z
2020-05-30T05:49:11.000Z
pandas/tests/indexes/multi/test_contains.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/multi/test_contains.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
1
2019-08-12T18:17:31.000Z
2019-08-12T18:17:31.000Z
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import pandas.util.testing as tm import pytest from pandas import MultiIndex from pandas.compat import PYPY def test_contains_top_level(): midx = MultiIndex.from_product([['A', 'B'], [1, 2]]) assert 'A' in midx assert 'A' not in midx._engine ...
33.138298
74
0.608989
48f0a8702b84ffc79dd28a4a11c0fa7617573de0
9,472
py
Python
magenta/models/rl_tuner/rl_tuner_ops.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
2
2020-04-30T13:46:55.000Z
2021-07-02T20:07:58.000Z
magenta/models/rl_tuner/rl_tuner_ops.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
null
null
null
magenta/models/rl_tuner/rl_tuner_ops.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
1
2020-05-02T01:21:55.000Z
2020-05-02T01:21:55.000Z
# Copyright 2020 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
29.144615
80
0.712943
b42c6ca72674088c97453bb227822c72d7dc8da2
5,532
py
Python
Classes/.ipynb_checkpoints/GUI-checkpoint.py
niharkolhe/ProjectPyxis
4f7cb42e633e86a172dc3e3b441d9c8751b2f087
[ "MIT" ]
null
null
null
Classes/.ipynb_checkpoints/GUI-checkpoint.py
niharkolhe/ProjectPyxis
4f7cb42e633e86a172dc3e3b441d9c8751b2f087
[ "MIT" ]
null
null
null
Classes/.ipynb_checkpoints/GUI-checkpoint.py
niharkolhe/ProjectPyxis
4f7cb42e633e86a172dc3e3b441d9c8751b2f087
[ "MIT" ]
1
2022-03-11T06:58:03.000Z
2022-03-11T06:58:03.000Z
import sys from PyQt5 import QtCore,QtGui,QtWidgets,QtTest import os from PyQt5.QtMultimedia import QMediaPlaylist,QMediaContent,QMediaPlayer import GameController as GC USER=0 SYS=1 import math BUBBLES={USER:"#a5d6a7",SYS:"#a9a9a9"} TRANSLATE_USER={USER:QtCore.QPoint(20, 0),SYS:QtCore.QPoint(0, 0)} BUBBLES_PAD=QtCor...
32.162791
116
0.678959
6c917cb63ef055b9fc19a690b5a8fb77b71e3230
266
py
Python
accounts/permissions.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
accounts/permissions.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
accounts/permissions.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj == request.user
26.6
56
0.729323
2c5b76b4398392f83b31d0b863e1b022acb9baef
17,458
py
Python
stac_api/clients/postgres/core.py
waseem-aidash/arturo-stac-api
63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f
[ "MIT" ]
null
null
null
stac_api/clients/postgres/core.py
waseem-aidash/arturo-stac-api
63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f
[ "MIT" ]
null
null
null
stac_api/clients/postgres/core.py
waseem-aidash/arturo-stac-api
63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f
[ "MIT" ]
null
null
null
"""Item crud client.""" import json import logging from datetime import datetime from typing import Any, Dict, List, Optional, Type, Union from urllib.parse import urlencode, urljoin import attr import geoalchemy2 as ga import sqlalchemy as sa from sqlakeyset import get_page from sqlalchemy import func from sqlalchemy...
39.587302
114
0.526979
dd9af4f33f5c1966a28599f52ce9bcff51a733f8
1,332
py
Python
src/utils.py
newman1234/struc2vec
da972bda919d0606b309d8ce4215a10d3b73047a
[ "MIT" ]
1
2021-08-05T07:35:10.000Z
2021-08-05T07:35:10.000Z
src/utils.py
newman1234/struc2vec
da972bda919d0606b309d8ce4215a10d3b73047a
[ "MIT" ]
1
2021-05-11T14:34:46.000Z
2021-05-12T04:49:19.000Z
src/utils.py
newman1234/struc2vec
da972bda919d0606b309d8ce4215a10d3b73047a
[ "MIT" ]
1
2022-02-27T15:16:51.000Z
2022-02-27T15:16:51.000Z
# -*- coding: utf-8 -*- from time import time import logging,inspect import pickle from itertools import islice import os.path dir_f = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) folder_pickles = dir_f+"/../pickles/" def returnPathStruc2vec(): return dir_f def isPickle(fname): r...
25.615385
94
0.646396
ce5cf1fcc2dd6d482835cf787f139f0a33ab1dfb
3,834
py
Python
hospital/migrations/0001_initial.py
ellen364/Django-Hospital
27012c69b44567a9134b4d47ddaa355e50be9ddc
[ "MIT" ]
null
null
null
hospital/migrations/0001_initial.py
ellen364/Django-Hospital
27012c69b44567a9134b4d47ddaa355e50be9ddc
[ "MIT" ]
3
2021-06-05T00:06:03.000Z
2021-09-22T19:42:41.000Z
hospital/migrations/0001_initial.py
ellen654321/Django-Hospital
27012c69b44567a9134b4d47ddaa355e50be9ddc
[ "MIT" ]
1
2021-03-13T04:56:59.000Z
2021-03-13T04:56:59.000Z
# Generated by Django 2.0.4 on 2018-04-10 18:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Diagnosis", fields=[ ...
32.218487
82
0.361502
30836762952063375c05b9a4c765426b036958d3
797
py
Python
form_guide/urls.py
gcmaciel/django-widgets-tutorial
0e7c3d832287f7e53a86175a175507f8baf20393
[ "MIT" ]
null
null
null
form_guide/urls.py
gcmaciel/django-widgets-tutorial
0e7c3d832287f7e53a86175a175507f8baf20393
[ "MIT" ]
null
null
null
form_guide/urls.py
gcmaciel/django-widgets-tutorial
0e7c3d832287f7e53a86175a175507f8baf20393
[ "MIT" ]
null
null
null
"""form_guide URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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') Class-ba...
33.208333
77
0.70138
9888cd0c1c101842792a9d8e28459eb15ba9b5d2
1,716
py
Python
system/library/database_lib.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
system/library/database_lib.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
system/library/database_lib.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
import sqlite3 from sqlite3 import Error class controller: def __init__(self, register): pass # create a database connection to a SQLite database def connection(self, db_file): try: conn = sqlite3.connect(db_file) return conn except Error as e: ...
26
75
0.567599
5f5921bbea1d3d089b5dda166b1e022e9dd23ddd
319
py
Python
format.py
yangminz/HLMAnalysis
f975dce57b87a1a04d0768d1bf57be88b6f00541
[ "Xnet", "X11" ]
53
2017-12-02T03:40:14.000Z
2022-03-24T15:19:14.000Z
format.py
yangminz/HLMAnalysis
f975dce57b87a1a04d0768d1bf57be88b6f00541
[ "Xnet", "X11" ]
3
2018-12-06T22:04:46.000Z
2020-11-07T01:16:38.000Z
format.py
yangminz/HLMAnalysis
f975dce57b87a1a04d0768d1bf57be88b6f00541
[ "Xnet", "X11" ]
16
2018-05-21T12:00:50.000Z
2022-03-19T03:02:17.000Z
f = open('报告.html', 'r').read() flag = True l, r = [], [] nf = '' for i in range(len(f)): if f[i] == '$': if flag == True: nf += '<script type="math/tex">' else: nf += '</script>' flag = not flag else: nf += f[i] wf = open('报告.html', 'w') wf.write(nf)
16.789474
44
0.404389
18831580da5a0723a0c68008fc33d42140da898a
289
py
Python
arachno/average_builder.py
ctongfei/arachno
5e6b214b352dbc55604f78680045574f83bbdc25
[ "Apache-2.0" ]
null
null
null
arachno/average_builder.py
ctongfei/arachno
5e6b214b352dbc55604f78680045574f83bbdc25
[ "Apache-2.0" ]
null
null
null
arachno/average_builder.py
ctongfei/arachno
5e6b214b352dbc55604f78680045574f83bbdc25
[ "Apache-2.0" ]
null
null
null
class AverageBuilder: def __init__(self): self.n = 0 self.sum = 0.0 def add(self, x: float): self.n += 1 self.sum += x def average(self): return self.sum / float(self.n) def clear(self): self.n = 0 self.sum = 0.0
17
39
0.49481
c5e76ae1f9ed8463f74e95e97223546e88b015bf
781
py
Python
performanceplatform/utils/collector.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
3
2015-05-01T14:57:28.000Z
2016-04-08T12:53:59.000Z
performanceplatform/utils/collector.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
15
2015-02-11T11:43:02.000Z
2021-03-24T10:54:35.000Z
performanceplatform/utils/collector.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
7
2015-05-04T16:56:02.000Z
2021-04-10T19:42:35.000Z
from performanceplatform.client.collector import CollectorAPI def get_config(collector_slug, performanceplatform): collector_client = CollectorAPI( performanceplatform['stagecraft_url'], performanceplatform['omniscient_api_token'] ) collector = collector_client.get_collector(collector_slug...
37.190476
73
0.651729
80c960aa78fcaed5e06a48e123385806e17b732d
56
py
Python
14. Adv Python Packages/project/package1/module2.py
penanrajput/PythonCourseContent
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
[ "MIT" ]
null
null
null
14. Adv Python Packages/project/package1/module2.py
penanrajput/PythonCourseContent
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
[ "MIT" ]
null
null
null
14. Adv Python Packages/project/package1/module2.py
penanrajput/PythonCourseContent
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
[ "MIT" ]
1
2020-12-19T19:29:17.000Z
2020-12-19T19:29:17.000Z
def function1(): print("Inside function1 function")
18.666667
38
0.714286
3cd2c0921d9025a9ff43c6c759bcf0a5c99296a0
1,661
py
Python
cert_issuer/issue_certificates.py
ASKproxy/cert-issuer
f257e01f8fedd706dd151bea7b6851592059bdd4
[ "MIT" ]
356
2016-09-15T18:41:24.000Z
2022-03-17T19:55:10.000Z
cert_issuer/issue_certificates.py
ASKproxy/cert-issuer
f257e01f8fedd706dd151bea7b6851592059bdd4
[ "MIT" ]
118
2016-10-10T20:41:56.000Z
2022-03-31T15:23:30.000Z
cert_issuer/issue_certificates.py
ASKproxy/cert-issuer
f257e01f8fedd706dd151bea7b6851592059bdd4
[ "MIT" ]
205
2016-09-16T17:53:30.000Z
2022-03-27T18:26:20.000Z
import logging import sys from cert_core import Chain from cert_issuer.issuer import Issuer if sys.version_info.major < 3: sys.stderr.write('Sorry, Python 3.x required by this script.\n') sys.exit(1) def issue(app_config, certificate_batch_handler, transaction_handler): certificate_batch_handler.pre_ba...
30.759259
120
0.735099
de03111b72a95ba2d200bfab5e7809f12c868ebf
1,548
py
Python
profanity_analyzer.py
bittuboss601/Chatbot-using-RASA-Framework
9aa6b0f73b51655205187ea236d89a053b793b97
[ "MIT" ]
null
null
null
profanity_analyzer.py
bittuboss601/Chatbot-using-RASA-Framework
9aa6b0f73b51655205187ea236d89a053b793b97
[ "MIT" ]
null
null
null
profanity_analyzer.py
bittuboss601/Chatbot-using-RASA-Framework
9aa6b0f73b51655205187ea236d89a053b793b97
[ "MIT" ]
null
null
null
from rasa.nlu.components import Component from rasa.nlu import utils from rasa.nlu.model import Metadata import nltk import os from profanity_filter import ProfanityFilter class ProfanityAnalyzer(Component): """" A pre trained sentiment component""" name = "profanity_analyzer" provides = ["enti...
26.689655
80
0.566537
c1e49cac2e365660adabdfb79522074dcd99b229
38,864
py
Python
rasa/server.py
VictorCoCo/rasa
4bbf78bedc7ee229693d65c172f49226e59142e0
[ "Apache-2.0" ]
null
null
null
rasa/server.py
VictorCoCo/rasa
4bbf78bedc7ee229693d65c172f49226e59142e0
[ "Apache-2.0" ]
null
null
null
rasa/server.py
VictorCoCo/rasa
4bbf78bedc7ee229693d65c172f49226e59142e0
[ "Apache-2.0" ]
null
null
null
import logging import warnings import multiprocessing import os import tempfile import traceback import typing from functools import wraps, reduce from inspect import isawaitable from typing import Any, Callable, List, Optional, Text, Union from sanic import Sanic, response from sanic.request import Request from sanic...
35.492237
108
0.601431
d2ccdf953090d92ed32964548cbd549c02132653
1,001
py
Python
ats/contrib/sites/migrations/0003_set_site_domain_and_name.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
ats/contrib/sites/migrations/0003_set_site_domain_and_name.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
1
2020-07-19T11:19:22.000Z
2020-07-19T11:19:22.000Z
ats/contrib/sites/migrations/0003_set_site_domain_and_name.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.6
129
0.684316
f5f7d6adc82983f8e33c76cd9da6ead588b283cf
1,314
py
Python
1_LR_notmnist.py
dhingratul/Deep-Learning
61dd0570ac86d6dc39b9f09f31d4f3716d1a1df6
[ "MIT" ]
null
null
null
1_LR_notmnist.py
dhingratul/Deep-Learning
61dd0570ac86d6dc39b9f09f31d4f3716d1a1df6
[ "MIT" ]
null
null
null
1_LR_notmnist.py
dhingratul/Deep-Learning
61dd0570ac86d6dc39b9f09f31d4f3716d1a1df6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 5 13:42:41 2017 @author: dhingratul Performs Logistic Regression on notMNIST dataset from Udacity course on Deep Learning Input : Pickle file Output: Performance of LR on given batch size """ from sklearn.linear_model import LogisticRegression from...
32.04878
78
0.765601
539946d4516f16df6070577d824196a66f5a0b23
1,956
py
Python
MT_TransV1/compute_scare_corpus_Blue.py
BUTSpeechFIT/MT_Transformer
86e71f93b06ceb937c71171ee781377e2929b0ea
[ "MIT" ]
null
null
null
MT_TransV1/compute_scare_corpus_Blue.py
BUTSpeechFIT/MT_Transformer
86e71f93b06ceb937c71171ee781377e2929b0ea
[ "MIT" ]
null
null
null
MT_TransV1/compute_scare_corpus_Blue.py
BUTSpeechFIT/MT_Transformer
86e71f93b06ceb937c71171ee781377e2929b0ea
[ "MIT" ]
null
null
null
#! /usr/bin/python import numpy as np import sys import sacrebleu from sacrebleu import sentence_bleu,corpus_bleu SMOOTH_VALUE_DEFAULT=1e-8 #sentence_bleu(hypothesis: str,references: List[str],smooth_method: str = 'floor',smooth_value: float = SMOOTH_VALUE_DEFAULT,use_effective_order: bool = True) #reference = [['t...
35.563636
158
0.507669
b2b06fe4cc4e7f33e34c2d713ce45fe891b317b3
160
py
Python
tests/utils/compat.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
99
2015-02-27T02:21:41.000Z
2021-02-09T15:13:25.000Z
tests/utils/compat.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
114
2015-01-16T15:06:49.000Z
2018-04-13T20:29:18.000Z
tests/utils/compat.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
51
2015-01-07T12:13:56.000Z
2019-05-06T14:16:35.000Z
try: from unittest2 import TestCase from unittest2 import skipIf except ImportError: from unittest import TestCase from unittest import skipIf
20
34
0.7625
4f8853eb16aae8c30528fd178f58eea04cdb3427
3,448
py
Python
ToDo/ToDo/settings.py
Aleksandr-zero/ToDO_Django
59102f45e5a075813b9c500553e83b9b1bd8712c
[ "MIT" ]
null
null
null
ToDo/ToDo/settings.py
Aleksandr-zero/ToDO_Django
59102f45e5a075813b9c500553e83b9b1bd8712c
[ "MIT" ]
null
null
null
ToDo/ToDo/settings.py
Aleksandr-zero/ToDO_Django
59102f45e5a075813b9c500553e83b9b1bd8712c
[ "MIT" ]
null
null
null
""" Django settings for ToDo project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from...
25.167883
91
0.681265
fa4bba1c5055de4f7dcf1921ce413cf2cb615125
749
py
Python
train.py
JasonCZH4/sso_captcha_DL
85c060db54c6d0eb5a2f425c19c881c944dbf51e
[ "MIT" ]
1
2021-07-05T14:11:25.000Z
2021-07-05T14:11:25.000Z
train.py
JasonCZH4/sso_captcha_DL
85c060db54c6d0eb5a2f425c19c881c944dbf51e
[ "MIT" ]
null
null
null
train.py
JasonCZH4/sso_captcha_DL
85c060db54c6d0eb5a2f425c19c881c944dbf51e
[ "MIT" ]
null
null
null
import os import time from os.path import join from data import cv_im_process, load_dataset, text2vec, vec2text from model import get_model import tensorflow as tf from keras.callbacks import ModelCheckpoint (x_train, t_train), (x_test, t_test) = load_dataset() model = get_model() checkpoint = ModelCheckpo...
29.96
114
0.694259
0f15e3308216b620ee10754464153d452b20af71
1,794
py
Python
services/FlattenerService.py
johnyenter-briars/Grove
a1a3e784b3ae22113d2596ecea019b52aa2c138d
[ "MIT" ]
null
null
null
services/FlattenerService.py
johnyenter-briars/Grove
a1a3e784b3ae22113d2596ecea019b52aa2c138d
[ "MIT" ]
null
null
null
services/FlattenerService.py
johnyenter-briars/Grove
a1a3e784b3ae22113d2596ecea019b52aa2c138d
[ "MIT" ]
null
null
null
from models.Branch import Branch import collections class BranchFlattener(object): def __init__(self, rowTuples): self._rawRows = rowTuples def flatten(self): listOfBranchIds = [t[0] for t in self._rawRows] duplicateBranchIds = [id for id, count in collections.Counter(listOfBranchIds)....
42.714286
108
0.61204
5720565aa67dc85b0eb4f0d24d25da596e0b3c3d
3,248
py
Python
app/app/settings.py
amirtahmouresi/recipe-app-api
1348de2121710db45cf52c8ee599e2cfe306ed4d
[ "MIT" ]
null
null
null
app/app/settings.py
amirtahmouresi/recipe-app-api
1348de2121710db45cf52c8ee599e2cfe306ed4d
[ "MIT" ]
null
null
null
app/app/settings.py
amirtahmouresi/recipe-app-api
1348de2121710db45cf52c8ee599e2cfe306ed4d
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.10. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.574803
91
0.687808
3c42b34dbe82d05a2f5f2085c3b140f002ba108e
34,338
py
Python
python/ccxt/itbit.py
criadoperez/ccxt
d2126cf0713c23542aa8c297f8a5bc820828a872
[ "MIT" ]
null
null
null
python/ccxt/itbit.py
criadoperez/ccxt
d2126cf0713c23542aa8c297f8a5bc820828a872
[ "MIT" ]
null
null
null
python/ccxt/itbit.py
criadoperez/ccxt
d2126cf0713c23542aa8c297f8a5bc820828a872
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
45.003932
266
0.53617
ade97a411b4a5b330b381c6bebe77074f768d20a
9,776
py
Python
scripts/prepare_bindings.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
scripts/prepare_bindings.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
scripts/prepare_bindings.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
#!/usr/bin/env python """ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. See https://llvm.org/LICENSE.txt for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception Prepares language bindings for LLDB build process. Run with --help to see a description of the suppo...
33.710345
79
0.6518
b92efd7716317f1c2213704b8ccfb5a0ea54784f
5,467
py
Python
indico/modules/users/models/users_test.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/modules/users/models/users_test.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/users/models/users_test.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import itertools import pytest from speaklater import is_lazy_string from sqlalchemy.exc import Integrity...
35.967105
106
0.683922
2f0bf61be8e1000d23552f0f05d8c8d941465320
253
py
Python
lang/Python/loops-foreach-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/loops-foreach-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/loops-foreach-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
d = {3: "Earth", 1: "Mercury", 4: "Mars", 2: "Venus"} for k in sorted(d): print(("%i: %s" % (k, d[k]))) d = {"London": "United Kingdom", "Berlin": "Germany", "Rome": "Italy", "Paris": "France"} for k in sorted(d): print(("%s: %s" % (k, d[k])))
31.625
89
0.494071
671da204f829f9b94a0fd364f59537267112bf19
1,826
py
Python
pytest_relaxed/plugin.py
mimi1vx/pytest-relaxed
ef1c80380f38db2f2a074bbdf1774c8aa8ebd58e
[ "BSD-2-Clause" ]
null
null
null
pytest_relaxed/plugin.py
mimi1vx/pytest-relaxed
ef1c80380f38db2f2a074bbdf1774c8aa8ebd58e
[ "BSD-2-Clause" ]
null
null
null
pytest_relaxed/plugin.py
mimi1vx/pytest-relaxed
ef1c80380f38db2f2a074bbdf1774c8aa8ebd58e
[ "BSD-2-Clause" ]
null
null
null
import pytest from .classes import SpecModule from .reporter import RelaxedReporter # NOTE: fixtures must be present in the module listed under our setup.py's # pytest11 entry_points value (i.e., this one.) Just being in the import path # (e.g. package __init__.py) was not sufficient! from .fixtures import environ # ...
40.577778
79
0.730011
f7373b3ae985e25e1e77bf7a2341a5af803f701e
1,947
py
Python
artificial_intelligence/qsvm_kernel_multiclass.py
chunfuchen/qiskit-acqua-tutorials
74b0bcaac1678fc6c0de5be13e99d7ecd11b3075
[ "Apache-2.0" ]
null
null
null
artificial_intelligence/qsvm_kernel_multiclass.py
chunfuchen/qiskit-acqua-tutorials
74b0bcaac1678fc6c0de5be13e99d7ecd11b3075
[ "Apache-2.0" ]
null
null
null
artificial_intelligence/qsvm_kernel_multiclass.py
chunfuchen/qiskit-acqua-tutorials
74b0bcaac1678fc6c0de5be13e99d7ecd11b3075
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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.176471
104
0.648177
7f690a3fa3c2eb0dc444000aa275772cf0755ffe
742
py
Python
Fundamentos/Aula 17- Listas (parte 1)/exercicio81.py
andrecrocha/Fundamentos-Python
e18a187945c3478d3b37bb3f350d0ca72e5bcc7a
[ "MIT" ]
null
null
null
Fundamentos/Aula 17- Listas (parte 1)/exercicio81.py
andrecrocha/Fundamentos-Python
e18a187945c3478d3b37bb3f350d0ca72e5bcc7a
[ "MIT" ]
null
null
null
Fundamentos/Aula 17- Listas (parte 1)/exercicio81.py
andrecrocha/Fundamentos-Python
e18a187945c3478d3b37bb3f350d0ca72e5bcc7a
[ "MIT" ]
null
null
null
"""Desafio 81. Crie um programa que vai ler vários números e colocar em uma lista. Depois disso mostre; a) Quantos números foram digitados; b) A lista de valores ordenada de forma decrescente; c) se o valor 5 está ou não na lista.""" numeros = [] while True: numeros.append(int(input("Escreva um valor inteiro: ")))...
37.1
122
0.67655
71cd2d92273d1f7c39ab3e089650472e4b89919f
1,169
py
Python
tutorial/examples/Makefile/3.package.py
germasch/spack-tutorial
992646737b1998f82c67debc310979db8412e4e4
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
tutorial/examples/Makefile/3.package.py
germasch/spack-tutorial
992646737b1998f82c67debc310979db8412e4e4
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
tutorial/examples/Makefile/3.package.py
germasch/spack-tutorial
992646737b1998f82c67debc310979db8412e4e4
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Bowtie(MakefilePackage): """Bowtie is an ultrafast, memory efficient short read aligner ...
31.594595
107
0.645851
7f3947ba64953731b153797fff15ab3bea96f302
1,195
py
Python
tests/light_modes/test_converge_mode.py
pikesley/rgb-desk
863d6f7964a6349078b86b43fcbd71308fe7f852
[ "MIT" ]
1
2021-04-06T15:13:24.000Z
2021-04-06T15:13:24.000Z
tests/light_modes/test_converge_mode.py
pikesley/rgb-desk
863d6f7964a6349078b86b43fcbd71308fe7f852
[ "MIT" ]
null
null
null
tests/light_modes/test_converge_mode.py
pikesley/rgb-desk
863d6f7964a6349078b86b43fcbd71308fe7f852
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import MagicMock, call from light_emitting_desk.desk import Desk from light_emitting_desk.light_modes import Converge class TestConverge(TestCase): """Test `Converge`.""" def test_converging(self): """Test it converges.""" desk = Desk({"back-o...
32.297297
76
0.487029
03d35c87626642740113eb43b5163839d688ad01
2,478
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/basic/dbsmonitors.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/basic/dbsmonitors.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/basic/dbsmonitors.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
33.486486
113
0.737288
b8e1c3f38dc688f9b39fec84ca5d83f0bedbf55d
3,429
py
Python
skeletonplugin.py
cosmonaut/mcpvu
45b1bb589efaf66ad31d4a8a5188620816a34ac7
[ "MIT" ]
null
null
null
skeletonplugin.py
cosmonaut/mcpvu
45b1bb589efaf66ad31d4a8a5188620816a34ac7
[ "MIT" ]
null
null
null
skeletonplugin.py
cosmonaut/mcpvu
45b1bb589efaf66ad31d4a8a5188620816a34ac7
[ "MIT" ]
null
null
null
from baseplugin import BasePlugin, PluginPlotItem, SegmentConfig, PluginConfig, PlotConfig from implotwidget import ImplotWidget from implotwidget import ImplotWidgetCont from lineplotwidget import LineplotWidget from phdplotwidget import PHDPlotWidgetCont import numpy as np import time IM_BITS = 10 PHD_BITS = 8 PAK_...
34.636364
116
0.523185
7eb9ac26a8bfe0a3a3ef04318b6eb3e0203a7729
959
py
Python
02_crowsnest/crowsnest.py
rastamannn/tiny_python_projects
998eae81bf5300a0eecaeec2d9de7bbccf8e0a74
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
rastamannn/tiny_python_projects
998eae81bf5300a0eecaeec2d9de7bbccf8e0a74
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
rastamannn/tiny_python_projects
998eae81bf5300a0eecaeec2d9de7bbccf8e0a74
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Roel Stalman <rstalman@gmail.com> Date : 2021-10-07 Purpose: Crow's Nest -- choose the correct article """ import argparse def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Crow\'s Nest -- choose the correct article'...
24.589744
65
0.557873
1c84080d93e2cc0eae87abee531cf09121c47675
2,596
py
Python
src/poliastro/frames/util.py
NanuSai/poliastro
f8f6a172092f14bc1a564384e8a1bb8b34a57017
[ "MIT" ]
1
2020-04-12T14:39:22.000Z
2020-04-12T14:39:22.000Z
src/poliastro/frames/util.py
NanuSai/poliastro
f8f6a172092f14bc1a564384e8a1bb8b34a57017
[ "MIT" ]
null
null
null
src/poliastro/frames/util.py
NanuSai/poliastro
f8f6a172092f14bc1a564384e8a1bb8b34a57017
[ "MIT" ]
null
null
null
from typing import Dict from astropy.coordinates.baseframe import FrameMeta from poliastro.bodies import ( Earth, Jupiter, Mars, Mercury, Neptune, Saturn, SolarSystemBody, Sun, Uranus, Venus, ) from poliastro.constants import J2000 from .ecliptic import GeocentricMeanEcliptic,...
28.217391
88
0.696841
05efbd165780cc74c27c0c61cdd35b3464258087
351
py
Python
setup.py
Mattremblay/homework-10
743fbb129f19b95c6cb304d2c20249f4095396a4
[ "MIT" ]
null
null
null
setup.py
Mattremblay/homework-10
743fbb129f19b95c6cb304d2c20249f4095396a4
[ "MIT" ]
null
null
null
setup.py
Mattremblay/homework-10
743fbb129f19b95c6cb304d2c20249f4095396a4
[ "MIT" ]
null
null
null
from setuptools import setup setup( name= "data1mathieutremblay", version="0.2", scripts=['home_work_data1.py'], data_files= [('.',['data-1.csv'])], install_requires=['matplotlib','pandas'], author="Mathieu tremblay", Author_email="mattremblay76@gmail.com", description="This is an Example Package", keywo...
23.4
41
0.717949
41ae29e669f7fceddfb4240f689e80e4842a92da
11,025
py
Python
networkx/algorithms/isomorphism/tests/test_isomorphvf2.py
ImportanceOfBeingErnest/networkx
eb3a675c5b2b15e33b0a4a35bcee34d6b81ed94d
[ "BSD-3-Clause" ]
1
2020-05-13T01:08:42.000Z
2020-05-13T01:08:42.000Z
networkx/algorithms/isomorphism/tests/test_isomorphvf2.py
ImportanceOfBeingErnest/networkx
eb3a675c5b2b15e33b0a4a35bcee34d6b81ed94d
[ "BSD-3-Clause" ]
1
2019-11-28T21:08:50.000Z
2019-11-28T21:08:50.000Z
networkx/algorithms/isomorphism/tests/test_isomorphvf2.py
ImportanceOfBeingErnest/networkx
eb3a675c5b2b15e33b0a4a35bcee34d6b81ed94d
[ "BSD-3-Clause" ]
4
2019-07-19T15:06:37.000Z
2021-03-17T22:29:04.000Z
""" Tests for VF2 isomorphism algorithm. """ import os import struct import random from nose.tools import assert_true, assert_equal from nose import SkipTest import networkx as nx from networkx.algorithms import isomorphism as iso class TestWikipediaExample(object): # Source: https://en.wikipedia.org/wiki/G...
34.027778
114
0.555828
16807d27df9abcba4afa457417b2de8a3fc5e723
278
py
Python
binance_asyncio/general.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
10
2021-02-07T23:34:05.000Z
2022-02-05T16:51:00.000Z
binance_asyncio/general.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
null
null
null
binance_asyncio/general.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
null
null
null
from binance_asyncio.endpoints import MarketDataEndpoints class Client: def __init__(self, api_key=None, secret=None) -> None: self.api_key, self.secret = api_key, secret def get_market_data_endpoints(self): return MarketDataEndpoints(self.api_key)
34.75
58
0.741007
695a2e5d8705f85050c2e80aba7439a9901e5777
4,632
py
Python
onlinecourse/models.py
albertopitti/coursera_final_template
bfeb3c71562ca63d83dce9b5203cb868ba287517
[ "Apache-2.0" ]
null
null
null
onlinecourse/models.py
albertopitti/coursera_final_template
bfeb3c71562ca63d83dce9b5203cb868ba287517
[ "Apache-2.0" ]
null
null
null
onlinecourse/models.py
albertopitti/coursera_final_template
bfeb3c71562ca63d83dce9b5203cb868ba287517
[ "Apache-2.0" ]
null
null
null
import sys from django.utils.timezone import now try: from django.db import models except Exception: print("There was an error loading django modules. Do you have django installed?") sys.exit() from django.conf import settings import uuid # Instructor model class Instructor(models.Model): user = mode...
32.851064
104
0.689767
b032e107c47ea9b1b6325176b22140ef6ae91e7f
12,489
py
Python
pyftpdlib/test/__init__.py
OrangeTux/pyftpdlib
bdf50a23d61506fa87708bc06a41b46cfec7bbdd
[ "MIT" ]
null
null
null
pyftpdlib/test/__init__.py
OrangeTux/pyftpdlib
bdf50a23d61506fa87708bc06a41b46cfec7bbdd
[ "MIT" ]
null
null
null
pyftpdlib/test/__init__.py
OrangeTux/pyftpdlib
bdf50a23d61506fa87708bc06a41b46cfec7bbdd
[ "MIT" ]
null
null
null
# Copyright (C) 2007 Giampaolo Rodola' <g.rodola@gmail.com>. # Use of this source code is governed by MIT license that can be # found in the LICENSE file. from __future__ import print_function import contextlib import functools import logging import multiprocessing import os import shutil import socket import stat imp...
31.300752
78
0.649852
302405017f284decd2fba2176611c1c97300af8d
29,112
py
Python
mdf.py
Asplund-Samuelsson/POPPY
8459b0855294de65ab9d940fc2a1cc73a14ae0aa
[ "MIT" ]
2
2018-09-13T15:05:07.000Z
2019-03-13T15:29:46.000Z
mdf.py
Asplund-Samuelsson/POPPY
8459b0855294de65ab9d940fc2a1cc73a14ae0aa
[ "MIT" ]
16
2017-04-05T08:12:32.000Z
2019-01-04T10:13:04.000Z
mdf.py
Asplund-Samuelsson/POPPY
8459b0855294de65ab9d940fc2a1cc73a14ae0aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Import modules from scipy import optimize import numpy as np import sys, os import pandas as pd import collections import itertools import argparse # Import scripts import pykegg # Define functions def sWrite(string): sys.stdout.write(string) sys.stdout.flush() def sError(string): ...
35.373026
97
0.616103
99773e3afd0a1c153b4c680ecde907834b8c6dc5
5,647
py
Python
src/data/main/swarp.py
MehnaazAsad/ECO_Globular_Clusters
7250c6165c0fbd46cabbd798e44a220cfb337adc
[ "MIT" ]
1
2018-11-29T17:10:35.000Z
2018-11-29T17:10:35.000Z
src/data/main/swarp.py
MehnaazAsad/ECO_Globular_Clusters
7250c6165c0fbd46cabbd798e44a220cfb337adc
[ "MIT" ]
null
null
null
src/data/main/swarp.py
MehnaazAsad/ECO_Globular_Clusters
7250c6165c0fbd46cabbd798e44a220cfb337adc
[ "MIT" ]
1
2018-11-29T17:12:01.000Z
2018-11-29T17:12:01.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jul 27 16:39:59 2017 @author: asadm2 """ ### DESCRIPTION #This script uses swarp to combine images taken using the same filter. Image #data is updated, zeropoint is scaled to 30, units are all set to counts/s. #The percentage of the coadd that's blank i.e. pixel value = 0 is...
44.117188
81
0.68532
db5a8e15efe05c67220684595264dce77aa55145
1,423
py
Python
config.py
Kihara-tony/one-minute-pitch
48a090c46e03257aa8ffacb89767f40b6856c18f
[ "Unlicense" ]
null
null
null
config.py
Kihara-tony/one-minute-pitch
48a090c46e03257aa8ffacb89767f40b6856c18f
[ "Unlicense" ]
null
null
null
config.py
Kihara-tony/one-minute-pitch
48a090c46e03257aa8ffacb89767f40b6856c18f
[ "Unlicense" ]
1
2019-09-23T11:00:22.000Z
2019-09-23T11:00:22.000Z
import os class Config: ''' General configuration parent class ''' SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://tony:tonyqtjds2@localhost/minutepitch' UPLOADED_PHOTOS_DEST ='app/static' SQLALCHEMY_TRACK_MODIFICATIONS = True # email configura...
26.849057
91
0.716796
16ac3dc543fe339ffbc56590d1d7f255e151d9c6
6,410
py
Python
others/amdegroot/data/uad.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
others/amdegroot/data/uad.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
others/amdegroot/data/uad.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
"""UAD Dataset Classes Original author: Jaeho Bang """ from .config import HOME import os.path as osp import sys import torch import torch.utils.data as data import cv2 import numpy as np if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: import xml.etree.ElementTree as ET from logger im...
30.235849
139
0.58986
5a052493eae960bade691b84551ee40364e39a3a
23,478
py
Python
sdk/python/pulumi_azure_native/containerservice/v20210501/get_managed_cluster.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20210501/get_managed_cluster.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20210501/get_managed_cluster.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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...
44.977011
799
0.688048
36d8e5fbe2fc17a88549610caeb350e5480028d3
499
py
Python
04_introduccion-al-computo-con-python/modulo_IV/clase02-range.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
30
2020-06-19T16:21:04.000Z
2022-02-19T01:48:39.000Z
04_introduccion-al-computo-con-python/modulo_IV/clase02-range.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
87
2021-02-12T04:42:13.000Z
2021-09-20T04:25:29.000Z
04_introduccion-al-computo-con-python/modulo_IV/clase02-range.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
11
2020-08-13T04:04:01.000Z
2022-01-20T20:10:43.000Z
""" Tema: Rangos. Curso: Pensamiento computacional. Plataforma: Platzi. Profesor: David Aroesti. Alumno: @edinsonrequena. """ # range(comienzo, fin, pasos) my_range = range(1, 5) print(type(my_range)) for i in my_range: print(i) my_range = range(0, 7, 2) # 0, 2, 4, 6 my_other_range = range(0, 8, 2) # 0, 2, ...
16.633333
45
0.675351
9bc647dced84f7be4416dc2c67429c744463f172
8,407
py
Python
lib/rucio/daemons/conveyor/stager.py
lancs-gridpp/rucio
b10d485fd31555d17ac1e4143380a3b09ab83a4a
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/stager.py
lancs-gridpp/rucio
b10d485fd31555d17ac1e4143380a3b09ab83a4a
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/stager.py
lancs-gridpp/rucio
b10d485fd31555d17ac1e4143380a3b09ab83a4a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright CERN since 2013 # # 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 ...
38.56422
167
0.64815
ebd2c8cb7eb70c2e1998e1dbb8c24d169b53d6bd
9,269
py
Python
qa/rpc-tests/import-rescan.py
kawriscoin/kawris
404ee3940039719cfa4c87f6ebca6641c08685c9
[ "MIT" ]
null
null
null
qa/rpc-tests/import-rescan.py
kawriscoin/kawris
404ee3940039719cfa4c87f6ebca6641c08685c9
[ "MIT" ]
null
null
null
qa/rpc-tests/import-rescan.py
kawriscoin/kawris
404ee3940039719cfa4c87f6ebca6641c08685c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
47.533333
116
0.655195
3b6bc9ce42add21504e0f3088a3dbebd02920650
4,550
py
Python
mpsrad/wobbler/WVR.py
smotherh/mpsrad
695bfeebcc331788d97569c2a753d8cedbe78be1
[ "MIT" ]
null
null
null
mpsrad/wobbler/WVR.py
smotherh/mpsrad
695bfeebcc331788d97569c2a753d8cedbe78be1
[ "MIT" ]
null
null
null
mpsrad/wobbler/WVR.py
smotherh/mpsrad
695bfeebcc331788d97569c2a753d8cedbe78be1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Wobbler control for water vapor radiometer Last modification: 19.06.2018 Author: Borys Dabrowski, dabrowski@mps.mpg.de """ import serial from time import time,sleep class wobbler: def __init__(self,device='/dev/wobbler',baud=115200,address="None"): self._initialized=False # Set devic...
27.91411
72
0.716923
5456062859c7b200bc0d6978042f504ba33fbf31
1,562
py
Python
cms/compat_forms.py
intgr/django-cms
92edf033ccc0938e41f3752935516572c3623695
[ "BSD-3-Clause" ]
1
2015-06-11T19:25:26.000Z
2015-06-11T19:25:26.000Z
cms/compat_forms.py
damianmoore/django-cms
2d3e10a01e792ec7da5c1418811c1be5ac84e5e2
[ "BSD-3-Clause" ]
5
2021-03-19T15:39:27.000Z
2021-09-08T02:47:21.000Z
cms/compat_forms.py
Acidburn0zzz/django-cms
5a105a1c75eeb4c8a4c1c34301d93855e6724407
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils import importlib from django.db import models from cms.compat import is_user_swapped, user_model_label # overide with custom classes if they exist if is_user_swapped: # UserAdmin class user_app_name = user_model_label.split('.')[0] app = models.get_app(user_app_n...
35.5
76
0.702945
827da4d6133877b0ca18c986e7793f57cc97d11c
2,088
py
Python
surveys/migrations/0001_initial.py
salexkidd/restframework-definable-serializer-example
d0aa946e72e9bf123249187f0c17193216363c2d
[ "Unlicense" ]
null
null
null
surveys/migrations/0001_initial.py
salexkidd/restframework-definable-serializer-example
d0aa946e72e9bf123249187f0c17193216363c2d
[ "Unlicense" ]
null
null
null
surveys/migrations/0001_initial.py
salexkidd/restframework-definable-serializer-example
d0aa946e72e9bf123249187f0c17193216363c2d
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-29 06:09 from __future__ import unicode_literals import definable_serializer.models.compat import definable_serializer.models.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migrati...
38.666667
138
0.616379
c300018bee26dfc27b9e576f5c19c40713bc7e41
761
py
Python
src/main.py
clitnak/rpotter
798d97ec0a0b967515eec1e59ab4c26fe5143796
[ "MIT" ]
null
null
null
src/main.py
clitnak/rpotter
798d97ec0a0b967515eec1e59ab4c26fe5143796
[ "MIT" ]
null
null
null
src/main.py
clitnak/rpotter
798d97ec0a0b967515eec1e59ab4c26fe5143796
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' ''' import camera import homeautomation import spells import cv2 import wandtracker ########### PARAMETERS ############# # Smartthings token tokenFile = open("../smartthings-token.txt", "r") token = tokenFile.readline().rstrip("\n") # display intra-processing images 1 t...
20.026316
89
0.696452
d7d0590e07c4f492c1fe8eaf28d3bbc2d227223a
464
py
Python
languages/python/1.learn_py_the_hard_way/detective_game/engine.py
banminkyoz/learn
fde05b0e2f075ebffe77a9d085ed63412d8a9ff9
[ "MIT" ]
4
2022-01-18T00:57:20.000Z
2022-03-31T02:41:54.000Z
languages/python/1.learn_py_the_hard_way/detective_game/engine.py
kyoz/learn
fde05b0e2f075ebffe77a9d085ed63412d8a9ff9
[ "MIT" ]
null
null
null
languages/python/1.learn_py_the_hard_way/detective_game/engine.py
kyoz/learn
fde05b0e2f075ebffe77a9d085ed63412d8a9ff9
[ "MIT" ]
null
null
null
class Engine: def __init__(self, scene): self.scene = scene def start_game(self): current_scene = self.scene.get_opening_scene() last_scene = self.scene.get_scene_by_name('finished') while current_scene != last_scene: next_scene_name = current_scene.enter() ...
29
73
0.659483