hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
d550a82b83a0def90d3710c27bb861881f320fbb
7,849
py
Python
car_scraper/car_scraping_1.py
Simeon94/ebay_car_scraper_pypi
f66658ba785e2a100778cb453d99630844356856
[ "MIT" ]
null
null
null
car_scraper/car_scraping_1.py
Simeon94/ebay_car_scraper_pypi
f66658ba785e2a100778cb453d99630844356856
[ "MIT" ]
null
null
null
car_scraper/car_scraping_1.py
Simeon94/ebay_car_scraper_pypi
f66658ba785e2a100778cb453d99630844356856
[ "MIT" ]
null
null
null
#__package__ = None from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait as wait from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.act...
39.641414
195
0.617658
d550b816413505ed74db6f6f3b460813b57e20d7
784
py
Python
tests/factories.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
tests/factories.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
tests/factories.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Factories to help in tests.""" from factory import PostGenerationMethodCall, Sequence from factory.alchemy import SQLAlchemyModelFactory from flask_hackernews_clone.blueprints.user.models import User from flask_hackernews_clone.database import db class BaseFactory(SQLAlchemyModelFactory): ...
24.5
66
0.693878
d550c31b7a4834680812942ef8e6a773319a2238
7,805
py
Python
range_net/create_dataset.py
theovincent/3DPointCloudClassification
cd3ed8d824e9cf671c0a46b352eae26074624019
[ "MIT" ]
null
null
null
range_net/create_dataset.py
theovincent/3DPointCloudClassification
cd3ed8d824e9cf671c0a46b352eae26074624019
[ "MIT" ]
null
null
null
range_net/create_dataset.py
theovincent/3DPointCloudClassification
cd3ed8d824e9cf671c0a46b352eae26074624019
[ "MIT" ]
null
null
null
import os import sys import numpy as np from tqdm import tqdm def create_dataset_cli(argvs=sys.argv[1:]): import argparse from classifier_3D.utils.path import get_data_path from classifier_3D.utils.ply_file import read_ply, write_ply from range_net import ( CITY_INFERANCE_FOLDER, PAT...
31.59919
197
0.56656
d550d553f1a865b9aac30d3c8a141708e6058d67
758
py
Python
tests/desugar.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
188
2017-11-27T18:59:34.000Z
2021-12-31T02:28:33.000Z
tests/desugar.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
95
2017-11-13T01:21:48.000Z
2020-10-30T06:38:14.000Z
tests/desugar.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
16
2018-02-13T04:49:09.000Z
2021-02-06T13:26:46.000Z
import unittest from cozy.target_syntax import * from cozy.desugar import desugar_list_comprehensions class DesugaringTests(unittest.TestCase): def test_type_preservation(self): e1 = EListComprehension(EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_typ...
63.166667
493
0.697889
d550f0e6edb67a4ae05f744c17d4c52c85ff75f4
36,604
py
Python
dynamic_parts_op.py
joneugster/Sitzreservation
f9934ad4bb9be2c817d3387877d1d138ab4b0285
[ "MIT" ]
1
2021-09-30T12:24:12.000Z
2021-09-30T12:24:12.000Z
dynamic_parts_op.py
joneugster/Sitzreservation
f9934ad4bb9be2c817d3387877d1d138ab4b0285
[ "MIT" ]
null
null
null
dynamic_parts_op.py
joneugster/Sitzreservation
f9934ad4bb9be2c817d3387877d1d138ab4b0285
[ "MIT" ]
null
null
null
import logging import os import re from string import Template from datetime import datetime from utils import seat from utils.mail import send_email from utils.html import str2html, html2utf8, error_to_html from utils.helpers import create_bill_number, create_QR, certificate import time import traceback def create_da...
40.625971
124
0.483281
d5512e29d1731f9fe21a54daedb55396a52ac411
1,396
py
Python
code_doc/migrations/0025_auto_20170220_2320.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/migrations/0025_auto_20170220_2320.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/migrations/0025_auto_20170220_2320.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-20 23:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("code_doc", "0024_auto_20170220_2300")] operations = [ migrations.AlterModelOptions( ...
32.465116
88
0.49212
d55166a264ed9b5bda8eadf5bd119d6e109539e3
677
py
Python
ucb_cs61A/lab/lab13/tests/cyber-monday-part2.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab13/tests/cyber-monday-part2.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab13/tests/cyber-monday-part2.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'cyber-monday-par2', 'points': 0, 'suites': [ { 'cases': [ { 'code': r""" sqlite> SELECT * FROM lowest_prices; GameStation|Hallmart|298.98 QBox|Targive|390.98 iBook|Targive|110.99 kBook|RestBuy|94.99 qPhone|Ha...
21.15625
46
0.44904
d551838d8e9364f52a89e427baef8d3bb9dfd63e
3,254
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_auto_rest_validation_test.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_auto_rest_validation_test.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_auto_rest_validation_test.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 may ...
43.972973
112
0.692993
d55198b0b9c986f8d057796e55fd5053126df723
1,039
py
Python
tests_ui/pages/login_page.py
LoshmanovNA/pet-project
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
1
2020-01-18T18:18:33.000Z
2020-01-18T18:18:33.000Z
tests_ui/pages/login_page.py
LoshmanovNA/moesk
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
3
2021-03-31T19:32:57.000Z
2021-12-13T20:33:50.000Z
tests_ui/pages/login_page.py
LoshmanovNA/moesk
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
null
null
null
import allure from .base_page import BasePage from ..locators import LoginPageLocators, CommonLocators class LoginPage(BasePage): """Действия на странице логина""" _login_page = LoginPageLocators() _common_page = CommonLocators() @allure.step def login_user(self, login, password): """Авт...
38.481481
102
0.728585
d5519a5582bd67e3eeec580404edc3c66eb1cb4e
5,262
py
Python
ssnmftools/nmf_evaluation.py
fjeng/ffr_ssnmf_feasibility
c07eb952e58d7ff52b4d2a8804331061d4dfe376
[ "MIT" ]
null
null
null
ssnmftools/nmf_evaluation.py
fjeng/ffr_ssnmf_feasibility
c07eb952e58d7ff52b4d2a8804331061d4dfe376
[ "MIT" ]
null
null
null
ssnmftools/nmf_evaluation.py
fjeng/ffr_ssnmf_feasibility
c07eb952e58d7ff52b4d2a8804331061d4dfe376
[ "MIT" ]
null
null
null
def nmf_evaluation(spectrogramSignal, spectrogramData, nsweeplabels, reference_sweeps): ''' Purpose : evaluate NMF performance in terms of correlation coefficients and RMSE Introduction ------------ - corr is the Pearson correlation coefficient between spectrogramSignal and spectrogramData ...
49.641509
221
0.662486
d551cd3f11d81f618dc9e31e861f6038e4ad8f65
4,067
py
Python
TrainingExtensions/common/src/python/aimet_common/pruner.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/common/src/python/aimet_common/pruner.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/common/src/python/aimet_common/pruner.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
41.927835
100
0.688714
d551fa8193095c808f8a8e14cdf1c12019faf892
307
py
Python
lee_dunham/ldunham_01.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
lee_dunham/ldunham_01.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
lee_dunham/ldunham_01.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
from functools import reduce import itertools import operator all_input = open('day1_input.txt').readlines() for i in range(2, 4): for values in itertools.combinations(all_input, i): if sum(map(int, values)) == 2020: print(reduce(operator.mul, map(int, values))) break
25.583333
57
0.664495
d5521d75de376d6b0f6ed3a81d1b7982e8f5f0a1
258
py
Python
Aula17/exercicio/exercicio4.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/exercicio/exercicio4.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/exercicio/exercicio4.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Faça um programa que lê um numero inteiro do teclado e mostre a soma do numero com os valores da # seguinte tupla: # (61, 138, 13, 86, 7, 160, 150, 90, 182, 158, 167, 171, 79, 162, 197, 63, 164, 22, 194, 17, 168) # use o f-string para apresentar o numero.
64.5
98
0.678295
d55225d7102b69cd3a6c875c493b25ddef0987c4
1,911
py
Python
f5_cccl/resource/ltm/monitor/tcp_monitor.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
null
null
null
f5_cccl/resource/ltm/monitor/tcp_monitor.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
null
null
null
f5_cccl/resource/ltm/monitor/tcp_monitor.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
1
2019-11-02T05:22:48.000Z
2019-11-02T05:22:48.000Z
"""Hosts an interface for the BIG-IP Monitor Resource. This module references and holds items relevant to the orchestration of the F5 BIG-IP for purposes of abstracting the F5-SDK library. """ # coding=utf-8 # # Copyright 2017 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you m...
30.822581
78
0.714286
d55232cf564f32f7aa6cda17595ef910fab19462
2,324
py
Python
test/test_cloud_job_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_cloud_job_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_cloud_job_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
29.05
84
0.515491
d5532079ad02383f11804379846f386b4c658bee
8,670
py
Python
src/python/pants/backend/project_info/tasks/depmap.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/project_info/tasks/depmap.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/tasks/depmap.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.base.exceptions import TaskError from pants.java.jar.jar_dependency import JarDependency from pants.task.console_task import ConsoleTask class Depmap(ConsoleTask): """Dep...
38.878924
103
0.589273
d5532d1a3871135bb386caa70073d1861852b462
9,497
py
Python
GUI/WifiMonitor/IMU/Barom/GY80_BMP085.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
1
2019-10-15T20:31:39.000Z
2019-10-15T20:31:39.000Z
GUI/WifiMonitor/IMU/Barom/GY80_BMP085.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
null
null
null
GUI/WifiMonitor/IMU/Barom/GY80_BMP085.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
null
null
null
#!/usr/bin/python """ ************************************************* * @Project: Self Balance * @Platform: Raspberry PI 2 B+ * @Description: GY80 API - Orientation sensor via I2C bus * BMP085 (Barometer Pressure/Temperature sensor) * @Owner: Guilherme Chinellato ...
33.206294
85
0.53101
d55337b1c2a7c39ce203c52c972d750acd10b2b4
1,868
py
Python
scripts/fbOS/coding/MinReverseToMakePermutationIncreasing.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/fbOS/coding/MinReverseToMakePermutationIncreasing.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/fbOS/coding/MinReverseToMakePermutationIncreasing.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Minimizing Permutations In this problem, you are given an integer N, and a permutation, P of the integers from 1 to N, denoted as (a_1, a_2, ..., a_N). You want to rearrange the elements of the permutation into increasing order, repeatedly making the following operation: Select a sub-portion of the permutation, (...
33.963636
247
0.635974
d553396a35e40a180ec8928f316462a062c83fcb
653
py
Python
test/test_fixerio.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
1
2021-03-07T23:07:52.000Z
2021-03-07T23:07:52.000Z
test/test_fixerio.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
null
null
null
test/test_fixerio.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
null
null
null
from fixerio import fixerio def main(): """ Usage examples for the fixerio modules """ response = fixerio.convert(10, base='USD', dest='EUR') print(response, end='\n\n') response = fixerio.convert(10, dest='EUR') print(response, end='\n\n') response = fixerio.get_rates() print(response, e...
28.391304
78
0.638591
d5533b2c6e5d43b73d4b6b4175a33a9d56b87285
385
py
Python
pygw2/core/models/sab.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2020-01-19T21:27:53.000Z
2020-01-19T21:27:53.000Z
pygw2/core/models/sab.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2021-12-09T21:18:13.000Z
2021-12-09T21:18:13.000Z
pygw2/core/models/sab.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
null
null
null
from typing import List from pygw2.utils import LazyLoader, BaseModel class SABZones(BaseModel): id: int mode: str world: int zone: int class SABUnlocks(BaseModel): id: int name: str class SABSong(BaseModel): id: int name: str class SAB(BaseModel): zones: List[SABZones] = [] ...
14.807692
45
0.644156
d55343fc398b8707dd233c58cf3915a90d8b723c
1,139
py
Python
experiments/utils/auditgen.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
experiments/utils/auditgen.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
experiments/utils/auditgen.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
import argparse import os from auditgen.config import AuditGenConfig from auditgen.generate_audit import AuditGen from utils.config import ( BACKEND_GRPC_CONFIG, BACKEND_JWT_CONFIG, IPFS_CONFIG, W3_CONFIG, configure_logging, ) def auditgen() -> None: parser = argparse.ArgumentParser() pa...
27.119048
84
0.71554
d5535dff0f1c7d37fb5134371d9f3464e8cb1199
724
py
Python
nyoka/tests/test_import.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
null
null
null
nyoka/tests/test_import.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
2
2021-08-25T16:16:45.000Z
2022-02-10T05:28:52.000Z
nyoka/tests/test_import.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
null
null
null
import unittest class TestImport(unittest.TestCase): def test_01(self): import nyoka self.assertEqual(hasattr(nyoka,"__version__"),True) self.assertEqual(hasattr(nyoka,"__license__"),True) self.assertEqual(hasattr(nyoka,"skl_to_pmml"),True) self.assertEqual(hasattr(nyoka,"A...
40.222222
74
0.711326
d55366be4763a841c46ec12b4714893da379ff59
12,642
py
Python
testing/unit_tests/test_adapter_api.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
2
2021-12-16T04:21:37.000Z
2022-03-10T03:19:21.000Z
testing/unit_tests/test_adapter_api.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
12
2021-12-20T13:22:45.000Z
2022-02-17T19:57:03.000Z
testing/unit_tests/test_adapter_api.py
amasmiller/PACFISH
f9bc912e701df3261a2b9a94df281c664701701d
[ "BSD-3-Clause" ]
1
2022-02-11T21:33:28.000Z
2022-02-11T21:33:28.000Z
# SPDX-FileCopyrightText: 2021 International Photoacoustics Standardisation Consortium (IPASC) # SPDX-License-Identifier: BSD 3-Clause License import unittest from unittest.case import TestCase import pacfish as pf import numpy as np from testing.unit_tests.utils import create_complete_device_metadata_dictionary, cre...
53.795745
129
0.6567
d5537a010b88ad45fd47d8113f1973889acd6b09
17,512
py
Python
lib/atom/http_core.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
5
2016-05-08T23:51:38.000Z
2021-05-02T10:09:29.000Z
lib/atom/http_core.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
null
null
null
lib/atom/http_core.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
1
2018-01-16T16:03:44.000Z
2018-01-16T16:03:44.000Z
#!/usr/bin/env python # # Copyright (C) 2009 Google 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...
33.292776
79
0.651211
d553971af3a3438b0084eb6628a3e301fb062274
6,119
py
Python
tests/usecases/list_permissions_test.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
tests/usecases/list_permissions_test.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
tests/usecases/list_permissions_test.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from time import time from typing import TYPE_CHECKING from grouper.constants import PERMISSION_CREATE from grouper.entities.pagination import PaginatedList, Pagination from grouper.entities.permission import Permission from grouper.usecases.list_permissions import ListPermissionsSortKey,...
39.224359
97
0.711718
d5539bb1c773388934511750a8ad0a9bb692b632
576
py
Python
automation/vacuum/responses.py
Horbee/automation-platform
91c60791f0cbfe52c2ea16ebddb5cad8df2c00fd
[ "MIT" ]
null
null
null
automation/vacuum/responses.py
Horbee/automation-platform
91c60791f0cbfe52c2ea16ebddb5cad8df2c00fd
[ "MIT" ]
null
null
null
automation/vacuum/responses.py
Horbee/automation-platform
91c60791f0cbfe52c2ea16ebddb5cad8df2c00fd
[ "MIT" ]
null
null
null
from flask import jsonify def dialogflow_response(text_response): return jsonify( { "payload": { "google": { "expectUserResponse": True, "richResponse": { "items": [ { "simpleResp...
26.181818
54
0.321181
d553b9dea7c37ee3dee70ae50a190e26a47acef6
587
py
Python
Courses/Codeval/Easy/Python/01-FizzBuzz.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Codeval/Easy/Python/01-FizzBuzz.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Codeval/Easy/Python/01-FizzBuzz.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
''' Description: https://www.codeeval.com/open_challenges/1/ ''' import sys def fb_converter(i,D1,D2): entry = "" if i % D1 == 0: entry += "F" if i % D2 == 0: entry += "B" return entry or i def main(): with open(sys.argv[1]) as nf: all_lines = nf.readlines() for line in all_lines: line_l...
18.935484
64
0.570698
d553d722b6ba69fa200146bc863741260b68940d
46,999
py
Python
src/sage/coding/cyclic_code.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/coding/cyclic_code.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/coding/cyclic_code.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
r""" Cyclic Code Let `F` be a field. A `[n, k]` code `C` over `F` is called cyclic if every cyclic shift of a codeword is also a codeword [R06]_: .. MATH:: \forall c \in C, c = (c_{0}, c_{1}, \dots , c_{n-1}) \in C \Rightarrow (c_{n-1}, c_{0}, \dots , c_{n-2}) \in C Let `c = (c_0, c_1, \...
34.660029
176
0.54499
d553e2466b486a8462aec4957728c86e2cdff2f5
4,649
py
Python
qcdb/util/paths.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
1
2019-02-20T20:18:02.000Z
2019-02-20T20:18:02.000Z
qcdb/util/paths.py
vivacebelles/qcdb
5bbdcb5c833277647a36bb0a5982abb56bf29b20
[ "BSD-3-Clause" ]
null
null
null
qcdb/util/paths.py
vivacebelles/qcdb
5bbdcb5c833277647a36bb0a5982abb56bf29b20
[ "BSD-3-Clause" ]
null
null
null
import os import sys #def query_yes_no(question, default=True): # """Ask a yes/no question via raw_input() and return their answer. # # *question* is a string that is presented to the user. # *default* is the presumed answer if the user just hits <Enter>. # It must be yes (the default), no or None (meanin...
27.838323
82
0.587653
d553ed7b5005e08f71aa4c0dd178e103b4474ac9
4,742
py
Python
data extraction/pipeline/get_full_text.py
MGEdata/SuperalloyDigger
822d63056790d4dad951b1bc94c3cb441353d270
[ "MIT" ]
24
2020-10-23T14:42:08.000Z
2022-03-28T04:37:50.000Z
data extraction/pipeline/get_full_text.py
MGEdata/SuperalloyDigger
822d63056790d4dad951b1bc94c3cb441353d270
[ "MIT" ]
1
2022-01-20T14:44:57.000Z
2022-01-28T09:28:33.000Z
data extraction/pipeline/get_full_text.py
MGEdata/SuperalloyDigger
822d63056790d4dad951b1bc94c3cb441353d270
[ "MIT" ]
11
2020-10-23T14:41:40.000Z
2022-02-28T08:39:20.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 22 22:02:21 2019 @author: 35732 """ import os import re import nltk from log_wp import Log_wp def get_elsevier_doi(full_text_path): target_doi = '' doi_pattern = 'doi:10.1016\S+' file = open(full_text_path, encoding="UTF-8") line_data = file.readlines...
41.234783
87
0.507592
d5540939a036ba72a09500d717e71763a390e9cf
53,291
py
Python
colin-api/src/colin_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
colin-api/src/colin_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
colin-api/src/colin_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
45.743348
119
0.551313
d55427688a084bec0e9255b152935a5e5812cfae
8,526
py
Python
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
1
2021-03-06T19:31:04.000Z
2021-03-06T19:31:04.000Z
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
null
null
null
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
1
2020-09-20T22:15:36.000Z
2020-09-20T22:15:36.000Z
"""Strategic conflict detection Subscription query tests: - add a few Subscriptions spaced in time and footprints - query with various combinations of arguments """ import datetime from monitoring.monitorlib.infrastructure import default_scope from monitoring.monitorlib import scd from monitoring.monitorlib.scd ...
34.518219
108
0.700563
d5545153ab1679a6e78a28dd3d080daa42ae64ca
329
py
Python
code/sf_t3d/context_processor.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/sf_t3d/context_processor.py
superfluidity/osm-light-ui
d3189687009f23f32e877c36db1ebd206fca972f
[ "Apache-2.0" ]
null
null
null
code/sf_t3d/context_processor.py
superfluidity/osm-light-ui
d3189687009f23f32e877c36db1ebd206fca972f
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
from django.conf import settings # import the settings file def conf_constants(request): # return the value you want as a dictionnary. you may add multiple values in there. return { 'SITE_NAME': settings.SITE_NAME, 'SHORT_SITE_NAME': settings.SHORT_SITE_NAME, 'VERSION': settings.VERSI...
32.9
87
0.699088
d5546cf5251d94c4c4d1f9b3f4f7f72cc3fa01c9
7,678
py
Python
src/appengine/handlers/jobs.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
src/appengine/handlers/jobs.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-06-07T21:29:28.000Z
2019-06-07T21:29:28.000Z
src/appengine/handlers/jobs.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.95279
80
0.686637
d554714b125561bb90662af46e54f03a59a01c8b
9,223
py
Python
tests/test_init_app.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2021-03-14T08:27:43.000Z
2021-03-14T08:27:43.000Z
tests/test_init_app.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2020-10-08T08:14:04.000Z
2020-10-08T08:14:04.000Z
tests/test_init_app.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
null
null
null
import botocore import pytest from insanic import Insanic from insanic.conf import settings from insanic.exceptions import ImproperlyConfigured from iniesta import Iniesta from iniesta.choices import InitializationTypes from iniesta.listeners import IniestaListener from .conftest import ALL_INITIALIZATION_TYPES from...
28.912226
80
0.637211
d55479fda6345f8b2c29afe801f0ed7b021d2441
2,664
py
Python
tests/_tests_scripts/z_mvp_distributed_mnist_ae.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
tests/_tests_scripts/z_mvp_distributed_mnist_ae.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
tests/_tests_scripts/z_mvp_distributed_mnist_ae.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
# flake8: noqa import os import torch from torch import nn from torch.nn import functional as F from torchvision import transforms from torchvision.datasets import MNIST from catalyst import dl, utils from catalyst.utils import metrics class ClassifyAE(nn.Module): """ Docs. """ def __init__(self, i...
22.2
78
0.542793
d55499e99da09bb437b4643161b4013fe282f301
1,749
py
Python
tests/test_models/test_nbeats.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
1
2021-06-09T09:51:13.000Z
2021-06-09T09:51:13.000Z
tests/test_models/test_nbeats.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
null
null
null
tests/test_models/test_nbeats.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
1
2021-06-15T11:31:44.000Z
2021-06-15T11:31:44.000Z
import shutil import pytorch_lightning as pl from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint from pytorch_lightning.loggers import TensorBoardLogger from pytorch_forecasting.metrics import QuantileLoss from pytorch_forecasting.models import NBeats def test_integration(dataloaders_fixed_window...
35.693878
114
0.732419
d554a81e7c984b5251ae6cddbbc36b90a4ffd552
35,440
py
Python
hrdic.py
MechMicroMan/DefDAP-allan
44f5a4d67a8b694cf646f3f217b3f6f95360a8d9
[ "Apache-2.0" ]
null
null
null
hrdic.py
MechMicroMan/DefDAP-allan
44f5a4d67a8b694cf646f3f217b3f6f95360a8d9
[ "Apache-2.0" ]
null
null
null
hrdic.py
MechMicroMan/DefDAP-allan
44f5a4d67a8b694cf646f3f217b3f6f95360a8d9
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import inspect import pandas as pd from matplotlib_scalebar.scalebar import ScaleBar from skimage import transform as tf from skimage import morphology as mph from scipy.stats import mode import peakutils import base from quat import Quat class Map(base.Map): ...
40
146
0.575198
d554deff6b23eba19c95dc8af4a772dacf8d296a
6,321
py
Python
cm4/command/command.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
cm4/command/command.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
cm4/command/command.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
"""Cloudmesh 4 :: Usage: cm4 admin rest status cm4 admin rest start cm4 admin rest stop cm4 admin status] cm4 data add FILE cm4 data add SERVICE FILE cm4 data get FILE cm4 data get FILE DEST_FOLDER cm4 data del FILE cm4 data (ls | dir) cm4 set clou...
40.519231
315
0.685651
d554ed2563276ebc1b78721db2e2921f48f86b8d
1,908
py
Python
venv/Lib/site-packages/pyrogram/raw/base/file_location.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/file_location.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/file_location.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
38.16
95
0.647799
d5550abf43ae2cb9ffd1ac00f1aaa56d01b9f67f
2,271
py
Python
st2common/st2common/models/api/sensor.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/models/api/sensor.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/models/api/sensor.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
31.541667
82
0.532805
d555131c178c941a9e77d85dcf1fdbeafce91f57
21,982
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_backup_short_term_retention_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_backup_short_term_retention_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_backup_short_term_retention_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
48.312088
250
0.683696
d55515060430a9e53e4eb4b32e7a6b91e986e6f1
3,827
py
Python
influxdb_client/domain/greater_threshold.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/domain/greater_threshold.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/domain/greater_threshold.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxd...
26.762238
124
0.560491
d5551eb4bb092176005962417f072b8613041f31
1,059
py
Python
bot/core/constants.py
rmenai-blueprints/pycord
52a80c664534c4e026c906d19f69aee22f9ecf1b
[ "MIT" ]
null
null
null
bot/core/constants.py
rmenai-blueprints/pycord
52a80c664534c4e026c906d19f69aee22f9ecf1b
[ "MIT" ]
7
2022-02-28T19:11:25.000Z
2022-03-25T13:37:59.000Z
bot/core/constants.py
rmenai-blueprints/pycord
52a80c664534c4e026c906d19f69aee22f9ecf1b
[ "MIT" ]
null
null
null
from pydantic import BaseModel class Colours(BaseModel): """Colour codes.""" blue = 0x0279FD bright_green = 0x01D277 dark_green = 0x1F8B4C gold = 0xE6C200 grass_green = 0x66FF00 orange = 0xE67E22 pink = 0xCF84E0 purple = 0xB734EB python_blue = 0x4B8BBE python_yellow = 0xFF...
19.611111
41
0.629839
d5553d0758a426dc8237d9c2759c28bc1fbd94f5
895
py
Python
riberry_web/gql/model.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
1
2020-09-01T15:34:52.000Z
2020-09-01T15:34:52.000Z
riberry_web/gql/model.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
riberry_web/gql/model.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
from __future__ import annotations import graphene import riberry from autogqla import create from autogqla.base import BaseModel from autogqla.spec import ModelSpec, RelationshipsSpec, RelationshipSpec, FieldsSpec class ApplicationInstance(BaseModel): __spec__ = ModelSpec( model=riberry.model.applicatio...
22.375
84
0.648045
d55540b271400425fc7d410d0327b9e92f4c874c
10,246
py
Python
src/olympia/activity/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/activity/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/activity/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.5 on 2019-09-12 13:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import olympia.amo.fields import olympia.amo.models import uuid class Migration(migrations.Migration): initial = True depen...
57.887006
995
0.585204
d555505a76bcbf84726d8bf6e95919ab00f59f39
3,349
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
48.536232
172
0.699015
d5555f7f81e2af177ba932cf9f1a77d303c78ff4
5,326
py
Python
tests/integration/states/virtualenv.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
tests/integration/states/virtualenv.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
tests/integration/states/virtualenv.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' tests.integration.states.virtualenv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2012-2013 by the SaltStack Team, see AUTHORS for more details :license: Apache 2.0, see LICENSE for more details. ''' # Import ...
35.986486
79
0.591626
d55585d93cefa40a199c91e65de09642b4e0e79a
2,378
py
Python
test/dataset/test_signal_transforms.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
test/dataset/test_signal_transforms.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
test/dataset/test_signal_transforms.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
import tempfile import pytest import torch from lhotse import CutSet from lhotse.dataset import SpecAugment from lhotse.dataset.collation import collate_features from lhotse.dataset.signal_transforms import GlobalMVN @pytest.fixture def global_mvn(): cuts = CutSet.from_json('test/fixtures/ljspeech/cuts.json') ...
30.883117
68
0.726661
d555b89d2e9cb7008caefdb7f65e76362610d852
13,690
py
Python
src/pykeen/datasets/analysis.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/analysis.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/analysis.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Dataset analysis utilities.""" import logging from typing import Callable, Collection, Optional, Tuple, Union import pandas as pd import torch from .base import Dataset from ..constants import PYKEEN_DATASETS from ..triples import analysis as triple_analysis from ..typing import MappedTri...
33.636364
120
0.68561
d555bf9f770ef735311f92e4e2c290a57d40e7c1
1,044
py
Python
phr/ubigeo/migrations/0003_auto_20170301_1136.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ubigeo/migrations/0003_auto_20170301_1136.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ubigeo/migrations/0003_auto_20170301_1136.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-01 11:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ubigeo', '0002_auto_20170301_1027'), ] operations = [ migrations.AlterField(...
33.677419
114
0.561303
d555c4943a2cc57be682c852cb665e3dff128283
2,176
py
Python
maths/sieve_of_eratosthenes.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/sieve_of_eratosthenes.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/sieve_of_eratosthenes.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
27.2
106
0.639246
d555deb5603aadeaf71ef1ba339e207ebba22e2a
718
py
Python
instructors/projects/project_euler/euler9/euler9v1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/projects/project_euler/euler9/euler9v1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/projects/project_euler/euler9/euler9v1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. a<995 b<996 c<997 They tell us there is only one, so we only need to test for existe...
23.16129
86
0.619777
d55605faab1cce5d4d099bc4d5dd4fc47bb0c9b9
1,814
py
Python
vbclient/tests/common/test_utils.py
huaweicloudsdk/osc_vbs
98834c9425af3e8bff6e2db4602c3f7bd72829bd
[ "Apache-2.0" ]
3
2017-01-23T03:36:00.000Z
2021-01-30T14:00:34.000Z
vbclient/tests/common/test_utils.py
huaweicloudsdk/osc_vbs
98834c9425af3e8bff6e2db4602c3f7bd72829bd
[ "Apache-2.0" ]
3
2017-02-23T01:52:02.000Z
2017-02-25T07:55:27.000Z
vbclient/tests/common/test_utils.py
huaweicloudsdk/osc_vbs
98834c9425af3e8bff6e2db4602c3f7bd72829bd
[ "Apache-2.0" ]
1
2017-09-18T22:04:54.000Z
2017-09-18T22:04:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
34.226415
77
0.670342
d556101ac2ecbb568d1e949790a0b69479a14172
39,689
py
Python
pandas/tests/arithmetic/test_numeric.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/arithmetic/test_numeric.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arithmetic/test_numeric.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Arithmetc tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for numeric dtypes from decimal import Decimal from itertools import combinations import operator import numpy as np import pytest from pandas.compat import Iterable import pandas as pd...
37.196813
79
0.569528
d556458e39790a2fde8f55d270a3533bf56cd532
2,208
py
Python
lib/adafruit_imageload/bmp/__init__.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
lib/adafruit_imageload/bmp/__init__.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
lib/adafruit_imageload/bmp/__init__.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2018 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_imageload.bmp` ==================================================== Load pixel values (indices or colors) into a bitmap and colors into a palette from a BMP file. * Author(s): Scott Shawcroft """ # ...
31.542857
97
0.65308
d5564e49ca9c0fb7a098ffc01118dc364f620fb1
4,158
py
Python
server.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
13
2016-09-20T19:41:23.000Z
2021-09-19T11:32:56.000Z
server.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
5
2016-09-21T02:12:54.000Z
2017-05-15T02:42:55.000Z
server.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
4
2016-11-26T19:18:01.000Z
2020-05-03T21:16:46.000Z
import factorio import flask import json from PIL import Image, ImageChops import StringIO import sys app = flask.Flask(__name__) if len(sys.argv) > 1: data = factorio.load_factorio(mod_path=sys.argv[1]) else: data = factorio.load_factorio() @app.route('/image/<path:image>') def show_image(image): resp = ...
31.029851
87
0.602694
d5565cba499e87bacf693cb46cfb4a01948a022f
6,083
py
Python
core/apps/reports/views.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
core/apps/reports/views.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
core/apps/reports/views.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
from django.shortcuts import render,HttpResponse from django.shortcuts import render,redirect,HttpResponseRedirect,reverse from django.urls import reverse from django.contrib.auth.decorators import login_required from apps.student.models import Student,StudentList from django.conf import settings from django.views.gene...
38.01875
106
0.615815
d5568ae7313a92c3b65daee97cd01f4574c0c67f
1,867
py
Python
var/spack/repos/builtin/packages/z3/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/z3/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
var/spack/repos/builtin/packages/z3/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "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) from spack import * class Z3(MakefilePackage): """Z3 is a theorem prover from Microsoft Research. It is license...
35.226415
95
0.654526
d55697b9a4f117df0b31e7c9a1ffa4133ffeff30
109
py
Python
python/src/cryptopals/set4/challenge32.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
1
2021-02-20T16:38:25.000Z
2021-02-20T16:38:25.000Z
python/src/cryptopals/set4/challenge32.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
null
null
null
python/src/cryptopals/set4/challenge32.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
null
null
null
# See solution for challenge 31 # Can be more optimized with greater samples and some probability function.
27.25
75
0.798165
d5569a03ee6d61651a3d85e94ab922b9bee930df
741
py
Python
ai/load.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
1
2021-05-06T20:00:52.000Z
2021-05-06T20:00:52.000Z
ai/load.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
ai/load.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
# prepeares map data import os from gomoku import GomokuGame from args import args from gomokuNNet import NNetWrapper as nn import pickle def empty(dir): os.makedirs(os.path.dirname(dir), exist_ok=True) for f in os.listdir(dir): os.remove(os.path.join(dir, f)) #empties /data/ if __name__ == '__main__'...
26.464286
76
0.696356
d556a73587839761a7aa2bbdd8b3b899dbb36308
5,854
py
Python
respy/python/read/read_python.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
respy/python/read/read_python.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
respy/python/read/read_python.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
1
2020-10-31T19:40:22.000Z
2020-10-31T19:40:22.000Z
import numpy as np import shlex import sys import os from respy.python.read.read_auxiliary import check_line def read(fname): """ Read and process a RESPY initialization file. """ # Check input assert os.path.exists(fname) # Initialization dict_, group = {}, None with open(fname) as in_...
28.696078
76
0.580799
d556c64c20f60057e56a4da8cad61e90ec031ca3
1,454
py
Python
quality.py
naskio/watermark-remover
3c6150e4a323eab95c8740487d3c7f1875c7e33e
[ "Unlicense" ]
2
2022-01-14T18:42:51.000Z
2022-01-16T17:11:58.000Z
quality.py
naskio/watermark-remover
3c6150e4a323eab95c8740487d3c7f1875c7e33e
[ "Unlicense" ]
null
null
null
quality.py
naskio/watermark-remover
3c6150e4a323eab95c8740487d3c7f1875c7e33e
[ "Unlicense" ]
null
null
null
from PIL import Image def improve_text_in_image(image: Image) -> Image: """ Improve the quality of the text in the image. :param image: :return: """ black = (0, 0, 0) white = (255, 255, 255) threshold = (160, 160, 160) image = image.convert("LA") pixels = image.getdata() ne...
27.961538
86
0.645117
d556c9bdd99ba80ca514e708569e1c60cd2f368c
4,100
py
Python
server/sdn.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
server/sdn.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
server/sdn.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
1
2019-11-18T06:34:20.000Z
2019-11-18T06:34:20.000Z
import yaml import time import random import subprocess import uuid import logging import argparse from multiprocessing import Process fmt = "[%(asctime)-15s][%(levelname)s][%(filename)s:%(lineno)d][%(process)d]%(message)s" datefmt = "%a %d %b %Y %H:%M:%S" logging.basicConfig(format=fmt, datefmt=datefmt, level=21) cl...
31.29771
88
0.489756
d556cc7fea29e0caf1fa1e40c5e3655a06264784
2,862
py
Python
qualtrics_api_wrapper/__admin/external_functions.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
qualtrics_api_wrapper/__admin/external_functions.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
qualtrics_api_wrapper/__admin/external_functions.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
# %% import os import pickle import time from tqdm import tqdm import json import requests as r from datetime import datetime from qualtrics.__admin.internal_functions import read_settings, save_settings, _test_type from qualtrics.__admin.__decorators import time_taken # %% qualtrics_settings = pickle.load(r...
33.670588
106
0.656883
d5570f2782ceebdf61c4199d67216ec11fed7198
8,008
py
Python
src/sardana/tango/pool/MotorGroup.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/tango/pool/MotorGroup.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/tango/pool/MotorGroup.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
35.122807
94
0.638487
d55750e4f97080696bd20d57c8af7935f6b0b1bd
1,433
py
Python
analysis.py
jamesmullenbach/transformer-lm
8f53a17d67014b4b6a7cdf8b64d71bb05987da0a
[ "MIT" ]
null
null
null
analysis.py
jamesmullenbach/transformer-lm
8f53a17d67014b4b6a7cdf8b64d71bb05987da0a
[ "MIT" ]
null
null
null
analysis.py
jamesmullenbach/transformer-lm
8f53a17d67014b4b6a7cdf8b64d71bb05987da0a
[ "MIT" ]
1
2021-02-04T03:37:31.000Z
2021-02-04T03:37:31.000Z
import os import json import numpy as np import pandas as pd from sklearn.metrics import accuracy_score, confusion_matrix from datasets import _rocstories, read_pws def rocstories(data_dir, pred_path, log_path, **kwargs): preds = pd.read_csv(pred_path, delimiter='\t')['prediction'].values.tolist() _, _, _, l...
46.225806
114
0.715283
d5575c5f7c1612089202dfd5788e2b75d881dae3
5,933
py
Python
doc/plots/bench.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
doc/plots/bench.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
doc/plots/bench.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
import numpy as np from numpy.random import default_rng from matplotlib import pyplot as plt import matplotlib as mpl from matplotlib.ticker import LogLocator import os import pickle mpl.rcParams.update(mpl.rcParamsDefault) class TrackingFcn: def __init__(self, rng, npar): self.ncall = 0 self.y =...
25.908297
79
0.523175
d55764b443c7c57faa1f3dd3fcd2c54d1a9e7621
1,977
py
Python
docs/conf.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
docs/conf.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
docs/conf.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.303571
79
0.665655
d5579362bbbcecadc71d1608e737f45e6ee5e2b1
412
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/python_io/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/python_io/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/python_io/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.python.lib.io.python_io import TFRecordCompressionType from tensorflow.python.lib.io.python_io import TFRecordOptions from tensorflow.python.lib.io.pytho...
45.777778
73
0.842233
d557976e4400c3f7e567bef793bf85106071b4d0
917
py
Python
staff/signals.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
10
2020-10-02T20:03:08.000Z
2022-01-05T17:27:54.000Z
staff/signals.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
3
2020-10-06T14:44:28.000Z
2020-10-07T15:33:23.000Z
staff/signals.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
6
2020-09-22T22:39:38.000Z
2021-07-13T06:45:53.000Z
""" Signals generated by staff app. """ import logging from django.dispatch import receiver from django.contrib.auth.signals import user_logged_in, user_logged_out, user_login_failed from shared.utils import visitor_ip_address from two_factor.signals import user_verified logger = logging.getLogger(__name__) @rece...
31.62069
111
0.736096
d557d3a6903f402f2373afa09065a5313b33f591
2,382
py
Python
py/0973.k-closest-points-to-origin.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0973.k-closest-points-to-origin.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0973.k-closest-points-to-origin.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=973 lang=python3 # # [973] K Closest Points to Origin # # https://leetcode.com/problems/k-closest-points-to-origin/description/ # # algorithms # Medium (64.56%) # Likes: 2829 # Dislikes: 148 # Total Accepted: 436.3K # Total Submissions: 675.8K # Testcase Example: '[[1,3],[-2,2]]\n1' # # G...
25.891304
79
0.571788
d557e01fe167adeb95a8cedab85e2e894ef892e1
1,340
py
Python
largestNumber.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
largestNumber.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
largestNumber.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @project : LeetCode @File : largestNumber.py @Contact : 9824373@qq.com @Desc : 给定一组非负整数,重新排列它们的顺序使之组成一个最大的整数。 示例 1: 输入: [10,2] 输出: 210 示例 2: 输入: [3,30,34,5,9] 输出: 9534330 说明: 输出结果...
23.928571
63
0.461194
d557e4de3246763fae5b544582766770b4b1de7e
1,367
py
Python
algorithms/max_subarray/sub_array_maxsum.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/max_subarray/sub_array_maxsum.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/max_subarray/sub_array_maxsum.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
try: from collections import Iterable except ImportError: from collections.abc import Iterable from collections import defaultdict # TODO def find_sub_arr_maxsum(array): """ Finds the sub array with the maximum value An example: >>> find_sub_arr_maxsum([-2, 1, -3, 4, -1, 2, 1, -5, 4]) [[4,...
23.982456
79
0.577176
d55806092744da1ca085354b60790028c8bf9bbb
40,002
py
Python
cle/loader.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
1
2021-05-11T17:27:28.000Z
2021-05-11T17:27:28.000Z
cle/loader.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
cle/loader.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import os import sys import platform import logging from collections import OrderedDict import archinfo from .address_translator import AT from .utils import ALIGN_UP, key_bisect_insort_left, key_bisect_floor_key try: import claripy except ImportError: claripy = None __...
40.122367
123
0.607245
d55808fb0a5b58992a961ed64731528bcfff71ac
577
py
Python
yandex_dictionary/errors.py
kovalenkong/yandex-dictionary
b60cdb22ac29b9426fb6f818b5d2dddd119c3952
[ "MIT" ]
1
2020-02-05T06:00:53.000Z
2020-02-05T06:00:53.000Z
yandex_dictionary/errors.py
kovalenkong/yandex-dictionary
b60cdb22ac29b9426fb6f818b5d2dddd119c3952
[ "MIT" ]
null
null
null
yandex_dictionary/errors.py
kovalenkong/yandex-dictionary
b60cdb22ac29b9426fb6f818b5d2dddd119c3952
[ "MIT" ]
null
null
null
class YandexAPIError(Exception): error_codes = { 401: "ERR_KEY_INVALID", 402: "ERR_KEY_BLOCKED", 403: "ERR_DAILY_REQ_LIMIT_EXCEEDED", 413: "ERR_TEXT_TOO_LONG", 501: "ERR_LANG_NOT_SUPPORTED", } def __init__(self, response: dict = None): status_code = response...
28.85
78
0.663778
d558230cac704f517393aea6c64dbcf24be3e5a3
1,994
py
Python
lib/data/Dataset.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
lib/data/Dataset.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
lib/data/Dataset.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from torch.autograd import Variable import torch import lib class Dataset(object): def __init__(self, data, opt): self.DATA_KEYS = data.keys() self.TENSOR_KEYS = ['src', 'tgt'] for key in self.DATA_KEYS: setattr(self, key, data[key]) self.opt = op...
39.098039
93
0.569709
d55838806732e2db75d7e849820ca35c3c4764de
4,628
py
Python
marine/simple_marine.py
tomlegkov/marine-python
8e9bbf13cf22a0e9b20d411a379a75456d3df2ba
[ "Apache-2.0" ]
14
2020-03-21T10:33:32.000Z
2022-01-04T20:06:56.000Z
marine/simple_marine.py
tomlegkov/marine-python
8e9bbf13cf22a0e9b20d411a379a75456d3df2ba
[ "Apache-2.0" ]
24
2020-03-20T20:25:22.000Z
2022-01-14T10:09:32.000Z
marine/simple_marine.py
tomlegkov/marine-python
8e9bbf13cf22a0e9b20d411a379a75456d3df2ba
[ "Apache-2.0" ]
2
2020-03-23T16:38:10.000Z
2021-12-17T12:41:37.000Z
from . import encap_consts from .marine import Marine, MarineFilterValidationResult, MarineFieldsValidationResult from typing import Optional, List, Dict, Tuple marine_instance = None def init_instance(epan_auto_reset_count: Optional[int] = None) -> Marine: global marine_instance if marine_instance is None:...
35.6
125
0.710242
d55868fdeb44489b8c071090dca0440c93e65567
312
py
Python
tree/bst/findtargetBST.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
tree/bst/findtargetBST.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
tree/bst/findtargetBST.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def findTarget(self, root, k): if not root: return False bfs, s = [root], set() for i in bfs: if k - i.val in s: return True s.add(i.val) if i.left: bfs.append(i.left) if i.right: bfs.append(i.right) return False
31.2
43
0.50641
d5588ba361bce2e73b7513b6cda1dc3b9b059328
13,969
py
Python
hydrosdk/signature.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
5
2020-02-20T08:53:43.000Z
2021-02-19T12:00:23.000Z
hydrosdk/signature.py
Hydrospheredata/hydro-serving-sdk
94bc4d8335ffe0bf4c90af336656d3e5473952c4
[ "Apache-2.0" ]
43
2019-09-30T15:23:48.000Z
2021-05-13T08:06:45.000Z
hydrosdk/signature.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
6
2019-08-27T17:15:45.000Z
2021-08-10T13:09:21.000Z
import numbers import operator from enum import Enum from functools import reduce from typing import Optional, Union, Iterable, List import numpy as np from hydro_serving_grpc.serving.contract.signature_pb2 import ModelSignature from hydro_serving_grpc.serving.contract.field_pb2 import ModelField from hydro_serving_gr...
35.010025
122
0.643067
d558c59fbb4e8bfe620bc8eeca330ee18e6907c2
22,139
py
Python
python_ws/her/ddpg.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
2
2019-02-28T01:47:23.000Z
2021-04-10T14:37:46.000Z
python_ws/her/ddpg.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
python_ws/her/ddpg.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import tensorflow as tf from tensorflow.contrib.staging import StagingArea from baselines import logger from baselines.her.util import ( import_function, store_args, flatten_grads, transitions_in_episode_batch, convert_episode_to_batch_major) from baselines.h...
49.088692
212
0.63011
d558c64eacae52944b62328f9518b56b69438ea3
20,734
py
Python
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/__init__.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
7
2016-01-20T01:44:36.000Z
2019-01-29T11:52:39.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/__init__.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
4
2016-01-27T17:42:07.000Z
2021-08-13T12:31:25.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/__init__.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
2
2015-11-15T09:11:34.000Z
2019-01-29T11:52:41.000Z
"""Unicode Properties.""" from . import unidata import sys UNICODE_RANGE = '\u0000-\U0010ffff' ASCII_RANGE = '\x00-\xff' PY34 = sys.version_info >= (3, 4) PY35 = sys.version_info >= (3, 5) PY37 = sys.version_info >= (3, 7) MODE_NORMAL = 0 MODE_ASCII = 1 MODE_UNICODE = 2 def fmt_string(value, is_bytes): """Form...
34.556667
124
0.657519
d558d9fc3616be58224fece57cf18a5f0b411855
1,838
py
Python
custom/covid/management/commands/update_cases.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
custom/covid/management/commands/update_cases.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
2
2020-04-16T13:25:44.000Z
2021-02-08T22:08:28.000Z
custom/covid/management/commands/update_cases.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from corehq.apps.linked_domain.dbaccessors import get_linked_domains from corehq.apps.users.util import SYSTEM_USER_ID from corehq.apps.users.util import username_to_user_id from corehq.form_processor.interfaces.dbaccessors import CaseAccessors class CaseUpdateComm...
34.679245
91
0.681175
d558ed633474d6104e58d15259d726f6747904bd
8,127
py
Python
src/data_support/conll_wrapper.py
hiteshpindikanti/OrthogonalTransformerProbing
a3f17126463825cd8fe3baa4bccfb64f972ce850
[ "MIT" ]
null
null
null
src/data_support/conll_wrapper.py
hiteshpindikanti/OrthogonalTransformerProbing
a3f17126463825cd8fe3baa4bccfb64f972ce850
[ "MIT" ]
2
2021-03-26T19:30:55.000Z
2021-11-10T19:57:45.000Z
src/data_support/conll_wrapper.py
tomlimi/OrthogonalTransformerProbing
78461237cfce9f677bb3c7d3bbdf5af7b4f395cd
[ "MIT" ]
1
2021-12-12T04:32:25.000Z
2021-12-12T04:32:25.000Z
import numpy as np import tensorflow as tf from collections import defaultdict import networkx as nx import constants RANDOM_SEED = 2019 class ConllWrapper(): max_wordpieces = None def __init__(self, conll_file, bert_tokenizer): self.conllu_name = conll_file self.tokenizer = bert_tokenize...
40.635
136
0.59247
d559271b88067f1b332818a736955504517b1537
4,846
py
Python
tests/fixtures/project_django/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
tests/fixtures/project_django/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
tests/fixtures/project_django/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
import os from werkzeug.middleware.shared_data import SharedDataMiddleware from demo_project.wsgi import application as django_wsgi_app app = SharedDataMiddleware(django_wsgi_app, { '/static': os.path.join(os.path.dirname(__file__), 'static') }) freeze_config = {'extra_pages': ['/extra/']} expected_dict = { ...
67.305556
1,935
0.517128
d55927982100856524e65b34d18c368d9142ef33
60,010
py
Python
pygemfxns_postprocessing.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
pygemfxns_postprocessing.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
pygemfxns_postprocessing.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 16 09:04:46 2017 @author: David Rounce pygemfxns_output_postprocessing.py is a mix of post-processing for things like plots, relationships between variables, and any other comparisons between output or input data. """ # Built-in Libraries import os import collections # ...
55.771375
121
0.598967
d559292de46a538fbc3a4eed431f7009a4f6a301
760
py
Python
gobbli/test/augment/test_wordnet.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
276
2019-09-13T08:25:51.000Z
2022-03-05T13:07:55.000Z
gobbli/test/augment/test_wordnet.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
15
2019-09-06T14:05:30.000Z
2022-01-01T20:15:06.000Z
gobbli/test/augment/test_wordnet.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
24
2019-09-18T15:11:42.000Z
2021-12-23T18:59:55.000Z
import pytest from spacy.lang.en import English from gobbli.augment.wordnet import WordNet, _detokenize_doc @pytest.mark.parametrize( "text", [ "This is a test.", "Test with double space.", "Test-with hyphen.", "Testing some 1 2 3 numbers.", ], ) def test_detokenize_doc(t...
22.352941
62
0.643421
d5592ca4c5fce69cae89b0bf856af0a74e49eed8
5,983
py
Python
src/morphforge/morphology/conversion/internal_representation_converter.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/morphology/conversion/internal_representation_converter.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/morphology/conversion/internal_representation_converter.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
39.104575
133
0.640983
d559507e779c6f23114f99a023314118d6402c82
124
py
Python
Test33_textgen/test.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test33_textgen/test.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test33_textgen/test.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
from textgenrnn import textgenrnn textgen=textgenrnn('realDonaldTrump_dril_twitter_weights.hdf5') textgen.generate_samples()
41.333333
63
0.887097
d55967adbe24863fc32cab7a8deb485a50b835d4
7,400
py
Python
appengine/gce-backend/catalog.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/gce-backend/catalog.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/gce-backend/catalog.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Utilities for interacting with the Machine Provider catalog.""" import datetime import json import logging from google.appengine.ext import n...
29.482072
77
0.727162
d559b6fac8bab941a4d9ec76754658b59a0ff3bf
18,889
py
Python
subtask_detection/train_val.py
asaran/gaze-LfD
964635d9bf7b208abe35d40b2bf791b05b8a0c3b
[ "MIT" ]
1
2022-02-16T15:35:58.000Z
2022-02-16T15:35:58.000Z
subtask_detection/train_val.py
asaran/gaze-LfD
964635d9bf7b208abe35d40b2bf791b05b8a0c3b
[ "MIT" ]
null
null
null
subtask_detection/train_val.py
asaran/gaze-LfD
964635d9bf7b208abe35d40b2bf791b05b8a0c3b
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # CGNL Network # Copyright (c) 2018 Kaiyu Yue # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- import os import argparse import time import shutil import numpy as np import torch import torch...
35.842505
115
0.580338
d559d6bee4d2b33b572209ea2f4a69ededc64fd2
7,710
py
Python
catalog/views.py
mtkgeek/local-library
9226a6d16bdc9e82abdbd8be811d0a479258ff74
[ "CC0-1.0" ]
null
null
null
catalog/views.py
mtkgeek/local-library
9226a6d16bdc9e82abdbd8be811d0a479258ff74
[ "CC0-1.0" ]
null
null
null
catalog/views.py
mtkgeek/local-library
9226a6d16bdc9e82abdbd8be811d0a479258ff74
[ "CC0-1.0" ]
null
null
null
from django.shortcuts import render # Create your views here. from .models import Book, Author, BookInstance, Genre, Language def index(request): """View function for home page of site.""" # Generate counts of some of the main objects num_books = Book.objects.all().count() num_instances = BookInstanc...
36.197183
145
0.722049
d559eccd50c80aff16f0bc85c50d6370dc317324
4,589
py
Python
kgtk/cli/paths.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
kgtk/cli/paths.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
kgtk/cli/paths.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
""" Compute paths between nodes in a KGTK graph. TODO: Add --output-file """ import sys from kgtk.cli_argparse import KGTKArgumentParser, KGTKFiles def parser(): return { 'help': 'Compute paths between nodes in a KGTK graph.' } def add_arguments(parser: KGTKArgumentParser): """ Parse argume...
38.889831
137
0.544999
d559f2923525a200301f6686da1c4ad958e5e4c6
11,475
py
Python
UI/DatapacksEditors.py
Wzp-2008/DatapacksEditors
d70801056fe1d05577741e1a0ea5009c8039d803
[ "MIT" ]
3
2022-01-19T13:25:19.000Z
2022-01-24T14:57:04.000Z
UI/DatapacksEditors.py
Wzp-2008/DatapacksEditors
d70801056fe1d05577741e1a0ea5009c8039d803
[ "MIT" ]
null
null
null
UI/DatapacksEditors.py
Wzp-2008/DatapacksEditors
d70801056fe1d05577741e1a0ea5009c8039d803
[ "MIT" ]
2
2022-01-19T13:59:46.000Z
2022-01-24T14:59:45.000Z
# Form implementation generated from reading ui file 'F:\我的python\DatapacksEditors\UI\DatapacksEditors.ui' # # Created by: PyQt6 UI code generator 6.2.2 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 impo...
51.689189
152
0.691329
d55a0195993f001cb690562a5fef2ce0946c46f1
3,331
py
Python
git_vote_cog/config.py
dbford/votecog
6a6211f63844933abb1cce7087e1551f67da07a6
[ "Apache-2.0" ]
null
null
null
git_vote_cog/config.py
dbford/votecog
6a6211f63844933abb1cce7087e1551f67da07a6
[ "Apache-2.0" ]
null
null
null
git_vote_cog/config.py
dbford/votecog
6a6211f63844933abb1cce7087e1551f67da07a6
[ "Apache-2.0" ]
null
null
null
from typing import Optional class BaseConfig: def to_dict(self) -> dict: vals = dict() for k, v in self.__dict__.items(): if isinstance(v, BaseConfig): vals[k] = v.to_dict() else: vals[k] = v return vals def from_dict(self, vals...
28.470085
163
0.607325
d55a1ad636a6c863afb82951745b8e606f84fc06
4,958
py
Python
sdks/python/appcenter_sdk/models/LogFlowEventLog.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/LogFlowEventLog.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/LogFlowEventLog.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class LogFlowEventLo...
26.513369
96
0.562929
d55a2ef2ff85314ea80f25a78728214693a81c5c
2,602
py
Python
doc/create_arg_parser_doc.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
doc/create_arg_parser_doc.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
doc/create_arg_parser_doc.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
32.936709
86
0.652191
d55a3103179295e99a958198c7f11c145db0162d
6,442
py
Python
src/api/projects/db_service.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
src/api/projects/db_service.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
src/api/projects/db_service.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
from enum import Enum from flask import current_app from marshmallow import EXCLUDE from sqlalchemy import or_ from sqlalchemy.orm import subqueryload from src.shared.entity import Session from src.shared.manage_error import CodeError, ManageErrorUtils, TError from .entities import Project, ProjectSchema class Stat...
34.634409
119
0.567991
d55a401db973b2a7540e25cd61daaf7f44400b58
2,084
py
Python
tradition/edge/test.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
tradition/edge/test.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
tradition/edge/test.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
import cv2 import os import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def pooling(feature_map, size=2, stride=2): # Preparing the output of the pooling operation. pool_out = np.zeros((np.uint16((feature_map.shape[0] - size + 1) / stride), np.uin...
28.944444
81
0.647313
d55a55ffcb325ec7a32091e88963d44a57c3dee2
555
py
Python
func_tests/tests/submissionlogtests/test_subject_autocomplete.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/tests/submissionlogtests/test_subject_autocomplete.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/tests/submissionlogtests/test_subject_autocomplete.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import json import unittest from django.test import Client from nose.plugins.attrib import attr @attr('functional_test') class TestAllSubjectsAutoCompleteView(unittest.TestCase): def setUp(self): self.client = Client() self.client.login(username='tester150411@gmail.com', password='tester150411') ...
27.75
85
0.722523