hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6edc5a13e61a1bdcdf25bd7cc6d12ff98125bfdd
39
py
Python
Python/Tests/TestData/SendToInteractiveWorkspace/PrintInterpreter.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/SendToInteractiveWorkspace/PrintInterpreter.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/SendToInteractiveWorkspace/PrintInterpreter.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
import sys print(sys.version_info[:2])
13
27
0.769231
0
0
0
0
0
0
0
0
0
0
6eddc54b10cac9432a4ae367a239a6cc76b7801e
2,467
py
Python
datename/filetime.py
tekemperor/datename
6e2d27c6e64ecb8e07a673c2aa10ed1e661aad03
[ "MIT" ]
null
null
null
datename/filetime.py
tekemperor/datename
6e2d27c6e64ecb8e07a673c2aa10ed1e661aad03
[ "MIT" ]
null
null
null
datename/filetime.py
tekemperor/datename
6e2d27c6e64ecb8e07a673c2aa10ed1e661aad03
[ "MIT" ]
null
null
null
"""This module is designed to build timestrings from file metadata. Everything is done in seconds since the unix epoch or UTC. Author: Brian Lindsay Author Email: tekemperor@gmail.com """ import sys import os import datetime def filetime(file_path): """Returns formatted time string from file metadata. Uses mo...
34.746479
130
0.631131
266
0.107823
0
0
0
0
0
0
1,233
0.499797
6ee3a4796a1381dccf1edb9593a4f340f39bac8a
9,750
py
Python
main_cifar10.py
snu-ccl/approxCNN
49cc0e6635682f678f8501424063102fe30d7dd6
[ "CECILL-B" ]
1
2022-01-16T03:45:43.000Z
2022-01-16T03:45:43.000Z
main_cifar10.py
snu-ccl/approxCNN
49cc0e6635682f678f8501424063102fe30d7dd6
[ "CECILL-B" ]
null
null
null
main_cifar10.py
snu-ccl/approxCNN
49cc0e6635682f678f8501424063102fe30d7dd6
[ "CECILL-B" ]
null
null
null
from __future__ import print_function from tqdm import * import sys import argparse import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torch.utils.data import DataLoader from torch.optim import lr_scheduler import torch.utils.data.distributed import torchvision.tran...
41.489362
136
0.643282
0
0
0
0
0
0
0
0
2,695
0.27641
6ee540409b07f789b14091c60316fa04528be96a
1,355
py
Python
annotation_predictor/concat_detection_records.py
Inch4Tk/label_server
3d0c39dd5a0c456794a1375051ca4f93a438ebf6
[ "MIT" ]
null
null
null
annotation_predictor/concat_detection_records.py
Inch4Tk/label_server
3d0c39dd5a0c456794a1375051ca4f93a438ebf6
[ "MIT" ]
null
null
null
annotation_predictor/concat_detection_records.py
Inch4Tk/label_server
3d0c39dd5a0c456794a1375051ca4f93a438ebf6
[ "MIT" ]
null
null
null
import argparse import json import os from datetime import datetime from settings import annotation_predictor_metadata_dir def concat_detection_record(record1: str, record2: str): """ Concatenates two detection records and saves them in a new file. Args: record1: Path to first record, saved in a ...
32.261905
81
0.678967
0
0
0
0
0
0
0
0
458
0.338007
6ee63c9ba38d1ce17bcb6d0ca426d297c79f4912
2,579
py
Python
OPTIMAQS/controller/controller/device.py
jeremyforest/whole_optic_gui
7af257e739da90b8ce8b2531aa1c520959fa7bff
[ "MIT" ]
null
null
null
OPTIMAQS/controller/controller/device.py
jeremyforest/whole_optic_gui
7af257e739da90b8ce8b2531aa1c520959fa7bff
[ "MIT" ]
6
2021-02-02T23:09:14.000Z
2022-03-12T00:52:01.000Z
OPTIMAQS/controller/controller/device.py
jeremyforest/whole_optic_gui
7af257e739da90b8ce8b2531aa1c520959fa7bff
[ "MIT" ]
null
null
null
""" Generic Device class for manipulators. To make a new device, one must implement at least: * position * absolute_move """ from numpy import array import time __all__ = ['Device'] class Device(object): def __init__(self): pass def position(self, axis): ''' Current position along an...
23.66055
81
0.535479
2,394
0.928267
0
0
0
0
0
0
1,506
0.583947
6ee9460f4f92c18fd62442a8f5aa3304ac1ef00f
9,068
py
Python
phot/command_test.py
SilverRon/gppy
0ee56ca270af62afe1702fce37bef30add14f12a
[ "MIT" ]
4
2019-05-08T08:08:59.000Z
2021-12-22T08:57:46.000Z
phot/command_test.py
SilverRon/gppy
0ee56ca270af62afe1702fce37bef30add14f12a
[ "MIT" ]
null
null
null
phot/command_test.py
SilverRon/gppy
0ee56ca270af62afe1702fce37bef30add14f12a
[ "MIT" ]
2
2019-05-08T08:09:02.000Z
2019-06-27T13:41:44.000Z
# PHOTOMETRY CODE (TEST) FOR PYTHON 3.X # 2019.03.09 # GREGORY S.H. PAEK #============================================================ import os, glob import numpy as np import matplotlib.pyplot as plt from astropy.io import ascii from astropy.io import fits #from imsng import zpcal #===================================...
41.031674
168
0.585686
0
0
0
0
0
0
0
0
3,476
0.383326
6eec71c6872297c8b70027ce91c50b56182bea2c
5,440
py
Python
LetsCook/recipes/views.py
ivo-bass/iCook
c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048
[ "MIT" ]
1
2021-08-05T07:15:59.000Z
2021-08-05T07:15:59.000Z
LetsCook/recipes/views.py
ivo-bass/iCook
c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048
[ "MIT" ]
null
null
null
LetsCook/recipes/views.py
ivo-bass/iCook
c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048
[ "MIT" ]
null
null
null
from django.db import transaction from django.shortcuts import render, redirect from django.urls import reverse_lazy, reverse from django.views.generic import CreateView, ListView, DeleteView, UpdateView, DetailView from django.contrib.auth.mixins import LoginRequiredMixin from LetsCook.common.forms import CommentForm...
35.096774
96
0.662316
4,839
0.889522
0
0
0
0
0
0
1,131
0.207904
6eeeabe42368fcdd5282d7697a76a1888678e252
4,540
py
Python
myhoodApp/forms.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
myhoodApp/forms.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
myhoodApp/forms.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
from . models import Profile, Business,Myhood, PolicePosts, HealthFacilities, UserPost from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import widgets class UserRegistrationForm(UserCreationForm): class Meta: mo...
35.46875
160
0.586344
4,252
0.936564
0
0
0
0
0
0
1,615
0.355727
6eef0375ed02fe1987ef09d32e826630ef2e2fef
4,599
py
Python
ponyo/train_vae_modules.py
ajlee21/ponyo
f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75
[ "BSD-3-Clause" ]
1
2020-12-17T17:34:53.000Z
2020-12-17T17:34:53.000Z
ponyo/train_vae_modules.py
ajlee21/ponyo
f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75
[ "BSD-3-Clause" ]
37
2020-06-15T18:15:10.000Z
2022-02-10T02:34:29.000Z
ponyo/train_vae_modules.py
ajlee21/ponyo
f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75
[ "BSD-3-Clause" ]
3
2020-06-12T19:56:16.000Z
2021-04-21T15:22:33.000Z
""" Author: Alexandra Lee Date Created: 11 March 2020 Scripts related to training the VAE including 1. Normalizing gene expression data 2. Wrapper function to input training parameters and run vae training in `vae.tybalt_2layer_model` """ from ponyo import vae, utils import os import pickle import pandas as pd from s...
27.375
112
0.68928
0
0
0
0
0
0
0
0
2,270
0.493586
42b27e1114addb6efa22983ea1b8536333e5b90e
3,096
py
Python
datar/forcats/misc.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/forcats/misc.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/forcats/misc.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Provides other helper functions for factors""" from typing import Any, Iterable import numpy from pandas import Categorical, DataFrame from pipda import register_verb from pipda.utils import CallingEnvs from ..core.types import ForcatsRegType, ForcatsType, is_null, is_scalar from ..core.utils import Array from ..co...
25.377049
78
0.622739
0
0
0
0
2,472
0.79845
0
0
761
0.245801
42b41a2f0adeb62c8c1ac936436eafb38cf4632a
71
py
Python
gnn_fw/__init__.py
krzysztoffiok/gnn-classification-pipeline
b0bfb209bcf8856e68d2714b04bada9104e3c75b
[ "MIT" ]
1
2021-12-14T20:14:58.000Z
2021-12-14T20:14:58.000Z
gnn_fw/__init__.py
krzysztoffiok/gnn-classification-pipeline
b0bfb209bcf8856e68d2714b04bada9104e3c75b
[ "MIT" ]
null
null
null
gnn_fw/__init__.py
krzysztoffiok/gnn-classification-pipeline
b0bfb209bcf8856e68d2714b04bada9104e3c75b
[ "MIT" ]
null
null
null
from . import utils from . import models __all__ = ['utils', 'models']
17.75
29
0.690141
0
0
0
0
0
0
0
0
15
0.211268
42b603082633608e2a31d1e0d368cdcfc8b30d98
6,585
py
Python
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-06-27T11:26:29.000Z
2019-06-27T11:26:29.000Z
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 PIQuIL - All Rights Reserved # 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 Licens...
39.431138
88
0.603037
0
0
0
0
0
0
0
0
2,786
0.423083
42b6226b2537a6c2f5c9d9708d383f584b883497
214
py
Python
tests/test0.py
Rfys/ConcreteStructures
a6cf18dc4697643bc6acffe6d228c4f9fc55f127
[ "MIT" ]
1
2021-08-20T19:28:11.000Z
2021-08-20T19:28:11.000Z
tests/test0.py
arifyunando/ConcreteStructures
a6cf18dc4697643bc6acffe6d228c4f9fc55f127
[ "MIT" ]
null
null
null
tests/test0.py
arifyunando/ConcreteStructures
a6cf18dc4697643bc6acffe6d228c4f9fc55f127
[ "MIT" ]
null
null
null
cond = True while cond: x = int(input("Input X Value :")) y = 10 if (x > 10) else 5 if (x < 5) else x print("{} is the Y value".format(y)) cond = True if input("continue? y/n :") == "y" else False
26.75
61
0.546729
0
0
0
0
0
0
0
0
56
0.261682
42b7e07ad45d9d0be2cad9161c36276cb3b1762f
1,433
py
Python
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
import copy def next10(i): # start condition board = [3, 7] elves = [0, 1] found = False # while (len(board) < i + 10): while (not found): to_add = board[elves[0]] + board[elves[1]] if (to_add < 10): board.append(to_add) if (board[-1*len(i):] == i): ...
31.844444
66
0.491975
0
0
0
0
0
0
0
0
469
0.327285
42b83fe05de3f7690454c9ae7844d6d5c0896fb0
892
py
Python
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
import xmlrpclib from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import numpy as np from io import StringIO from numpy.linalg import inv from scipy.linalg import * # Restrict to a particular path. class RequestHandler(SimpleXMLRPCRequestHandler): ...
27.030303
59
0.734305
77
0.086323
0
0
0
0
0
0
141
0.158072
42b8718fafc7a5efe59718792e559a9ba4afb7ac
38
py
Python
jetbrains-academy/Zookeeper/Problems/Print an integer/task.py
robinpatra/ML-Study-3
6f401706a8da4cac5e63304ce09ff6ff62756d0b
[ "MIT" ]
null
null
null
jetbrains-academy/Zookeeper/Problems/Print an integer/task.py
robinpatra/ML-Study-3
6f401706a8da4cac5e63304ce09ff6ff62756d0b
[ "MIT" ]
null
null
null
jetbrains-academy/Zookeeper/Problems/Print an integer/task.py
robinpatra/ML-Study-3
6f401706a8da4cac5e63304ce09ff6ff62756d0b
[ "MIT" ]
null
null
null
# put your python code here print(10)
12.666667
27
0.736842
0
0
0
0
0
0
0
0
27
0.710526
42ba676a4b1855f63fba242958ff64fc7b10d468
1,524
py
Python
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from smtplib import SMTPException from django.conf import settings from django.core.management import BaseCommand from django.core.mail import send_mail class Command(BaseCommand): def _log(self, tag, result): label = self.style.ERROR("XXX") if result: ...
30.48
84
0.57874
1,330
0.872703
0
0
0
0
0
0
322
0.211286
42ba9ea7e400e5ef293ccdc589dfbbce586a2405
4,113
py
Python
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
358
2016-02-24T01:36:55.000Z
2022-02-20T00:10:22.000Z
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
5
2016-02-24T22:50:25.000Z
2017-01-30T07:58:00.000Z
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
27
2016-02-24T13:40:22.000Z
2021-06-30T12:04:41.000Z
"""Manages the lifecycle of a docker container. Use via the with statement: with Container(some_image) as c: for line in c.run("some_command"): print line """ import docker import click, os # sets the docker host from your environment variables client = docker.Client( **docker.utils.kwargs_from_env(a...
33.713115
125
0.623389
1,704
0.414296
410
0.099684
2,060
0.500851
0
0
1,480
0.359835
42bb4531b3deb62a4952ce2f40bb5fa396ce9810
4,321
py
Python
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np from sklearn import covariance import torch def convertToTorch(data, req_grad=False, use_cuda=False): """Convert data from numpy to torch variable, if the req_grad flag is on then the gradient calculation is turned on. """ if not torch.is_tensor(data): d...
33.757813
78
0.649618
0
0
0
0
0
0
0
0
2,168
0.501736
42bc62f46cb6d0412a2527cc37f497de098a673f
1,475
py
Python
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
1
2020-08-28T20:29:23.000Z
2020-08-28T20:29:23.000Z
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
null
null
null
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
null
null
null
def multiplica_matrizes(m1, m2): '''Minha solução para multiplicação de matrizes''' matriz = [] cont = 0 b1 = 0 for t in range(len(m1)): # números de linhas mat1 linhanova = [] for t1 in range(len(m2[0])): #números de colunas mat2 while cont < len(m2): #a1...
28.921569
70
0.492203
0
0
0
0
0
0
0
0
450
0.303849
42be5593e5ad34672a3cc8c35480ab8277503b75
366
py
Python
zoo_checks/migrations/0016_auto_20190609_2337.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
null
null
null
zoo_checks/migrations/0016_auto_20190609_2337.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
3
2019-06-01T14:56:19.000Z
2019-06-03T13:53:27.000Z
zoo_checks/migrations/0016_auto_20190609_2337.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-10 03:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('zoo_checks', '0015_auto_20190609_2303'), ] operations = [ migrations.RenameField( model_name='enclosure', old_name='user', ...
19.263158
50
0.587432
281
0.76776
0
0
0
0
0
0
108
0.295082
42c012688f03cf2033f2ea77e4e8d937fb973de4
996
py
Python
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
16
2018-01-17T06:03:23.000Z
2021-11-08T18:54:20.000Z
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
36
2018-03-16T15:17:58.000Z
2022-03-18T17:54:49.000Z
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
15
2018-01-11T09:11:13.000Z
2022-03-21T11:37:42.000Z
""" Tests of the view factors module """ import pytest import numpy as np from bifacialvf.vf import getSkyConfigurationFactors from bifacialvf.tests import ( SKY_BETA160_C05_D1, SKY_BETA20_C05_D1, SKY_BETA20_C0_D1, SKY_BETA160_C0_D1, SKY_BETA160_C1_D1, SKY_BETA20_C1_D1, SKY_BETA20_C1_D0, SKY_BETA160_C1_D0, ...
39.84
79
0.715863
0
0
0
0
634
0.636546
0
0
152
0.15261
42c0646e767e46f559cbd944cee5d0ed57e7deeb
732
py
Python
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source import horovod.tensorflow.keras as hvd def run_training_horovod(): # Horovod: initialize Horovod. hvd.init() import os print(os.environ.get('PYTHONPATH')) print(os.environ.get('PYTHONHOME')) print(f"Rank is: {hvd.rank()}") print(f"Size is: {hvd.size()}") # COMM...
24.4
89
0.715847
0
0
0
0
0
0
0
0
241
0.329235
42c257f8e741fb7454d04ca5e731e44ef13939f5
1,973
py
Python
scripts/upload_certificates_to_ssm.py
ministryofjustice/bichard7-next-shared-infrastructure
97ca93e00494e0e7df37dbf03dc6639a60fef956
[ "MIT" ]
2
2021-12-17T10:42:44.000Z
2022-03-02T11:05:57.000Z
scripts/upload_certificates_to_ssm.py
ministryofjustice/bichard7-next-shared-infrastructure
97ca93e00494e0e7df37dbf03dc6639a60fef956
[ "MIT" ]
4
2022-01-24T17:25:29.000Z
2022-03-07T10:20:52.000Z
scripts/upload_certificates_to_ssm.py
ministryofjustice/bichard7-next-shared-infrastructure
97ca93e00494e0e7df37dbf03dc6639a60fef956
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import boto3 import os import base64 """ Uploads pre-generated certificates to SSM for the ci to consume example WORKSPACE=dev-next ENVIRONMENT=sandbox aws-vault exec sandbox-shared -- make upload-certificates """ class UploadCertificates(object): ssm_client = None environment = None...
29.893939
108
0.598074
1,646
0.834263
0
0
0
0
0
0
592
0.300051
42c29f19d671bb8c233ec4e951db0332a942d9aa
1,709
py
Python
OPManager.py
eduze/GenerativeDetector
4aa85e1977abe0e400962dff12b3d0a26900bfd3
[ "Apache-2.0" ]
1
2018-05-11T03:12:11.000Z
2018-05-11T03:12:11.000Z
OPManager.py
eduze/GenerativeDetector
4aa85e1977abe0e400962dff12b3d0a26900bfd3
[ "Apache-2.0" ]
null
null
null
OPManager.py
eduze/GenerativeDetector
4aa85e1977abe0e400962dff12b3d0a26900bfd3
[ "Apache-2.0" ]
null
null
null
import multiprocessing from multiprocessing import Queue from OpenPersonDetector import OpenPersonDetector from newgen.GenerativeDetector import AbstractDetectorGenerator class ManagedOPDetector: def __init__(self, input_queue, output_queue): self.input_queue = input_queue self.output_queue = ou...
32.245283
98
0.693973
1,527
0.893505
0
0
0
0
0
0
0
0
42c3250899086a2d423b9d8448bed7aa2e3d35b4
1,832
py
Python
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
1
2022-03-05T04:20:46.000Z
2022-03-05T04:20:46.000Z
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
null
null
null
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 10:11:09 2020 @author: NAT """ import torch from torch.utils.data import Dataset import json import os from PIL import Image from utils import transform class VOCDataset(Dataset): def __init__(self, DataFolder, split): """ DataFol...
33.309091
105
0.543668
1,582
0.863537
0
0
0
0
0
0
414
0.225983
42c34955df6c0e7aa377ac0cc57e813a5826e6fa
7,564
py
Python
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
17
2019-03-08T15:33:46.000Z
2021-11-02T18:22:47.000Z
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
8
2018-12-23T21:17:36.000Z
2019-12-10T13:52:13.000Z
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
12
2019-01-26T15:00:32.000Z
2022-03-15T08:04:17.000Z
#!/usr/bin/python DOCUMENTATION = ''' --- module: to_toml, from_toml version_added: "2.8" short_description: Converts Python data to TOML and TOML to Python data. author: - "Samy Coenen (contact@samycoenen.be)" ''' import datetime import sys from collections import OrderedDict #pip3 install python-toml def to_to...
22.714715
77
0.504098
204
0.02697
0
0
0
0
0
0
1,049
0.138683
42c37f3f064078bde91e95903b77950bc9bd114f
414
py
Python
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
def divisor(n: int): divisors = [] for integer in range(1, int(n**0.5)+1): if not n % integer: divisors.append(integer) divisors.append(n//integer) divisors.sort() return divisors n = int(input()) divisors = divisor(2*n) answer = 0 for integer in divisors: pair = 2*...
21.789474
43
0.562802
0
0
0
0
0
0
0
0
0
0
42c55d5c799cf1af35cb63cb32b363a33a23a6ae
862
py
Python
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
from mongoengine import Document, IntField, StringField, FloatField, connect from pymongo import UpdateOne class Episode(Document): title = StringField(required=True) show = StringField(required=True) rating = FloatField(required=True) votes = IntField(required=True) def bulk_upsert(episodes): bu...
29.724138
93
0.611369
176
0.204176
0
0
0
0
0
0
25
0.029002
42c5815338a4f22f9d03e6f124f41c7f94882e58
5,702
py
Python
tests/__init__.py
open-contracting/pelican-backend
dee9afb48f7485f94544bcfbb977558d638098cd
[ "BSD-3-Clause" ]
1
2021-07-21T15:23:22.000Z
2021-07-21T15:23:22.000Z
tests/__init__.py
open-contracting/pelican-backend
dee9afb48f7485f94544bcfbb977558d638098cd
[ "BSD-3-Clause" ]
40
2021-06-29T23:53:14.000Z
2022-02-23T20:14:11.000Z
tests/__init__.py
open-contracting/pelican-backend
dee9afb48f7485f94544bcfbb977558d638098cd
[ "BSD-3-Clause" ]
null
null
null
import json import os from contextlib import AbstractContextManager from tools import settings def is_subset_dict(subset, superset): return subset.items() <= superset.items() def read(basename): with open(os.path.join("tests", "fixtures", f"{basename}.json")) as f: return json.load(f) class overr...
29.853403
117
0.452999
5,161
0.905121
0
0
0
0
0
0
705
0.123641
42c7d640438be57526485791184f5fce55d31e34
276
py
Python
setup.py
pystatgen/sgk
f39e1b1bc3b16d05c5043ab5d445076424dad229
[ "Apache-2.0" ]
74
2020-06-16T18:08:24.000Z
2022-02-10T06:42:30.000Z
setup.py
pystatgen/sgk
f39e1b1bc3b16d05c5043ab5d445076424dad229
[ "Apache-2.0" ]
677
2020-06-18T15:57:33.000Z
2022-03-31T16:20:50.000Z
setup.py
pystatgen/sgk
f39e1b1bc3b16d05c5043ab5d445076424dad229
[ "Apache-2.0" ]
20
2020-06-22T13:40:10.000Z
2022-03-05T03:33:13.000Z
#!/usr/bin/env python from setuptools import setup setup( # The package name along with all the other metadata is specified in setup.cfg # However, GitHub's dependency graph can't see the package unless we put this here. name="sgkit", use_scm_version=True, )
27.6
87
0.728261
0
0
0
0
0
0
0
0
189
0.684783
42c7fd5ab2f8f92a26fe730d8bb3070bbc988e18
238
py
Python
Python/5. Math/exercise2.py
mukeshmithrakumar/HackerRankSolutions
cd9e71be5e8703287b9f4efc042df8827175af1b
[ "MIT" ]
12
2019-10-29T09:49:26.000Z
2022-02-21T09:43:41.000Z
Python/5. Math/exercise2.py
ozturkosu/HackerRankSolutions
cd9e71be5e8703287b9f4efc042df8827175af1b
[ "MIT" ]
null
null
null
Python/5. Math/exercise2.py
ozturkosu/HackerRankSolutions
cd9e71be5e8703287b9f4efc042df8827175af1b
[ "MIT" ]
10
2019-12-22T03:18:50.000Z
2021-09-23T16:55:25.000Z
# Mod Divmod "https://www.hackerrank.com/challenges/python-mod-divmod/problem" # Enter your code here. Read input from STDIN. Print output to STDOUT a, b = (int(input()) for _ in range(2)) print(a // b) print(a % b) print(divmod(a, b))
26.444444
78
0.693277
0
0
0
0
0
0
0
0
147
0.617647
42caa75d97d78a5da176444b0c283b314888e8e5
4,161
py
Python
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
import subprocess import docx.table import pandas as pd from docx import Document from docx.enum.text import WD_PARAGRAPH_ALIGNMENT from docx.oxml import OxmlElement from docx.oxml import ns from docx.oxml.ns import qn from docx.shared import Inches, Pt from docx.table import _Cell from docx2pdf import convert class...
32.76378
77
0.59553
3,845
0.924057
0
0
2,547
0.612112
0
0
437
0.105023
42cafc4dfa6b35f9ab782a932c1fbfc6c8a9e175
357
py
Python
src/tests/test_import.py
williamsardar/pythonnet
a97a7768e0289e1b53ffc1ab67d89343d15bca44
[ "MIT" ]
1
2019-03-09T21:03:07.000Z
2019-03-09T21:03:07.000Z
src/tests/test_import.py
williamsardar/pythonnet
a97a7768e0289e1b53ffc1ab67d89343d15bca44
[ "MIT" ]
null
null
null
src/tests/test_import.py
williamsardar/pythonnet
a97a7768e0289e1b53ffc1ab67d89343d15bca44
[ "MIT" ]
1
2018-06-27T10:04:11.000Z
2018-06-27T10:04:11.000Z
# -*- coding: utf-8 -*- """Test the import statement.""" import pytest def test_relative_missing_import(): """Test that a relative missing import doesn't crash. Some modules use this to check if a package is installed. Relative import in the site-packages folder""" with pytest.raises(ImportError): ...
25.5
61
0.703081
0
0
0
0
0
0
0
0
221
0.619048
42cb33c39eef7cfef0c1bffc6049d2b0b685ecd4
2,879
py
Python
src/metrics/metrics.py
koonn/bunseki
deb397e40a02bb709825c70c9be81f54449ac195
[ "BSD-3-Clause" ]
null
null
null
src/metrics/metrics.py
koonn/bunseki
deb397e40a02bb709825c70c9be81f54449ac195
[ "BSD-3-Clause" ]
null
null
null
src/metrics/metrics.py
koonn/bunseki
deb397e40a02bb709825c70c9be81f54449ac195
[ "BSD-3-Clause" ]
null
null
null
"""精度評価指標を計算するモジュール y_trueと、y_pred_probaから精度評価指標を計算するための関数群 """ import sklearn.metrics as skm import numpy as np def auc(y_true, y_pred_proba): """AUCを計算する関数 Args: y_true(1-D array-like shape of [n_samples, ]): 2値の目的ラベルの配列(ラベルは0または1) y_pred_proba(1-D array-like shape of [n_samples, ]): 陽性(ラ...
27.951456
91
0.688086
0
0
0
0
0
0
0
0
2,952
0.757117
42ccc44e8009b96f149e5a73b46e05451f065677
19,759
py
Python
google/ads/google_ads/v2/proto/services/campaign_criterion_service_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v2/proto/services/campaign_criterion_service_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v2/proto/services/campaign_criterion_service_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v2/proto/services/campaign_criterion_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.pr...
48.787654
2,321
0.78673
0
0
0
0
0
0
0
0
8,799
0.445316
42cd0e4c33a465776d2f55cc4beb83f4edfc71a6
4,568
py
Python
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
from network import WLAN import urequests as requests # from ubidots tutorial https://help.ubidots.com/en/articles/961994-connect-any-pycom-board-to-ubidots-using-wi-fi-over-http from machine import I2C import adafruit_sgp30 # from https://github.com/alexmrqt/micropython-sgp30 from machine import Pin from dht import DH...
31.722222
153
0.668345
0
0
0
0
0
0
0
0
1,713
0.375
42cd2ea8378c0d8edecc4b1ef21bb286fd030c27
5,278
py
Python
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
1
2021-09-04T10:27:30.000Z
2021-09-04T10:27:30.000Z
# coding:UTF-8 import queue import serial import time import threading ACCData = [0.0] * 8 GYROData = [0.0] * 8 AngleData = [0.0] * 8 FrameState = 0 # 通过0x后面的值判断属于哪一种情况 Bytenum = 0 # 读取到这一段的第几位 CheckSum = 0 # 求和校验位 a = [0.0] * 3 w = [0.0] * 3 Angle = [0.0] * 3 count=0 start_time = time.time() interval=0.01 def ...
26.656566
122
0.48939
586
0.103205
0
0
0
0
0
0
938
0.165199
42cdb0ad159342fdea9a675f50b583e29f8c7d2a
3,082
py
Python
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
import os import unittest from torchtext.data import Field, Iterator from project.utils.utils_metrics import AverageMeter from project.utils.utils_logging import Logger from project.utils.datasets import Seq2SeqDataset data_dir = os.path.join(".", "test", "test_data") class TestIOUtils(unittest.TestCase): def ...
36.690476
110
0.621999
2,809
0.911421
0
0
0
0
0
0
255
0.082738
42d1b2020952de616b4d4ac7d2ca23c0bbc1bae9
144
py
Python
tests/test_sass-director.py
Sass-Director/Sass-Director_Sublime
57dff551213b4884c603cb69700fa2583f646202
[ "MIT" ]
4
2015-07-08T14:25:24.000Z
2021-01-20T22:11:09.000Z
tests/test_sass-director.py
Sass-Director/Sass-Director_Sublime
57dff551213b4884c603cb69700fa2583f646202
[ "MIT" ]
4
2015-06-16T19:48:59.000Z
2020-06-23T17:17:38.000Z
tests/test_sass-director.py
Sass-Director/Sass-Director_Sublime
57dff551213b4884c603cb69700fa2583f646202
[ "MIT" ]
2
2015-01-24T17:38:48.000Z
2017-04-18T13:23:46.000Z
# Load in test framework from sublime_plugin_tests import framework class TestExample(framework.TestCase): def sampleTest(): pass
18
42
0.75
73
0.506944
0
0
0
0
0
0
24
0.166667
42d1f1c104a654530b6968dd6b6bff5cdf01c509
2,156
py
Python
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
5
2021-09-07T13:33:45.000Z
2022-02-12T18:56:45.000Z
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
null
null
null
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
4
2021-09-25T06:56:38.000Z
2022-03-24T18:06:08.000Z
import torch import torch.nn as nn import numpy as np class Net(nn.Module): def __init__(self, num_classes=10): super().__init__() self.conv1 = nn.Conv2d(3, 32, kernel_size=3, padding=1) s = compute_conv_output_size(32, 3, padding=1) # 32 self.conv2 = nn.Conv2d(32, 32, kernel_siz...
35.933333
101
0.574212
1,913
0.887291
0
0
0
0
0
0
60
0.027829
42d24e6e9b4725307355ace50aeaa70550864c9b
82
py
Python
pypi_generation_files/build/lib/cab-dynamic-pricing/__init__.py
nayantaramohan/cab-dynamic-pricing
803cfaf9d1ef1d8d20e90dfdfd741b1411750328
[ "MIT" ]
5
2022-03-08T02:06:16.000Z
2022-03-17T22:04:30.000Z
pypi_generation_files/build/lib/cab-dynamic-pricing/__init__.py
nayantaramohan/cab-dynamic-pricing
803cfaf9d1ef1d8d20e90dfdfd741b1411750328
[ "MIT" ]
null
null
null
pypi_generation_files/build/lib/cab-dynamic-pricing/__init__.py
nayantaramohan/cab-dynamic-pricing
803cfaf9d1ef1d8d20e90dfdfd741b1411750328
[ "MIT" ]
1
2022-03-01T02:55:45.000Z
2022-03-01T02:55:45.000Z
# __init__.py # Version of the cab-dynamic-pricing package __version__ = "1.0.0"
16.4
44
0.731707
0
0
0
0
0
0
0
0
64
0.780488
42d4aca626e7056c3cd312d444ec2606808efc07
1,207
py
Python
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 654. Maximum Binary Tree Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. The left subtree is the maximum tree constructed from left part subarray divided by the maximum number. The right sub...
30.948718
105
0.666114
662
0.548467
0
0
0
0
0
0
536
0.444076
42d54535865b205f51d1935bf40792c7ce95c829
5,189
py
Python
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
44
2015-11-18T07:45:11.000Z
2022-03-30T06:32:18.000Z
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
110
2016-08-01T06:45:13.000Z
2021-11-30T18:45:36.000Z
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
32
2015-01-31T09:54:38.000Z
2022-03-31T06:12:21.000Z
import asyncio import traceback from configuration_manager import ConfigurationManager from data_parser import * parse_map = { 0: ProtocolRequest, 1: ProtocolResponse, 2: ServerDisconnect, 3: ConnectSuccess, 4: ConnectFailure, 5: HandshakeChallenge, 6: ChatReceived, 7: None, 8: Non...
27.167539
79
0.578724
3,386
0.652534
2,028
0.390827
2,765
0.532858
0
0
1,795
0.345924
42d61bf690c775be557f3dd6decdfb665b54a7c4
4,224
py
Python
template_capture_performance.py
Dino-s26/f5_web_gui_capture
5dd00d6d84e9dd7c79f90446133c99190cbee1b0
[ "MIT" ]
null
null
null
template_capture_performance.py
Dino-s26/f5_web_gui_capture
5dd00d6d84e9dd7c79f90446133c99190cbee1b0
[ "MIT" ]
null
null
null
template_capture_performance.py
Dino-s26/f5_web_gui_capture
5dd00d6d84e9dd7c79f90446133c99190cbee1b0
[ "MIT" ]
null
null
null
# Import Selenium Module from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC # Import Path from pathlib import Path # Import Base Module for Code import os import datetime #...
39.111111
149
0.766335
0
0
0
0
0
0
0
0
1,810
0.428504
42d72c0c58e56c65e8f873c5b25c452eaaf9e7cc
3,032
py
Python
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
import sys import os import mxnet as mx import argparse sys.path.append(os.path.join(os.getcwd(), "../src/common")) sys.path.append(os.path.join(os.getcwd(), "../src/eval")) import verification def argParser(): parser = argparse.ArgumentParser(description='test network') parser.add_argument('--model', default=...
41.534247
125
0.632256
0
0
0
0
0
0
0
0
1,244
0.41029
42dc77f7900d79cb250ea17552132e0f738917bd
4,482
py
Python
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
1
2022-01-19T01:40:04.000Z
2022-01-19T01:40:04.000Z
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
37.663866
79
0.629407
0
0
0
0
0
0
0
0
2,991
0.667336
42dc9cb1aa466dc4d81d1303416d9c0741104c68
2,751
py
Python
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse import textwrap import math from PIL import Image parser = argparse.ArgumentParser( prog='img_striper.py', formatter_class=argparse.RawDescriptionHelpFormatter, description=textwrap.dedent('''\ Image striper This is a simple program to make stripes ...
25.472222
67
0.607779
0
0
0
0
0
0
0
0
940
0.341694
42dcb97d77131e74ecfe71c62c27b3b22cca853a
7,590
py
Python
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
null
null
null
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
1
2019-05-03T07:54:57.000Z
2019-05-03T07:54:57.000Z
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
null
null
null
import datetime from aiohttp import web from aiohttp_jinja2 import template import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg import psycopg2 from ds import db from . import forms @template('index.jinja2') async def index(request): return {} @template('profile_list.jinja2') async def pr...
35.633803
113
0.548221
0
0
0
0
4,280
0.5639
7,037
0.927141
625
0.082345
42dd96f3e39ccca7beaece3559fe4cb2d0d639e4
488
py
Python
django_fastapi/api/migrations/0008_test1.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/api/migrations/0008_test1.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/api/migrations/0008_test1.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
1
2021-11-26T08:22:57.000Z
2021-11-26T08:22:57.000Z
# Generated by Django 3.2.9 on 2021-11-19 15:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0007_alter_login_owner'), ] operations = [ migrations.CreateModel( name='Test1', fields=[ ('t...
23.238095
94
0.567623
395
0.809426
0
0
0
0
0
0
97
0.19877
42ddb2012f057cfc1204b7ac846fc3824c272f11
47,110
py
Python
tb_paddle/proto/api_pb2.py
GT-AcerZhang/tb-paddle
a129520339f4d4e7a9bed05feb733f2565673960
[ "MIT" ]
null
null
null
tb_paddle/proto/api_pb2.py
GT-AcerZhang/tb-paddle
a129520339f4d4e7a9bed05feb733f2565673960
[ "MIT" ]
null
null
null
tb_paddle/proto/api_pb2.py
GT-AcerZhang/tb-paddle
a129520339f4d4e7a9bed05feb733f2565673960
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tb_paddle/proto/api.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
41.912811
4,591
0.751221
0
0
0
0
0
0
0
0
11,929
0.253216
42e0044ddc8db8684b032fa92b309e589628c115
6,123
py
Python
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
1
2021-02-19T01:45:49.000Z
2021-02-19T01:45:49.000Z
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
null
null
null
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
2
2016-04-10T21:28:05.000Z
2019-09-20T19:51:37.000Z
import six import json import logging import requests from requests_oauthlib import OAuth1 if six.PY3: from urllib.parse import parse_qs from urllib.parse import urlencode else: from urlparse import parse_qs from urllib import urlencode log = logging.getLogger(__name__) class EtsyError(Exception): ...
36.230769
112
0.594806
5,830
0.952148
760
0.124122
0
0
0
0
1,968
0.321411
42e109eb76a25424069247c9b529582b0044ded2
2,996
py
Python
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
2
2021-10-05T10:04:56.000Z
2021-10-13T18:31:35.000Z
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
14
2021-09-01T12:30:59.000Z
2022-02-14T18:53:44.000Z
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
null
null
null
import datetime import os import re import sys import urllib from SatTrack.superclasses import FileDirectory ############################################################################### # CONSTANTS TLE_URL = f"https://celestrak.com/NORAD/elements/supplemental" ######################################################...
32.215054
79
0.496996
2,649
0.884179
0
0
0
0
0
0
1,792
0.598131
42e13e620ce8965d49cd0e6e2ae37165c0735674
21,970
py
Python
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
13
2021-09-21T11:07:33.000Z
2022-03-25T08:46:46.000Z
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
2
2021-09-25T15:45:19.000Z
2021-12-10T15:57:35.000Z
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
2
2021-09-27T01:21:49.000Z
2021-09-28T06:08:19.000Z
import os import h5py import torch import torch.nn as nn from torch.utils.data import Dataset, IterableDataset, DataLoader import Levenshtein as levenshtein from tqdm import tqdm from yaml import YAMLObject from transformers import AutoTokenizer, AutoModel from allennlp.modules.elmo import batch_to_ids from utils im...
40.238095
188
0.697679
21,318
0.970323
3,063
0.139417
1,312
0.059718
0
0
5,353
0.24365
42e5f4e73286a21248ce1ddfed9d74e5f150cd54
7,012
py
Python
accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-basic-service (1.36.3) # pylint: disable=d...
35.06
202
0.592698
6,088
0.868226
0
0
3,426
0.488591
0
0
1,761
0.251141
42e6a0854dc4ea36c5a33692e83aa3d38c0f49cc
2,505
py
Python
function/python/brightics/function/statistics/test/correlation_test.py
parkjh80/studio
6d8d8384272e5e1b2838b12e5557272a19408e89
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/statistics/test/correlation_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/statistics/test/correlation_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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 ...
41.065574
155
0.683433
1,470
0.586826
0
0
0
0
0
0
899
0.358882
42e77bb6f8a615aa18b12b83385ee014877a332f
340
py
Python
fdp/__init__.py
cffbots/fairdatapoint
6142b31408b5746d1a7e9f59e61735b7ad8bfde9
[ "Apache-2.0" ]
9
2020-03-27T12:58:51.000Z
2021-01-21T16:22:46.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
26
2016-05-26T22:22:34.000Z
2020-02-13T07:12:37.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
4
2020-06-09T18:37:33.000Z
2020-12-16T08:05:01.000Z
# -*- coding: utf-8 -*- import logging from .__version__ import __version__ logging.getLogger(__name__).addHandler(logging.NullHandler()) __author__ = "Rajaram Kaliyaperumal, Arnold Kuzniar, Cunliang Geng, Carlos Martinez-Ortiz" __email__ = 'c.martinez@esciencecenter.nl' __status__ = 'beta' __license__ = 'Apache Li...
26.153846
90
0.770588
0
0
0
0
0
0
0
0
165
0.485294
42e78c22b92189ac4df049c1a2d85684f40079f9
358
py
Python
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post,Author,Tag # Register your models here. class PostAdmin(admin.ModelAdmin): list_display=('title','date','author') list_filter=('author','tags','date') prepopulated_fields={'slug':('title',)} admin.site.register(Post,PostAdmin) admin.site.regi...
23.866667
43
0.72905
167
0.46648
0
0
0
0
0
0
82
0.22905
42e887c8fdf1e23d81a9463a69d52200b7a5826e
67
py
Python
pyrallest/__init__.py
ivancrneto/pyrallest
158780c418ae276935fb155e82b18db242cd98e5
[ "MIT" ]
null
null
null
pyrallest/__init__.py
ivancrneto/pyrallest
158780c418ae276935fb155e82b18db242cd98e5
[ "MIT" ]
null
null
null
pyrallest/__init__.py
ivancrneto/pyrallest
158780c418ae276935fb155e82b18db242cd98e5
[ "MIT" ]
null
null
null
def main(): print('This is the very beginning of pyrallest')
13.4
52
0.671642
0
0
0
0
0
0
0
0
41
0.61194
42e8e15830841aa965ec225fd7e1715fe1c14fdd
60,795
py
Python
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2018 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
35.407688
108
0.607385
0
0
0
0
0
0
0
0
45,821
0.753697
42ead0688f656228fb0df39a2d45d3c1dd001507
532
py
Python
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
# Generated by Django 3.1.14 on 2022-01-24 11:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("iaso", "0114_auto_20220117_1609"), ] operations = [ migrations.RenameField( model_name="entity", old_name="instance...
22.166667
58
0.565789
438
0.823308
0
0
0
0
0
0
123
0.231203
42eb0db02ed2cdde4c36688526176ef0796f32f2
1,370
py
Python
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
163
2021-03-06T12:01:06.000Z
2022-03-01T22:52:36.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
61
2021-03-06T07:00:39.000Z
2021-04-13T10:25:58.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
9
2021-03-07T17:52:57.000Z
2021-10-18T21:35:23.000Z
"""Delete command Author: Rory Byrne <rory@rory.bio> """ from typing import Any from git_plan.cli.commands.command import Command from git_plan.service.plan import PlanService from git_plan.util.decorators import requires_initialized, requires_git_repository @requires_initialized @requires_git_repository class Dele...
31.136364
92
0.687591
1,059
0.772993
0
0
1,106
0.807299
0
0
331
0.241606
42ebcdfbf6dd3a3f1a79b5af4ed661e3aa7d93c1
347
py
Python
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from newspaper2.news.models import News, Event class NewsAdmin(admin.ModelAdmin): list_display = ('title', 'publish_date') list_filter = ('publish_date',) search_fields = ['title'] class EventAdmin(admin.ModelAdmin): pass admin.site.register(News, NewsAdmin) admin.site....
23.133333
46
0.752161
186
0.536023
0
0
0
0
0
0
42
0.121037
42ef38196b7af8975b40694b6eb1954f2a48845e
1,926
py
Python
vision_module.py
seongdong2/GRADUATION
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
2
2021-09-19T13:52:05.000Z
2021-10-04T01:09:21.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
1
2021-10-14T06:19:44.000Z
2021-10-14T06:19:44.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
null
null
null
import numpy as np import cv2 CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"] net = cv2.dnn.readNetFromCaffe( ...
30.571429
106
0.555556
0
0
0
0
0
0
0
0
246
0.127726
42efd3e55b344db382180d65f36b45d066baab96
618
py
Python
riccipy/metrics/lewis_papapetrou.py
cjayross/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
4
2019-08-17T04:28:06.000Z
2021-01-02T15:19:18.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
3
2019-08-02T04:07:43.000Z
2020-06-18T07:49:38.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
null
null
null
""" Name: Lewis Papapetrou References: Ernst, Phys. Rev., v167, p1175, (1968) Coordinates: Cartesian """ from sympy import Function, Rational, exp, symbols, zeros coords = symbols("t x y z", real=True) variables = () functions = symbols("k r s w", cls=Function) t, x, y, z = coords k, r, s, w = functions metric = zeros...
30.9
77
0.553398
0
0
0
0
0
0
0
0
122
0.197411
42efdd1edf57c5e0230ae9edaa82d469b2ef9074
2,591
py
Python
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
from django.contrib import admin from modeltranslation.admin import TranslationAdmin from product.models import (Category, Discount, Review, Product, Properity, ProperityOption, Image, ShoppingCart, Tag,Wishlist,Color) class ReviewAdmin(admin.ModelAdmin): list_display = ('name', 'product', 'creat...
31.987654
93
0.703589
1,998
0.771131
0
0
1,712
0.660749
0
0
870
0.335778
42eff7b73d4d9e9bde660bd60b5a65140cceb73c
3,009
py
Python
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 # vim: ts=4 sw=4 import requests, lxml.html, json, sys, os, configparser, re from datetime import datetime from mastodon import * ## Initializing host = 'https://bpnavi.jp' ua = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko...
33.065934
154
0.599535
0
0
0
0
0
0
0
0
884
0.292231
42f0f632b463ffb1c555335ca23b1393342b2700
1,091
py
Python
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
10
2018-12-23T02:59:06.000Z
2021-12-07T11:55:21.000Z
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
null
null
null
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
7
2018-12-21T02:06:51.000Z
2021-12-11T02:36:47.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import optimize # Lecture 11 2-user water allocation example # First approach: scipy.optimize.linprog # need matrix form: minimize c^T * x, subject to Ax <= b c = [-5, -3] # negative to maximize A = [[10,5], [1,1.5], [2,2], [-1,0], [0,-1]] b = [20, 3, 4.5...
23.717391
78
0.582035
0
0
0
0
0
0
0
0
843
0.772686
42f12d3200ce4d7e07aaba09b537e0ff03fb831a
1,471
py
Python
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
## This file used to be programmatically generated for converging to best fit Activity Dependent Inhibition curve. ## But that doesn't give decent result, so set by hand. import sys sys.path.extend(["../networks"]) ## do not import networkConstants as that imports this file, and it's circular then!!! from networkConst...
54.481481
114
0.755948
0
0
0
0
0
0
0
0
1,153
0.783821
42f674ee12a896bdc6fefab4b830b689f09ef5e4
499
py
Python
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
from .utils import defaults_f DEFAULTS = defaults_f({ 'ARTIFACTS_ROOT': '~/agoge/artifacts', 'TQDM_DISABLED': False, 'TRIAL_ROOT': 'Worker', 'BUCKET': 'nintorac_model_serving', 'BASE_URL': 'https://github.com/Nintorac/NeuralDX7-weights/raw/master' }) from .data_handler import DataHandler from .mod...
31.1875
74
0.771543
0
0
0
0
0
0
0
0
170
0.340681
42f8e8791025cfd39e8878d6744a088d9902c8a3
1,206
py
Python
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
def do_loop(): print('Being Invoked.') # * 表示参数为 元组 def fun1(*args): # 相当于 def fun1(1,2,3) ==> args 就相当于(1,2,3) for a in args: print(a) # ** 表示参数为 字典 def fun2(**args): # 相当于 def fun2({a:1,b:2,c:3}) ==>args 就相当于{a:1,b:2,c:3} for k, v in args: print(k, ":", v) # Python3 的六个标准数据类型 def...
19.451613
74
0.543118
0
0
0
0
0
0
0
0
645
0.449164
42f979541235624972aa7beb6b4040036e613c33
951
py
Python
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from scrapystsytem.misc.commonspider import CommonSpider from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor as sle logger = logging.getLogger(__name__) class DoubanMovieSpider(CommonSpider): name = "doubanmovie" allowed_domains = ["douban...
31.7
89
0.648791
725
0.762355
0
0
0
0
0
0
296
0.311251
42faa478c98edc7e43520c1e76c93b612e769679
560
py
Python
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
8
2015-02-21T17:59:41.000Z
2021-01-07T20:57:39.000Z
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
null
null
null
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
2
2016-07-09T16:06:23.000Z
2016-08-02T18:44:20.000Z
import uuid class Message(object): def __init__(self, kind, timestamp, raw_data): self.kind = kind self.timestamp = timestamp self.raw_data = raw_data self.uuid = str(uuid.uuid4()) def _asdict(self): return { 'kind': self.kind, 'timestamp': self...
23.333333
59
0.542857
545
0.973214
0
0
0
0
0
0
42
0.075
42fb56f78da3eca5f6dfd2e9de1258342401faa4
469
py
Python
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
7
2020-04-30T20:16:18.000Z
2021-09-11T20:31:51.000Z
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
86
2020-03-06T15:34:55.000Z
2022-03-07T11:58:06.000Z
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
1
2020-07-25T23:04:51.000Z
2020-07-25T23:04:51.000Z
from nbexchange.handlers.assignment import Assignment, Assignments from nbexchange.handlers.collection import Collection, Collections from nbexchange.handlers.feedback import FeedbackHandler from nbexchange.handlers.pages import HomeHandler from nbexchange.handlers.submission import Submission, Submissions default_han...
27.588235
66
0.803838
0
0
0
0
0
0
0
0
0
0
42fe26b4d9e2cf96a145d2ebd3a33d07d37ab54e
2,476
py
Python
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
1
2021-12-01T17:43:38.000Z
2021-12-01T17:43:38.000Z
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
#!/bin/env python3 import operator from _operator import attrgetter, itemgetter from collections import defaultdict, Counter from functools import reduce, partial from itertools import chain from aocd import get_data EMPTY = type('EMPTY', (int,), dict(__repr__=(f := lambda s: 'EMPTY'), __str__=f))(10) def windowed(...
26.340426
91
0.560582
0
0
1,007
0.406704
0
0
0
0
180
0.072698
42ff0390633d326bb027aa10d5b16efa20802940
1,343
py
Python
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
3
2021-12-17T04:28:02.000Z
2022-02-22T18:18:03.000Z
from detectron2.engine import DefaultPredictor from detectron2.data import MetadataCatalog from detectron2.config import get_cfg from detectron2.utils.visualizer import ColorMode, Visualizer from detectron2 import model_zoo import cv2 import numpy as np import requests # Load an image res = requests.get("h...
37.305556
191
0.737156
0
0
0
0
0
0
0
0
332
0.247208
42ff644535c1107deafd0fab424dd9161db0897b
9,920
py
Python
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
28
2020-11-05T16:04:51.000Z
2021-02-16T22:58:10.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
43
2020-11-06T19:21:39.000Z
2021-02-25T19:04:42.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
4
2020-11-06T08:54:57.000Z
2021-01-18T03:26:00.000Z
import os import yaml import json import click import hydra.utils.constants as const from hydra.utils.git import check_repo from hydra.utils.utils import dict_to_string, inflate_options from hydra.cloud.local_platform import LocalPlatform from hydra.cloud.fast_local_platform import FastLocalPlatform from hydra.cloud.go...
44.684685
200
0.674698
0
0
0
0
9,460
0.953629
0
0
1,950
0.196573
6e001fac10af046d03ee8754375ce8c560a47171
773
py
Python
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
'''requests biblioteca beaultiful solp para páginas web. ''' from builtins import print import requests '''compartilhando o cabeçario http, vem junto com requesição cabecalho = {'User-agent': 'Windows 12', 'Referer': 'https://google.com.br'} meus_cookies = {'Ultima-visita': '10-10-2020'} meus_...
28.62963
67
0.641656
0
0
0
0
0
0
0
0
513
0.660232
6e01596134dc9f1610c5e8f76e5d30c43961114c
23,738
py
Python
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
3
2020-06-15T13:50:51.000Z
2021-08-18T05:10:17.000Z
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
null
null
null
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
1
2020-06-15T13:52:49.000Z
2020-06-15T13:52:49.000Z
import pygame import random import sys Xfactor = 1.35 Yfactor = 3.2 CELLS = 9 PLAYERS = 2 CORNERS = [1, 3, 7, 9] NON_CORNERS = [2, 4, 6, 8] board = {} for i in range(9): board[i + 1] = 0 signs = {0: " ", 1: "X", 2: "O"} winner = None boardX = 10 boardY = 464 icon = pygame.image.load("ttticon2.png"...
32.742069
95
0.433566
13,373
0.563358
131
0.005519
0
0
0
0
1,349
0.056829
6e0596f60ea2aacca4a2e542940c06bbc4f394b7
25,458
py
Python
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/18 下午11:23 # @Author : DaiPuWei # @Email : 771830171@qq.com # @File : dataset_utils.py # @Software: PyCharm """ 这是YOLO模型数据集 """ import cv2 import numpy as np from PIL import Image from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from utils.model_utils import...
39.902821
112
0.439351
25,232
0.924588
980
0.035911
0
0
0
0
6,997
0.256394
6e080db2602e0c90c09249fc8d6eeaeabeabd005
750
py
Python
caesar_cipher.py
DomirScire/Basic_Ciphers
7425b306f8d0ce9ceb5ba3a59e73a52892bee5ca
[ "MIT" ]
1
2021-03-31T23:29:00.000Z
2021-03-31T23:29:00.000Z
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
import string def caesar_cipher(text, shift, decrypt=False): if not text.isascii() or not text.isalpha(): raise ValueError("Text must be ASCII and contain no numbers.") lowercase = string.ascii_lowercase uppercase = string.ascii_uppercase result = "" if decrypt: shift = shift * -1...
27.777778
70
0.630667
0
0
0
0
0
0
0
0
106
0.141333
6e0977041deef6fa7bf74e2fadd3b0a89bcf73e3
6,953
py
Python
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
1
2018-02-18T15:51:57.000Z
2018-02-18T15:51:57.000Z
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
import json import logging from app.abc import StartError from app.device import DeviceApp, DeviceMessage from app.device.models import Device from app.hint import HintApp from app.hint.defs import HintMessage from util.storage import DataStore LOGGER = logging.getLogger(__name__) class Hume: def __init__(self...
38.414365
78
0.576154
6,666
0.958723
0
0
0
0
0
0
2,084
0.299727
6e0c62be30176a8297c1bf84eb84e82bffd0d9ee
3,281
py
Python
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
# # Author: Michał Borzęcki # # This script creates empty files with study and data object metadata in # specified space and Oneprovider. It uses JSON files located in directories # `studies_dir` (= studies) and `data_object_dir` (= data_objects). Positional # arguments: # 1. Oneprovider location (IP address or domain...
33.824742
102
0.643401
0
0
0
0
0
0
0
0
1,456
0.443497
6e0cbccdccc4307ec0cd8efe2c3cb65f9c612951
1,925
py
Python
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
from flask import jsonify, request import backend.services.user as user_services from . import bp @bp.route('/user', methods=['POST', 'GET']) def create_user(): if request.method == "POST": data_json = request.json body, status = user_services.create_user(data_json) elif request.method == "G...
27.112676
81
0.628052
0
0
0
0
1,808
0.939221
0
0
223
0.115844
6e0cf115db4bb95a08b1d4ece55fa11c8d6418e1
222
py
Python
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
6
2021-11-21T10:47:01.000Z
2022-03-17T01:14:53.000Z
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
3
2021-04-12T12:37:41.000Z
2021-04-30T14:29:53.000Z
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from mot.motion_models.base_motion_model import MotionModel from mot.motion_models.CT_motion_model import CoordinateTurnMotionModel from mot.motion_models.CV_motion_model import ConstantVelocityMotionModel
37
73
0.891892
0
0
0
0
0
0
0
0
14
0.063063
6e0db8ed1374b74b17dc4c64dad644332a33ce07
7,205
py
Python
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
# modu # Copyright (c) 2006-2010 Phil Christensen # http://modu.bubblehouse.org # # # See LICENSE for details """ Datatypes for managing stringlike data. """ import time, datetime from zope.interface import implements from modu.editable import IDatatype, define from modu.util import form, tags, date from modu.persi...
28.82
106
0.658015
6,785
0.941707
0
0
0
0
0
0
2,056
0.285357
6e0dc799717432679f99b12ed1cdbf0dbbf71f58
829
py
Python
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
null
null
null
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
1
2021-09-10T21:13:16.000Z
2021-09-23T16:13:08.000Z
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
null
null
null
from functions.summation import summation from functions.subtraction import subtraction from functions.multiplication import multiplication from functions.division import division from functions.exponential import exponential from functions.root import root num1 = float(input('número 1: ')) num2 = float(input('número ...
34.541667
51
0.784077
0
0
0
0
0
0
0
0
195
0.230769
6e0f3ad7fb4aa74ebb70351b2ab8036b7bfa68b3
2,949
py
Python
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
1
2019-01-31T19:17:01.000Z
2019-01-31T19:17:01.000Z
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
null
null
null
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
null
null
null
! pip install -q librosa nltk import torch import numpy as np import librosa import librosa.display import IPython from IPython.display import Audio # need this for English text processing frontend import nltk ! python -m nltk.downloader cmudict preset = "20180505_deepvoice3_ljspeech.json" checkpoint_path = "20180505...
32.406593
106
0.758901
0
0
0
0
0
0
0
0
1,174
0.397293
6e10c0ea90829d65558f7e100bd54ed82664fe76
405
py
Python
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
from discord.ext import commands from lib import exceptions import os import json configFile = os.path.join(os.getcwd(), "data", "config.json") with open(configFile, "rb") as f: config = json.load(f) def is_owner(): async def predicate(ctx): if ctx.author.id in config['owners']: return ...
22.5
61
0.681481
0
0
0
0
0
0
138
0.340741
31
0.076543
6e11308aa80bc676e3ca2d21a4edcb18f890e752
1,649
py
Python
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
1
2020-09-16T06:15:17.000Z
2020-09-16T06:15:17.000Z
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
5
2020-09-26T01:30:01.000Z
2022-01-13T03:15:42.000Z
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
null
null
null
import gym import numpy as np from torchvision.utils import save_image from .fixobj import FixedObjectGoalEnv class IntervalGoalEnv(FixedObjectGoalEnv): def __init__(self, args): self.img_size = args.img_size FixedObjectGoalEnv.__init__(self, args) def generate_goal(self): if self.target_goal_center is not ...
37.477273
149
0.726501
1,535
0.930867
0
0
0
0
0
0
15
0.009096
6e11fb05adb494991b86d4b22a22f936a7c8a876
1,908
py
Python
cactusbot/commands/magic/alias.py
CactusBot/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
23
2016-02-16T05:09:11.000Z
2016-09-20T14:22:51.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
190
2016-09-30T05:31:59.000Z
2018-12-22T08:46:49.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
16
2016-10-09T16:51:48.000Z
2017-10-25T05:29:10.000Z
"""Alias command.""" from . import Command from ...packets import MessagePacket class Alias(Command): """Alias command.""" COMMAND = "alias" @Command.command(role="moderator") async def add(self, alias: "?command", command: "?command", *_: False, raw: "packet"): """Add a n...
32.338983
78
0.545597
1,824
0.955975
0
0
1,737
0.910377
1,612
0.844864
467
0.244759
6e13a8102a55ae649fda3dcfedbae946ebff32c0
2,828
py
Python
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
import numpy as np def combine(signal_x, signal_y): return np.stack((signal_x, signal_y), axis=-1) def normalize(signal, minimum=None, maximum=None): """Normalize a signal to the range 0, 1. Uses the minimum and maximum observed in the data unless explicitly passed.""" signal = np.array(signal).astype('fl...
40.985507
132
0.597242
0
0
0
0
0
0
0
0
700
0.247525
6e14c71363bc33135f20b63aec47306b9531737a
2,839
py
Python
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
17
2022-03-06T05:06:14.000Z
2022-03-31T00:25:06.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
6
2022-03-27T18:18:40.000Z
2022-03-31T17:35:34.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
1
2022-03-31T13:07:41.000Z
2022-03-31T13:07:41.000Z
import os import sys import hashlib import importlib def is_available_boto3(): return importlib.util.find_spec("boto3") if is_available_boto3(): import boto3 from botocore import UNSIGNED from botocore.client import Config else: raise ModuleNotFoundError("Please install boto3 with: `pip install ...
31.898876
80
0.610426
1,812
0.637804
0
0
0
0
0
0
285
0.100317
6e154f31690fe2c1e126dc21483f4d1d4a667900
348
py
Python
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
def factorial(num): if num == 0: return 1 else: return num * factorial(num - 1) def main(): print("0! =", factorial(0)) print("1! =", factorial(1)) print("2! =", factorial(2)) print("3! =", factorial(3)) print("4! =", factorial(4)) print("5! =", factorial(5)) if __name_...
20.470588
39
0.514368
0
0
0
0
0
0
0
0
46
0.132184
6e15e9506e9a75c167124e23e066dc0069217190
1,565
py
Python
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
9
2020-06-17T17:33:05.000Z
2022-03-30T17:32:05.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
28
2020-06-16T18:32:08.000Z
2020-11-12T17:51:20.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
4
2020-08-07T20:05:49.000Z
2021-10-21T01:43:00.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.528302
78
0.705431
0
0
0
0
0
0
0
0
1,054
0.673482
6e1651dd40e1ae6c43644b4a77456f4eb701c53a
1,054
py
Python
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from db import db class Fleet(db.Model): __tablename__ = "fleet" id = Column(String, primary_key=True) deployment_target_id = Column(String, ForeignKey('deployment_target.id')) fleet_type_id = Column(String, ForeignKey('fleet_type.id'))...
30.114286
89
0.736243
675
0.640417
0
0
174
0.165085
0
0
171
0.162239
6e17097d88bd49914581f2dfe02ed8fa34bee9d4
254
py
Python
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
1
2022-03-27T19:39:07.000Z
2022-03-27T19:39:07.000Z
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
5
2022-03-27T19:32:54.000Z
2022-03-31T23:25:44.000Z
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import HypertriviationUser class HypertriviationUserAdmin(admin.ModelAdmin): model = HypertriviationUser # Register your models here. admin.site.register(HypertriviationUser, HypertriviationUserAdmin)
25.4
66
0.838583
81
0.318898
0
0
0
0
0
0
28
0.110236
6e1773f3e2177f91fdf46e022af55af83edbbcb5
1,568
py
Python
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
26
2019-02-04T04:55:09.000Z
2021-09-22T14:58:46.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
2
2019-05-07T16:33:09.000Z
2021-02-13T18:25:35.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
27
2018-12-10T12:13:50.000Z
2020-10-11T17:43:22.000Z
################################################################### ######## Follow up email ############# ################################################################### """ followup_email.py This is special use case code written to assist bot developers. It consolidates to...
26.133333
122
0.646684
0
0
0
0
0
0
0
0
803
0.512117
6e18dbf82c0ab208ca098975575465ec97248c7b
269
py
Python
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
from marshmallow import validate, fields, Schema class AuthorizationVal(Schema): id_auth = fields.Str(required=True, validator=validate.Length(max=10)) id_o = fields.Str(required=True, validator=validate.Length(max=10)) file_a = fields.Raw(required=True)
38.428571
74
0.758364
217
0.806691
0
0
0
0
0
0
0
0
6e1b6e602b092d059fb5b4b96bb130aa002770f4
1,213
py
Python
wiwo/sender.py
CoreSecurity/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
76
2015-08-01T23:24:43.000Z
2018-07-02T11:13:16.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
1
2016-01-28T22:11:17.000Z
2016-02-03T22:14:46.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
27
2015-08-11T07:24:42.000Z
2018-10-05T11:09:54.000Z
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # # Copyright 2003-2015 CORE Security Technologies # # 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/LIC...
28.880952
74
0.678483
457
0.376752
0
0
430
0.354493
0
0
763
0.629019