hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
711ec939f77114f558ae32de6989f06e57d48c3a
1,223
py
Python
best_new_music_digest/email.py
vanillaSlice/best-new-music-digest
feaa01cf477d3fef944ad2b4047b4f2b9cd44d1c
[ "MIT" ]
1
2021-01-16T17:48:05.000Z
2021-01-16T17:48:05.000Z
best_new_music_digest/email.py
vanillaSlice/best-new-music-digest
feaa01cf477d3fef944ad2b4047b4f2b9cd44d1c
[ "MIT" ]
2
2021-01-21T12:53:47.000Z
2021-10-20T06:30:38.000Z
best_new_music_digest/email.py
vanillaSlice/best-new-music-digest
feaa01cf477d3fef944ad2b4047b4f2b9cd44d1c
[ "MIT" ]
null
null
null
# pylint: disable=broad-except """ Emails. """ from datetime import datetime from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail from best_new_music_digest import settings def send_email(digest, dad_joke=None, albums_playlist_url=None, tracks_playlist_url=None): """ Sends out dig...
24.959184
90
0.686018
97513dfea26c9288a06e091593ec2f86912a9ff0
303
py
Python
iotbx/pdb/nucleic_acid_codes.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
2
2018-02-01T14:25:48.000Z
2021-09-15T16:36:29.000Z
iotbx/pdb/nucleic_acid_codes.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
2
2018-06-14T17:04:17.000Z
2019-06-24T20:54:12.000Z
iotbx/pdb/nucleic_acid_codes.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
1
2022-02-08T10:11:07.000Z
2022-02-08T10:11:07.000Z
from __future__ import absolute_import, division, print_function rna_one_letter_code_dict = { 'ADE':'A', 'CYT':'C', 'URI':'U', 'GUA':'G', 'A':'A', 'C':'C', 'U':'U', 'G':'G',} dna_one_letter_code_dict = { 'ADE':'A', 'CYT':'C', 'THY':'T', 'GUA':'G', 'A':'A', 'C':'C', 'T':'T', 'G':'G',}
13.772727
64
0.50495
d0029b373720e5025b49232c97c5e79a8120486a
448
py
Python
django_geo/admin.py
roverdotcom/django-geo
f832a7f434fa4e2baa54a859596468a283ce7f43
[ "MIT" ]
null
null
null
django_geo/admin.py
roverdotcom/django-geo
f832a7f434fa4e2baa54a859596468a283ce7f43
[ "MIT" ]
1
2018-05-14T20:04:03.000Z
2018-05-17T22:11:09.000Z
django_geo/admin.py
roverdotcom/django-geo
f832a7f434fa4e2baa54a859596468a283ce7f43
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals from django.contrib import admin from .models import ZipCode class ZipCodeAdmin(admin.ModelAdmin): list_display = ('zip_code', 'latitude', 'longitude', 'state', 'ci...
28
73
0.767857
c2a75185eca108ec3066c1510e4e8604764fa009
41,300
py
Python
venv/Lib/site-packages/sklearn/datasets/_base.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
7
2021-01-30T17:42:00.000Z
2022-01-09T08:08:48.000Z
venv/Lib/site-packages/sklearn/datasets/_base.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
venv/Lib/site-packages/sklearn/datasets/_base.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
""" Base IO code for all datasets """ # Copyright (c) 2007 David Cournapeau <cournape@gmail.com> # 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr> # 2010 Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause import csv import hashlib import os import shutil from collections im...
34.359401
85
0.578523
e1e58615ee4d6023ecaa9b21ca669b84f6d26279
387
py
Python
src/unittest/02/survey.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/unittest/02/survey.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/unittest/02/survey.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
3
2020-02-19T08:02:04.000Z
2021-06-08T13:27:51.000Z
class AnonymousSurvey(): def __init__(self, question): self.question = question self.responses = [] def show_question(self): print(self.question) def store_response(self, response): self.responses.append(response) def show_results(self): print('Survey results:'...
24.1875
39
0.607235
5b38fc13c035f7e4111b7500aceaf1d13cea58b0
4,848
py
Python
pypisd/main.py
fegoa89/pypisd
1fefbf77fd2535c415a1342ffa4a0b10c87d657b
[ "MIT" ]
null
null
null
pypisd/main.py
fegoa89/pypisd
1fefbf77fd2535c415a1342ffa4a0b10c87d657b
[ "MIT" ]
null
null
null
pypisd/main.py
fegoa89/pypisd
1fefbf77fd2535c415a1342ffa4a0b10c87d657b
[ "MIT" ]
null
null
null
import sys import os import re import csv import toml import argparse import requests import pathlib from subprocess import Popen, PIPE, STDOUT import concurrent.futures from bs4 import BeautifulSoup def cli(): parser = argparse.ArgumentParser() parser.add_argument( "-i", "--input_file", ...
32.10596
99
0.656147
0c4553cf4f13caa3177d80fc3fa1ede7061c60a9
1,172
py
Python
moredata/parser/__init__.py
thomassonobe/more-data
b3d4a8e32f385a69749c8139915e3638fcced37b
[ "BSD-3-Clause" ]
null
null
null
moredata/parser/__init__.py
thomassonobe/more-data
b3d4a8e32f385a69749c8139915e3638fcced37b
[ "BSD-3-Clause" ]
null
null
null
moredata/parser/__init__.py
thomassonobe/more-data
b3d4a8e32f385a69749c8139915e3638fcced37b
[ "BSD-3-Clause" ]
null
null
null
import json import csv from h3 import h3 from ..utils import read_json_from_file, load_json from shapely.geometry import asPoint from numpy import array def _add_geo_location(doc): doc["geo_location"] = asPoint(array([doc["longitude"], doc["latitude"]])).wkt return doc def _add_code_point(doc): doc["cod...
28.585366
82
0.614334
4acc2ff137c1fe5fa06cfd0748f65746ddb51daa
13,176
py
Python
python/IndividualizedSpatialModels/ProgramFinal/ccobra_models/spatial_model_prem3_understood.py
ShiroDevC/portfolio
f31ce2bc4a5a2725d4de40a22997dca2b361d367
[ "MIT" ]
null
null
null
python/IndividualizedSpatialModels/ProgramFinal/ccobra_models/spatial_model_prem3_understood.py
ShiroDevC/portfolio
f31ce2bc4a5a2725d4de40a22997dca2b361d367
[ "MIT" ]
null
null
null
python/IndividualizedSpatialModels/ProgramFinal/ccobra_models/spatial_model_prem3_understood.py
ShiroDevC/portfolio
f31ce2bc4a5a2725d4de40a22997dca2b361d367
[ "MIT" ]
null
null
null
''' Module for a individualized spatial model to be used in the CCOBRA Framework. Each individualized model uses one or more individualizations implemented in the modified spatial model. This Module uses the 'premise three misinterpreted' individualization. @author: Christian Breu <breuch@web.de> ''' from copy...
50.872587
100
0.631755
3a3caffa97f0ee75275c85a6d2d15c7613e0be2e
11,357
py
Python
featuremapper/analysis/pinwheels.py
fcr/featuremapper
b999110dce9bbbdf4b6dbd2d13bfca1596064c6a
[ "BSD-3-Clause" ]
2
2018-03-29T18:52:58.000Z
2019-05-07T17:36:35.000Z
featuremapper/analysis/pinwheels.py
fcr/featuremapper
b999110dce9bbbdf4b6dbd2d13bfca1596064c6a
[ "BSD-3-Clause" ]
7
2016-11-15T13:02:41.000Z
2019-10-21T19:59:31.000Z
featuremapper/analysis/pinwheels.py
fcr/featuremapper
b999110dce9bbbdf4b6dbd2d13bfca1596064c6a
[ "BSD-3-Clause" ]
5
2015-09-06T18:11:55.000Z
2018-12-19T10:48:52.000Z
import sys import cmath import math import numpy as np from matplotlib import pyplot as plt import param from holoviews.core.options import Store, Options from holoviews import Points, Overlay from holoviews.element import Contours from holoviews.operation import Operation __author__ = "Jean-Luc Stevens" class Wa...
40.27305
101
0.630888
45d7dcaa1aef4f6d87741360cd8e4efcfb7bc1aa
4,709
py
Python
catboost/python-package/catboost/monoforest.py
jochenater/catboost
de2786fbc633b0d6ea6a23b3862496c6151b95c2
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
catboost/python-package/catboost/monoforest.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
catboost/python-package/catboost/monoforest.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
import math from . import _catboost from .core import CatBoost, CatBoostError from .utils import _import_matplotlib FeatureExplanation = _catboost.FeatureExplanation def _check_model(model): if not isinstance(model, CatBoost): raise CatBoostError("Model should be CatBoost") def to_polynom(model): ...
35.141791
96
0.606498
021197105c68c266681d3e275ea490207944f64d
3,063
py
Python
cvxpy/atoms/affine/sum.py
dougalsutherland/cvxpy
34349b5e41c124a6a1e32426e68af95b5044498c
[ "ECL-2.0", "Apache-2.0" ]
1
2019-04-15T14:01:03.000Z
2019-04-15T14:01:03.000Z
cvxpy/atoms/affine/sum.py
dougalsutherland/cvxpy
34349b5e41c124a6a1e32426e68af95b5044498c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/atoms/affine/sum.py
dougalsutherland/cvxpy
34349b5e41c124a6a1e32426e68af95b5044498c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2013 Steven Diamond 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...
30.63
78
0.611166
e08e673ef380ac0202ad464ea9f497a05b63cb31
4,845
py
Python
hw_06/linear_regression_sgd.py
coinflip112/ml_101
9e56ffdb99ac241ed396e25d7f7818a58ee5c4de
[ "MIT" ]
null
null
null
hw_06/linear_regression_sgd.py
coinflip112/ml_101
9e56ffdb99ac241ed396e25d7f7818a58ee5c4de
[ "MIT" ]
null
null
null
hw_06/linear_regression_sgd.py
coinflip112/ml_101
9e56ffdb99ac241ed396e25d7f7818a58ee5c4de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import sys import matplotlib.pyplot as plt import numpy as np import sklearn.datasets import sklearn.linear_model import sklearn.metrics import sklearn.model_selection if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--batch_size", defau...
38.149606
96
0.586997
5f24abbe9e57fd1d66a74759fa00ed135875596e
4,685
py
Python
tests/nodeos_chainbase_allocation_test.py
Remmeauth/core
578996ce408ca0adbe6a6b895177199017ee907b
[ "MIT" ]
140
2019-07-01T13:13:06.000Z
2021-11-23T12:50:39.000Z
tests/nodeos_chainbase_allocation_test.py
Remmeauth/core
578996ce408ca0adbe6a6b895177199017ee907b
[ "MIT" ]
26
2019-07-12T09:07:36.000Z
2020-05-20T20:33:06.000Z
tests/nodeos_chainbase_allocation_test.py
Remmeauth/core
578996ce408ca0adbe6a6b895177199017ee907b
[ "MIT" ]
7
2019-08-30T08:29:46.000Z
2020-07-30T15:35:10.000Z
#!/usr/bin/env python3 from testUtils import Utils, Account from Cluster import Cluster from TestHelper import TestHelper from WalletMgr import WalletMgr from Node import Node import signal import json import time import os import filecmp ############################################################### # nodeos_chain...
40.042735
126
0.740021
799ade49c144ac5aa0523477678e891766a1a380
4,496
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_sizes_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_sizes_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_sizes_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
41.62963
144
0.636121
fadf4bda0342b2659bf95ce65ff827da298ea257
808
py
Python
dataloader/__init__.py
entn-at/AGAIN-VC
dbf94bf55882f897c312c7760cd892c51c93c9ab
[ "MIT" ]
78
2020-10-24T02:55:59.000Z
2022-03-08T03:09:13.000Z
dataloader/__init__.py
entn-at/AGAIN-VC
dbf94bf55882f897c312c7760cd892c51c93c9ab
[ "MIT" ]
15
2020-11-03T18:34:15.000Z
2022-03-26T19:47:59.000Z
dataloader/__init__.py
entn-at/AGAIN-VC
dbf94bf55882f897c312c7760cd892c51c93c9ab
[ "MIT" ]
16
2020-11-09T21:17:53.000Z
2022-03-17T04:07:26.000Z
from torch.utils.data import DataLoader import logging import importlib logger = logging.getLogger(__name__) def get_dataset(dset, dataset_config, njobs, metadata=None): # dataset = 'Dataset' # l = locals() # exec(f'from .{name} import Dataset', globals(), l) # exec(f'ret = {dataset}(config, args, dse...
29.925926
101
0.680693
1ec098314b7460cacb7dbe6d4867e77378ab4a04
363
py
Python
exercicios/Mundo1/Pintando_paredes.py
soualeques/Curso-em-Video-Python
ea651c687ce7daf810fc235ab2fcd0fb6c218a2c
[ "MIT" ]
null
null
null
exercicios/Mundo1/Pintando_paredes.py
soualeques/Curso-em-Video-Python
ea651c687ce7daf810fc235ab2fcd0fb6c218a2c
[ "MIT" ]
null
null
null
exercicios/Mundo1/Pintando_paredes.py
soualeques/Curso-em-Video-Python
ea651c687ce7daf810fc235ab2fcd0fb6c218a2c
[ "MIT" ]
null
null
null
#Faça um programa que leia a altura e largura de uma parede e pinte ela, sabendo que cada litro pinta 2M²# alt = float(input("Digite a altura em metros da parede a ser pintada: ")) larg = float(input("Digite a largura em metros da parede a ser pintada: ")) área = larg * alt tinta = área / 2 print("sera necesario {}L de...
60.5
106
0.732782
45d3bcec38b72a6d7740164f34515579516273b1
328
py
Python
day09/tests.py
Moremar/advent_of_code_2018
db57f2c6858dc4a1b70888ddb45c9bdbeccab9bb
[ "MIT" ]
null
null
null
day09/tests.py
Moremar/advent_of_code_2018
db57f2c6858dc4a1b70888ddb45c9bdbeccab9bb
[ "MIT" ]
null
null
null
day09/tests.py
Moremar/advent_of_code_2018
db57f2c6858dc4a1b70888ddb45c9bdbeccab9bb
[ "MIT" ]
null
null
null
import unittest import script1 import script2 test_file = "sample.txt" class Tests(unittest.TestCase): def test_part_1(self): self.assertEqual(script1.compute(test_file), 32) def test_part_2(self): self.assertEqual(script2.compute(test_file), 22563) if __name__ == '__main__': unittest...
17.263158
59
0.710366
a06e480c5d9a5547bd7119728195abfeec3dd851
7,374
py
Python
draft/truefx/truefx_api.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
18
2015-02-05T01:42:51.000Z
2020-12-27T19:24:25.000Z
draft/truefx/truefx_api.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
1
2015-01-12T11:08:02.000Z
2015-01-13T09:14:47.000Z
draft/truefx/truefx_api.py
femtotrader/pandas_datareaders
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
13
2015-09-10T19:39:51.000Z
2022-01-06T17:08:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ API to get FX prices from TrueFX http://www.truefx.com/ http://www.truefx.com/?page=download&description=api http://www.truefx.com/dev/data/TrueFX_MarketDataWebAPI_DeveloperGuide.pdf """ import logging logger = logging.getLogger(__name__) import click import os imp...
29.733871
124
0.644833
4b73d21d5a2080bf486cac24935cf83477810267
5,009
py
Python
adaptor/tests/test_adaptor.py
LeoComandini/adaptor-py
b9157b18718fed11115d6f3f59b2067411193306
[ "MIT" ]
1
2021-08-30T11:18:02.000Z
2021-08-30T11:18:02.000Z
adaptor/tests/test_adaptor.py
LeoComandini/adaptor-py
b9157b18718fed11115d6f3f59b2067411193306
[ "MIT" ]
null
null
null
adaptor/tests/test_adaptor.py
LeoComandini/adaptor-py
b9157b18718fed11115d6f3f59b2067411193306
[ "MIT" ]
null
null
null
import os import unittest from adaptor.adaptor import * from adaptor.ecdsa import * from adaptor.schnorr import * def rand32(): return int_from_bytes(os.urandom(32)) class TestsAdaptor(unittest.TestCase): def test_adaptor_ecdsa(self): x = 10 y = 14 message_hash = b'\xaa'*32 Y...
41.741667
94
0.632262
67d68ee1688ac8435826dd8515a39dd2adb213bb
2,089
py
Python
certbot-dns-dnsimple/setup.py
mausinixterra/letsencrypt
2d4f36cc9fedafa91b9877ec2ec1f9f83da4ecd3
[ "Apache-2.0" ]
2
2018-10-03T15:33:57.000Z
2020-06-09T20:28:29.000Z
certbot-dns-dnsimple/setup.py
mausinixterra/letsencrypt
2d4f36cc9fedafa91b9877ec2ec1f9f83da4ecd3
[ "Apache-2.0" ]
null
null
null
certbot-dns-dnsimple/setup.py
mausinixterra/letsencrypt
2d4f36cc9fedafa91b9877ec2ec1f9f83da4ecd3
[ "Apache-2.0" ]
3
2018-02-09T21:05:38.000Z
2019-06-10T00:39:00.000Z
import sys from setuptools import setup from setuptools import find_packages version = '0.20.0.dev0' # Please update tox.ini when modifying dependency version requirements install_requires = [ 'acme=={0}'.format(version), 'certbot=={0}'.format(version), 'dns-lexicon', 'mock', # For pkg_resources...
30.275362
78
0.624222
46bbbcc46a2cbb459fc8e6e53592378049997cf8
24,092
py
Python
leanerp/helpdesk/tests/test_get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
null
null
null
leanerp/helpdesk/tests/test_get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
6
2018-02-20T13:59:07.000Z
2018-03-06T17:35:41.000Z
leanerp/helpdesk/tests/test_get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
1
2018-03-06T17:28:07.000Z
2018-03-06T17:28:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from helpdesk.models import Queue, Ticket, TicketCC, FollowUp, Attachment from django.test import TestCase from django.core.management import call_command from django.utils import six from django.shortcuts import get_object_or_404 from django.contrib.aut...
47.054688
364
0.620538
f8d7050e863c1b7756d6e8ce317fc81c05ed12dd
915
py
Python
utils/minSubArrayLen.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
utils/minSubArrayLen.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
utils/minSubArrayLen.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
""" 题目描述 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和≥ s的长度最小的连续子数组。如果不存在符合条件的连续子数组,返回 0。 示例: 输入: s = 7, nums = [2,3,1,2,4,3] 输出: 2 解释: 子数组 [4,3] 是该条件下的长度最小的连续子数组。 """ class Solution: def minSubArrayLen(self, s, nums): pre = 0 su = 0 le = 0 for i,num in enumerate(nums): # prin...
22.875
72
0.437158
de3b59c604e89af117a582b1e1d355dc24c9efc0
8,060
py
Python
event_three.py
Malcolm1998/CS412T1C2
5a79bc27452c162dcd0ac94fa32b5fb717345bb5
[ "MIT" ]
null
null
null
event_three.py
Malcolm1998/CS412T1C2
5a79bc27452c162dcd0ac94fa32b5fb717345bb5
[ "MIT" ]
null
null
null
event_three.py
Malcolm1998/CS412T1C2
5a79bc27452c162dcd0ac94fa32b5fb717345bb5
[ "MIT" ]
null
null
null
import signal import rospy import smach import smach_ros import math import time import cv2 from math import tanh from geometry_msgs.msg import Twist from sensor_msgs.msg import Image import numpy as np from sensor_msgs.msg import LaserScan from sensor_msgs.msg import Joy from kobuki_msgs.msg import Sound import detect...
34.444444
116
0.562779
82b42c28b9a4f60f1f0cb9cfd7c51c57dab7ffb9
16,977
py
Python
collector.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
2
2016-01-14T18:25:14.000Z
2018-10-24T10:16:58.000Z
collector.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
null
null
null
collector.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import traceback import copy import logging import simplejson as json import listservers import buckets import info import util_cli as util import cb_bin_client import stats_buffer class StatsCollector: def __init__(self, log): self.log = lo...
47.289694
122
0.523473
9551c1a2ca9c32f337034987d9fb0203d8b2b7cf
5,060
py
Python
tfplus/nn/cnn.py
renmengye/tfplus
9b1f71d33f24af510c701c7d6f6bb816720ed701
[ "MIT" ]
2
2016-10-11T11:01:07.000Z
2016-10-11T11:02:32.000Z
tfplus/nn/cnn.py
renmengye/tfplus
9b1f71d33f24af510c701c7d6f6bb816720ed701
[ "MIT" ]
null
null
null
tfplus/nn/cnn.py
renmengye/tfplus
9b1f71d33f24af510c701c7d6f6bb816720ed701
[ "MIT" ]
2
2016-08-03T19:20:48.000Z
2019-06-24T07:36:22.000Z
from __future__ import division from graph_builder import GraphBuilder import numpy as np import tensorflow as tf from ops import Conv2D, MaxPool from batch_norm import BatchNorm class CNN(GraphBuilder): def __init__(self, f, ch, pool, act, use_bn, wd=None, use_stride=False, scope='cnn', trai...
33.733333
75
0.470553
ce0a5fd236b8d2380b5c2266229e61e99e49953f
781
py
Python
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
3
2019-04-29T02:47:30.000Z
2019-04-30T16:35:15.000Z
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
null
null
null
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
null
null
null
class SlewLimiter: def __init__(self, limit): self.limit = limit self.output = 0.0 def Feed(self, value): error = value - self.output if error > self.limit: error = self.limit elif error < (self.limit * -1): error = self.limit * -1 sel...
27.892857
47
0.541613
727fdb5c07ab90d6ac5e956a24cbec200adb8772
1,912
py
Python
gitmostwanted/tasks/repo_stars.py
JS555/YayanRuhianResearch_
313df2ff308b2c7444bcd64094dd64ff69a8911d
[ "MIT" ]
null
null
null
gitmostwanted/tasks/repo_stars.py
JS555/YayanRuhianResearch_
313df2ff308b2c7444bcd64094dd64ff69a8911d
[ "MIT" ]
null
null
null
gitmostwanted/tasks/repo_stars.py
JS555/YayanRuhianResearch_
313df2ff308b2c7444bcd64094dd64ff69a8911d
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from gitmostwanted.app import app, db, celery from gitmostwanted.lib.bigquery.job import Job from gitmostwanted.models.repo import Repo, RepoStars from gitmostwanted.services import bigquery from time import sleep def results_of(j: Job): # @todo #0:15m copy-paste code in mult...
30.83871
100
0.626046
62e947c0a594776834d00b0cc9f86070821186bd
15,188
py
Python
plugins/youtube_dl_button.py
Naysabots/Youtube-Downloader-Bot
643312dcd577625c257f72f1cc27da94d78d0b20
[ "MIT" ]
null
null
null
plugins/youtube_dl_button.py
Naysabots/Youtube-Downloader-Bot
643312dcd577625c257f72f1cc27da94d78d0b20
[ "MIT" ]
null
null
null
plugins/youtube_dl_button.py
Naysabots/Youtube-Downloader-Bot
643312dcd577625c257f72f1cc27da94d78d0b20
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (C) Shrimadhav U K import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) logging.getLogger("pyrogram").setLevel(logging.WARNING) import asyncio imp...
41.610959
257
0.546023
946f477990f0af63c951062bf0630ea0a826ecfb
9,918
py
Python
src/yafowil/widget/dynatree/tests.py
conestack/yafowil.widget.dynatree
d9242c109030dd812b79208d221479c571806d20
[ "BSD-2-Clause" ]
1
2019-07-09T12:56:45.000Z
2019-07-09T12:56:45.000Z
src/yafowil/widget/dynatree/tests.py
conestack/yafowil.widget.dynatree
d9242c109030dd812b79208d221479c571806d20
[ "BSD-2-Clause" ]
1
2015-01-28T16:11:22.000Z
2015-01-28T16:11:22.000Z
src/yafowil/widget/dynatree/tests.py
conestack/yafowil.widget.dynatree
d9242c109030dd812b79208d221479c571806d20
[ "BSD-2-Clause" ]
1
2019-03-11T09:22:42.000Z
2019-03-11T09:22:42.000Z
from node.utils import UNSET from odict import odict from yafowil.base import factory from yafowil.compat import IS_PY2 from yafowil.tests import fxml from yafowil.tests import YafowilTestCase from yafowil.utils import tag from yafowil.widget.dynatree.widget import build_inline_dynatree import unittest import yafowil.l...
34.557491
205
0.549708
4cae13c72a34f58c6725bd87fbe0c1a4b2118a68
418
py
Python
deproxy/request.py
malconis/deproxy
5e5366ef16ee77419ade1ca47547a75ba9125ec5
[ "MIT" ]
1
2015-10-12T07:56:41.000Z
2015-10-12T07:56:41.000Z
deproxy/request.py
malconis/deproxy
5e5366ef16ee77419ade1ca47547a75ba9125ec5
[ "MIT" ]
null
null
null
deproxy/request.py
malconis/deproxy
5e5366ef16ee77419ade1ca47547a75ba9125ec5
[ "MIT" ]
null
null
null
class Request: """A simple HTTP Request, with method, path, headers, and body.""" def __init__(self, method, path, headers, body): self.method = method self.path = path self.headers = dict(headers) self.body = body def __repr__(self): return ('Request(method=%r, pa...
29.857143
70
0.588517
26d4f2c9a3517f6cfcc0bec7155d57519f59fa8a
3,054
py
Python
tests/demoproject/demo/sample/views.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
tests/demoproject/demo/sample/views.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
tests/demoproject/demo/sample/views.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
from rest_framework import status from rest_framework.generics import CreateAPIView, UpdateAPIView from rest_framework.response import Response from rest_framework.serializers import ValidationError from etools_validator.mixins import ValidatorViewMixin from .models import DemoModel from .serializers import DemoChild...
29.085714
94
0.646365
f168d843e436217f942a6654299c95766ebeed7c
56,256
py
Python
nova/api/openstack/compute/servers.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/servers.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/servers.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
45.258246
79
0.629231
7000d909c236c7060d4f3ed6ef3d285f670f879e
9,264
py
Python
lpot/pruning.py
deb-intel/lp-opt-tool
881bde402db387b04c2f33cc96fb817f47c4d623
[ "Apache-2.0" ]
null
null
null
lpot/pruning.py
deb-intel/lp-opt-tool
881bde402db387b04c2f33cc96fb817f47c4d623
[ "Apache-2.0" ]
null
null
null
lpot/pruning.py
deb-intel/lp-opt-tool
881bde402db387b04c2f33cc96fb817f47c4d623
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Intel Corporation # # 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 # # Unl...
52.044944
99
0.542422
e5dc59c10802fd39cb3ac44833caf942a5c33b5a
1,840
py
Python
happiness/happiness/bokeh_utils.py
joshua-barber/bokeh_happiness
fce19a1002ebdace0f386a0e86e03bd14475bb9a
[ "MIT" ]
null
null
null
happiness/happiness/bokeh_utils.py
joshua-barber/bokeh_happiness
fce19a1002ebdace0f386a0e86e03bd14475bb9a
[ "MIT" ]
null
null
null
happiness/happiness/bokeh_utils.py
joshua-barber/bokeh_happiness
fce19a1002ebdace0f386a0e86e03bd14475bb9a
[ "MIT" ]
null
null
null
from contextlib import closing from bokeh.client import push_session, pull_session from bokeh.document import Document from bokeh.embed import autoload_server from .viz.individuals import update_individuals_data from .viz.team import update_team_data from .viz.teams import update_teams_data def get_bokeh_script(use...
40
82
0.665217
53138eb16e2c6bdeb13527f66a1187cdc0251d55
19,529
py
Python
pydl/tests/test_layers.py
nash911/PyDL
b0b6f599184c0046f503b9ee1703dc3dfe9a89f2
[ "MIT" ]
null
null
null
pydl/tests/test_layers.py
nash911/PyDL
b0b6f599184c0046f503b9ee1703dc3dfe9a89f2
[ "MIT" ]
null
null
null
pydl/tests/test_layers.py
nash911/PyDL
b0b6f599184c0046f503b9ee1703dc3dfe9a89f2
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------ # MIT License # # Copyright (c) [2021] [Avinash Ranganath] # # This code is part of the library PyDL <https://github.com/nash911/PyDL> # This code is licensed under MIT license (see LICENSE.txt for details) # ------------------------------------...
45.416279
100
0.503252
68982d195965d35d03a279ef1b45ceae82a47964
6,039
py
Python
automol/pot/_fit.py
lpratalimaffei/autochem
fd51f6899de17a014b4c1c7e18cefbc3df283b5e
[ "Apache-2.0" ]
2
2021-03-01T14:23:25.000Z
2021-11-28T19:17:08.000Z
automol/pot/_fit.py
lpratalimaffei/autochem
fd51f6899de17a014b4c1c7e18cefbc3df283b5e
[ "Apache-2.0" ]
1
2021-02-12T21:02:22.000Z
2021-02-12T21:35:33.000Z
automol/pot/_fit.py
lpratalimaffei/autochem
fd51f6899de17a014b4c1c7e18cefbc3df283b5e
[ "Apache-2.0" ]
6
2020-12-12T18:41:13.000Z
2021-11-11T20:12:14.000Z
""" Handle fits to potentials """ import numpy from scipy.interpolate import interp1d def fit_1d_potential(pot_dct, min_thresh=-0.0001, max_thresh=50.0): """ Get a physical hindered rotor potential via a series of spline fits """ pot = list(pot_dct.values()) # Initialize a variable for the size o...
34.3125
79
0.545951
05cdb9409b9b7f779ffec46cf6c83cadf3cdc40d
19,712
py
Python
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
heaths/azure-cli
baae1d17ffc4f3abfeccea17116bfd61de5770f1
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
heaths/azure-cli
baae1d17ffc4f3abfeccea17116bfd61de5770f1
[ "MIT" ]
1
2021-06-02T00:40:34.000Z
2021-06-02T00:40:34.000Z
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
heaths/azure-cli
baae1d17ffc4f3abfeccea17116bfd61de5770f1
[ "MIT" ]
1
2020-07-30T13:35:39.000Z
2020-07-30T13:35:39.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
59.017964
164
0.674006
ae5041504f1564f14d2f8772091b64cf5ef5e8fb
1,844
py
Python
parsers/xilinx/virtex_six.py
bradysalz/fpga-pin-trends
19c489a1f14233f4f739a2b8a4a64bfca69c5807
[ "MIT" ]
null
null
null
parsers/xilinx/virtex_six.py
bradysalz/fpga-pin-trends
19c489a1f14233f4f739a2b8a4a64bfca69c5807
[ "MIT" ]
null
null
null
parsers/xilinx/virtex_six.py
bradysalz/fpga-pin-trends
19c489a1f14233f4f739a2b8a4a64bfca69c5807
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import csv from pathlib import Path from typing import Dict, List import toml from db.pin import Pin def _pin_type_cleanup(ptype: str) -> str: if 'VCC' in ptype: return 'VCC' if 'GND' in ptype: return 'GND' if 'IO' in ptype: return 'IO' return ptype d...
22.765432
71
0.527657
aaf35ee37c5ccca597620f9f4613cdba71f8d645
110,409
py
Python
django/db/models/sql/query.py
zeth/django
547656c85027eda85a24edcab907022ce313f772
[ "BSD-3-Clause", "0BSD" ]
null
null
null
django/db/models/sql/query.py
zeth/django
547656c85027eda85a24edcab907022ce313f772
[ "BSD-3-Clause", "0BSD" ]
null
null
null
django/db/models/sql/query.py
zeth/django
547656c85027eda85a24edcab907022ce313f772
[ "BSD-3-Clause", "0BSD" ]
null
null
null
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
44.537717
119
0.608474
4de14b1035336d91a0ebd3534175563333337507
3,459
py
Python
main/settings.py
RomeoEncinares/Dog-Classifier
1d1c5c78a2f7d2ac1fd3d20e0413c9a0ac9b0053
[ "MIT" ]
null
null
null
main/settings.py
RomeoEncinares/Dog-Classifier
1d1c5c78a2f7d2ac1fd3d20e0413c9a0ac9b0053
[ "MIT" ]
null
null
null
main/settings.py
RomeoEncinares/Dog-Classifier
1d1c5c78a2f7d2ac1fd3d20e0413c9a0ac9b0053
[ "MIT" ]
null
null
null
""" Django settings for main project. Generated by 'django-admin startproject' using Django 4.0.2. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ from pathlib im...
26.007519
91
0.700781
072a48225027dede7d3a427fdcb16b2f4aed8702
3,029
py
Python
tweetrssfeed/tweetrssfeed.py
gam-phon/tweetrssfeed
1bb21cf9bfe59af424328a221212a26814436ba4
[ "BSD-3-Clause" ]
null
null
null
tweetrssfeed/tweetrssfeed.py
gam-phon/tweetrssfeed
1bb21cf9bfe59af424328a221212a26814436ba4
[ "BSD-3-Clause" ]
null
null
null
tweetrssfeed/tweetrssfeed.py
gam-phon/tweetrssfeed
1bb21cf9bfe59af424328a221212a26814436ba4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sqlite3 import tweepy import feedparser import bitly_api BITLY_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN" TWITTER_CONSUMER_KEY = "TWITTER_CONSUMER_KEY" TWITTER_CONSUMER_SECRET = "TWITTER_CONSUMER_SECRET" TWITTER_ACCESS_TOKEN = "TWITTER_ACCESS_TOKEN" TWITTER_ACCE...
32.923913
100
0.680753
bddee339ecc3e19e4bc8ad7186665b32614a5c1e
5,265
py
Python
benzinga/param_check.py
Benzinga/benzinga-python-client
62fb44e90dc3e3c8224e5dc1edf3e3426a8d0654
[ "MIT" ]
5
2020-01-10T03:39:00.000Z
2021-11-15T09:55:05.000Z
benzinga/param_check.py
infovisualnetwork/benzinga-python-client
62fb44e90dc3e3c8224e5dc1edf3e3426a8d0654
[ "MIT" ]
1
2019-06-13T14:13:43.000Z
2019-06-13T14:30:08.000Z
benzinga/param_check.py
infovisualnetwork/benzinga-python-client
62fb44e90dc3e3c8224e5dc1edf3e3426a8d0654
[ "MIT" ]
11
2019-06-11T19:24:51.000Z
2022-01-16T23:05:47.000Z
from .benzinga_errors import (TokenAuthenticationError, RequestAPIEndpointError, IncorrectParameterEntry, URLIncorrectlyFormattedError,MissingParameter) class Param_Check: def __init__(self): self.stri = "str" self.inte = "int" self.nonetype = "NoneType" ...
30.610465
107
0.524976
b5d063b39b71768d23c50ec91eee6a60c28ec353
2,720
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/django_comment_client/tests/test_models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/django_comment_client/tests/test_models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/django_comment_client/tests/test_models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Tests for the django comment client integration models """ from django.test.testcases import TestCase from opaque_keys.edx.keys import CourseKey import openedx.core.djangoapps.django_comment_common.models as models from xmodule.modulestore.tests.django_utils import TEST_DATA_MIXED_MODULESTORE, ModuleStoreTestCas...
41.212121
99
0.669853
48d6cd40388ee0d51def28d8391bb071fc1b9be1
5,107
py
Python
Example/callbacks.py
chrhansk/BayesianRNN
594e59737651db2eed9ab02869b4df417d631143
[ "MIT" ]
null
null
null
Example/callbacks.py
chrhansk/BayesianRNN
594e59737651db2eed9ab02869b4df417d631143
[ "MIT" ]
null
null
null
Example/callbacks.py
chrhansk/BayesianRNN
594e59737651db2eed9ab02869b4df417d631143
[ "MIT" ]
1
2020-07-31T08:28:00.000Z
2020-07-31T08:28:00.000Z
import numpy as np from keras.callbacks import Callback from keras import backend as K from keras import models class ModelTest(Callback): ''' Test model at the end of every X epochs. The model is tested using both MC dropout and the dropout approximation. Output metrics for various losses are supported. ...
50.068627
133
0.628941
f2980776389746a98319b28669546605a63c76e7
3,343
py
Python
torchbench/semantic_segmentation/camvid.py
xvdp/torchbench
cf41be6be15b97ee8d82567d815bf8dafe5a0206
[ "Apache-2.0" ]
null
null
null
torchbench/semantic_segmentation/camvid.py
xvdp/torchbench
cf41be6be15b97ee8d82567d815bf8dafe5a0206
[ "Apache-2.0" ]
null
null
null
torchbench/semantic_segmentation/camvid.py
xvdp/torchbench
cf41be6be15b97ee8d82567d815bf8dafe5a0206
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import DataLoader from sotabenchapi.core import BenchmarkResult from torchbench.datasets import CamVid from torchbench.utils import default_data_to_device, send_model_to_device from torchbench.semantic_segmentation.transforms import ( Normalize, ToTensor, Compose, ) from torchbench.s...
29.584071
74
0.63117
e981ab7d535dc27a6a08faad856499422a942877
1,068
py
Python
model-optimizer/extensions/front/tf/bucketize_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/tf/bucketize_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/front/tf/bucketize_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel Corporation 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 i...
33.375
120
0.749064
65f23c8bcca0213c673a670e1ff6677c65044d97
40,664
py
Python
test/functional/feature_segwit.py
bugls/worldcoin
214767f3f2aaea7312bccc6593ad4dce10447576
[ "MIT" ]
3
2021-11-09T00:54:55.000Z
2022-01-14T04:28:47.000Z
test/functional/feature_segwit.py
bugls/worldcoin
214767f3f2aaea7312bccc6593ad4dce10447576
[ "MIT" ]
1
2021-10-31T18:00:16.000Z
2021-10-31T18:00:16.000Z
test/functional/feature_segwit.py
bugls/worldcoin
214767f3f2aaea7312bccc6593ad4dce10447576
[ "MIT" ]
2
2021-03-29T14:53:31.000Z
2022-02-06T22:17:04.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Worldcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the SegWit changeover logic.""" from decimal import Decimal from test_framework.address import...
62.272588
224
0.688299
6ac3e01264c7cd59a4d56a205c71b7c01aeb2680
7,357
py
Python
src/habitat_sim2real/sims/ros/rosrobot_sim.py
WGW101/habitat_sim2real
04be5215af53122f166d6dfdfb131af3619d10a0
[ "MIT" ]
null
null
null
src/habitat_sim2real/sims/ros/rosrobot_sim.py
WGW101/habitat_sim2real
04be5215af53122f166d6dfdfb131af3619d10a0
[ "MIT" ]
null
null
null
src/habitat_sim2real/sims/ros/rosrobot_sim.py
WGW101/habitat_sim2real
04be5215af53122f166d6dfdfb131af3619d10a0
[ "MIT" ]
null
null
null
import numpy as np import cv2 import quaternion as quat import habitat from habitat.core.simulator import Simulator, RGBSensor, DepthSensor, SensorSuite from gym import spaces from .intf_node import HabitatInterfaceROSNode class ROSDepthSensor(DepthSensor): def _get_observation_space(self, *args, **kwargs): ...
38.317708
95
0.651896
7cece274eced4635192b66f3fec43f31dd269b95
777
py
Python
test/test_sphering.py
exepulveda/pymgt
c49a1de3d45b82ce8dd659693e3c41fc4c967b24
[ "MIT" ]
1
2021-07-10T00:58:30.000Z
2021-07-10T00:58:30.000Z
test/test_sphering.py
exepulveda/pymgt
c49a1de3d45b82ce8dd659693e3c41fc4c967b24
[ "MIT" ]
null
null
null
test/test_sphering.py
exepulveda/pymgt
c49a1de3d45b82ce8dd659693e3c41fc4c967b24
[ "MIT" ]
null
null
null
import numpy as np from pymgt import * from test_utils import * def test_simple(): sample_size = 10000 ndim = 5 t = SpheringTransform(name='sphering') x = np.random.uniform(10.0, 20.0, size=(sample_size, ndim)) y = t.fit_transform(x) assert_reversibility(t, x) def test_states(): sample...
21.583333
65
0.666667
9421dbcce2d7beabaf59b4325be569e8e680769c
1,695
py
Python
train.py
sotirioszikas/Image-Classifier-Udacity-2nd-Project
74ef6490b642770ab37cf7d534c0b83a5f7f1606
[ "MIT" ]
null
null
null
train.py
sotirioszikas/Image-Classifier-Udacity-2nd-Project
74ef6490b642770ab37cf7d534c0b83a5f7f1606
[ "MIT" ]
null
null
null
train.py
sotirioszikas/Image-Classifier-Udacity-2nd-Project
74ef6490b642770ab37cf7d534c0b83a5f7f1606
[ "MIT" ]
null
null
null
#Imports import torch from torch import nn, optim, tensor import torch.nn.functional as F from torchvision import datasets, transforms, models import matplotlib.pyplot as plt import json import numpy as np from collections import OrderedDict from PIL import Image from torch.optim import lr_scheduler import os import c...
36.06383
126
0.733333
422586408d6dbf2753cd617d82bb6a0852f5793a
14,141
py
Python
b2sdk/account_info/sqlite_account_info.py
phistrom/b2-sdk-python
b103939cc19020a5f7cae7a6e26f1073b5ba2232
[ "MIT" ]
null
null
null
b2sdk/account_info/sqlite_account_info.py
phistrom/b2-sdk-python
b103939cc19020a5f7cae7a6e26f1073b5ba2232
[ "MIT" ]
null
null
null
b2sdk/account_info/sqlite_account_info.py
phistrom/b2-sdk-python
b103939cc19020a5f7cae7a6e26f1073b5ba2232
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/account_info/sqlite_account_info.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### import json...
35.8
186
0.575914
9749c48542e74e0055b2f949e6be734c5219c998
4,085
py
Python
ceilometer/ipmi/platform/ipmi_sensor.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
2
2015-09-07T09:15:26.000Z
2015-09-30T02:13:23.000Z
ceilometer/ipmi/platform/ipmi_sensor.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
null
null
null
ceilometer/ipmi/platform/ipmi_sensor.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
1
2019-09-16T02:11:41.000Z
2019-09-16T02:11:41.000Z
# Copyright 2014 Intel Corporation. # # Author: Zhai Edwin <edwin.zhai@intel.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
35.215517
78
0.651652
af7b853f5f85a13741b10f092862c1ce35d1a9e0
38,460
py
Python
Server/integrations/saml/SamlExternalAuthenticator.py
syntrydy/oxAuth
19c9a6cebd1377e3c347347e76b8070491d4944f
[ "MIT" ]
null
null
null
Server/integrations/saml/SamlExternalAuthenticator.py
syntrydy/oxAuth
19c9a6cebd1377e3c347347e76b8070491d4944f
[ "MIT" ]
null
null
null
Server/integrations/saml/SamlExternalAuthenticator.py
syntrydy/oxAuth
19c9a6cebd1377e3c347347e76b8070491d4944f
[ "MIT" ]
null
null
null
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2016, Gluu # # Author: Yuriy Movchan # import java import json from java.lang import StringBuilder from javax.faces.context import FacesContext from java.util import Arrays, ArrayList, HashMap, Ide...
49.056122
171
0.672569
7c4cd509b8fc250851efee8685b875586928364a
345
py
Python
tests/cli_edge/test_cli_edge.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
72
2018-10-25T18:32:42.000Z
2022-02-02T03:03:09.000Z
tests/cli_edge/test_cli_edge.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
41
2018-12-13T22:30:35.000Z
2021-11-04T09:08:49.000Z
tests/cli_edge/test_cli_edge.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
10
2019-04-05T10:51:11.000Z
2021-12-06T15:18:56.000Z
import os from tests.cli.Cmd import Cmd ROOT = __file__.split("{0}tests".format(os.sep))[0] EXE = ROOT + "{0}test_junkie{0}cli{0}cli.py".format(os.sep) TESTS = ROOT + "{0}tests{0}cli_edge".format(os.sep) def test_interrupt(): Cmd.run(['python', EXE, 'config', 'restore', '--all']) print(Cmd.run(['python', EX...
26.538462
59
0.634783
8ce333514ef73ce6c1f2fc8ccd3a6cfe0cd34441
11,861
py
Python
vive-dump/vivedump.py
unhcfreg/VR4Sec
2547afcd064b6f765f4003b90da2cb618d12bc62
[ "MIT" ]
null
null
null
vive-dump/vivedump.py
unhcfreg/VR4Sec
2547afcd064b6f765f4003b90da2cb618d12bc62
[ "MIT" ]
null
null
null
vive-dump/vivedump.py
unhcfreg/VR4Sec
2547afcd064b6f765f4003b90da2cb618d12bc62
[ "MIT" ]
1
2020-04-08T22:09:06.000Z
2020-04-08T22:09:06.000Z
# Vivedump # Team Front row # Dumps VR tracking information and whatever else we can find import json import struct import visualizer as vis import os import volatility.plugins.common as common import volatility.plugins.taskmods as taskmods import volatility.utils as utils import volatility.win32 as win32 import vo...
38.26129
122
0.573729
a530e77e2f290066bac111e11b742816060808a6
2,021
py
Python
Python/Examples/Macros/JointsPlayback.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/JointsPlayback.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/JointsPlayback.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
# This macro will move the robot along a list of joints in a CSV file # Tip: Use the macro MonitorJoints.py to record a CSV file that can be loaded by this script TIME_MATCH = False MEASURE_COLLISIONS = False from robodk.robolink import * # API to communicate with RoboDK from robodk.robomath import * # basic matrix...
33.131148
177
0.711529
6c23855d1ef8eaae55e089847be6f418a2eb327b
95
py
Python
pet_booking/appointment/apps.py
bilbeyt/pet_booking
be362790be6faecd5cebb38256327b9acf399152
[ "MIT" ]
null
null
null
pet_booking/appointment/apps.py
bilbeyt/pet_booking
be362790be6faecd5cebb38256327b9acf399152
[ "MIT" ]
null
null
null
pet_booking/appointment/apps.py
bilbeyt/pet_booking
be362790be6faecd5cebb38256327b9acf399152
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AppoinmentConfig(AppConfig): name = 'appoinment'
15.833333
34
0.768421
031817ba5116a9624713c415f7851d021da841ba
998
py
Python
CreateHeader.py
earney/WallaceSubmit
5a7ca3f03b4fb9a0d1e995489dd1259a386447cd
[ "MIT" ]
null
null
null
CreateHeader.py
earney/WallaceSubmit
5a7ca3f03b4fb9a0d1e995489dd1259a386447cd
[ "MIT" ]
null
null
null
CreateHeader.py
earney/WallaceSubmit
5a7ca3f03b4fb9a0d1e995489dd1259a386447cd
[ "MIT" ]
null
null
null
import datetime class CreateHeader: def __init__(self, comment=u'//'): self._comment=comment self._name='' self._submitDate='' self._assignment='' def setName(self, name): self._name=name def setSubmitDate(self, date=None): self._submitDate=date if date is None: ...
24.95
67
0.608216
7f6b742d8ac0babee6ace46b8daa47f1ac92651d
460
py
Python
microservices/frontend/main.py
dlorenc/skaffold-demo
839dc3addef5700a42641afc1755c00ca3430543
[ "Apache-2.0" ]
null
null
null
microservices/frontend/main.py
dlorenc/skaffold-demo
839dc3addef5700a42641afc1755c00ca3430543
[ "Apache-2.0" ]
null
null
null
microservices/frontend/main.py
dlorenc/skaffold-demo
839dc3addef5700a42641afc1755c00ca3430543
[ "Apache-2.0" ]
null
null
null
import flask import requests application = flask.Flask(__name__) @application.route('/encrypt') def encrypt(): msg = flask.request.args.get("message") response = requests.get(url="http://backend:8000", params={"message": msg}) return flask.render_template('encrypted.html', result=response.text) @applica...
24.210526
79
0.706522
63c81ea8cad7ce45b3fd79752d7a4315f063f7a8
1,121
py
Python
apps/tracker/models.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/tracker/models.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/tracker/models.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. def seconds_to_time(seconds: int) -> str: sign = "" if seconds >= 0 else "-" mag = abs(seconds) m, s = divmod(mag, 60) h, m = divmod(m, 60) return "%s%d:%02d:%02d" % (sign, h, m, s) class User(models.Model): username = models.CharField...
26.069767
73
0.665477
83e9a63bee8f443d1f7d2e578592c5e71db14905
2,193
py
Python
src/oci/data_safe/models/discovery_job_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/discovery_job_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/discovery_job_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.887324
245
0.664387
4d8287db44e6a29deea4f5c5131658055b3ae21d
1,359
py
Python
utils/data_generator/sessions_users_generator.py
aldoorozco/adaptive_data_pipelines
afdced109d5e76c95d68fa6935c2864ac926986f
[ "MIT" ]
1
2021-04-12T06:51:21.000Z
2021-04-12T06:51:21.000Z
utils/data_generator/sessions_users_generator.py
aldoorozco/adaptive_data_pipelines
afdced109d5e76c95d68fa6935c2864ac926986f
[ "MIT" ]
null
null
null
utils/data_generator/sessions_users_generator.py
aldoorozco/adaptive_data_pipelines
afdced109d5e76c95d68fa6935c2864ac926986f
[ "MIT" ]
null
null
null
import json from utils import * from collections import Counter def get_zipped_data(records, users): session_ids = (n for n in range(records)) user_ids = get_normal_dist(users, users/2, records) #cntr = Counter(sorted(user_ids)) #srted = {k: v for k, v in sorted(cntr.items(), key=lambda item: item[1])...
32.357143
93
0.642384
5dece45b351d0b531e8907dd524d69228a3f6a9d
17,151
py
Python
swipc-gen/hashes_gen.py
inspier/switch-reversing
577f363bfdef05c75708c9af9d1e690197fd9233
[ "MIT" ]
61
2019-02-28T11:38:58.000Z
2021-11-06T23:57:55.000Z
swipc-gen/hashes_gen.py
inspier/switch-reversing
577f363bfdef05c75708c9af9d1e690197fd9233
[ "MIT" ]
1
2021-01-04T23:26:09.000Z
2021-01-04T23:26:09.000Z
swipc-gen/hashes_gen.py
inspier/switch-reversing
577f363bfdef05c75708c9af9d1e690197fd9233
[ "MIT" ]
6
2019-03-13T17:03:10.000Z
2022-01-15T02:03:31.000Z
all_hashes = {'9dbc3be4561e89d1': ['nn::ncm::IContentManager'], 'ef572d053fbe0dd0': ['nn::spl::detail::IFsInterface'], '2171a2a3f43a01e2': ['nn::account::nas::IOAuthProcedureForUserRegistration'], '6072a19a5a95b12b': ['nn::bcat::detail::ipc::IDeliveryCacheProgressService'], '6a677c7d9d17ff0a': ['nn::pl::detail::IShared...
8,575.5
17,150
0.735292
f12f409f0d032166f0e0e1d05e4c99bf29bbd17e
2,022
py
Python
prsa/__init__.py
ridwanmsharif/rsa
0feb3ede639246314b5b8d5c4c2092a96c1918d5
[ "MIT" ]
24
2017-01-01T16:32:46.000Z
2019-03-14T17:42:57.000Z
prsa/__init__.py
ridwanmsharif/rsa
0feb3ede639246314b5b8d5c4c2092a96c1918d5
[ "MIT" ]
null
null
null
prsa/__init__.py
ridwanmsharif/rsa
0feb3ede639246314b5b8d5c4c2092a96c1918d5
[ "MIT" ]
3
2017-01-02T08:30:31.000Z
2021-04-22T17:41:34.000Z
#!/usr/bin/env python from rsa import * from primesieve import * import argparse parser = argparse.ArgumentParser(prog='PRSA', description='''Implementation of the algorithms defined by the RSA scheme in Python3. Computes ciphertext from message and Computes message from ciphertext granted access to secret decryptio...
42.125
86
0.756677
2326cf671541dde7b154434dc10621cdb070f847
1,998
py
Python
pages/goods_page.py
pavel-wh/autotesting_course
7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb
[ "MIT" ]
1
2019-11-17T02:29:25.000Z
2019-11-17T02:29:25.000Z
pages/goods_page.py
pavel-wh/autotesting_course
7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb
[ "MIT" ]
1
2021-06-01T23:53:26.000Z
2021-06-01T23:53:26.000Z
pages/goods_page.py
pavel-wh/autotesting_course
7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb
[ "MIT" ]
null
null
null
import time from .base_page import BasePage from selenium.webdriver.common.by import By from .locators import GoodsPageLocators from selenium.common.exceptions import NoAlertPresentException import math class GoodsPage(BasePage): def solve_quiz_and_get_code(self): """метод для подсчёта результата математи...
39.176471
84
0.697197
079bdfd0a05d20676b2a4db7d5d3d7906726edf2
69,612
py
Python
salt/loader.py
TheLocehiliosan/salt
57674c3a734df42393b1bb552701f3aebb9d14ea
[ "Apache-2.0" ]
null
null
null
salt/loader.py
TheLocehiliosan/salt
57674c3a734df42393b1bb552701f3aebb9d14ea
[ "Apache-2.0" ]
null
null
null
salt/loader.py
TheLocehiliosan/salt
57674c3a734df42393b1bb552701f3aebb9d14ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The Salt loader is the core to Salt's plugin system, the loader scans directories for python loadable code and organizes the code into the plugin interfaces used by Salt. ''' # Import python libs from __future__ import absolute_import, print_function, unicode_literals import os import re im...
35.552605
171
0.554229
2e4bd8a59468490cef451d9f3d07008815e8df9b
1,711
py
Python
test/gen_interop_data.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
32
2018-01-09T05:07:18.000Z
2022-03-13T15:50:40.000Z
test/gen_interop_data.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
14
2017-10-27T21:52:22.000Z
2021-08-06T15:01:46.000Z
test/gen_interop_data.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
12
2017-10-24T17:14:58.000Z
2021-08-03T10:22:58.000Z
#!/usr/bin/env python # Modifications copyright (C) 2017 Pluralsight LLC # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # t...
34.22
85
0.70602
5bdcd7d41c45539c677d23099e432bd3a0ea9274
1,394
py
Python
setup.py
Degelzhao/delorean
bb4611a2c3bd502ea4ec1f1e2b697e21fbab6dc9
[ "MIT" ]
1
2019-02-18T13:28:07.000Z
2019-02-18T13:28:07.000Z
setup.py
Degelzhao/delorean
bb4611a2c3bd502ea4ec1f1e2b697e21fbab6dc9
[ "MIT" ]
null
null
null
setup.py
Degelzhao/delorean
bb4611a2c3bd502ea4ec1f1e2b697e21fbab6dc9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from version import __version__ dependencies = [ 'babel>=2.1.1', 'humanize>=0.5.1', 'python-dateutil>=2.4.2', 'pytz>=2015.7', 'tzlocal>=1.2'] setup( na...
29.041667
75
0.606887
552c3ebc8ca038b75c5fa10c22f1722865558121
2,364
py
Python
preprocesador/unit_tests/test_solucionador_de_correferencias.py
XrossFox/maquina-de-aspectos
e124167154cac2355278f309e2b3153e723a8c47
[ "MIT" ]
null
null
null
preprocesador/unit_tests/test_solucionador_de_correferencias.py
XrossFox/maquina-de-aspectos
e124167154cac2355278f309e2b3153e723a8c47
[ "MIT" ]
null
null
null
preprocesador/unit_tests/test_solucionador_de_correferencias.py
XrossFox/maquina-de-aspectos
e124167154cac2355278f309e2b3153e723a8c47
[ "MIT" ]
1
2019-01-22T21:21:46.000Z
2019-01-22T21:21:46.000Z
import os import sys sys.path.append('../') import unittest import solucionador_de_correferencias as corref class TestCorreferencias(unittest.TestCase): def setUp(self): print(os.getcwd()) self.C = corref.SolucionadorDeCorreferencias(os.getcwd()+"\\..\\corenlp\\CoreNLP") def test_res...
38.754098
151
0.594755
1d4a0d86426973c4d028fe44dfba3432ca25a194
5,088
py
Python
var/spack/repos/builtin/packages/picard/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-03-09T14:32:26.000Z
2020-03-09T14:32:26.000Z
var/spack/repos/builtin/packages/picard/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2021-07-26T12:12:00.000Z
2022-03-01T12:16:03.000Z
var/spack/repos/builtin/packages/picard/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import glob import os.path import re from spack import * class Picard(Package): """Picard is a set of command line ...
59.858824
110
0.748035
268df28c032c889c887d5f552ff17ff7c7e7f0e4
3,253
py
Python
src/document.py
Superar/SemOpinionS
9b0b0f9050bb1f7d66b91d5804f89b2eea9fbc20
[ "MIT" ]
2
2021-09-04T02:51:34.000Z
2022-03-16T17:53:52.000Z
src/document.py
Superar/SemOpinionS
9b0b0f9050bb1f7d66b91d5804f89b2eea9fbc20
[ "MIT" ]
null
null
null
src/document.py
Superar/SemOpinionS
9b0b0f9050bb1f7d66b91d5804f89b2eea9fbc20
[ "MIT" ]
null
null
null
from collections import namedtuple from pathlib import Path import penman import networkx as nx from .amr import AMR class Document(object): """ Class that reads a file with AMR graphs in penman notation. Attributes: corpus: list of tuples (id, sentence, AMR) """ doc_item = namedtuple('Do...
34.606383
91
0.576698
7470c44181f0f7723520bbd004ea91a27f6ec370
3,741
py
Python
evaluate.py
RiccardoBiondi/FemurSegmentation
9f1253666cce22541354bb448acc6972eb76c142
[ "MIT" ]
null
null
null
evaluate.py
RiccardoBiondi/FemurSegmentation
9f1253666cce22541354bb448acc6972eb76c142
[ "MIT" ]
null
null
null
evaluate.py
RiccardoBiondi/FemurSegmentation
9f1253666cce22541354bb448acc6972eb76c142
[ "MIT" ]
null
null
null
#!/bin/env python import os import itk import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt from glob import glob from FemurSegmentation.IOManager import ImageReader from FemurSegmentation.IOManager import VolumeWriter from FemurSegmentation.filters import execute_pipeline from Femu...
30.169355
96
0.623897
2f372fcac9a0efe7d78ff3babda1beb86f5a2811
1,146
py
Python
ppo_train.py
deval-maker/gym-multiagent-warehouse-sort
0154da11e0f1ee4da6c5d21a950a6231d7a7ea68
[ "Apache-2.0" ]
null
null
null
ppo_train.py
deval-maker/gym-multiagent-warehouse-sort
0154da11e0f1ee4da6c5d21a950a6231d7a7ea68
[ "Apache-2.0" ]
null
null
null
ppo_train.py
deval-maker/gym-multiagent-warehouse-sort
0154da11e0f1ee4da6c5d21a950a6231d7a7ea68
[ "Apache-2.0" ]
null
null
null
import gym from gym.envs.registration import register from stable_baselines3 import PPO from stable_baselines3.common.env_util import make_vec_env from stable_baselines3.ppo.policies import MlpPolicy from datetime import datetime now = datetime.now() current_time = now.strftime("%d_%m_%Y_%H_%M_%S") filename = "ppo_w...
27.285714
75
0.711169
2579e2e153d7ca351524c650d14601707ee99cbb
815
py
Python
util/alembic/versions/a051167419fa_add_admin_to_user_name_to_repogroup.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
3
2019-10-31T19:07:48.000Z
2019-11-20T23:14:15.000Z
util/alembic/versions/a051167419fa_add_admin_to_user_name_to_repogroup.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
3
2019-12-03T21:21:17.000Z
2019-12-05T15:26:22.000Z
util/alembic/versions/a051167419fa_add_admin_to_user_name_to_repogroup.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
4
2019-11-05T20:22:12.000Z
2019-12-12T18:08:30.000Z
"""Add admin to User, name to RepoGroup Revision ID: a051167419fa Revises: 2eaa930b1f5a Create Date: 2019-02-17 13:09:42.138936 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a051167419fa' down_revision = '2eaa930b1f5a' branch_labels = None depends_on = None ...
26.290323
88
0.695706
32375e5c25a3cc8432f12ea88795242af9bf1298
12,383
py
Python
gamelib/tests/test_walkthrough.py
CTPUG/suspended_sentence
85956c7250509bf93e51f91cda906e93db4e72a4
[ "MIT" ]
2
2020-01-02T10:11:49.000Z
2021-07-11T03:38:41.000Z
gamelib/tests/test_walkthrough.py
CTPUG/suspended_sentence
85956c7250509bf93e51f91cda906e93db4e72a4
[ "MIT" ]
null
null
null
gamelib/tests/test_walkthrough.py
CTPUG/suspended_sentence
85956c7250509bf93e51f91cda906e93db4e72a4
[ "MIT" ]
1
2020-08-29T17:48:12.000Z
2020-08-29T17:48:12.000Z
from pyntnclick.tests.game_logic_utils import GameLogicTestCase import gamelib.main class TestWalkthrough(GameLogicTestCase): GAME_DESCRIPTION_CLASS = gamelib.main.SuspendedSentence CURRENT_SCENE = 'cryo' def move_to(self, target): self.interact_thing(self.state.get_current_scene().name + '.doo...
40.204545
79
0.655899
a5bbcd542f844bba840c526e6e292dd108ab5727
132
py
Python
minjector/injection/inject_lazy.py
MichaelSchneeberger/minjector
64655483e53f49696e6ef6a3b45ca7bca8ab2dfb
[ "MIT" ]
null
null
null
minjector/injection/inject_lazy.py
MichaelSchneeberger/minjector
64655483e53f49696e6ef6a3b45ca7bca8ab2dfb
[ "MIT" ]
null
null
null
minjector/injection/inject_lazy.py
MichaelSchneeberger/minjector
64655483e53f49696e6ef6a3b45ca7bca8ab2dfb
[ "MIT" ]
null
null
null
from minjector.injection.injectionbase import inject_base def inject_lazy(**bindings): return inject_base(bindings, lazy=True)
26.4
57
0.810606
8eedd5c0b995aa32cf406183bbaf8a55daa92966
1,897
py
Python
src/app/cart.py
fovecsernyes/pizza-ordering-system
581d89a0b6d2f41e082539446d7a83976ed4cfa1
[ "MIT" ]
1
2022-02-28T22:18:19.000Z
2022-02-28T22:18:19.000Z
src/app/cart.py
vattila96/pizza-ordering-system
a8bd5529636fd1515bdf0c38680fd509e58c0af5
[ "MIT" ]
70
2019-09-30T19:14:41.000Z
2019-12-12T21:24:41.000Z
src/app/cart.py
vattila96/pizza-ordering-system
a8bd5529636fd1515bdf0c38680fd509e58c0af5
[ "MIT" ]
2
2019-10-07T14:04:06.000Z
2020-11-16T09:23:08.000Z
from decimal import Decimal from django.conf import settings from .models import Pizza class Cart(object): def __init__(self, request): self.session = request.session cart = self.session.get(settings.CART_SESSION_ID) if not cart: cart = self.session[settings.CART_SESSION_ID] = ...
33.875
101
0.614128
20ed6559023ccb3e077294f1be86d1b37b28af79
10,289
py
Python
fontlink/font_lib/font_lib.py
danpla/fontlink
03184053bf4cb4a0aad4fa8a0c01a50145d4d39c
[ "Zlib" ]
6
2015-12-06T01:41:45.000Z
2020-08-20T04:20:16.000Z
fontlink/font_lib/font_lib.py
danpla/fontlink
03184053bf4cb4a0aad4fa8a0c01a50145d4d39c
[ "Zlib" ]
null
null
null
fontlink/font_lib/font_lib.py
danpla/fontlink
03184053bf4cb4a0aad4fa8a0c01a50145d4d39c
[ "Zlib" ]
2
2020-08-20T04:20:20.000Z
2021-04-14T21:01:38.000Z
from gettext import gettext as _, ngettext import json import os from gi.repository import Gtk, Gdk, Pango from .. import config from ..settings import settings from .. import dialogs from .. import utils from .models import SetStore from .font_list import FontList class FontLib(Gtk.Paned): _FILE = os.path.jo...
33.624183
79
0.621926
591113e221b16249c49958ca6214d3ee0e4d7fde
13,303
py
Python
beakerx/beakerx/plot/chart_models.py
altavir/beakerx
06fb4200d8042fc2a52e3a1ce8be8aa4b72d3743
[ "Apache-2.0" ]
null
null
null
beakerx/beakerx/plot/chart_models.py
altavir/beakerx
06fb4200d8042fc2a52e3a1ce8be8aa4b72d3743
[ "Apache-2.0" ]
null
null
null
beakerx/beakerx/plot/chart_models.py
altavir/beakerx
06fb4200d8042fc2a52e3a1ce8be8aa4b72d3743
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TWO SIGMA OPEN SOURCE, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
40.43465
111
0.642261
a47f0a8e6de64f9cf02d2f23dfeb307733eaedc4
535
py
Python
functions/Osfile.py
DhruvBajaj01/Virtual-Assistant
bba3c4122e1cc93f31b1e0894b6192739d51a6b4
[ "MIT" ]
3
2022-02-21T06:59:46.000Z
2022-03-01T06:38:58.000Z
functions/Osfile.py
DhruvBajaj01/Virtual-Assistant
bba3c4122e1cc93f31b1e0894b6192739d51a6b4
[ "MIT" ]
null
null
null
functions/Osfile.py
DhruvBajaj01/Virtual-Assistant
bba3c4122e1cc93f31b1e0894b6192739d51a6b4
[ "MIT" ]
null
null
null
import os import subprocess as sp paths = { 'notepad': "C:/Program Files (x86)/Notepad++/notepad++.exe", 'discord': "C:\\Users\\Dhruv Bajaj\\AppData\\Local\\Discord\\app-1.0.9003\\Discord.exe" } def open_notepad(): os.startfile(paths['notepad']) def open_discord(): os.startfile(paths['discord']...
17.258065
91
0.663551
26385ec1cadd9ffff7f1cbc157d61a1978008530
2,687
py
Python
app/common/fileutil.py
rahulsh1/flamescope
15a6914d0848503e0153d438597178970ea56a9c
[ "Apache-2.0" ]
null
null
null
app/common/fileutil.py
rahulsh1/flamescope
15a6914d0848503e0153d438597178970ea56a9c
[ "Apache-2.0" ]
null
null
null
app/common/fileutil.py
rahulsh1/flamescope
15a6914d0848503e0153d438597178970ea56a9c
[ "Apache-2.0" ]
null
null
null
# This file is part of FlameScope, a performance analysis tool created by the # Netflix cloud performance team. See: # # https://github.com/Netflix/flamescope # # Copyright 2018 Netflix, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance wi...
29.206522
91
0.649051
113589f123679efad0fbe54ccdbfe3cac9860ccb
2,560
py
Python
vispy/gloo/gl/desktop.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
vispy/gloo/gl/desktop.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
vispy/gloo/gl/desktop.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ GL ES 2.0 API implemented via desktop GL (i.e subset of normal OpenGL). """ import os import sys import ctypes.util from . import _copy_gl_functions from ._constants imp...
30.47619
77
0.652344
5c8833e4cf914a7600f27982f9a03d6cd6b7cfac
283
py
Python
install.py
ia2c/aptamers
b4152c0383248bbbaa7c80581cee322bf4c6bb3a
[ "MIT" ]
1
2017-03-21T12:30:29.000Z
2017-03-21T12:30:29.000Z
install.py
ia2c/aptamers
b4152c0383248bbbaa7c80581cee322bf4c6bb3a
[ "MIT" ]
null
null
null
install.py
ia2c/aptamers
b4152c0383248bbbaa7c80581cee322bf4c6bb3a
[ "MIT" ]
null
null
null
fichier = open("Rosetta/main/source/src/apps.src.settings","r") commands = fichier.readlines() fichier.close() commands = commands[:-1] + [" 'cifparse',\n"] + [commands[-1]] fichier = open("Rosetta/main/source/src/apps.src.settings","w") fichier.writelines(commands) fichier.close()
35.375
63
0.713781
7fe9c4a7cb496a10f99e7632b34bc27194810bc6
38,771
py
Python
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storagev2/fileshare/v2020_02_10/_generated/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storagev2/fileshare/v2020_02_10/_generated/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storagev2/fileshare/v2020_02_10/_generated/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
37.936399
334
0.640298
dc2da35ff5c1ee96b1d44cff7a222af587f60f06
1,171
py
Python
fixtures/generate.py
bbengfort/iterfile
a212c9fbffe265aabc93feb0c7b8957368ceba86
[ "MIT" ]
1
2021-07-06T01:16:08.000Z
2021-07-06T01:16:08.000Z
fixtures/generate.py
bbengfort/iterfile
a212c9fbffe265aabc93feb0c7b8957368ceba86
[ "MIT" ]
null
null
null
fixtures/generate.py
bbengfort/iterfile
a212c9fbffe265aabc93feb0c7b8957368ceba86
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This quick script generates fixtures for benchmarking. import os import random # Number of words per line MIN_LINE = 20 MAX_LINE = 100 # Words to randomly select to add to the line WORDS = ("fizz", "buzz", "foo", "bar", "baz") # Paths of fixtures to create BASEDIR = os.path.dirname(__fi...
26.022222
77
0.636208
9dac9b9435ead8da0275326d93cf15d37b41237b
2,170
py
Python
ccdproc/tests/test_keyword.py
cdeil/ccdproc
1bcfb0142669243325bfce05b4f2fc45ea013f02
[ "BSD-3-Clause" ]
null
null
null
ccdproc/tests/test_keyword.py
cdeil/ccdproc
1bcfb0142669243325bfce05b4f2fc45ea013f02
[ "BSD-3-Clause" ]
null
null
null
ccdproc/tests/test_keyword.py
cdeil/ccdproc
1bcfb0142669243325bfce05b4f2fc45ea013f02
[ "BSD-3-Clause" ]
null
null
null
from astropy.tests.helper import pytest from astropy import units as u from astropy.units import Quantity from astropy.io import fits from ..ccdproc import Keyword def test_keyword_init(): key_name = 'some_key' key = Keyword(key_name, unit=u.second) assert key.name == key_name assert key.unit == u.se...
31.449275
76
0.620276
a956a1261c77834af5bf1ea2a9a3b0853172f8ca
42,013
py
Python
content/post/Psychopy_Trajectories/Ppy/Example_Traj_lastrun.py
santiagoalonso/starter-academic
b88ddf3c3fc18935ef42ced413bd733255298371
[ "MIT" ]
null
null
null
content/post/Psychopy_Trajectories/Ppy/Example_Traj_lastrun.py
santiagoalonso/starter-academic
b88ddf3c3fc18935ef42ced413bd733255298371
[ "MIT" ]
null
null
null
content/post/Psychopy_Trajectories/Ppy/Example_Traj_lastrun.py
santiagoalonso/starter-academic
b88ddf3c3fc18935ef42ced413bd733255298371
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2021.1.4), on July 07, 2021, at 16:25 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindelø...
52.780151
238
0.710542
700a8dc54d31f07b8aa04e8f1184d785209e2599
492
py
Python
authentication/urls.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
5
2016-09-25T02:59:13.000Z
2018-07-18T05:20:58.000Z
authentication/urls.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
1
2016-12-01T01:11:53.000Z
2016-12-01T01:11:53.000Z
authentication/urls.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
6
2016-09-24T02:42:57.000Z
2016-11-10T13:35:13.000Z
from django.conf.urls import url from authentication import views urlpatterns = [ url(r'user/signup/$', views.SignupView.as_view(), name='user-signup'), url(r'user/logout/$', views.LogoutView.as_view(), name='user-logout'), url(r'user/login/$', views.LoginView.as_view(), name='user-login'), url(r'user/...
44.727273
109
0.686992
5058f447ab91d5c3e136802a35454ba6dff83718
399
py
Python
.history/py/UserInput_20201230125908.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/py/UserInput_20201230125908.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/py/UserInput_20201230125908.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
# person = input("Enter your name: ") # print("Hello ", person) # x = input("Enter a number: ") # 8 # y = input("Enter another number: ") # 7 # z = x + y # print(z) # 87 ## this was the result of concatenation person = input("Enter your name: ") print("Hello ", person) x = input("Enter a number: ") # 8 y = i...
21
58
0.581454
d9e507ab08cfb04a79232b6ce6fdb36d2da31014
764
py
Python
django_proyecto/bin/django-admin.py
Nemo3003/Proyecto_Final_G_8
65bc0b74e5746801b373b8714fc6574f2de21f91
[ "Apache-2.0" ]
null
null
null
django_proyecto/bin/django-admin.py
Nemo3003/Proyecto_Final_G_8
65bc0b74e5746801b373b8714fc6574f2de21f91
[ "Apache-2.0" ]
null
null
null
django_proyecto/bin/django-admin.py
Nemo3003/Proyecto_Final_G_8
65bc0b74e5746801b373b8714fc6574f2de21f91
[ "Apache-2.0" ]
1
2021-09-05T23:42:46.000Z
2021-09-05T23:42:46.000Z
#!/home/nemo/Documents/Programación/Informatorio-main/Etapa2/django_proyecto_carlos/Proyecto_Final_G_8/django_proyecto/bin/python # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning e...
34.727273
129
0.748691
969c7e3bb5369b5ef8499c6c3875abac9ade1502
13,250
py
Python
cluster_optimizer/scorer.py
ndgigliotti/cluster-optimizer
40505493ba2e9a2352c5c759d1b2d61c1bc72fe7
[ "BSD-3-Clause" ]
null
null
null
cluster_optimizer/scorer.py
ndgigliotti/cluster-optimizer
40505493ba2e9a2352c5c759d1b2d61c1bc72fe7
[ "BSD-3-Clause" ]
null
null
null
cluster_optimizer/scorer.py
ndgigliotti/cluster-optimizer
40505493ba2e9a2352c5c759d1b2d61c1bc72fe7
[ "BSD-3-Clause" ]
null
null
null
from types import MappingProxyType from typing import Iterable import numpy as np from sklearn import metrics from sklearn.metrics._scorer import _BaseScorer, _passthrough_scorer from sklearn.pipeline import Pipeline from sklearn.utils.validation import check_consistent_length, check_is_fitted def _get_labels(estimat...
33.715013
87
0.616453
8bc9cf88be4621018d56fc7c9e5672a569120c80
628
py
Python
autotest/manage.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
autotest/manage.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
autotest/manage.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'autotest.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
7b53743d330e148051b4f33042dc93088260671c
1,753
py
Python
tests/conftest.py
yammesicka/arrow
b8a601139c6eef2c452666b84dcfd9130c300352
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
yammesicka/arrow
b8a601139c6eef2c452666b84dcfd9130c300352
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
yammesicka/arrow
b8a601139c6eef2c452666b84dcfd9130c300352
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime import pytest from arrow import arrow, factory, formatter, locales, parser @pytest.fixture(scope="class") def time_utcnow(request): request.cls.arrow = arrow.Arrow.utcnow() @pytest.fixture(scope="class") def time_2013_01_01(request): request.cls.now = ...
25.779412
114
0.735311
af3fb719a951156f418ebb37b0df8f3f9ad8ce83
15,968
py
Python
official/nlp/modeling/layers/kernel_attention.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2022-02-02T06:29:41.000Z
2022-02-02T06:29:41.000Z
official/nlp/modeling/layers/kernel_attention.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
official/nlp/modeling/layers/kernel_attention.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.221662
118
0.664704
1244fdfe1f5b183d2e6247fbd1fced33da02c2b4
2,720
py
Python
setup.py
jtpio/p5-kernel
35ebc2e3f0720cfd2af945b04dddc69744f1eb29
[ "BSD-3-Clause" ]
5
2021-10-01T07:29:50.000Z
2022-02-27T01:03:16.000Z
setup.py
jtpio/p5-kernel
35ebc2e3f0720cfd2af945b04dddc69744f1eb29
[ "BSD-3-Clause" ]
4
2021-09-29T14:57:08.000Z
2022-03-23T12:52:24.000Z
setup.py
jtpio/p5-kernel
35ebc2e3f0720cfd2af945b04dddc69744f1eb29
[ "BSD-3-Clause" ]
4
2021-10-01T07:19:08.000Z
2022-03-21T09:32:43.000Z
""" jupyterlite-p5-kernel setup """ import json import sys from pathlib import Path import setuptools HERE = Path(__file__).parent.resolve() # The name of the project NAME = "jupyterlite-p5-kernel" PACKAGE = NAME.replace("-", "_") src_path = HERE / "packages/p5-kernel-extension" lab_path = HERE / NAME.replace("-", ...
29.247312
85
0.663235
494136e63baee6a326f46c20739603b84b59eb25
1,826
py
Python
selfdrive/locationd/models/constants.py
woori2875/test
79a0a597fed5a399cb5700ed39a847aca7f971c2
[ "MIT" ]
null
null
null
selfdrive/locationd/models/constants.py
woori2875/test
79a0a597fed5a399cb5700ed39a847aca7f971c2
[ "MIT" ]
null
null
null
selfdrive/locationd/models/constants.py
woori2875/test
79a0a597fed5a399cb5700ed39a847aca7f971c2
[ "MIT" ]
null
null
null
import os GENERATED_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 'generated')) class ObservationKind: UNKNOWN = 0 NO_OBSERVATION = 1 GPS_NED = 2 ODOMETRIC_SPEED = 3 PHONE_GYRO = 4 GPS_VEL = 5 PSEUDORANGE_GPS = 6 PSEUDORANGE_RATE_GPS = 7 SPEED = 8 NO_ROT = 9 PHONE_ACCEL = 10 OR...
22
85
0.648412
98cb07dc94f0c16aa927397cfb54eb34b666bcef
212
py
Python
dependencies/amitools-0.1.0/amitools/vamos/lib/util/UtilStruct.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/vamos/lib/util/UtilStruct.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/vamos/lib/util/UtilStruct.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
from amitools.vamos.AmigaStruct import AmigaStruct # TagItem class TagItemStruct(AmigaStruct): _name = "TagItem" _format = [ ('ULONG','ti_Tag'), ('ULONG','ti_Data') ] TagItemDef = TagItemStruct()
17.666667
50
0.688679
26865bce9ebad1b77a7c6d58a03a501b6a8d98f9
3,147
py
Python
tests/support/dirutils.py
dalito/linkml-runtime
192a33962aed06f727ffad1a697003ac6ec85c2c
[ "CC0-1.0" ]
null
null
null
tests/support/dirutils.py
dalito/linkml-runtime
192a33962aed06f727ffad1a697003ac6ec85c2c
[ "CC0-1.0" ]
null
null
null
tests/support/dirutils.py
dalito/linkml-runtime
192a33962aed06f727ffad1a697003ac6ec85c2c
[ "CC0-1.0" ]
null
null
null
import filecmp import os from contextlib import redirect_stdout from io import StringIO from typing import Optional from tests.support.filters import ldcontext_metadata_filter def make_and_clear_directory(dirbase: str) -> None: """ Make dirbase if necessary and then clear generated files """ import shutil ...
32.78125
99
0.653956
701c70739bef1002514a0630e3ab4ff74611eae1
418
py
Python
onadata/apps/fsforms/migrations/0047_fieldsightxf_from_project.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/fsforms/migrations/0047_fieldsightxf_from_project.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/fsforms/migrations/0047_fieldsightxf_from_project.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fsforms', '0046_fieldsightxf_is_survey'), ] operations = [ migrations.AddField( model_name='fieldsightxf', ...
20.9
52
0.619617
2a7a855408557230b50334db33f4e966ba447fa5
24
py
Python
mayan/apps/ocr/literals.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/literals.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/literals.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-04-30T09:44:14.000Z
2021-04-30T09:44:14.000Z
DO_OCR_RETRY_DELAY = 10
12
23
0.833333