hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d5f145cd20b239a3c57372ccdd383e5cb623483d
4,570
py
Python
src/luminol/testinsy/luminol_1205.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
src/luminol/testinsy/luminol_1205.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
src/luminol/testinsy/luminol_1205.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import pandas as pd import datetime import time import numpy as np import matplotlib.pyplot as plt import csv from luminol.anomaly_detector import AnomalyDetector def listdir(path, list_name, file_name): #传入存储的list for file in os.listdir(path): file_path = os.path.join(...
37.459016
104
0.678556
4d01e959d61e7410ef3136cfe8e523428794357c
1,606
py
Python
yah/apis/x_token.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
yah/apis/x_token.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
yah/apis/x_token.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
import typing import dataclasses as dc from .._api_base import ApiBase, forward_resp from .._http.types import Response @dc.dataclass class XTokenAuthApi(ApiBase): async def login_token(self, x_token: str) -> bool: payload = { 'type': 'x-token', 'retpath': 'https://www.yandex.ru/an...
30.301887
77
0.567248
290c491472a891fb79d6e119d41014eb1aa50c8e
11,246
py
Python
tests/dp_computations_test.py
zachferr/PipelineDP
0e3b7f73b7959fedc9011b39c53d0dbc607815d2
[ "Apache-2.0" ]
null
null
null
tests/dp_computations_test.py
zachferr/PipelineDP
0e3b7f73b7959fedc9011b39c53d0dbc607815d2
[ "Apache-2.0" ]
null
null
null
tests/dp_computations_test.py
zachferr/PipelineDP
0e3b7f73b7959fedc9011b39c53d0dbc607815d2
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from scipy.stats import skew, kurtosis import pipeline_dp from pipeline_dp.dp_computations import * class MeanVarParams(unittest.TestCase): def test_l0_sensitivity(self): params = pipeline_dp.dp_computations.MeanVarParams( eps=1, delta=1e-10, ...
42.11985
80
0.581629
30a08512982407dda76ceae222114005e407265d
3,984
py
Python
skbio/sequence/_rna.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/_rna.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/_rna.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
34.643478
79
0.597139
544fca8cecd0a2b94a5aec40b9442f86036fd4d2
6,491
py
Python
python/paddle/fluid/tests/unittests/test_operator.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/test_operator.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/test_operator.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29.371041
74
0.581729
3adb9b2e8a48721d0ec5f93f847296e11b5756fa
5,505
py
Python
experiments/test_defense.py
thunlp/ONION
0f4ae2109253273ecac704935a500857fe002651
[ "MIT" ]
9
2021-09-18T13:09:23.000Z
2022-01-09T02:50:05.000Z
experiments/test_defense.py
thunlp/ONION
0f4ae2109253273ecac704935a500857fe002651
[ "MIT" ]
2
2021-10-16T07:21:44.000Z
2021-11-05T09:08:11.000Z
experiments/test_defense.py
thunlp/ONION
0f4ae2109253273ecac704935a500857fe002651
[ "MIT" ]
null
null
null
from gptlm import GPT2LM import torch import argparse from PackDataset import packDataset_util_bert def read_data(file_path): import pandas as pd data = pd.read_csv(file_path, sep='\t').values.tolist() sentences = [item[0] for item in data] labels = [int(item[1]) for item in data] processed_data...
35.063694
112
0.66049
4a1806928f6a65b3b307f4ced75da875a17f0e56
18,051
py
Python
src/pyhees/section3_2_8.py
BRI-EES-House/pyhees
7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b
[ "MIT" ]
null
null
null
src/pyhees/section3_2_8.py
BRI-EES-House/pyhees
7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b
[ "MIT" ]
3
2022-01-04T07:29:52.000Z
2022-03-19T08:02:51.000Z
src/pyhees/section3_2_8.py
BRI-EES-House/pyhees
7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b
[ "MIT" ]
2
2022-01-19T07:57:10.000Z
2022-03-07T00:25:54.000Z
from pyhees.section3_2_b import get_H from pyhees.section3_2_c import get_nu_H, get_nu_C from pyhees.section3_4_b_2 import get_glass_spec_category from pyhees.section3_4 import common, window, door, heatbridge, earthfloor, gamma from pyhees.section3_3_5 import * from pyhees.section3_3_6 import * # ====================...
30.135225
103
0.584012
cb8bf9ff415516845b93bb17523bfaad2c6d66c6
1,741
py
Python
src/rezgui/widgets/ConfiguredSplitter.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezgui/widgets/ConfiguredSplitter.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezgui/widgets/ConfiguredSplitter.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez 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 # # Unless required by applicable law or agreed ...
36.270833
76
0.655945
107cb879e83a96248df8678d73d19ae842ca6ee9
1,158
py
Python
NGS_downstream/scripts/reduce_states.py
EddaSchulz/Xert_paper
dc641c3e8e2b8a1d0e338995a9dd83640a07339f
[ "MIT" ]
null
null
null
NGS_downstream/scripts/reduce_states.py
EddaSchulz/Xert_paper
dc641c3e8e2b8a1d0e338995a9dd83640a07339f
[ "MIT" ]
null
null
null
NGS_downstream/scripts/reduce_states.py
EddaSchulz/Xert_paper
dc641c3e8e2b8a1d0e338995a9dd83640a07339f
[ "MIT" ]
1
2021-04-28T07:02:19.000Z
2021-04-28T07:02:19.000Z
#!/usr/bin/env python3 # This script reduces the states within a BED file returned from ChromHMM and assigns new colors for visualization with UCSC import re import sys input = open(sys.argv[1], 'r') output = open(sys.argv[2], 'w') strongRE_input = sys.argv[3] weakRE_input = sys.argv[4] poisedRE_input = sys.argv[5] ...
25.733333
160
0.639896
f4e033f7a02ef2b3ed5dc50fc4f098a1cd0f2261
179
py
Python
fastface/metric/__init__.py
ethanwharris/light-face-detection
bd6a4c5a87c80937e51adc3999eacc14c80185e8
[ "MIT" ]
null
null
null
fastface/metric/__init__.py
ethanwharris/light-face-detection
bd6a4c5a87c80937e51adc3999eacc14c80185e8
[ "MIT" ]
null
null
null
fastface/metric/__init__.py
ethanwharris/light-face-detection
bd6a4c5a87c80937e51adc3999eacc14c80185e8
[ "MIT" ]
null
null
null
__all__ = [ "WiderFaceAP", "AveragePrecision", "AverageRecall" ] from .widerface_ap import WiderFaceAP from .ap import AveragePrecision from .ar import AverageRecall
17.9
37
0.743017
0a3347f158652e5571a7fcfeb1c1f890d75d0e06
3,111
py
Python
icecreams101/settings.py
srgautam01/icecreams101
698c6beab59eff1a8ab31db463d64604b2ec24c2
[ "MIT" ]
null
null
null
icecreams101/settings.py
srgautam01/icecreams101
698c6beab59eff1a8ab31db463d64604b2ec24c2
[ "MIT" ]
null
null
null
icecreams101/settings.py
srgautam01/icecreams101
698c6beab59eff1a8ab31db463d64604b2ec24c2
[ "MIT" ]
null
null
null
""" Django settings for icecreams101 project. Generated by 'django-admin startproject' using Django 3.1.7. 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/ """ from pa...
25.5
91
0.696239
79dd9685676372e0498cbb32681344dc73459e55
3,074
py
Python
binding/python/multiverso/theano_ext/param_manager.py
yesme/Multiverso
e45369e1d07277f656b0900beb2709d86679fa53
[ "MIT" ]
445
2015-11-10T04:00:17.000Z
2016-10-21T01:10:27.000Z
binding/python/multiverso/theano_ext/param_manager.py
yesme/Multiverso
e45369e1d07277f656b0900beb2709d86679fa53
[ "MIT" ]
57
2015-11-10T14:54:29.000Z
2016-08-11T05:48:13.000Z
binding/python/multiverso/theano_ext/param_manager.py
yesme/Multiverso
e45369e1d07277f656b0900beb2709d86679fa53
[ "MIT" ]
156
2015-11-10T05:21:49.000Z
2016-10-19T15:25:38.000Z
#!/usr/bin/env python # coding:utf8 import lasagne import numpy as np import multiverso as mv class MVModelParamManager(object): ''' MVModelParamManager is manager to make managing and synchronizing the variables in lasagne more easily ''' def __init__(self, model): ''' The constructor of...
37.036145
97
0.650943
8a6e1f5e7a23835821a75c5bb068d02649b12286
588
py
Python
myapp/src/myapp/run.py
jmargutt/python-docker-app
40f31fe69629110e6c8856f7d3620528d0f75ea1
[ "MIT" ]
null
null
null
myapp/src/myapp/run.py
jmargutt/python-docker-app
40f31fe69629110e6c8856f7d3620528d0f75ea1
[ "MIT" ]
null
null
null
myapp/src/myapp/run.py
jmargutt/python-docker-app
40f31fe69629110e6c8856f7d3620528d0f75ea1
[ "MIT" ]
null
null
null
import datetime import logging logging.basicConfig() ch = logging.getLogger() ch.setLevel(logging.WARNING) from myapp.utils import print_welcome_message def main(): """ template of a python app: print a message and exit """ utc_timestamp = datetime.datetime.utcnow().replace( tzinfo=datetime.t...
21
55
0.685374
8bc005f249251d05a392f74680c07d6c0013f34a
112
py
Python
setup.py
vipulgupta2048/clock-activity
a805922302554cfd562085c990b91b834d06e45f
[ "CNRI-Python", "Xnet", "X11", "CECILL-B" ]
null
null
null
setup.py
vipulgupta2048/clock-activity
a805922302554cfd562085c990b91b834d06e45f
[ "CNRI-Python", "Xnet", "X11", "CECILL-B" ]
null
null
null
setup.py
vipulgupta2048/clock-activity
a805922302554cfd562085c990b91b834d06e45f
[ "CNRI-Python", "Xnet", "X11", "CECILL-B" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from sugar3.activity import bundlebuilder bundlebuilder.start()
18.666667
41
0.714286
f6236b281330498702a0f6a9340bd776a221a8d3
9,188
py
Python
tests/providers/google/cloud/utils/gcp_authenticator.py
ngwallace/airflow
49ca0a018673d575949e7089d296a6428af5f18c
[ "Apache-2.0" ]
2
2022-02-09T08:59:56.000Z
2022-02-09T08:59:59.000Z
tests/providers/google/cloud/utils/gcp_authenticator.py
ngwallace/airflow
49ca0a018673d575949e7089d296a6428af5f18c
[ "Apache-2.0" ]
null
null
null
tests/providers/google/cloud/utils/gcp_authenticator.py
ngwallace/airflow
49ca0a018673d575949e7089d296a6428af5f18c
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.433476
110
0.659882
8edd0911ca6a1e6d48b1655def992e464d178ae0
3,247
py
Python
samples/generation/web_app/models/model.py
sintefneodroid/neo
0999f1dff95c4a8c5880a9b3add532d74f38586a
[ "Apache-2.0" ]
7
2017-09-13T08:28:37.000Z
2022-01-21T15:59:14.000Z
samples/generation/web_app/models/model.py
sintefneodroid/neo
0999f1dff95c4a8c5880a9b3add532d74f38586a
[ "Apache-2.0" ]
25
2019-03-25T13:49:43.000Z
2019-05-02T13:58:13.000Z
samples/generation/web_app/models/model.py
sintefneodroid/neo
0999f1dff95c4a8c5880a9b3add532d74f38586a
[ "Apache-2.0" ]
2
2017-09-21T10:14:39.000Z
2017-10-21T09:57:04.000Z
import json import numpy import tensorflow as tf from keras_preprocessing.image import img_to_array, load_img from tensorflow.python.keras.applications import VGG16 # Load models and support from tensorflow.python.keras.applications.imagenet_utils import preprocess_input from tensorflow.python.keras.backend import cl...
31.833333
105
0.68494
53744eddaf82673996169c0834ca82144990be96
102,030
py
Python
test/parallel/test_torch.py
xymyeah/horovod
987a1eb34e71f2626568b75ade24a630cc539cd6
[ "Apache-2.0" ]
2
2021-04-03T13:53:21.000Z
2021-04-03T13:53:26.000Z
test/parallel/test_torch.py
xymyeah/horovod
987a1eb34e71f2626568b75ade24a630cc539cd6
[ "Apache-2.0" ]
4
2021-04-15T15:14:24.000Z
2021-05-25T10:53:23.000Z
test/parallel/test_torch.py
xymyeah/horovod
987a1eb34e71f2626568b75ade24a630cc539cd6
[ "Apache-2.0" ]
1
2021-04-16T06:28:54.000Z
2021-04-16T06:28:54.000Z
# Copyright 2018 Uber Technologies, Inc. All Rights Reserved. # Modifications copyright (C) 2019 Intel Corporation # Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
41.695954
126
0.5803
2ec256bee4c19af2b4ec33434bdd679ddb22337a
1,781
py
Python
src/classifier/model.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
null
null
null
src/classifier/model.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-02-24T17:11:26.000Z
2021-02-24T17:11:31.000Z
src/classifier/model.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-12-10T12:27:17.000Z
2021-12-10T12:27:17.000Z
import json import torch import torch.nn.functional as F from transformers import BertTokenizer from .sunbert_classifer import SunbertClassifier with open("config.json") as json_file: config = json.load(json_file) class Model: """ :Base Model """ def __init__(self): self.device = torch...
27.828125
90
0.637282
bc1f3d20b8dc42f6917418c913d874ee4e77a2d7
1,963
py
Python
video_consumer.py
jamesee/rabbitMQ-video
39241ab0507b992daa666c75628f662ee99b8830
[ "BSD-3-Clause" ]
null
null
null
video_consumer.py
jamesee/rabbitMQ-video
39241ab0507b992daa666c75628f662ee99b8830
[ "BSD-3-Clause" ]
null
null
null
video_consumer.py
jamesee/rabbitMQ-video
39241ab0507b992daa666c75628f662ee99b8830
[ "BSD-3-Clause" ]
null
null
null
"""Kombu-based Video Stream Consumer Written by Minsu Jang Date: 2018-06-09 Reference - Building Robust RabbitMQ Consumers With Python and Kombu: Part 1 (https://medium.com/python-pandemonium/building-robust-rabbitmq-consumers-with-python-and-kombu-part-1-ccd660d17271) - Building Robust RabbitMQ Consumers With Python...
33.271186
183
0.671931
fb1ee2c1bb859d15ad7c64f81394e02cbdeb75f5
308
py
Python
pgdrive/examples/__init__.py
gamecraftCZ/pgdrive
11fbb5a5ca1dc354d755f00eb282bcffe5720bcc
[ "Apache-2.0" ]
null
null
null
pgdrive/examples/__init__.py
gamecraftCZ/pgdrive
11fbb5a5ca1dc354d755f00eb282bcffe5720bcc
[ "Apache-2.0" ]
null
null
null
pgdrive/examples/__init__.py
gamecraftCZ/pgdrive
11fbb5a5ca1dc354d755f00eb282bcffe5720bcc
[ "Apache-2.0" ]
null
null
null
from pgdrive.examples.ppo_expert.numpy_expert import expert def get_terminal_state(info): if info["crash"]: state = "Crash" elif info["out_of_road"]: state = "Out of Road" elif info["arrive_dest"]: state = "Success" else: state = "Max Step" return state
22
59
0.616883
0528ebe8b96c27862853093f52784bd16947b82f
98,928
py
Python
idler.py
robert-osborne/IdleIdler
e3a93f2ebc90d36d266301a2b88a6695e34def18
[ "MIT" ]
2
2021-04-06T14:57:46.000Z
2021-11-21T01:32:46.000Z
idler.py
robert-osborne/IdleIdler
e3a93f2ebc90d36d266301a2b88a6695e34def18
[ "MIT" ]
3
2021-09-08T02:59:10.000Z
2022-03-12T00:54:53.000Z
idler.py
robert-osborne/IdleIdler
e3a93f2ebc90d36d266301a2b88a6695e34def18
[ "MIT" ]
3
2021-03-23T18:25:57.000Z
2021-04-20T12:16:31.000Z
#!/usr/bin/env python3 # # Copyright (c) 2021 Robert Osborne # # python3 idler.py --help # import argparse import textwrap import time import sys import os import configparser import datetime import distutils import json import math import glob import shutil import pyautogui import pygetwindow as gw from PIL import Im...
36.157895
228
0.55876
6f83e3077b4d9894ca83df47fd03821fb60ba9ee
152
py
Python
src/util/config.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
2
2020-07-26T09:48:22.000Z
2021-09-30T01:51:13.000Z
src/util/config.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
2
2022-01-13T03:56:13.000Z
2022-03-12T01:03:29.000Z
src/util/config.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
null
null
null
""" Config file Author: Patrick Henriksen <patrick@henriksen.as> """ import logging LOGS_LEVEL = logging.INFO logging.basicConfig(level=LOGS_LEVEL)
12.666667
48
0.769737
dd7d8e9ec96af5d7ca4e0e5dc9d69c3e298a0b24
140
py
Python
application.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
9
2021-03-22T09:18:58.000Z
2022-03-02T01:42:11.000Z
application.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
null
null
null
application.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
2
2022-03-29T07:59:12.000Z
2022-03-31T09:10:47.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 06:14:38 2020 @author: Hephyrius """ from interface import Ui_MainWindow Ui_MainWindow()
15.555556
35
0.692857
840d094470046408432647b1e1d81540585e7461
297
py
Python
ImagePreprocessing/basic.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
ImagePreprocessing/basic.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
ImagePreprocessing/basic.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
import cv2 # 读取一副图像 第一个参数是图像路径 # 第二个参数代表读取方式,1表示3通道彩色,0表示单通道灰度 im = cv2.imread(r"me.jpg", 1) # 在"test"窗口中显示图像im cv2.imshow("test", im) # 等待用户按键反馈 cv2.waitKey() # 销毁所有创建的窗口 cv2.destroyAllWindows() # 打印图像数据的数据结构类型 print(type(im)) # 打印图像的尺寸 print(im.shape) # 将图像保存到指定路径 # cv2.imwrite('lena.jpg',im)
16.5
31
0.734007
9c3975834cc3558e0f12fe9b4e2e4a0c55a58011
89
py
Python
definitions.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
null
null
null
definitions.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
3
2018-10-20T23:10:14.000Z
2018-12-15T00:44:49.000Z
definitions.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
1
2018-11-12T14:38:09.000Z
2018-11-12T14:38:09.000Z
import os class Definitions: ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
14.833333
57
0.741573
2a3ae55c013fdd802beee753d344f4bf233fe2e7
516
py
Python
env/lib/python3.8/site-packages/plotly/validators/sunburst/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/sunburst/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/sunburst/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="visible", parent_name="sunburst", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
36.857143
80
0.645349
197dd98a8a0ef863d903c08738f910fa72ccf6eb
2,032
py
Python
pyrfm/random_feature/tests/test_mb.py
neonnnnn/pyrfm
e88fe8cb7bf3062616d33826e955e828fc6d8ba6
[ "BSD-2-Clause" ]
7
2020-05-31T01:47:27.000Z
2021-12-26T03:45:14.000Z
pyrfm/random_feature/tests/test_mb.py
neonnnnn/pyrfm
e88fe8cb7bf3062616d33826e955e828fc6d8ba6
[ "BSD-2-Clause" ]
2
2019-12-01T01:18:38.000Z
2020-08-27T12:07:26.000Z
pyrfm/random_feature/tests/test_mb.py
neonnnnn/pyrfm
e88fe8cb7bf3062616d33826e955e828fc6d8ba6
[ "BSD-2-Clause" ]
3
2021-03-17T13:46:56.000Z
2022-03-18T21:43:45.000Z
import numpy as np from scipy.sparse import csr_matrix from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_allclose_dense_sparse from pyrfm import MB, SparseMB from pyrfm import intersection from sklearn.utils.extmath import safe_sparse_dot import pytest # generate data rng ...
35.649123
79
0.757874
f6c03fc6b4158681d14d077c20aff06963bfc509
8,638
py
Python
ngraph/python/tests/test_ngraph/test_ops_unary.py
lsdace30095/openvino
bdbb04f47be94cd8cb2fbb97b766d2e1231337ff
[ "Apache-2.0" ]
1
2020-08-25T06:01:49.000Z
2020-08-25T06:01:49.000Z
ngraph/python/tests/test_ngraph/test_ops_unary.py
x1aoo/openvino
393e9295cdf84ffaacf6da857b31ac384addfaf4
[ "Apache-2.0" ]
null
null
null
ngraph/python/tests/test_ngraph/test_ops_unary.py
x1aoo/openvino
393e9295cdf84ffaacf6da857b31ac384addfaf4
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2020 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.apa...
36.91453
99
0.608358
65853aaa55b695cac67514c19fc50a7a5aa2aa0d
2,101
py
Python
example/custom.py
saqebakhter/python-sms-activate-ru
a0cb004a61b41210af1ffac2357802cb23f950ba
[ "Apache-2.0" ]
1
2018-09-10T14:32:09.000Z
2018-09-10T14:32:09.000Z
example/custom.py
saqebakhter/python-sms-activate-ru
a0cb004a61b41210af1ffac2357802cb23f950ba
[ "Apache-2.0" ]
null
null
null
example/custom.py
saqebakhter/python-sms-activate-ru
a0cb004a61b41210af1ffac2357802cb23f950ba
[ "Apache-2.0" ]
1
2020-01-14T16:16:06.000Z
2020-01-14T16:16:06.000Z
import time from smsactivateru import Sms, SmsTypes, SmsService, GetBalance, GetFreeSlots, GetNumber, SetStatus, GetStatus """ create wrapper with secret api-key search here: http://sms-activate.ru/index.php?act=profile https://5sim.net/settings/security """ wrapper = Sms('API KEY', 'http://sms-activate.a...
30.449275
110
0.753451
6cdf1cf4f4f8a4450a324558c1d91858710d9e74
2,154
py
Python
CS50x 2022/Week 6/Lab 6/World Cup/tournament.py
mm-marwat/CS50x-2022-Psets-and-Labs
1bdd6f7e1246ca379c84bcbce5d573445ec698d8
[ "MIT" ]
1
2022-02-10T16:28:00.000Z
2022-02-10T16:28:00.000Z
CS50x 2022/Week 6/Lab 6/World Cup/tournament.py
mm-marwat/CS50x-2022-Psets-and-Labs
1bdd6f7e1246ca379c84bcbce5d573445ec698d8
[ "MIT" ]
null
null
null
CS50x 2022/Week 6/Lab 6/World Cup/tournament.py
mm-marwat/CS50x-2022-Psets-and-Labs
1bdd6f7e1246ca379c84bcbce5d573445ec698d8
[ "MIT" ]
null
null
null
# Simulate a sports tournament import csv import sys import random # Number of simluations to run N = 1000 def main(): # Ensure correct usage if len(sys.argv) != 2: sys.exit("Usage: python tournament.py FILENAME") teams = [] # TODO: Read teams into memory from file with open(sys.argv[...
25.951807
116
0.606314
a8f0a79f5063b87a9e69329703f8c654328e1170
972
py
Python
test_durak_pytest.py
Fayzak/PythonDevelopLesson10
7401ef134d69f6de58b002d08c846f18d8690cf0
[ "MIT" ]
null
null
null
test_durak_pytest.py
Fayzak/PythonDevelopLesson10
7401ef134d69f6de58b002d08c846f18d8690cf0
[ "MIT" ]
null
null
null
test_durak_pytest.py
Fayzak/PythonDevelopLesson10
7401ef134d69f6de58b002d08c846f18d8690cf0
[ "MIT" ]
null
null
null
import pytest import durak_game from durak_game import DurakGame from durak_game import Hands class TestGame: def setup(self): self.gen = durak_game.gen_deck() def teardown(self): pass def test_gen(self): """ Проверка на правильное неповторное генерирование колод ...
23.142857
62
0.591564
ddcaf2ed3ea0a4c2f736faef8c6ee83f6b04d8f1
239
py
Python
site-packages/serpent/game_launchers/__init__.py
nanpuhaha/SerpentAI
6af1105fc0a970227a0d7c11e6a0da1bd0bacec6
[ "MIT" ]
6,762
2017-09-17T20:28:40.000Z
2022-03-31T12:35:47.000Z
site-packages/serpent/game_launchers/__init__.py
nanpuhaha/SerpentAI
6af1105fc0a970227a0d7c11e6a0da1bd0bacec6
[ "MIT" ]
159
2017-09-19T21:54:58.000Z
2021-03-26T18:15:58.000Z
serpent/game_launchers/__init__.py
PiterPentester/SerpentAI
614bafd3c2df3ee6736309d46a7b92325f9a2d15
[ "MIT" ]
880
2017-09-23T01:16:50.000Z
2022-03-27T18:58:30.000Z
from serpent.game_launchers.steam_game_launcher import SteamGameLauncher from serpent.game_launchers.executable_game_launcher import ExecutableGameLauncher from serpent.game_launchers.web_browser_game_launcher import WebBrowserGameLauncher
79.666667
83
0.92887
4a5ebb38c4154d25695c1c99a6ffbcd028cd27a5
2,219
py
Python
tests/test_SVqcVCF.py
dbmi-bgm/granite
88a68f95c18f8541e01697f0012d1cd86c00db47
[ "MIT" ]
3
2020-08-06T15:36:53.000Z
2021-01-20T15:31:05.000Z
tests/test_SVqcVCF.py
dbmi-bgm/granite
88a68f95c18f8541e01697f0012d1cd86c00db47
[ "MIT" ]
1
2021-01-08T16:54:16.000Z
2021-01-08T16:54:16.000Z
tests/test_SVqcVCF.py
dbmi-bgm/granite
88a68f95c18f8541e01697f0012d1cd86c00db47
[ "MIT" ]
2
2020-02-28T22:33:17.000Z
2021-01-27T17:47:20.000Z
################################################################# # Libraries ################################################################# import sys, os import pytest import json from granite.SVqcVCF import ( main as main_SVqcVCF ) ######################...
38.258621
165
0.5863
b4475a4a03f7c9093555067fc078911dbff9de53
730
py
Python
utils.py
mark-baba/FinalYearProject
3f27a66a67a256b6b90e988d6523ab9ea7ca1af0
[ "MIT" ]
null
null
null
utils.py
mark-baba/FinalYearProject
3f27a66a67a256b6b90e988d6523ab9ea7ca1af0
[ "MIT" ]
null
null
null
utils.py
mark-baba/FinalYearProject
3f27a66a67a256b6b90e988d6523ab9ea7ca1af0
[ "MIT" ]
null
null
null
# import xlrd # import openpyxl as xl from time import time def sem_to_year(sem): return round((int(sem)/2)) # def xlsx_to_xls(file): # wb = xl.load_workbook(file) # filepath = f"{file.rsplit('.', 1)[0]}.xls" # wb.save(filepath) # return filepath def len_check(roll): if not isinstance(roll, ...
22.121212
50
0.609589
f889f9a8be51ae0aca6475292608bdf446bda1a3
1,712
py
Python
app/core/migrations/0001_initial.py
NinoBaus/recipe-app-api
9b84197aa8c76d73b26cc24a84b57e77ee61e833
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
NinoBaus/recipe-app-api
9b84197aa8c76d73b26cc24a84b57e77ee61e833
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
NinoBaus/recipe-app-api
9b84197aa8c76d73b26cc24a84b57e77ee61e833
[ "MIT" ]
null
null
null
# Generated by Django 3.2rc1 on 2021-03-21 12:16 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.352941
266
0.640187
65cdb673096ca85da04d8bf1666061051ffb8b51
400
py
Python
helper_files/get_todays_date.py
kant/COVID_Web_Scraper
d98a29e387db10fc5d9c78e7ff2a727607b4f43b
[ "MIT" ]
null
null
null
helper_files/get_todays_date.py
kant/COVID_Web_Scraper
d98a29e387db10fc5d9c78e7ff2a727607b4f43b
[ "MIT" ]
1
2020-09-30T21:25:10.000Z
2020-09-30T21:25:10.000Z
helper_files/get_todays_date.py
kant/COVID_Web_Scraper
d98a29e387db10fc5d9c78e7ff2a727607b4f43b
[ "MIT" ]
2
2021-01-04T04:45:21.000Z
2021-01-10T02:24:06.000Z
from datetime import date def get_todays_date(): ################### # # This function gets today's current day and month values for later use in # the program. # ################### todays_date = str(date.today()) current_day = todays_date.split('-')[2] cur...
21.052632
78
0.55
93ce6276be78c3af2e2169265f73c2dfd4766931
537
py
Python
django_rest_auth_embedded/views/registration.py
Volkova-Natalia/django_rest_auth_embedded
43fe1d23f59332a7794365348989599cde44af6e
[ "MIT" ]
null
null
null
django_rest_auth_embedded/views/registration.py
Volkova-Natalia/django_rest_auth_embedded
43fe1d23f59332a7794365348989599cde44af6e
[ "MIT" ]
1
2021-02-26T16:56:31.000Z
2021-03-24T09:47:43.000Z
django_rest_auth_embedded/views/registration.py
Volkova-Natalia/django_rest_auth_embedded
43fe1d23f59332a7794365348989599cde44af6e
[ "MIT" ]
null
null
null
from .base import BaseView from ..serializers import RegistrationSerializer class RegistrationView(BaseView): # -------------------------------------------------- def post(self, request, *args, **kwargs): serializer = RegistrationSerializer(data=request.data) if serializer.is_valid(): ...
26.85
62
0.527002
4509fffaedb7c6d7a0c36bc110715bc5d120aecf
21,759
py
Python
textpy/scanners.py
goodmami/textpy
4c1d504bae1a4018a76c566dbcbe70fe3b2282e9
[ "MIT" ]
3
2020-03-25T10:27:32.000Z
2022-02-07T04:28:29.000Z
textpy/scanners.py
goodmami/textpy
4c1d504bae1a4018a76c566dbcbe70fe3b2282e9
[ "MIT" ]
null
null
null
textpy/scanners.py
goodmami/textpy
4c1d504bae1a4018a76c566dbcbe70fe3b2282e9
[ "MIT" ]
null
null
null
import re from functools import partial __all__ = [ 'Match', 'Scanner', 'Dot', 'CharacterClass', 'Literal', 'Regex', 'Spacing', 'Integer', 'Float', 'BoundedString', 'Bounded', 'Sequence', 'Choice', 'Repeat', 'ZeroOrMore', 'OneOrMore', 'Optional', ...
29.28533
78
0.495795
d82a8ba14a243bbae73326e95b5ab2b4eaeb4c4a
10,761
py
Python
congress/tests/policy_engines/test_agnostic_performance.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
50
2015-04-21T14:12:01.000Z
2020-06-01T06:23:13.000Z
congress/tests/policy_engines/test_agnostic_performance.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
congress/tests/policy_engines/test_agnostic_performance.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
25
2015-05-22T04:02:33.000Z
2020-01-14T12:15:12.000Z
# Copyright (c) 2015 VMware, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
37.235294
96
0.605148
16384702c75d0f96f37fabb23e958d17a9922ba1
5,442
py
Python
api/inventory/inventory.py
ufosoftwarellc/cannlytics
236bd597e30530666400fef6dceaae6de6aa587b
[ "MIT" ]
1
2021-06-07T13:53:06.000Z
2021-06-07T13:53:06.000Z
api/inventory/inventory.py
ufosoftwarellc/cannlytics
236bd597e30530666400fef6dceaae6de6aa587b
[ "MIT" ]
null
null
null
api/inventory/inventory.py
ufosoftwarellc/cannlytics
236bd597e30530666400fef6dceaae6de6aa587b
[ "MIT" ]
null
null
null
""" Inventory Views | Cannlytics API Created: 4/21/2021 API to interface with inventory. """ from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response @api_view(['GET', 'POST']) def inventory(request, format=None): """Get, create, or update inv...
34.66242
99
0.661521
3441e7dfd5e31f371bc74ca6cd0a26cadfe3bba3
2,110
py
Python
py/desispec/test/test_pipeline_plan.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
24
2015-09-29T06:06:29.000Z
2022-01-14T07:31:45.000Z
py/desispec/test/test_pipeline_plan.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
1,452
2015-02-26T00:14:23.000Z
2022-03-31T23:35:10.000Z
py/desispec/test/test_pipeline_plan.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
25
2015-02-06T21:39:13.000Z
2022-02-22T14:16:31.000Z
""" tests desispec.pipeline.core """ import os import unittest import shutil import time import numpy as np # # from desispec.pipeline.common import * # from desispec.pipeline.graph import * # from desispec.pipeline.plan import * # import desispec.io as io # # from . import pipehelpers as ph class TestPipelinePlan(u...
25.421687
80
0.581991
d3e34ba24cfbe2d0eafdad311fb456c5ae632479
3,145
py
Python
liberapay/utils/cbor.py
lewjs16/liberapay.com
63620a621865a62ecf8fd40a713ae53e137bbbcf
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
liberapay/utils/cbor.py
lewjs16/liberapay.com
63620a621865a62ecf8fd40a713ae53e137bbbcf
[ "PostgreSQL", "CC0-1.0" ]
1
2021-06-02T01:18:36.000Z
2021-06-02T01:18:36.000Z
liberapay/utils/cbor.py
lewjs16/liberapay.com
63620a621865a62ecf8fd40a713ae53e137bbbcf
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
from datetime import date, timedelta from decimal import Decimal import cbor2 from markupsafe import Markup from ..i18n.currencies import Money, MoneyBasket from .types import Object CBORTag = cbor2.encoder.CBORTag encode_semantic = cbor2.encoder.encode_semantic # Dates # ===== # Upstream issue: https://github.co...
27.112069
91
0.668998
8d5542ddb77cbe1187844f2354eead0bae4f3fb4
2,379
py
Python
tests/unit/stream_alert_shared/test_backoff_handlers.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
7
2018-12-26T14:38:08.000Z
2022-03-09T13:21:00.000Z
tests/unit/stream_alert_shared/test_backoff_handlers.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
14
2018-05-09T19:18:15.000Z
2021-06-02T02:34:09.000Z
tests/unit/stream_alert_shared/test_backoff_handlers.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
1
2018-12-06T20:51:58.000Z
2018-12-06T20:51:58.000Z
""" Copyright 2017-present, Airbnb Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
29.012195
80
0.735603
747b6cba90e6d3f1a00ec37d64ce4853d25e8117
79,379
py
Python
airflow/jobs/scheduler_job.py
yjwong/airflow
d19ddffc173c877632d2233aa6e0458038c1f4df
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/jobs/scheduler_job.py
yjwong/airflow
d19ddffc173c877632d2233aa6e0458038c1f4df
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/jobs/scheduler_job.py
yjwong/airflow
d19ddffc173c877632d2233aa6e0458038c1f4df
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# pylint: disable=no-name-in-module # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Versio...
42.653949
110
0.616171
38d08bb3194a1ea0651ef41a9f38de7d9e14021a
4,347
py
Python
azure/mgmt/network/v2017_06_01/models/probe.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_06_01/models/probe.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_06_01/models/probe.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # C...
47.25
164
0.647803
f3d7e285f35c2826832e9df72e7b89a921356e4f
11,755
py
Python
integrations/airflow/marquez_airflow/dag.py
OleksandrDvornik/marquez
70079cf2f17a193f620b801ac9962ad543dc0d23
[ "Apache-2.0" ]
null
null
null
integrations/airflow/marquez_airflow/dag.py
OleksandrDvornik/marquez
70079cf2f17a193f620b801ac9962ad543dc0d23
[ "Apache-2.0" ]
null
null
null
integrations/airflow/marquez_airflow/dag.py
OleksandrDvornik/marquez
70079cf2f17a193f620b801ac9962ad543dc0d23
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under th...
37.199367
99
0.599915
654696f4b8d48963a247a1e9ff67efc2fe0d6da3
5,369
py
Python
buddy/settings.py
encorehu/django-buddy
9b3e351fd814d43c685718fd8cd109a215315c7a
[ "MIT" ]
12
2015-01-12T11:18:06.000Z
2019-05-03T08:03:52.000Z
buddy/settings.py
encorehu/django-buddy
9b3e351fd814d43c685718fd8cd109a215315c7a
[ "MIT" ]
null
null
null
buddy/settings.py
encorehu/django-buddy
9b3e351fd814d43c685718fd8cd109a215315c7a
[ "MIT" ]
5
2016-03-11T09:31:50.000Z
2021-04-07T11:40:19.000Z
# Django settings for buddy project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'db.db', ...
34.416667
108
0.684671
57fd6c83d2dac5e72ee77770fa997d6975e8d7d1
1,434
py
Python
motrack/analyze.py
martinholub/motrack
f8dc0557ba93c5d9554543116b4913971a5559b5
[ "MIT" ]
null
null
null
motrack/analyze.py
martinholub/motrack
f8dc0557ba93c5d9554543116b4913971a5559b5
[ "MIT" ]
null
null
null
motrack/analyze.py
martinholub/motrack
f8dc0557ba93c5d9554543116b4913971a5559b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import os import utils import datetime import re basepath = "res/" fnames_in = "*.txt" time_stamp = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S") fname_out = "res_" + time_stamp + ".txt" # distance_re = re.compile("Total dist in mm:") # time_re = re.compile("Total time in sec...
32.590909
66
0.527894
016fba515785a3ef2bf3e6a803d7826f41b21357
7,014
py
Python
src/dataset.py
neuromation/ml-recipe-hier-attention
14792ae219d8fc21f6eae0096949b4781332ad03
[ "Apache-2.0" ]
3
2020-10-31T01:04:00.000Z
2021-02-07T07:35:48.000Z
src/dataset.py
neuro-inc/ml-recipe-hier-attention
14792ae219d8fc21f6eae0096949b4781332ad03
[ "Apache-2.0" ]
1
2020-04-30T15:25:42.000Z
2020-04-30T15:25:42.000Z
src/dataset.py
neuromation/ml-recipe-hier-attention
14792ae219d8fc21f6eae0096949b4781332ad03
[ "Apache-2.0" ]
1
2020-07-02T16:50:07.000Z
2020-07-02T16:50:07.000Z
import random import re from functools import lru_cache from pathlib import Path from typing import Tuple, List, Dict, Union, Iterator import numpy as np import torch from nltk.tokenize import PunktSentenceTokenizer, WordPunctTokenizer from torch import LongTensor, FloatTensor from torch.utils.data import Sampler, Dat...
30.495652
79
0.599943
82175d7f680495c310a0b6bd9f144a47f15cda35
2,902
py
Python
tensorflow/compiler/mlir/runlit.site.cfg.py
freewind2016/tensorflow
84d6b43f5fc72c9ac5eb0fc95b91b23f532a2738
[ "Apache-2.0" ]
4
2020-06-28T08:25:36.000Z
2021-08-12T12:41:34.000Z
tensorflow/compiler/mlir/runlit.site.cfg.py
freewind2016/tensorflow
84d6b43f5fc72c9ac5eb0fc95b91b23f532a2738
[ "Apache-2.0" ]
2
2021-08-25T16:12:24.000Z
2022-02-10T02:04:13.000Z
tensorflow/compiler/mlir/runlit.site.cfg.py
freewind2016/tensorflow
84d6b43f5fc72c9ac5eb0fc95b91b23f532a2738
[ "Apache-2.0" ]
4
2019-11-28T12:18:07.000Z
2021-08-01T16:12:17.000Z
# Copyright 2019 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.184211
80
0.738456
194502fe136d492da99677147a2645edbf0f22ad
916
py
Python
smnsdkrequests/v20171105/DeleteTopicAttribute.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
smnsdkrequests/v20171105/DeleteTopicAttribute.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
smnsdkrequests/v20171105/DeleteTopicAttribute.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 #Copyright (C) 2017. Huawei Technologies Co., LTD. All rights reserved. # #This program is free software; you can redistribute it and/or modify #it under the terms of Apache License, Version 2.0. # #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even t...
31.586207
82
0.730349
4f2b1cff7eb2dd12b7e5ce2eef2f86d7696fb867
6,579
py
Python
src/Vector/VectorNd.py
EnderRayquaza/Vector
f8348d1f06912b45b808fdcf779202dc1f97f201
[ "MIT" ]
2
2021-04-15T11:16:42.000Z
2021-11-08T21:46:26.000Z
src/Vector/VectorNd.py
EnderRayquaza/Vector
f8348d1f06912b45b808fdcf779202dc1f97f201
[ "MIT" ]
null
null
null
src/Vector/VectorNd.py
EnderRayquaza/Vector
f8348d1f06912b45b808fdcf779202dc1f97f201
[ "MIT" ]
null
null
null
import math class VectorNd: """ A mathematical vector in n dimensions. ... v2.0.5 by EnderRayquaza Attributes ---------- l : list A list with its composants. st : float Its standard. dir : list Its direction. It's a vector that its standars is equal to...
23.165493
74
0.47454
41f50c42fa1358b7c0d7a738f35cdfa45a936662
234
py
Python
upload_studio/executors/utils.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
upload_studio/executors/utils.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
upload_studio/executors/utils.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
import subprocess def get_flac_version(): return subprocess.check_output(['flac', '--version']).decode().split('\n')[0] def get_lame_version(): return subprocess.check_output(['lame', '--version']).decode().split('\n')[0]
23.4
81
0.675214
d704d0e18e261d03e442a1f02690300ef842c364
5,304
py
Python
temboo/core/Library/Fitbit/Activities/GetActivityWeeklyGoals.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Fitbit/Activities/GetActivityWeeklyGoals.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Fitbit/Activities/GetActivityWeeklyGoals.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetActivityWeeklyGoals # Get a user's current weekly activity goals. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
43.121951
209
0.689291
f5b693f1313e2c6ad708cf849028779b06ea5ce1
46,161
py
Python
src/sage/combinat/root_system/weyl_group.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/combinat/root_system/weyl_group.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/combinat/root_system/weyl_group.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
""" Weyl Groups AUTHORS: - Daniel Bump (2008): initial version - Mike Hansen (2008): initial version - Anne Schilling (2008): initial version - Nicolas Thiery (2008): initial version - Volker Braun (2013): LibGAP-based matrix groups EXAMPLES: More examples on Weyl Groups should be added here... The Cayley graph of...
33.817582
146
0.510951
5816e949ba4a9d3600362e45768d66548fbd4d4b
969
py
Python
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
2
2020-04-09T13:04:25.000Z
2021-09-24T14:17:26.000Z
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
null
null
null
legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
3
2019-09-20T20:49:54.000Z
2021-09-02T17:33:47.000Z
import unittest from simulator_diagnoser.graph import InmemoryGraph from simulator_diagnoser.graph.traversal import ForwardAnalysis class ForwardAnalysisTest(unittest.TestCase): def setUp(self): # Graph = # 9 # / | \ # 6 7 8 # \ / \ / # 4 5 #...
24.846154
69
0.49742
8eaaf0875649c44f415c4b2d2bc4675a561a1dec
1,193
py
Python
tests/test_wilcoxon.py
sylwekczmil/cacp
7322f104547582939c75b8ae8ad59ac1fe0298aa
[ "MIT" ]
1
2022-03-10T20:35:10.000Z
2022-03-10T20:35:10.000Z
tests/test_wilcoxon.py
sylwekczmil/cacp
7322f104547582939c75b8ae8ad59ac1fe0298aa
[ "MIT" ]
null
null
null
tests/test_wilcoxon.py
sylwekczmil/cacp
7322f104547582939c75b8ae8ad59ac1fe0298aa
[ "MIT" ]
null
null
null
from cacp.wilcoxon import process_wilcoxon CLASSIFIERS = [ ('XGB', lambda n_inputs, n_classes: None), # mock this only for tests ('SVC', lambda n_inputs, n_classes: None), ('DT', lambda n_inputs, n_classes: None), ('RF', lambda n_inputs, n_classes: None), ('NC', lambda n_inputs, n_classes: None), ...
42.607143
92
0.697402
f95462a15d06dfd8ca5bbe37770f90adf8b5d986
4,756
py
Python
src/arclib.py
kbines/ARC
abb64e8833a4c1c7bd5dfa1bc8755415420f58cd
[ "Apache-2.0" ]
null
null
null
src/arclib.py
kbines/ARC
abb64e8833a4c1c7bd5dfa1bc8755415420f58cd
[ "Apache-2.0" ]
null
null
null
src/arclib.py
kbines/ARC
abb64e8833a4c1c7bd5dfa1bc8755415420f58cd
[ "Apache-2.0" ]
null
null
null
"""NUI Galway CT5132/CT5148 Programming and Tools for AI (James McDermott) Common functions for Assignment 3 Student name(s): Keith Bines Student ID(s): 19234297 """ import json # function to get json from file def get_json(task_file): if task_file[-5:] != '.json': task_file = task_file + '.json' wit...
34.970588
115
0.606812
ef780822e777ab569daff07574e24e8a5de7e804
27,482
py
Python
Lib/_collections_abc.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
1
2020-10-25T16:33:22.000Z
2020-10-25T16:33:22.000Z
Lib/_collections_abc.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
null
null
null
Lib/_collections_abc.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
null
null
null
# Copyright 2007 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Abstract Base Classes (ABCs) for collections, according to PEP 3119. Unit tests are in test_collections. """ from abc import ABCMeta, abstractmethod import sys GenericAlias = type(list[int]) __all__ ...
26.629845
88
0.57474
f4dc09dda262e4b5e2d3e3010ee09c660c2da201
1,928
py
Python
metrics/sample_edited.py
iviazovetskyi/rewriting
1aec0d4dd8cee8de7195c6a49c16ccaeaeb31718
[ "MIT" ]
null
null
null
metrics/sample_edited.py
iviazovetskyi/rewriting
1aec0d4dd8cee8de7195c6a49c16ccaeaeb31718
[ "MIT" ]
null
null
null
metrics/sample_edited.py
iviazovetskyi/rewriting
1aec0d4dd8cee8de7195c6a49c16ccaeaeb31718
[ "MIT" ]
1
2020-10-27T04:49:38.000Z
2020-10-27T04:49:38.000Z
import os import json import argparse import shutil from tqdm import tqdm import torch from utils.stylegan2 import load_seq_stylegan from utils.pidfile import reserve_dir from utils.imgsave import SaveImagePool from utils import zdataset from torchvision.transforms import ToPILImage from rewrite import ganrewrite fro...
31.096774
87
0.725622
061ab38807fcb37c05ea8f657d941a10821861a0
602
py
Python
examples/single_queue_mode.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
examples/single_queue_mode.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
examples/single_queue_mode.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
import cv2 from camio import Camera camera = Camera( src=0, # set a source fps=None, # Automatic set fps size=None, # Automatic set of the size resolution emitterIsEnabled=False, # Disable callbacks backgroundIsEnabled=True, # Enable background ...
23.153846
62
0.606312
8075f67ccb745afc13b2398018887617d7b397c7
347
py
Python
py/cap3/whiletrue.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
2
2020-03-21T19:12:10.000Z
2020-03-27T03:59:41.000Z
py/cap3/whiletrue.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
13
2020-03-20T01:27:57.000Z
2020-08-08T18:20:29.000Z
py/cap3/whiletrue.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
null
null
null
# USANDO UN WHILE # Tenemos que realizar una asignacion previa # que permita entrar al ciclo n = -1 while n < 0: n = input('Digite nro positivo ') print 'El dato es valido' # USANDO UN WHILE TRUE # Hay que poner la condicion de salida while True: n = input('Digite nro positivo ') if n >= 0: break...
20.411765
44
0.665706
c4ffa680af3c4224895d5d9261339410163d8735
422
py
Python
efny2019/wsgi.py
mikephelan/efny2019
1a40e381876e69e1a94434980b108f06c82e7119
[ "MIT" ]
null
null
null
efny2019/wsgi.py
mikephelan/efny2019
1a40e381876e69e1a94434980b108f06c82e7119
[ "MIT" ]
null
null
null
efny2019/wsgi.py
mikephelan/efny2019
1a40e381876e69e1a94434980b108f06c82e7119
[ "MIT" ]
null
null
null
""" WSGI config for DjangoEx project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.en...
24.823529
82
0.734597
c69beef8b28ee697cd37a7d7bc6a5fa32a5dea4b
9,147
py
Python
scold/system.py
Xion/SublimeScold
13c97bceed428bb9ac813ccb8194a6664ec9f2d9
[ "BSD-2-Clause" ]
5
2015-06-11T19:21:40.000Z
2016-01-02T16:13:50.000Z
scold/system.py
Xion/SublimeScold
13c97bceed428bb9ac813ccb8194a6664ec9f2d9
[ "BSD-2-Clause" ]
null
null
null
scold/system.py
Xion/SublimeScold
13c97bceed428bb9ac813ccb8194a6664ec9f2d9
[ "BSD-2-Clause" ]
null
null
null
""" Utilities for opening files or URLs in the registered default application and for sending e-mail using the user's preferred composer. Taken from the following recipe: http://code.activestate.com/recipes/511443-cross-platform-startfile-and-mailto-functions/ """ __version__ = '1.1' __all__ = ['open', 'mailto'] imp...
31.650519
89
0.595605
2016de8879329b222b338afed3d5bbcdf1bded2b
739
py
Python
2020/2 - Nesting Depth.py
yashtazor/Google-Code-Jam-Problems
0f476bee6c8e0c018f330f52513c61425ab3c6bc
[ "MIT" ]
1
2020-05-09T06:35:05.000Z
2020-05-09T06:35:05.000Z
2020/2 - Nesting Depth.py
yashtazor/Google-Code-Jam-Problems
0f476bee6c8e0c018f330f52513c61425ab3c6bc
[ "MIT" ]
null
null
null
2020/2 - Nesting Depth.py
yashtazor/Google-Code-Jam-Problems
0f476bee6c8e0c018f330f52513c61425ab3c6bc
[ "MIT" ]
null
null
null
t = int(input()) for i in range(t): bracks = [] ans = '' lb = 0 rb = 0 s = input() l = list(s) for j in range(1, len(l)): if(int(l[j-1]) >= int(l[j])): brac = int(l[j-1]) - int(l[j]) bracks.append(')'*brac) else: brac = int(l[j])...
15.081633
42
0.351827
f0c1ab905732e7da41ef01051fddcf99016fcf77
383
py
Python
praticas_SOII_Fatec/ImportandoModulos/Pratica4/main.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
1
2020-06-26T17:57:35.000Z
2020-06-26T17:57:35.000Z
praticas_SOII_Fatec/ImportandoModulos/Pratica4/main.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
null
null
null
praticas_SOII_Fatec/ImportandoModulos/Pratica4/main.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
null
null
null
import os file_path = '/home/hleca/Desktop/pythonProject/praticas_sooII/ImportandoModulos/Pratica3/arquivo.txt' # Usando o with open não precisamos dar comando para fechar o arquivo with open(file_path, 'r') as reader: for line in reader: print(line) # Usando o open precisamos dar o comando para fechar o...
27.357143
101
0.744125
5a6e79f2275522feb78f4bd9866dc674eb12f5a8
28,117
py
Python
serums/models.py
drjdlarson/serums
0d5b04a82d37733f9e64a3ec278cef5337d83af4
[ "MIT" ]
null
null
null
serums/models.py
drjdlarson/serums
0d5b04a82d37733f9e64a3ec278cef5337d83af4
[ "MIT" ]
null
null
null
serums/models.py
drjdlarson/serums
0d5b04a82d37733f9e64a3ec278cef5337d83af4
[ "MIT" ]
null
null
null
"""Defines various distribution models.""" import numpy as np import numpy.random as rnd import scipy.stats as stats from warnings import warn import serums.enums as enums class BaseSingleModel: """Generic base class for distribution models. This defines the required functions and provides their recommended...
31.450783
139
0.588114
0d1ba9942db72b23c3cc762ccaf81b86971befd8
7,102
py
Python
benchmark/scripts/table.py
akazachk/UnitCommitment2.jl
c3b848ab2c57783a79a691ba9d32c915cad19835
[ "BSD-3-Clause" ]
null
null
null
benchmark/scripts/table.py
akazachk/UnitCommitment2.jl
c3b848ab2c57783a79a691ba9d32c915cad19835
[ "BSD-3-Clause" ]
null
null
null
benchmark/scripts/table.py
akazachk/UnitCommitment2.jl
c3b848ab2c57783a79a691ba9d32c915cad19835
[ "BSD-3-Clause" ]
null
null
null
# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment # Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from pathlib import Path import pandas as pd import re from tabulate import tabulate def pro...
38.182796
120
0.549845
bdd4faf01f0be38888beb966b6383c5c7144341a
18,892
py
Python
rtg/pipeline.py
isi-vista/rtg
149415f424f2a6585cbe0d97f0007b8b0b53d164
[ "Apache-2.0" ]
null
null
null
rtg/pipeline.py
isi-vista/rtg
149415f424f2a6585cbe0d97f0007b8b0b53d164
[ "Apache-2.0" ]
null
null
null
rtg/pipeline.py
isi-vista/rtg
149415f424f2a6585cbe0d97f0007b8b0b53d164
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Author: Thamme Gowda [tg (at) isi (dot) edu] # Created: 3/9/19 import argparse import os from rtg import log, TranslationExperiment as Experiment, __version__, debug_mode from rtg.exp import load_conf from pathlib import Path from typing import Dict, List, Optional, Tuple, Union from rtg.modu...
45.854369
119
0.583104
0ba5201628f1b259e9996c68323ad472b7f27484
590
py
Python
train.py
xsir317/AlphaRenju
d5fdcf8d1442e4e43661a4cee88c95d5c25fd45a
[ "MIT" ]
6
2019-02-22T17:47:15.000Z
2020-08-28T18:46:05.000Z
train.py
xsir317/AlphaRenju
d5fdcf8d1442e4e43661a4cee88c95d5c25fd45a
[ "MIT" ]
null
null
null
train.py
xsir317/AlphaRenju
d5fdcf8d1442e4e43661a4cee88c95d5c25fd45a
[ "MIT" ]
null
null
null
from game import Game #from policy_value_net import PolicyValueNet from policy_value_net_residual import PolicyValueNet from players import MCTSPlayer from trainer import Trainer #new policy network #new Game #set game player #init_model = './renju' init_model = './master' policy_value_net = PolicyValueNet(model_file=...
24.583333
76
0.794915
4059a01ed76c0a3726374bae57cc2c88bad3268b
894
py
Python
flaskrestful/DjangoProject/App/migrations/0001_initial.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskrestful/DjangoProject/App/migrations/0001_initial.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskrestful/DjangoProject/App/migrations/0001_initial.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-08-16 06:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Grade'...
27.9375
114
0.564877
8425a615f4cd59999f2d82a6a5c3713161e0f61f
2,974
py
Python
test.py
mwizasimbeye11/Makumbi
2cf6214c6dab830b7e87aa8558d2b138cda0f54a
[ "MIT" ]
null
null
null
test.py
mwizasimbeye11/Makumbi
2cf6214c6dab830b7e87aa8558d2b138cda0f54a
[ "MIT" ]
null
null
null
test.py
mwizasimbeye11/Makumbi
2cf6214c6dab830b7e87aa8558d2b138cda0f54a
[ "MIT" ]
3
2016-05-18T10:47:57.000Z
2017-08-31T14:52:58.000Z
from apixu.client import ApixuClient, ApixuException import MySQLdb api_key = 'GET YOU API KEY FROM APIXU.COM' client = ApixuClient(api_key) db = MySQLdb.connect("localhost", "root", "", "zambia_weather") cursor = db.cursor() # Town names array, helps to grab the data for each specific town. towns_one = ['Chadiza', 'C...
47.206349
128
0.63887
b33c6c5d123666f7fb7057103fd50165e0004c5d
2,024
gyp
Python
gyp/pdfviewer_lib.gyp
ecoal95/skia
e24d96fc38d8dc96eeeb4915cc21bf7b31178844
[ "BSD-3-Clause" ]
111
2015-01-13T22:01:50.000Z
2021-06-10T15:32:48.000Z
gyp/pdfviewer_lib.gyp
ecoal95/skia
e24d96fc38d8dc96eeeb4915cc21bf7b31178844
[ "BSD-3-Clause" ]
129
2015-01-14T16:07:02.000Z
2020-03-11T19:44:42.000Z
gyp/pdfviewer_lib.gyp
ecoal95/skia
e24d96fc38d8dc96eeeb4915cc21bf7b31178844
[ "BSD-3-Clause" ]
64
2015-01-14T16:45:39.000Z
2021-09-08T11:16:05.000Z
# GYP file to build pdfviewer. # # To build on Linux: # ./gyp_skia pdfviewer.gyp && make pdfviewer # { 'targets': [ { 'target_name': 'pdfviewer_lib', 'type': 'static_library', 'sources': [ # FIXME: Include directory is named "inc" (instead of "include") in # order to not be cons...
38.923077
85
0.647233
e8e126385a3325b54608c2b7ff872037fe2a302e
9,768
py
Python
docs/conf.py
KelSolaar/anytree
56725db44f5cabb1ebcaf4f8e9bb3786e0e80002
[ "Apache-2.0" ]
1
2019-01-24T21:20:38.000Z
2019-01-24T21:20:38.000Z
docs/conf.py
KelSolaar/anytree
56725db44f5cabb1ebcaf4f8e9bb3786e0e80002
[ "Apache-2.0" ]
null
null
null
docs/conf.py
KelSolaar/anytree
56725db44f5cabb1ebcaf4f8e9bb3786e0e80002
[ "Apache-2.0" ]
1
2019-07-29T06:45:30.000Z
2019-07-29T06:45:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # anytree documentation build configuration file, created by # sphinx-quickstart on Fri Aug 26 19:57:13 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
31.509677
84
0.71335
09d88d54f0a454776c4e1e3751322e6399384159
6,020
py
Python
RSA_py/src/sieve.py
R3DDY97/crypto-py
ffc2ddb53ea9ed077fea746c92c63dc6f6d3e4df
[ "MIT" ]
3
2018-06-18T15:12:23.000Z
2020-09-10T16:02:13.000Z
RSA_py/src/sieve.py
R3DDY97/crypto-py
ffc2ddb53ea9ed077fea746c92c63dc6f6d3e4df
[ "MIT" ]
null
null
null
RSA_py/src/sieve.py
R3DDY97/crypto-py
ffc2ddb53ea9ed077fea746c92c63dc6f6d3e4df
[ "MIT" ]
null
null
null
from bisect import bisect from array import array as _array def _arange(a, b): ar = _array('l', [0] * (b - a)) for i, e in enumerate(range(a, b)): ar[i] = e return ar def as_int(n): """ Convert the argument to a builtin integer. The return value is guaranteed to be equal to the input...
30.1
76
0.534219
6270c96f33633543019c935faa107f2684b44f10
283
py
Python
libraries/botframework-streaming/botframework/streaming/payload_transport/__init__.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/botframework-streaming/botframework/streaming/payload_transport/__init__.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/botframework-streaming/botframework/streaming/payload_transport/__init__.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .payload_receiver import PayloadReceiver from .payload_sender import PayloadSender from .send_packet import SendPacket __all__ = ["PayloadReceiver", "PayloadSender", "SendPacket"]
25.727273
60
0.80212
96af0543ef6cf7f297b3102058d49371ebebbcad
1,673
py
Python
web/blueprints/helpers/finance.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
web/blueprints/helpers/finance.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
web/blueprints/helpers/finance.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
from pycroft.model.finance import Split, Transaction def build_transactions_query(account, search=None, sort_by='valid_on', sort_order=None, offset=None, limit=None, positive=None): """Build a query returning the Splits for a finance account :param Account account: The finance Ac...
37.177778
87
0.653915
01bd4ce3265e53942ef31574bba212c8a5d39d7a
16,055
py
Python
src/metarace/timy.py
ndf-zz/metarace-v1
c57e5f804cdb1f1785e1a95f2fa2a5fcc1cfa3a9
[ "MIT" ]
null
null
null
src/metarace/timy.py
ndf-zz/metarace-v1
c57e5f804cdb1f1785e1a95f2fa2a5fcc1cfa3a9
[ "MIT" ]
null
null
null
src/metarace/timy.py
ndf-zz/metarace-v1
c57e5f804cdb1f1785e1a95f2fa2a5fcc1cfa3a9
[ "MIT" ]
null
null
null
"""Alge Timy I/O helper. This module provides an interface to an Alge Timy connected via serial port. Methods are provided to read timing events as tod objects and to write commands to the Timy. A calling thread creates a timy thread and configures it via the public methods. Timing events are delivered via callback...
34.087049
79
0.531423
3f018ca4588d1d46592a69028842aa87b8b0dfd1
654
py
Python
Core Concepts/Data Preprocessing/PCA.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
null
null
null
Core Concepts/Data Preprocessing/PCA.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
null
null
null
Core Concepts/Data Preprocessing/PCA.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
1
2021-02-09T12:22:55.000Z
2021-02-09T12:22:55.000Z
from sklearn.decomposition import PCA # Set up PCA and the X vector for diminsionality reduction pca = PCA() wine_X = wine.drop("Type", axis=1) # Apply PCA to the wine dataset X vector transformed_X = pca.fit_transform(wine_X) # Look at the percentage of variance explained by the different components print(pca.expla...
31.142857
88
0.793578
55737fb35fda50bcf394d8d1ef4ddb6830fb9cff
4,309
py
Python
nabu/neuralnetworks/models/ed_decoders/rnn_decoder.py
AzizCode92/nabu
768988ce4c6fc470f843174d6d7d5807880feb10
[ "MIT" ]
117
2017-02-10T13:23:23.000Z
2022-02-20T05:31:04.000Z
nabu/neuralnetworks/models/ed_decoders/rnn_decoder.py
AzizCode92/nabu
768988ce4c6fc470f843174d6d7d5807880feb10
[ "MIT" ]
56
2017-04-26T08:51:38.000Z
2021-08-23T11:59:19.000Z
nabu/neuralnetworks/models/ed_decoders/rnn_decoder.py
AzizCode92/nabu
768988ce4c6fc470f843174d6d7d5807880feb10
[ "MIT" ]
50
2017-02-06T21:57:40.000Z
2021-05-14T23:03:07.000Z
'''@file rnn_decoder.py contains the general recurrent decoder class''' from abc import ABCMeta, abstractmethod import tensorflow as tf from nabu.neuralnetworks.models.ed_decoders import ed_decoder class RNNDecoder(ed_decoder.EDDecoder): '''a speller decoder for the LAS architecture''' __metaclass__ = ABCMet...
33.664063
79
0.603852
c0b2683b036db8c1577b99f4aeb99f6c320b62c8
2,152
py
Python
src/skmultiflow/_demos/_test_prequential.py
denisesato/scikit-multiflow
3eb4c7262bb60d7e3f65c0d3395e4572d9a8cb95
[ "BSD-3-Clause" ]
663
2017-11-16T15:48:45.000Z
2022-03-28T07:38:17.000Z
src/skmultiflow/_demos/_test_prequential.py
denisesato/scikit-multiflow
3eb4c7262bb60d7e3f65c0d3395e4572d9a8cb95
[ "BSD-3-Clause" ]
293
2017-12-16T12:33:49.000Z
2022-02-22T03:34:25.000Z
src/skmultiflow/_demos/_test_prequential.py
denisesato/scikit-multiflow
3eb4c7262bb60d7e3f65c0d3395e4572d9a8cb95
[ "BSD-3-Clause" ]
201
2017-11-30T15:52:30.000Z
2022-03-25T21:46:55.000Z
from sklearn.linear_model.passive_aggressive import PassiveAggressiveClassifier from skmultiflow.core.pipeline import Pipeline from skmultiflow.data.file_stream import FileStream from skmultiflow.evaluation.evaluate_prequential import EvaluatePrequential def demo(output_file=None, instances=40000): """ _test_preq...
37.103448
118
0.685874
00524d8d816b2650e82d79bd2a76af3b7554d642
2,457
py
Python
dlf/layers/l2_normalization.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
dlf/layers/l2_normalization.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
dlf/layers/l2_normalization.py
scheckmedia/dl-framework
8fea39e166fda0ff8fa51696831bf5cb42f3ed10
[ "Apache-2.0" ]
null
null
null
# borrowed from https://github.com/pierluigiferrari/ssd_keras/blob/master/keras_layers/keras_layer_L2Normalization.py ''' A custom Keras layer to perform L2-normalization. Copyright (C) 2018 Pierluigi Ferrari Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
38.390625
117
0.697192
4c74846c6783577cb99cdca994b3d0e383071302
1,079
py
Python
tests/proprietary_sim_types_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
tests/proprietary_sim_types_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
tests/proprietary_sim_types_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
2
2020-10-27T20:01:23.000Z
2020-11-06T23:35:05.000Z
# -*- coding: utf-8 -*- u"""test proprietary_sim_types :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern.pkcollections import PKDict import os import pytest def...
28.394737
92
0.684893
4a919dd8c8480c239df5304555afb1f2ce1c3a3d
4,758
py
Python
eth_tester/validation/outbound.py
onyb/eth-tester
871932620a72862b814a57a9576fd3bbad5030d5
[ "MIT" ]
null
null
null
eth_tester/validation/outbound.py
onyb/eth-tester
871932620a72862b814a57a9576fd3bbad5030d5
[ "MIT" ]
8
2020-06-05T21:36:23.000Z
2022-02-12T12:24:00.000Z
eth_tester/validation/outbound.py
onyb/eth-tester
871932620a72862b814a57a9576fd3bbad5030d5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from eth_utils import ( is_canonical_address, ) from eth_utils.toolz import ( partial, ) from eth_tester.constants import ( UINT256_MAX, UINT2048_MAX, ) from eth_tester.exceptions import ( ValidationError, ) from .common import ( if_not_null, if_no...
29.7375
95
0.738546
70df7d1a00c870a5d7b839c1805469474ab1ed7f
13,672
py
Python
pipeline/Step2/AlexNet_torch/train.py
dyning/AlexNet-Prod
54de9dfcf540997ff227bd92d0c7a73dc73c45aa
[ "Apache-2.0" ]
17
2021-08-11T13:42:03.000Z
2022-03-30T03:50:27.000Z
pipeline/Step2/AlexNet_torch/train.py
dyning/AlexNet-Prod
54de9dfcf540997ff227bd92d0c7a73dc73c45aa
[ "Apache-2.0" ]
11
2021-08-12T06:29:17.000Z
2021-12-23T03:15:39.000Z
pipeline/Step2/AlexNet_torch/train.py
dyning/AlexNet-Prod
54de9dfcf540997ff227bd92d0c7a73dc73c45aa
[ "Apache-2.0" ]
17
2021-08-11T14:12:38.000Z
2022-03-30T03:50:31.000Z
import datetime import os import time import torch import torch.utils.data from torch import nn import torchvision import presets import utils try: from apex import amp except ImportError: amp = None import sys sys.path.insert(0, ".") import numpy as np from reprod_log import ReprodLogger def train_one_e...
34.966752
97
0.61498
145fea4e5825a44d4d704f91d6d72733d49e0117
891
py
Python
Tests/pyc/winforms_hw.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
2
2019-09-21T22:22:30.000Z
2020-05-09T12:45:51.000Z
Tests/pyc/winforms_hw.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/pyc/winforms_hw.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
40.5
97
0.607183
8fe6c074cdf41f2a76fe84e131a1a65425dbb98c
44
py
Python
growth/microscopy/__init__.py
sebastianbernasek/growth
6d1cace75b19ad8b6130d0940584c24dd26bbe91
[ "MIT" ]
1
2022-03-01T14:48:14.000Z
2022-03-01T14:48:14.000Z
growth/microscopy/__init__.py
sbernasek/growth
6d1cace75b19ad8b6130d0940584c24dd26bbe91
[ "MIT" ]
null
null
null
growth/microscopy/__init__.py
sbernasek/growth
6d1cace75b19ad8b6130d0940584c24dd26bbe91
[ "MIT" ]
null
null
null
from .microscopy import SyntheticMicroscopy
22
43
0.886364
1ef6cc8db6187ede8a0bc813b50526b049b0ebe1
5,194
py
Python
distracting_control/camera_test.py
TmacAaron/mydrq
61c7f8cc893d999eb4147f8df4b23f860d8e9ffe
[ "MIT" ]
null
null
null
distracting_control/camera_test.py
TmacAaron/mydrq
61c7f8cc893d999eb4147f8df4b23f860d8e9ffe
[ "MIT" ]
null
null
null
distracting_control/camera_test.py
TmacAaron/mydrq
61c7f8cc893d999eb4147f8df4b23f860d8e9ffe
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
38.474074
80
0.633616
5e1d8ce57af74701fe0c3581f5e442db7a073017
5,574
py
Python
script/spider/bedtime_poem_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
null
null
null
script/spider/bedtime_poem_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
null
null
null
script/spider/bedtime_poem_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import re import os import sys import time from util import Profile, write_poem, remove_tmp_all HOME_PAGE = 'https://bedtimepoem.com/' def get_total_page_num(): response = requests.get(HOME_PAGE) soup = BeautifulSoup(response.text, features='lxml') count_cont...
30.12973
159
0.569609
7da21f289e105624fe9d2c07905b06b95b6a1d99
6,328
py
Python
pl_bolts/models/self_supervised/moco/transforms.py
yangyangkiki/pytorch-lightning-bolts
01f1a936815262ec810551c56f5ac87198be7c3f
[ "Apache-2.0" ]
2
2021-04-23T11:02:19.000Z
2021-04-23T11:22:21.000Z
pl_bolts/models/self_supervised/moco/transforms.py
yangyangkiki/pytorch-lightning-bolts
01f1a936815262ec810551c56f5ac87198be7c3f
[ "Apache-2.0" ]
5
2020-11-28T20:49:22.000Z
2021-01-09T13:50:22.000Z
pl_bolts/models/self_supervised/moco/transforms.py
yangyangkiki/pytorch-lightning-bolts
01f1a936815262ec810551c56f5ac87198be7c3f
[ "Apache-2.0" ]
1
2021-05-23T14:06:53.000Z
2021-05-23T14:06:53.000Z
import random from pl_bolts.transforms.dataset_normalizations import ( cifar10_normalization, imagenet_normalization, stl10_normalization, ) from pl_bolts.utils import _PIL_AVAILABLE, _TORCHVISION_AVAILABLE from pl_bolts.utils.warnings import warn_missing_pkg if _TORCHVISION_AVAILABLE: from torchvisio...
31.326733
116
0.607143
68c1c0f86803458a8a0794cebd3188dd12246493
4,070
py
Python
keystone/catalog/backends/templated.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
keystone/catalog/backends/templated.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
keystone/catalog/backends/templated.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundationc # # 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...
32.56
79
0.659951
29ed962b252e4a4663cc08c92e2df0170a752bbc
42,118
py
Python
isoclassify/grid/classify.py
cosmicoder/isoclassify
8cef35da50b7a1c6bb3e48c3e87dec737002474f
[ "MIT" ]
null
null
null
isoclassify/grid/classify.py
cosmicoder/isoclassify
8cef35da50b7a1c6bb3e48c3e87dec737002474f
[ "MIT" ]
null
null
null
isoclassify/grid/classify.py
cosmicoder/isoclassify
8cef35da50b7a1c6bb3e48c3e87dec737002474f
[ "MIT" ]
null
null
null
import copy import time,pdb import ephem import pandas as pd import numpy as np from astropy.io import ascii from itertools import product from .pdf import * # part of isoclassify package (to do make explicit import) from .priors import * # part of isoclassify package (to do make explicit import) from .plot import *...
34.13128
138
0.521369
d6effdbf18bce7d80e01ff62b5864b1bc05f8aa6
1,870
py
Python
conf.py
Chilipp/autosummary-issue
04fdce809a8772dcfd5a34cc86340fb1eb405930
[ "MIT" ]
null
null
null
conf.py
Chilipp/autosummary-issue
04fdce809a8772dcfd5a34cc86340fb1eb405930
[ "MIT" ]
null
null
null
conf.py
Chilipp/autosummary-issue
04fdce809a8772dcfd5a34cc86340fb1eb405930
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.62963
79
0.660963
dda2fa83646793c1ab34e2eddcaabff9b78f21ce
26,222
py
Python
server/apps/streamalias/tests/test_stream_alias_tap_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/streamalias/tests/test_stream_alias_tap_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/streamalias/tests/test_stream_alias_tap_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import datetime import json import dateutil.parser from django.utils import timezone from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from apps.org.models import Org from apps.physicaldevice.models import Device from apps.project.models import ...
39.372372
117
0.627107
730708d87b1f5d4d3790a3a9c51e468e3e6e76dc
4,747
py
Python
test_lpcnet.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
null
null
null
test_lpcnet.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
1
2020-06-17T12:07:27.000Z
2020-06-17T12:07:27.000Z
test_lpcnet.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 '''Copyright (c) 2018 Mozilla Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
35.962121
112
0.684222
7274e0fae6b0446c210011a7a6f1abb3dcdcffac
1,026
py
Python
src/psiz/utils/expand_dim_repeat.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
21
2020-04-03T21:10:05.000Z
2021-12-02T01:31:11.000Z
src/psiz/utils/expand_dim_repeat.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
14
2020-04-10T00:48:02.000Z
2021-05-25T18:06:55.000Z
psiz/utils/expand_dim_repeat.py
rgerkin/psiz
d540738462b6436a08a472d5e349ca2b813e6d47
[ "Apache-2.0" ]
4
2020-10-13T16:46:14.000Z
2021-11-10T00:08:47.000Z
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
34.2
78
0.680312
5c0277649b402e4684e84337efa846db94cbb00b
26,551
py
Python
fixture/testhelpersm_search.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
fixture/testhelpersm_search.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
fixture/testhelpersm_search.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
import re from datetime import datetime from random import randrange import calendar import time from fixture.testhelpersm import testHelperSM class testHelperSMSearch: def __init__(self, app): self.app = app def current_date_time_day(self): i = datetime.strftime(datetime.now(), "%d") ...
45.231687
154
0.608
a18bd19273e19aa8f31154ddfc09bfaccb068a6f
1,170
py
Python
mobi/consts.py
TCastus/mobilite2-back
fc38d3cbed6ebd958c84b1f4f80db633695ab65e
[ "MIT" ]
2
2021-02-17T18:37:25.000Z
2021-03-04T05:47:06.000Z
mobi/consts.py
TCastus/mobilite2-back
fc38d3cbed6ebd958c84b1f4f80db633695ab65e
[ "MIT" ]
24
2021-03-09T15:20:20.000Z
2021-06-07T11:53:34.000Z
mobi/consts.py
TCastus/mobilite2-back
fc38d3cbed6ebd958c84b1f4f80db633695ab65e
[ "MIT" ]
1
2021-02-23T15:31:28.000Z
2021-02-23T15:31:28.000Z
CONTINENTS = ( ("AS", "Asie"), ("AF", "Afrique"), ("AdN", "Amerique du Nord"), ("AdS", "Amerique du Sud"), ("EU", "Europe"), ("OC", "Oceanie"), ) DEPARTEMENTINSA = ( ("BB", "Biosciences Biochimie et Biotechnologie"), ("BIM", "Bioinformatique et Modélisation"), ("GCU", "Génie Civil e...
21.272727
54
0.506838
8e2e60ff484c92e2b9fdd07ab7c2b3fc4fec260e
67,511
py
Python
pyaedt/modules/SetupTemplates.py
pyansys/PyAEDT
312d2d2a6c091dbae4272b6ce3ff489cdd21aa21
[ "MIT" ]
12
2021-07-01T06:35:12.000Z
2021-09-22T15:53:07.000Z
pyaedt/modules/SetupTemplates.py
pyansys/PyAEDT
312d2d2a6c091dbae4272b6ce3ff489cdd21aa21
[ "MIT" ]
111
2021-07-01T16:02:36.000Z
2021-09-29T12:36:44.000Z
pyaedt/modules/SetupTemplates.py
pyansys/PyAEDT
312d2d2a6c091dbae4272b6ce3ff489cdd21aa21
[ "MIT" ]
5
2021-07-09T14:24:59.000Z
2021-09-07T12:42:03.000Z
from pyaedt.generic.general_methods import aedt_exception_handler from pyaedt.generic.DataHandlers import _dict2arg from collections import OrderedDict meshlink = [("ImportMesh", False)] autosweep = [("RangeType", "LinearStep"), ("RangeStart", "1GHz"), ("RangeEnd", "10GHz"), ("RangeStep", "1GHz")] autosweeps = [("Swee...
36.770697
117
0.609752
4970204346bb09b20f4d486beffa816ff028cf1f
3,645
py
Python
tests/models/programdb/environment/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/models/programdb/environment/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/models/programdb/environment/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# -*- coding: utf-8 -*- # # tests.models.programdb.environment.conftest.py is part of The RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """The RAMSTK Environment module test fixtures.""" # Third Party Imports import pytest from pu...
31.153846
88
0.707545