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
3b7f19efe5226324127b16d1d9afc2df6edb7254
1,891
py
Python
list_2d_2.py
min-xu-ai/py_perf
ba9f07eefc8031a34fe77f19fc6be19d08344bff
[ "MIT" ]
null
null
null
list_2d_2.py
min-xu-ai/py_perf
ba9f07eefc8031a34fe77f19fc6be19d08344bff
[ "MIT" ]
null
null
null
list_2d_2.py
min-xu-ai/py_perf
ba9f07eefc8031a34fe77f19fc6be19d08344bff
[ "MIT" ]
null
null
null
#!/usr/bin/env pypy3 ''' Testing 2D list (list of lists) data structure. ''' import time import random from lib import benchmark, random_tuple g_list = [] g_size = 0 g_count = 0 g_get_keys = [] g_set_keys = [] def setup(size, density): ''' Populated the table. :param int size: total entries :param flo...
21.735632
66
0.561079
0
0
0
0
0
0
0
0
266
0.140666
3b7f2b6e0d9ea9418bfa786631467a10dace678f
10,622
py
Python
src/stepfunctions/inputs/placeholders.py
ParidelPooya/aws-step-functions-data-science-sdk-python
173b4635d8fb3ce569515bcfb6fee1d5a2c29b63
[ "Apache-2.0" ]
211
2019-11-07T17:56:56.000Z
2022-03-23T03:04:43.000Z
src/stepfunctions/inputs/placeholders.py
ParidelPooya/aws-step-functions-data-science-sdk-python
173b4635d8fb3ce569515bcfb6fee1d5a2c29b63
[ "Apache-2.0" ]
179
2019-11-08T00:47:08.000Z
2022-03-10T03:03:37.000Z
src/stepfunctions/inputs/placeholders.py
ParidelPooya/aws-step-functions-data-science-sdk-python
173b4635d8fb3ce569515bcfb6fee1d5a2c29b63
[ "Apache-2.0" ]
86
2019-11-20T12:59:03.000Z
2022-03-23T03:04:47.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
36.129252
150
0.588119
9,785
0.921201
0
0
0
0
0
0
5,136
0.483525
3b8031ca25667feb25f8274399a41253e2becc80
1,177
py
Python
src/mrack/transformers/static.py
dav-pascual/mrack
f31b4ef1f1f847c3e95567ec012323be65a1e177
[ "Apache-2.0" ]
2
2021-05-26T15:57:13.000Z
2021-08-21T02:14:01.000Z
src/mrack/transformers/static.py
dav-pascual/mrack
f31b4ef1f1f847c3e95567ec012323be65a1e177
[ "Apache-2.0" ]
81
2020-10-02T08:30:56.000Z
2022-03-31T11:47:41.000Z
src/mrack/transformers/static.py
dav-pascual/mrack
f31b4ef1f1f847c3e95567ec012323be65a1e177
[ "Apache-2.0" ]
7
2020-10-02T08:13:57.000Z
2022-03-31T11:22:53.000Z
# Copyright 2020 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
30.179487
74
0.725573
445
0.37808
0
0
0
0
0
0
780
0.662702
3b809ed3a1a8eaaeae4a3ce0d4bf8bbbdbc290f8
7,421
py
Python
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Trieste Contributors # # 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...
28.43295
100
0.62377
3,379
0.455329
0
0
1,645
0.221668
0
0
4,235
0.570678
3b816baf5eaa46bd1b527f1e92fb14dd928f8b46
1,185
py
Python
data/states/splash.py
andarms/pyweek20
79a5ac58c3ca06be61e5a05af0abd78a8c79e8df
[ "MIT" ]
null
null
null
data/states/splash.py
andarms/pyweek20
79a5ac58c3ca06be61e5a05af0abd78a8c79e8df
[ "MIT" ]
null
null
null
data/states/splash.py
andarms/pyweek20
79a5ac58c3ca06be61e5a05af0abd78a8c79e8df
[ "MIT" ]
null
null
null
import pygame as pg import state from .. import util class SplashState(state._State): def __init__(self): super(SplashState, self).__init__() self.bg_color = (0,0,0) self.text_color = (155,255,155) self.duration = 3 #seg self.image = pg.Surface(util.SCREEN_SIZE) sel...
28.214286
67
0.616034
1,126
0.950211
0
0
0
0
0
0
47
0.039662
3b81d15b16f3a5f6338f6f8f45d8d313e95a4a7d
11,735
py
Python
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Some basic functions for image construction.""" import sys as _sys import numpy as _np from PyQt4 import QtGui as _qt from qimageview import qimageview as _qimageview if _sys.byteorder == 'little': ...
34.821958
94
0.55441
0
0
0
0
0
0
0
0
2,310
0.196847
3b8212d16b84b98df542810b9eaf9101f2375755
7,084
py
Python
pymeet/COM.py
Melisius/PyMEET
9de470e55b0228b7c4ffed5f0c54bd27d6eba841
[ "MIT" ]
null
null
null
pymeet/COM.py
Melisius/PyMEET
9de470e55b0228b7c4ffed5f0c54bd27d6eba841
[ "MIT" ]
null
null
null
pymeet/COM.py
Melisius/PyMEET
9de470e55b0228b7c4ffed5f0c54bd27d6eba841
[ "MIT" ]
null
null
null
import numpy as np def atom_to_numbers(atom_name, number_property): """ Function that contains useful conversions. """ name2number = {"H": 1, "He": 2, "Li": 3, "Be": 4, "B": 5, "C": 6, "N": 7, "O": 8, "F": 9, "Ne": 10, "Na": 11, "Mg": 12, "Al": 13, "Si": 14, "P": 15, "S": 16, "Cl": 17, "Ar...
101.2
191
0.502823
0
0
0
0
0
0
0
0
1,597
0.225438
3b8587e0ec9b0fcd443c6745863057b4a8e3cf10
2,090
py
Python
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
null
null
null
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
6
2017-12-25T07:27:27.000Z
2018-01-17T18:59:04.000Z
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
2
2017-12-21T04:36:56.000Z
2018-01-15T23:32:35.000Z
import random import string import uuid from channels import Group from django.db import models from app.avalon import assign_roles, gen_role_list from .util import lobby_json class GameManager(models.Manager): def create_game(self, num_players, has_mordred, has_oberon): joinable_id = ''.join(random.cho...
31.666667
83
0.653589
1,906
0.911962
0
0
0
0
0
0
152
0.072727
3b86bd629224d587375d982d9e21ec4c5e570896
4,230
py
Python
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/utils/time_get_lock_info.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/utils/time_get_lock_info.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/utils/time_get_lock_info.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # time_get_lock_info.py # utils # # 🎂"Here's to the crazy ones. The misfits. The rebels. # The troublemakers. The round pegs in the square holes. # The ones who see things differently. They're not found # of rules. And they have no respect for the status quo. # You can...
27.647059
79
0.644681
0
0
0
0
0
0
0
0
2,740
0.588741
3b88a796d1817b8904a6429803fd5870c9f9d9ef
383
py
Python
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
null
null
null
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
7
2018-11-01T13:10:27.000Z
2018-11-04T16:01:52.000Z
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from ...test.factories import AddressFactory class Command(BaseCommand): help = "generates fake users to list in the application" def add_arguments(self, parser): parser.add_argument("n_of_entries", type=int) def handle(self, *args, **options):...
27.357143
60
0.733681
282
0.736292
0
0
0
0
0
0
77
0.201044
3b895d1b25f903e8bc77ab1b05b04c1d12622eea
5,995
py
Python
poisson_problem/poisson.py
timudk/solving_pdes_with_neural_nets
4aeca4ee1aaa6054307e1051879bed3160ffc247
[ "MIT" ]
69
2019-04-16T06:42:22.000Z
2021-04-06T02:39:21.000Z
poisson_problem/poisson.py
timudk/solving_pdes_with_neural_nets
4aeca4ee1aaa6054307e1051879bed3160ffc247
[ "MIT" ]
null
null
null
poisson_problem/poisson.py
timudk/solving_pdes_with_neural_nets
4aeca4ee1aaa6054307e1051879bed3160ffc247
[ "MIT" ]
19
2019-04-16T14:31:47.000Z
2021-06-05T21:46:53.000Z
import tensorflow as tf tf.set_random_seed(42) import numpy as np from scipy import integrate import neural_networks import poisson_problem import matplotlib.pyplot as plt import sys, getopt class sampling_from_dataset: def __init__(self, filepath, total_samples): self.filepath = filepath self.total_samples = ...
33.121547
148
0.732944
1,119
0.186656
0
0
0
0
0
0
683
0.113928
3b93a8f3fb66d0f9172c7fab00d036cbaf55135b
429
py
Python
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
maxn = 1000000 isprime = [False] * 2 + [True] * maxn for i in range(2, maxn): if isprime[i]: j = i*i while j < maxn: isprime[j] = False j += i def truncatable(n): x = n while x > 0: if not isprime[x]: return False x /= 10 b = 10 x = n % b while x < n: if not isprime[x]: return False b *= 10 x...
14.793103
37
0.566434
0
0
0
0
0
0
0
0
0
0
3b96b5f799965c9ad6a6862901c115567a0b79c1
1,691
py
Python
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
import click from os import environ from flask.cli import with_appcontext @click.group('{{cookiecutter.app_slug}}') def {{cookiecutter.app_slug}}(): """Perform {{cookiecutter.app_name}} specific operations.""" @{{cookiecutter.app_slug}}.command() @with_appcontext @click.argument('queue_name') def subscribe(queu...
36.76087
101
0.690124
0
0
0
0
1,435
0.84861
0
0
612
0.361916
3b99148519a93c8543e9564b329c4137fc41b8bf
1,509
py
Python
PythonBot.py
quasiyoke/PythonBot
d665a1580b683b8dbf4c68f50e112eb9ec30f8d0
[ "Apache-2.0" ]
9
2021-07-07T16:57:17.000Z
2021-11-14T17:45:10.000Z
PythonBot.py
quasiyoke/PythonBot
d665a1580b683b8dbf4c68f50e112eb9ec30f8d0
[ "Apache-2.0" ]
null
null
null
PythonBot.py
quasiyoke/PythonBot
d665a1580b683b8dbf4c68f50e112eb9ec30f8d0
[ "Apache-2.0" ]
2
2021-11-20T10:26:18.000Z
2021-11-26T09:18:13.000Z
from substrateinterface import SubstrateInterface, Keypair from substrateinterface.exceptions import SubstrateRequestException from scalecodec.type_registry import load_type_registry_file import time substrate = SubstrateInterface( url='wss://ws.mof.sora.org', ss58_format=69, type_registry_preset='default'...
33.533333
117
0.732936
0
0
0
0
0
0
0
0
621
0.411531
3b99148cfdeb90a765f839391c5a34781f128d17
185
py
Python
app/schemas.py
ev-horrosh/fastapi-project
4e38f5eb7573b8d70add47dd52fc973e9fed07b9
[ "MIT" ]
null
null
null
app/schemas.py
ev-horrosh/fastapi-project
4e38f5eb7573b8d70add47dd52fc973e9fed07b9
[ "MIT" ]
null
null
null
app/schemas.py
ev-horrosh/fastapi-project
4e38f5eb7573b8d70add47dd52fc973e9fed07b9
[ "MIT" ]
null
null
null
from re import S from pydantic import BaseModel from typing import Optional class User(BaseModel): first_name:str last_name:str age:int sex:Optional[str]=None
16.818182
30
0.708108
98
0.52973
0
0
0
0
0
0
0
0
3b9a007a7f11cb78845931d5c9222d48f264b871
17,892
py
Python
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
44.397022
81
0.649564
16,721
0.934552
0
0
0
0
0
0
4,971
0.277834
3b9b35f7c92754e4b2f2e40b05e20b3c368edfaa
2,822
py
Python
mutalyzer_mutator/mutator.py
mutalyzer/mutator
43a9fc929e054552ef6a2ed2d0cdf71e49ebf005
[ "MIT" ]
null
null
null
mutalyzer_mutator/mutator.py
mutalyzer/mutator
43a9fc929e054552ef6a2ed2d0cdf71e49ebf005
[ "MIT" ]
null
null
null
mutalyzer_mutator/mutator.py
mutalyzer/mutator
43a9fc929e054552ef6a2ed2d0cdf71e49ebf005
[ "MIT" ]
null
null
null
""" Module to mutate sequences based on a variants list. Assumptions for which no check is performed: - Only ``deletion insertion`` operations. - Only exact locations, i.e., no uncertainties such as `10+?`. - Locations are zero-based right-open with ``start > end``. - There is no overlapping between variants locat...
29.395833
79
0.665131
48
0.017009
0
0
0
0
0
0
1,322
0.468462
3b9b566f35bb3be3bbe04e1b0c6ea0b1acb1d8bc
1,791
py
Python
day11/day11_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
day11/day11_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
day11/day11_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
import copy from collections import defaultdict inputs = [list(line) for line in open("day11/input").read().splitlines()] nodes = defaultdict(lambda: []) for y in range(len(inputs)): for x in range(len(inputs[y])): if inputs[y][x] != ".": for i in range(-1, 2): for j in range...
28.887097
87
0.460078
0
0
0
0
0
0
0
0
64
0.035734
3b9c267d1ea8454b5606dbcad892d1bfd4a767ba
1,553
py
Python
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
8
2020-08-04T22:42:45.000Z
2022-03-12T00:48:53.000Z
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2020-07-31 14:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('UserProfile', '0001_initial'), ] operations = [ migrations.CreateModel( ...
43.138889
200
0.599485
1,394
0.897618
0
0
0
0
0
0
433
0.278815
3b9cb1b86a1c2543fda4e403d263a899de8dcbf8
529
py
Python
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
160
2015-01-04T03:29:24.000Z
2022-01-30T18:02:50.000Z
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
164
2015-01-15T12:18:28.000Z
2017-06-02T06:49:01.000Z
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
43
2015-01-13T08:35:37.000Z
2021-02-26T02:43:43.000Z
from __future__ import unicode_literals def find_ddf(): import os if 'DDF_HOME' in os.environ: return os.path.abspath(os.environ['DDF_HOME']) path = os.path.abspath(os.path.split(os.path.abspath(__file__))[0] + '/../../') if all([os.path.exists(os.path.join(path, x)) for x in ['core', 'spark'...
27.842105
97
0.671078
0
0
0
0
0
0
0
0
159
0.300567
3b9d1545ec19f606b37c767e1e6cb76be606291c
196
py
Python
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
numbers = (x for x in range(1, 34) if x % 3 == 0) numbers = filter(lambda x: x % 2, numbers) numbers = map(lambda x: x ** 3, numbers) numbers = list(numbers) result = sum(numbers) / len(numbers)
28
49
0.642857
0
0
0
0
0
0
0
0
0
0
3b9f847d0cac6111d1ef645972a3872e4e96abc4
3,896
py
Python
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
13
2015-06-07T09:26:26.000Z
2019-05-01T13:23:38.000Z
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
null
null
null
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
4
2016-03-05T06:21:05.000Z
2017-02-17T15:34:18.000Z
# written by falsetru import cookielib import os from contextlib import closing import re import getpass import webbrowser import sys import requests class AlgoSpot(object): login_url = 'https://algospot.com/accounts/login/?next=/' def __init__(self): cookiefile_path = os.path.join(os.path.expandus...
28.647059
122
0.585216
2,386
0.612423
0
0
0
0
0
0
769
0.197382
3b9faf565558a1df6837f883c4af01c1961579e5
4,806
py
Python
centersnap/utils.py
ibaiGorordo/ONNX-CenterSnap-6D-Pose-and-Shape-Estimation
f8f98b08cce5259348616db4150064d713f17445
[ "MIT" ]
13
2022-03-19T14:42:50.000Z
2022-03-31T14:04:31.000Z
centersnap/utils.py
ibaiGorordo/ONNX-CenterSnap-6D-Pose-and-Shape-Estimation
f8f98b08cce5259348616db4150064d713f17445
[ "MIT" ]
null
null
null
centersnap/utils.py
ibaiGorordo/ONNX-CenterSnap-6D-Pose-and-Shape-Estimation
f8f98b08cce5259348616db4150064d713f17445
[ "MIT" ]
1
2022-03-24T12:56:25.000Z
2022-03-24T12:56:25.000Z
import numpy as np import cv2 import open3d as o3d from .original_repo_utils import * np.random.seed(3) MAX_CLASS_NUM = 100 # In the original model there are only 7 classes segmenation_colors = np.random.randint(0, 255, (MAX_CLASS_NUM, 3)).astype("uint8") def util_draw_seg(seg_map, image, alpha = 0.5): # Convert...
28.105263
97
0.740117
1,754
0.36496
0
0
664
0.138161
0
0
539
0.112151
3ba02c62d0d88116daac3eef24c8c51ab27ced29
2,519
py
Python
strokes_gained_calculations.py
brentonworley/strokes-gained
f3390de62a8987fd0a73ddb41837f7dcecb29387
[ "MIT" ]
null
null
null
strokes_gained_calculations.py
brentonworley/strokes-gained
f3390de62a8987fd0a73ddb41837f7dcecb29387
[ "MIT" ]
null
null
null
strokes_gained_calculations.py
brentonworley/strokes-gained
f3390de62a8987fd0a73ddb41837f7dcecb29387
[ "MIT" ]
null
null
null
def calculate_strokes_gained(reference_value, user_putts): '''Return the strokes gained based on reference and user input''' return round((reference_value - user_putts), 2) def calculate_strokes_gained_putting(reference_data, user_input): '''Return the strokes gained value from a dictionary of user input ...
45.8
121
0.687574
0
0
0
0
0
0
0
0
920
0.365224
8e535a0eaed4fb2eca117828f9d5fa6d60c950b3
8,988
py
Python
CRF/cnn_word_seg_torch.py
enjlife/bert4torch
53694060fed0351649f87c79381740851a4a0b42
[ "Apache-2.0" ]
5
2021-09-09T03:25:58.000Z
2022-02-22T06:43:08.000Z
CRF/cnn_word_seg_torch.py
enjlife/bert4torch
53694060fed0351649f87c79381740851a4a0b42
[ "Apache-2.0" ]
1
2022-02-18T07:46:46.000Z
2022-02-20T10:05:25.000Z
CRF/cnn_word_seg_torch.py
enjlife/bert4torch
53694060fed0351649f87c79381740851a4a0b42
[ "Apache-2.0" ]
null
null
null
import os import torch.nn from torch import nn from crf_torch import CRF import re import random import time from torch.optim import Adam import torch.nn.functional as F from datetime import timedelta # TODO 准确率计算函数的bug修复 def get_time_dif(start_time): """获取已使用时间""" end_time = time.time() time_dif = end_t...
36.836066
161
0.549622
6,811
0.740809
0
0
0
0
0
0
707
0.076898
8e54656185e027ab6cdc457485c3e4f7aee1306c
1,636
py
Python
gs_quant/backtests/execution_engine.py
skyquant2/gs-quant
b7e648fa7912b13ad1fd503b643389e34587aa1e
[ "Apache-2.0" ]
2
2021-06-22T12:14:38.000Z
2021-06-23T15:51:08.000Z
gs_quant/backtests/execution_engine.py
skyquant2/gs-quant
b7e648fa7912b13ad1fd503b643389e34587aa1e
[ "Apache-2.0" ]
null
null
null
gs_quant/backtests/execution_engine.py
skyquant2/gs-quant
b7e648fa7912b13ad1fd503b643389e34587aa1e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Goldman Sachs. 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 di...
33.387755
90
0.675428
951
0.581296
0
0
0
0
0
0
560
0.342298
8e54b6e75de5f4de964911c5a74139115880c479
19,578
py
Python
biosimulators_opencor/utils.py
biosimulators/Biosimulators_OpenCOR
e00645e372baf7475957af9487856ad9ddd18814
[ "MIT" ]
null
null
null
biosimulators_opencor/utils.py
biosimulators/Biosimulators_OpenCOR
e00645e372baf7475957af9487856ad9ddd18814
[ "MIT" ]
null
null
null
biosimulators_opencor/utils.py
biosimulators/Biosimulators_OpenCOR
e00645e372baf7475957af9487856ad9ddd18814
[ "MIT" ]
null
null
null
""" Utilities for OpenCOR :Author: Jonathan Karr <karr@mssm.edu> :Date: 2021-05-28 :Copyright: 2021, BioSimulators Team :License: MIT """ from .data_model import KISAO_ALGORITHM_MAP from biosimulators_utils.config import get_config, Config # noqa: F401 from biosimulators_utils.data_model import ValueType # noqa: F4...
38.53937
141
0.659056
0
0
0
0
0
0
0
0
6,414
0.327613
8e54c567814fe73688defe099ca5f7a9a0fccd51
432
py
Python
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
8
2017-10-11T19:49:28.000Z
2021-06-16T12:20:39.000Z
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
6
2017-02-02T18:26:34.000Z
2018-11-08T16:32:52.000Z
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
26
2016-01-15T16:20:57.000Z
2018-12-11T21:32:57.000Z
from .jogadores import Jogador class MeuJogador(Jogador): def escolha_de_cacada(self, rodada, comida_atual, reputacao_atual, m, reputacoes_dos_jogadores): if comida_atual <= 5: escolhas = ['d' for x in reputacoes_dos_jogadores] return escolhas else: escolhas = [...
39.272727
108
0.650463
399
0.923611
0
0
0
0
0
0
12
0.027778
8e559b65f4bffc816f6acc36951ebd073cffa8c9
3,407
py
Python
arpym/statistics/saddle_point_quadn.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/statistics/saddle_point_quadn.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/statistics/saddle_point_quadn.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
# -*- coding: utf-8 -*- import numpy as np from scipy.stats import norm from scipy.optimize import brentq from arpym.tools.transpose_square_root import transpose_square_root def saddle_point_quadn(y, alpha, beta, gamma, mu, sigma2): """For details, see here. Parameters ---------- y : array, shape...
30.693694
79
0.528618
0
0
0
0
0
0
0
0
936
0.274567
8e56ed966f7b3a1a052979308f0135e0e02265d6
114
py
Python
web/wsgi_dozer.py
LinuxOSsk/Shakal-NG
c4091c7972cffd86f64aa9f9a058d2907a56e5eb
[ "MIT" ]
10
2016-02-06T15:40:30.000Z
2018-09-27T15:15:13.000Z
web/wsgi_dozer.py
LinuxOSsk/Shakal-NG
c4091c7972cffd86f64aa9f9a058d2907a56e5eb
[ "MIT" ]
94
2016-02-04T18:39:36.000Z
2022-01-20T05:25:00.000Z
web/wsgi_dozer.py
LinuxOSsk/Shakal-NG
c4091c7972cffd86f64aa9f9a058d2907a56e5eb
[ "MIT" ]
8
2016-05-10T20:29:53.000Z
2021-02-07T00:50:31.000Z
# -*- coding: utf-8 -*- from dozer import Dozer from .wsgi import application application = Dozer(application)
14.25
32
0.719298
0
0
0
0
0
0
0
0
23
0.201754
8e5772016ce9d093b9d855bc35d35474f74a9187
101
py
Python
abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
""" This package groups all the built-in node classes offered by the `abstract_codegen` package. """
25.25
92
0.752475
0
0
0
0
0
0
0
0
100
0.990099
8e57c1d666f0e679e553435b63623e54ee15e34a
320
py
Python
hardware/dht/__init__.py
jpalczewski/pills
ab0cf0feedbdfe069a0dad76c8a45ee9ab4cfc26
[ "MIT" ]
null
null
null
hardware/dht/__init__.py
jpalczewski/pills
ab0cf0feedbdfe069a0dad76c8a45ee9ab4cfc26
[ "MIT" ]
null
null
null
hardware/dht/__init__.py
jpalczewski/pills
ab0cf0feedbdfe069a0dad76c8a45ee9ab4cfc26
[ "MIT" ]
null
null
null
from .DHT22 import sensor import time import pigpio async def poll_once(): pi = pigpio.pi() s = sensor(pi, 24, LED=None, power=None,DHT11=False) s.trigger() time.sleep(0.2) humidity = s.humidity() temperature = s.temperature() s.cancel() pi.stop() return (humidity, temperature)
17.777778
56
0.6375
0
0
0
0
0
0
265
0.828125
0
0
8e5ba2a20b4cea3293ed973ff92b38716b7ec7fc
2,267
py
Python
test.py
gadolly/Deep_learning
b29248f97d576c36cad9eb0f67ed834d7a5aadad
[ "MIT" ]
null
null
null
test.py
gadolly/Deep_learning
b29248f97d576c36cad9eb0f67ed834d7a5aadad
[ "MIT" ]
null
null
null
test.py
gadolly/Deep_learning
b29248f97d576c36cad9eb0f67ed834d7a5aadad
[ "MIT" ]
null
null
null
# import the necessary packages from keras.preprocessing import image as image_utils from imagenet_utils import decode_predictions from imagenet_utils import preprocess_input from vgg16 import VGG16 import numpy as np import argparse import cv2 from keras.utils import np_utils import matplotlib.pyplot as plt from matpl...
30.635135
71
0.736215
0
0
0
0
0
0
0
0
1,144
0.504632
8e5dc3da5c6988b8cfded965ef1f80d576653a4f
1,534
py
Python
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
null
null
null
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
1
2021-12-04T11:54:56.000Z
2021-12-04T11:54:56.000Z
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
null
null
null
'''Tests for methods.py''' from methods import FuncName, Method, TVList from common import Capitalizer from protocol import DirectReturn def test_funcname(): funcname_p = FuncName(Capitalizer()) assert funcname_p.transform('foo_bar_baz') == 'FooBarBaz' def test_funcname_default(): funcname_p = FuncName() as...
26
79
0.666884
0
0
0
0
0
0
0
0
417
0.271838
8e6099119f26b536e38e505e34fc237bd2e59cfb
152
py
Python
chapter-14/shakespearebot-waypoint/bot/models.py
GeSup/Hands-on-JavaScript-for-Python-Developers
a4d779e3e46797754252e97ec0e517c9e42682c6
[ "MIT" ]
41
2019-04-30T14:55:48.000Z
2022-03-27T21:59:56.000Z
chapter-14/shakespearebot-waypoint/bot/models.py
GeSup/Hands-on-JavaScript-for-Python-Developers
a4d779e3e46797754252e97ec0e517c9e42682c6
[ "MIT" ]
10
2020-05-27T22:54:38.000Z
2020-10-13T21:52:24.000Z
chapter-14/shakespearebot-waypoint/bot/models.py
GeSup/Hands-on-JavaScript-for-Python-Developers
a4d779e3e46797754252e97ec0e517c9e42682c6
[ "MIT" ]
24
2019-05-07T21:02:11.000Z
2021-10-31T23:44:14.000Z
from django.db import models class Text(models.Model): PlayerLine = models.CharField(max_length=1000) def __str__(self): return self.PlayerLine
25.333333
48
0.769737
122
0.802632
0
0
0
0
0
0
0
0
8e615b3096b4af4bf6362be743bc75af467ed5a8
17,468
py
Python
tests/test_requirements.py
domdfcoding/packing-tape
d8570033c8088c68527db918339c14aa6953264f
[ "MIT" ]
null
null
null
tests/test_requirements.py
domdfcoding/packing-tape
d8570033c8088c68527db918339c14aa6953264f
[ "MIT" ]
null
null
null
tests/test_requirements.py
domdfcoding/packing-tape
d8570033c8088c68527db918339c14aa6953264f
[ "MIT" ]
null
null
null
# stdlib from typing import List, Sequence, Union # 3rd party import pytest from coincidence.regressions import AdvancedDataRegressionFixture from coincidence.selectors import min_version, not_windows, only_version from domdf_python_tools.paths import PathPlus from packaging.requirements import Requirement from packag...
30.916814
101
0.676551
2,800
0.160293
0
0
8,922
0.510763
0
0
5,812
0.332723
8e6171a69d7112d24e0deaed0a6f8f8e780b1f04
6,682
py
Python
tests/ut/python/parallel/test_uniform_candidate_sampler.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
tests/ut/python/parallel/test_uniform_candidate_sampler.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_uniform_candidate_sampler.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
41.246914
109
0.700389
1,710
0.255911
0
0
0
0
0
0
860
0.128704
8e622edaf8f47d87d5f8233d0e8589b835af46c3
3,464
py
Python
lib/servers/data_vault.py
clayton-ho/EGGs_Control
312f02488b47cf880c6e6600ce10856a871123df
[ "MIT" ]
null
null
null
lib/servers/data_vault.py
clayton-ho/EGGs_Control
312f02488b47cf880c6e6600ce10856a871123df
[ "MIT" ]
null
null
null
lib/servers/data_vault.py
clayton-ho/EGGs_Control
312f02488b47cf880c6e6600ce10856a871123df
[ "MIT" ]
null
null
null
# Copyright (C) 2007 Matthew Neeley # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed i...
32.679245
81
0.687356
0
0
2,217
0.640012
2,170
0.626443
0
0
1,723
0.497402
8e64479dc605db78a7e77be2782621351e868958
446
py
Python
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-11-07 00:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('atlantisbot_api', '0003_auto_20201107_0018'), ] operations = [ migrations.AlterModelTable( name='discordingamename', table=...
20.272727
55
0.58296
360
0.807175
0
0
0
0
0
0
122
0.273543
8e65b59f5232680aea8dce90eae39a5dcfa86850
5,465
py
Python
py-opentsdb.py
langerma/py-opentsdb
d652a96d3a53bf7c6785a1d586427d666bb3da96
[ "BSD-2-Clause" ]
2
2020-02-20T16:00:11.000Z
2020-02-20T16:00:21.000Z
py-opentsdb.py
langerma/py-opentsdb
d652a96d3a53bf7c6785a1d586427d666bb3da96
[ "BSD-2-Clause" ]
null
null
null
py-opentsdb.py
langerma/py-opentsdb
d652a96d3a53bf7c6785a1d586427d666bb3da96
[ "BSD-2-Clause" ]
null
null
null
import requests import pandas try: # Use ujson if available. import ujson as json except Exception: import json class OpenTSDBResponseSerie(object): """ A single OpenTSDB response serie i.e 1 element of the response array. Params: **kwargs : OpenTSDB response serie ...
31.589595
103
0.530101
5,331
0.97548
146
0.026715
544
0.099543
0
0
1,977
0.361757
8e65daebe577c08239034ca2c192e6c446ad91d9
5,865
py
Python
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
26
2020-09-25T06:25:06.000Z
2022-01-30T16:44:07.000Z
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
12
2020-12-21T19:59:48.000Z
2022-01-21T10:32:07.000Z
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
11
2020-09-17T13:39:19.000Z
2022-03-02T18:12:29.000Z
import os from os.path import dirname from unittest import TestCase import pytest import src.superannotate as sa class TestCloneProject(TestCase): PROJECT_NAME_1 = "test_create_like_project_1" PROJECT_NAME_2 = "test_create_like_project_2" PROJECT_DESCRIPTION = "desc" PROJECT_TYPE = "Vector" IMAGE_...
35.762195
94
0.539301
5,746
0.97971
0
0
98
0.016709
0
0
1,028
0.175277
8e672b30ac2d4293d252c3f28a77e16722f9d3c0
1,139
py
Python
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
14
2018-07-06T12:04:46.000Z
2022-03-21T10:01:27.000Z
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
null
null
null
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
4
2019-01-08T03:31:55.000Z
2021-12-28T01:39:15.000Z
import pyamg from . import gmg_base class ClassicalAMG(gmg_base.GMG): def __init__(self, A, max_levels=10, presmoother="jacobi", presmooth_par={"omega": 2./3, "iterations": 2, "withrho": False}, postsmoother=None, postsmooth_par=None, cycle="V"): super()._...
54.238095
107
0.539069
1,102
0.967515
0
0
0
0
0
0
42
0.036874
8e673db362c569f9ad4cae086dd2478daf171db2
13,601
py
Python
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
""" Code to plot average nearest neighbor distance between fish in a school as a function of group size - one line per water temperature. """ # imports import sys, os import numpy as np import matplotlib.pyplot as plt import pickle from matplotlib import cm import argparse #argparse def boolean_string(s): # thi...
35.792105
160
0.710462
0
0
0
0
0
0
0
0
8,728
0.641718
8e67c9cb778e91d2cab352898b79d1683798c293
144
py
Python
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
1
2022-01-15T12:22:30.000Z
2022-01-15T12:22:30.000Z
""" .. module:: tools.__init__ :synopsis: This package contains tools for handling results obtained with the main SModelS code. """
20.571429
81
0.6875
0
0
0
0
0
0
0
0
142
0.986111
8e68d491045b46e0d5c3609fa40d0f8cbf83aabf
3,106
py
Python
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
3
2018-09-08T10:28:59.000Z
2019-09-08T00:11:33.000Z
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
null
null
null
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
2
2019-04-17T17:24:28.000Z
2019-06-10T18:16:44.000Z
"""Author: Brandon Trabucco. Utility class for loading and managing locations in the robot's map. """ import json import math import rospy from rt_msgs.msg import Odom from std_msgs.msg import Header from geometry_msgs.msg import Pose from geometry_msgs.msg import Point from geometry_msgs.msg import Quaternion from g...
24.650794
83
0.603348
2,474
0.796523
0
0
1,067
0.343529
0
0
992
0.319382
8e69d02ee0597be4c48dd1fc7fd8cd5d2f553e35
2,238
py
Python
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
null
null
null
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
null
null
null
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
1
2019-12-13T15:18:58.000Z
2019-12-13T15:18:58.000Z
from rest_framework import serializers from joplin_web.models import Folders, Notes, Tags, NoteTags, Version class FoldersSerializer(serializers.ModelSerializer): nb_notes = serializers.IntegerField(read_only=True) class Meta: fields = ('id', 'title', 'parent_id', 'nb_notes', 'created_time') ...
29.84
98
0.628239
2,110
0.942806
0
0
0
0
0
0
416
0.18588
8e6a3aa8541823f934e62f4e12fc8d0777921c86
435
py
Python
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
import datetime from app.constants import Constants as c from app.input import InputMonthly from app.output import OutputFactory from app.create import CreatorUtility, SolverMIP inp = InputMonthly() out = OutputFactory() solv = SolverMIP() creator = CreatorUtility(inp, out, solv) settings = {c.START: datetime.date(2...
25.588235
48
0.728736
0
0
0
0
0
0
0
0
0
0
8e6ab08948cc89750d63dd9c07947a6c58786c2f
5,859
py
Python
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
1
2021-05-09T02:54:10.000Z
2021-05-09T02:54:10.000Z
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
""" NCL_sat_3.py ================ This script illustrates the following concepts: - zooming into an orthographic projection - plotting filled contour data on an orthographic map - plotting lat/lon tick marks on an orthographic map See following URLs to see the reproduced NCL plot & script: - Original ...
33.48
82
0.497013
0
0
0
0
0
0
0
0
2,011
0.343233
8e6c93847574069cca7db77ebf31e5ff0a8a00ef
2,047
py
Python
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
1
2019-02-06T16:52:05.000Z
2019-02-06T16:52:05.000Z
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
null
null
null
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
null
null
null
from bot import db def save(data): sql = """ insert into clippingsbot.teams ( team_id, access_token, user_id, team_name, scope ) values ( :team_id, :access_token, :user_id, :team_name, :scope ) on conflict (team_id) do update set scope = excluded.scope, access_token = exclud...
28.041096
76
0.662921
0
0
0
0
0
0
0
0
1,235
0.603322
8e6d24e204761284a5dd415da03add5895524b76
3,947
py
Python
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
1
2020-04-02T08:02:33.000Z
2020-04-02T08:02:33.000Z
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
9
2020-03-24T21:09:16.000Z
2020-07-24T09:58:11.000Z
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
null
null
null
import typing from operator import itemgetter from http_types import HttpExchange from jsonpath_rw import parse from openapi_typed_2 import OpenAPIObject, convert_from_openapi, convert_to_openapi from meeshkan.nlp.data_extractor import DataExtractor from meeshkan.nlp.entity_extractor import EntityExtractor from meesh...
40.27551
88
0.624272
3,448
0.873575
0
0
0
0
0
0
224
0.056752
8e6f58d75f26add4efd1a1ca913400a65b65e8ba
62
py
Python
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
from flask import render_template, request from . import main
20.666667
42
0.822581
0
0
0
0
0
0
0
0
0
0
8e7144c085cff446c01b799bb109c5bbe09b0b02
3,216
py
Python
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
12
2021-12-15T09:03:36.000Z
2022-03-28T21:37:25.000Z
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
3
2022-01-04T18:03:01.000Z
2022-03-31T16:15:25.000Z
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
4
2022-01-04T17:44:23.000Z
2022-03-28T21:37:42.000Z
import os import sys import torch.nn as nn if True: DDLNN_HOME = os.environ['DDLNN_HOME'] meta_rule_home = '{}/src/meta_rule/'.format(DDLNN_HOME) src_rule_home = '{}/dd_lnn/'.format(DDLNN_HOME) sys.path.append(meta_rule_home) sys.path.append(src_rule_home) from lnn_operators \ impor...
30.056075
79
0.600435
2,794
0.868781
0
0
0
0
0
0
134
0.041667
8e714557c8e4d44f9b9d7485ed6921411a4740ad
359
py
Python
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
19
2021-04-25T13:28:12.000Z
2021-06-16T18:30:38.000Z
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
23
2021-04-06T17:00:04.000Z
2021-04-20T18:03:35.000Z
test/test_sns.py
TSNoble/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
1
2021-04-07T07:45:37.000Z
2021-04-07T07:45:37.000Z
import moto import boto3 @moto.mock_sns def test_topic_should_receive_message_assertion(): arn = boto3.client("sns").create_topic(Name="foo")["TopicArn"] topic = boto3.resource("sns").Topic(arn) with topic.should.receive("foo"): topic.publish(Message="foo") with topic.should_not.receive("bar")...
27.615385
66
0.696379
0
0
0
0
331
0.922006
0
0
45
0.125348
8e71ce111f7ea9dd7c20cea0fda5b54b66380cdd
423
py
Python
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
2
2022-03-04T11:37:44.000Z
2022-03-04T13:53:13.000Z
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 12 21:22:49 2021 @author: Hrishikesh Terdalkar """ ############################################################################### __author__ = """Hrishikesh Terdalkar""" __email__ = 'hrishikeshrt@linuxmail.org' __version__ = '0.0.2' ###########...
22.263158
79
0.43026
0
0
0
0
0
0
0
0
338
0.799054
8e723b8f4a32d0c8a03c62c48807cc3c480dfc71
16,604
py
Python
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v3.1.3), on June 24, 2019, at 16:21 If you publish work using this script please cite the PsychoPy publications: Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neu...
41.51
201
0.668152
0
0
0
0
0
0
0
0
6,885
0.414659
8e73639fd89c53082140ccfdb67b914c88ac5358
831
py
Python
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
from pydatastructsalgorithms import tree_list as tree # r = tree.binary_tree(3) # tree.insert_left(r, 4) # tree.insert_left(r, 5) # tree.insert_right(r, 6) # tree.insert_right(r, 7) # l = tree.get_left_child(r) # tree.set_root_val(l, 9) # tree.insert_left(l, 11) # print(tree.get_right_child(tree.get_right_child(r))) ...
23.742857
70
0.713598
0
0
0
0
0
0
0
0
499
0.600481
8e73968f0c29704beef26acb5999c4d5909b9d5e
309
py
Python
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2018-04-10T20:10:39.000Z
2018-04-10T20:10:39.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2020-04-29T23:14:11.000Z
2020-04-29T23:14:11.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
null
null
null
from flask import _app_ctx_stack, jsonify from choptop import app def get_model(): appContext = _app_ctx_stack.top choptop = getattr(appContext, "ChopTop", None) return choptop @app.route('/position') def get_position(self): choptop = get_model() return jsonify(choptop.finger_position)
23.769231
50
0.7411
0
0
0
0
117
0.378641
0
0
20
0.064725
8e745ff62ea6033b9af40da163096d4969eae110
3,856
py
Python
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
2
2021-03-14T06:35:12.000Z
2022-01-03T08:39:30.000Z
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
null
null
null
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
1
2021-03-14T06:35:13.000Z
2021-03-14T06:35:13.000Z
# ----------------------- PATH ------------------------ ROOT_PATH = "." DATA_PATH = "%s/../Datasets" % ROOT_PATH FB15K_DATA_PATH = "%s/fb15k" % DATA_PATH DB100K_DATA_PATH = "%s/db100k" % DATA_PATH FB15K_SPARSE_DATA_PATH = "%s/fb15k-sparse" % DATA_PATH LOG_PATH = "%s/log_dir" % ROOT_PATH CHECKPOINT_PATH = "%s/checkpoi...
34.428571
76
0.673237
0
0
0
0
0
0
0
0
1,220
0.31639
8e79f3580f36653daa75d2b29b580bf63af34199
932
py
Python
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
from flask import Flask from werkzeug.middleware.dispatcher import DispatcherMiddleware from werkzeug.serving import run_simple from Base import Telemetric, CONFIG __all__ = ['start_app'] __version__ = "0.1.0" LOGGER = Telemetric.LOGGER.getChild('WebApp') APP = Flask(__name__) HOSTNAME = CONFIG.get('WebApp', 'HOST',...
23.3
83
0.683476
0
0
0
0
0
0
0
0
164
0.175966
8e7b1a04d745dc6e204362c61a41930cc35f005b
682
py
Python
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
''' testsvg.py ''' import pygal fa4_in_packets = [24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24, 21] fa4_out_packets = [21, 24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24] # Create a Chart of type Line line_chart = pygal.Line() # Title line_chart.title = 'Input/Output Packets and Bytes' # X-axis labels (samples were every ...
29.652174
93
0.678886
0
0
0
0
0
0
0
0
337
0.494135
8e7b99b3286e2086dc64ba2272a4da8ef40cb9cf
2,573
py
Python
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
import urllib.parse, urllib.request, json, ssl # Authentication and API Requests # LEARNING LAB 2 Cisco Kinetic for Cities # The Initial login steps are the same as Learning Lab 1. # You can skip ahead to 'LEARNING LAB 2 CODE BEGINS HERE' #Ignore invalid Certificates ssl._create_default_https_context = ssl._create_...
37.289855
128
0.724835
0
0
0
0
0
0
0
0
1,792
0.696463
8e7d265dcc13b68469fdea2d8131380b85fbb3c6
4,780
py
Python
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
null
null
null
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
3
2020-06-05T19:21:25.000Z
2021-06-10T20:54:22.000Z
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
null
null
null
import json import uuid import os import docker import time from celery.utils.log import get_task_logger from config import settings from .language import LANGUAGE from .status import ComputingStatus logger = get_task_logger(__name__) class Machine: client = docker.from_env() def __init__(self): s...
32.965517
105
0.565063
4,539
0.949582
0
0
0
0
0
0
597
0.124895
8e7e2fd82b90a62a490603dc24f1988ca7e27fb8
31
py
Python
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
null
null
null
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
3
2020-02-12T00:02:35.000Z
2021-06-10T19:38:41.000Z
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
null
null
null
__author__ = 'heddevanderheide'
31
31
0.83871
0
0
0
0
0
0
0
0
18
0.580645
8e7edf92edac4cf5b0a634e3bcb329f30e6b8e66
2,160
py
Python
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
1
2021-11-12T08:19:53.000Z
2021-11-12T08:19:53.000Z
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
null
null
null
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
null
null
null
from functools import partial import logging from typing import Callable, Any, Iterable from collections import defaultdict from kombu import Connection from kombu.mixins import ConsumerMixin from classic.components import component from .handlers import MessageHandler, SimpleMessageHandler from .scheme import Broke...
29.589041
75
0.6375
1,742
0.806481
0
0
1,753
0.811574
0
0
100
0.046296
8e7ff2193d4240f5f73671b8a5f9d6d5555d5513
2,004
py
Python
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
from cmath import exp, pi from math import log2 def vratLiche(a): oddA = list(); for i in range(len(a)): if(i % 2 == 1): oddA.append(a[i]) return oddA def vratSude(a): evenA = list() for i in range(len(a)): if(i % 2 == 0): evenA.append(a[i]) return evenA...
27.833333
65
0.510978
0
0
0
0
0
0
0
0
106
0.052841
8e80ad9615affb9458b6c1ded08a8495b039b868
609
py
Python
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding:UTF-8 -*- # 把对象pickle至文件 try: import cPickle as pickle except: import pickle import sys class SimpleObject(object): def __init__(self,name): self.name = name self.name_backwards = name[::-1] if __name__ == '__main__': data = [] data.append(Sim...
20.3
66
0.596059
122
0.196457
0
0
0
0
0
0
126
0.202899
8e85f751c8a5501a2b056c1fde74847efffec00d
4,147
py
Python
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
1
2022-03-08T19:00:37.000Z
2022-03-08T19:00:37.000Z
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
null
null
null
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8; buffer-read-only: t -*- __author__ = "Gregorio Ambrosio" __contact__ = "gambrosio[at]uma.es" __copyright__ = "Copyright 2021, Gregorio Ambrosio" __date__ = "2021/02/22" __license__ = "MIT" import unittest import os import sys import pandas as pd import matplotlib.pyplot as p...
30.947761
78
0.564022
3,758
0.894123
0
0
0
0
0
0
1,716
0.40828
8e8737e7bdcd75430db3502155a2cb8e2ea47372
4,483
py
Python
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
135
2021-03-23T23:07:47.000Z
2022-03-30T03:08:42.000Z
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
12
2021-04-06T16:57:14.000Z
2021-12-31T07:06:05.000Z
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
13
2021-03-24T14:37:48.000Z
2022-03-06T13:24:52.000Z
# Differentiable Augmentation for Data-Efficient GAN Training # Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han # https://arxiv.org/pdf/2006.10738 import torch import torch.nn.functional as F from torch.distributions.dirichlet import _Dirichlet def BetaSample(alpha, beta, sample_shape=torch.Size()): ...
39.672566
110
0.586438
0
0
0
0
0
0
0
0
383
0.085434
8e8a1596a6b3ed1679875e09d7a25bdcda290e69
3,000
py
Python
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
import re from dataclasses import dataclass from typing import List, Optional @dataclass class PlayBoard: numbers: List[List[Optional[int]]] def read_numbers() -> List[int]: with open("data.txt", "r") as file: data = file.readline() return list(map(int, data.split(","))) def read_boards() -> L...
30.30303
118
0.640333
55
0.018333
0
0
66
0.022
0
0
595
0.198333
8e8ac78399e840a9f4584fc74b5d093c38c0fc44
265
py
Python
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
77
2015-01-03T20:26:28.000Z
2021-07-07T15:08:25.000Z
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:31.000Z
2021-06-10T23:42:31.000Z
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
20
2015-01-17T16:33:41.000Z
2021-12-23T03:40:36.000Z
import os static_path = os.path.join(os.path.dirname(__file__), "..", "static") apiurl = "http://localhost:8000/api/%s" local_store = os.path.join(static_path, "graphs") local_store_url = "http://localhost:8000/static/graphs" nodename = "lg" nodepwd = "lg@home"
24.090909
69
0.709434
0
0
0
0
0
0
0
0
100
0.377358
8e8b609df5d78fd1e3a458dac9a51ed8f9a19335
952
py
Python
src/omnis/structure_nodes/loop.py
rodrigogomesantos/omnis
a6f59c870d86c112f26a5b98c31889d64eea39eb
[ "MIT" ]
null
null
null
src/omnis/structure_nodes/loop.py
rodrigogomesantos/omnis
a6f59c870d86c112f26a5b98c31889d64eea39eb
[ "MIT" ]
null
null
null
src/omnis/structure_nodes/loop.py
rodrigogomesantos/omnis
a6f59c870d86c112f26a5b98c31889d64eea39eb
[ "MIT" ]
null
null
null
class loop(): def __init__(self, _loop_type, **kwargs) -> None: self.type = _loop_type self.kwargs = kwargs self.break_function = self.kwargs.get("break_function") self.range = kwargs.get("range") self.start = getattr(self, f"_{self.type}") self.counter = 0 se...
35.259259
63
0.590336
952
1
0
0
0
0
0
0
38
0.039916
8e8bc66edbc27feb19c1a24e01f7065d5f4aedb0
4,646
py
Python
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
1
2020-09-17T16:41:34.000Z
2020-09-17T16:41:34.000Z
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
null
null
null
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
null
null
null
import sys import numpy as np ############################################################# ### ### ### Module for Python3 ### ### * Using Numpy ( + Cupy ? ) ### ### ...
30.168831
88
0.44619
4,228
0.91003
0
0
0
0
0
0
1,783
0.383771
8e8c088d3edb685bf729a71250bfe8e5e7bfb65d
2,046
py
Python
src/dungeonbot/plugins/helpers/die_roll.py
tlake/dungeonbot_backup
715c14d3a06d8a7a8771572371b67cc87c7e17fb
[ "MIT" ]
null
null
null
src/dungeonbot/plugins/helpers/die_roll.py
tlake/dungeonbot_backup
715c14d3a06d8a7a8771572371b67cc87c7e17fb
[ "MIT" ]
null
null
null
src/dungeonbot/plugins/helpers/die_roll.py
tlake/dungeonbot_backup
715c14d3a06d8a7a8771572371b67cc87c7e17fb
[ "MIT" ]
null
null
null
class DieRoll(object): """Roll object that parses roll string and calls appropriate function.""" def __init__(self, roll_str, flag): """Initialize Die roll object by breaking apart roll string.""" valid_flags = { "a": self.advantage, "d": self.disadvantage } ...
31.476923
77
0.535679
2,045
0.999511
0
0
0
0
0
0
366
0.178886
8e8d954a7e320b872b94573d4e171b827ee4d202
1,099
py
Python
src/utils/load_or_make.py
jlehnersd/metis_project2
0bde762c43c4cf9aa5c6672b894e704803616aa3
[ "MIT" ]
16
2019-04-08T22:09:51.000Z
2021-08-02T18:18:41.000Z
src/utils/load_or_make.py
jlehnersd/metis_project2
0bde762c43c4cf9aa5c6672b894e704803616aa3
[ "MIT" ]
1
2019-11-19T06:27:37.000Z
2019-12-26T20:56:03.000Z
src/utils/load_or_make.py
floraxinru/metisproject04
80ee97eedbf675d6f5064eb92fd7166b56bb81e6
[ "MIT" ]
8
2019-04-08T23:01:39.000Z
2021-08-02T18:18:43.000Z
import os, pickle import functools def load_or_make(creator): """ Loads data that is pickled at filepath if filepath exists; otherwise, calls creator(*args, **kwargs) to create the data and pickle it at filepath. Returns the data in either case. Inputs: - filepath: path to where data...
28.179487
67
0.606915
0
0
0
0
362
0.32939
0
0
645
0.586897
8e8e40f2f08d10e053b3679ecaea9d2e6c4d91a1
183
py
Python
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
null
null
null
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
9
2019-12-04T22:50:51.000Z
2022-02-10T10:25:40.000Z
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
null
null
null
from rest_framework import routers from .api import AnimalViewSet router = routers.DefaultRouter() router.register('api/animals', AnimalViewSet, 'animals') urlpatterns = router.urls
26.142857
56
0.808743
0
0
0
0
0
0
0
0
22
0.120219
8e8f2cd4383b58674dc6f3bff361444a5618a257
13,075
py
Python
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
3
2021-02-05T08:30:40.000Z
2021-02-05T11:33:16.000Z
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
null
null
null
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
null
null
null
from os import replace from typing import List, Dict, Any, Callable import os import re import json import functools ST_UNKNOWN = "*" ST_BOOL = "bool" ST_INT = "integer" ST_STR = "string" ST_FLOAT = "float" ST_URL = "url" ST_DATETIME = "datetime" REGEXP_URL = re.compile('^https?://.+$') REGEX...
36.218837
144
0.578356
8,837
0.67587
0
0
1,755
0.134226
0
0
756
0.05782
8e8fa3cd904b0121303ce6cd660e368b0933349e
393
py
Python
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
null
null
null
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
null
null
null
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
1
2016-01-27T13:37:09.000Z
2016-01-27T13:37:09.000Z
from setuptools import setup from platform import system SYSTEM = system() VERSION = '1.0.2' if SYSTEM == 'Windows': scripts = ['grebot/grebot.bat'] else: scripts = ['grebot/grebot.sh'] setup( name='grebot', version=VERSION, packages=['grebot'], license='MIT', long_description=open('READM...
18.714286
47
0.653944
0
0
0
0
0
0
0
0
96
0.244275
8e90005a1d37aeec86aa49ac6b0e7b616e3410f4
3,774
py
Python
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
2
2022-02-22T14:24:38.000Z
2022-02-26T13:33:25.000Z
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
null
null
null
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
null
null
null
import operator from magicgui import magicgui OPERATOR_DICTIONARY = { "Divide": (operator.truediv, "Measurement_Ratio"), "Multiply": (operator.mul, "Measurement_Product"), "Add": (operator.add, "Measurement_Sum"), "Subtract": (operator.sub, "Measurement_Difference"), } measurement_math_options = list...
29.952381
144
0.621092
0
0
0
0
3,033
0.803657
0
0
1,829
0.484632
8e90bb685c3b1c5f6854891a144a51a32c3e3543
3,717
py
Python
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
5
2016-08-02T16:01:31.000Z
2017-09-15T21:44:56.000Z
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
null
null
null
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
1
2017-07-29T18:42:09.000Z
2017-07-29T18:42:09.000Z
""" Model classes - contains the primary objects that power pylibRETS. """ class MetadataSystem(object): def __init__(self): self.GetSystemID = None self.GetSystemDescription = None self.GetComments = None self.GetTimeZoneOffset = None self.GetMetadataID = None self.GetResourceVersion = None self.Get...
25.634483
66
0.750605
3,626
0.975518
0
0
0
0
0
0
74
0.019909
8e91dfb90c4fe4bfe8c34531aaadba87573629d2
980
py
Python
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='uumarrty', version='0.0.1', url='https://github.com/michaelremington2/uumarrty', author='Michael Remington and Jeet Sukumaran', ...
28.823529
68
0.656122
0
0
0
0
0
0
0
0
502
0.512245
8e92b7bf4f6465a749d963319c6412e27abe7160
111
py
Python
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
import angr class gen_simproc4v(angr.SimProcedure): def run(self, arg1, ar2, arg3, arg4): return
15.857143
41
0.675676
96
0.864865
0
0
0
0
0
0
0
0
8e92d4b4780c0502b64aba9cbe5abb7f02ad327d
10,370
py
Python
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #Boa:App:BoaApp import wx import matplotlib as _matplotlib import pylab as _pylab import _pylab_colorslider_frame as _pcf; reload(_pcf) try: _prefs except: _prefs = None modules ={u'pylab_colorslider_frame': [1, 'Main frame of Application', ...
34.451827
105
0.533848
9,622
0.927869
0
0
0
0
0
0
3,220
0.310511
8e948cdbd864ca7d68940aa639d8604501f00bc5
683
py
Python
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
from Data.Drawer import Drawer from Data.Helper import * from Pages.PageBase import PageBase class Reboot(PageBase): def __init__(self, drawer: Drawer): PageBase.__init__(self, drawer) def UpdateCanvas(self): if not self.CanUpdate(100): return self.drawer.ClearCanv...
31.045455
65
0.610542
589
0.862372
0
0
0
0
0
0
90
0.131772
8e98c19a9f41dbb82f2ec64a837df13e0499732e
380
py
Python
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
from math import radians, sin, cos, tan angulo = float(input('Digite o ângulo que você deseja: ')) seno = sin(radians(angulo)) cosseno = cos(radians(angulo)) tangente = tan(radians(angulo)) print(f'O ângulo de {angulo} tem o SENO de {seno :.2f}!') print(f'O ângulo de {angulo} tem o COSSENO de {cosseno :.2f}!') print(...
34.545455
65
0.694737
0
0
0
0
0
0
0
0
204
0.52987
8e995a2b9016602f49ded74c3b7213f7af39a054
2,315
py
Python
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import numpy as np app = dash.Dash() # Creating Data np.random.seed(42) random_x = np.random.randint(1, 101, 100) random_y = np.random.randint(1, 101, 100) # everything that we are going to be inserting ...
45.392157
90
0.310151
0
0
0
0
0
0
0
0
435
0.187905
8e9b97604a5cb5368bd271887ae7d926ada9d2f3
685
py
Python
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
__author__ = 'yinjun' # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param head, a ListNode # @param x, an integer # @return a ListNode def partition(self, head, x): h1 = ListNode(0) ...
18.513514
41
0.464234
526
0.767883
0
0
0
0
0
0
204
0.29781
8e9c2da8ab435f1bdffb4bc676ac1fdf47cb0931
1,134
py
Python
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
""" Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com sua idade se ele ainda vai se alistar se é a hora de se alistar se já passou o tempo de alistar o programa também deve falar o tempo que falta ou que passou """ import datetime import time ano_nasc = int(input('Ano de Nascimento: '...
35.4375
92
0.694004
0
0
0
0
0
0
0
0
635
0.555556
8e9c71c55ad72a43c98fbcef2fffb6bb801d664d
3,040
py
Python
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
32
2018-09-04T08:51:08.000Z
2022-02-22T02:04:38.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
5
2019-05-27T07:54:52.000Z
2022-01-11T10:14:25.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
14
2018-06-22T15:29:39.000Z
2021-09-28T12:58:37.000Z
""" A class interfce to netvlad based whole image descriptor. To use the pre-trained network in your application use this code and unit-test Author : Manohar Kuse <mpkuse@connect.ust.hk> Created : 20th Aug, 2018 """ import cv2 import numpy as np import os import time import code import argparse impor...
30.707071
113
0.659868
1,490
0.490132
0
0
0
0
0
0
721
0.237171
8e9d1f88f2018b598e87d9922395a3eec689c6a1
2,389
py
Python
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
null
null
null
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
1
2017-10-12T23:01:32.000Z
2017-11-21T06:44:07.000Z
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
1
2018-09-19T15:12:57.000Z
2018-09-19T15:12:57.000Z
import argparse import os import time ## Argparser def str2slist(s): s.replace(' ', '') return s.split(',') def str2ilist(s): s.replace(' ', '') return [int(c) for c in s.split(',')] def str2bool(v): if v in ['true', 'True']: return True elif v in ['false', 'False']: return F...
25.688172
69
0.601925
1,250
0.523231
388
0.162411
0
0
0
0
253
0.105902
8e9d9a8e7ebad14756d858c92a15d00b8f0de94b
2,983
py
Python
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
# Download data, unzip, etc. from matplotlib import pyplot as plt import pandas as pd import numpy as np import scipy.stats as st # Set some parameters to apply to all plots. These can be overridden # in each plot if desired import matplotlib # Plot size to 14" x 7" matplotlib.rc('figure', figsize = (14, 7)) # Font...
33.516854
111
0.638284
0
0
0
0
0
0
0
0
1,199
0.401944
8e9e6af2d0e1e8b1eb883ee00252a7b5e6939c84
3,953
py
Python
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
2
2017-10-26T19:40:51.000Z
2018-03-07T12:10:49.000Z
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
__author__ = 'croman' from pipeline import pipe from lxml import etree import rdflib def ner(datasetfile, format): tweets = "" tweetids = [] if format == 'xml': dataset = etree.parse(datasetfile) for tweet in dataset.xpath('//Tweet'): tweetText = tweet.xpath('./TweetText/text(...
27.838028
77
0.517329
0
0
0
0
0
0
0
0
2,117
0.535543
8ea04f344a5f50abc39827025757b32b1b9d55c5
2,313
py
Python
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
import pandas as pd import random def generate_teams(n_teams=128, n_countries=3, csv_file="times.csv"): times = pd.DataFrame(columns=['nome', 'estadio', 'nacionalidade', 'score']) for i in range(n_teams): times = times.append({ 'nome': 'Time ' + str(i), 'estadio': random.randin...
32.125
107
0.5361
0
0
0
0
0
0
0
0
732
0.316472
8ea223055e4d3fcfd6d5415328c4b3e36324649c
3,988
py
Python
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
1
2019-03-13T10:14:35.000Z
2019-03-13T10:14:35.000Z
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
1
2021-09-23T23:36:29.000Z
2021-09-23T23:36:29.000Z
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
4
2018-10-27T00:29:24.000Z
2022-01-07T07:39:51.000Z
#!/usr/bin/python """ Ansible module for rpm-based systems determining existing package version information in a host. """ from ansible.module_utils.basic import AnsibleModule IMPORT_EXCEPTION = None try: import rpm # pylint: disable=import-error except ImportError as err: IMPORT_EXCEPTION = err # in tox te...
31.15625
116
0.621364
232
0.058175
0
0
0
0
0
0
990
0.248245
8ea41ac7ddbb096f8c509205102ac3523839b975
3,335
py
Python
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
null
null
null
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
null
null
null
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
1
2018-09-27T22:41:58.000Z
2018-09-27T22:41:58.000Z
# Copyright 2014 Novo Nordisk Foundation Center for Biosustainability, DTU. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.761905
119
0.755022
0
0
0
0
0
0
0
0
2,138
0.641079
8ea5524aaaf6020d2fb120959b8bb005d31ffdc3
12,967
py
Python
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import logging import re from time import sleep import requests import urllib3 from app.utils.spider_utils import getHtmlTree, verifyProxyFormat from app.utils.web_request import WebRequest urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) logging.basicConfig(level=logging.IN...
36.94302
134
0.488162
11,463
0.850686
7,852
0.582709
7,996
0.593395
0
0
7,587
0.563043
8ea5e29ef8c1696d1f4448a1275564f4cc6083ea
786
py
Python
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode[]} lists # @return {ListNode} def mergeKLists(self, lists): lists = [i for i in lists if i] if not lists: return None ...
786
786
0.479644
0
0
0
0
0
0
0
0
786
1
8ea66006c86aaaba9532a364fe87531b05105008
1,384
py
Python
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2020-04-30T21:32:01.000Z
2020-04-30T21:32:01.000Z
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2021-10-05T02:00:04.000Z
2021-10-05T02:00:04.000Z
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
null
null
null
def notas(*n, show=False): """ -> Função que lê varias notas e retorna um dicionario com dados :param n: Lê varias notas (numero indefinido) :param show: Mostra a situação do aluno (opc) :return: Retorna um dicionario """ dados = dict() dados['total'] = len(n) dados['maior'] = max(n...
28.244898
77
0.533237
0
0
0
0
0
0
0
0
586
0.41917
8ea6772e802a782c50f83515c19392b32fbb9402
779
py
Python
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
from nltk import sent_tokenize, word_tokenize, pos_tag, ne_chunk sentence = 'Usually I go to the hospital when I am afraid. When I sould go there?' sentences_splitted = sent_tokenize(sentence) sentence_words_splitted = [word_tokenize(s) for s in sentences_splitted] question = [ne_chunk(pos_tag(s)) for s in sentences_...
51.933333
172
0.69448
0
0
0
0
0
0
0
0
266
0.341463
8ea86f5c1066313076da8b4f11d85883b0f7d98c
16,079
py
Python
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' translator.py: 3 address code -> TAM translator. @author: Hugo Araujo de Sousa [2013007463] @email: hugosousa@dcc.ufmg.br @DCC053 - Compiladores I - UFMG ''' # TODO: Need to handle floating point literals. # TAM does not provide arithmetic routines for floating point!? import argparse as...
26.57686
80
0.602525
0
0
0
0
0
0
0
0
4,424
0.275141
8eab3a16c60da45c7e9e2c9740482835876404d6
2,501
py
Python
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
17
2015-12-20T14:10:35.000Z
2022-02-28T13:06:33.000Z
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
1
2019-02-20T12:37:56.000Z
2019-02-20T12:37:56.000Z
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
8
2015-11-14T04:32:10.000Z
2020-12-26T01:12:18.000Z
# encoding: utf-8 import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS # train settings flags.DEFINE_integer('batch_size', 40, 'the number of images in a batch.') flags.DEFINE_integer('training_data_type', 1, '0: directly feed, 1: tfrecords') #flags.DEFINE_string('train_tfrecords', 'data/train_caltech_ra...
59.547619
115
0.773291
0
0
0
0
0
0
0
0
1,642
0.656537