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
0c94de7d5513ef5c76eda6603058659654c0af35
692
py
Python
manage.py
flashqueen/django-tutorial
98038647a146fcff888ff2c2e38ad2ff070c96c3
[ "MIT" ]
null
null
null
manage.py
flashqueen/django-tutorial
98038647a146fcff888ff2c2e38ad2ff070c96c3
[ "MIT" ]
null
null
null
manage.py
flashqueen/django-tutorial
98038647a146fcff888ff2c2e38ad2ff070c96c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangotutorial.settings') try: from django.core.management import execute_from_command_lin...
30.086957
79
0.660405
41c18e5f199860fbaf881a46c2705ede8c107141
6,427
py
Python
src/zenml/cli/integration.py
AdamVPro/zenml
6dfba8483b1549b888341aea726362a96e407a43
[ "Apache-2.0" ]
1
2022-01-04T15:12:38.000Z
2022-01-04T15:12:38.000Z
src/zenml/cli/integration.py
AdamVPro/zenml
6dfba8483b1549b888341aea726362a96e407a43
[ "Apache-2.0" ]
null
null
null
src/zenml/cli/integration.py
AdamVPro/zenml
6dfba8483b1549b888341aea726362a96e407a43
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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...
34.005291
85
0.619107
bb4cc4ac97f6275630242dd3dee156fac969c1aa
12,642
py
Python
SongIDProcessor.py
LoopXS/SongID
417f4b04aaebb716f0e06f5b4abc8956060dd416
[ "Apache-2.0" ]
null
null
null
SongIDProcessor.py
LoopXS/SongID
417f4b04aaebb716f0e06f5b4abc8956060dd416
[ "Apache-2.0" ]
null
null
null
SongIDProcessor.py
LoopXS/SongID
417f4b04aaebb716f0e06f5b4abc8956060dd416
[ "Apache-2.0" ]
null
null
null
from ACRAPI import ACRAPI from SongIDCore import * # Save user data from the "userdata" variable contents to data/userdata.json def saveUserData(): with open('data/userdata.json', 'w') as f: json.dump(userdata, f) logger.info('User data has been saved') # Format milliseconds to minutes:seconds (us...
41.313725
236
0.591204
c016363708921a0c42ca24ff42c7b33c56109e4a
264
py
Python
pacote-download/PythonTeste/aula08.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
pacote-download/PythonTeste/aula08.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
pacote-download/PythonTeste/aula08.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
from math import sqrt num = int(input('Digite um número: ')) raiz = sqrt(num) print('A raiz de {} é igual a {}'.format(num, raiz)) import random n = random.randint(1,10) print(n) import emoji print(emoji.emojize("Olá mundo :earth_americas:" , use_aliases=True))
22
69
0.704545
bc515fb7f16d0030049b352fc412d0ce5d562fba
8,268
py
Python
aiida/backends/djsite/db/migrations/0038_data_migration_legacy_job_calculations.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
aiida/backends/djsite/db/migrations/0038_data_migration_legacy_job_calculations.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
aiida/backends/djsite/db/migrations/0038_data_migration_legacy_job_calculations.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
76.555556
205
0.611998
0c66088f5b55db8774e91713c30faf69e8fb9e63
5,665
py
Python
basic_nn_classifier.py
andreandradecosta/Adversarial_Autoencoder
255a5cc021a46d9f8320a8608f15370d3e89e29e
[ "MIT" ]
389
2017-08-22T09:11:41.000Z
2022-03-18T05:52:05.000Z
basic_nn_classifier.py
andreandradecosta/Adversarial_Autoencoder
255a5cc021a46d9f8320a8608f15370d3e89e29e
[ "MIT" ]
10
2017-11-01T19:17:06.000Z
2020-04-30T15:14:15.000Z
basic_nn_classifier.py
andreandradecosta/Adversarial_Autoencoder
255a5cc021a46d9f8320a8608f15370d3e89e29e
[ "MIT" ]
125
2017-08-03T16:09:34.000Z
2021-12-23T13:35:26.000Z
import tensorflow as tf import numpy as np import os import datetime from tensorflow.examples.tutorials.mnist import input_data # Parameters input_dim = 784 n_l1 = 1000 n_l2 = 1000 batch_size = 100 n_epochs = 1000 learning_rate = 0.001 beta1 = 0.9 z_dim = 'NA' results_path = './Results/Basic_NN_Classifier' n_labels = ...
38.020134
118
0.648367
6595e088a4944e67c37f32df2f38aa8ab780ff15
1,713
py
Python
Adventure.py
Phatdeluxe/Text_based_adventure
b159ff22d3e322d99d66fb6c1c68fc0e26759493
[ "MIT" ]
null
null
null
Adventure.py
Phatdeluxe/Text_based_adventure
b159ff22d3e322d99d66fb6c1c68fc0e26759493
[ "MIT" ]
null
null
null
Adventure.py
Phatdeluxe/Text_based_adventure
b159ff22d3e322d99d66fb6c1c68fc0e26759493
[ "MIT" ]
null
null
null
""" new text for the adventure """ from Player import Player from World import Location tutorial = Location('tutorial area') tutorial.description = 'A sparsely populated area with only a tree and an old man sitting beneath it.' foyer = Location('foyer') foyer.description = 'A well lit foyer with stairs leading up a...
32.320755
207
0.725044
74f5142c0673a04898fc3b25df7eb94f4b9c60f0
39,754
py
Python
tmuxp/cli.py
Iiridayn/tmuxp
c64bc95949d06b65bee04aea066420558662c963
[ "MIT" ]
null
null
null
tmuxp/cli.py
Iiridayn/tmuxp
c64bc95949d06b65bee04aea066420558662c963
[ "MIT" ]
null
null
null
tmuxp/cli.py
Iiridayn/tmuxp
c64bc95949d06b65bee04aea066420558662c963
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Command line tool for managing tmux workspaces and tmuxp configurations. tmuxp.cli ~~~~~~~~~ """ from __future__ import absolute_import import importlib import logging import os import platform import sys import click import kaptan from click.exceptions import FileError from libtmux.comm...
30.888889
88
0.616013
efb0e667edd4e73597ee0bfb2184e697678cf830
3,213
py
Python
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/settings.py
madalinfasie/cookiecutter_django
f5d84278b5bba5b421c226f2d7b3266410076d4a
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/settings.py
madalinfasie/cookiecutter_django
f5d84278b5bba5b421c226f2d7b3266410076d4a
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/settings.py
madalinfasie/cookiecutter_django
f5d84278b5bba5b421c226f2d7b3266410076d4a
[ "MIT" ]
1
2021-02-12T06:25:21.000Z
2021-02-12T06:25:21.000Z
""" Django settings for {{ cookiecutter.project_slug }} project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/set...
26.336066
91
0.693433
cdca81301093d8ccb3227b10536599d23b000f01
959
py
Python
examples/models/robust_gcn.py
EdisonLeeeee/GraphWar
78fc9bbc0e086211ca94c26a78278f41abe97f3c
[ "MIT" ]
10
2021-11-15T01:29:04.000Z
2022-03-06T06:01:13.000Z
examples/models/robust_gcn.py
EdisonLeeeee/GraphWar
78fc9bbc0e086211ca94c26a78278f41abe97f3c
[ "MIT" ]
null
null
null
examples/models/robust_gcn.py
EdisonLeeeee/GraphWar
78fc9bbc0e086211ca94c26a78278f41abe97f3c
[ "MIT" ]
1
2022-03-28T00:38:20.000Z
2022-03-28T00:38:20.000Z
import torch import torch_geometric.transforms as T from graphwar.dataset import GraphWarDataset from graphwar import set_seed from graphwar.nn.models import RobustGCN from graphwar.training import RobustGCNTrainer from graphwar.training.callbacks import ModelCheckpoint from graphwar.utils import split_nodes dataset ...
38.36
83
0.757039
1bb16831ded002352c422e394c5e1a7e26f0bc5e
13,386
py
Python
shims/qpid-proton-python/src/jms_messages_test/Sender.py
jdanekrh/qpid-interop-test
225e85788a876b58d6acf641c613da5d6225c5f3
[ "Apache-2.0" ]
1
2017-11-29T09:19:48.000Z
2017-11-29T09:19:48.000Z
shims/qpid-proton-python/src/jms_messages_test/Sender.py
jdanekrh/qpid-interop-test
225e85788a876b58d6acf641c613da5d6225c5f3
[ "Apache-2.0" ]
null
null
null
shims/qpid-proton-python/src/jms_messages_test/Sender.py
jdanekrh/qpid-interop-test
225e85788a876b58d6acf641c613da5d6225c5f3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ JMS sender shim for qpid-interop-test """ # # 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 yo...
46.479167
123
0.6329
2c62f8bfb43522edb32da8586daa9f30ff4db114
32,648
py
Python
ultracart/models/customer_query.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/customer_query.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/customer_query.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CustomerQuery(object): ...
34.731915
704
0.650392
b4ae04dd13e28504d10b4e1af26c0bfe776e8dba
72
py
Python
python/python_script/cinemaversion.py
PluginCafe/devkitchen_2018
68d5a0b98f72019982b466208471c22b9b7ba913
[ "Apache-2.0" ]
4
2018-11-01T11:05:59.000Z
2019-02-11T03:03:58.000Z
python/python_script/cinemaversion.py
ZeusbasePython/devkitchen_2018
68d5a0b98f72019982b466208471c22b9b7ba913
[ "Apache-2.0" ]
1
2018-11-05T15:21:17.000Z
2018-11-05T15:21:18.000Z
python/python_script/cinemaversion.py
ZeusbasePython/devkitchen_2018
68d5a0b98f72019982b466208471c22b9b7ba913
[ "Apache-2.0" ]
3
2018-11-02T15:43:31.000Z
2019-12-27T13:53:42.000Z
import c4d # Prints Cinema 4D version number print(c4d.GetC4DVersion())
18
33
0.791667
f6bce5d3e1e9f308d77bed7d28ea6cf27cc4140b
775
py
Python
01-Apprenez/4.06-client.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
01-Apprenez/4.06-client.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
01-Apprenez/4.06-client.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # $Id: 4.06-client.py 1.3 $ # SPDX-License-Identifier: BSD-2-Clause """ Réseau (TCP) """ import socket hote = 'localhost' port = 12800 connexion_avec_serveur = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connexion_avec_serveur.connect((hote, port)) print('Connexion étab...
25
74
0.727742
7670bfb8610bf1ee9cd3cc5b9ceed22de8a7867b
1,180
py
Python
reckoner/exception.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
192
2019-07-25T02:19:28.000Z
2022-03-24T05:25:10.000Z
reckoner/exception.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
439
2019-07-15T20:44:59.000Z
2022-03-31T19:52:00.000Z
reckoner/exception.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
16
2019-08-19T08:34:44.000Z
2022-01-16T20:23:13.000Z
# -- coding: utf-8 -- # Copyright 2019 FairwindsOps Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
24.583333
74
0.737288
2f403b75b922111487f65c44b045d7299332e195
795
py
Python
Pedestrian Detection/detection_pedestrian - Copy.py
Aditya-Baliga/Real-Time-Detection-and-Classification-of-Vehicles-and-Pedestrians-Using-Haar-Cascade-Classifier
fdc18a0a8168e94b94e40fa0483b6c0a754e2f00
[ "Unlicense" ]
12
2018-06-15T14:48:44.000Z
2022-01-02T08:28:35.000Z
Pedestrian Detection/detection_pedestrian - Copy.py
Aditya-Baliga/Real-Time-Detection-and-Classification-of-Vehicles-and-Pedestrians-Using-Haar-Cascade-Classifier
fdc18a0a8168e94b94e40fa0483b6c0a754e2f00
[ "Unlicense" ]
null
null
null
Pedestrian Detection/detection_pedestrian - Copy.py
Aditya-Baliga/Real-Time-Detection-and-Classification-of-Vehicles-and-Pedestrians-Using-Haar-Cascade-Classifier
fdc18a0a8168e94b94e40fa0483b6c0a754e2f00
[ "Unlicense" ]
2
2020-05-25T14:09:52.000Z
2021-03-02T13:01:51.000Z
# -*- coding: utf-8 -*- import cv2 print('Project Topic : Vehicle Classification') print('Research Internship on Machine learning using Images') print('By Aditya Baliga B and Aditya Yogish Pai') video_src = 'ped34.mp4' cap = cv2.VideoCapture(video_src) fgbg = cv2.createBackgroundSubtractorMOG2() bike_casc...
24.090909
62
0.631447
9816b104e42c67f2047a4e143731c03f7cc92184
250
py
Python
metagraph/tests/test_types.py
eriknw/metagraph-1
b6a4e92903e7779c31137a765cdb4852245918d2
[ "Apache-2.0" ]
null
null
null
metagraph/tests/test_types.py
eriknw/metagraph-1
b6a4e92903e7779c31137a765cdb4852245918d2
[ "Apache-2.0" ]
null
null
null
metagraph/tests/test_types.py
eriknw/metagraph-1
b6a4e92903e7779c31137a765cdb4852245918d2
[ "Apache-2.0" ]
null
null
null
import pytest from metagraph import types def test_nodemap_not_implemented(): nodemap = types.NodeMap() with pytest.raises(NotImplementedError): nodemap[0] with pytest.raises(NotImplementedError): nodemap.num_nodes()
17.857143
44
0.72
0a8205a92a24d98396babca279947db4848dcc78
258
py
Python
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
from typing import Union import json from tgbotcallbackdata.builders.base import AbstractBuilder class JSONBuilder(AbstractBuilder): def serialize_data(self, data: Union[str, int, list]) -> str: return json.dumps(data, separators=(",", ":"))
23.454545
65
0.728682
71a9eecc88f53a699473d7d8c4457e77c99412d5
1,086
py
Python
training_codes/bio2lif_model_intFire4_lr/estimation_error_LGN_only.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/bio2lif_model_intFire4_lr/estimation_error_LGN_only.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/bio2lif_model_intFire4_lr/estimation_error_LGN_only.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import numpy as np # import pandas as pd from sys import argv num_cell_type = [0, 3700, 7000, 8500, 9300, 10000, 39750, 45000] cell_type = ['Scnn1a', 'Rorb', 'Nr5a1', 'PV1', 'PV2'] tstop = 500 f_name = 'lr2_g8_8_test%dms_inh_lif_syn_z' % (tstop) def compute_estimation_error(n_file_dir, ref_file, ncol=2): series ...
41.769231
120
0.706262
190ab36dc76ee67b7c15a8c96abf954ed95a2157
10,286
py
Python
syntribos/result.py
magnologan/syntribos
e7da2d1e1e8b0724cff0d5d33e5cdaa01551bad2
[ "Apache-2.0" ]
null
null
null
syntribos/result.py
magnologan/syntribos
e7da2d1e1e8b0724cff0d5d33e5cdaa01551bad2
[ "Apache-2.0" ]
null
null
null
syntribos/result.py
magnologan/syntribos
e7da2d1e1e8b0724cff0d5d33e5cdaa01551bad2
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Rackspace # # 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...
37.540146
79
0.496889
067c09b6f2a552b9aa72b55a71741cdde3c0cbee
8,732
py
Python
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
2
2022-03-23T13:34:36.000Z
2022-03-27T22:21:08.000Z
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
1
2022-03-22T19:29:50.000Z
2022-03-22T19:29:50.000Z
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
null
null
null
import numpy as np from openbabel import openbabel as ob import logging logger = logging.getLogger() class AtomData: """Store atomic data (atomic number, coordinates, bond type, and serial number). Parameters ---------- atomic_num : int Atomic number. coord : array_like of float (size 3)...
34.928
122
0.61475
7a2844b4acda815983782a2dd43999c22f43172b
10,162
py
Python
pennylane/grouping/group_observables.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
null
null
null
pennylane/grouping/group_observables.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
null
null
null
pennylane/grouping/group_observables.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
1
2021-07-11T11:45:14.000Z
2021-07-11T11:45:14.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
40.975806
107
0.663157
61a1cdc93ad5903f9eca259714c3f29e3babc703
2,175
py
Python
docs/source/conf.py
zklaus/era5cli
b1e5a9812829a568cf0bed7322f5d4535aea53b0
[ "Apache-2.0" ]
1
2021-01-21T19:13:13.000Z
2021-01-21T19:13:13.000Z
docs/source/conf.py
aytacpacal/era5cli
39d16397e219e938d2332819f197efd775325e64
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
aytacpacal/era5cli
39d16397e219e938d2332819f197efd775325e64
[ "Apache-2.0" ]
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: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
34.52381
79
0.648276
4eed560121fca5b7de95c8a5666fe69ec9bac6a5
27,523
py
Python
muni_portal/core/models.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
null
null
null
muni_portal/core/models.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
null
null
null
muni_portal/core/models.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.postgres.fields import JSONField from django.db import models from modelcluster.fields import ParentalKey, ParentalManyToManyField from wagtail.admin.edit_handlers import FieldPanel, InlinePanel, PageChooserPanel from wagtail.api import APIField from wagtail.core.fie...
29.85141
112
0.659085
ce8a4892772e3a5ba28035c9c0fdb6219204aa36
3,723
py
Python
madgraph/iolibs/save_load_object.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2016-07-09T00:05:56.000Z
2016-07-09T00:05:56.000Z
madgraph/iolibs/save_load_object.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
4
2022-03-10T09:13:31.000Z
2022-03-30T16:15:01.000Z
madgraph/iolibs/save_load_object.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2022-03-10T09:02:00.000Z
2022-03-10T09:02:00.000Z
################################################################################ # # Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # h...
32.373913
83
0.601397
27b23ad4611861ce11513ca23a990157c6bdcb9e
8,142
py
Python
apps/wifi-104-ssdp-server/lib/ssdp.py
bluesliverx/smartthings-src
aab869a9eb944e0f5b8c648f04adaabd870b5dda
[ "Apache-2.0" ]
null
null
null
apps/wifi-104-ssdp-server/lib/ssdp.py
bluesliverx/smartthings-src
aab869a9eb944e0f5b8c648f04adaabd870b5dda
[ "Apache-2.0" ]
null
null
null
apps/wifi-104-ssdp-server/lib/ssdp.py
bluesliverx/smartthings-src
aab869a9eb944e0f5b8c648f04adaabd870b5dda
[ "Apache-2.0" ]
null
null
null
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2005, Tim Potter <tpot@samba.org> # Copyright 2006 John-Mark Gurney <gurney_j@resnet.uroegon.edu> # Copyright (C) 2006 Fluendo, S.A. (www.fluendo.com). # Copyright 2006,2007,2008,2009 Frank Scholz <coherence@beebits.net> # Co...
35.4
130
0.552813
c7a428a42174c0bc31506ba8a07bf51f84c72dfe
1,253
py
Python
modules/gsl_specfun/doc/gsl_sf_gegenpoly_3.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/gsl_specfun/doc/gsl_sf_gegenpoly_3.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/gsl_specfun/doc/gsl_sf_gegenpoly_3.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '2', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'T', }, 'simd_types' : [], 'special' : ['gsl_specfun'], 'type_defs' : [], 'typ...
27.844444
77
0.343974
1c20ad13879ebac20e38cd4e1d16aed94e35ae47
4,841
py
Python
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/__init__.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/__init__.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/__init__.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
40.341667
95
0.757901
c691a7b1d57c888b78b459e415ee7db8f5f61069
5,030
py
Python
nbdev/_nbdev.py
zonca/nbdev
3ec7eb58af4fd027d3496a18a59a31f0403647b0
[ "Apache-2.0" ]
null
null
null
nbdev/_nbdev.py
zonca/nbdev
3ec7eb58af4fd027d3496a18a59a31f0403647b0
[ "Apache-2.0" ]
2
2021-09-28T01:11:23.000Z
2022-02-26T06:50:19.000Z
nbdev/_nbdev.py
christoffer-moller/nbdev_tutorial
a05c230c8516876feca6fe7ea0860328b74375c3
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"first": "00_export.ipynb", "read_nb": "00_export.ipynb", "check_re": "00_export.ipynb", "is_export": "00_export.ipynb", "find_default_export": "00_export.ipynb", ...
41.570248
62
0.601988
3d3ca1b7afe1822b750c4f72c64e2cbccaa70bb4
10,273
py
Python
tri_star/include/tri_star/task.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tri_star/include/tri_star/task.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tri_star/include/tri_star/task.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Software License Agreement (MIT License) # # Copyright (c) 2020, tri_star # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction...
42.804167
153
0.685
8f85ef2cb65fd73a36132b84f9edf0cd6a5803af
4,210
py
Python
cyberhead/main.py
Seburath/CyberHead
b1c5d8c157ff5bb976778ff5f7901d82e41d7d3e
[ "Unlicense" ]
4
2019-10-25T05:37:32.000Z
2019-10-25T07:20:44.000Z
cyberhead/main.py
Seburath/CyberHead
b1c5d8c157ff5bb976778ff5f7901d82e41d7d3e
[ "Unlicense" ]
null
null
null
cyberhead/main.py
Seburath/CyberHead
b1c5d8c157ff5bb976778ff5f7901d82e41d7d3e
[ "Unlicense" ]
null
null
null
from flask import Flask, request, jsonify, send_from_directory from playhouse.shortcuts import model_to_dict from flask_cors import CORS, cross_origin from modules.datasets.db import DataSet from modules.strategies.db import BacktestPerform from tasker import perform_strategy, run_loader, fetch_dataset_yahoo import os ...
34.793388
208
0.764608
e28df1574ed3eb3f2ca4b699f1f801357b393990
22,778
py
Python
examples/mp/modeling/nurses_multiobj.py
arani-mohammad/docplex
375f12aaa3b99f7f362adc7c614e5a4322222d78
[ "Apache-2.0" ]
null
null
null
examples/mp/modeling/nurses_multiobj.py
arani-mohammad/docplex
375f12aaa3b99f7f362adc7c614e5a4322222d78
[ "Apache-2.0" ]
null
null
null
examples/mp/modeling/nurses_multiobj.py
arani-mohammad/docplex
375f12aaa3b99f7f362adc7c614e5a4322222d78
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2018 # -------------------------------------------------------------------------- from collections impor...
42.896422
132
0.559224
10e53bb40a621cd269a45c781ebe8253861c233b
3,399
py
Python
nsdu/loader_api.py
watarinishin/ns-dispatch-utility
3acd0d4d985c3d9eda4e2242da3d32d874ec0e69
[ "MIT" ]
6
2021-11-16T14:45:27.000Z
2022-03-04T17:30:02.000Z
nsdu/loader_api.py
watarinishin/ns-dispatch-utility
3acd0d4d985c3d9eda4e2242da3d32d874ec0e69
[ "MIT" ]
null
null
null
nsdu/loader_api.py
watarinishin/ns-dispatch-utility
3acd0d4d985c3d9eda4e2242da3d32d874ec0e69
[ "MIT" ]
null
null
null
"""API for loaders. """ import pluggy from nsdu import info dispatch_loader_specs = pluggy.HookspecMarker(info.DISPATCH_LOADER_PROJ) dispatch_loader = pluggy.HookimplMarker(info.DISPATCH_LOADER_PROJ) template_var_loader_specs = pluggy.HookspecMarker(info.TEMPLATE_VAR_LOADER_PROJ) template_var_loader = pluggy.Hooki...
20.852761
80
0.693145
c00819b0ffa1318d6981c0f63c84eb460dd6f79c
364,794
py
Python
src/biokbase/workspace/client.py
n1mus/narrative
dc7558b1a9848eb1602613c14f6b504591c7bda1
[ "MIT" ]
null
null
null
src/biokbase/workspace/client.py
n1mus/narrative
dc7558b1a9848eb1602613c14f6b504591c7bda1
[ "MIT" ]
356
2015-01-17T00:57:08.000Z
2022-03-28T11:02:55.000Z
src/biokbase/workspace/client.py
n1mus/narrative
dc7558b1a9848eb1602613c14f6b504591c7bda1
[ "MIT" ]
2
2015-01-17T00:20:25.000Z
2016-09-07T16:46:13.000Z
# -*- coding: utf-8 -*- ############################################################ # # Autogenerated by the KBase type compiler - # any changes made here will be overwritten # ############################################################ # the following is a hack to get the baseclient to import whether we're in a # p...
68.933107
88
0.661861
13ff875bb4d1bf54590ef3764ca8095009876fd2
528
py
Python
atari_constants.py
xiawenwen49/ppo
2e9ee40938eb7aa576e8e2ae290fb62cdc15f91c
[ "MIT" ]
null
null
null
atari_constants.py
xiawenwen49/ppo
2e9ee40938eb7aa576e8e2ae290fb62cdc15f91c
[ "MIT" ]
null
null
null
atari_constants.py
xiawenwen49/ppo
2e9ee40938eb7aa576e8e2ae290fb62cdc15f91c
[ "MIT" ]
null
null
null
STATE_SHAPE = [84, 84] STATE_WINDOW = 4 CONVS = [(32, 8, 4), (64, 4, 2), (64, 3, 1)] FCS = [512] # list of number of hidden units of the fully connected network, for policy PADDING = 'VALID' LSTM_UNIT = 512 FINAL_STEP = 1e7 + 3 # control the total timestep limitation RANDOM_SEED = 1 ACTORS = 8 LSTM = False # false, no...
22.956522
87
0.691288
af8ce1e293f74997c2831a49038d2d0fe859de0b
4,775
py
Python
node_listener/tests/test_openaq_worker.py
bkosciow/sensor_listener
0a3980f46c22bdefdb062f511e8d401d603d7926
[ "MIT" ]
null
null
null
node_listener/tests/test_openaq_worker.py
bkosciow/sensor_listener
0a3980f46c22bdefdb062f511e8d401d603d7926
[ "MIT" ]
null
null
null
node_listener/tests/test_openaq_worker.py
bkosciow/sensor_listener
0a3980f46c22bdefdb062f511e8d401d603d7926
[ "MIT" ]
null
null
null
__author__ = 'Bartosz Kościów' from nose.tools import assert_equal, assert_true, assert_false from nose.tools import assert_raises from nose.tools import assert_not_in from node_listener.worker.openaq_worker import OpenaqWorker from unittest.mock import MagicMock from unittest import mock class TestOpenaqWorker(objec...
53.651685
158
0.586178
6255da88aec767c5f2510dff7cdec3e3886acb2d
453
py
Python
tag_snippets/venv/Scripts/pip3-script.py
vineethmeppurath/Admader_Machine-Task--Backend-Developer
62f85ff1c26fa2786dc9c67c45b87f9b3924d6d3
[ "MIT" ]
null
null
null
tag_snippets/venv/Scripts/pip3-script.py
vineethmeppurath/Admader_Machine-Task--Backend-Developer
62f85ff1c26fa2786dc9c67c45b87f9b3924d6d3
[ "MIT" ]
null
null
null
tag_snippets/venv/Scripts/pip3-script.py
vineethmeppurath/Admader_Machine-Task--Backend-Developer
62f85ff1c26fa2786dc9c67c45b87f9b3924d6d3
[ "MIT" ]
null
null
null
#!D:\StudyWorkspace\Admaren\Admader_Machine-Task--Backend-Developer\tag_snippets\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r...
34.846154
104
0.690949
b51e14f26d56ede069b56d0d5d413f29dd2f7e8d
16,570
py
Python
model-optimizer/mo/front/tf/loader.py
XinWangIntel/openvino
fd3338b41ae067d99e131afc6406313e8bdc3c39
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/tf/loader.py
XinWangIntel/openvino
fd3338b41ae067d99e131afc6406313e8bdc3c39
[ "Apache-2.0" ]
15
2021-05-14T09:24:06.000Z
2022-02-21T13:07:57.000Z
model-optimizer/mo/front/tf/loader.py
fzhar/openvino
416f9295a5f15b24c01748cbc737fa062ebdf0e0
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import logging as log import os import re from distutils.version import LooseVersion from mo.utils.error import Error, FrameworkError from mo.utils.utils import refer_to_faq_msg from mo.utils.versions_checker import get_environment_setu...
54.686469
120
0.645685
3b805482ba702c5f1543e6b9bd4e47c80424587a
418
py
Python
app_portfolio_blog/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
null
null
null
app_portfolio_blog/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
4
2021-06-09T18:02:18.000Z
2022-01-13T03:06:24.000Z
app_portfolio_blog/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime class Comment(models.Model): blog = models.IntegerField() author = models.CharField(max_length=100) content = models.TextField() date = models.DateTimeField(default=datetime.now, blank=True) class Meta: ordering = ['-id'] def...
22
65
0.674641
f3a8cd9a1f041e0f9ea4aa879959b43d89b0d992
10,597
py
Python
ctfcli/linkage.py
mister-hai/meeplabben
7ee8bf75bc372119fecbac01e275e2c0f6873073
[ "MIT" ]
null
null
null
ctfcli/linkage.py
mister-hai/meeplabben
7ee8bf75bc372119fecbac01e275e2c0f6873073
[ "MIT" ]
null
null
null
ctfcli/linkage.py
mister-hai/meeplabben
7ee8bf75bc372119fecbac01e275e2c0f6873073
[ "MIT" ]
null
null
null
import os,sys from pathlib import Path from ctfcli.core.masterlist import Masterlist from ctfcli.core.repository import Repository from ctfcli.core.ctfdrepo import SandboxyCTFdRepository from ctfcli.core.apisession import APIHandler from ctfcli.core.gitrepo import SandboxyGitRepository from ctfcli.utils.utils import re...
39.248148
116
0.599792
8d625f7a21428d1e159b37b37cfdac8f20a2ab5c
1,213
py
Python
simple_timer.py
rafapi/ai4g-1018-luxafor
02d390d358f7fcbb9976240c5a3d81faa76a40eb
[ "MIT" ]
null
null
null
simple_timer.py
rafapi/ai4g-1018-luxafor
02d390d358f7fcbb9976240c5a3d81faa76a40eb
[ "MIT" ]
1
2018-11-01T11:30:37.000Z
2018-11-01T15:12:36.000Z
simple_timer.py
rafapi/ai4g-1018-pomolux
02d390d358f7fcbb9976240c5a3d81faa76a40eb
[ "MIT" ]
null
null
null
import time import datetime import argparse from termcolor import colored def countdown_timer(x, now=datetime.datetime.now): target = now() one_second_later = datetime.timedelta(seconds=1) for remaining in range(x, 0, -1): target += one_second_later print(colored(datetime.timedelta( ...
31.102564
77
0.638087
4cc95415676d3329a0648746f163dfc3a07c0d1e
1,068
py
Python
django_contact_form/comments/migrations/0002_auto__add_field_comments_ip.py
bakanao/django-contact-form
8d3a729140af29dd1ef1a2f1ee1695ec5f050af7
[ "MIT" ]
null
null
null
django_contact_form/comments/migrations/0002_auto__add_field_comments_ip.py
bakanao/django-contact-form
8d3a729140af29dd1ef1a2f1ee1695ec5f050af7
[ "MIT" ]
null
null
null
django_contact_form/comments/migrations/0002_auto__add_field_comments_ip.py
bakanao/django-contact-form
8d3a729140af29dd1ef1a2f1ee1695ec5f050af7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Comments.ip' db.add_column(u'comments_comments', 'ip', ...
33.375
94
0.587079
9bf891241da6b7d3d216791f73ca8e4a2582e6fb
4,738
py
Python
kujenga/wallet/wallet_pool_store.py
Kujenga-Network/kujenga-blockchain
ef1cdaa46bf780be97c63efa99ee1695a190cdf1
[ "Apache-2.0" ]
4
2021-09-19T18:58:56.000Z
2022-02-09T04:30:02.000Z
kujenga/wallet/wallet_pool_store.py
Kujenga-Network/kujenga-blockchain
ef1cdaa46bf780be97c63efa99ee1695a190cdf1
[ "Apache-2.0" ]
11
2021-09-14T01:07:54.000Z
2021-10-04T17:06:12.000Z
kujenga/wallet/wallet_pool_store.py
Kujenga-Network/kujenga-blockchain
ef1cdaa46bf780be97c63efa99ee1695a190cdf1
[ "Apache-2.0" ]
null
null
null
import logging from typing import List, Tuple, Dict, Optional import aiosqlite from kujenga.types.coin_spend import CoinSpend from kujenga.util.db_wrapper import DBWrapper from kujenga.util.ints import uint32 log = logging.getLogger(__name__) class WalletPoolStore: db_connection: aiosqlite.Connection db_wr...
40.844828
119
0.64943
2bf87917270d8898a7ea245479cb4f536a39f771
16,153
py
Python
qiskit/execute_function.py
biblio-techers/Qiskit-Fall-Fest-2021
17bb4f21d4c7f4723c43b87ebae21196e8aa53c9
[ "Apache-2.0" ]
1
2021-09-25T18:49:52.000Z
2021-09-25T18:49:52.000Z
qiskit/execute_function.py
biblio-techers/Qiskit-Fall-Fest-2021
17bb4f21d4c7f4723c43b87ebae21196e8aa53c9
[ "Apache-2.0" ]
6
2021-07-19T21:31:40.000Z
2022-03-30T07:10:09.000Z
qiskit/execute_function.py
biblio-techers/Qiskit-Fall-Fest-2021
17bb4f21d4c7f4723c43b87ebae21196e8aa53c9
[ "Apache-2.0" ]
1
2020-04-15T07:23:23.000Z
2020-04-15T07:23:23.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
39.493888
100
0.623537
aae06e17043a4441bbd916e86d2ae380a3311fed
1,432
py
Python
guess_the_number.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
guess_the_number.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
guess_the_number.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
import random import simplegui range_limit = 100 def new_game(): # initialize global variables global secret_number, range_limit, num_guess print "=== GUESS THE NUMBER ===" num_guess = 0 secret_number = random.randrange(0, range_limit) def range100(): # changes the range to...
25.122807
75
0.615922
a6947d928fc34320bc8d630a8c16db394457e7d0
1,595
py
Python
blender-processing-scripts/export/glb.py
MikeFesta/3xr
e4b8a7a0db61c9247d590f293f67c9baacf77a7f
[ "Apache-2.0" ]
7
2021-11-16T14:26:47.000Z
2021-12-22T13:27:24.000Z
blender-processing-scripts/export/glb.py
MikeFesta/3xr
e4b8a7a0db61c9247d590f293f67c9baacf77a7f
[ "Apache-2.0" ]
null
null
null
blender-processing-scripts/export/glb.py
MikeFesta/3xr
e4b8a7a0db61c9247d590f293f67c9baacf77a7f
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 import bpy import os from xrs import automate as xra # global variables MODEL_NAME = xra.get_filename() EXPORT_DIR = xra.get_sibling_dir("final") TEXTURES_DIR = xra.get_sibling_dir("textures/.generated") xra.log_verbose("Preparing " + MODEL_NAME + " for glb export") # Update leg...
29.537037
94
0.774922
60e67eb11261e08d11ece2b38bdabe20dbc6fc38
2,195
py
Python
actions/kubectl-actions.py
mkalcok/charm-kubernetes-master
6272a8b68ef75fe6a2bfd2467bf59da6632d5b48
[ "ECL-2.0", "Apache-2.0" ]
14
2019-07-24T08:11:59.000Z
2021-11-03T10:21:33.000Z
actions/kubectl-actions.py
mkalcok/charm-kubernetes-master
6272a8b68ef75fe6a2bfd2467bf59da6632d5b48
[ "ECL-2.0", "Apache-2.0" ]
112
2019-04-06T06:38:39.000Z
2022-01-27T19:54:49.000Z
actions/kubectl-actions.py
mkalcok/charm-kubernetes-master
6272a8b68ef75fe6a2bfd2467bf59da6632d5b48
[ "ECL-2.0", "Apache-2.0" ]
40
2019-04-08T13:32:53.000Z
2022-01-04T10:11:22.000Z
#!/usr/local/sbin/charm-env python3 import os import json import tempfile import subprocess from charmhelpers.core.hookenv import action_get, action_set, action_fail, action_name def _kubectl(args): """ Executes kubectl with args as arguments """ snap_bin = os.path.join(os.sep, "snap", "bin") env ...
28.881579
86
0.6082
6c612414e5a1f0c68cdd64ba5b2304503f06a331
6,879
py
Python
interviewing.py
alexantoinefortin/interviewing
f030e25a2628b6258e2b3d28b2c659dd58c1fbca
[ "MIT" ]
null
null
null
interviewing.py
alexantoinefortin/interviewing
f030e25a2628b6258e2b3d28b2c659dd58c1fbca
[ "MIT" ]
11
2017-07-24T23:15:49.000Z
2017-09-06T20:57:17.000Z
interviewing.py
alexantoinefortin/interviewing
f030e25a2628b6258e2b3d28b2c659dd58c1fbca
[ "MIT" ]
null
null
null
""" Alex-Antoine Fortin Sunday, July 23rd 2017 Description Web-app to record feedback about a candidate met during an interview at AmFam """ from webtools import PrefixMiddleware, run_server ##Added import webtools as w import flask, json import datetime from pymongo import MongoClient from flask import Flask, sessio...
49.489209
179
0.675534
b7dc7fffb1c4c04cef819db80883d0cb996ea7f8
15,992
py
Python
pytext/utils/torch.py
wenhaiyang6/pytext
0b96e1a71bfd09ceb23db4285f086340f958e1cf
[ "BSD-3-Clause" ]
null
null
null
pytext/utils/torch.py
wenhaiyang6/pytext
0b96e1a71bfd09ceb23db4285f086340f958e1cf
[ "BSD-3-Clause" ]
null
null
null
pytext/utils/torch.py
wenhaiyang6/pytext
0b96e1a71bfd09ceb23db4285f086340f958e1cf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import io from typing import Dict, List, Optional, Tuple import torch # ===== the following section should be replaced once JIT provide native support @torch.jit.script def list_max(l: List[int]): max_value = l[0] # f...
37.985748
88
0.618497
b1b7a3101a49c366b288abf0a0b5fe076d2ddc05
2,967
py
Python
mastenPrototypes/attitudeIntegration.py
LyonFoster/GNC-Homework
445ce0369785b6731555602eac1e0f42cad342eb
[ "MIT" ]
null
null
null
mastenPrototypes/attitudeIntegration.py
LyonFoster/GNC-Homework
445ce0369785b6731555602eac1e0f42cad342eb
[ "MIT" ]
null
null
null
mastenPrototypes/attitudeIntegration.py
LyonFoster/GNC-Homework
445ce0369785b6731555602eac1e0f42cad342eb
[ "MIT" ]
null
null
null
from math import pi, sin, cos, atan, sqrt, atan2 import numpy as np import csv import random import savageFunctions as sav ############################################################################################################### # bruh = np.array([[2,3,4],[1,1,3]]) # # print(bruh[0,0]) # # breh = sav.skew((bruh...
29.088235
111
0.582744
db059ce4f4a98489b73d2e72633711cdfd660893
6,225
py
Python
pyeccodes/defs/grib2/template_3_1000_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/template_3_1000_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/template_3_1000_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): h.add(_.Codetable('shapeOfTheEarth', 1, "3.2.table", _.Get('masterDir'), _.Get('localDir'))) h.add(_.Unsigned('scaleFactorOfRadiusOfSphericalEarth', 1)) h.add(_.Unsigned('scaledValueOfRadiusOfSphericalEarth', 4)) h.add(_.Unsigned('scaleFactorOfEarthMajorAx...
54.605263
197
0.683373
05694c342897f338fc70bcf6656a9a535e3fed90
4,738
py
Python
lib/galaxy/model/dataset_collections/builder.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2020-03-11T15:17:32.000Z
2020-03-11T15:17:32.000Z
lib/galaxy/model/dataset_collections/builder.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
72
2019-06-06T18:52:41.000Z
2022-02-17T02:53:18.000Z
lib/galaxy/model/dataset_collections/builder.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2022-03-01T08:07:54.000Z
2022-03-01T08:07:54.000Z
from galaxy import model from .type_description import COLLECTION_TYPE_DESCRIPTION_FACTORY def build_collection(type, dataset_instances): """ Build DatasetCollection with populated DatasetcollectionElement objects corresponding to the supplied dataset instances or throw exception if this is not a vali...
41.2
123
0.723512
ec427869c3224a7ecae4e657c888a32a0f7c99ad
1,335
py
Python
learning/migrations/0001_initial.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
learning/migrations/0001_initial.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
learning/migrations/0001_initial.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-03 20:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('projects', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
36.081081
133
0.585768
18d1c59a485e7829ffc09cb3c27e68a6c55de833
1,812
py
Python
qiskit/optimization/converters/__init__.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/optimization/converters/__init__.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/optimization/converters/__init__.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
29.225806
93
0.767108
b67a6b4e7423fc387c1fff24aa450f77a2e75b0d
979
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/ddos/get.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/ddos/get.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/ddos/get.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
"""Common verify functions for ddos""" # Python import re import logging import operator # Genie from genie.utils import Dq from genie.utils.timeout import Timeout from genie.metaparser.util.exceptions import SchemaEmptyParserError log = logging.getLogger(__name__) def get_ddos_protection_arrival_rate(device, proto...
27.194444
87
0.711951
fe4e480a75b3e38786a96b435955e70664910af4
2,868
py
Python
lib/hibp.py
bbhunter/ODIN
03fb0044fe658df4d67ffbb8223060958537f17e
[ "BSD-3-Clause" ]
533
2018-01-08T07:21:36.000Z
2022-03-29T19:53:46.000Z
lib/hibp.py
bbhunter/ODIN
03fb0044fe658df4d67ffbb8223060958537f17e
[ "BSD-3-Clause" ]
14
2018-02-07T20:57:04.000Z
2020-10-19T09:32:58.000Z
lib/hibp.py
bbhunter/ODIN
03fb0044fe658df4d67ffbb8223060958537f17e
[ "BSD-3-Clause" ]
119
2018-01-11T22:40:55.000Z
2022-02-19T20:55:17.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ This module contains functions for checking email addresses against Have I Been Pwned's database of security breaches and public pastes. """ import json import click from selenium.common.exceptions import TimeoutException,NoSuchElementException,WebDriverException from ...
36.769231
99
0.650279
706a5f008037cf05f36f5875866b96d5f29de107
1,765
py
Python
setup.py
ahulist/chunky3d
4387177091d966bbd19f37f37bf070701f9fd255
[ "MIT" ]
null
null
null
setup.py
ahulist/chunky3d
4387177091d966bbd19f37f37bf070701f9fd255
[ "MIT" ]
null
null
null
setup.py
ahulist/chunky3d
4387177091d966bbd19f37f37bf070701f9fd255
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import os here = os.path.dirname(os.path.abspath(__file__)) def requirements(): with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f: return f.read().splitlines() def version(*parts): version_file = os.path.join(*parts) version_...
30.431034
98
0.606232
0a80f18fd1e6ef45e6c57e214b1c62a1d4410858
44,127
py
Python
pygeoapi/openapi.py
Canadian-Geospatial-Platform/pygeoapi
56ccf43d25a9e06ec351a57d0ebc73dc09110013
[ "MIT" ]
3
2021-02-22T13:19:14.000Z
2021-06-04T17:51:13.000Z
pygeoapi/openapi.py
Canadian-Geospatial-Platform/pygeoapi
56ccf43d25a9e06ec351a57d0ebc73dc09110013
[ "MIT" ]
null
null
null
pygeoapi/openapi.py
Canadian-Geospatial-Platform/pygeoapi
56ccf43d25a9e06ec351a57d0ebc73dc09110013
[ "MIT" ]
null
null
null
# ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2021 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in ...
42.429808
624
0.446892
47a78672dc5788592ab9a2d65202414d8d31bd56
28,876
py
Python
research/object_detection/utils/visualization_utils.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
51
2018-06-06T06:58:12.000Z
2021-09-29T18:43:03.000Z
research/object_detection/utils/visualization_utils.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
3
2018-07-17T12:53:05.000Z
2019-03-29T04:43:37.000Z
research/object_detection/utils/visualization_utils.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
39
2018-06-06T04:49:05.000Z
2021-03-25T12:25:14.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.049931
80
0.655596
e524f64a03120d8a81e45e9e5c92cdac31f280f5
8,484
py
Python
src/make_labels_pred.py
geonlee0325/image_clustering
4ad2e42a9fa273c948d0fa588ec8d510f888cadc
[ "MIT" ]
5
2019-01-11T07:51:31.000Z
2020-07-11T08:10:08.000Z
src/make_labels_pred.py
geonlee0325/image_clustering
4ad2e42a9fa273c948d0fa588ec8d510f888cadc
[ "MIT" ]
null
null
null
src/make_labels_pred.py
geonlee0325/image_clustering
4ad2e42a9fa273c948d0fa588ec8d510f888cadc
[ "MIT" ]
null
null
null
import matplotlib.image as mpimg import matplotlib.pyplot as plt import numpy as np from scipy.spatial import cKDTree from skimage.feature import plot_matches from skimage.measure import ransac from skimage.transform import AffineTransform import tensorflow as tf import tensorflow_hub as hub from glob import glob from ...
34.91358
134
0.591113
8c9d7bbab84d462007a1e8f8f42d30d63a26a349
2,527
py
Python
train-res/train-res-cifar-10.py
xAlpharax/NeuralODE-Notes-Projects
4353e2aa800c1dded5388950b0cc338f41cae63c
[ "MIT" ]
9
2020-05-30T21:41:28.000Z
2021-11-25T19:59:34.000Z
train-res/train-res-cifar-10.py
xAlpharax/NeuralODE-Notes-Projects
4353e2aa800c1dded5388950b0cc338f41cae63c
[ "MIT" ]
1
2021-08-25T16:05:03.000Z
2021-08-25T16:05:03.000Z
train-res/train-res-cifar-10.py
xAlpharax/NeuralODE-Notes-Projects
4353e2aa800c1dded5388950b0cc338f41cae63c
[ "MIT" ]
1
2020-07-14T15:56:24.000Z
2020-07-14T15:56:24.000Z
#################################################################### import tensorflow as tf from tensorflow.keras.datasets import cifar10 import sys sys.path.append('./') #################################################################### batch_size = 256 num_classes = 10 epochs = 30 image_shape = (32, 32, 3) (x...
28.715909
108
0.554412
f0238068d7663044e94c24277d6a0816433197a9
5,327
py
Python
test/functional/p2p_disconnect_ban.py
stance-project/stance-core
7a3930614506c3d949b6a425e23421c9d191f4fc
[ "MIT" ]
null
null
null
test/functional/p2p_disconnect_ban.py
stance-project/stance-core
7a3930614506c3d949b6a425e23421c9d191f4fc
[ "MIT" ]
null
null
null
test/functional/p2p_disconnect_ban.py
stance-project/stance-core
7a3930614506c3d949b6a425e23421c9d191f4fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Stancecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node disconnect and ban behavior""" import time from test_framework.test_framework import Stan...
49.324074
155
0.665478
be2a07c1994dc543231f2d1e1f50b3946bf6bf56
29,007
py
Python
core/domain/summary_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2020-12-06T14:13:40.000Z
2020-12-06T14:13:40.000Z
core/domain/summary_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
null
null
null
core/domain/summary_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2021-01-28T05:20:56.000Z
2021-01-28T05:20:56.000Z
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
39.519074
80
0.660909
68cc38f44c07b2a877b668ea61b9c9ad7076787f
7,880
py
Python
astronex/boss.py
anblaca3790/astro-nex
e5a1c5e6aa01a343894a3dfb2adc0b36df6612e1
[ "MIT" ]
1
2018-09-24T20:37:37.000Z
2018-09-24T20:37:37.000Z
astronex/boss.py
anblaca3790/astro-nex
e5a1c5e6aa01a343894a3dfb2adc0b36df6612e1
[ "MIT" ]
null
null
null
astronex/boss.py
anblaca3790/astro-nex
e5a1c5e6aa01a343894a3dfb2adc0b36df6612e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from gui.mainnb import MainPanel from zodiac import Zodiac from drawing.roundedcharts import * from drawing.aspects import SimpleAspectManager import database import config import chart from gui.mainnb import Slot boss = None import pickle from directions import solar_rev, sec_prog suffixes = {...
32.295082
117
0.582107
16c41539473568a234b2e7758827a9a7587b9d0a
7,106
py
Python
aws_lambda/pytorch/source/torch/cuda/streams.py
YevhenVieskov/ML-DL-in-production
03839abcb93a49d4f05c43aa4e446a040027cdb0
[ "MIT" ]
4
2020-09-17T11:50:17.000Z
2021-08-25T06:14:10.000Z
aws_lambda/pytorch/source/torch/cuda/streams.py
YevhenVieskov/ML-DL-in-production
03839abcb93a49d4f05c43aa4e446a040027cdb0
[ "MIT" ]
null
null
null
aws_lambda/pytorch/source/torch/cuda/streams.py
YevhenVieskov/ML-DL-in-production
03839abcb93a49d4f05c43aa4e446a040027cdb0
[ "MIT" ]
6
2020-10-16T13:28:31.000Z
2021-08-25T12:08:34.000Z
import ctypes import torch from . import cudart, check_error, cudaStatus from ._utils import _get_device_index class Stream(torch._C._CudaStreamBase): r"""Wrapper around a CUDA stream. A CUDA stream is a linear sequence of execution that belongs to a specific device, independent from other streams. See ...
33.361502
103
0.628764
0e5b4291135f0830b4a487cbfca83de34024d65d
1,503
py
Python
api/celery/worker/utils/__init__.py
keitaroinc/spodeli-novosti
f74d4658f2df02536c0cc05e60ade4c2fd7efeac
[ "BSD-2-Clause" ]
1
2018-06-07T09:21:28.000Z
2018-06-07T09:21:28.000Z
api/celery/worker/utils/__init__.py
keitaroinc/spodeli-novosti
f74d4658f2df02536c0cc05e60ade4c2fd7efeac
[ "BSD-2-Clause" ]
null
null
null
api/celery/worker/utils/__init__.py
keitaroinc/spodeli-novosti
f74d4658f2df02536c0cc05e60ade4c2fd7efeac
[ "BSD-2-Clause" ]
1
2018-06-07T09:21:31.000Z
2018-06-07T09:21:31.000Z
import logging import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header from email.utils import formataddr log = logging.getLogger(__name__) class Mailer(object): def __init__(self, config): self.email_from = formataddr( ...
30.673469
78
0.616766
6d556e8bbbdf9dc4b2587bee6d6c9411cd219783
855
py
Python
tests/test_ses/test_server.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
tests/test_ses/test_server.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-02-19T02:10:45.000Z
2022-02-19T02:15:52.000Z
tests/test_ses/test_server.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import re import sure # noqa # pylint: disable=unused-import import moto.server as server """ Test the different server responses """ def test_ses_list_identities(): backend = server.create_backend_app("ses") test_client = backend.test_client() res = test_client.get("/?A...
26.71875
79
0.716959
2da812667dc8942fb50c8988ad3b826778b14226
4,069
py
Python
sign_auto.py
bug0306/Sign-language-recognition-based-on-TensorFlow
3467e03f28f037f64787e8c8712ed7c7a9ffabfc
[ "MIT" ]
null
null
null
sign_auto.py
bug0306/Sign-language-recognition-based-on-TensorFlow
3467e03f28f037f64787e8c8712ed7c7a9ffabfc
[ "MIT" ]
null
null
null
sign_auto.py
bug0306/Sign-language-recognition-based-on-TensorFlow
3467e03f28f037f64787e8c8712ed7c7a9ffabfc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'sign.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): ...
41.948454
141
0.684198
99c2a97d3db974c4324df3a8cd2ec8ca694c60ec
1,776
py
Python
Web_App/version 0.1/app.py
greendubs/mvp
2c431bd2e7eaf5c0804026c8c3bda9f8b6069be2
[ "MIT" ]
null
null
null
Web_App/version 0.1/app.py
greendubs/mvp
2c431bd2e7eaf5c0804026c8c3bda9f8b6069be2
[ "MIT" ]
null
null
null
Web_App/version 0.1/app.py
greendubs/mvp
2c431bd2e7eaf5c0804026c8c3bda9f8b6069be2
[ "MIT" ]
null
null
null
import os from flask import Flask, request, render_template, url_for, redirect import flask import paramiko #Initialize the app by adding: app = Flask(__name__) #Add the below line to create the home page route: @app.route("/") def fileFrontPage(): return render_template('index.html') @app.route("/handleUpload...
36.244898
170
0.695383
0ecd1a120f39164ad91aa6fcbf00f19000dbb08c
801
py
Python
halo_app/settingsx.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/settingsx.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/settingsx.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
from __future__ import annotations import os import importlib from halo_app.classes import AbsBaseClass def getit(): try: from flask import current_app as app return app.config except: try: module = importlib.import_module(f"{os.getenv('HALO_BASE', 'halo_app')}.config", pac...
27.62069
113
0.615481
3c3dde7a3d41ac3c4e7eadc9595231351666b834
167
py
Python
showEmployee.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
showEmployee.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
showEmployee.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
class A: Name="\0" Salary=0 def showEmployee(self,Name,Salary=50000): print(f"{Name}:{Salary}") obj=A() obj.showEmployee("Pooja")
15.181818
46
0.550898
cad3f07f0ac8db54ea75cbe551ecb78f19053380
864
py
Python
examples/main.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
2
2020-05-29T15:35:36.000Z
2020-05-29T16:27:41.000Z
examples/main.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
12
2020-08-02T19:48:21.000Z
2021-06-08T16:56:37.000Z
examples/main.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
1
2021-03-11T08:42:09.000Z
2021-03-11T08:42:09.000Z
import sys import qdarkstyle from qtpy import QtWidgets from QScreenCast import ScreenCastToolButton class MainWindow(QtWidgets.QMainWindow): def __init__(self, app): super().__init__() self.app = app # work-around for the 'spydercustomize.SpyderQApplication' stuff ... not sure what is going on...
28.8
128
0.728009
d50f6e71f8effef42f43ddfb97d384d2b5fbb3a0
5,598
py
Python
tests/test_s3_storage.py
woven-planet/wicker
0c00e3c6f5d3915c3aa06f96dcbb5cd5b2e8982f
[ "MIT" ]
11
2022-01-20T17:08:11.000Z
2022-03-28T18:45:52.000Z
tests/test_s3_storage.py
woven-planet/wicker
0c00e3c6f5d3915c3aa06f96dcbb5cd5b2e8982f
[ "MIT" ]
null
null
null
tests/test_s3_storage.py
woven-planet/wicker
0c00e3c6f5d3915c3aa06f96dcbb5cd5b2e8982f
[ "MIT" ]
null
null
null
import os import tempfile from unittest import TestCase, mock from botocore.exceptions import ClientError # type: ignore from botocore.stub import Stubber # type: ignore from wicker.core.storage import S3DataStorage class TestS3DataStorage(TestCase): def test_bucket_key_from_s3_path(self) -> None: """...
41.161765
100
0.637906
bfb0376bd100e72a2cf956f92f667b25192881aa
3,341
py
Python
client/verta/verta/monitoring/summaries/summary_sample.py
benshaw/modeldb
5ed5765a3d1842970489dee2fd8630848cbb3baa
[ "Apache-2.0" ]
624
2020-01-18T21:10:12.000Z
2022-03-23T12:11:06.000Z
client/verta/verta/monitoring/summaries/summary_sample.py
benshaw/modeldb
5ed5765a3d1842970489dee2fd8630848cbb3baa
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/monitoring/summaries/summary_sample.py
benshaw/modeldb
5ed5765a3d1842970489dee2fd8630848cbb3baa
[ "Apache-2.0" ]
118
2019-04-12T16:01:21.000Z
2022-03-05T16:29:41.000Z
# -*- coding: utf-8 -*- """A snapshot or window of data.""" from __future__ import print_function import json from verta._internal_utils import time_utils from verta._protos.public.monitoring import Summary_pb2 as SummaryService from verta.tracking.entities import _entity from verta import data_types class Summary...
33.41
87
0.651901
f3b1456f90f2cfcfb3d7eace490113407a96231c
419
py
Python
iscso19/matlabengine.py
julesy89/pymoo-iscso19
3125cb5c1595f90cf5af348cf7816e4d37a2a954
[ "Apache-2.0" ]
null
null
null
iscso19/matlabengine.py
julesy89/pymoo-iscso19
3125cb5c1595f90cf5af348cf7816e4d37a2a954
[ "Apache-2.0" ]
null
null
null
iscso19/matlabengine.py
julesy89/pymoo-iscso19
3125cb5c1595f90cf5af348cf7816e4d37a2a954
[ "Apache-2.0" ]
null
null
null
import os import matlab.engine class MatlabEngine: __instance = None @staticmethod def get_instance(): if MatlabEngine.__instance is None: MatlabEngine.__instance = matlab.engine.start_matlab(option="") path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'matlab')...
23.277778
81
0.689737
47894b3210e020c466e3258246f43a2d00692b00
12,592
py
Python
bin/match-external-catalog.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
32
2015-08-25T00:25:23.000Z
2022-03-04T06:35:54.000Z
bin/match-external-catalog.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
644
2015-07-08T16:26:28.000Z
2022-03-30T19:09:10.000Z
bin/match-external-catalog.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
22
2015-08-24T18:27:36.000Z
2021-12-04T03:10:42.000Z
#!/usr/bin/env python from __future__ import print_function, division import numpy as np from legacypipe.internal import sharedmem from legacypipe.internal.io import iter_tractor, parse_filename, get_units, git_version import argparse import os, sys from time import time from scipy.spatial import cKDTree as KDTree ...
36.183908
156
0.562262
99f5f5fc5acb476be078c4483b187c5dd39c0273
8,554
py
Python
glance/releasenotes/source/conf.py
hoperays/openstack-ha-puppet-module
d459eabe788d81fc24e46f86a4a19907c771237b
[ "Apache-2.0" ]
null
null
null
glance/releasenotes/source/conf.py
hoperays/openstack-ha-puppet-module
d459eabe788d81fc24e46f86a4a19907c771237b
[ "Apache-2.0" ]
null
null
null
glance/releasenotes/source/conf.py
hoperays/openstack-ha-puppet-module
d459eabe788d81fc24e46f86a4a19907c771237b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
32.9
105
0.721884
3907143a187ed4f2bbd79a3a580b49157d76699e
808
py
Python
ckan/controllers/organization.py
nigelbabu/ckan
bfab554772b7530fe18ceca8681c1db55386e547
[ "Apache-2.0" ]
12
2015-08-28T16:59:07.000Z
2020-03-08T01:39:30.000Z
ckan/controllers/organization.py
nigelbabu/ckan
bfab554772b7530fe18ceca8681c1db55386e547
[ "Apache-2.0" ]
13
2019-05-02T21:01:28.000Z
2020-10-20T23:34:48.000Z
ckan/controllers/organization.py
nigelbabu/ckan
bfab554772b7530fe18ceca8681c1db55386e547
[ "Apache-2.0" ]
10
2015-05-08T04:33:20.000Z
2020-03-03T15:17:58.000Z
import ckan.controllers.group as group class OrganizationController(group.GroupController): ''' The organization controller is pretty much just the group controller. It has a few templates defined that are different and sets the group_type to organization so that the group controller knows that it is ...
40.4
76
0.77104
acdcb1c171bbe9ab15ba6e5a7a32e46f2c38cf70
907
py
Python
test_picklecat.py
bogdan-kulynych/picklecat
8008df9844f2e4c6a1812f1f90a410cd598c5444
[ "MIT" ]
null
null
null
test_picklecat.py
bogdan-kulynych/picklecat
8008df9844f2e4c6a1812f1f90a410cd598c5444
[ "MIT" ]
null
null
null
test_picklecat.py
bogdan-kulynych/picklecat
8008df9844f2e4c6a1812f1f90a410cd598c5444
[ "MIT" ]
null
null
null
import os import pickle import pytest from picklecat import picklecat @pytest.fixture(params=["dict", "list"]) def pickle_setup(request): filenames = ["__a.pkl", "__b.pkl", "__c.pkl"] if request.param == "object": vals = ["one", "two", "three"] concatenated = vals elif request.param ==...
23.25641
49
0.577729
423a74bbab385557c7a68d00206179c872bd77a4
534
py
Python
src/playground/demo.py
greghor/vim-ds-shortcuts
f47005d1a1e1a83f4f02b8d313e7f0addec66e48
[ "MIT" ]
null
null
null
src/playground/demo.py
greghor/vim-ds-shortcuts
f47005d1a1e1a83f4f02b8d313e7f0addec66e48
[ "MIT" ]
null
null
null
src/playground/demo.py
greghor/vim-ds-shortcuts
f47005d1a1e1a83f4f02b8d313e7f0addec66e48
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from matplotlib import pyplot as plt df = pd.read_csv("data/raw/titanic.csv") df["age"] = pd.to_numeric(df["age"]) fig, ax1 = plt.subplots() ax1.set_ylabel("") ax1.set_xlabel("") ax1.set_title("") ax1.grid() plt.show(block=False) df["age"] = pd.to_numeric(df["age"])] data_path...
17.225806
40
0.689139
4b19f5a233e7a3857bc0f21a3de9c2554604759d
11,279
py
Python
client/commands/tests/start_test.py
SKalt/pyre-check
cc8557f91a23c8819ef781bc978efff6465d9184
[ "MIT" ]
1
2019-05-07T15:03:58.000Z
2019-05-07T15:03:58.000Z
client/commands/tests/start_test.py
SKalt/pyre-check
cc8557f91a23c8819ef781bc978efff6465d9184
[ "MIT" ]
1
2021-05-11T20:40:20.000Z
2021-05-11T20:40:20.000Z
client/commands/tests/start_test.py
SKalt/pyre-check
cc8557f91a23c8819ef781bc978efff6465d9184
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import errno import fcntl import unittest from unittest.mock import MagicMock, call, mock_open, patch from .. import monitor # noqa from ... impor...
34.704615
88
0.480539
3444f08e79478f2e8958c5d461609165bb7e4b31
15,198
py
Python
test/table_request.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
test/table_request.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
test/table_request.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved. # # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl/ # import unittest from time import sleep from borneo import ( GetTableRequest, IllegalArgumentException, OperationNotSupport...
47.49375
96
0.684827
a85ca994b5aa1f1663511c84f08cdee0e07ddd3f
1,349
py
Python
deployment/examples/app.py
MikeBild/introduction-python
cb26bd08d3923c668148a0f8dce08526a4672244
[ "MIT" ]
4
2018-01-03T07:04:24.000Z
2018-11-22T01:45:43.000Z
deployment/examples/app.py
MikeBild/introduction-python
cb26bd08d3923c668148a0f8dce08526a4672244
[ "MIT" ]
null
null
null
deployment/examples/app.py
MikeBild/introduction-python
cb26bd08d3923c668148a0f8dce08526a4672244
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Simple types boolean = True and False string = 'Hello World!' integer = 0 complex = 0j float = 0.0 none = None print('Simple:', string) # Sequences list = [1, 'a', 0.0] tuple = (1, 'a', 0.0) dictionary = { 'key1': 'value 1', 'key2': 'value 2' } immutable_set = set(['a', 'b']) for item i...
17.519481
55
0.661972
3ef45361b8935a7a0bcfe87448b6c85978afa39a
4,170
py
Python
src/googleanalytics/connection.py
joshuajonah/python-googleanalytics
89195635a86a8fe23a25aff0b17e4a35247d3426
[ "BSD-3-Clause" ]
null
null
null
src/googleanalytics/connection.py
joshuajonah/python-googleanalytics
89195635a86a8fe23a25aff0b17e4a35247d3426
[ "BSD-3-Clause" ]
null
null
null
src/googleanalytics/connection.py
joshuajonah/python-googleanalytics
89195635a86a8fe23a25aff0b17e4a35247d3426
[ "BSD-3-Clause" ]
null
null
null
from googleanalytics.exception import GoogleAnalyticsClientError from googleanalytics import config from googleanalytics.account import Account from xml.etree import ElementTree import re import requests DEBUG = False PRETTYPRINT = True TIMEOUT = 10 class GAConnection: default_host = 'https://www.google.com' ...
38.256881
99
0.578657
34b0cc3e0402781dc71520adbf6d7f65d0c87d91
8,342
py
Python
input_data_class.py
duoergun0729/MIAA
5451f7d78462c45533d2c5f78e8c54a60ed13721
[ "Apache-2.0" ]
2
2019-12-30T22:21:10.000Z
2021-03-13T10:52:44.000Z
input_data_class.py
duoergun0729/MIAA
5451f7d78462c45533d2c5f78e8c54a60ed13721
[ "Apache-2.0" ]
null
null
null
input_data_class.py
duoergun0729/MIAA
5451f7d78462c45533d2c5f78e8c54a60ed13721
[ "Apache-2.0" ]
null
null
null
import numpy as np import ast import configparser np.random.seed(100) import os class InputData(): def __init__(self, dataset): self.dataset=dataset self.config = configparser.ConfigParser() self.config.read('config.ini') self.data_filepath=str(self.config[dataset]['all_data_pa...
57.531034
173
0.770918
1fee1964b86d95f710b4eecd80aa705ef9eeb00b
1,602
py
Python
day19.py
MichalChomo/AdventOfCode
b986930d8d00b61ff6d2d4a935db161c133ee3f4
[ "MIT" ]
1
2017-12-02T18:31:54.000Z
2017-12-02T18:31:54.000Z
day19.py
MichalChomo/AdventOfCode
b986930d8d00b61ff6d2d4a935db161c133ee3f4
[ "MIT" ]
null
null
null
day19.py
MichalChomo/AdventOfCode
b986930d8d00b61ff6d2d4a935db161c133ee3f4
[ "MIT" ]
null
null
null
def get_coords(y, x, lines): global direction if direction == 0 and y > 0: if not str.isspace(lines[y-1][x]): return (y-1, x) elif direction == 1 and x < (len(lines[y]) - 1): if not str.isspace(lines[y][x+1]): return (y, x+1) elif direction == 2 and y < (len(lines...
30.807692
55
0.465044
4eb3d92dcbe0dbfedb8304abca72bb181ada3832
1,830
py
Python
hazelcast/protocol/codec/queue_add_listener_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/queue_add_listener_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/queue_add_listener_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
from hazelcast.serialization.bits import * from hazelcast.protocol.client_message import ClientMessage from hazelcast.protocol.custom_codec import * from hazelcast.util import ImmutableLazyDataList from hazelcast.protocol.codec.queue_message_type import * from hazelcast.protocol.event_response_const import * REQUEST_T...
35.192308
96
0.766667
4b2b9b723aff4ff82dbf1db46aeb053ceaeb5863
7,565
py
Python
mediapipe/calculators/audio/mfcc_mel_calculators_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/audio/mfcc_mel_calculators_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/audio/mfcc_mel_calculators_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/audio/mfcc_mel_calculators.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pro...
48.184713
792
0.801983
86a2a738b7088ee2b768435bec7469fe592a8194
2,742
py
Python
homeassistant/components/axis/binary_sensor.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/axis/binary_sensor.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/axis/binary_sensor.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""Support for Axis binary sensors.""" from datetime import timedelta from axis.event_stream import CLASS_INPUT, CLASS_OUTPUT from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.const import CONF_MAC, CONF_TRIGGER_TIME from homeassistant.core import callback from homeassistant.he...
32.642857
71
0.68016
bf4ac1f71c5c0694b194c79aed1f10bf48f09602
22,155
py
Python
test/dynamics/models/test_rotating_frame.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
1
2022-01-21T01:47:40.000Z
2022-01-21T01:47:40.000Z
test/dynamics/models/test_rotating_frame.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
test/dynamics/models/test_rotating_frame.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.619835
100
0.629971
d696f908385d5489b76e32d8e8df6f7afe955d9c
4,480
py
Python
fn_whois_rdap/fn_whois_rdap/util/helper.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_whois_rdap/fn_whois_rdap/util/helper.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_whois_rdap/fn_whois_rdap/util/helper.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2019. All Rights Reserved. # pragma pylint: disable=unused-argument, no-self-use import socket from past.builtins import basestring, unicode import tldextract import logging import time import traceback from ipwhois import IPWhois, exceptions from datetime import date...
31.549296
87
0.676339
8b96eed5209b5b902156c5a37243dfe75cad1953
7,175
py
Python
srtm.py
konskoehler/shadow-mapper
b2a3a24dc7fd65f5d81978316baa7bea66cfbca1
[ "ISC" ]
null
null
null
srtm.py
konskoehler/shadow-mapper
b2a3a24dc7fd65f5d81978316baa7bea66cfbca1
[ "ISC" ]
null
null
null
srtm.py
konskoehler/shadow-mapper
b2a3a24dc7fd65f5d81978316baa7bea66cfbca1
[ "ISC" ]
null
null
null
#!/usr/bin/env python # Pylint: Disable name warnings # pylint: disable-msg=C0103 """ Load and process SRTM data. Downloaded from http://svn.openstreetmap.org/applications/utils/import/srtm2wayinfo/python/srtm.py Copyright (c) 2009 Hermann Kraus Permission is hereby granted, free of charge, to any person obtaining...
37.369792
98
0.603066
f9bb532ea1c4a4d5bf4ae57efa22e37ead1beb19
3,757
py
Python
source/pic2card/mystique/utils.py
sqrrrl/AdaptiveCards
951a10b3b565c80a5b350d9b7622a634aaf5cd48
[ "MIT" ]
null
null
null
source/pic2card/mystique/utils.py
sqrrrl/AdaptiveCards
951a10b3b565c80a5b350d9b7622a634aaf5cd48
[ "MIT" ]
null
null
null
source/pic2card/mystique/utils.py
sqrrrl/AdaptiveCards
951a10b3b565c80a5b350d9b7622a634aaf5cd48
[ "MIT" ]
null
null
null
import time import io from typing import Optional, Dict import glob import xml.etree.ElementTree as Et from contextlib import contextmanager from importlib import import_module import numpy as np import pandas as pd import matplotlib.pyplot as plt from PIL import Image from mystique import config # Colro map used fo...
29.81746
75
0.561884
4c8b5009668f1cfa0af9af662ac31f08858b8186
3,605
py
Python
library/calelib/migrations/0001_initial.py
IAmDrozdov/task-tracker
ddc237c89769e3e2e0943862edd6aa09cbe3ee62
[ "MIT" ]
null
null
null
library/calelib/migrations/0001_initial.py
IAmDrozdov/task-tracker
ddc237c89769e3e2e0943862edd6aa09cbe3ee62
[ "MIT" ]
null
null
null
library/calelib/migrations/0001_initial.py
IAmDrozdov/task-tracker
ddc237c89769e3e2e0943862edd6aa09cbe3ee62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-10 22:46 from __future__ import unicode_literals import django.contrib.postgres.fields import django.contrib.postgres.fields.jsonb import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migr...
49.383562
176
0.596671
a125698e4223e79c9143f7a7684238604bb6bccb
60,559
py
Python
src/transformers/modeling_tf_bert.py
HerringForks/transformers
4457750c02732b2aa99d720bd3ec3937d2172136
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_tf_bert.py
HerringForks/transformers
4457750c02732b2aa99d720bd3ec3937d2172136
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_tf_bert.py
HerringForks/transformers
4457750c02732b2aa99d720bd3ec3937d2172136
[ "Apache-2.0" ]
1
2020-11-12T05:59:09.000Z
2020-11-12T05:59:09.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, 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 License. # You may obtain a cop...
40.835469
160
0.664707
98ce6abf6c2d5cac48162323cf798025007525fd
554
py
Python
pylib/Stages/TestRun/TestRunMTTStage.py
emallove/mtt
7ea3046ada6d7cc3db7129c4644acad854101adc
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
pylib/Stages/TestRun/TestRunMTTStage.py
emallove/mtt
7ea3046ada6d7cc3db7129c4644acad854101adc
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
pylib/Stages/TestRun/TestRunMTTStage.py
emallove/mtt
7ea3046ada6d7cc3db7129c4644acad854101adc
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2015-2018 Intel, Inc. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # from __future__ import print_function from yapsy.IPlugin import IPlugin ## @addtogroup Stages # @{ # @addtogroup TestRun # [Ordering 500] Run test software package # @} ...
19.785714
58
0.687726
fc7eb559180ebe5bb31dfa5aca445713982b5af3
13,716
py
Python
tests/variational/test_estimators.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
63
2018-06-06T11:56:40.000Z
2022-03-22T08:00:59.000Z
tests/variational/test_estimators.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
39
2018-07-04T12:40:53.000Z
2022-02-09T23:48:44.000Z
tests/variational/test_estimators.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
34
2018-06-25T09:59:22.000Z
2022-02-23T12:46:33.000Z
import functools import numpy as np import pytest import tensorflow as tf from tfsnippet.utils import get_static_shape, ensure_variables_initialized from tfsnippet.variational import * from tfsnippet.variational.estimators import (_vimco_replace_diag, _vimco_control_varia...
37.99446
79
0.508384
79e2f67b2e7fb3ecb9c3bdce6f0d62044b8ea326
140
py
Python
Scripts/django-admin.py
insta-code1/Instafit-ecommerce-Django
2462463736332eae32635175dcda3b7ee149d1b7
[ "MIT" ]
null
null
null
Scripts/django-admin.py
insta-code1/Instafit-ecommerce-Django
2462463736332eae32635175dcda3b7ee149d1b7
[ "MIT" ]
null
null
null
Scripts/django-admin.py
insta-code1/Instafit-ecommerce-Django
2462463736332eae32635175dcda3b7ee149d1b7
[ "MIT" ]
null
null
null
#!d:\e-commers\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
23.333333
42
0.771429
43c3871a6dac436bea4a51fe641ca754afcad5cc
713
py
Python
scripts/object_sense_dlib/webcam_photoCapture.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
null
null
null
scripts/object_sense_dlib/webcam_photoCapture.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
null
null
null
scripts/object_sense_dlib/webcam_photoCapture.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
null
null
null
import cv2 capture = cv2.VideoCapture(2) count_frame = 0 while 1: ret, frame = capture.read() cv2.imshow("Video", frame) # ------------------------------------------------------------------------------------------------------------------ # Esc -> EXIT while while 1: k = cv2.waitKey(1) & 0xf...
27.423077
121
0.370266
c5f9ea98a5db6a904b5617edb2073eb134459ccc
12,762
py
Python
python/ccxt/async_support/lykke.py
jzajpt/ccxt
8c4dd5a5eea5b0ea1786b060069077d26b8099f6
[ "MIT" ]
null
null
null
python/ccxt/async_support/lykke.py
jzajpt/ccxt
8c4dd5a5eea5b0ea1786b060069077d26b8099f6
[ "MIT" ]
null
null
null
python/ccxt/async_support/lykke.py
jzajpt/ccxt
8c4dd5a5eea5b0ea1786b060069077d26b8099f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math class lykke (Exchange): def describe(self): return self.de...
36.672414
126
0.476023