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
542ed8915929d9082655f10271231d6e8237f5b5
2,848
py
Python
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
alexcorm/emg-viral-pipeline
f367002f0e1e375840e5696323bde65f7accb31f
[ "Apache-2.0" ]
30
2020-05-18T14:02:34.000Z
2022-03-16T20:04:25.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
45
2020-04-30T09:45:03.000Z
2022-03-21T09:10:21.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
12
2020-06-02T12:43:49.000Z
2022-02-22T13:09:13.000Z
#!/usr/bin/env python3 import os import re import glob import sys import operator import ast import argparse ############################################################################################### # This script was written as part of the analysis conducted on the output generated by # # hmmsearch, when...
45.935484
293
0.652388
0
0
0
0
0
0
0
0
1,358
0.476826
54318f46c52690013bfe7cc4791a2d7dcc84bf04
6,349
py
Python
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
""" All permissions are defined here. They are also defined in permissions.zcml. The two files must be kept in sync. bika.lims.__init__ imports * from this file, so bika.lims.PermName or bika.lims.permissions.PermName are both valid. """ from Products.CMFCore.permissions import AddPortalContent #...
34.505435
79
0.695228
0
0
0
0
0
0
0
0
4,276
0.673492
5431f5aaf571f8d48be62c018da65e8a8b984c28
5,140
py
Python
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
36.978417
75
0.637743
3,949
0.768288
0
0
0
0
0
0
1,400
0.272374
54324dc90f9df188cfe21f89b7c0b9336f381fe0
7,645
py
Python
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import json from collections import Counter, defaultdict from data_convert.format.text2tree import Entity_Type, Text2Tree from data_convert.task_format.event_extraction import Event, DyIEPP, Conll04 from data_convert.utils import read_file, check_output, data_count...
45.778443
138
0.597515
0
0
0
0
0
0
0
0
1,970
0.257685
5432a871244c2f1064853af01dd1344e9304f2e3
1,246
py
Python
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
2
2017-12-26T14:50:14.000Z
2018-06-12T07:04:08.000Z
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
null
null
null
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
null
null
null
from scrapy.utils.misc import walk_modules from scrapy.utils.spider import iter_spider_classes def get_spider_cls(url, spider_packages, default): """ Return spider class based on provided url. :param url: if it looks like `spider://spidername` it tries to load spider named `spidername`, otherwise...
35.6
78
0.690209
0
0
0
0
0
0
0
0
657
0.527287
543307112090d54acedcff9238e2cea7185b6c19
1,165
py
Python
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import init import torch.nn.functional as F class Social_Encoder(nn.Module): def __init__(self, features, embed_dim, social_adj_lists, aggregator, base_model=None, cuda="cpu"): super(Social_Encoder, self).__init__() self.features = features ...
32.361111
103
0.654936
1,069
0.917597
0
0
0
0
0
0
63
0.054077
5433996009680b5160e896f44a3bff1c9d65a2bb
3,280
py
Python
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
8
2019-10-17T12:46:13.000Z
2020-03-12T08:09:40.000Z
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
12
2019-10-22T13:11:56.000Z
2022-02-10T00:23:30.000Z
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
1
2019-10-17T13:21:27.000Z
2019-10-17T13:21:27.000Z
import click import time from deephub.common.io import resolve_glob_pattern from deephub.models.feeders.tfrecords.meta import generate_fileinfo, get_fileinfo, TFRecordValidationError, \ TFRecordInfoMissingError @click.group() def cli(): """ General purpose CLI utils. """ pass @cli.command() @cl...
33.814433
115
0.633232
0
0
0
0
3,052
0.930488
0
0
1,502
0.457927
543471083e8ed6e6fd0d08082e7de83061292ab1
10,072
py
Python
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
import numpy as np import cPickle import os from scipy.io import loadmat import time import h5py import json import copy import bz2 def unique_rows(a): b = np.ascontiguousarray(a).view(np.dtype((np.void, a.dtype.itemsize * a.shape[1]))) _, idx = np.unique(b, return_index=True) return a[idx], idx; def setdiff2d(...
32.807818
141
0.652502
0
0
0
0
0
0
0
0
1,588
0.157665
5435607e763096b9e0e81fbf68d44b9c31b6852e
1,085
py
Python
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
1
2020-07-27T14:18:08.000Z
2020-07-27T14:18:08.000Z
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
dict = {} lista = [] soma = 0 while True: dict['nome'] = str(input('Nome: ')).capitalize() dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] while dict['sexo'] not in 'MF': print('ERRO! Por favor, digite apenas M ou F') dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] dict['id...
33.90625
65
0.562212
0
0
0
0
0
0
0
0
430
0.392336
543805ee596eba6c41f93710a63dc5eaf28196da
7,894
py
Python
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
4
2021-11-10T03:49:28.000Z
2022-03-24T02:18:44.000Z
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
null
null
null
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
1
2021-11-14T18:01:18.000Z
2021-11-14T18:01:18.000Z
# -*- coding: utf8 -*- """ ====================================== Project Name: NLP File Name: linears Author: czh Create Date: 2021/11/15 -------------------------------------- Change Activity: ====================================== """ import math import torch import torch.nn as nn import torch....
38.8867
117
0.673676
7,481
0.947682
0
0
0
0
0
0
617
0.078161
5438824c4ced393aa643d5e74bfabb01555d5d5c
2,037
py
Python
components/siren.py
TalaoDAO/ecole42
2236f24527966195c953f222f9715ee967348b0f
[ "Apache-2.0" ]
1
2021-09-22T16:30:57.000Z
2021-09-22T16:30:57.000Z
components/siren.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
components/siren.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
import requests def company(SIREN): r = requests.get('https://entreprise.data.gouv.fr/api/sirene/v2/siren/'+SIREN+'') json_object = r.json() settings = dict() if json_object['sirene']['status'] == 404: return None if json_object['sirene']['data']['siege_social']['nom_raison_sociale'...
55.054054
370
0.571919
0
0
0
0
0
0
0
0
977
0.479627
5438db8d908a649df431fff16b0d49559bcdf6d6
2,036
py
Python
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
""" Opdracht 9 - Loonbrief https://dodona.ugent.be/nl/exercises/990750894/ """ # functie voor start amount def get_start_amount(): # return start amount return int(input("Start bedrag: ")) # functie voor salaris def get_salary(): # array van salaris maken salary = [] # count op nul zetten c...
24.238095
71
0.651768
0
0
0
0
0
0
0
0
978
0.479412
543993f4662d66952cafe8284d07a22ac01ccee7
1,845
py
Python
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
2
2020-04-05T13:44:13.000Z
2020-07-06T08:53:58.000Z
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
# coding: utf-8 from cv2 import cv2 import numpy as np cap = cv2.VideoCapture(0) while(1): # Take each frame _, frame = cap.read() # Convert BGR to HSV hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # define range of blue color in HSV lower_blue = np.array([110,50,50]) upper_blue = np.arr...
37.653061
256
0.701897
0
0
0
0
0
0
0
0
1,315
0.711195
5439f19ce894429f825edd092b433b960bae49d4
9,411
py
Python
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-02-10T22:04:59.000Z
2021-02-10T22:04:59.000Z
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.013393
154
0.604824
0
0
0
0
0
0
0
0
1,267
0.13463
543ac48e108696b4125575c0e8b5fa9098b4ddb3
830
py
Python
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
1
2021-06-10T19:59:07.000Z
2021-06-10T19:59:07.000Z
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-30 00:27 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('votes', '0003_auto_20201229_1301'), ] operations...
31.923077
114
0.609639
704
0.848193
0
0
0
0
0
0
130
0.156627
543ac83c6ae50796c548f885ed09b3775131b174
576
py
Python
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
from turtle import Turtle FONT = ("Arial", 10, "normal") ALIGN = "center" class Score(Turtle): def __init__(self): super().__init__() self.score = 0 self.color("White") self.penup() self.goto(0, 270) self.update() self.hideturtle() def update(self): ...
23.04
67
0.553819
500
0.868056
0
0
0
0
0
0
65
0.112847
543c4f51f177e890cbcf4f4101beb26f2ee15486
81
py
Python
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
2,959
2018-05-08T21:48:56.000Z
2020-08-24T14:35:39.000Z
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
1,469
2018-05-08T22:44:28.000Z
2020-08-24T20:19:24.000Z
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
642
2018-05-08T22:09:19.000Z
2020-08-17T09:04:37.000Z
import numpy def layer_method(): return {"pi": "{0:.2f}".format(numpy.pi)}
13.5
45
0.617284
0
0
0
0
0
0
0
0
13
0.160494
543cd354a10448d8c328281db21e317c63dd0072
5,520
py
Python
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
"""Coverage based QC calculations. """ import glob import os import subprocess from bcbio.bam import ref, readstats, utils from bcbio.distributed import transaction from bcbio.heterogeneity import chromhacks import bcbio.pipeline.datadict as dd from bcbio.provenance import do from bcbio.variation import coverage as co...
46.386555
115
0.664312
0
0
0
0
0
0
0
0
1,162
0.210507
543cef330851534694d86f1be5bca5d7e8614e34
1,210
py
Python
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
3
2021-07-27T16:28:51.000Z
2021-11-15T18:29:02.000Z
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
null
null
null
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
7
2021-08-09T15:04:03.000Z
2022-03-09T05:48:56.000Z
""" Utility functions for argument parsing """ import argparse def str2bool(val): """ Resolving boolean arguments if they are not given in the standard format Arguments: val (bool or string): boolean argument type Returns: bool: the desired value {True, False} """ if isinstan...
25.744681
100
0.638017
0
0
0
0
0
0
0
0
725
0.599174
543dd03030508ee683df7a6d3985dc5051235db5
277
py
Python
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
2
2020-08-06T13:21:51.000Z
2021-04-15T04:29:03.000Z
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
null
null
null
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
null
null
null
from concepts.letter_addition import LetterAddition from learners.sim_memoryless_learner import SimMemorylessLearner def test_see_example(): concept = LetterAddition(6) learner = SimMemorylessLearner(concept, list(range(0, 7))) learner.see_example(((0, 1), 10))
27.7
64
0.776173
0
0
0
0
0
0
0
0
0
0
543dded51722ade60b4b464e9cde6ba374678fe4
2,536
py
Python
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
24
2021-02-03T17:06:13.000Z
2021-04-02T13:09:13.000Z
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import pandas as pd from datetime import datetime from typing import ( Any, Callable, Dict, Hashable, Iterable, List, NamedTuple, Optional, Pattern, Set, Tuple, Union, ) logger = logging.getLogger(__name__) # add_jde_batch() {{{1...
27.868132
109
0.542587
0
0
0
0
0
0
0
0
1,658
0.653785
543e07ad4f4ef4e280a96b2a4575d3e61db5448a
2,159
py
Python
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
7
2021-06-22T03:12:15.000Z
2022-01-06T16:11:14.000Z
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
null
null
null
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
2
2021-12-12T13:28:02.000Z
2022-02-18T13:22:20.000Z
import os import shutil import logging class BColors(object): HEADER = "\033[95m" OK_BLUE = "\033[94m" OK_CYAN = "\033[96m" OK_GREEN = "\033[92m" WARNING = "\033[93m" FAIL = "\033[91m" END_C = "\033[0m" BOLD = "\033[1m" UNDERLINE = "\033[4m" def touch(fname: str, times=None, crea...
25.104651
64
0.642427
238
0.110236
0
0
0
0
0
0
284
0.131542
543e913c7932efd8a58e4692b8be276e0e6a692e
2,090
py
Python
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from setuptools import setup import os import re import shutil _versionRE = re.compile(r'__version__\s*=\s*\"([^\"]+)\"') # read the version number for the settings file with open('drawBot/drawBotSettings.py', "r") as settings: ...
32.65625
247
0.688517
0
0
0
0
0
0
0
0
890
0.425837
543ed68a45e19a13dd2f2c914498c100fd410df9
784
py
Python
src/homework/i_dictionaries_sets/dictionary.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-WillCapo
426db13aa4d5f6005d7079007ff5fdf114ef649e
[ "MIT" ]
null
null
null
src/homework/i_dictionaries_sets/dictionary.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-WillCapo
426db13aa4d5f6005d7079007ff5fdf114ef649e
[ "MIT" ]
null
null
null
src/homework/i_dictionaries_sets/dictionary.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-WillCapo
426db13aa4d5f6005d7079007ff5fdf114ef649e
[ "MIT" ]
1
2022-02-09T02:28:56.000Z
2022-02-09T02:28:56.000Z
def get_p_distance(list1, list2): count = 0 i = 0 while i < len(list1): if (list1[i] != list2[i]): count += .1 i += 1 return count def get_p_distance_matrix(list1, list2, list3, list4): dna1 = get_p_distance(list1, list1), get_p_distance(list1, list2), get_p_distance(lis...
52.266667
129
0.69898
0
0
0
0
0
0
0
0
0
0
543fd7e53080b049a8ec4e7ace7dac2f370068e8
38,634
py
Python
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZHONE-COM-IP-FILTER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZHONE-COM-IP-FILTER-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:47:04 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
168.707424
2,566
0.786354
0
0
0
0
0
0
0
0
18,647
0.482658
5442d7409922b392e57d7544f376052f8505514b
11,160
py
Python
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
32.631579
88
0.66819
0
0
0
0
0
0
0
0
2,129
0.190771
54439c9a0c52b928b7dce1ab1fcc8ffac580ad8b
2,680
py
Python
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. """Deletes a Cloud SQL instance.""" from googlecloudapis.apitools.base import py as apitools_base from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions from googlecloudsdk.core import log from googlecloudsdk.core.util import console_io...
31.904762
79
0.701493
2,319
0.865299
0
0
377
0.140672
0
0
1,301
0.485448
5445ab0135e0f3ff0f80b808bab631bc81bb1f98
804
py
Python
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
"""Exceptions for this library""" class NSBaseError(Exception): """Base Error for all custom exceptions""" pass class RateLimitReached(NSBaseError): """Rate Limit was reached""" class NSServerBaseException(NSBaseError): """Exceptions that the server returns""" pass class APIError(NSServerBaseEx...
18.272727
46
0.705224
746
0.927861
0
0
0
0
0
0
257
0.319652
544703b0ead742e49b1d2aa2223e76a2cd97299b
62,639
py
Python
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
# lines 1-4 imports the necessary libraries import pygame import os import random import math import sys import hlp import intro import dsb # this is the last module with the description files ''' declaring some global variables beacause in Python, we can set global variables that can be used in future functions se...
56.279425
200
0.61765
0
0
0
0
0
0
0
0
34,756
0.554862
544732e628a00b56caac8c9cd412468f1e74169a
8,514
py
Python
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
import aiohttp import asyncio import async_timeout import logging from collections import namedtuple, deque from .events import Events from html.parser import HTMLParser log = logging.getLogger(__name__) class Parser(HTMLParser): def handle_starttag(self, tag, attrs): log.debug("Encountered a start tag:...
38.7
161
0.499765
8,301
0.974982
0
0
0
0
2,171
0.254992
1,355
0.15915
5448e80da68c244752c3380cbc4f039308ae3d65
7,009
py
Python
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
1
2022-01-17T09:34:14.000Z
2022-01-18T13:32:20.000Z
apps/cmdb/verify/operate.py
yanshicheng/super_ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
from ..models import Classify, Fields, Asset, AssetBind, ClassifyBind from django.db.models import Q from collections import OrderedDict from django.forms.models import model_to_dict class OperateInstance: @staticmethod def get_classify(id): """通过ID 查找指定分类表""" return Classify.objects.filter(id...
31.859091
89
0.610786
7,309
0.975183
0
0
5,608
0.748232
0
0
1,465
0.195464
544b2254aa27aedc58e9f1dae64e313ac23e420d
525
py
Python
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
2
2021-02-01T23:06:35.000Z
2022-01-12T15:39:30.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
1
2022-03-18T04:07:58.000Z
2022-03-19T18:00:08.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
null
null
null
import subprocess from pathlib import Path from urllib.parse import urlparse def mirror_repo(repo_url, target_dir): repo_dir = Path(str(target_dir) + urlparse(repo_url).path) repo_dir.parent.mkdir(parents=True, exist_ok=True) if repo_dir.exists(): print(f'Updating from {repo_url}...') subp...
35
88
0.67619
0
0
0
0
0
0
0
0
104
0.198095
544bbee47e78ee286a199342f8cffdd22f773ed2
3,880
py
Python
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
2
2021-10-03T11:49:32.000Z
2021-12-15T11:40:52.000Z
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
import os import torch from modeling.unet import * from modeling.bAttenUnet import MDecoderUNet, MMultiBAUNet, MMultiBUNet def build_model(args, nchannels, nclass, model='unet'): if model == 'unet': return UNet( n_channels=nchannels, n_classes=nclass, bilinear=True, ...
27.51773
85
0.559794
0
0
0
0
0
0
0
0
422
0.108763
544c328461515102957fb6ba2f7ecaadd80e93ff
1,356
py
Python
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
import os from os import listdir from os.path import isfile, join dir_path = os.path.dirname(os.path.realpath(__file__)) filesys = [f for f in listdir(dir_path) if isfile(join(dir_path, f))] def get_dir_size(path=dir_path): total = 0 with os.scandir(dir_path) as it: for entry in it: if en...
22.229508
69
0.526549
0
0
0
0
0
0
0
0
152
0.112094
544ec34dfb38023e11066f7adf551926d37772c9
3,111
py
Python
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from api_x.utils import response from api_x.utils.entry_auth import verify_request from flask import request from . import application_mod as mod from .. import dba from .. import bankcard from api_x.utils.parser import to_bool from pytoolbox.util.log import get_l...
34.566667
104
0.724204
0
0
0
0
2,739
0.880424
0
0
524
0.168435
544eed2f5a6fd341973e64324b8db14d8a1824d5
2,928
py
Python
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
1
2018-09-05T08:16:00.000Z
2018-09-05T08:16:00.000Z
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
8
2017-01-08T19:11:16.000Z
2018-09-24T12:20:40.000Z
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
2
2017-08-23T12:41:02.000Z
2018-08-17T08:11:35.000Z
import asyncio import os try: from aiohttp import web except ImportError: web = None class Httpd(object): def __init__(self): if not web: print('httpd is specified in conf but aiohttp not available') return self.app = web.Application() self._setup_routes()...
34.046512
100
0.565574
2,831
0.966872
0
0
0
0
2,036
0.695355
1,995
0.681352
5451d6245307e0c41240f5d6be7ea9013b165899
196
py
Python
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
import math num = int(input()) is_prime = True if num < 2: print("Not prime") for i in range(2, int(math.sqrt(num)+1)): if num / i == 0: is_prime = False print(is_prime)
9.8
41
0.571429
0
0
0
0
0
0
0
0
11
0.056122
54520f95709f73e2e760152d29139cc05ba229e9
218
py
Python
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BadgifyConfig(AppConfig): name = 'badgify' verbose_name = 'Badgify' def ready(self): super(BadgifyConfig, self).ready() self.module.autodiscover()
19.818182
42
0.674312
181
0.830275
0
0
0
0
0
0
18
0.082569
545268aad6cd438a8b86741579655c5f5b28ba41
249
py
Python
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
202
2015-01-12T08:10:48.000Z
2021-11-08T09:04:32.000Z
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
30
2015-01-01T09:07:17.000Z
2021-06-03T12:58:45.000Z
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
58
2015-01-12T03:28:54.000Z
2022-01-14T01:58:08.000Z
from uliweb.i18n import ugettext_lazy as _ def test_1(): """ >>> x = _('Hello') >>> print repr(x) ugettext_lazy('Hello') """ def test_1(): """ >>> x = _('Hello {0}') >>> print x.format('name') Hello name """
16.6
42
0.48996
0
0
0
0
0
0
0
0
167
0.670683
545316d49d38f35bdeec6536c47e60475a119d98
1,041
py
Python
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
import KeyPressModule as kp from djitellopy import tello import time import cv2 global img kp.init() skynet = tello.Tello() skynet.connect() print(skynet.get_battery()) skynet.streamon() def getKeyboardInput(): lr, fb, ud, yv = 0, 0, 0, 0 speed = 50 if kp.getKey("LEFT"): lr = -speed elif kp.getKey(...
22.148936
74
0.616715
0
0
0
0
0
0
0
0
123
0.118156
545376512fee3de8e6da4487e774ee09c7ad912d
1,479
py
Python
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
12
2021-07-27T07:18:24.000Z
2022-03-09T13:52:20.000Z
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
2
2021-08-03T09:21:33.000Z
2021-12-29T14:25:30.000Z
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
3
2021-11-18T14:46:40.000Z
2022-01-03T15:47:23.000Z
from foolbox import zoo import numpy as np import foolbox import sys import pytest from foolbox.zoo.model_loader import ModelLoader from os.path import join, dirname @pytest.fixture(autouse=True) def unload_foolbox_model_module(): # reload foolbox_model from scratch for every run # to ensure atomic tests with...
27.90566
76
0.694388
0
0
0
0
836
0.565247
0
0
484
0.327248
54538684df9453f633582e0d87edd283242082a7
8,464
py
Python
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
11
2017-05-06T02:42:34.000Z
2021-02-11T10:13:09.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/nistbeacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
31
2015-12-13T12:04:10.000Z
2021-01-27T02:34:34.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
1
2015-12-25T03:50:25.000Z
2015-12-25T03:50:25.000Z
""" Copyright 2015-2017 Peter Urda 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, softwar...
34.129032
79
0.69258
7,630
0.901465
0
0
7,522
0.888705
0
0
813
0.096054
54539ddc987a464c0db1b706648667e1f538fd7a
5,417
py
Python
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-pose-estimation
0425ed9dcc7969f0281cb435615abc33c640e157
[ "MIT" ]
4
2021-12-28T09:25:06.000Z
2022-01-13T12:55:44.000Z
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
null
null
null
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
1
2022-01-13T13:00:15.000Z
2022-01-13T13:00:15.000Z
import cv2 import numpy as np import os from auto_pose.meshrenderer import meshrenderer from auto_pose.ae.utils import lazy_property class PoseVisualizer: def __init__(self, mp_pose_estimator, downsample=1, vertex_scale=False): self.downsample = downsample self.vertex_scale = [mp_pose_estimator...
47.517544
158
0.567288
5,269
0.972679
0
0
281
0.051874
0
0
549
0.101348
5454b8f602a3ea5235a7102af61b547b5c4c3b31
1,128
py
Python
client/nodes/common/docker_subsriber.py
CanboYe/BusEdge
2e53e1d1d82559fc3e9f0029b2f0faf4e356b210
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-08-17T14:14:28.000Z
2022-02-02T02:09:33.000Z
client/nodes/common/docker_subsriber.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
client/nodes/common/docker_subsriber.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-09-01T16:18:29.000Z
2021-09-01T16:18:29.000Z
# SPDX-FileCopyrightText: 2021 Carnegie Mellon University # # SPDX-License-Identifier: Apache-2.0 import cv2 import numpy as np import rospy from gabriel_protocol import gabriel_pb2 from std_msgs.msg import UInt8MultiArray def run_node(client_filter, source_name): rospy.init_node(source_name + "_subscriber_node"...
29.684211
72
0.720745
0
0
0
0
0
0
0
0
433
0.383865
54562608a59ce9476a71d70e032f5d5bf8f6d75b
138
py
Python
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
39
2018-03-13T02:48:36.000Z
2021-03-18T07:51:54.000Z
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
1
2018-11-06T08:30:31.000Z
2018-11-06T08:30:31.000Z
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
10
2018-04-28T02:07:08.000Z
2020-11-09T04:26:47.000Z
# -*- coding: utf-8 -*- """ :copyright: ©2018 by IPIP.net """ from .district import District class BaseStation(District): pass
15.333333
33
0.623188
37
0.266187
0
0
0
0
0
0
67
0.482014
5456722cbb51619ad54be3201718c3cfa01f24c7
13,034
py
Python
cogs/user.py
billydevyt/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
6
2020-11-07T16:46:18.000Z
2021-01-03T11:52:39.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
3
2020-11-30T01:52:41.000Z
2021-01-03T11:53:18.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
7
2021-04-17T07:27:58.000Z
2021-08-31T15:21:42.000Z
""" User module """ import discord import random import asyncio from discord.ext import commands from discord.ext.commands import has_permissions, MissingPermissions, BadArgument import requests, json, pyfiglet from datetime import timedelta, datetime class User(commands.Cog): api_key = "bbde6a19c33fb4c3962e36b...
43.15894
490
0.603192
12,655
0.970103
0
0
10,583
0.811269
9,665
0.740897
4,701
0.360368
5459131a00c531976bbf1bad787c4cbce19610f5
622
py
Python
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
def sync_read(socket, size): """ Perform a (temporary) blocking read. The amount read may be smaller than the amount requested if a timeout occurs. """ timeout = socket.gettimeout() socket.settimeout(None) try: return socket.recv(size) finally: socket.settimeout(time...
22.214286
65
0.607717
0
0
0
0
0
0
0
0
192
0.308682
545b4ee6fb3b667ccf9bf2aadc9dfb4077e4dee6
976
py
Python
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
2
2019-05-16T03:11:44.000Z
2019-10-25T03:20:05.000Z
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
#Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None import sys class Solution(object): def mergeKLists(self, lists): """ :type lists: List[ListNode] :rtype: ListNode """ temp = ListNode(-1) ...
27.885714
50
0.482582
926
0.94877
0
0
0
0
0
0
111
0.11373
545c039475e437fcfe31a7978e08b358e2864ddd
1,334
py
Python
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2017 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
29.644444
74
0.749625
0
0
0
0
89
0.066717
0
0
675
0.505997
545c6c254ab620127f5ce9a6e6a0f63adc08b458
1,281
py
Python
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
"""Admin sites for the ``django-tinylinks`` app.""" from django.contrib import admin from django.template.defaultfilters import truncatechars from django.utils.translation import ugettext_lazy as _ from django.template.loader import render_to_string from tinylinks.forms import TinylinkAdminForm from tinylinks.models ...
28.466667
76
0.699454
826
0.644809
0
0
0
0
0
0
301
0.234973
545c8aae9bf713a7f6422a8269de2049905dd92f
562
py
Python
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
import requests import json def main(): host = "http://localhost:5006" urlpattern = "/user/" response = requests.post(f"{host}{urlpattern}", json={'key1': 'random value'}) if 199 < response.status_code < 300: for k, v in response.headers.items(): print(f"{k} -> {v}") prin...
21.615385
82
0.551601
0
0
0
0
0
0
0
0
170
0.302491
545fd8631d933f37ee5ed9022359f6f1a7a06f4b
73
py
Python
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
1
2021-05-24T22:01:54.000Z
2021-05-24T22:01:54.000Z
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
1
2021-02-25T20:27:36.000Z
2021-03-31T17:55:08.000Z
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
4
2020-10-21T21:39:37.000Z
2021-07-24T02:19:34.000Z
#!/usr/bin/env python from XilinxKcu1500Pgp3.XilinxKcu1500Pgp3 import *
18.25
49
0.808219
0
0
0
0
0
0
0
0
21
0.287671
545fe80c1b80eb166756266947e1f74465ae48f6
2,517
py
Python
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
15
2021-07-06T13:03:09.000Z
2022-03-05T04:18:13.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
1
2021-12-03T05:39:24.000Z
2021-12-03T05:39:24.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
5
2021-07-30T09:31:31.000Z
2022-01-03T06:30:25.000Z
#!/usr/bin/python import os import glob import traceback import datetime import dandan from flask import Flask from flask import abort from flask import send_file from flask import send_from_directory from flask import render_template from werkzeug.routing import BaseConverter import config __VERSI...
25.683673
90
0.642034
127
0.050457
0
0
233
0.092571
0
0
247
0.098133
546042473af828587af78168aa3e36324191b2db
2,961
py
Python
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
43.544118
401
0.69875
2,592
0.794361
0
0
0
0
0
0
1,988
0.609255
54607def7c2c2dd5026968fee33155a24a8770a7
155
py
Python
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
from .array import Array from .string import String from .problem import Constraint, Loop from .main import SatType, Var, Number from .expr import Expr
31
39
0.780645
0
0
0
0
0
0
0
0
0
0
54615497a597809e722b75e586e88b607f457119
470
py
Python
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
import os __magma_codegen_debug_info = False if os.environ.get("MAGMA_CODEGEN_DEBUG_INFO", False): __magma_codegen_debug_info = True def set_codegen_debug_info(val): global __magma_codegen_debug_info __magma_codegen_debug_info = val def get_codegen_debug_info(): return __magma_codegen_debug_info ...
21.363636
53
0.77234
0
0
0
0
0
0
0
0
26
0.055319
546277ddd1038ab1b79d6538508e871a2186c14c
3,560
py
Python
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE, DEVNULL, run import socket import sys import traceback import argparse import time import logging import os logger = logging.getLogger("django") def startProcess(command, port): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ...
30.169492
108
0.538202
301
0.084551
0
0
0
0
0
0
808
0.226966
5463fe7521a3910ac70e77bb4ec4fc1c354e171b
35
py
Python
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Sensor Location" UUID=0x2A5D
11.666667
22
0.8
0
0
0
0
0
0
0
0
17
0.485714
546484ce8b5ed762d88a0033bf3308f52967f631
296
py
Python
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
import random from tqdm import tqdm def random_seq(): return [str(random.randint(1, 9)) for x in range(random.randint(2, 15))] if __name__ == "__main__": with open("sequences-1-train.txt", "w") as f: for i in tqdm(range(5000)): f.write(",".join(random_seq()) + "\n")
29.6
76
0.614865
0
0
0
0
0
0
0
0
43
0.14527
546488ac5fe6da6a714985e1c5c6692b62df9032
3,585
py
Python
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
277
2016-05-12T13:22:49.000Z
2022-03-11T00:18:32.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
57
2016-05-18T01:03:32.000Z
2022-02-17T13:48:43.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
16
2016-05-22T11:35:19.000Z
2021-12-01T19:41:42.000Z
"""Datatest main program""" import sys as _sys from unittest import TestProgram as _TestProgram from unittest import defaultTestLoader as _defaultTestLoader try: from unittest.signals import installHandler except ImportError: installHandler = None from datatest import DataTestRunner __unittest = True __datat...
38.138298
80
0.538633
1,883
0.525244
0
0
0
0
0
0
301
0.083961
54655fd5e9013ea6eec439615853e317aa7b100b
17,503
py
Python
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
9
2017-06-13T17:46:33.000Z
2019-01-08T03:00:00.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
4
2018-07-18T21:41:21.000Z
2019-01-07T06:05:15.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
20
2017-02-27T09:46:13.000Z
2019-05-29T23:17:52.000Z
# Copyright 2017 IBM Corp. # # 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 t...
40.144495
79
0.588642
16,527
0.944238
0
0
0
0
0
0
4,442
0.253785
546685a1cd267c088cdbed690f4354973078c4ca
3,481
py
Python
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" Q146 LRU Cache Medium Author: Lingqing Gan Date: 08/06/2019 Question: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return ...
26.172932
76
0.600402
2,325
0.667912
0
0
0
0
0
0
1,341
0.385234
54670eac7c97edca8f6b8dd01151c748a6156511
9,940
py
Python
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
# This script reads *VizParams.list files that define Vizlet parameters # and generates .h files for them, making runtime access to them much faster. # This allows new parameters to be added just by editing one file. import sys import os import re types={"bool":"BOOL","int":"INT","double":"DBL","string":"STR"} realt...
27.458564
124
0.609557
0
0
0
0
0
0
0
0
4,639
0.466606
54685a8741677f7fae5e8b83b5e24b77c1c400f9
712
py
Python
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
3
2021-03-09T10:00:50.000Z
2021-12-26T07:19:09.000Z
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
null
null
null
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
1
2021-02-27T16:09:30.000Z
2021-02-27T16:09:30.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt #Read the image as grayscale: image = cv2.imread('building.jpg', 0) #Compute the gradient approximations using the Sobel operator: dx = cv2.Sobel(image, cv2.CV_32F, 1, 0) dy = cv2.Sobel(image, cv2.CV_32F, 0, 1) #Visualize the results: plt.figu...
19.777778
63
0.671348
0
0
0
0
0
0
0
0
199
0.279494
5468626a4d8739106b686cc86e072541eeccc86e
956
py
Python
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
3
2017-04-28T16:40:22.000Z
2019-02-22T16:57:12.000Z
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
46
2017-01-17T01:10:15.000Z
2019-06-13T20:45:12.000Z
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
1
2017-07-06T14:18:55.000Z
2017-07-06T14:18:55.000Z
# -*- coding: utf-8 -*- # reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py # ============================================================================= # Reporter Multilang. Version 0.5.9 # ============================================================================= # A tool to generate human-readable re...
45.52381
79
0.561715
0
0
0
0
0
0
0
0
936
0.979079
5468c394ce1fe6e2cc2dd6fce2fd7d4c6e567c44
3,494
py
Python
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
import numpy as np from uncertainties import umath as um def getTeqpl(Teffst, aR, ecc, A=0, f=1/4.): """Return the planet equilibrium temperature. Relation adapted from equation 4 page 4 in http://www.mpia.de/homes/ppvi/chapter/madhusudhan.pdf and https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_law...
48.527778
100
0.660561
0
0
0
0
0
0
0
0
2,811
0.804522
5469add1bc5b0732388dfd9a2adc569e52915599
1,656
py
Python
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
1
2021-06-14T21:03:04.000Z
2021-06-14T21:03:04.000Z
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
import pandas as pd import re import os from tqdm import tqdm ## Cleaning train raw dataset train = open('./data/raw/train.crash').readlines() train_ids = [] train_texts = [] train_labels = [] for id, line in tqdm(enumerate(train)): line = line.strip() if line.startswith("train_"): train_ids.append...
23.323944
80
0.618357
0
0
0
0
0
0
0
0
277
0.167271
546a32ceac58022d2ad2cfb8c9d2804371eb31f5
6,456
py
Python
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
1
2022-02-25T15:02:25.000Z
2022-02-25T15:02:25.000Z
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
import functools from types import SimpleNamespace from typing import List from . import globs from .context import BaseContext from .exceptions import FixtureProcessError from .reloader import Reloader from .static_registry import static_registry def _dummy_exception_handler(ctx: BaseContext, exc: Exception): r...
31.960396
118
0.577912
6,121
0.94811
283
0.043835
1,490
0.230793
0
0
324
0.050186
546beba67c891d71b93c4df6d7f37c550d736d00
1,772
py
Python
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def chest_sizes(path): """Chest measurements of 5738 Scottish Militiamen ...
29.533333
71
0.705418
0
0
0
0
0
0
0
0
1,068
0.602709
546e4ec20d3fdf8c1c5f8ed657bb3f80549f9803
1,365
py
Python
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
4
2022-02-16T12:42:26.000Z
2022-03-30T17:14:32.000Z
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
null
null
null
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
1
2022-03-28T05:51:57.000Z
2022-03-28T05:51:57.000Z
import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup(name="google-ads-api-report-fetcher", version="0.1", description="Library for fetching reports from Google Ads API and saving them locally / BigQuery.", lo...
36.891892
105
0.621245
0
0
0
0
0
0
0
0
720
0.527473
546e73d201a7995e9aa7205db669d55b27e2e940
2,880
py
Python
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
12
2021-04-06T06:27:18.000Z
2022-03-18T10:52:29.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
6
2022-01-04T13:32:16.000Z
2022-03-28T21:13:59.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
7
2021-09-27T13:14:42.000Z
2022-03-28T16:24:15.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import asyncio import logging import time from collections import defaultdict from typing import DefaultDict, Dict, List from tglib.clients.prometheus_client import PrometheusClient, consts from tglib.exceptions import ClientRuntimeError ...
32.727273
87
0.594097
0
0
0
0
0
0
1,329
0.461458
560
0.194444
547084a7679711993b0e3d30495458fce0c7f40b
1,866
py
Python
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
import glob import os from io import StringIO from threading import Thread import logging from logger import TimeHandler from costants import THREADS, INFERENCE_GRAPH from pipeline import pipeline logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) logger.addHandler(TimeHandler().handler) ...
29.619048
115
0.576099
523
0.280279
0
0
0
0
0
0
97
0.051983
5470a342899892808b0ad450ef5da5a2f9cf5b36
12,319
py
Python
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Python 2 standard library imports import csv import io import logging import os # Python 2 non-standard library imports import pandas as pd # Imports from Oasis core repos + subpackages or modules within keys_server from oasislmf.utils.coverages import COVERAGE_TYPES from oasislmf.utils.per...
36.554896
606
0.596396
7,708
0.625599
2,218
0.180018
3,336
0.270757
0
0
5,492
0.445743
5470aea747a6878071245059e1de2776baa03338
18,485
py
Python
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
import time import sys import json import argparse from tqdm import trange from typing import Any, Callable, Dict, List, Optional, Tuple, Union import torch import numpy as np from scipy.spatial.distance import jensenshannon import gym import matplotlib.pyplot as plt from matplotlib.axes import Axes fr...
47.51928
182
0.648526
0
0
0
0
0
0
0
0
5,161
0.279199
5471ef5e2041074700733cd254f4357bec345d93
3,289
py
Python
WagerBrain/odds.py
sedemmler/WagerBrain
b1cc33f5eb7a6130106bf8251b554718e2d22172
[ "MIT" ]
83
2020-03-26T22:14:24.000Z
2022-03-22T19:00:48.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
2
2020-03-26T19:34:03.000Z
2020-03-27T19:56:14.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
19
2020-04-06T10:47:30.000Z
2022-03-30T19:16:42.000Z
from fractions import Fraction from math import gcd import numpy as np """ Convert the style of gambling odds to Function Name (Decimal, American, Fractional). TO DO: Fix edge case related to Fraction module that causes weird rounding / slightly off output """ def american_odds(odds): """ :param odds: ...
28.850877
123
0.578291
0
0
0
0
0
0
0
0
1,054
0.320462
5472180161d7e60f43fc9232da207e59fa3cb086
16,438
py
Python
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.359091
98
0.55828
0
0
0
0
0
0
0
0
3,241
0.197165
5475f0c326a3f8de3e388b70e03c71cc3faf4139
2,973
py
Python
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
13
2019-02-11T13:18:38.000Z
2019-12-26T06:26:07.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
39
2019-03-07T13:40:10.000Z
2020-01-07T17:19:24.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
4
2019-02-11T13:07:23.000Z
2019-11-26T08:20:24.000Z
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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 agr...
35.392857
100
0.664649
2,131
0.716784
0
0
0
0
0
0
1,113
0.374369
54768720b8a58a3c4d1cf1c8c265ceea8f6fc111
5,219
py
Python
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
2
2016-04-05T08:40:47.000Z
2016-06-27T14:03:26.000Z
tests/redis_map.py
jaredLunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
1
2015-10-27T14:30:53.000Z
2015-11-09T17:54:33.000Z
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -S # -*- coding: utf-8 -*- """ `Redis Map Tests` --·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·-- 2015 Jared Lunde © The MIT License (MIT) http://github.com/jaredlunde """ import datetime import time import pickle import unittest from redis_structures.debug ...
30.881657
80
0.57923
4,760
0.907358
0
0
0
0
0
0
902
0.171941
5477f31f091eaba6d081dd15b6e4e452029c17e6
4,480
py
Python
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
139
2017-06-09T17:15:23.000Z
2022-03-15T03:02:17.000Z
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
71
2017-06-20T03:20:56.000Z
2022-02-13T22:47:53.000Z
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
59
2017-06-20T03:10:00.000Z
2022-03-15T23:54:44.000Z
# -*- coding: utf-8 -*- from beacontools import parse_packet # Eddystone UID packet uid_packet = b"\x02\x01\x06\x03\x03\xaa\xfe\x17\x16\xaa\xfe\x00\xe3\x12\x34\x56\x78\x90\x12" \ b"\x34\x67\x89\x01\x00\x00\x00\x00\x00\x01\x00\x00" uid_frame = parse_packet(uid_packet) print("Namespace: %s" % uid_frame.nam...
40
94
0.690625
0
0
0
0
0
0
0
0
2,343
0.522525
547c48103894763c6518d10f40329e0d7d4eaefd
1,228
py
Python
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
from kedro.io import DataCatalog, MemoryDataSet from kedro.pipeline import Pipeline from kedro.runner import SequentialRunner import mlsurvey as mls from mlsurvey.workflows.learning_workflow import LearningWorkflow class MultipleLearningWorkflow(LearningWorkflow): def run(self): """ Run the wor...
34.111111
87
0.653094
1,007
0.820033
0
0
0
0
0
0
209
0.170195
547cd68f734cef8dede708252277b864855b2580
2,542
py
Python
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
4
2020-06-25T05:57:39.000Z
2021-06-26T04:58:16.000Z
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
null
null
null
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
1
2020-12-10T15:12:11.000Z
2020-12-10T15:12:11.000Z
# Generated by Django 2.2.12 on 2020-06-15 16:55 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('project', '0001_initial'), ] operations = [ migrations.CreateModel( ...
59.116279
215
0.632179
2,583
0.947542
0
0
0
0
0
0
703
0.257887
547d39324fd1deeba259dcc2ee665fe787ad6b6c
1,055
py
Python
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
1
2019-09-26T01:08:20.000Z
2019-09-26T01:08:20.000Z
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
null
null
null
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
1
2019-09-26T01:08:19.000Z
2019-09-26T01:08:19.000Z
# -*- coding: utf-8 -*- """ base.py Base Cipher Object class @author: Douglas Daly @date: 1/12/2017 """ # # Imports # from abc import ABCMeta, abstractmethod from ..alphabets import English # # Classes # class Cipher(object, metaclass=ABCMeta): """ Base Cipher Class """ def __init__(self,...
16.484375
50
0.57346
836
0.792417
0
0
426
0.403791
0
0
589
0.558294
547ee9e4da4b047390b557dc16580a853bcc3c8e
281
py
Python
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
4
2020-06-20T12:36:09.000Z
2021-10-31T22:04:48.000Z
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
null
null
null
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
3
2020-07-11T13:46:24.000Z
2022-02-23T20:55:19.000Z
from setuptools import setup setup( name="codewars_unittest", version="0.1.0", packages=["codewars_unittest"], license="MIT", description="unittest runner with Codewars output", install_requires=[], url="https://github.com/Codewars/python-unittest", )
23.416667
55
0.690391
0
0
0
0
0
0
0
0
133
0.47331
547f16545ac590cbce83d8fc70ff6fbb32f028e2
16,628
py
Python
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Funds API FactSet Mutual Funds data offers over 50 fund- and share class-specific data points for mutual funds listed in the United States. <p>FactSet Mutual Funds Reference provides fund-specific reference information as well as FactSet's proprietary classification system. It includes but is not l...
57.536332
709
0.619016
15,319
0.921277
0
0
13,248
0.796728
0
0
12,467
0.749759
547ff536693b82874299f521ef54379c7a3ee663
1,637
py
Python
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
3
2020-12-01T07:55:50.000Z
2022-03-16T22:18:07.000Z
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
null
null
null
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
2
2020-12-01T22:56:35.000Z
2021-05-03T09:30:09.000Z
import os, sys import subprocess import xmltodict import lymask from lymask import batch_drc_main from conftest import test_dir drc_file = os.path.join(test_dir, 'tech', 'lymask_example_tech', 'drc', 'default.yml') layout_file = os.path.join(test_dir, '2_drc_src.oas') outfile = os.path.join(test_dir, '2_drc_run.lyrdb...
30.886792
115
0.722053
41
0.025046
0
0
0
0
0
0
504
0.30788
5480da3b737fa2ac8f9665bf668142513e4bbaba
1,731
py
Python
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
"""Rendering formatter parameter handling.""" import typing from . import base __all__ = ['FORMATTERS', 'verify_formatter', 'Formatter'] FORMATTERS = {'cairo', 'core', 'gd', 'gdiplus', 'gdwbmp', 'xlib'} REQUIRED = False def verify_formatter(fo...
28.377049
84
0.60312
1,112
0.642403
0
0
490
0.283073
0
0
405
0.233969
5480e17b073b3d2de7a418823c0645c307bf4d95
183
py
Python
reward/utils/device.py
lgvaz/torchrl
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
5
2018-06-21T14:33:40.000Z
2018-08-18T02:26:03.000Z
reward/utils/device.py
lgvaz/reward
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
null
null
null
reward/utils/device.py
lgvaz/reward
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
2
2018-05-08T03:34:49.000Z
2018-06-22T15:04:17.000Z
import torch CONFIG = {"device": torch.device("cuda" if torch.cuda.is_available() else "cpu")} def get(): return CONFIG["device"] def set_device(device): CONFIG["device"] = device
22.875
81
0.704918
0
0
0
0
0
0
0
0
35
0.191257
548192ff87fcf5b59d3f5cc728048383ca680545
5,727
py
Python
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
import logging import random import os import json from typing import Tuple, List import requests def predict(player_name: str) -> str: next_move = _predict_next_move(*_get_player_games(player_name)) return _convert_game_to_json(next_move) R_rock, P_paper, S_scissors, V_spock, L_lizard = ('R', ...
39.226027
101
0.596124
0
0
0
0
0
0
0
0
1,613
0.281648
5481ba7b076cad5057871b2955d0e7140c538c8a
5,410
py
Python
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
2
2019-12-30T20:42:17.000Z
2021-01-24T16:51:56.000Z
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
null
null
null
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
1
2020-01-11T13:19:26.000Z
2020-01-11T13:19:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import shutil import logging import tensorflow as tf from src.cifar10.data_utils import read_data from src.cifar10.general_child import GeneralChild import src.cifar10_flags from src.cifar10_flags impo...
33.190184
85
0.64085
2,340
0.432532
0
0
0
0
0
0
738
0.136414
5481d023ae1cb5111f38843d186a6cb4876d216a
175
py
Python
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
from django.apps import AppConfig class OperConfig(AppConfig): name = 'oper' verbose_name = '用户操作管理' def ready(self): from oper import signals
17.5
34
0.64
146
0.780749
0
0
0
0
0
0
26
0.139037
5481e05c5889a5fab05aff46f53912b82371d733
1,952
py
Python
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import io import collections from stella.core.utils import RewindableIterator from stella.core.interpreter.productions import Token __all__ = ['Tokenizer', 'Lexer'] ################################################################################ ### Tokenizer ################################...
29.134328
82
0.483607
1,406
0.720287
0
0
0
0
0
0
383
0.196209
548332d9c8a9e409da8648383e49cb1b1c4dbca5
12,628
py
Python
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
5
2019-05-31T08:30:28.000Z
2020-02-13T20:17:13.000Z
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
null
null
null
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
6
2019-04-12T15:34:05.000Z
2019-10-01T16:57:39.000Z
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) max_epochs = 6000 init_stddev = 0.0001 source_embedding_size = 2 target_embedding_size = 2 source_state_size = 2 preattention_size = 2 target_state_size = 2 max_seq_len = 10 source_tokens = [ ...
52.83682
230
0.633275
3,153
0.249683
0
0
293
0.023202
0
0
1,183
0.093681
54835562ea5262f2ee7bb00d7ceac361aa51a6f1
226
py
Python
lnd/utils.py
gsmadi/lightningpy
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
null
null
null
lnd/utils.py
gsmadi/lightningpy
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
3
2019-08-21T11:51:52.000Z
2019-10-07T11:51:45.000Z
lnd/utils.py
smadici-labs/pylnd
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
null
null
null
import codecs def encode_macaroon(macaroon): encoded_macaroon = codecs.encode(macaroon, 'hex') return encoded_macaroon def read_file(file_path): opened_file = open(file_path, 'rb').read() return opened_file
20.545455
53
0.738938
0
0
0
0
0
0
0
0
9
0.039823
5483a8653b465908b4e7a3a5f68321bd151006ac
1,649
py
Python
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
53
2015-06-23T15:24:20.000Z
2021-09-23T22:30:58.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1,537
2015-06-24T11:27:16.000Z
2022-03-31T16:17:08.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
275
2015-07-09T14:09:28.000Z
2022-03-17T22:25:51.000Z
import numpy as np from ctapipe.core import Component from ctapipe.containers import MuonRingContainer from .fitting import kundu_chaudhuri_circle_fit, taubin_circle_fit import traitlets as traits # the fit methods do not expose the same interface, so we # force the same interface onto them, here. # we also modify th...
32.333333
71
0.691935
797
0.483323
0
0
0
0
0
0
519
0.314736
5484be9bfb8cd5688ba3f0f969954eaa83e32875
1,873
py
Python
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
2
2021-12-18T17:08:02.000Z
2021-12-22T04:19:15.000Z
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from os import listdir import numpy from sklearn.model_selection import StratifiedKFold from FS_ALO import WFS from FW_ALO import WFW from WFSWFW_ALO import WFSWFW import matplotlib.pyplot as plt def main_CV(): path='./datasets' direc=sorted(listdir(path)) print(direc) ...
36.019231
107
0.645489
0
0
0
0
0
0
0
0
44
0.023492
548634bd7f60817d2246c17acdb44bb98affa644
1,189
py
Python
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
2
2017-06-28T02:51:52.000Z
2017-06-28T09:28:33.000Z
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
null
null
null
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*-coding: utf-8 -*- __author__ = 'dracarysX' from django.db import models class Publisher(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=100) class Meta: db_table = 'Publisher' def __str__(self): return 'Publisher:...
22.018519
48
0.652649
1,076
0.904962
0
0
0
0
0
0
137
0.115223
54870fd0b78e5e716753c262ab01d38621a1dd9c
4,796
py
Python
feedback-api/src/api/services/feedback/feedback_camunda_service.py
josekudiyirippil/queue-management
e56a987e14cfd2b50b820f679c7669060450da8e
[ "Apache-2.0" ]
30
2018-09-19T03:30:51.000Z
2022-03-07T02:57:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
159
2018-09-17T23:45:58.000Z
2022-03-30T17:35:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
52
2018-05-18T18:30:06.000Z
2021-08-25T12:00:29.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
51.021277
111
0.641785
3,891
0.811132
0
0
0
0
0
0
1,665
0.347092
5489ae18fd1a18ba304d5257203fc13d1b20346d
2,334
py
Python
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
from django.conf import settings from django.conf.urls import * from django.conf.urls.static import static from django.contrib import admin from django.contrib.sitemaps.views import sitemap from django.views.decorators.cache import cache_page from django.views.generic import TemplateView from ajax_select import urls as...
38.9
79
0.662811
0
0
0
0
0
0
0
0
612
0.262211
548afc21b16ee46ad8044ba3566ba260b8c8d71a
899
py
Python
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from sqlalchemy import Column, Integer, String, DateTime from database.base import Base class Contacts(Base): """Maps to contacts table in chemprop databases.""" __tablename__ = 'contacts' __table_args__ = {'schema': Schemas.qsar_schema} ...
31
80
0.72525
745
0.828699
0
0
0
0
0
0
69
0.076752
548ba908b52f98060805c6474bd241356237c223
7,487
py
Python
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
""" Gradescope autograder configuration generator for Otter Generate """ import os import json import shutil # import subprocess import zipfile import tempfile import pathlib import pkg_resources import yaml from glob import glob from subprocess import PIPE from jinja2 import Template from .token import APIClient fr...
38.792746
110
0.631762
0
0
0
0
0
0
0
0
2,746
0.366769