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
a2cef5581d6639f72a0f834dc67419807bab8ec4
759
py
Python
dear_petition/petition/migrations/0008_auto_20200208_0222.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
4
2020-04-01T14:42:45.000Z
2021-12-12T21:11:11.000Z
dear_petition/petition/migrations/0008_auto_20200208_0222.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
142
2019-08-12T19:08:34.000Z
2022-03-29T23:05:35.000Z
dear_petition/petition/migrations/0008_auto_20200208_0222.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
8
2020-02-04T20:37:00.000Z
2021-03-28T13:28:32.000Z
# Generated by Django 2.2.4 on 2020-02-08 02:22 from django.db import migrations def move_batch_fks(apps, schema_editor): Batch = apps.get_model("petition", "Batch") CIPRSRecord = apps.get_model("petition", "CIPRSRecord") for batch in Batch.objects.all(): print(f"Adding batch {batch.pk} to {batch...
29.192308
76
0.671937
172
0.226614
0
0
0
0
0
0
187
0.246377
a2cf483b7a318378a4b51126b7de177267f4c55e
23
py
Python
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
1,671
2016-08-09T04:44:48.000Z
2022-03-27T01:29:23.000Z
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
428
2016-08-08T00:13:04.000Z
2022-01-19T10:09:05.000Z
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
334
2016-08-29T12:34:18.000Z
2022-01-31T09:14:30.000Z
__version__ = "2.9.10"
11.5
22
0.652174
0
0
0
0
0
0
0
0
8
0.347826
a2d07750f771787adbd733681780afac8dc73bc5
3,442
py
Python
maya/libs/sceneutils.py
bhsingleton/dcc
9ad59f1cb8282df938062e15c020688dd268a722
[ "MIT" ]
1
2021-08-06T16:04:24.000Z
2021-08-06T16:04:24.000Z
maya/libs/sceneutils.py
bhsingleton/dcc
9ad59f1cb8282df938062e15c020688dd268a722
[ "MIT" ]
null
null
null
maya/libs/sceneutils.py
bhsingleton/dcc
9ad59f1cb8282df938062e15c020688dd268a722
[ "MIT" ]
1
2021-08-06T16:04:31.000Z
2021-08-06T16:04:31.000Z
import maya.cmds as mc import os import logging logging.basicConfig() log = logging.getLogger(__name__) log.setLevel(logging.INFO) def isNewScene(): """ Method used to check if this is an untitled scene file. :rtype: bool """ return len(mc.file(query=True, sceneName=True)) == 0 def isSaveRequ...
20.011628
92
0.621732
0
0
0
0
0
0
0
0
1,446
0.420105
a2d10542879056ad7800cdebe98204d350251551
346
py
Python
diffir/__init__.py
capreolus-ir/diffir
90906ce4b7d5f23d6190eea26020f9e4096cb0cd
[ "Apache-2.0" ]
12
2021-03-10T17:04:05.000Z
2022-01-13T15:44:34.000Z
diffir/__init__.py
capreolus-ir/diffir
90906ce4b7d5f23d6190eea26020f9e4096cb0cd
[ "Apache-2.0" ]
7
2021-05-19T21:28:52.000Z
2021-12-16T16:01:40.000Z
diffir/__init__.py
capreolus-ir/diffir
90906ce4b7d5f23d6190eea26020f9e4096cb0cd
[ "Apache-2.0" ]
null
null
null
__version__ = "0.2.0" from diffir.weight import Weight from diffir.weight.custom import CustomWeight from diffir.weight.unsupervised import ExactMatchWeight from diffir.measure import Measure from diffir.measure.qrels import QrelMeasure from diffir.measure.unsupervised import TopkMeasure from diffir.weight.weights_bui...
34.6
55
0.858382
0
0
0
0
0
0
0
0
7
0.020231
a2d1763a00e0070a7178e1445d0a7e1fdef3a6a9
34,160
py
Python
tool/pylib/generator/output/PartBuilder.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
1
2021-02-05T23:00:25.000Z
2021-02-05T23:00:25.000Z
tool/pylib/generator/output/PartBuilder.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
3
2019-02-18T04:22:52.000Z
2021-02-21T15:02:54.000Z
tool/pylib/generator/output/PartBuilder.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
1
2021-06-03T23:08:44.000Z
2021-06-03T23:08:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # qooxdoo - the new era of web development # # http://qooxdoo.org # # Copyright: # 2006-2010 1&1 Internet AG, Germany, http://www.1und1.de # # License: # MIT: https://opensource.org...
42.593516
157
0.600907
33,084
0.968501
2,378
0.069614
0
0
0
0
10,618
0.310831
a2d2d2628caff1c2156c6ad988dc74d14a5fd8cd
6,486
py
Python
factorizer/datasets/wmh.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
7
2022-03-05T00:43:29.000Z
2022-03-07T01:23:08.000Z
factorizer/datasets/wmh.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
null
null
null
factorizer/datasets/wmh.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
1
2022-03-21T05:28:23.000Z
2022-03-21T05:28:23.000Z
import sys import numpy as np import torch from monai import transforms, data from ..data import DataModule, ReadImaged, Renamed, Inferer ################################### # Transform ################################### def wmh_train_transform( spacing=(1.0, 1.0, 1.0), spatial_size=(128, 128, 128), num_patc...
31.033493
79
0.561671
2,489
0.38375
0
0
0
0
0
0
773
0.11918
a2d721ef72b39de52022137d721dac292cbddcad
890
py
Python
Python/Topics/Sending-Email/05-pdf-attachment.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Sending-Email/05-pdf-attachment.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Sending-Email/05-pdf-attachment.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
import imghdr import smtplib import os from email.message import EmailMessage EMAIL_ADDRESS = os.environ.get("GMAIL_ADDRESS") EMAIL_PASSWORD = os.environ.get("GMAIL_APP_PASS") pdfs = ["/home/shihab4t/Downloads/Profile.pdf"] with smtplib.SMTP_SSL("smtp.gmail.com", 465) as smtp: smtp.login(EMAIL_ADDRESS, EMAIL_P...
26.969697
69
0.665169
0
0
0
0
0
0
0
0
258
0.289888
a2d7927bd74ff2bc70037658a7110cb4dffa918c
43
py
Python
rcds/project/__init__.py
jordanbertasso/rcds
d3d655a59a350042d65476793db84e761de04829
[ "BSD-3-Clause" ]
5
2020-07-13T12:40:02.000Z
2021-08-21T11:18:28.000Z
rcds/project/__init__.py
jordanbertasso/rcds
d3d655a59a350042d65476793db84e761de04829
[ "BSD-3-Clause" ]
144
2020-07-06T11:26:49.000Z
2022-02-01T14:33:28.000Z
rcds/project/__init__.py
jordanbertasso/rcds
d3d655a59a350042d65476793db84e761de04829
[ "BSD-3-Clause" ]
7
2020-07-22T12:38:32.000Z
2021-12-21T14:27:54.000Z
from .project import Project # noqa: F401
21.5
42
0.744186
0
0
0
0
0
0
0
0
12
0.27907
a2d972366674ffee05dbeed1f54a9dc88de6bb40
163
py
Python
MyEircode.py
MrBrianMonaghan/mapping
1b525eaaad3b22709a53167b46c901ece365ecab
[ "Apache-2.0" ]
null
null
null
MyEircode.py
MrBrianMonaghan/mapping
1b525eaaad3b22709a53167b46c901ece365ecab
[ "Apache-2.0" ]
null
null
null
MyEircode.py
MrBrianMonaghan/mapping
1b525eaaad3b22709a53167b46c901ece365ecab
[ "Apache-2.0" ]
null
null
null
import selenium from selenium import webdriver try: browser = webdriver.Firefox() browser.get('mikekus.com') except KeyboardInterrupt: browser.quit()
18.111111
33
0.742331
0
0
0
0
0
0
0
0
13
0.079755
a2d986e45466635f24a005d6cc044f9cdfb62b88
740
py
Python
tests/test_rotor/rotor_test.py
axevalley/enigma
fdfa5a85dbd4675f195e00e4b7e22d976a3d9015
[ "MIT" ]
null
null
null
tests/test_rotor/rotor_test.py
axevalley/enigma
fdfa5a85dbd4675f195e00e4b7e22d976a3d9015
[ "MIT" ]
28
2019-07-30T16:15:52.000Z
2022-03-14T19:14:25.000Z
tests/test_rotor/rotor_test.py
lukeshiner/enigma
917066c8f33f67b43f092800ba46220d107f622b
[ "MIT" ]
null
null
null
"""Base class for rotor tests.""" import unittest from enigma.rotor.reflector import Reflector from enigma.rotor.rotor import Rotor class RotorTest(unittest.TestCase): """Provides tools testing rotors.""" def get_rotor( self, wiring="EKMFLGDQVZNTOWYHXUSPAIBRCJ", ring_setting=1, ...
24.666667
65
0.631081
603
0.814865
0
0
0
0
0
0
187
0.252703
a2deabeee99e67fa9e9a47d417ca86a406f16c31
2,186
py
Python
kyu_8/check_the_exam/test_check_exam.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_8/check_the_exam/test_check_exam.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_8/check_the_exam/test_check_exam.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS ARRAYS NUMBERS BASIC LANGUAGE FEATURES import unittest import allure from utils.log_func import print_log from kyu_8.check_the_exam.check_exam import check_exam @allure.epic('8 kyu')...
34.15625
94
0.531565
1,512
0.691674
0
0
1,886
0.862763
0
0
1,001
0.457914
a2dec2415ed78800e66aae16391df2b37d8f56eb
1,193
py
Python
pysoup/venv/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
4
2016-02-21T12:40:44.000Z
2019-06-13T13:23:19.000Z
pysoup/venv/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
null
null
null
pysoup/venv/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
1
2020-07-16T12:22:12.000Z
2020-07-16T12:22:12.000Z
import os.path from twisted.internet import defer import pysoup.utils class Virtualenv(object): def __init__(self, display_pip, path): self._display_pipe = display_pip self._path = path @property def path(self): return self._path @property def venv_path(self): ...
29.097561
134
0.668064
1,118
0.937133
665
0.557418
952
0.797988
0
0
228
0.191115
a2df2293ad90461c1622171c3d5669f2f6f7fd84
2,791
py
Python
yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
from yggdrasil.metaschema.datatypes import MetaschemaTypeError from yggdrasil.metaschema.datatypes.MetaschemaType import MetaschemaType from yggdrasil.metaschema.datatypes.JSONObjectMetaschemaType import ( JSONObjectMetaschemaType) from yggdrasil.metaschema.properties.ArgsMetaschemaProperty import ( ArgsMetasch...
34.036585
78
0.636331
2,455
0.879613
0
0
2,023
0.72483
0
0
1,284
0.46005
a2df9c5cd443a1cdbe81e54c4e448271480f6781
368
py
Python
battleships/migrations/0004_auto_20181202_1852.py
ArturAdamczyk/Battleships
748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24
[ "MIT" ]
null
null
null
battleships/migrations/0004_auto_20181202_1852.py
ArturAdamczyk/Battleships
748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24
[ "MIT" ]
null
null
null
battleships/migrations/0004_auto_20181202_1852.py
ArturAdamczyk/Battleships
748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-12-02 17:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('battleships', '0003_auto_20181202_1832'), ] operations = [ migrations.RenameField( model_name='coordinate', old_name='ship',...
19.368421
51
0.589674
283
0.769022
0
0
0
0
0
0
110
0.298913
a2e147bc50d8522b84f76610398b1cf2e73d60bb
11,168
py
Python
jme/stagecache/text_metadata.py
jmeppley/stagecache
a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a
[ "MIT" ]
null
null
null
jme/stagecache/text_metadata.py
jmeppley/stagecache
a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a
[ "MIT" ]
null
null
null
jme/stagecache/text_metadata.py
jmeppley/stagecache
a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a
[ "MIT" ]
null
null
null
""" Functions for storing and retrieving cache metadata from text files. Each Cache asset is a path: /path/filename There are four metadata files in the cache for each: /path/.stagecache.filename/size The size of the asset in bytes /path/.stagecache.filename/cache_lock The requested end time of the cache...
36.980132
86
0.576916
9,065
0.811694
1,039
0.093034
553
0.049516
0
0
3,480
0.311605
a2e1fed84d2ed3d71ec400a1f6a513cfa6d50f07
3,858
py
Python
lib/roi_data/minibatch.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/roi_data/minibatch.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/roi_data/minibatch.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
import numpy as np import numpy.random as npr import cv2 from core.config import cfg import utils.blob as blob_utils def get_minibatch_blob_names(is_training=True): """Return blob names in the order in which they are read by the data loader. """ # data blob: holds a batch of N images, each with 3 channel...
33.842105
80
0.630897
0
0
0
0
0
0
0
0
1,106
0.286677
a2e200b1e2fac4ccc713c3e1526076efebc09cea
1,288
py
Python
src/PrimaryInputs.py
elastacloud/input-output-tables
82f932c8627071bc245e178f5b47a7c1104c4e4c
[ "Apache-2.0" ]
null
null
null
src/PrimaryInputs.py
elastacloud/input-output-tables
82f932c8627071bc245e178f5b47a7c1104c4e4c
[ "Apache-2.0" ]
null
null
null
src/PrimaryInputs.py
elastacloud/input-output-tables
82f932c8627071bc245e178f5b47a7c1104c4e4c
[ "Apache-2.0" ]
null
null
null
import abc import os import pandas as pd import numpy as np from EoraReader import EoraReader class PrimaryInputs(EoraReader): def __init__(self, file_path): super().__init__(file_path) self.df = None def get_dataset(self, extended = False): """ Returns a pandas dataframe conta...
35.777778
96
0.615683
1,192
0.925466
0
0
0
0
0
0
183
0.142081
a2e589c4ee6ca6ac8b468da944e0f2d14d31872f
695
py
Python
toto/methods/client_error.py
VNUELIVE/Toto
6940b4114fc6b680e0d40ae248b7d2599c954f81
[ "MIT" ]
null
null
null
toto/methods/client_error.py
VNUELIVE/Toto
6940b4114fc6b680e0d40ae248b7d2599c954f81
[ "MIT" ]
null
null
null
toto/methods/client_error.py
VNUELIVE/Toto
6940b4114fc6b680e0d40ae248b7d2599c954f81
[ "MIT" ]
null
null
null
import logging from toto.invocation import * @requires('client_error', 'client_type') def invoke(handler, parameters): '''A convenince method for writing browser errors to Toto's server log. It works with the ``registerErrorHandler()`` method in ``toto.js``. The "client_error" parameter should be set to the str...
36.578947
91
0.723741
0
0
0
0
648
0.932374
0
0
502
0.722302
a2e5b6c37644bb0cda6e0ffc3d078b3332260604
1,945
py
Python
parallelformers/policies/gptj.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
454
2021-07-18T02:51:23.000Z
2022-03-31T04:00:53.000Z
parallelformers/policies/gptj.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
16
2021-07-18T10:47:21.000Z
2022-03-22T18:49:57.000Z
parallelformers/policies/gptj.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
33
2021-07-18T04:48:28.000Z
2022-03-14T22:16:36.000Z
# Copyright 2021 TUNiB 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, softw...
28.188406
74
0.607712
1,204
0.619023
0
0
1,144
0.588175
0
0
801
0.411825
a2e61afbf4f6a03e376d0464c7acf87dc5bb080e
503
py
Python
app/modules/checkerbox.py
hboueix/PyCheckers
c1339a004f30f76a33461b52f9633bbbd1204bb0
[ "MIT" ]
null
null
null
app/modules/checkerbox.py
hboueix/PyCheckers
c1339a004f30f76a33461b52f9633bbbd1204bb0
[ "MIT" ]
null
null
null
app/modules/checkerbox.py
hboueix/PyCheckers
c1339a004f30f76a33461b52f9633bbbd1204bb0
[ "MIT" ]
null
null
null
import pygame class Checkerbox(pygame.sprite.Sprite): def __init__(self, size, color, coords): super().__init__() self.rect = pygame.Rect(coords[0], coords[1], size, size) self.color = color self.hovered = False def draw(self, screen): pygame.draw.rect(screen, self.co...
23.952381
65
0.606362
485
0.964215
0
0
0
0
0
0
0
0
a2e6d1a1d562ff46afccc16626cb0e1d9bd964d4
1,319
py
Python
tests/python/test_talos_walk_sl1m_topt.py
daeunSong/multicontact-locomotion-planning
0aeabe6a7a8d49e54d6996a6126740cc90aa0050
[ "BSD-2-Clause" ]
31
2019-11-08T14:46:03.000Z
2022-03-25T08:09:16.000Z
tests/python/test_talos_walk_sl1m_topt.py
pFernbach/multicontact-locomotion-planning
86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2
[ "BSD-2-Clause" ]
21
2019-04-12T13:13:31.000Z
2021-04-02T14:28:15.000Z
tests/python/test_talos_walk_sl1m_topt.py
pFernbach/multicontact-locomotion-planning
86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2
[ "BSD-2-Clause" ]
11
2019-04-12T13:03:55.000Z
2021-11-22T08:19:06.000Z
# Copyright (c) 2020, CNRS # Authors: Pierre Fernbach <[email protected]> import unittest import subprocess import time from mlp import LocoPlanner, Config from utils import check_motion from hpp.corbaserver.rbprm.utils import ServerManager class TestTalosWalkSl1mTopt(unittest.TestCase): def test_talos_walk_sl1m_to...
36.638889
125
0.718726
1,028
0.779378
0
0
0
0
0
0
176
0.133434
a2e7779c3e2b321cf059e7d364c94dc2593aa13c
212
py
Python
definitions.py
elpeix/kaa
b840613cb5eba876d937faf32031651332e5b5f6
[ "MIT" ]
null
null
null
definitions.py
elpeix/kaa
b840613cb5eba876d937faf32031651332e5b5f6
[ "MIT" ]
null
null
null
definitions.py
elpeix/kaa
b840613cb5eba876d937faf32031651332e5b5f6
[ "MIT" ]
null
null
null
import os import logging ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = True LOG = logging.getLogger() NAME = 'Sample Server' VERSION = 'v1.0' SERVER = 'example.SampleServer' ENABLE_CORS = True
16.307692
53
0.740566
0
0
0
0
0
0
0
0
43
0.20283
a2e9b6f6bd695b4f20c44aff1b1aeaa6c236f680
9,567
py
Python
uncertainty_baselines/datasets/smcalflow.py
y0ast/uncertainty-baselines
8d32c77ba0803ed715c1406378adf10ebd61ab74
[ "Apache-2.0" ]
null
null
null
uncertainty_baselines/datasets/smcalflow.py
y0ast/uncertainty-baselines
8d32c77ba0803ed715c1406378adf10ebd61ab74
[ "Apache-2.0" ]
null
null
null
uncertainty_baselines/datasets/smcalflow.py
y0ast/uncertainty-baselines
8d32c77ba0803ed715c1406378adf10ebd61ab74
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
35.831461
93
0.691126
7,010
0.732727
0
0
0
0
0
0
3,764
0.393436
a2eb8907fa9fa5c982005554035cbb22b3ce7287
1,098
py
Python
1-FrequencyDivisionMultiplexing.py
mahnooranjum/Demo_CommunicationSystems
6c3be46f9ad4a38bfe553b9a01855156713e49d9
[ "MIT" ]
null
null
null
1-FrequencyDivisionMultiplexing.py
mahnooranjum/Demo_CommunicationSystems
6c3be46f9ad4a38bfe553b9a01855156713e49d9
[ "MIT" ]
null
null
null
1-FrequencyDivisionMultiplexing.py
mahnooranjum/Demo_CommunicationSystems
6c3be46f9ad4a38bfe553b9a01855156713e49d9
[ "MIT" ]
null
null
null
''' ============================================================================== Author: Mahnoor Anjum Description: Digital Multiplexing Techniques: 1- Frequency Division Multiplexing Contact: [email protected] ===========================================================...
21.115385
78
0.547359
0
0
0
0
0
0
0
0
577
0.525501
a2ebe5b887b32f0561c68f37282697177b6753ec
3,880
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ATI.text_fragment_shader This module customises the behaviour of the OpenGL.raw.GL.ATI.text_fragment_shader to provide a more Python-friendly API Overview (from the spec) The ATI_fragment_shader extension exposes a powerful fragment processing model that provides a very general means of expr...
46.190476
71
0.802835
0
0
0
0
0
0
0
0
3,485
0.898196
a2ed46d6b33e4e8573f56ac8afc0ade0ec58667b
7,311
py
Python
vhog3d.py
parthsuresh/3dvhog
9a439687a0ce30b86b7730a61733b3f3845d27c5
[ "MIT" ]
3
2021-05-18T07:48:39.000Z
2021-12-23T06:35:41.000Z
vhog3d.py
parthsuresh/3dvhog
9a439687a0ce30b86b7730a61733b3f3845d27c5
[ "MIT" ]
null
null
null
vhog3d.py
parthsuresh/3dvhog
9a439687a0ce30b86b7730a61733b3f3845d27c5
[ "MIT" ]
null
null
null
import numpy as np import math from scipy.ndimage import convolve from tqdm import tqdm def hog3d(vox_volume, cell_size, block_size, theta_histogram_bins, phi_histogram_bins, step_size=None): """ Inputs vox_volume : a [x x y x z] numpy array defining voxels with values in the range 0-1 cell_size : s...
43.778443
117
0.591164
0
0
0
0
0
0
0
0
804
0.109971
a2ee6d19098aed822e580f589bbcc0c4df0bf0c1
320
py
Python
tests/urls.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
9
2017-09-12T12:45:30.000Z
2022-03-30T13:53:57.000Z
tests/urls.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
null
null
null
tests/urls.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
1
2021-11-08T10:21:01.000Z
2021-11-08T10:21:01.000Z
from django.urls import include, path from datatrans.views import example urlpatterns = [ path(r'^datatrans/', include('datatrans.urls')), path(r'^example/register-credit-card$', example.register_credit_card, name='example_register_credit_card'), path(r'^example/pay$', example.pay, name='example_pay'), ]
32
111
0.7375
0
0
0
0
0
0
0
0
122
0.38125
a2f252e2b9ab4a63f342c14ab8d8666d4956f841
11,160
py
Python
gibbs/minimization.py
volpatto/gibbs
776acff6166dd4fd3039d55074542d995ac91754
[ "MIT" ]
28
2019-05-25T14:50:00.000Z
2022-01-18T00:54:22.000Z
gibbs/minimization.py
volpatto/gibbs
776acff6166dd4fd3039d55074542d995ac91754
[ "MIT" ]
10
2019-06-15T06:07:14.000Z
2021-09-01T04:32:50.000Z
gibbs/minimization.py
volpatto/gibbs
776acff6166dd4fd3039d55074542d995ac91754
[ "MIT" ]
5
2019-08-04T05:37:34.000Z
2022-01-18T10:10:40.000Z
import attr import types from typing import Union from enum import Enum import numpy as np from scipy.optimize import differential_evolution import pygmo as pg class OptimizationMethod(Enum): """ Available optimization solvers. """ SCIPY_DE = 1 PYGMO_DE1220 = 2 @attr.s(auto_attribs=True) class S...
38.088737
133
0.664606
10,817
0.969265
0
0
10,858
0.972939
0
0
3,109
0.278584
a2f4994690266aa4a640429912d46124db104724
1,461
py
Python
tests/unittests/types/test_array.py
TrigonDev/apgorm
5b593bfb5a200708869e079248c25786608055d6
[ "MIT" ]
8
2022-01-21T23:07:29.000Z
2022-03-26T12:03:57.000Z
tests/unittests/types/test_array.py
TrigonDev/apgorm
5b593bfb5a200708869e079248c25786608055d6
[ "MIT" ]
22
2021-12-23T00:43:41.000Z
2022-03-23T13:17:32.000Z
tests/unittests/types/test_array.py
TrigonDev/apgorm
5b593bfb5a200708869e079248c25786608055d6
[ "MIT" ]
3
2022-01-15T20:58:33.000Z
2022-01-26T21:36:13.000Z
# MIT License # # Copyright (c) 2021 TrigonDev # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
38.447368
79
0.750171
0
0
0
0
165
0.112936
0
0
1,130
0.773443
a2f56add77b1581d6619a3c899c2460cc7dc3102
137
py
Python
cisco_support/__version__.py
rothdennis/cisco_support
c20b955794400eb565fa5c178749c2ee6ef7dc0f
[ "MIT" ]
4
2021-09-09T07:24:13.000Z
2022-03-04T19:51:01.000Z
cisco_support/__version__.py
rothdennis/cisco_support
c20b955794400eb565fa5c178749c2ee6ef7dc0f
[ "MIT" ]
null
null
null
cisco_support/__version__.py
rothdennis/cisco_support
c20b955794400eb565fa5c178749c2ee6ef7dc0f
[ "MIT" ]
null
null
null
__title__ = 'cisco_support' __description__ = 'Cisco Support APIs' __version__ = '0.1.0' __author__ = 'Dennis Roth' __license__ = 'MIT'
19.571429
38
0.737226
0
0
0
0
0
0
0
0
60
0.437956
a2f8a7986f7bf085148eeaed0a44176810f81182
747
py
Python
code/searchers.py
trunc8/mespp
8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb
[ "MIT" ]
2
2021-07-07T17:01:17.000Z
2022-03-30T05:28:44.000Z
code/searchers.py
trunc8/mespp
8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb
[ "MIT" ]
null
null
null
code/searchers.py
trunc8/mespp
8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb
[ "MIT" ]
1
2021-07-07T17:00:54.000Z
2021-07-07T17:00:54.000Z
#!/usr/bin/env python3 # trunc8 did this import numpy as np class Searchers: def __init__(self, g, N=100, M=2, initial_positions=np.array([90,58]), target_initial_position=45): ''' g: Graph of environment N: Number of vertices M: Number of ...
25.758621
58
0.649264
685
0.917001
0
0
0
0
0
0
221
0.29585
a2fa1506f35030e5726f14dab7372d11ea530f9d
1,015
py
Python
vogue/api/api_v1/api.py
mayabrandi/vogue
463e6417a9168eadb0d11dea2d0f97919494bcd3
[ "MIT" ]
1
2021-12-16T19:29:17.000Z
2021-12-16T19:29:17.000Z
vogue/api/api_v1/api.py
mayabrandi/vogue
463e6417a9168eadb0d11dea2d0f97919494bcd3
[ "MIT" ]
188
2018-10-25T06:13:17.000Z
2022-02-25T19:47:06.000Z
vogue/api/api_v1/api.py
mayabrandi/vogue
463e6417a9168eadb0d11dea2d0f97919494bcd3
[ "MIT" ]
null
null
null
from fastapi import FastAPI from vogue.api.api_v1.endpoints import ( insert_documents, home, common_trends, sequencing, genootype, reagent_labels, prepps, bioinfo_covid, bioinfo_micro, bioinfo_mip, update, ) from vogue.settings import static_files app = FastAPI() app.mount...
27.432432
64
0.747783
0
0
0
0
0
0
0
0
133
0.131034
a2fa916053116744cb58a54f835b741f35144a4f
1,090
py
Python
models/dgcnn.py
veronicatozzo/SimpleView
70dbde727b25db8fdd9dc486ac1f74ff31a89821
[ "BSD-3-Clause" ]
95
2021-06-09T09:44:14.000Z
2022-03-13T12:10:50.000Z
models/dgcnn.py
veronicatozzo/SimpleView
70dbde727b25db8fdd9dc486ac1f74ff31a89821
[ "BSD-3-Clause" ]
7
2021-06-23T04:44:25.000Z
2022-01-14T15:45:27.000Z
models/dgcnn.py
veronicatozzo/SimpleView
70dbde727b25db8fdd9dc486ac1f74ff31a89821
[ "BSD-3-Clause" ]
13
2021-07-01T23:55:15.000Z
2022-01-04T12:29:02.000Z
import torch.nn as nn import torch.nn.functional as F from dgcnn.pytorch.model import DGCNN as DGCNN_original from all_utils import DATASET_NUM_CLASS class DGCNN(nn.Module): def __init__(self, task, dataset): super().__init__() self.task = task self.dataset = dataset if task == "...
27.25
74
0.534862
937
0.859633
0
0
0
0
0
0
36
0.033028
a2fcc2dcdf1e51df954863eb81bc306011453b3d
283
py
Python
atcoder/arc/a036.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/arc/a036.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/arc/a036.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
from collections import deque N, K = map(int, input().split()) T = [int(input()) for _ in range(N)] ans_dq = deque([0, 0, 0]) for i, t in enumerate(T): ans_dq.append(t) ans_dq.popleft() if sum(ans_dq) < K and i > 1: print(i + 1) break else: print(-1)
21.769231
36
0.568905
0
0
0
0
0
0
0
0
0
0
a2fcecf1decf4817a91d5d880a0ea9320b043380
238
py
Python
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
velocidade = float(input("Digite a sua velocidade em Km/h: ")) if velocidade > 80: amais = velocidade - 80 amais = amais*7 print("Você foi multado, devera pagar uma multa de: R${:.2f}".format(amais)) print("FIM, não se mate")
34
80
0.663866
0
0
0
0
0
0
0
0
110
0.458333
a2fdf1816d77bc5926536585a5ffc8b6a4ac1f23
3,746
py
Python
research/radar-communication/dqn_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
research/radar-communication/dqn_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
research/radar-communication/dqn_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
import numpy as np import gym import argparse from keras.models import Sequential from keras.layers import Dense, Activation, Flatten, Convolution2D from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import LinearAnnealedPolicy, EpsGreedyQPolicy from rl.memory import SequentialMemory ...
45.682927
115
0.67165
0
0
0
0
0
0
0
0
962
0.256807
a2fe2076a061b4411e718858d451c717a3acc756
318
py
Python
Chapter01/displacy-save-as-image-1-4-5.py
indrasmartmob/Mastering-spaCy
756876902eee8437d6d9ddcef2ba7ffabfc970a3
[ "MIT" ]
76
2021-07-07T14:32:42.000Z
2022-03-27T17:15:15.000Z
Chapter01/displacy-save-as-image-1-4-5.py
indrasmartmob/Mastering-spaCy
756876902eee8437d6d9ddcef2ba7ffabfc970a3
[ "MIT" ]
4
2021-08-18T18:08:23.000Z
2022-03-27T03:30:27.000Z
Chapter01/displacy-save-as-image-1-4-5.py
indrasmartmob/Mastering-spaCy
756876902eee8437d6d9ddcef2ba7ffabfc970a3
[ "MIT" ]
38
2021-07-09T22:23:38.000Z
2022-03-12T07:11:37.000Z
#!/usr/bin/env python3 import spacy from spacy import displacy from pathlib import Path nlp = spacy.load("en_core_web_md") doc = nlp("I'm a butterfly.") svg = displacy.render(doc, style="dep", jupyter=False) filename = "butterfly.svg" output_path = Path(filename) output_path.open("w", encoding="utf-8").write(svg)
22.714286
54
0.735849
0
0
0
0
0
0
0
0
86
0.27044
a2fe69feb718bafa1d3ea491a261e3b0356c764f
3,485
py
Python
mask_detector/opencv/camera_ver2.py
osamhack2021/AI_Mask_Detector
1d71980bd7b7168a9d006f03325fb51783c7f877
[ "MIT" ]
null
null
null
mask_detector/opencv/camera_ver2.py
osamhack2021/AI_Mask_Detector
1d71980bd7b7168a9d006f03325fb51783c7f877
[ "MIT" ]
null
null
null
mask_detector/opencv/camera_ver2.py
osamhack2021/AI_Mask_Detector
1d71980bd7b7168a9d006f03325fb51783c7f877
[ "MIT" ]
1
2021-11-21T08:19:54.000Z
2021-11-21T08:19:54.000Z
import cv2 import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt import numpy as np model = "./AI_Mask_Detector/res10_300x300_ssd_iter_140000_fp16.caffemodel" config = "./AI_Mask_Detector/deploy.prototxt" # model = './AI_Mask_Detector/opencv_face_detector_uint8.pb' # config = './AI_Mask_...
29.786325
85
0.505595
0
0
0
0
0
0
0
0
839
0.24047
a2ff595beb35cc3bf63e8eee3f852f028caee135
55,499
py
Python
pipelines/head-pose-pipeline/training/models.py
tonouchi510/kfp-project
67b78ae53cc3de594b8254999a4f553a8d5cec27
[ "MIT" ]
null
null
null
pipelines/head-pose-pipeline/training/models.py
tonouchi510/kfp-project
67b78ae53cc3de594b8254999a4f553a8d5cec27
[ "MIT" ]
null
null
null
pipelines/head-pose-pipeline/training/models.py
tonouchi510/kfp-project
67b78ae53cc3de594b8254999a4f553a8d5cec27
[ "MIT" ]
null
null
null
import sys import logging import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from capsulelayers import CapsuleLayer from capsulelayers import MatMulLayer from loupe_keras import NetVLAD sys.setrecursionlimit(2**20) np.random.seed(2**10) # Custom layers # Note - Usage of Lambda layer...
40.658608
131
0.568479
54,923
0.989621
0
0
0
0
0
0
6,542
0.117876
0c0064090948d111bf7fd540d7adcc81adb3d655
2,537
py
Python
remijquerytools/__init__.py
kdahlhaus/remi-jquery-tools
3ecc78d6a39edc7a77b89dd8ed08649f759b503a
[ "Apache-2.0" ]
null
null
null
remijquerytools/__init__.py
kdahlhaus/remi-jquery-tools
3ecc78d6a39edc7a77b89dd8ed08649f759b503a
[ "Apache-2.0" ]
null
null
null
remijquerytools/__init__.py
kdahlhaus/remi-jquery-tools
3ecc78d6a39edc7a77b89dd8ed08649f759b503a
[ "Apache-2.0" ]
null
null
null
import remi.gui as gui import os import logging log = logging.getLogger('remi.gui.remijquerytools.overlay') def get_res_path(): """ return addtion to 'res' path for items needed by this lib """ res_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'res') return res_path class Overlay(gui....
32.948052
109
0.581395
2,234
0.880568
0
0
173
0.068191
0
0
867
0.341742
0c01e08aaee863025867488824fa6692ef88b661
468
py
Python
Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
1
2020-12-14T23:25:19.000Z
2020-12-14T23:25:19.000Z
Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
elements = [int(x) for x in input().split(', ')] even_numbers = [x for x in elements if x % 2 == 0] odd_numbers = [x for x in elements if x % 2 != 0] positive = [x for x in elements if x >= 0] negative = [x for x in elements if x < 0] print(f"Positive: {', '.join(str(x) for x in positive)}") print(f"Negative: {', '.j...
36
57
0.613248
0
0
0
0
0
0
0
0
202
0.431624
0c02d2fcd975ca2fafbae393016b1ddc2ddcf6b5
2,048
py
Python
src/probnum/type.py
ralfrost/probnum
6b0988009a9dd7ecda87ba28c9d5c0b8019981b6
[ "MIT" ]
null
null
null
src/probnum/type.py
ralfrost/probnum
6b0988009a9dd7ecda87ba28c9d5c0b8019981b6
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/type.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
import numbers from typing import Iterable, Tuple, Union import numpy as np ######################################################################################## # API Types ######################################################################################## ShapeType = Tuple[int, ...] RandomStateType = Unio...
40.156863
88
0.626953
0
0
0
0
0
0
0
0
1,304
0.636719
0c03aa3f4a41bc42ddd522aaf547cfa062e47c23
12,279
py
Python
src/socialprofile/views.py
DLRSP/django-sp
9079358a4fc054f1a5afb056ccfd6a8b8afb36fa
[ "MIT" ]
1
2022-01-11T07:25:17.000Z
2022-01-11T07:25:17.000Z
src/socialprofile/views.py
DLRSP/django-sp
9079358a4fc054f1a5afb056ccfd6a8b8afb36fa
[ "MIT" ]
16
2021-12-20T01:30:34.000Z
2022-03-31T01:38:59.000Z
src/socialprofile/views.py
DLRSP/django-sp
9079358a4fc054f1a5afb056ccfd6a8b8afb36fa
[ "MIT" ]
null
null
null
"""Django Views for the socialprofile module""" import json import logging import sweetify from django.conf import settings from django.contrib import messages from django.contrib.auth import REDIRECT_FIELD_NAME, login from django.contrib.auth import logout as auth_logout from django.contrib.auth.decorators import log...
33.186486
96
0.582784
9,092
0.740451
0
0
1,093
0.089014
0
0
3,493
0.284469
0c042004c2d10428499c1e729e50d34d388b3eb9
519
py
Python
sources/101_test.py
Painatalman/python101
9727ca03da46f81813fc2d338b8ba22fc0d8b78b
[ "Apache-2.0" ]
null
null
null
sources/101_test.py
Painatalman/python101
9727ca03da46f81813fc2d338b8ba22fc0d8b78b
[ "Apache-2.0" ]
null
null
null
sources/101_test.py
Painatalman/python101
9727ca03da46f81813fc2d338b8ba22fc0d8b78b
[ "Apache-2.0" ]
null
null
null
from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER fruits.sort() for index, fruit in enumerate...
22.565217
100
0.628131
0
0
0
0
0
0
0
0
171
0.32948
0c04e662d416158f9b46ddaf7846e7bfe2b9fca2
3,439
py
Python
tests/test_cms_config.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
null
null
null
tests/test_cms_config.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
4
2021-09-27T10:15:13.000Z
2021-11-23T17:18:04.000Z
tests/test_cms_config.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
4
2021-09-06T20:13:45.000Z
2021-10-02T15:00:58.000Z
from unittest.mock import Mock from django.apps import apps from django.contrib import admin from django.test import RequestFactory, TestCase from djangocms_moderation.cms_config import ModerationExtension from djangocms_moderation.models import ModerationRequestTreeNode from djangocms_content_expiry.cms_config impo...
40.458824
111
0.756325
2,969
0.863332
0
0
0
0
0
0
504
0.146554
0c0689f206c41c5e5d28c78e11446ccb008b17b1
4,466
py
Python
tilequeue/format/OSciMap4/StaticVals/__init__.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
29
2016-11-03T18:39:21.000Z
2022-02-27T17:42:37.000Z
tilequeue/format/OSciMap4/StaticVals/__init__.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
146
2016-07-07T16:41:07.000Z
2021-12-11T00:27:20.000Z
tilequeue/format/OSciMap4/StaticVals/__init__.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
28
2016-08-19T16:08:52.000Z
2021-07-26T10:16:29.000Z
vals = { "yes" : 0, "residential" : 1, "service" : 2, "unclassified" : 3, "stream" : 4, "track" : 5, "water" : 6, "footway" : 7, "tertiary" : 8, "private" : 9, "tree" : 10, "path" : 11, "forest" : 12, "secondary" : 13, "house" : 14, "no" : 15, "asphalt" : 16, "wood" : 17, "grass" : 18, "paved" : 19, "primary" : 20, "un...
17.111111
26
0.59382
0
0
0
0
0
0
0
0
2,481
0.555531
0c084907ab6f7a66d8c89aefdff3de051c8499ac
1,406
py
Python
encryption_client.py
salmanhiro/fernet-rabbitmq
8130514e6d21b7df9c78a28130c603512f500a23
[ "MIT" ]
null
null
null
encryption_client.py
salmanhiro/fernet-rabbitmq
8130514e6d21b7df9c78a28130c603512f500a23
[ "MIT" ]
null
null
null
encryption_client.py
salmanhiro/fernet-rabbitmq
8130514e6d21b7df9c78a28130c603512f500a23
[ "MIT" ]
null
null
null
import pika import uuid import time import json class FernetRpc(object): def __init__(self): self.connection = pika.BlockingConnection( pika.ConnectionParameters(host='localhost')) self.channel = self.connection.channel() result = self.channel.queue_declare(queue='', exclusiv...
26.528302
69
0.619488
1,109
0.788762
0
0
0
0
0
0
101
0.071835
0c0862941d8ae706603317f21fde751ca0bd01fb
3,225
py
Python
services/cert_server/project/tests/test_cert_server.py
EvaldoNeto/openvpn-http
73d75a990d5d7ed7f89a526c0ce324db42c37f1f
[ "MIT" ]
5
2019-11-19T02:54:05.000Z
2020-03-03T19:48:41.000Z
services/cert_server/project/tests/test_cert_server.py
EvaldoNeto/openvpn-http
73d75a990d5d7ed7f89a526c0ce324db42c37f1f
[ "MIT" ]
23
2019-10-31T12:00:37.000Z
2019-11-22T21:00:28.000Z
services/cert_server/project/tests/test_cert_server.py
EvaldoNeto/openvpn-http
73d75a990d5d7ed7f89a526c0ce324db42c37f1f
[ "MIT" ]
null
null
null
# services/ovpn_server/project/tests/test_ovpn_server.py import os import json import io from flask import current_app from project.tests.base import BaseTestCase class TestOvpnServer(BaseTestCase): def test_certificates(self): with self.client: pki_path = current_app.config['PKI_PATH'] ...
37.068966
78
0.556279
3,056
0.947597
0
0
0
0
0
0
834
0.258605
0c08971682b47651e14df294d06cff25310ada7b
956
py
Python
powerline/lib/watcher/stat.py
MrFishFinger/powerline
361534bafecf836e100eaff257c93eb4805f48db
[ "MIT" ]
11,435
2015-01-01T03:32:34.000Z
2022-03-31T20:39:05.000Z
powerline/lib/watcher/stat.py
ritiek/powerline
82c1373ba0b424c57e8c12cb5f6f1a7ee3829c27
[ "MIT" ]
879
2015-01-02T11:59:30.000Z
2022-03-24T09:52:17.000Z
powerline/lib/watcher/stat.py
ritiek/powerline
82c1373ba0b424c57e8c12cb5f6f1a7ee3829c27
[ "MIT" ]
1,044
2015-01-05T22:37:53.000Z
2022-03-17T19:43:16.000Z
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, division, absolute_import, print_function) import os from threading import RLock from powerline.lib.path import realpath class StatFileWatcher(object): def __init__(self): self.watches = {} self.lock = RLock() def watch(self, path): p...
21.244444
84
0.706067
757
0.791841
0
0
0
0
0
0
29
0.030335
0c08a69ecbe4701e579ed0c55e6c61397156d087
2,531
py
Python
refData/mlpy/mlpy-3.5.0/mlpy/bordacount/borda.py
xrick/DTW-Tutorial
bbbce1c2beff91384cdcb7dbf503f93ad2fa285c
[ "MIT" ]
null
null
null
refData/mlpy/mlpy-3.5.0/mlpy/bordacount/borda.py
xrick/DTW-Tutorial
bbbce1c2beff91384cdcb7dbf503f93ad2fa285c
[ "MIT" ]
null
null
null
refData/mlpy/mlpy-3.5.0/mlpy/bordacount/borda.py
xrick/DTW-Tutorial
bbbce1c2beff91384cdcb7dbf503f93ad2fa285c
[ "MIT" ]
null
null
null
## This code is written by Davide Albanese, <[email protected]>. ## (C) 2010 mlpy Developers. ## 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 3 of the License, or ## (at your op...
32.448718
126
0.614382
0
0
0
0
0
0
0
0
2,036
0.804425
0c08ae96e8b31b452042a012ea2cbfe21f5f54d5
2,641
py
Python
envs/base_mujoco_env.py
zaynahjaved/AWAC
e225eeb8c0cd3498ab55ce15a9de60cb4e957c50
[ "MIT" ]
null
null
null
envs/base_mujoco_env.py
zaynahjaved/AWAC
e225eeb8c0cd3498ab55ce15a9de60cb4e957c50
[ "MIT" ]
null
null
null
envs/base_mujoco_env.py
zaynahjaved/AWAC
e225eeb8c0cd3498ab55ce15a9de60cb4e957c50
[ "MIT" ]
null
null
null
''' All cartgripper env modules built on cartrgipper implementation in https://github.com/SudeepDasari/visual_foresight ''' from abc import ABC from mujoco_py import load_model_from_path, MjSim import numpy as np from base_env import BaseEnv class BaseMujocoEnv(BaseEnv, ABC): def __init__(self, model_path, _hp):...
29.344444
96
0.632336
2,395
0.906853
0
0
165
0.062476
0
0
779
0.294964
0c08ff139766a0d536bcc09bc242b07f333b8755
853
py
Python
HackerRank/Two Sum/Two Sum.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
HackerRank/Two Sum/Two Sum.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
HackerRank/Two Sum/Two Sum.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: """Naive Logic""" ''' for i in range(len(nums)): left = nums[i+1:] for j in range(len(left)): if (nums[i]+left[j]) ==target : return i,j+i+1 ''' '''Better...
32.807692
64
0.444314
853
1
0
0
0
0
0
0
439
0.514654
0c097274adeceb2e1e44250ea00c4016e23c60ed
191
py
Python
Desafios/desafio009.py
LucasHenrique-dev/Exercicios-Python
b1f6ca56ea8e197a89a044245419dc6079bdb9c7
[ "MIT" ]
1
2020-04-09T23:18:03.000Z
2020-04-09T23:18:03.000Z
Desafios/desafio009.py
LucasHenrique-dev/Exercicios-Python
b1f6ca56ea8e197a89a044245419dc6079bdb9c7
[ "MIT" ]
null
null
null
Desafios/desafio009.py
LucasHenrique-dev/Exercicios-Python
b1f6ca56ea8e197a89a044245419dc6079bdb9c7
[ "MIT" ]
null
null
null
n1 = int(input('Digite um número e veja qual a sua tabuada: ')) n = 0 print('{} X {:2} = {:2}'.format(n1, 0, n1*n)) while n < 10: n += 1 print('{} X {:2} = {:2}'.format(n1, n, n1*n))
27.285714
63
0.502618
0
0
0
0
0
0
0
0
83
0.432292
0c09891ffb40760a1dcac5e46984a7d055ce0caf
2,587
py
Python
web/app/djrq/admin/admin.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
1
2016-11-23T20:50:00.000Z
2016-11-23T20:50:00.000Z
web/app/djrq/admin/admin.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
15
2017-01-15T04:18:40.000Z
2017-02-25T04:13:06.000Z
web/app/djrq/admin/admin.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
null
null
null
# encoding: utf-8 from web.ext.acl import when from ..templates.admin.admintemplate import page as _page from ..templates.admin.requests import requeststemplate, requestrow from ..templates.requests import requestrow as rr from ..send_update import send_update import cinje @when(when.matches(True, 'session.authentica...
43.847458
198
0.709702
2,241
0.866254
0
0
2,310
0.892926
0
0
312
0.120603
0c0a4769116e4e6ba1cffb9d2ccffc9442014420
895
py
Python
Middle/Que33.py
HuangZengPei/LeetCode
d2b8a1dfe986d71d02d2568b55bad6e5b1c81492
[ "MIT" ]
2
2019-11-20T14:05:27.000Z
2019-11-20T14:05:28.000Z
Middle/Que33.py
HuangZengPei/LeetCode
d2b8a1dfe986d71d02d2568b55bad6e5b1c81492
[ "MIT" ]
null
null
null
Middle/Que33.py
HuangZengPei/LeetCode
d2b8a1dfe986d71d02d2568b55bad6e5b1c81492
[ "MIT" ]
null
null
null
class Solution(object): def search(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ return binarySearch(nums,target,0,len(nums)-1) def binarySearch(nums, target, low, high): if (low > high): return -1 ...
34.423077
69
0.521788
892
0.990011
0
0
0
0
0
0
102
0.113208
0c0beaeefd6502afde93d7709e2ca76e12632ed9
2,560
py
Python
save.py
regismeyssonnier/NeuralNetwork
c998b9523ed02287e1c811d73b0757270dee773c
[ "MIT" ]
null
null
null
save.py
regismeyssonnier/NeuralNetwork
c998b9523ed02287e1c811d73b0757270dee773c
[ "MIT" ]
null
null
null
save.py
regismeyssonnier/NeuralNetwork
c998b9523ed02287e1c811d73b0757270dee773c
[ "MIT" ]
null
null
null
def write_file(filess, T): f = open(filess, "w") for o in T: f.write("[\n") for l in o: f.write(str(l)+"\n") f.write("]\n") f.close() def save_hidden_weight(nb_hidden, hiddenw): for i in range(nb_hidden): write_file("save/base_nn_hid_" + str(i+1) + "w.nn", hiddenw[i]) def load_hiddenw(filess, hi...
17.902098
71
0.636328
0
0
0
0
0
0
0
0
425
0.166016
0c0c0154d635c140279cd61ef15b6dfc6c89cd23
755
py
Python
test_knot_hasher.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
test_knot_hasher.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
test_knot_hasher.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
from unittest import TestCase from day10 import KnotHasher class TestKnotHasher(TestCase): def test_calc(self): sut = KnotHasher(5, [3, 4, 1, 5]) self.assertEqual(12, sut.calc()) def test_hash1(self): sut = KnotHasher(256, '') self.assertEqual('a2582a3a0e66e6e86e3812dcb672a272...
30.2
72
0.658278
693
0.917881
0
0
0
0
0
0
162
0.21457
0c0c55cfe0bc18dae70bf566cb7d439dd048fafe
602
py
Python
udp/src/server.py
matthewchute/net-prot
82d2d92b3c88afb245161780fdd7909d7bf15eb1
[ "MIT" ]
null
null
null
udp/src/server.py
matthewchute/net-prot
82d2d92b3c88afb245161780fdd7909d7bf15eb1
[ "MIT" ]
null
null
null
udp/src/server.py
matthewchute/net-prot
82d2d92b3c88afb245161780fdd7909d7bf15eb1
[ "MIT" ]
null
null
null
import constants, helpers, os temp_msg = None whole_msg = b'' file_path = None helpers.sock.bind(constants.IP_PORT) print "Server Ready" # recieve while temp_msg != constants.EOF: datagram = helpers.sock.recvfrom(constants.BUFFER_SIZE) temp_msg = datagram[0] if file_path is None: print("Receiv...
22.296296
79
0.696013
0
0
0
0
0
0
0
0
58
0.096346
0c0dcfc232bbe604e854e762de0825bd246ecc01
3,697
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.012987
94
0.678117
3,181
0.860427
0
0
0
0
0
0
2,846
0.769813
0c0decf0160c2c2495315ba2014b0b8cb06458ac
4,717
py
Python
src/interactive_conditional_samples.py
50417/gpt-2
0e0b3c97efb0048abffb2947aaa8573a783706ed
[ "MIT" ]
null
null
null
src/interactive_conditional_samples.py
50417/gpt-2
0e0b3c97efb0048abffb2947aaa8573a783706ed
[ "MIT" ]
null
null
null
src/interactive_conditional_samples.py
50417/gpt-2
0e0b3c97efb0048abffb2947aaa8573a783706ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import fire import json import os import numpy as np import tensorflow as tf import model, sample, encoder def interact_model( model_name='117M', seed=None, nsamples=1000, batch_size=1, length=None, temperature=1, top_k=0, top_p=0.0 ): """ Interactively ...
38.349593
116
0.606954
0
0
0
0
0
0
0
0
1,928
0.408734
0c0e5be12d46a3b1b4e3d634643649fcf6a3f4da
291
py
Python
todofy/tests/conftest.py
bokiex/eti_todo
1c636d0973c57d4253440b4528185dba0ecb9d05
[ "BSD-3-Clause" ]
1
2019-11-29T09:52:19.000Z
2019-11-29T09:52:19.000Z
todofy/tests/conftest.py
bokiex/eti_todo
1c636d0973c57d4253440b4528185dba0ecb9d05
[ "BSD-3-Clause" ]
28
2019-11-28T20:02:48.000Z
2022-02-10T14:04:45.000Z
todofy/tests/conftest.py
bokiex/eti_todo
1c636d0973c57d4253440b4528185dba0ecb9d05
[ "BSD-3-Clause" ]
null
null
null
import pytest @pytest.fixture(scope='module') def driver(): from selenium import webdriver options = webdriver.ChromeOptions() options.headless = True chrome = webdriver.Chrome(options=options) chrome.set_window_size(1440, 900) yield chrome chrome.close()
16.166667
46
0.704467
0
0
242
0.831615
274
0.941581
0
0
8
0.027491
0c0e6124651142c0387644ad144cc2392388c0c5
33
py
Python
Fase 4 - Temas avanzados/Tema 11 - Modulos/Leccion 01 - Modulos/Saludos/test.py
ruben69695/python-course
a3d3532279510fa0315a7636c373016c7abe4f0a
[ "MIT" ]
1
2019-01-27T20:44:53.000Z
2019-01-27T20:44:53.000Z
Fase 4 - Temas avanzados/Tema 11 - Modulos/Leccion 01 - Modulos/Saludos/test.py
ruben69695/python-course
a3d3532279510fa0315a7636c373016c7abe4f0a
[ "MIT" ]
null
null
null
Fase 4 - Temas avanzados/Tema 11 - Modulos/Leccion 01 - Modulos/Saludos/test.py
ruben69695/python-course
a3d3532279510fa0315a7636c373016c7abe4f0a
[ "MIT" ]
null
null
null
import saludos saludos.saludar()
11
17
0.818182
0
0
0
0
0
0
0
0
0
0
0c0ea1386a3f6993039b27ca1ae2f4e56ebc457c
1,033
py
Python
question_bank/split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:148 ms, 在所有 Python3 提交中击败了35.57% 的用户 内存消耗:13.7 MB, 在所有 Python3 提交中击败了36.81% 的用户 解题思路: 回溯 具体实现见代码注释 """ class Solution: def splitIntoFibonacci(self, S: str) -> List[int]: def backtrack(S, current): if S == '' and len(current) > 2: # 字...
30.382353
159
0.460794
1,039
0.798616
0
0
0
0
0
0
545
0.418909
0c111c07238e7921c9ce9cb0615b8ac96b16babf
2,771
py
Python
convert_bootswatch_vurple.py
douglaskastle/bootswatch
cb8f368c8d3671afddae487736d7cba6509b7f5b
[ "MIT" ]
null
null
null
convert_bootswatch_vurple.py
douglaskastle/bootswatch
cb8f368c8d3671afddae487736d7cba6509b7f5b
[ "MIT" ]
null
null
null
convert_bootswatch_vurple.py
douglaskastle/bootswatch
cb8f368c8d3671afddae487736d7cba6509b7f5b
[ "MIT" ]
null
null
null
import re import os values = { 'uc': 'Vurple', 'lc': 'vurple', 'cl': '#116BB7', } def main(): infile = "yeti/variables.less" f = open(infile, 'r') lines = f.readlines() f.close() outfile = values['lc'] + "/variables.less" f = open(outfile, 'w') for line in lines: l...
35.075949
139
0.587153
0
0
0
0
0
0
0
0
1,298
0.468423
0c117a09b3c94bdc715dd3e404e0bc7ed330ac20
721
py
Python
python/interface_getPixel.py
BulliB/PixelTable
f08ff3a7908857583f3cbc1b689abf2e8739f7d8
[ "BSD-2-Clause" ]
2
2019-10-28T14:33:31.000Z
2019-10-30T10:08:58.000Z
python/interface_getPixel.py
BulliB/PixelTable
f08ff3a7908857583f3cbc1b689abf2e8739f7d8
[ "BSD-2-Clause" ]
33
2019-10-28T14:17:26.000Z
2020-02-22T11:04:02.000Z
python/interface_getPixel.py
BulliB/PixelTable
f08ff3a7908857583f3cbc1b689abf2e8739f7d8
[ "BSD-2-Clause" ]
2
2019-11-08T11:14:33.000Z
2019-11-19T21:22:54.000Z
#!/usr/bin/python3 from validData import * from command import * from readback import * import sys import time # Expected Input # 1: Row -> 0 to 9 # 2: Column -> 0 to 19 if ( isInt(sys.argv[1]) and strLengthIs(sys.argv[1],1) and isInt(sys.argv[2]) and (strLengthIs(sys.argv[2],1) or strLengthIs(sys.ar...
21.848485
89
0.601942
0
0
0
0
0
0
0
0
135
0.18724
0c11d6edd1fa7404e67e7a29c7dcaef50cd598a8
1,834
py
Python
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
3
2020-01-19T17:10:37.000Z
2022-02-19T18:39:20.000Z
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
null
null
null
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
1
2020-01-19T20:25:18.000Z
2020-01-19T20:25:18.000Z
from getpass import getpass from colorama import init, Fore, Back, Style yes = ['Y', 'y', 'YES', 'yes', 'Yes'] class interface(object): """ Terminal CLI """ def log(self, arg, get=False): if not get: print("[*]: {} ".format(arg)) else: return "[*]: {} ".format(a...
25.123288
76
0.490185
1,721
0.938386
0
0
0
0
0
0
535
0.291712
0c1456a33812aa7157896227520f3def0676ad91
885
py
Python
envdsys/envcontacts/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
1
2021-11-06T19:22:53.000Z
2021-11-06T19:22:53.000Z
envdsys/envcontacts/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
25
2019-06-18T20:40:36.000Z
2021-07-23T20:56:48.000Z
envdsys/envcontacts/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class EnvcontactsConfig(AppConfig): name = 'envcontacts' # def ready(self) -> None: # from envnet.registry.registry import ServiceRegistry # try: # from setup.ui_server_conf import run_config # host = run_config["HOST"]["name"] # ...
29.5
64
0.523164
849
0.959322
0
0
0
0
0
0
681
0.769492
0c16dc36c44b72bd40c213bf05ac31ec7273fca3
8,053
py
Python
tests/interpreter.py
AndrejHatzi/Haya
31291142decf6a172149516f08a2f2d68115e2dc
[ "MIT" ]
null
null
null
tests/interpreter.py
AndrejHatzi/Haya
31291142decf6a172149516f08a2f2d68115e2dc
[ "MIT" ]
1
2019-02-14T16:47:10.000Z
2019-02-14T16:47:10.000Z
tests/interpreter.py
AndrejHatzi/Haya
31291142decf6a172149516f08a2f2d68115e2dc
[ "MIT" ]
null
null
null
from sly import Lexer from sly import Parser import sys #-------------------------- # While Loop # Del Var # Print stmt # EQEQ, LEQ #-------------------------- #=> This version has parenthesis precedence! class BasicLexer(Lexer): tokens = { NAME, NUMBER, STRING, IF, FOR, PRINT, CREATEFILE, WRITE, EQEQ,...
27.768966
83
0.46343
6,790
0.843164
0
0
2,244
0.278654
0
0
1,546
0.191978
0c16fa03a21f3d8b261783bab62dd87a48e2c16d
1,012
py
Python
braintree/apple_pay_card.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
182
2015-01-09T05:26:46.000Z
2022-03-16T14:10:06.000Z
braintree/apple_pay_card.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
95
2015-02-24T23:29:56.000Z
2022-03-13T03:27:58.000Z
braintree/apple_pay_card.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
93
2015-02-19T17:59:06.000Z
2022-03-19T17:01:25.000Z
import braintree from braintree.resource import Resource class ApplePayCard(Resource): """ A class representing Braintree Apple Pay card objects. """ class CardType(object): """ Contants representing the type of the credit card. Available types are: * Braintree.ApplePayCard.Am...
30.666667
132
0.662055
952
0.940711
0
0
106
0.104743
0
0
386
0.381423
0c1758002a3f4c2e5686dc0e50493960b4c98bea
4,054
py
Python
src/lda_without_tf_idf_sports.py
mspkvp/MiningOpinionTweets
23f05b4cea22254748675e03a51844da1dff70ac
[ "MIT" ]
1
2016-01-18T14:30:31.000Z
2016-01-18T14:30:31.000Z
src/lda_without_tf_idf_sports.py
mspkvp/MiningOpinionTweets
23f05b4cea22254748675e03a51844da1dff70ac
[ "MIT" ]
null
null
null
src/lda_without_tf_idf_sports.py
mspkvp/MiningOpinionTweets
23f05b4cea22254748675e03a51844da1dff70ac
[ "MIT" ]
null
null
null
from __future__ import print_function from time import time import csv import sys import os from sklearn.feature_extraction.text import CountVectorizer import numpy as np import lda import logging logging.basicConfig(filename='lda_analyser.log', level=logging.DEBUG) entities = ['jose_mourinho', 'cristia...
37.192661
129
0.561914
0
0
0
0
0
0
0
0
973
0.24001
0c18dab0a973e417315a5c146525d7d91b9da0fe
4,476
py
Python
glab_common/allsummary.py
gentnerlab/glab-common-py
9ff87ac6ca5f07c0d550594da38080bd3ee916db
[ "BSD-3-Clause" ]
3
2016-03-07T19:51:32.000Z
2018-11-08T22:34:14.000Z
glab_common/allsummary.py
gentnerlab/glab-common-py
9ff87ac6ca5f07c0d550594da38080bd3ee916db
[ "BSD-3-Clause" ]
16
2015-02-19T04:32:01.000Z
2018-11-14T20:09:09.000Z
glab_common/allsummary.py
gentnerlab/glab-common-py
9ff87ac6ca5f07c0d550594da38080bd3ee916db
[ "BSD-3-Clause" ]
4
2015-04-01T23:55:25.000Z
2018-02-28T18:23:29.000Z
from __future__ import print_function import re import datetime as dt from behav.loading import load_data_pandas import warnings import subprocess import os import sys process_fname = "/home/bird/opdat/panel_subject_behavior" box_nums = [] bird_nums = [] processes = [] with open(process_fname, "rt") as psb_file: ...
38.921739
122
0.50849
0
0
0
0
0
0
0
0
974
0.217605
0c194bbda6bf427b571869e7619f91e9298b8f04
2,239
py
Python
api/v1/circuits.py
tahoe/janitor
b6ce73bddc13c70079bdc7ba4c7a9b3ee0cad0bd
[ "Apache-2.0" ]
52
2019-08-14T10:48:26.000Z
2022-03-30T18:09:08.000Z
api/v1/circuits.py
tahoe/janitor
b6ce73bddc13c70079bdc7ba4c7a9b3ee0cad0bd
[ "Apache-2.0" ]
18
2019-08-20T04:13:37.000Z
2022-01-31T12:40:12.000Z
api/v1/circuits.py
tahoe/janitor
b6ce73bddc13c70079bdc7ba4c7a9b3ee0cad0bd
[ "Apache-2.0" ]
12
2019-08-14T10:49:11.000Z
2020-09-02T18:56:34.000Z
from app.models import Circuit, CircuitSchema, Provider from flask import make_response, jsonify from app import db def read_all(): """ This function responds to a request for /circuits with the complete lists of circuits :return: sorted list of circuits """ circuits = Circuit.query.al...
26.341176
85
0.676195
0
0
0
0
0
0
0
0
575
0.256811
0c1a66a69d47f4abcbb592a1b69142a384d2f89b
2,311
py
Python
youtube_related/client.py
kijk2869/youtube-related
daabefc60277653098e1d8e266258b71567796d8
[ "MIT" ]
7
2020-07-13T00:15:37.000Z
2021-12-06T14:35:14.000Z
youtube_related/client.py
kijk2869/youtube-related
daabefc60277653098e1d8e266258b71567796d8
[ "MIT" ]
11
2020-07-17T16:11:16.000Z
2022-03-01T23:02:54.000Z
youtube_related/client.py
kijk2869/youtube-related
daabefc60277653098e1d8e266258b71567796d8
[ "MIT" ]
3
2020-11-04T11:44:50.000Z
2022-01-11T04:21:01.000Z
import asyncio import json import re from collections import deque from typing import Deque, Dict, List, Match, Pattern import aiohttp from .error import RateLimited headers: dict = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" } DATA_JSON: Pattern = re.compile( r'(...
29.253165
89
0.63479
581
0.251406
0
0
0
0
1,577
0.682389
404
0.174816
0c1b29cfd60d9ee7d4e6451a8264af9459d2ddcb
2,522
py
Python
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
null
null
null
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
32
2019-08-30T13:09:28.000Z
2021-06-10T19:07:56.000Z
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
3
2019-09-19T10:12:50.000Z
2019-09-30T15:59:13.000Z
# Generated by Django 2.2.5 on 2019-09-24 09:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
50.44
179
0.596352
2,500
0.952018
0
0
0
0
0
0
543
0.206778
0c1bfa28ddb2f6e0a2bc571eb9a019b7ef92cb0d
690
py
Python
field/FieldFactory.py
goph-R/NodeEditor
5cc4749785bbd348f3db01b27c1533b4caadb920
[ "Apache-2.0" ]
null
null
null
field/FieldFactory.py
goph-R/NodeEditor
5cc4749785bbd348f3db01b27c1533b4caadb920
[ "Apache-2.0" ]
null
null
null
field/FieldFactory.py
goph-R/NodeEditor
5cc4749785bbd348f3db01b27c1533b4caadb920
[ "Apache-2.0" ]
null
null
null
from PySide2.QtGui import QVector3D, QColor from field.ColorField import ColorField from field.FloatField import FloatField from field.StringField import StringField from field.Vector3Field import Vector3Field class FieldFactory(object): def create(self, property): result = None type...
23
44
0.618841
465
0.673913
0
0
0
0
0
0
0
0
0c1cee1a04ba87b43d0454e7e5294887e53530fd
1,348
py
Python
scrapy/utils/engine.py
sulochanaviji/scrapy
6071c82e7ac80136e844b56a09d5d31aa8f41296
[ "BSD-3-Clause" ]
8
2021-02-01T07:55:19.000Z
2021-03-22T18:17:47.000Z
scrapy/utils/engine.py
sulochanaviji/scrapy
6071c82e7ac80136e844b56a09d5d31aa8f41296
[ "BSD-3-Clause" ]
30
2021-02-17T14:17:57.000Z
2021-03-03T16:57:16.000Z
scrapy/utils/engine.py
sulochanaviji/scrapy
6071c82e7ac80136e844b56a09d5d31aa8f41296
[ "BSD-3-Clause" ]
3
2021-08-21T04:09:17.000Z
2021-08-25T01:00:41.000Z
"""Some debugging functions for working with the Scrapy engine""" # used in global tests code from time import time # noqa: F401 def get_engine_status(engine): """Return a report of the current engine status""" tests = [ "time()-engine.start_time", "engine.has_capacity()", "len(engin...
27.510204
65
0.609792
0
0
0
0
0
0
0
0
700
0.519288
0c1da110a449d15b92ca6653ffd9fc76029d3fee
2,588
py
Python
share/pegasus/init/population/scripts/full_res_pop_raster.py
hariharan-devarajan/pegasus
d0641541f2eccc69dd6cc5a09b0b51303686d3ac
[ "Apache-2.0" ]
null
null
null
share/pegasus/init/population/scripts/full_res_pop_raster.py
hariharan-devarajan/pegasus
d0641541f2eccc69dd6cc5a09b0b51303686d3ac
[ "Apache-2.0" ]
null
null
null
share/pegasus/init/population/scripts/full_res_pop_raster.py
hariharan-devarajan/pegasus
d0641541f2eccc69dd6cc5a09b0b51303686d3ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from typing import Dict import optparse import numpy as np import rasterio from rasterio import features def main(county_pop_file, spatial_dist_file, fname_out, no_data_val=-9999): ''' county_pop_file: County level population estimates spatial_dist_file: Spatial projection of populati...
33.179487
75
0.63524
0
0
0
0
0
0
0
0
952
0.367852
0c1e7c3ccf6eceb66230761a4bde8362593a8064
9,557
py
Python
TestCase/pr_test_case.py
openeuler-mirror/ci-bot
c50056ff73670bc0382e72cf8c653c01e1aed5e1
[ "MulanPSL-1.0" ]
1
2020-01-12T07:35:34.000Z
2020-01-12T07:35:34.000Z
TestCase/pr_test_case.py
openeuler-mirror/ci-bot
c50056ff73670bc0382e72cf8c653c01e1aed5e1
[ "MulanPSL-1.0" ]
null
null
null
TestCase/pr_test_case.py
openeuler-mirror/ci-bot
c50056ff73670bc0382e72cf8c653c01e1aed5e1
[ "MulanPSL-1.0" ]
2
2020-03-04T02:09:14.000Z
2020-03-07T03:00:40.000Z
import os import requests import subprocess import time import yaml class PullRequestOperation(object): def __init__(self, owner, repo, local_owner): """initialize owner, repo and access_token""" self.owner = owner self.repo = repo self.local_owner = local_owner self.access...
38.381526
206
0.548917
4,636
0.485089
0
0
0
0
0
0
3,092
0.323532
0c1eb2fd9329de0c031fe686c52f4c0e67ec1227
1,103
py
Python
tempest/api/hybrid_cloud/compute/flavors/test_flavors_operations.py
Hybrid-Cloud/hybrid-tempest
319e90c6fa6e46925b495c93cd5258f088a30ec0
[ "Apache-2.0" ]
null
null
null
tempest/api/hybrid_cloud/compute/flavors/test_flavors_operations.py
Hybrid-Cloud/hybrid-tempest
319e90c6fa6e46925b495c93cd5258f088a30ec0
[ "Apache-2.0" ]
null
null
null
tempest/api/hybrid_cloud/compute/flavors/test_flavors_operations.py
Hybrid-Cloud/hybrid-tempest
319e90c6fa6e46925b495c93cd5258f088a30ec0
[ "Apache-2.0" ]
null
null
null
import testtools from oslo_log import log from tempest.api.compute import base import tempest.api.compute.flavors.test_flavors as FlavorsV2Test import tempest.api.compute.flavors.test_flavors_negative as FlavorsListWithDetailsNegativeTest import tempest.api.compute.flavors.test_flavors_negative as FlavorDetailsNegativ...
36.766667
126
0.853128
387
0.350861
0
0
457
0.414325
0
0
146
0.132366
0c1f09091be19e77ace869bcb2f31a8df0eb57b2
8,910
py
Python
dycall/exports.py
demberto/DyCall
b234e7ba535eae71234723bb3d645eb986f96a30
[ "MIT" ]
null
null
null
dycall/exports.py
demberto/DyCall
b234e7ba535eae71234723bb3d645eb986f96a30
[ "MIT" ]
null
null
null
dycall/exports.py
demberto/DyCall
b234e7ba535eae71234723bb3d645eb986f96a30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ dycall.exports ~~~~~~~~~~~~~~ Contains `ExportsFrame` and `ExportsTreeView`. """ from __future__ import annotations import logging import pathlib from typing import TYPE_CHECKING import ttkbootstrap as tk from ttkbootstrap import ttk from ttkbootstrap.dialogs import Messagebox from ttkbo...
34.534884
86
0.579237
8,313
0.932997
0
0
0
0
0
0
2,580
0.289562
0c1fb0aec727010060874060c9a7121a40357346
1,899
py
Python
src/homologs/filter_by_occupancy.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
4
2021-07-18T05:20:20.000Z
2022-01-03T10:22:33.000Z
src/homologs/filter_by_occupancy.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
1
2017-08-21T07:26:13.000Z
2018-11-08T13:59:48.000Z
src/homologs/filter_by_occupancy.py
jlanga/smsk_orthofinder
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
2
2021-07-18T05:20:26.000Z
2022-03-31T18:23:31.000Z
#!/usr/bin/env python """ Filter a fasta alignment according to its occupancy: filter_by_occupancy.py fasta_raw.fa fasta_trimmed.fa 0.5 """ import os import sys from helpers import fasta_to_dict def filter_by_occupancy(filename_in, filename_out, min_occupancy=0.5): """ Filter an alignment in fasta format ...
28.772727
85
0.664034
0
0
0
0
0
0
0
0
424
0.223275
0c20b529cd83a9fd598afa8e482ff4d521f8b78a
954
py
Python
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
1
2020-03-16T00:39:57.000Z
2020-03-16T00:39:57.000Z
#!/usr/bin/env python """ xontrib-dotenv ----- Automatically reads .env file from current working directory or parentdirectories and push variables to environment. """ from setuptools import setup setup( name='xontrib-dotenv', version='0.1', description='Reads .env files into environment', long_descr...
25.105263
60
0.631027
0
0
0
0
0
0
0
0
546
0.572327
0c20b7c255ec391f7dad36b9c36ded1071de5e8b
222
py
Python
tests/sample_app/urls.py
dreipol/meta-tagger
c1a2f1f8b0c051018a5bb75d4e579d27bd2c27b2
[ "BSD-3-Clause" ]
3
2016-05-30T07:48:54.000Z
2017-02-08T21:16:03.000Z
tests/sample_app/urls.py
dreipol/meta-tagger
c1a2f1f8b0c051018a5bb75d4e579d27bd2c27b2
[ "BSD-3-Clause" ]
null
null
null
tests/sample_app/urls.py
dreipol/meta-tagger
c1a2f1f8b0c051018a5bb75d4e579d27bd2c27b2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import url from tests.sample_app.views import NewsArticleDetailView urlpatterns = [ url(r'^(?P<pk>\d+)/$', NewsArticleDetailView.as_view(), name='news-article-detail'), ]
27.75
88
0.702703
0
0
0
0
0
0
0
0
61
0.274775
0c2115fcd6d26f9ce3cdf5ced126fdd61f06356a
105
py
Python
RCNN/config_RCNN.py
andrew-miao/ECE657A_Project-text-classification
5ad77ea6d6c685eecfe3dc189d9ea41f5b3ac1d1
[ "MIT" ]
4
2020-08-11T18:31:55.000Z
2020-08-25T15:30:53.000Z
RCNN/config_RCNN.py
andrew-miao/ECE657A_Project-text-classification
5ad77ea6d6c685eecfe3dc189d9ea41f5b3ac1d1
[ "MIT" ]
null
null
null
RCNN/config_RCNN.py
andrew-miao/ECE657A_Project-text-classification
5ad77ea6d6c685eecfe3dc189d9ea41f5b3ac1d1
[ "MIT" ]
null
null
null
class Config(object): embedding_size = 300 n_layers = 1 hidden_size = 128 drop_prob = 0.2
21
24
0.647619
105
1
0
0
0
0
0
0
0
0
0c23261891d98100b6ddda0879a36f77857b6f48
624
py
Python
utils/bbox_utils/center_to_corner.py
Jaskaran197/Red-blood-cell-detection-SSD
a33b330ad17454a7425aa7f57818c0a41b4e0ff9
[ "MIT" ]
null
null
null
utils/bbox_utils/center_to_corner.py
Jaskaran197/Red-blood-cell-detection-SSD
a33b330ad17454a7425aa7f57818c0a41b4e0ff9
[ "MIT" ]
null
null
null
utils/bbox_utils/center_to_corner.py
Jaskaran197/Red-blood-cell-detection-SSD
a33b330ad17454a7425aa7f57818c0a41b4e0ff9
[ "MIT" ]
null
null
null
import numpy as np def center_to_corner(boxes): """ Convert bounding boxes from center format (cx, cy, width, height) to corner format (xmin, ymin, xmax, ymax) Args: - boxes: numpy array of tensor containing all the boxes to be converted Returns: - A numpy array or tensor of converted bo...
32.842105
115
0.535256
0
0
0
0
0
0
0
0
301
0.482372
0c24e2918c9577a7b38b38b7b54cfb7d7c91ca26
337
py
Python
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
import numpy as np list = [np.linspace([1,2,3], 3),\ np.array([1,2,3]),\ np.arange(3),\ np.arange(8).reshape(2,4),\ np.zeros((2,3)),\ np.zeros((2,3)).T,\ np.ones((3,1)),\ np.eye(3),\ np.full((3,3), 1),\ np.random.rand(3),\ np.random.rand(3,3),\ np.random.uniform(5,15,3),\ np.random.randn(3),\ np.random.normal(3, 2.5, ...
17.736842
33
0.590504
0
0
0
0
0
0
0
0
0
0
0c25a90b221d6137090c0e77b536a592e4921a3d
337
py
Python
api/data_explorer/models/__init__.py
karamalhotra/data-explorer
317f4d7330887969ab6bfe2ca23ec24163472c55
[ "BSD-3-Clause" ]
null
null
null
api/data_explorer/models/__init__.py
karamalhotra/data-explorer
317f4d7330887969ab6bfe2ca23ec24163472c55
[ "BSD-3-Clause" ]
null
null
null
api/data_explorer/models/__init__.py
karamalhotra/data-explorer
317f4d7330887969ab6bfe2ca23ec24163472c55
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # flake8: noqa from __future__ import absolute_import # import models into model package from data_explorer.models.dataset_response import DatasetResponse from data_explorer.models.facet import Facet from data_explorer.models.facet_value import FacetValue from data_explorer.models.facets_response impor...
33.7
65
0.860534
0
0
0
0
0
0
0
0
63
0.186944
0c2791187a63a4bcc6905cd731c3e9fbdcde2c2b
2,288
py
Python
seabird/cli.py
nicholas512/seabird
23073b2b9a550b86ec155cbe43be9b50e50b8310
[ "BSD-3-Clause" ]
38
2015-04-15T08:57:44.000Z
2022-03-13T02:51:53.000Z
seabird/cli.py
nicholas512/seabird
23073b2b9a550b86ec155cbe43be9b50e50b8310
[ "BSD-3-Clause" ]
54
2015-01-28T03:53:43.000Z
2021-12-11T07:37:24.000Z
seabird/cli.py
nicholas512/seabird
23073b2b9a550b86ec155cbe43be9b50e50b8310
[ "BSD-3-Clause" ]
22
2015-09-22T12:24:22.000Z
2022-01-31T22:27:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Command line utilities for package Seabird """ import click from seabird.exceptions import CNVError from .cnv import fCNV from .netcdf import cnv2nc @click.group() def cli(): """ Utilities for seabird files """ pass @cli.command(name='cnvdump') @click.a...
28.962025
68
0.645979
0
0
0
0
2,077
0.90778
0
0
807
0.35271
0c2931d41844c5cadfbc0f4d8cd12cf1c0991cb4
1,752
py
Python
main.py
Mitch-the-Fridge/pi
70ab24dab9b06722084e93f783dc541747d46720
[ "MIT" ]
null
null
null
main.py
Mitch-the-Fridge/pi
70ab24dab9b06722084e93f783dc541747d46720
[ "MIT" ]
null
null
null
main.py
Mitch-the-Fridge/pi
70ab24dab9b06722084e93f783dc541747d46720
[ "MIT" ]
1
2020-05-31T17:13:42.000Z
2020-05-31T17:13:42.000Z
#!/usr/bin/env python3 #import face_recognition import cv2 import numpy as np from datetime import datetime, timedelta from buffer import Buffer from collections import deque import os from copy import copy import archive WEIGHT_EPS = 5 TIMEOUT = 5 # in seconds def poll_weight(): return 500 # with an fps we the...
23.36
87
0.660388
0
0
0
0
0
0
0
0
339
0.193493
0c2a0afb31018189385f06e7bd9d48b8c0f6df9c
2,895
py
Python
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
1
2021-03-30T21:38:26.000Z
2021-03-30T21:38:26.000Z
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
r""" =============================================================================== pore_topology -- functions for monitoring and adjusting topology =============================================================================== """ import scipy as _sp def get_subscripts(network, shape, **kwargs): r""" Retu...
29.242424
79
0.587219
0
0
0
0
0
0
0
0
1,716
0.592746
0c2a4b436c5eaf17c454eecf85f7cdb41e8c152f
9,559
py
Python
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Tasks/Join.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
2
2015-01-26T07:15:19.000Z
2015-11-09T13:42:11.000Z
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Tasks/Join.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Tasks/Join.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
# Copyright (C) 2007 Samuel Abels # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distri...
37.93254
80
0.61293
8,607
0.900408
0
0
0
0
0
0
4,012
0.419709
0c2c64f073f540439acf039ecdc1016885d5eb85
5,763
py
Python
covsirphy/visualization/bar_plot.py
ardhanii/covid19-sir
87881963c49a2fc5b6235c8b21269d216acaa941
[ "Apache-2.0" ]
97
2020-05-15T15:20:15.000Z
2022-03-18T02:55:54.000Z
covsirphy/visualization/bar_plot.py
ardhanii/covid19-sir
87881963c49a2fc5b6235c8b21269d216acaa941
[ "Apache-2.0" ]
970
2020-06-01T13:48:34.000Z
2022-03-29T08:20:49.000Z
covsirphy/visualization/bar_plot.py
ardhani31/Covid19-SIRV-v3
59d95156b375c41259c46ce4e656b86903f92ec2
[ "Apache-2.0" ]
36
2020-05-15T15:36:43.000Z
2022-02-25T17:59:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from matplotlib import pyplot as plt from matplotlib.ticker import ScalarFormatter import pandas as pd from covsirphy.util.argument import find_args from covsirphy.visualization.vbase import VisualizeBase class BarPlot(VisualizeBase): """ Create a bar plot. ...
36.942308
152
0.599167
4,194
0.727746
0
0
0
0
0
0
2,760
0.478917
0c2c8fc01f580afd1e737eea2d3f4a891285699e
3,342
py
Python
03-process-unsplash-dataset.py
l294265421/natural-language-image-search
71621f2208f345b922ed0f82d406526cef456d48
[ "MIT" ]
null
null
null
03-process-unsplash-dataset.py
l294265421/natural-language-image-search
71621f2208f345b922ed0f82d406526cef456d48
[ "MIT" ]
null
null
null
03-process-unsplash-dataset.py
l294265421/natural-language-image-search
71621f2208f345b922ed0f82d406526cef456d48
[ "MIT" ]
null
null
null
import os import math from pathlib import Path import clip import torch from PIL import Image import numpy as np import pandas as pd from common import common_path # Set the path to the photos # dataset_version = "lite" # Use "lite" or "full" # photos_path = Path("unsplash-dataset") / dataset_version / "photos" ph...
36.326087
118
0.718731
0
0
0
0
0
0
0
0
1,335
0.399461
0c2caff0890d29c7f470b93cedd466717f34705f
4,612
py
Python
treadmill_pipeline/treadmill.py
ttngu207/project-treadmill
55b5241b1c0b2634da8c153bf9aaeb511f28b07f
[ "MIT" ]
null
null
null
treadmill_pipeline/treadmill.py
ttngu207/project-treadmill
55b5241b1c0b2634da8c153bf9aaeb511f28b07f
[ "MIT" ]
null
null
null
treadmill_pipeline/treadmill.py
ttngu207/project-treadmill
55b5241b1c0b2634da8c153bf9aaeb511f28b07f
[ "MIT" ]
4
2020-03-05T15:44:36.000Z
2020-03-18T15:18:11.000Z
import numpy as np import datajoint as dj from treadmill_pipeline import project_database_prefix from ephys.utilities import ingestion, time_sync from ephys import get_schema_name schema = dj.schema(project_database_prefix + 'treadmill_pipeline') reference = dj.create_virtual_module('reference', get_schema_name('re...
50.681319
130
0.624892
4,107
0.890503
0
0
4,115
0.892238
0
0
2,099
0.455117
0c3043c88aed8f6a40aafefe3d1e9548537a28e3
1,324
py
Python
management/api/v1/serializers.py
bwksoftware/cypetulip
4ea5c56d2d48a311220e144d094280a275109316
[ "MIT" ]
3
2019-08-03T12:00:22.000Z
2020-02-02T08:37:09.000Z
management/api/v1/serializers.py
basetwode/cypetulip
d6be294a288706c5661afb433215fe6c3ffea92b
[ "MIT" ]
47
2019-08-03T16:17:41.000Z
2022-03-11T23:15:48.000Z
management/api/v1/serializers.py
basetwode/cypetulip
d6be294a288706c5661afb433215fe6c3ffea92b
[ "MIT" ]
null
null
null
from rest_framework import serializers from management.models.main import MailSetting, LdapSetting, ShopSetting, LegalSetting, Header, CacheSetting, Footer class MailSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = MailSetting fields = '__a...
22.066667
116
0.702417
1,146
0.865559
0
0
0
0
0
0
63
0.047583
0c309ee4537295e1c6db342512009ad9c9a55328
9,854
py
Python
tests/test_optimal.py
craffer/fantasy-coty
08903cb138fa1c2d160b90fc028c8ec55901040b
[ "MIT" ]
null
null
null
tests/test_optimal.py
craffer/fantasy-coty
08903cb138fa1c2d160b90fc028c8ec55901040b
[ "MIT" ]
2
2019-12-21T18:48:40.000Z
2019-12-22T20:19:20.000Z
tests/test_optimal.py
craffer/fantasy-coty
08903cb138fa1c2d160b90fc028c8ec55901040b
[ "MIT" ]
null
null
null
"""Unit test optimal lineup functions.""" import unittest import copy import ff_espn_api # pylint: disable=import-error from collections import defaultdict from fantasy_coty.main import add_to_optimal class TestAddToOptimal(unittest.TestCase): """Test add_to_optimal() function.""" def setUp(self): "...
46.046729
100
0.623909
9,600
0.974224
0
0
0
0
0
0
1,504
0.152628
0c31fa4744359e49cd3c719e5fe2aae79bc7f68a
5,391
py
Python
spark/explorer.py
Elavarasan17/Stack-Overflow-Data-Dump-Analysis
3742a1eef17b211ddcda4bd5f41d8a8c42ec228f
[ "zlib-acknowledgement", "RSA-MD" ]
null
null
null
spark/explorer.py
Elavarasan17/Stack-Overflow-Data-Dump-Analysis
3742a1eef17b211ddcda4bd5f41d8a8c42ec228f
[ "zlib-acknowledgement", "RSA-MD" ]
null
null
null
spark/explorer.py
Elavarasan17/Stack-Overflow-Data-Dump-Analysis
3742a1eef17b211ddcda4bd5f41d8a8c42ec228f
[ "zlib-acknowledgement", "RSA-MD" ]
null
null
null
from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession, functions, types from pyspark.sql.functions import date_format from pyspark.sql.functions import year, month, dayofmonth import sys import json import argparse assert sys.version_info >= (3, 5) # make sure we have Python 3.5+ # add more ...
70.012987
325
0.725654
0
0
0
0
0
0
0
0
2,165
0.401446
0c32795d8af79fcf1c3d723adbd4971a62b457ad
2,177
py
Python
self_supervised/loss.py
ravidziv/self-supervised-learning
f02c1639ce3c2119afa522e400d793e741fb68a0
[ "MIT" ]
null
null
null
self_supervised/loss.py
ravidziv/self-supervised-learning
f02c1639ce3c2119afa522e400d793e741fb68a0
[ "MIT" ]
null
null
null
self_supervised/loss.py
ravidziv/self-supervised-learning
f02c1639ce3c2119afa522e400d793e741fb68a0
[ "MIT" ]
null
null
null
"""Contrastive loss functions.""" from functools import partial import tensorflow as tf LARGE_NUM = 1e9 def cont_loss2(temperature: float): func = partial(add_contrastive_loss, temperature=temperature) func.__name__ = 'cont_loss2' return func def add_supervised_loss(labels: tf.Tensor, logits: tf.Tenso...
36.283333
81
0.683969
0
0
0
0
0
0
0
0
478
0.219568
0c336dedc298c3448acb41a9e995e66ab5dfe2bf
3,391
py
Python
suzieq/engines/pandas/tables.py
zxiiro/suzieq
eca92820201c05bc80081599f69e41cd6b991107
[ "Apache-2.0" ]
null
null
null
suzieq/engines/pandas/tables.py
zxiiro/suzieq
eca92820201c05bc80081599f69e41cd6b991107
[ "Apache-2.0" ]
null
null
null
suzieq/engines/pandas/tables.py
zxiiro/suzieq
eca92820201c05bc80081599f69e41cd6b991107
[ "Apache-2.0" ]
null
null
null
import pandas as pd from suzieq.engines.pandas.engineobj import SqPandasEngine from suzieq.sqobjects import get_sqobject class TableObj(SqPandasEngine): @staticmethod def table_name(): return 'tables' def get(self, **kwargs): """Show the known tables for which we have information""" ...
34.252525
76
0.529932
3,266
0.963138
0
0
59
0.017399
0
0
712
0.209968
0c34007b8ed98fbad90350a4894f2960e309e1be
3,306
py
Python
connect_box/data.py
jtru/python-connect-box
2d26923e966fbb319760da82e3e71103018ded0b
[ "MIT" ]
null
null
null
connect_box/data.py
jtru/python-connect-box
2d26923e966fbb319760da82e3e71103018ded0b
[ "MIT" ]
null
null
null
connect_box/data.py
jtru/python-connect-box
2d26923e966fbb319760da82e3e71103018ded0b
[ "MIT" ]
null
null
null
"""Handle Data attributes.""" from datetime import datetime from ipaddress import IPv4Address, IPv6Address, ip_address as convert_ip from typing import Iterable, Union import attr @attr.s class Device: """A single device.""" mac: str = attr.ib() hostname: str = attr.ib(cmp=False) ip: Union[IPv4Addre...
24.857143
82
0.635209
3,019
0.913188
0
0
3,099
0.937387
0
0
467
0.141258