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
0bf33e21f5e815eb68a81d49aa320e1e5ede530a
2,488
py
Python
arvestust/serializers/tests/image.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
1
2021-09-17T23:45:27.000Z
2021-09-17T23:45:27.000Z
arvestust/serializers/tests/image.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
3
2020-07-25T05:40:54.000Z
2020-08-11T04:01:19.000Z
arvestust/serializers/tests/image.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import status from rest_framework.test import APIClient, APITestCase from django.contrib.auth import get_user_model from ..image import Image class ImageTestCase(APITestCase): # The client used to connect to the API client = APIClient() def setUp(self): """ Prepare da...
33.173333
96
0.639068
e300b5b421daedb7935a6390064343dcb8001cd0
5,011
py
Python
pymatgen/phasediagram/tests/test_pdanalyzer.py
ctoher/pymatgen
54df358f61fbe60417e90850811b75c1a9e2e230
[ "MIT" ]
1
2015-05-18T14:31:20.000Z
2015-05-18T14:31:20.000Z
pymatgen/phasediagram/tests/test_pdanalyzer.py
ctoher/pymatgen
54df358f61fbe60417e90850811b75c1a9e2e230
[ "MIT" ]
null
null
null
pymatgen/phasediagram/tests/test_pdanalyzer.py
ctoher/pymatgen
54df358f61fbe60417e90850811b75c1a9e2e230
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import unittest import os from numbers import Number from pymatgen.core.composition import Composition from pymatgen.core.periodic_table import Element from pymatgen.phasediagram.pdmaker import PhaseDiagram from pymatgen.phasediagram.pdanalyzer import PDAnalyz...
43.95614
115
0.643784
0fbcd8f556a88ae2a109df3d7c1bf8555a42491a
2,773
py
Python
Banking-Inferences./code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
2
2019-10-12T16:05:04.000Z
2020-01-22T16:41:58.000Z
Banking-Inferences./code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
null
null
null
Banking-Inferences./code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import scipy.stats as stats import math import numpy as np import warnings warnings.filterwarnings('ignore') #Sample_Size sample_size=2000 #Z_Critical Score z_critical = stats.norm.ppf(q = 0.95) # path [File location variable] #Code starts here data = ...
26.160377
132
0.670754
29684ff87d37655a0314a1763ed497e49f442f63
3,583
py
Python
app/account/forms.py
abhisuri97/mhealth
2d74c9c8298d097f86090e3365652d858c682ffa
[ "MIT" ]
2
2020-01-19T11:39:26.000Z
2020-02-11T12:19:46.000Z
app/account/forms.py
abhisuri97/mhealth
2d74c9c8298d097f86090e3365652d858c682ffa
[ "MIT" ]
2
2018-02-15T13:42:52.000Z
2021-06-02T03:45:33.000Z
app/account/forms.py
abhisuri97/mhealth
2d74c9c8298d097f86090e3365652d858c682ffa
[ "MIT" ]
2
2020-10-20T05:42:42.000Z
2022-03-18T13:27:35.000Z
from flask import url_for from flask_wtf import Form from wtforms import ValidationError from wtforms.fields import (BooleanField, PasswordField, StringField, SubmitField) from wtforms.fields.html5 import EmailField from wtforms.validators import Email, EqualTo, InputRequired, Length from ....
35.83
79
0.653084
3be67eb9fcb7657c9a1a93535e6db87a450314d8
893
py
Python
pcg_gazebo/parsers/sdf/empty.py
TForce1/pcg_gazebo
9ff88016b7b6903236484958ca7c6ed9f8ffb346
[ "ECL-2.0", "Apache-2.0" ]
40
2020-02-04T18:16:49.000Z
2022-02-22T11:36:34.000Z
pcg_gazebo/parsers/sdf/empty.py
awesomebytes/pcg_gazebo
4f335dd460ef7c771f1df78b46a92fad4a62cedc
[ "ECL-2.0", "Apache-2.0" ]
75
2020-01-23T13:40:50.000Z
2022-02-09T07:26:01.000Z
pcg_gazebo/parsers/sdf/empty.py
GimpelZhang/gazebo_world_generator
eb7215499d0ddc972d804c988fadab1969579b1b
[ "ECL-2.0", "Apache-2.0" ]
18
2020-09-10T06:35:41.000Z
2022-02-20T19:08:17.000Z
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
31.892857
74
0.730123
83fad4a92050cd1dc8644bb1ecc11f08cf1e1244
11,989
py
Python
arroyo/synchronized.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
11
2021-07-13T17:20:49.000Z
2022-03-25T05:46:59.000Z
arroyo/synchronized.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
12
2021-06-15T20:04:36.000Z
2022-03-31T23:43:30.000Z
arroyo/synchronized.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
1
2022-01-28T15:44:03.000Z
2022-01-28T15:44:03.000Z
import logging from dataclasses import dataclass from datetime import datetime from threading import Event from typing import Callable, Mapping, MutableMapping, Optional, Sequence, Set from arroyo.backends.abstract import Consumer from arroyo.backends.kafka import KafkaPayload from arroyo.errors import ConsumerError, ...
38.674194
89
0.638502
afdbc1c04f9de0aa381aa3418b3fafd59992ae25
1,092
py
Python
db_test.py
fga-eps-mds/2020-2-eps-mds-Parlamentaqui-db-G6
fb15975c3f32b297bf9ae53e8f4bd29f1150f92e
[ "MIT" ]
null
null
null
db_test.py
fga-eps-mds/2020-2-eps-mds-Parlamentaqui-db-G6
fb15975c3f32b297bf9ae53e8f4bd29f1150f92e
[ "MIT" ]
null
null
null
db_test.py
fga-eps-mds/2020-2-eps-mds-Parlamentaqui-db-G6
fb15975c3f32b297bf9ae53e8f4bd29f1150f92e
[ "MIT" ]
null
null
null
import os from mongoengine import * from dotenv import load_dotenv load_dotenv() DB_USERNAME = os.getenv('DB_USERNAME') DB_PASSWORD = os.getenv('DB_PASSWORD') DB_HOST = os.getenv('DB_HOST') DB_PORT = os.getenv('DB_PORT') DB_NAME = os.getenv('DB_NAME') connect(DB_NAME, host=f'mongodb://{DB_USERNAME}:{DB_PASSWORD}@{DB...
30.333333
110
0.733516
dd6f1340db901f0b753ce5561d5fce44a8870f4c
4,843
py
Python
projects/Unstructured Supplemenrary Service Data/ussdtim.py
PickCot/LR_3
1f32222e3e13429a36162888612d8d1bb4b85bf2
[ "MIT" ]
null
null
null
projects/Unstructured Supplemenrary Service Data/ussdtim.py
PickCot/LR_3
1f32222e3e13429a36162888612d8d1bb4b85bf2
[ "MIT" ]
null
null
null
projects/Unstructured Supplemenrary Service Data/ussdtim.py
PickCot/LR_3
1f32222e3e13429a36162888612d8d1bb4b85bf2
[ "MIT" ]
null
null
null
import time import sys print('Welcome To fastrack USSD Banking Project...') time.sleep(8) bank_list=""" 1. Access Bank 2. Fidelity Bank 3. Guarantee Trust Bank 4. Heritage Bank 5. Polaris Bank 6. Stanbic IBTC 7. Unity Bank 8. Wema Bank """ gen_bvn = " " def BVN_checker( ): global gen_bvn bvn = [str(i) for i...
25.760638
152
0.572372
f6bfb48bc92e60e34d2379c5ca38d3fe3ed8f667
23,530
py
Python
utils/geoutils.py
thinkingmachines/geoai-immap
99634812602db6ceec9f55bfbacbd917eec2c407
[ "MIT" ]
23
2020-08-03T06:27:12.000Z
2022-03-07T17:44:37.000Z
utils/geoutils.py
thinkingmachines/geoai-immap
99634812602db6ceec9f55bfbacbd917eec2c407
[ "MIT" ]
null
null
null
utils/geoutils.py
thinkingmachines/geoai-immap
99634812602db6ceec9f55bfbacbd917eec2c407
[ "MIT" ]
5
2020-08-07T03:52:24.000Z
2022-01-19T15:44:09.000Z
import os import json import itertools import numpy as np import pandas as pd from tqdm import tqdm from pathlib import Path import subprocess import matplotlib.pyplot as plt import geopandas as gpd import rasterio as rio from rasterio.windows import ( Window, transform ) from rasterio import features import ...
30.28314
106
0.571951
5dfdedc0c75bea8fa20ec48c23371c77d7b535da
4,406
py
Python
russe/measures/word2vec/evaluate/utils.py
nlpub/russe-evaluation
bc2cf2504fabed650561399716c9a74ae64a2300
[ "MIT" ]
36
2015-01-17T05:37:17.000Z
2022-01-25T12:01:14.000Z
russe/measures/word2vec/evaluate/utils.py
nlpub/russe-evaluation
bc2cf2504fabed650561399716c9a74ae64a2300
[ "MIT" ]
3
2015-01-16T18:13:49.000Z
2015-06-02T21:17:55.000Z
russe/measures/word2vec/evaluate/utils.py
nlpub/russe-evaluation
bc2cf2504fabed650561399716c9a74ae64a2300
[ "MIT" ]
14
2015-01-16T17:43:07.000Z
2021-04-01T19:42:45.000Z
import logging from numpy import zeros, dtype, float32 as REAL, \ fromstring from gensim.models.word2vec import Vocab from gensim import utils from gensim.models.word2vec import Word2Vec logger = logging.getLogger("gensim.models.word2vec") def load_vectors(fvec): # return gs.models.Word2Vec.load_word2vec_form...
47.376344
129
0.603268
57acee92e260fc763ee67f5922ed7ee1b9f83447
899
py
Python
SScriptCompiler/examples/thresholdcounter/thresholdCounter_composite.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
SScriptCompiler/examples/thresholdcounter/thresholdCounter_composite.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
8
2018-03-10T19:20:43.000Z
2018-04-30T18:11:17.000Z
SScriptCompiler/examples/thresholdcounter/thresholdCounter_composite.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
import sys # SSCript from src.SComposite import SComposite # programData from examples.thresholdcounter.thresholdCounter import get_programData as thresholdCounter from examples.logger import get_programData as logger argv = sys.argv[1:] def get_compositeData(argv=argv): # TODO: rm logger, add requestStingGe...
20.906977
90
0.671858
11d4ce34c05deecf276e914506060e88992d708c
867
py
Python
cla_frontend/apps/status/smoketests/__init__.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
null
null
null
cla_frontend/apps/status/smoketests/__init__.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
null
null
null
cla_frontend/apps/status/smoketests/__init__.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
null
null
null
class SmokeTestFail(Exception): pass class SmokeTestRegistry(object): def __init__(self): self.tests = {} def register(self, sequence, name): def decorator(fn): self.tests[name] = {"sequence": sequence, "test": fn} return fn return decorator def __ite...
24.083333
70
0.534025
8b3159fa4d2d19c80215e627f172a8577220789e
49,303
py
Python
title_maker_pro/datasets.py
umair-akbar/this-word-does-not-exist
3cfb04c96c3647fa67f9b72df4d085520d7b5d2a
[ "MIT" ]
3
2020-10-22T03:06:51.000Z
2020-10-22T10:19:12.000Z
title_maker_pro/datasets.py
umair-akbar/this-word-does-not-exist
3cfb04c96c3647fa67f9b72df4d085520d7b5d2a
[ "MIT" ]
null
null
null
title_maker_pro/datasets.py
umair-akbar/this-word-does-not-exist
3cfb04c96c3647fa67f9b72df4d085520d7b5d2a
[ "MIT" ]
null
null
null
from dataclasses import dataclass import os import logging import pickle import hashlib import itertools import title_maker_pro.custom_modeling_utils as custom_modeling_utils import title_maker_pro.dictionary_definition as dictionary_definition import re import torch import random import stanza import time import sys f...
38.427903
120
0.576233
077cb5379209167093305d9c720b2214782a1bc8
68,717
py
Python
tensorflow/core/protobuf/eager_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
7
2020-12-28T02:53:05.000Z
2022-03-23T05:45:03.000Z
tensorflow/core/protobuf/eager_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
1
2021-01-27T16:06:16.000Z
2021-01-27T19:43:38.000Z
tensorflow/core/protobuf/eager_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
1
2021-02-11T11:46:01.000Z
2021-02-11T11:46:01.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/protobuf/eager_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as ...
45.268116
6,328
0.783867
2e90cc315d8d974df2f079feb28f844aa8bc88de
2,387
py
Python
src/m3_practice_fixing_errors.py
smitham-3/02-ObjectsFunctionsAndMethods-201930
7862b5fa8921b45b8341c8d7c9de3a513c56d4a2
[ "MIT" ]
null
null
null
src/m3_practice_fixing_errors.py
smitham-3/02-ObjectsFunctionsAndMethods-201930
7862b5fa8921b45b8341c8d7c9de3a513c56d4a2
[ "MIT" ]
null
null
null
src/m3_practice_fixing_errors.py
smitham-3/02-ObjectsFunctionsAndMethods-201930
7862b5fa8921b45b8341c8d7c9de3a513c56d4a2
[ "MIT" ]
null
null
null
""" This module lets you practice correcting SYNTAX (notation) errors. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Alex Smith. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. ##########################################################################...
32.256757
79
0.578132
82856000107db08a56b7a1945af129be29b72b48
4,432
py
Python
kb_utils.py
yangshao/vcr
88513d6958d93bd7845d532d5b83744a678fc980
[ "MIT" ]
null
null
null
kb_utils.py
yangshao/vcr
88513d6958d93bd7845d532d5b83744a678fc980
[ "MIT" ]
null
null
null
kb_utils.py
yangshao/vcr
88513d6958d93bd7845d532d5b83744a678fc980
[ "MIT" ]
null
null
null
import json import os from collections import defaultdict img_folder = '/mnt/home/yangshao/vcr/vcr1/vcr1images' data_folder = '/mnt/home/yangshao/vcr/action_data/' train_file = 'aug_train.jsonl' val_file = 'aug_val.jsonl' test_file = 'aug_test.jsonl' srl_train_file = 'aug_train_srl.jsonl' srl_val_file = 'aug_v...
38.206897
118
0.544901
2cfe77eb54c96c4281e2a24618988ced5d0c23f4
4,832
py
Python
trafpy/benchmarker/versions/benchmark_v001/config.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-08-28T18:24:11.000Z
2020-11-13T07:26:18.000Z
trafpy/benchmarker/versions/benchmark_v001/config.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-09-14T11:31:09.000Z
2020-09-21T16:00:20.000Z
trafpy/benchmarker/versions/benchmark_v001/config.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
null
null
null
import trafpy from trafpy.generator.src.dists import node_dists from trafpy.generator.src.dists import val_dists from trafpy.generator.src.dists import plot_dists import os import glob import copy import importlib import json def get_default_benchmark_names(): ''' Gets list of default benchmarks in TrafPy. ...
49.814433
266
0.624586
7291fc13e690d2e062a50270227e6995038fc9db
2,334
py
Python
scripts/helper_scripts/rename_history_items/rename_hist_items.py
bgruening/tools-artbio
2a17d184b8591d872acada56b742569590fe1a4b
[ "MIT" ]
12
2015-09-13T13:29:58.000Z
2021-09-24T09:01:40.000Z
scripts/helper_scripts/rename_history_items/rename_hist_items.py
bgruening/tools-artbio
2a17d184b8591d872acada56b742569590fe1a4b
[ "MIT" ]
210
2015-08-31T14:04:58.000Z
2022-03-23T08:52:03.000Z
scripts/helper_scripts/rename_history_items/rename_hist_items.py
bgruening/tools-artbio
2a17d184b8591d872acada56b742569590fe1a4b
[ "MIT" ]
16
2015-08-31T13:15:11.000Z
2021-09-24T09:03:22.000Z
#!/usr/bin/env python2.7 from bioblend.galaxy import GalaxyInstance import requests import datetime import argparse requests.packages.urllib3.disable_warnings() def parse_args(): args = argparse.ArgumentParser(description="Rename history items using a tabular file." +"\n" + "Ex...
37.645161
120
0.67138
298a3cd40487e6ffe1b5c0527c1e764d515d92f1
147
py
Python
elastipy/aggregation/__init__.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
1
2021-02-17T17:50:28.000Z
2021-02-17T17:50:28.000Z
elastipy/aggregation/__init__.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
2
2021-03-29T02:09:41.000Z
2022-03-01T20:09:48.000Z
elastipy/aggregation/__init__.py
netzkolchose/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
null
null
null
from .aggregation import Aggregation, AggregationInterface, factory # just make them parsed, no need to expose from . import special as _special
24.5
67
0.802721
10d20cf6ce77c6eb123e82ee741d2309f3d89efe
8,078
py
Python
src/aprl/policies/wrappers.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
211
2019-02-22T08:07:25.000Z
2022-03-14T10:44:20.000Z
src/aprl/policies/wrappers.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
51
2019-02-08T01:39:49.000Z
2022-02-15T21:21:46.000Z
src/aprl/policies/wrappers.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
41
2019-04-23T05:01:49.000Z
2022-03-16T06:51:19.000Z
from typing import List, Optional, Sequence, Tuple, TypeVar import numpy as np from stable_baselines.common.base_class import BaseRLModel from aprl.policies import base class NoisyAgentWrapper(base.ModelWrapper): def __init__(self, model: BaseRLModel, noise_annealer, noise_type: str = "gaussian"): """ ...
44.384615
98
0.666997
bb6589d1e6a898e1cb730cdd53b677b60db42db2
6,405
py
Python
pycoin/tx/script/vm.py
Udala/docforever
03eb20e4909c6204ff71503b30181a3ace1918c1
[ "MIT" ]
6
2016-04-20T20:55:04.000Z
2021-03-12T21:21:02.000Z
pycoin/tx/script/vm.py
Udala/docforever
03eb20e4909c6204ff71503b30181a3ace1918c1
[ "MIT" ]
1
2016-07-08T00:43:06.000Z
2016-07-24T15:45:39.000Z
pycoin/tx/script/vm.py
Udala/docforever
03eb20e4909c6204ff71503b30181a3ace1918c1
[ "MIT" ]
3
2016-04-04T17:51:20.000Z
2017-02-21T09:03:40.000Z
# -*- coding: utf-8 -*- """ Parse, stream, create, sign and verify Bitcoin transactions as Tx structures. The MIT License (MIT) Copyright (c) 2013 by Richard Kiss Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
38.353293
107
0.645433
efb46995035b1b9f5b14c94f234499f528b30ae7
401
py
Python
setup.py
acwikla-novela/test_release
86cb65a412fa529e68a22b4fa12779eb791cf353
[ "Apache-2.0" ]
null
null
null
setup.py
acwikla-novela/test_release
86cb65a412fa529e68a22b4fa12779eb791cf353
[ "Apache-2.0" ]
null
null
null
setup.py
acwikla-novela/test_release
86cb65a412fa529e68a22b4fa12779eb791cf353
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages version_file = open('VERSION') version = version_file.read().strip() setup( name='test_release', version=version, author='Aleksander Cwikla', url="https://github.com/acwikla-novela/test_release", packages=find_packages(), description='Testing auto-rel...
26.733333
57
0.705736
00afa4a7f73d2ea32f8399e151eeb6022357d952
1,287
py
Python
pages/product_page.py
pkuptcov/stepik-selenium-final
a150ab1c79adeed3346b48b296f210b826140ad1
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
pkuptcov/stepik-selenium-final
a150ab1c79adeed3346b48b296f210b826140ad1
[ "Apache-2.0" ]
1
2021-06-02T00:44:19.000Z
2021-06-02T00:44:19.000Z
pages/product_page.py
pkuptcov/stepik-selenium-final
a150ab1c79adeed3346b48b296f210b826140ad1
[ "Apache-2.0" ]
null
null
null
from .base_page import BasePage from .locators import ProductPageLocator class ProductPage(BasePage): def add_to_cart(self): add_to_cart_button = self.browser.find_element(*ProductPageLocator.ADD_TO_BASKET_BUTTON) add_to_cart_button.click() def should_be_right_title(self): product_tit...
51.48
131
0.769231
f55c922babfffef1526f4dc8ebbc157de7085f2c
1,703
py
Python
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/tracked_resource_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/tracked_resource_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/tracked_resource_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
31.537037
76
0.56195
23cbfd731e4ece5306a6e0475419ff14bf517de4
970
py
Python
newnnfw/tools/tflitefile_tool/tflite/ArgMaxOptions.py
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
8
2018-09-10T01:32:26.000Z
2020-05-13T06:05:40.000Z
newnnfw/tools/tflitefile_tool/tflite/ArgMaxOptions.py
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
28
2018-09-10T05:01:09.000Z
2021-03-04T10:07:12.000Z
newnnfw/tools/tflitefile_tool/tflite/ArgMaxOptions.py
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
4
2018-09-13T04:16:08.000Z
2018-12-03T07:34:44.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers class ArgMaxOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsArgMaxOptions(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x ...
24.25
87
0.685567
f9f81e47dabd551b186b5d1c3dd96bfeccb9d921
8,857
py
Python
flexget/tests/test_misc.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_misc.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_misc.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import os import stat import pytest from flexget.entry import EntryUnicodeError, Entry class TestDisableBuiltins(object): """ Quick a hack, test disable function...
32.682657
132
0.557638
ebff2262ca92c36667248cf73d1b5df1fb4dcb5f
3,887
py
Python
src/viztracer/flamegraph.py
dummyindex/viztracer
73d7b9a1cdcd8f91ad6ef9dd522b6be94de22b4d
[ "Apache-2.0" ]
1,798
2020-08-13T05:10:54.000Z
2022-03-31T16:43:17.000Z
src/viztracer/flamegraph.py
dummyindex/viztracer
73d7b9a1cdcd8f91ad6ef9dd522b6be94de22b4d
[ "Apache-2.0" ]
185
2020-08-15T15:37:42.000Z
2022-03-31T19:31:23.000Z
src/viztracer/flamegraph.py
dummyindex/viztracer
73d7b9a1cdcd8f91ad6ef9dd522b6be94de22b4d
[ "Apache-2.0" ]
100
2020-08-20T06:11:20.000Z
2022-03-29T03:29:00.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt import queue from typing import Any, Dict, List, Optional, Tuple from .functree import FuncTree, FuncTreeNode class _FlameNode: def __init__(self, par...
33.508621
92
0.538204
813e8f0a5bf45e76190b2d5bdd282810d922e899
902
py
Python
tests/programs/import_variants/some_package/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/programs/import_variants/some_package/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/programs/import_variants/some_package/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
45.1
79
0.699557
8c0192ed4db6ea4b01822326284716395822ee8d
3,502
py
Python
handler/FileHandler.py
ByungjunKim/teanaps
84eb0a1dd2c2b568105182a9bce2b0a588a97720
[ "Apache-2.0" ]
93
2019-06-01T18:14:17.000Z
2022-03-19T01:50:32.000Z
handler/FileHandler.py
ByungjunKim/teanaps
84eb0a1dd2c2b568105182a9bce2b0a588a97720
[ "Apache-2.0" ]
5
2020-10-30T15:34:55.000Z
2021-09-25T06:02:52.000Z
handler/FileHandler.py
ByungjunKim/teanaps
84eb0a1dd2c2b568105182a9bce2b0a588a97720
[ "Apache-2.0" ]
12
2019-12-19T08:09:38.000Z
2022-03-15T07:30:51.000Z
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import TextConverter from pdfminer.pdfparser import PDFParser from pdfminer.pdfdocument import PDFDocument from pdfminer.layout import LAParams from pdfminer.pdfpage import PDFPage from pdfminer.pdfinterp import resolve1 impor...
38.483516
105
0.611936
3013a5c8ea7149c89cdf4448110d5369f8d4c033
8,970
py
Python
tests/test_server.py
iluxonchik/mercedes-benz-io-challenge-2018-sinfo
92dfb8f43aed6c230688005412a3b3cef72f44cd
[ "MIT" ]
2
2018-09-12T11:52:39.000Z
2019-06-19T05:44:23.000Z
tests/test_server.py
iluxonchik/mercedes-benz-io-challenge-2018-sinfo
92dfb8f43aed6c230688005412a3b3cef72f44cd
[ "MIT" ]
null
null
null
tests/test_server.py
iluxonchik/mercedes-benz-io-challenge-2018-sinfo
92dfb8f43aed6c230688005412a3b3cef72f44cd
[ "MIT" ]
null
null
null
"""Tests for the HTTP server.""" import unittest import threading import json import urllib.request import urllib.parse from urllib.request import Request, urlopen from urllib.error import HTTPError import datetime import uuid from http.server import HTTPServer from unittest.mock import patch from mbio.server.endpoin...
33.345725
147
0.601226
eade41eaa22875b2da4c32ccb7004643694d1510
388
py
Python
python/athena/gpu_links/TanhLink.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
2
2021-05-29T11:18:14.000Z
2021-09-09T14:29:21.000Z
python/athena/gpu_links/TanhLink.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
null
null
null
python/athena/gpu_links/TanhLink.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
1
2021-05-01T16:34:37.000Z
2021-05-01T16:34:37.000Z
from __future__ import absolute_import import ctypes from .._base import _LIB from .. import ndarray as _nd def tanh(in_arr, out_arr, stream = None, profiler = None): assert isinstance(in_arr, _nd.NDArray) assert isinstance(out_arr, _nd.NDArray) _LIB.DLGpuTanh(in_arr.handle, out_arr.handle, stream.handle...
35.272727
131
0.768041
e9f87dd230c65ea553130718b384bd20c7810ccf
2,131
py
Python
Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008/Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008/Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008/Analog_Inputs_for_Raspberry_Pi_Using_the_MCP3008.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
import os import time import busio import digitalio import board import adafruit_mcp3xxx.mcp3008 as MCP from adafruit_mcp3xxx.analog_in import AnalogIn # create the spi bus spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI) # create the cs (chip select) cs = digitalio.DigitalInOut(board.D22) # create...
30.884058
76
0.678085
99c210fbbcca1a6b05754a63611ead07f3ce31f6
588
py
Python
test/unit/module/helpers/test_create_rules.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
1,134
2019-03-02T14:58:34.000Z
2021-05-15T00:57:16.000Z
test/unit/module/helpers/test_create_rules.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
1,122
2019-03-03T04:27:15.000Z
2021-05-14T20:51:16.000Z
test/unit/module/helpers/test_create_rules.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
297
2019-03-11T09:56:57.000Z
2021-05-14T16:41:19.000Z
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import os from test.testlib.testcase import BaseTestCase from cfnlint.helpers import create_rules from cfnlint.rules import CloudFormationLintRule class TestCreateRules(BaseTestCase): """Test creating rules ...
29.4
82
0.738095
0b3586803380dc9efc203451fa11315c5c7b81da
901
py
Python
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# Given that b:float = 1.09 g:int = 1 n = 6 # exactly 6 childrens p = b/100 # having of probability of success having a boy q = 1- p # having of probability of success having not a boy # print(p,q) def fact(x,memo={}): # factorial of x! = x * (x-1) * (x-2) * ..... 2 * 1 if x in memo: return memo...
22.525
61
0.532741
1e742928e8c3a41282a202a71d8bff4fc9925f40
480
py
Python
Practice(Beginner)/FLOW002.py
8Bit1Byte/Codechef-Solutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
2
2021-05-24T11:20:46.000Z
2021-06-18T12:21:43.000Z
Practice(Beginner)/FLOW002.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
Practice(Beginner)/FLOW002.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
''' Problem Name: Find Remainder Problem Code: FLOW002 Problem Type: https://www.codechef.com/problems/school Problem Link: https://www.codechef.com/problems/FLOW002 Solution Link: https://www.codechef.com/viewsolution/46835115 ''' from sys import stdin def main(t): curInx = t while curInx...
24
65
0.6375
7eb4ce2c76205834ac9d3dea4e4a9c1b89e5a0fd
15,494
py
Python
magenta/models/performance_rnn/performance_model.py
hologerry/magenta
c08c17a548f97a3f5d294a010c28ea2803718d6f
[ "Apache-2.0" ]
null
null
null
magenta/models/performance_rnn/performance_model.py
hologerry/magenta
c08c17a548f97a3f5d294a010c28ea2803718d6f
[ "Apache-2.0" ]
null
null
null
magenta/models/performance_rnn/performance_model.py
hologerry/magenta
c08c17a548f97a3f5d294a010c28ea2803718d6f
[ "Apache-2.0" ]
1
2021-09-09T15:30:36.000Z
2021-09-09T15:30:36.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 ...
45.570588
84
0.652898
5801924aaa5b9882239f0450e2a31c3a03cfcef5
3,364
py
Python
migrations/versions/0319_create_complaint_template.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
10
2020-05-04T14:11:06.000Z
2022-02-22T19:06:36.000Z
migrations/versions/0319_create_complaint_template.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
554
2020-05-07T21:56:24.000Z
2022-03-31T23:04:51.000Z
migrations/versions/0319_create_complaint_template.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
4
2020-08-27T16:43:29.000Z
2021-02-17T22:17:27.000Z
""" Revision ID: 0319_create_complaint_template Revises: 0318_remove_custom_email_from Create Date: 2021-03-11 11:15:00 """ from datetime import datetime from alembic import op from flask import current_app from app.models import EMAIL_TYPE, NORMAL revision = '0319_create_complaint_template' down_revision = '0318_...
43.688312
135
0.611177
3a69ca2db912d045933eff108a7217a5de5b7367
2,072
py
Python
tests/unit/visualization/test_dag_viewer.py
brendanhasz/drainpype
a183acec7cae1ef9fde260868e2b021516a8cd7f
[ "MIT" ]
2
2021-03-03T12:11:24.000Z
2021-03-18T15:09:52.000Z
tests/unit/visualization/test_dag_viewer.py
brendanhasz/pipedown
a183acec7cae1ef9fde260868e2b021516a8cd7f
[ "MIT" ]
null
null
null
tests/unit/visualization/test_dag_viewer.py
brendanhasz/pipedown
a183acec7cae1ef9fde260868e2b021516a8cd7f
[ "MIT" ]
null
null
null
from pipedown.dag import DAG from pipedown.nodes.base import Model, Node from pipedown.visualization.dag_viewer import get_dag_viewer_html class MyNode(Node): """This is the docstring for my node! More info here. And even more info here. Additional Features ------------------- AnotherFeatur...
19.185185
65
0.550193
91537fa443c27ef2060c00a874f8394c6837d8d6
1,578
py
Python
stock_entry/migrations/0001_initial.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
stock_entry/migrations/0001_initial.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
stock_entry/migrations/0001_initial.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-07-27 22:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('provider', '0001_initial'), migrations.swappable_dependency(set...
39.45
118
0.602662
6478aea2fd07ea20b16e716f91f9a8cd885cac4e
143,167
py
Python
src/syft/lib/torch/allowlist.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
1
2020-12-22T17:22:13.000Z
2020-12-22T17:22:13.000Z
src/syft/lib/torch/allowlist.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
null
null
null
src/syft/lib/torch/allowlist.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
null
null
null
# stdlib from typing import Dict from typing import Union # syft relative from ..misc.union import UnionGenerator allowlist: Dict[str, Union[str, Dict[str, str]]] = {} # (path: str, return_type:type) # -------------------------------------------------------------------------------------- # SECTION - Tensor methods ...
46.986216
103
0.726613
234774891575cd4943eda51bfd5b09e44c3c1773
553
py
Python
source/interprocedural_analyses/taint/test/integration/breadcrumbs.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-05-17T23:13:52.000Z
2021-05-17T23:13:52.000Z
source/interprocedural_analyses/taint/test/integration/breadcrumbs.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-08-16T12:11:37.000Z
2021-08-16T12:11:37.000Z
source/interprocedural_analyses/taint/test/integration/breadcrumbs.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from builtins import __test_sink, __test_source def int_source() -> int: return __test_source() def float_source() -> float: retur...
17.83871
65
0.708861
2c6404bc2552a750eb092819d832d9181d04bbb6
645
py
Python
firmware/hook_generic_deploy_keys_readable.py
prothen/teensy_middleware
984ed0a9845a374c3ae51fe5f51509053bda0243
[ "MIT" ]
1
2021-05-04T12:06:04.000Z
2021-05-04T12:06:04.000Z
firmware/hook_generic_deploy_keys_readable.py
prothen/teensy_middleware
984ed0a9845a374c3ae51fe5f51509053bda0243
[ "MIT" ]
1
2021-05-06T07:17:18.000Z
2021-05-06T07:17:18.000Z
firmware/hook_generic_deploy_keys_readable.py
prothen/teensy_middleware
984ed0a9845a374c3ae51fe5f51509053bda0243
[ "MIT" ]
1
2021-05-04T12:06:29.000Z
2021-05-04T12:06:29.000Z
#!/usr/bin/env python # # # Author: Philipp Rothenhaeusler # Smart Mobility Lab, KTH # Stockholm 2020 # import os import sys import time import subprocess # Redirect output to log file since stdoutput is procssed by platformio build system sys.stdout = open("./log/generic_deploy_key_setup.log", ...
26.875
118
0.691473
6ee41516d6431041a322f6c690fb8ba1cd36a104
17,798
py
Python
mmhuman3d/data/data_converters/humman.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/data/data_converters/humman.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/data/data_converters/humman.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
import glob import os import numpy as np import torch from tqdm import tqdm from mmhuman3d.core.cameras import build_cameras from mmhuman3d.core.conventions.keypoints_mapping import ( convert_kps, get_keypoint_idx, get_keypoint_num, ) from mmhuman3d.data.data_structures import SMCReader from mmhuman3d.dat...
41.487179
79
0.584616
2f497b696b9ccdfa5ad15c1d8f2516f140b4332b
5,124
py
Python
video_annotator/utils.py
theopsall/video_annotator
cfd33d9a0a6efa332c5bf5fe078936d5fea17d9b
[ "MIT" ]
3
2020-10-29T11:20:07.000Z
2021-01-08T14:45:31.000Z
video_annotator/utils.py
theopsall/video_annotator
cfd33d9a0a6efa332c5bf5fe078936d5fea17d9b
[ "MIT" ]
4
2020-10-29T14:04:59.000Z
2020-11-01T19:57:26.000Z
video_annotator/utils.py
theopsall/video_annotator
cfd33d9a0a6efa332c5bf5fe078936d5fea17d9b
[ "MIT" ]
1
2021-02-08T19:49:31.000Z
2021-02-08T19:49:31.000Z
""" Helper functions """ import os import pandas as pd import random from video_annotator.config import VIDEOS, ANNOTATED, USERS def get_users() -> list: """ Get Users from user file Returns: list: List of registered users """ with open(USERS, 'r') as f: users = [...
25.62
107
0.600507
a8ebf5a00134fba6abb722a5320966bc6398d635
4,690
py
Python
python_scripts/old_unsorted/original_pipeline/createDatabase.py
jfnavarro/st_misc
bb8c1f2c4f05343f6dd5cc8b8cd8f405d825bd31
[ "MIT" ]
null
null
null
python_scripts/old_unsorted/original_pipeline/createDatabase.py
jfnavarro/st_misc
bb8c1f2c4f05343f6dd5cc8b8cd8f405d825bd31
[ "MIT" ]
null
null
null
python_scripts/old_unsorted/original_pipeline/createDatabase.py
jfnavarro/st_misc
bb8c1f2c4f05343f6dd5cc8b8cd8f405d825bd31
[ "MIT" ]
null
null
null
#! /usr/bin/env python # @Created by Jose Fernandez """ Complete definition here """ import sys import os import json def usage(): print "Usage:" print "createDatabase.py read_with_barcodes lane expName" print "This scripts generates json files containing the reads and the transcripts that mapped to barcod...
36.640625
117
0.559488
73f52c12b9ecfd36af75d61d327f251f50753f01
18,636
py
Python
pymcfost/parameters.py
j-f-gonzalez/pymcfost
6ffbe0b7f7fc1d874875c86aa65b89ebd129f33f
[ "MIT" ]
1
2021-03-16T23:53:41.000Z
2021-03-16T23:53:41.000Z
pymcfost/parameters.py
smaret/pymcfost
a1f49f6da6ad4aebbaa01fd357f8106a32360d11
[ "MIT" ]
null
null
null
pymcfost/parameters.py
smaret/pymcfost
a1f49f6da6ad4aebbaa01fd357f8106a32360d11
[ "MIT" ]
null
null
null
import glob import numpy as np def _word_to_bool(word): """convert a string to boolean according the first 2 characters.""" _accepted_bool_prefixes = ("T", ".T") return word.upper().startswith(_accepted_bool_prefixes) class Photons: pass class Wavelengths: pass class Physics: pass class ...
38.345679
343
0.544698
097f3c2ed1050e52ea9a1554541b4dc064bf9fcf
18,753
py
Python
pipedream/datasources/maps_labelnoise.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
pipedream/datasources/maps_labelnoise.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
pipedream/datasources/maps_labelnoise.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
from .. import utils import madmom.audio.spectrogram as mmspec from madmom.utils import midi from itertools import cycle from scipy.signal import convolve import numpy as np import os from functools import partial synthnames = [ 'ENSTDkCl', 'ENSTDkAm', 'StbgTGd2', 'SptkBGCl', 'SptkBGAm', 'AkPn...
34.727778
183
0.62774
4012af62093e6076315429211125f0c71fa924b9
2,943
py
Python
polypheny/errors.py
polypheny/Polypheny-Connector-Python
7425eb01d76209783898a01b7a75e3923e911e67
[ "Apache-2.0" ]
3
2021-10-31T17:34:47.000Z
2021-11-01T13:31:11.000Z
polypheny/errors.py
polypheny/Polypheny-Connector-Python
7425eb01d76209783898a01b7a75e3923e911e67
[ "Apache-2.0" ]
null
null
null
polypheny/errors.py
polypheny/Polypheny-Connector-Python
7425eb01d76209783898a01b7a75e3923e911e67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019-2021 The Polypheny Project # # 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 #...
30.65625
107
0.717975
d26d17dd4266bf3b468cc3c7e1e6e100914b0a3c
2,344
py
Python
utils-test-app/utils_test_app/tests/test_helpers.py
buahaha/allianceauth-app-utils
7e0b319c0ac9ff3f4a05635a1dcb017d4e09c8a6
[ "MIT" ]
null
null
null
utils-test-app/utils_test_app/tests/test_helpers.py
buahaha/allianceauth-app-utils
7e0b319c0ac9ff3f4a05635a1dcb017d4e09c8a6
[ "MIT" ]
null
null
null
utils-test-app/utils_test_app/tests/test_helpers.py
buahaha/allianceauth-app-utils
7e0b319c0ac9ff3f4a05635a1dcb017d4e09c8a6
[ "MIT" ]
null
null
null
from time import time from unittest.mock import patch from django.core.cache import cache from django.test import TestCase from app_utils.helpers import humanize_number, throttle class TestFormatisk(TestCase): def test_should_return_formatted_string_from_number_1(self): # when result = humanize_...
28.938272
64
0.650171
ab6b24149c4446b8b6d0ac546775798925ed75ee
415
py
Python
panoptes_aggregation/tests/reducer_tests/test_sw_variant_reducer.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/tests/reducer_tests/test_sw_variant_reducer.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/tests/reducer_tests/test_sw_variant_reducer.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
from panoptes_aggregation import reducers from .base_test_class import ReducerTestNoProcessing extracted_data = [ {'variants': ['a', 'b']}, {}, {'variants': ['c']} ] reduced_data = { 'variants': [ 'a', 'b', 'c' ] } TestSWVariantsReducer = ReducerTestNoProcessing( reduc...
17.291667
52
0.624096
a5e82d5cf02e2e05ce4c5873f8ee20b112e1f5e1
406
py
Python
energylenserver/fields.py
manaswis/energylensplus
dee76dfd4a9948b906acd3e77cf28900744ef19a
[ "Apache-2.0" ]
null
null
null
energylenserver/fields.py
manaswis/energylensplus
dee76dfd4a9948b906acd3e77cf28900744ef19a
[ "Apache-2.0" ]
null
null
null
energylenserver/fields.py
manaswis/energylensplus
dee76dfd4a9948b906acd3e77cf28900744ef19a
[ "Apache-2.0" ]
null
null
null
from django.db.models import fields # from south.modelsinspector import add_introspection_rules class BigAutoField(fields.AutoField): def db_type(self, connection): if 'mysql' in connection.__class__.__module__: return 'bigint AUTO_INCREMENT' return super(BigAutoField, self).db_type(c...
31.230769
73
0.746305
5c35e6274a01773c6409b6bfd6b6db2197a10a8e
1,441
py
Python
caffe2/python/helpers/control_ops.py
kickers18/caffe2
f69232c9237174f8e272c0fc59d3e28af52842f2
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/python/helpers/control_ops.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
27
2018-04-14T06:44:22.000Z
2018-08-01T18:02:39.000Z
caffe2/python/helpers/control_ops.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
32.75
78
0.693963
30e95d5fb76732d8283d34db12bb9b2ccb33ef11
5,664
py
Python
qa/rpc-tests/bind_test.py
zahidaliayub/straks
c55ada5e0f3749c4f7f710e55aade2a442effd6a
[ "MIT" ]
67
2017-11-21T01:32:30.000Z
2022-03-17T10:17:53.000Z
qa/rpc-tests/bind_test.py
zahidaliayub/straks
c55ada5e0f3749c4f7f710e55aade2a442effd6a
[ "MIT" ]
22
2017-11-21T15:43:59.000Z
2019-06-19T12:40:30.000Z
qa/rpc-tests/bind_test.py
zahidaliayub/straks
c55ada5e0f3749c4f7f710e55aade2a442effd6a
[ "MIT" ]
52
2017-11-21T06:05:34.000Z
2022-03-17T10:18:47.000Z
#!/usr/bin/env python # Copyright (c) 2014 The Straks Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test for -rpcbind, as well as -rpcallowip and -rpcconnect # Add python-straksrpc to module search path: i...
37.019608
110
0.644244
cdd4509c219207bcaa7a94f6c333f636e8e7e9e5
38,568
py
Python
client/batteryclient/api/users_api.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
2
2021-11-11T11:03:22.000Z
2022-01-25T19:29:52.000Z
client/batteryclient/api/users_api.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
null
null
null
client/batteryclient/api/users_api.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
null
null
null
""" Battery Data API A standard API for accessing battery experiment datasets and metadata # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: martin.robinson@cs.ox.ac.uk Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from battery...
35.481141
183
0.450347
534e2edfa2ca593d0dc6aa4e539a4ebf229936b5
4,633
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/operations/_service_tags_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/operations/_service_tags_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/operations/_service_tags_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.980583
139
0.680553
e51ef8faee980bcce4816a4cb223fef5db9102bb
8,652
py
Python
main_app/models.py
AlexGeniusMan/ARTWAY-PROJECT
0430cf2359e3b78ef4eb25466e5871ab2ff2bfcd
[ "Apache-2.0" ]
1
2020-12-12T13:07:34.000Z
2020-12-12T13:07:34.000Z
main_app/models.py
AlexGeniusMan/ARTWAY-PROJECT
0430cf2359e3b78ef4eb25466e5871ab2ff2bfcd
[ "Apache-2.0" ]
null
null
null
main_app/models.py
AlexGeniusMan/ARTWAY-PROJECT
0430cf2359e3b78ef4eb25466e5871ab2ff2bfcd
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.utils import timezone from django.utils.translation import gettext_lazy as _ from django.db import models import qrcode # from io import BytesIO # from django.core.files import File from PIL import Image class Ticket(models.Model): token = models.Cha...
38.453333
102
0.606334
f909fbd3181609db35efaa7231c2d220af282e14
393
py
Python
profiles/asgi.py
Arun1508/profiel-reat-api-learn
cf5bb772cc2aa27cc52874f3199cf7cc6a6cbacc
[ "MIT" ]
null
null
null
profiles/asgi.py
Arun1508/profiel-reat-api-learn
cf5bb772cc2aa27cc52874f3199cf7cc6a6cbacc
[ "MIT" ]
null
null
null
profiles/asgi.py
Arun1508/profiel-reat-api-learn
cf5bb772cc2aa27cc52874f3199cf7cc6a6cbacc
[ "MIT" ]
null
null
null
""" ASGI config for profiles project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
1486894440727a9f1d7479ecb3a8072860770fae
839
py
Python
labscript_c_extensions/runviewer/__init__.py
rpanderson/labscript-c-extensions
55be41e177f8527c4157e00f9052ee55f7fa20e7
[ "BSD-2-Clause" ]
null
null
null
labscript_c_extensions/runviewer/__init__.py
rpanderson/labscript-c-extensions
55be41e177f8527c4157e00f9052ee55f7fa20e7
[ "BSD-2-Clause" ]
2
2020-06-01T08:59:24.000Z
2021-11-19T11:55:20.000Z
labscript_c_extensions/runviewer/__init__.py
rpanderson/labscript-c-extensions
55be41e177f8527c4157e00f9052ee55f7fa20e7
[ "BSD-2-Clause" ]
3
2020-06-01T08:23:04.000Z
2021-06-17T16:56:47.000Z
##################################################################### # # # /runviewer/__init__.py # # # # Copyright 2013, Monash University ...
69.916667
69
0.281287
fd7d0aa3e4cc81a6ae1ee8e13ec28da6d77dc1ea
174
py
Python
integration/setup.py
ashishknitcs/jiva
8ac5ebe5ba6194b5d823d3626a49805c325ee77e
[ "Apache-2.0" ]
21
2017-01-06T13:57:48.000Z
2019-07-08T18:23:45.000Z
integration/setup.py
ashishknitcs/jiva
8ac5ebe5ba6194b5d823d3626a49805c325ee77e
[ "Apache-2.0" ]
30
2016-11-15T15:51:42.000Z
2020-06-09T06:04:22.000Z
integration/setup.py
ashishknitcs/jiva
8ac5ebe5ba6194b5d823d3626a49805c325ee77e
[ "Apache-2.0" ]
22
2016-11-14T09:29:04.000Z
2018-10-29T17:55:54.000Z
from distutils.core import setup setup( name='Longhorn Integration Tests', version='0.1', packages=[ 'core', 'data', ], license='ASL 2.0', )
14.5
38
0.563218
e133b337357cd432456bf3f49a3debd966b67179
1,407
py
Python
MangAdventure/middleware.py
a-mere-peasant/MangAdventure
afbcdb5ab68bfc801550c8383568f7265e70b5ab
[ "MIT" ]
null
null
null
MangAdventure/middleware.py
a-mere-peasant/MangAdventure
afbcdb5ab68bfc801550c8383568f7265e70b5ab
[ "MIT" ]
null
null
null
MangAdventure/middleware.py
a-mere-peasant/MangAdventure
afbcdb5ab68bfc801550c8383568f7265e70b5ab
[ "MIT" ]
null
null
null
from re import MULTILINE, findall, search class XPBMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) response.setdefault('X-Powered-By', 'MangAdventure') return response class Pre...
29.3125
65
0.558635
911e2382deba2517a5121cf7bd5a2772e252ba3d
5,637
py
Python
merkle.py
mellowcroc/merkle-tree
386d265a8fb7ef10f69722826297968493a76810
[ "MIT" ]
null
null
null
merkle.py
mellowcroc/merkle-tree
386d265a8fb7ef10f69722826297968493a76810
[ "MIT" ]
null
null
null
merkle.py
mellowcroc/merkle-tree
386d265a8fb7ef10f69722826297968493a76810
[ "MIT" ]
null
null
null
import sys import hashlib import math import numpy as np if sys.version_info < (3, 6): import sha3 class Node: def __init__(self, value, left_child=None, right_child=None): self.value = value self.left_child = left_child self.right_child = right_child self.parent = None def...
35.012422
102
0.599078
aab3c9d65b213353870d44b1612631945c28150f
1,033
py
Python
utils/cluster_validity_index.py
ClayLiu/Soft-ClusteringAlgorithms
38dc8c2ac610f996c79760de00631840c784029c
[ "MIT" ]
null
null
null
utils/cluster_validity_index.py
ClayLiu/Soft-ClusteringAlgorithms
38dc8c2ac610f996c79760de00631840c784029c
[ "MIT" ]
null
null
null
utils/cluster_validity_index.py
ClayLiu/Soft-ClusteringAlgorithms
38dc8c2ac610f996c79760de00631840c784029c
[ "MIT" ]
1
2020-08-10T15:48:46.000Z
2020-08-10T15:48:46.000Z
import numpy as np import pandas as pd from sklearn import metrics def get_cluster(U : np.ndarray) -> np.ndarray: return np.argmax(U, axis = 0) def NMI(y : np.ndarray, label : np.ndarray): return metrics.normalized_mutual_info_score(label, y) def AMI(y : np.ndarray, label : np.ndarray): retur...
27.184211
71
0.622459
c8388a6e9771b9578ffc64e005772954331f8a9d
675
py
Python
misc/rit.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
15
2015-09-24T03:57:49.000Z
2020-08-25T22:44:20.000Z
misc/rit.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
2
2015-06-21T02:06:20.000Z
2019-11-14T14:02:39.000Z
misc/rit.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
1
2019-09-11T03:13:52.000Z
2019-09-11T03:13:52.000Z
# Tickle old reverse iteration bug import acid.keylib import acid.engines import acid._iterators le = acid.engines.ListEngine() le.put(acid.keylib.packs(('a', 'b'), 'z'), 'b') le.put(acid.keylib.packs(('b', 'c'), 'z'), 'b') it = acid._iterators.BasicIterator(le, 'z') print print 'it.keys:', it.keys print 'it.data:...
16.463415
47
0.659259
5862b95a4944f7d17c2030d945355191a2122715
1,156
py
Python
knodle_experiments/old/majority_bert.py
knodle/knodle-experiments
0a635f3a181432901509b59511ef9d8f8ffb3187
[ "Apache-2.0" ]
null
null
null
knodle_experiments/old/majority_bert.py
knodle/knodle-experiments
0a635f3a181432901509b59511ef9d8f8ffb3187
[ "Apache-2.0" ]
1
2021-05-18T08:56:39.000Z
2021-05-18T08:56:39.000Z
knodle_experiments/old/majority_bert.py
knodle/knodle-experiments
0a635f3a181432901509b59511ef9d8f8ffb3187
[ "Apache-2.0" ]
null
null
null
from typing import Dict from transformers import AutoModelForSequenceClassification, AdamW from knodle.trainer.baseline.majority_config import MajorityConfig from knodle.trainer.baseline.bert import MajorityBertTrainer def get_majority_bert_trainer( train_x, train_rule_matches_z, mapping_rules_labels_t, con...
35.030303
95
0.747405
1fd8a9dec63a664d74f0c12f128c70eba5754ea9
8,036
py
Python
python/kfserving/test/test_storage.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
null
null
null
python/kfserving/test/test_storage.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
null
null
null
python/kfserving/test/test_storage.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 kubeflow.org. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.791878
120
0.715032
30e7065ceb31a72c640c01ec467538659a249a7c
752
py
Python
setup.py
acoomans/prvsn
af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e
[ "BSD-2-Clause" ]
null
null
null
setup.py
acoomans/prvsn
af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e
[ "BSD-2-Clause" ]
null
null
null
setup.py
acoomans/prvsn
af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as f: long_description = f.read() with open(path.join(here, 'requirements.txt')) as f: requirements = f.read() setup( name='prvsn', version=0.3, aut...
25.066667
65
0.672872
c0048de3b7fdd69ad0be2fe15ce77a7051be9bb1
7,723
py
Python
06rnn_attention/03_decode_attention.py
sotuken2021/s
2b37fdcaa60c1f5ac492edddd4a0960882fbc0aa
[ "MIT" ]
41
2021-05-19T15:04:19.000Z
2022-02-11T15:24:58.000Z
06rnn_attention/03_decode_attention.py
sotuken2021/s
2b37fdcaa60c1f5ac492edddd4a0960882fbc0aa
[ "MIT" ]
1
2021-07-19T08:59:36.000Z
2021-07-25T07:54:29.000Z
06rnn_attention/03_decode_attention.py
sotuken2021/s
2b37fdcaa60c1f5ac492edddd4a0960882fbc0aa
[ "MIT" ]
14
2021-05-21T05:47:22.000Z
2022-03-31T09:11:32.000Z
# -*- coding: utf-8 -*- # # RNN Attention Encoder-Decoderによるデコーディングを行います # # Pytorchを用いた処理に必要なモジュールをインポート import torch from torch.utils.data import DataLoader # 作成したDatasetクラスをインポート from my_dataset import SequenceDataset # 数値演算用モジュール(numpy)をインポート import numpy as np # モデルの定義をインポート from my_model import MyE2EModel #...
28.603704
66
0.569856
5011a801b3cd48e0015b064b7ee87928e42ee720
3,636
py
Python
pkgs/ops-pkg/src/genie/libs/ops/static_routing/nxos/static_routing.py
kecorbin/genielibs
5d3951b8911013691822e73e9c3d0f557ca10f43
[ "Apache-2.0" ]
null
null
null
pkgs/ops-pkg/src/genie/libs/ops/static_routing/nxos/static_routing.py
kecorbin/genielibs
5d3951b8911013691822e73e9c3d0f557ca10f43
[ "Apache-2.0" ]
null
null
null
pkgs/ops-pkg/src/genie/libs/ops/static_routing/nxos/static_routing.py
kecorbin/genielibs
5d3951b8911013691822e73e9c3d0f557ca10f43
[ "Apache-2.0" ]
null
null
null
# Genie package from genie.ops.base import Base # genie.libs from genie.libs.parser.nxos.show_static_routing import ShowIpStaticRoute,\ ShowIpv6StaticRoute class StaticRoute(Base): '''StaticRouting Ops Object''' def learn(self): '''Learn StaticRouting obje...
37.484536
106
0.476623
a6da670965ba2390ccafaf9a6b8e637981c477b7
5,199
py
Python
Cogs/Translate.py
MrAngelDo6pa/MedBotS
89e19d831507e20d0898114502967b2ad8ecf957
[ "MIT" ]
1
2021-04-10T19:03:02.000Z
2021-04-10T19:03:02.000Z
Cogs/Translate.py
flagersgit/CorpBot.py
33444a8b1a699a0185e6ac7ab235929e6fdb2413
[ "MIT" ]
null
null
null
Cogs/Translate.py
flagersgit/CorpBot.py
33444a8b1a699a0185e6ac7ab235929e6fdb2413
[ "MIT" ]
null
null
null
import functools, asyncio, discord, json, os, string, googletrans from Cogs import Nullify, DisplayName, Message from discord.ext import commands def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(Translate(bot, settings)) # Requires the mtranslate module be installed c...
43.689076
187
0.616657
d776be97dd53db0eb83441d49c0b7fe1d3177c97
1,395
py
Python
genre/toolbox/cam_bp/cam_bp/functions/get_surface_mask.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
genre/toolbox/cam_bp/cam_bp/functions/get_surface_mask.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
genre/toolbox/cam_bp/cam_bp/functions/get_surface_mask.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
import torch import numpy as np from .._ext import cam_bp_lib from cffi import FFI ffi = FFI() def get_vox_surface_cnt(depth_t, fl, cam_dist, res=128): assert depth_t.dim() == 4 assert fl.dim() == 2 and fl.size(1) == depth_t.size(1) assert cam_dist.dim() == 2 and cam_dist.size(1) == depth_t.size(1) as...
34.02439
71
0.643011
fe94eb8808e4fe3ce20d216607ced6a35f46ccea
16,192
py
Python
eval.py
waiting-gy/Caltech_Pedestrian
bd57a85a5fd4965616fe52f20a990abe8e28dda8
[ "MIT" ]
null
null
null
eval.py
waiting-gy/Caltech_Pedestrian
bd57a85a5fd4965616fe52f20a990abe8e28dda8
[ "MIT" ]
null
null
null
eval.py
waiting-gy/Caltech_Pedestrian
bd57a85a5fd4965616fe52f20a990abe8e28dda8
[ "MIT" ]
null
null
null
"""Adapted from: @longcw faster_rcnn_pytorch: https://github.com/longcw/faster_rcnn_pytorch @rbgirshick py-faster-rcnn https://github.com/rbgirshick/py-faster-rcnn Licensed under The MIT License [see LICENSE for details] """ from __future__ import print_function import torch import torch.nn as nn import to...
36.304933
80
0.561141
ca39e8154b73f2617241da15eaa9766c2304b075
689
py
Python
problems/leetcode/product-of-array-except-self.py
AravindVasudev/datastructures-and-algorithms
d2a45ddff1d13a599e889e02ae00e9c197bf8b0f
[ "MIT" ]
1
2022-01-08T11:01:45.000Z
2022-01-08T11:01:45.000Z
problems/leetcode/product-of-array-except-self.py
AravindVasudev/datastructures-and-algorithms
d2a45ddff1d13a599e889e02ae00e9c197bf8b0f
[ "MIT" ]
null
null
null
problems/leetcode/product-of-array-except-self.py
AravindVasudev/datastructures-and-algorithms
d2a45ddff1d13a599e889e02ae00e9c197bf8b0f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/product-of-array-except-self/ class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: N = len(nums) leftProducts = [1] * N rightProducts = [1] * N result = [1] * N # Add all left products for i in range(1, N)...
31.318182
65
0.512337
014b235ed621e0464d56a6fe5643129a737c2251
1,499
py
Python
download_models.py
SumanthRH/Learning-to-See-Moving-Objects-in-the-Dark
14eeac3b0d8fee70c52d2f77fc8e3864321833be
[ "MIT" ]
119
2019-10-31T18:52:21.000Z
2022-03-31T06:11:17.000Z
download_models.py
SumanthRH/Learning-to-See-Moving-Objects-in-the-Dark
14eeac3b0d8fee70c52d2f77fc8e3864321833be
[ "MIT" ]
14
2019-11-19T13:44:33.000Z
2022-02-10T00:34:40.000Z
download_models.py
SumanthRH/Learning-to-See-Moving-Objects-in-the-Dark
14eeac3b0d8fee70c52d2f77fc8e3864321833be
[ "MIT" ]
18
2019-11-01T03:02:47.000Z
2021-03-04T08:08:54.000Z
import os import requests from config import CHECKPOINT_DIR def download_file_from_google_drive(id, destination): URL = "https://docs.google.com/uc?export=download" session = requests.Session() response = session.get(URL, params = { 'id' : id }, stream = True) token = get_confirm_token(response) ...
34.068182
120
0.724483
940c4c93831f568d3dcd33c4a77b04636b19ffc3
43,534
py
Python
sklearn/model_selection/_search_successive_halving.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
2
2022-03-16T17:33:38.000Z
2022-03-17T11:50:21.000Z
sklearn/model_selection/_search_successive_halving.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
10
2022-02-21T20:10:33.000Z
2022-03-26T16:31:33.000Z
sklearn/model_selection/_search_successive_halving.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
1
2020-02-16T05:40:12.000Z
2020-02-16T05:40:12.000Z
from copy import deepcopy from math import ceil, floor, log from abc import abstractmethod from numbers import Integral import numpy as np from ._search import BaseSearchCV from . import ParameterGrid, ParameterSampler from ..base import is_classifier from ._split import check_cv, _yields_constant_splits from ..utils ...
40.647993
85
0.641613
c02d872dac18c18b8a20a91412210a3e331da57d
8,458
py
Python
source/setup.py
siddhartha-iitd/NVDA-Enhancements
fb00b52f7d3c81210dad81b584fd0170c0b47215
[ "bzip2-1.0.6" ]
null
null
null
source/setup.py
siddhartha-iitd/NVDA-Enhancements
fb00b52f7d3c81210dad81b584fd0170c0b47215
[ "bzip2-1.0.6" ]
null
null
null
source/setup.py
siddhartha-iitd/NVDA-Enhancements
fb00b52f7d3c81210dad81b584fd0170c0b47215
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: UTF-8 -*- #setup.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2015 NV Access Limited, Peter Vágner, Joseph Lee #This file is covered by the GNU General Public License. #See the file COPYING for more details. import os import copy import gettext gettext.install("nvda", unico...
37.758929
231
0.693899
c7aff376da7002219a6bfddf66f6190d33fceddc
20,605
py
Python
tea/evaluate.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
tea/evaluate.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
tea/evaluate.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
from tea.ast import ( Node, Variable, Literal, Equal, NotEqual, LessThan, LessThanEqual, GreaterThan, GreaterThanEqual, Relate, PositiveRelationship ) from tea.runtimeDataStructures.dataset import Dataset from tea.runtimeDat...
46.407658
127
0.604805
25d7abd8960710bafe0fec865f438692f960a936
3,256
py
Python
tests/integration/test_disco_dynamodb.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
27
2016-03-08T16:50:22.000Z
2018-11-26T06:33:25.000Z
tests/integration/test_disco_dynamodb.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
202
2016-03-08T17:13:08.000Z
2019-02-01T00:49:06.000Z
tests/integration/test_disco_dynamodb.py
amplify-education/asiaq
fb6004bc4da0acef40e7bc18b148db4f72fa2f32
[ "BSD-2-Clause" ]
2
2016-03-17T18:52:37.000Z
2016-10-06T20:36:37.000Z
""" Integration tests for disco_dynamodb.py """ import json from random import randint from tests.helpers.integration_helpers import IntegrationTest MOCK_TABLE_NAME = "IntegrationTest" CREATE_CMD = "disco_dynamodb.py create --env {0} --config test/test_dynamodb_create.json --wait" DELETE_CMD = "disco_dynamodb.py del...
39.707317
106
0.630835
0123e48a516345d0a8f6c14c8ca2fbc406e47dab
1,326
py
Python
src/appfl/algorithm/server_fed_avgmom.py
APPFL/APPFL
96a1da6d7aeb64a8a78bfcc7dc60fa37273dfdb5
[ "MIT" ]
9
2022-01-23T03:12:01.000Z
2022-03-28T14:03:44.000Z
src/appfl/algorithm/server_fed_avgmom.py
APPFL/APPFL
96a1da6d7aeb64a8a78bfcc7dc60fa37273dfdb5
[ "MIT" ]
40
2021-12-18T05:46:30.000Z
2022-03-31T21:40:01.000Z
src/appfl/algorithm/server_fed_avgmom.py
APPFL/APPFL
96a1da6d7aeb64a8a78bfcc7dc60fa37273dfdb5
[ "MIT" ]
null
null
null
from .server_federated import FedServer class ServerFedAvgMomentum(FedServer): def compute_step(self): super(ServerFedAvgMomentum, self).compute_pseudo_gradient() super(ServerFedAvgMomentum, self).update_m_vector() for name, _ in self.model.named_parameters(): self.step[name] =...
36.833333
84
0.537707
99b92116db55b6ba1af753ae8228be829129c2c1
1,757
py
Python
devops-console/apps/requirements/models.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
4
2019-12-06T06:19:33.000Z
2021-12-23T13:05:06.000Z
devops-console/apps/requirements/models.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
8
2020-03-15T03:40:38.000Z
2022-03-12T00:50:27.000Z
devops-console/apps/requirements/models.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from common.mixin import BaseModelMixin from teams.models import Team from users.models import User class Requirement(BaseModelMixin): """ 业务需求 """ STATUS_INIT = "0" STATUS_DOING = "1" STATUS_FIXED = "2" ...
40.860465
109
0.674445
1a47accc9daf71210b4a8e926cfe0352242e631a
1,186
py
Python
pystein/tests/test_geodesic.py
JWKennington/pynstein
5333a4f90991a0e69be13c68fbe67f172aeb9d85
[ "MIT" ]
null
null
null
pystein/tests/test_geodesic.py
JWKennington/pynstein
5333a4f90991a0e69be13c68fbe67f172aeb9d85
[ "MIT" ]
3
2020-10-26T22:36:00.000Z
2020-12-04T03:55:11.000Z
pystein/tests/test_geodesic.py
JWKennington/pystein
5333a4f90991a0e69be13c68fbe67f172aeb9d85
[ "MIT" ]
null
null
null
import numpy import sympy from sympy.diffgeom import Manifold, Patch from pystein import geodesic, metric, coords from pystein.utilities import tensor_pow as tpow class TestGeodesic: def test_numerical(self): M = Manifold('M', dim=2) P = Patch('origin', M) rho, phi, a = sympy.symbols('rho phi a', nonnegativ...
26.355556
82
0.643339
2b689ccfa7380be75641e1f8d82e88e6a5914155
46,722
py
Python
otp/avatar/LocalAvatar.py
Max-Rodriguez/toontown-online
cdb5d11fc9a7bae6171d4f3f52b5550fac7bc106
[ "BSD-3-Clause" ]
1
2022-03-25T18:20:49.000Z
2022-03-25T18:20:49.000Z
otp/avatar/LocalAvatar.py
Max-Rodriguez/toontown-online
cdb5d11fc9a7bae6171d4f3f52b5550fac7bc106
[ "BSD-3-Clause" ]
null
null
null
otp/avatar/LocalAvatar.py
Max-Rodriguez/toontown-online
cdb5d11fc9a7bae6171d4f3f52b5550fac7bc106
[ "BSD-3-Clause" ]
null
null
null
from panda3d.core import * from panda3d.otp import Nametag, WhisperPopup from direct.gui.DirectGui import * from direct.showbase.PythonUtil import * from direct.interval.IntervalGlobal import * from direct.showbase.InputStateGlobal import inputState from direct.controls import ControlManager from . import DistributedAv...
38.454321
217
0.633106
4a7de1e6d7e232147c1636b5cd11679df2e4ddb2
6,093
py
Python
models/BertAugmentedTransformer.py
ahmad0790/spotify-sequential-track-sequence-prediction
fa117000e66d72367592ddeba594e0f3a819c109
[ "Apache-2.0" ]
2
2021-03-18T04:47:11.000Z
2021-09-26T18:25:46.000Z
models/BertAugmentedTransformer.py
ahmad0790/spotify-sequential-track-sequence-prediction
fa117000e66d72367592ddeba594e0f3a819c109
[ "Apache-2.0" ]
null
null
null
models/BertAugmentedTransformer.py
ahmad0790/spotify-sequential-track-sequence-prediction
fa117000e66d72367592ddeba594e0f3a819c109
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import math import torch from einops import rearrange from torch import nn from models.CustomizedTransformer import Transformer, TransformerEncoder, TransformerEncoderLayer, TransformerDecoder, TransformerDecoderLayer from torch.nn import functional as F class BertAugmentedTransformer...
42.02069
170
0.754636
c0c1aa11a284ecb2f2d7c95c3bc2d7d133a1d28f
12,423
py
Python
scipy/linalg/_expm_frechet.py
jake-is-ESD-protected/scipy
d7283ff75c218c300f372b5fdd960b987c1709a1
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
scipy/linalg/_expm_frechet.py
jake-is-ESD-protected/scipy
d7283ff75c218c300f372b5fdd960b987c1709a1
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
scipy/linalg/_expm_frechet.py
jake-is-ESD-protected/scipy
d7283ff75c218c300f372b5fdd960b987c1709a1
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
"""Frechet derivative of the matrix exponential.""" import numpy as np import scipy.linalg __all__ = ['expm_frechet', 'expm_cond'] def expm_frechet(A, E, method=None, compute_expm=True, check_finite=True): """ Frechet derivative of the matrix exponential of A in the direction E. Parameters ---------...
30.226277
79
0.55848
6006fd7f941907c972aac7bc95997ac01d1937fa
4,265
py
Python
blis/monte_carlo_inputs.py
EnergyModels/BLIS
514577a99a16804894019b4ee53d48eda0c6c313
[ "Unlicense" ]
null
null
null
blis/monte_carlo_inputs.py
EnergyModels/BLIS
514577a99a16804894019b4ee53d48eda0c6c313
[ "Unlicense" ]
null
null
null
blis/monte_carlo_inputs.py
EnergyModels/BLIS
514577a99a16804894019b4ee53d48eda0c6c313
[ "Unlicense" ]
null
null
null
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# """ BLIS - Balancing Load of Intermittent Solar: A characteristic-based transient power plant model Copyright (C) 2020. University of Virginia Licensing & Ventures Group (UVA LVG). All Rights Reserved. Permission is hereby granted, free ...
44.894737
117
0.606331
8544c315a9ff275a7657df603980742f34bbe8cf
6,225
py
Python
isi_sdk/models/results_id_top_files_file.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/results_id_top_files_file.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/results_id_top_files_file.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
25.9375
77
0.564819
2d119e2cf8601a889785f2f58ceff68ec4de5755
4,423
py
Python
homeassistant/components/concord232/binary_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/concord232/binary_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/concord232/binary_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for exposing Concord232 elements as sensors.""" import datetime import logging from concord232 import client as concord232_client import requests import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASSES, PLATFORM_SCHEMA, BinarySensorDevice, ) from homeassista...
30.93007
84
0.645037
05bfcd7ebded41c4802361241a8bd25a2c76f5e3
1,086
py
Python
tests/test_doe.py
eTuDpy/phuzzy
77b3f30a199907d2f97511179cdce21a45bf3068
[ "MIT" ]
2
2018-04-12T22:46:16.000Z
2018-09-05T08:01:20.000Z
tests/test_doe.py
eTuDpy/phuzzy
77b3f30a199907d2f97511179cdce21a45bf3068
[ "MIT" ]
92
2018-04-13T09:39:40.000Z
2020-12-07T17:22:06.000Z
tests/test_doe.py
eTuDpy/phuzzy
77b3f30a199907d2f97511179cdce21a45bf3068
[ "MIT" ]
3
2018-04-14T22:02:09.000Z
2020-11-28T19:45:15.000Z
# -*- coding: utf-8 -*- import phuzzy import phuzzy.approx.doe def test_doe_meshgrid(): x = phuzzy.TruncNorm(alpha0=[1, 2], name="x") y = phuzzy.Triangle(alpha0=[3, 6], alpha1=[4], name="y") doe = phuzzy.approx.doe.DOE(designvars = [x,y], name="xy") doe.sample_doe(n=10, method="meshgrid") print(d...
31.941176
62
0.600368
3784656f88877134cb09e4a54149380b892bcdfa
1,392
py
Python
conftest.py
fanshuai1996/lianxi
06252e08e4bc14f8556e659a6f326aa874e8cc17
[ "CC0-1.0" ]
null
null
null
conftest.py
fanshuai1996/lianxi
06252e08e4bc14f8556e659a6f326aa874e8cc17
[ "CC0-1.0" ]
null
null
null
conftest.py
fanshuai1996/lianxi
06252e08e4bc14f8556e659a6f326aa874e8cc17
[ "CC0-1.0" ]
null
null
null
# coding=utf8 import os import sys import requests import pytest from common.read_yaml import readYaml from common.user_mysql import UserMysql from common.mylogger import logger def pytest_addoption(parser): parser.addoption( '--environment', action='store''', default='pro', help='运行环境选择:tes...
27.84
90
0.697557
f853bf7b0a0e319ba37ca4670a7e386bd05ac084
28,574
py
Python
python/ccxt/liqui.py
bonesoul/ccxt
8a4aacb6dd4d75de8771fc2ad66da97660f9ddb6
[ "MIT" ]
null
null
null
python/ccxt/liqui.py
bonesoul/ccxt
8a4aacb6dd4d75de8771fc2ad66da97660f9ddb6
[ "MIT" ]
null
null
null
python/ccxt/liqui.py
bonesoul/ccxt
8a4aacb6dd4d75de8771fc2ad66da97660f9ddb6
[ "MIT" ]
1
2018-07-20T15:16:46.000Z
2018-07-20T15:16:46.000Z
# -*- 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 # ----------------------------------------------------------------------------- try: basestri...
40.761769
194
0.514944
42da2037f640c981081ddba1430b4c98b70a9af4
5,865
py
Python
nfv/nfv-common/nfv_common/state_machine/_state_machine.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2020-02-07T19:01:36.000Z
2022-02-23T01:41:46.000Z
nfv/nfv-common/nfv_common/state_machine/_state_machine.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
1
2021-01-14T12:02:25.000Z
2021-01-14T12:02:25.000Z
nfv/nfv-common/nfv_common/state_machine/_state_machine.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2021-01-13T08:39:21.000Z
2022-02-09T00:21:55.000Z
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import weakref from nfv_common import debug from nfv_common.state_machine._state_exception import StateException DLOG = debug.debug_get_logger('nfv_common.state_machine.state_machine') class StateMachine(object): """...
37.596154
80
0.510315
2beaaef436e6906761391b9ba4e7d475b32a7b74
3,256
py
Python
app.py
Bielgomes/SLPY
20c4751a100ac3dbcefcee71714a84f7da61cb06
[ "MIT" ]
null
null
null
app.py
Bielgomes/SLPY
20c4751a100ac3dbcefcee71714a84f7da61cb06
[ "MIT" ]
null
null
null
app.py
Bielgomes/SLPY
20c4751a100ac3dbcefcee71714a84f7da61cb06
[ "MIT" ]
null
null
null
from flask import Flask, app, render_template, request, jsonify from dotenv import load_dotenv, find_dotenv from pymongo import MongoClient from emailer import send_email import bcrypt import secrets import os load_dotenv(find_dotenv()) MONGOCLIENT = os.getenv('MONGOCLIENT') client = MongoClient(MONGOCLIEN...
26.258065
93
0.652334
2a6be616ed3cc377e172469408dead58ee3df413
1,569
py
Python
examples/grad/11-excited_state_casci_grad.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
examples/grad/11-excited_state_casci_grad.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
examples/grad/11-excited_state_casci_grad.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Analytical nuclear gradients of CASCI excited state. ''' from pyscf import gto from pyscf import scf from pyscf import mcscf mol = gto.M( atom = [ ["O" , (0. , 0. , 0.)], [1 , (0. ,-0.757 , 0.587)], [1 , (0...
24.515625
77
0.659656
197ed0a8a4030bcb69fd1d9cf5414412cee01250
1,895
py
Python
setup.py
gunjan5/libnet
d5e06fdd41f8865171a8c41309b235e2881ce686
[ "Apache-2.0" ]
null
null
null
setup.py
gunjan5/libnet
d5e06fdd41f8865171a8c41309b235e2881ce686
[ "Apache-2.0" ]
null
null
null
setup.py
gunjan5/libnet
d5e06fdd41f8865171a8c41309b235e2881ce686
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Tigera, Inc. All rights reserved. # # 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.or...
32.118644
102
0.672823
111b5983a2afac3266eae8588ff2192767f09e81
1,815
py
Python
model-optimizer/extensions/front/LRNReplacer.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
2
2021-04-19T06:08:35.000Z
2021-08-25T02:43:43.000Z
model-optimizer/extensions/front/LRNReplacer.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
model-optimizer/extensions/front/LRNReplacer.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
""" Copyright (c) 2017-2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
34.903846
85
0.689256
b9c4ce9ee558ff4191c81b0cb820e69e100d12f8
1,450
py
Python
Testing/Python/PrefixParserTest.py
josephsnyder/VistA-1
7bd7e4cdda72c3e76c7ef0f6947383dc5823ea0b
[ "Apache-2.0" ]
1
2017-04-18T15:55:43.000Z
2017-04-18T15:55:43.000Z
Testing/Python/PrefixParserTest.py
josephsnyder/VistA-1
7bd7e4cdda72c3e76c7ef0f6947383dc5823ea0b
[ "Apache-2.0" ]
null
null
null
Testing/Python/PrefixParserTest.py
josephsnyder/VistA-1
7bd7e4cdda72c3e76c7ef0f6947383dc5823ea0b
[ "Apache-2.0" ]
null
null
null
#--------------------------------------------------------------------------- # Copyright 2013 The Open Source Electronic Health Record Agent # # 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 # ...
41.428571
104
0.649655
c1c32e22799ce898847efaedadde20e0e159b464
1,956
py
Python
ard/ablation_study/no_death_strat/female/generate_data_by_seed.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
null
null
null
ard/ablation_study/no_death_strat/female/generate_data_by_seed.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
2
2020-11-13T18:31:07.000Z
2021-05-03T12:48:43.000Z
ard/ablation_study/no_death_strat/female/generate_data_by_seed.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
2
2020-11-21T06:35:20.000Z
2020-11-25T16:58:09.000Z
import torch, sys, math, pickle, datetime, os import matplotlib.pyplot as plt import numpy as np import pandas as pd import numpy.random as npr from itertools import count from collections import OrderedDict npr.seed(1234) use_cuda = False if use_cuda: torch.set_default_tensor_type('torch.cuda.DoubleTensor') torch.c...
36.222222
117
0.711145
fd9e58db6f99dca667a05dfb52437c1b45ae4607
4,453
py
Python
gsa_framework/sensitivity_analysis/gradient_boosting.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
2
2020-12-28T17:11:47.000Z
2021-11-20T19:59:33.000Z
gsa_framework/sensitivity_analysis/gradient_boosting.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
7
2020-09-09T10:12:21.000Z
2021-11-25T09:54:14.000Z
gsa_framework/sensitivity_analysis/gradient_boosting.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
3
2020-09-08T09:41:28.000Z
2021-12-28T03:21:40.000Z
# Local files from .method_base import SensitivityAnalysisMethod as SAM from ..sensitivity_methods.gradient_boosting import xgboost_indices from ..utils import write_pickle, read_pickle class GradientBoosting(SAM): """Global sensitivity analysis with feature importance measures from gradient boosted trees. C...
43.23301
142
0.640018
f923cee6138a85961c720d661398a3d79926e4e6
761
py
Python
senz-client-samples/python/device_1/sender.py
ani4aniket/senz
70168a6847d7af43d15e34b33d6c6310ca88a107
[ "Apache-2.0" ]
2
2019-02-26T05:03:20.000Z
2019-02-27T07:16:05.000Z
senz-client-samples/python/device_1/sender.py
ani4aniket/senz
70168a6847d7af43d15e34b33d6c6310ca88a107
[ "Apache-2.0" ]
null
null
null
senz-client-samples/python/device_1/sender.py
ani4aniket/senz
70168a6847d7af43d15e34b33d6c6310ca88a107
[ "Apache-2.0" ]
1
2019-03-24T09:32:53.000Z
2019-03-24T09:32:53.000Z
#!/usr/bin/env python3 import sys, os sys.path.insert(0, os.path.abspath('..')) from senz.client import * from utils.image_utils import * from utils.aes_utils import * deviceName = "dev1" sharedKey = "LGWlhb329Y09oluI" imagePathToSend = "sample.jpg" # Register device print("Registering device...") msg = "SHARE #pub...
23.060606
90
0.735874
7edbb795b2bf7c1686415f71428ef5109dac94a5
711
py
Python
models/t_import.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_import.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_import.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class TImport: class Meta: name = "tImport" namespace: Optional[str] = field( default=None, metadata={ "type": "Attribute", ...
20.911765
61
0.518987
ded461022f8b82f4596792920cf75c8a52aeadc7
30,395
py
Python
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py
18641315209/ovirt-engine
65ffe7ca81c6ff4da56a2a977a0183bd79283685
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py
18641315209/ovirt-engine
65ffe7ca81c6ff4da56a2a977a0183bd79283685
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py
18641315209/ovirt-engine
65ffe7ca81c6ff4da56a2a977a0183bd79283685
[ "Apache-2.0" ]
null
null
null
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013-2017 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 # # Unl...
32.335106
79
0.544794