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
5a89815a4e744957c4c36a54daa1bc5c05109602
1,697
py
Python
Packs/HealthCheck/Scripts/HealthCheckExportSummary/HealthCheckExportSummary.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/HealthCheck/Scripts/HealthCheckExportSummary/HealthCheckExportSummary.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/HealthCheck/Scripts/HealthCheckExportSummary/HealthCheckExportSummary.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import json ctx = demisto.context() incident = demisto.incidents()[0] main = { 'incident': incident, 'ctx': ctx, 'widgets': {} } # Save data from widgets # Disk Usage Percentage res = demisto.executeCommand("Healt...
32.634615
85
0.732469
513a79328f993b1c234148a0782d02cbbf7a4c3f
334
py
Python
cride/rides/permissions/rides.py
jesusRL96/curso_platzi_django_adv
870596b1ba7285a25777e14c031c9026a5d0f754
[ "MIT" ]
null
null
null
cride/rides/permissions/rides.py
jesusRL96/curso_platzi_django_adv
870596b1ba7285a25777e14c031c9026a5d0f754
[ "MIT" ]
null
null
null
cride/rides/permissions/rides.py
jesusRL96/curso_platzi_django_adv
870596b1ba7285a25777e14c031c9026a5d0f754
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission class IsRideOwner(BasePermission): def has_object_permission(self, request, view, obj): return request.user == obj.offered_by class IsNotRideOwner(BasePermission): def has_object_permission(self, request, view, obj): return request.user != ...
37.111111
56
0.766467
0189d369aafc369d7dd56a09e04a10ac284b66e5
1,987
py
Python
labgraph/loggers/hdf5/tests/test_logger.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
124
2021-07-14T21:25:59.000Z
2022-03-08T20:40:16.000Z
labgraph/loggers/hdf5/tests/test_logger.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
46
2021-07-16T18:41:11.000Z
2022-03-31T20:53:00.000Z
labgraph/loggers/hdf5/tests/test_logger.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
22
2021-07-16T18:34:56.000Z
2022-03-31T15:12:06.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import sys import h5py from ....messages.types import ( DynamicType, StrDynamicType, StrType, ) from ..logger import HDF5Logger, SERIALIZABLE_DYNAMIC_TYPES from .test_utils import LOGGING_IDS, write_logs_to_hdf5 def test_hdf...
38.211538
87
0.602416
9e62d1b84e24ea6a8452344f6758101229e695d3
138
py
Python
Exercicios/ex030.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
Exercicios/ex030.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
Exercicios/ex030.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
n: int = int(input('Escreva um número na tela: ')) if n % 2 == 0: print('Esse número é par!') else: print('Esse número é impar!')
23
50
0.594203
1209db6d561fe7ac9db9c9b74c9f1c24983a76e6
76,543
py
Python
gdal/swig/python/samples/validate_gpkg.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
gdal/swig/python/samples/validate_gpkg.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
gdal/swig/python/samples/validate_gpkg.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR # Purpose: Test compliance of GeoPackage database w.r.t GeoPackage spec # Author: Even Rouault <even.rouault at spatialys.com> # ################################...
47.190506
114
0.500385
efd3bd307152c17984e010ae708c8f80290a7624
627
py
Python
src/tareas/tarea6.py
HectorMtz22/lang-pro-pia
0fb9cc6190f23f5583076709938ff9c74175d78d
[ "WTFPL" ]
null
null
null
src/tareas/tarea6.py
HectorMtz22/lang-pro-pia
0fb9cc6190f23f5583076709938ff9c74175d78d
[ "WTFPL" ]
null
null
null
src/tareas/tarea6.py
HectorMtz22/lang-pro-pia
0fb9cc6190f23f5583076709938ff9c74175d78d
[ "WTFPL" ]
null
null
null
print("CONVERSOR DE DECIMALES A OTRA BASE") number = input("Ingresa un numero de base decimal: ") base = input("Ingresa la base: ") numbers = [] def residuo(number, base, iteration = 0): cociente = number // base res = number % base print(" " * iteration, res, cociente) numbers.append(res) if (c...
24.115385
54
0.62201
7237faca204a0a651412e7ca60de06a07badae2f
2,037
py
Python
book/chap12/llf/setplot.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
book/chap12/llf/setplot.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
book/chap12/llf/setplot.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Set up the plot figures, axes, and items to be done for each frame. This module is imported by the plotting routines and then the function setplot is called to set the plot parameters. """ #-------------------------- def setplot(plotdata): #-------------------------- """ Specify what is to b...
31.338462
74
0.607266
bee153af226a557cfa60eda1f35d3b328dc74fc9
1,503
py
Python
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
# 5.Online Shop # Assume you have an online shop, and you have a list of orders. # You don’t like that people order in small quantities, which is why you # would like to add an additional CHF 10 to the total price, for all orders # that are below CHF 100 in total. # Write a short Python function compute_totals that r...
26.368421
88
0.624085
e33060eaa2dd7c46b30dcd3ca5f04cab05aecc5b
1,697
py
Python
EMU/ingest/census_example.py
DistrictDataLabs/03-EMU
73c98a9bab74e8802c829a4391877372aa8e2475
[ "Apache-2.0" ]
null
null
null
EMU/ingest/census_example.py
DistrictDataLabs/03-EMU
73c98a9bab74e8802c829a4391877372aa8e2475
[ "Apache-2.0" ]
null
null
null
EMU/ingest/census_example.py
DistrictDataLabs/03-EMU
73c98a9bab74e8802c829a4391877372aa8e2475
[ "Apache-2.0" ]
null
null
null
""" Some basic examples of how to use the Census API class... """ import census """ Before you use this, do the following: 1. There is a file called API.conf.SAMPLE, copy this file and rename it to API.CONF 2. Move this file so it is in the EMU directory (NOT 03-EMU directory) 3. Copy and paste your Census API key in...
24.594203
143
0.713023
37dda117c31be793a029ed058b7f664eab456170
4,969
py
Python
tests/unit/tools/test_files.py
debexpo/debexpo
866b0e61726b14425f02e10977398444785337be
[ "MIT" ]
3
2016-02-17T08:47:07.000Z
2017-05-20T20:43:23.000Z
tests/unit/tools/test_files.py
debexpo/debexpo
866b0e61726b14425f02e10977398444785337be
[ "MIT" ]
44
2015-01-11T00:54:24.000Z
2019-08-17T21:06:25.000Z
tests/unit/tools/test_files.py
debexpo/debexpo
866b0e61726b14425f02e10977398444785337be
[ "MIT" ]
8
2015-01-12T00:57:32.000Z
2017-01-20T23:01:52.000Z
# test_files.py - Unit testing for files helpers # # This file is part of debexpo - # https://salsa.debian.org/mentors.debian.net-team/debexpo # # Copyright © 2008 Serafeim Zanikolas <serzan@hellug.gr> # 2019 Baptiste Beauplat <lyknode@cilg.org> # # Permission is hereby granted, free of charge, ...
40.398374
79
0.697525
a237e0405e44788db074eb3442d48c269a240cf9
2,299
py
Python
troposphere/secretsmanager.py
mansdahlstrom1/troposphere
deacf87ac179ee32bff5f07ee969d9c3dfebf10d
[ "BSD-2-Clause" ]
1
2021-02-14T15:18:12.000Z
2021-02-14T15:18:12.000Z
troposphere/secretsmanager.py
mansdahlstrom1/troposphere
deacf87ac179ee32bff5f07ee969d9c3dfebf10d
[ "BSD-2-Clause" ]
null
null
null
troposphere/secretsmanager.py
mansdahlstrom1/troposphere
deacf87ac179ee32bff5f07ee969d9c3dfebf10d
[ "BSD-2-Clause" ]
5
2020-05-10T13:50:32.000Z
2021-09-09T09:06:54.000Z
# Copyright (c) 2015, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty, Tags from .compat import policytypes from .validators import integer, boolean VALID_TARGET_TYPES = ('AWS::RDS::DBInstance', 'AWS::RDS::DBCluster') def validate_target_t...
27.698795
68
0.644628
cdb161e109dcaed0ee04b8a490472ebef5fedd06
3,599
py
Python
Trabalhos_Python/Fase_2/Iluminacao_prisma/prisma_iluminado.py
LucassAbm/Trabalhos_CompGrafica
499ff1c33bcd5a49848fb76d1d6c40ee33d4b0b6
[ "MIT" ]
null
null
null
Trabalhos_Python/Fase_2/Iluminacao_prisma/prisma_iluminado.py
LucassAbm/Trabalhos_CompGrafica
499ff1c33bcd5a49848fb76d1d6c40ee33d4b0b6
[ "MIT" ]
null
null
null
Trabalhos_Python/Fase_2/Iluminacao_prisma/prisma_iluminado.py
LucassAbm/Trabalhos_CompGrafica
499ff1c33bcd5a49848fb76d1d6c40ee33d4b0b6
[ "MIT" ]
1
2022-03-14T02:48:39.000Z
2022-03-14T02:48:39.000Z
from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * import math from math import * import sys a = 0 def calculaNormalFace(v0, v1, v2): x = 0 y = 1 z = 2 U = (v2[x]-v0[x], v2[y]-v0[y], v2[z]-v0[z]) V = (v1[x]-v0[x], v1[y]-v0[y], v1[z]-v0[z]) N = ((U[y]*V[z]...
27.06015
86
0.589886
0995b06f369f13b47539de76dcc31a4570f7953f
1,787
py
Python
src/export_embeddings_artifacts.py
TimurDzhumakaev/retailhero-recommender-workspace
419576ab47d0cbb1aa2d50e1d1ea17c71c04726d
[ "MIT" ]
100
2020-01-09T10:46:26.000Z
2022-03-24T08:25:40.000Z
src/export_embeddings_artifacts.py
TimurDzhumakaev/retailhero-recommender-workspace
419576ab47d0cbb1aa2d50e1d1ea17c71c04726d
[ "MIT" ]
1
2020-09-28T05:25:32.000Z
2020-09-28T05:25:32.000Z
src/export_embeddings_artifacts.py
TimurDzhumakaev/retailhero-recommender-workspace
419576ab47d0cbb1aa2d50e1d1ea17c71c04726d
[ "MIT" ]
26
2020-01-20T08:39:04.000Z
2022-01-18T08:46:17.000Z
# if you are confused with `artifact` in filename, please read # https://english.stackexchange.com/questions/37903/difference-between-artifact-and-artefact import glob import json import os from collections import defaultdict import numpy as np import pandas as pd import torch from scipy import sparse as sp from torc...
33.092593
101
0.74986
82af6901499a848e02d16713436739fbe5b423e9
4,539
py
Python
mldock/api/registry.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
2
2021-07-12T13:51:21.000Z
2021-07-19T08:40:02.000Z
mldock/api/registry.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
41
2021-06-28T11:05:20.000Z
2022-03-13T13:48:50.000Z
mldock/api/registry.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
1
2021-07-17T19:07:06.000Z
2021-07-17T19:07:06.000Z
"""Registry API methods""" import logging import click import docker logger = logging.getLogger("mldock") def compute_progress(current, max_value=10): """ compute the progress bar update args: current (int): current count of progress bar max_value (int): (default=10) maximum length of pr...
29.474026
92
0.604318
db6377516e714c33a67d8498493b5a1ef0ad3066
6,364
py
Python
salt/returners/__init__.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
salt/returners/__init__.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
1
2018-08-23T18:25:42.000Z
2018-08-23T18:25:42.000Z
salt/returners/__init__.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' Returners Directory :func:`get_returner_options` is a general purpose function that returners may use to fetch their configuration options. ''' from __future__ import absolute_import import logging log = logging.getLogger(__name__) def get_returner_options(virtualname=None, ...
27.431034
79
0.62335
8a8451eae87aa7d497d3b253cd91dcb2a295e8ae
404
py
Python
protocol_controller/plugins/cbsd_sas/tests/fixtures/fake_requests/heartbeat_requests.py
magma/domain-proxy
e6567740e1780d011b0b3ebd366e134d77f434b3
[ "BSD-3-Clause" ]
null
null
null
protocol_controller/plugins/cbsd_sas/tests/fixtures/fake_requests/heartbeat_requests.py
magma/domain-proxy
e6567740e1780d011b0b3ebd366e134d77f434b3
[ "BSD-3-Clause" ]
298
2021-03-31T19:29:45.000Z
2022-03-31T11:30:44.000Z
protocol_controller/plugins/cbsd_sas/tests/fixtures/fake_requests/heartbeat_requests.py
openEPC/domain-proxy
e6567740e1780d011b0b3ebd366e134d77f434b3
[ "BSD-3-Clause" ]
5
2021-03-31T09:26:37.000Z
2021-03-31T21:34:16.000Z
heartbeat_requests = [ { "heartbeatRequest": [ { "cbsdId": "foo", "grantId": "foo1", "operationState": "foo2" } ] }, { "heartbeatRequest": [ { "cbsdId": "bar", "grantId...
19.238095
40
0.311881
eb81fb2a766050b3a06c54b9ba685f7c3c857462
2,010
py
Python
cycada/util.py
yeeyangtee/cycada_release
17d7207e27b9a93d477741f73b7a69525148120d
[ "BSD-2-Clause" ]
null
null
null
cycada/util.py
yeeyangtee/cycada_release
17d7207e27b9a93d477741f73b7a69525148120d
[ "BSD-2-Clause" ]
null
null
null
cycada/util.py
yeeyangtee/cycada_release
17d7207e27b9a93d477741f73b7a69525148120d
[ "BSD-2-Clause" ]
null
null
null
import logging import logging.config import os.path from collections import OrderedDict import numpy as np import torch import yaml from torch.nn.parameter import Parameter from tqdm import tqdm class TqdmHandler(logging.StreamHandler): def __init__(self): logging.StreamHandler.__init__(self) def e...
28.714286
77
0.659204
6925ee76538c1a5bf435f982119ac56d518f765b
3,250
py
Python
source/python/backup/database.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/python/backup/database.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/python/backup/database.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
# !/usr/bin/python2 """ DATABASE """ __all__ = ['database'] # Import required python libraries import os, sys import sqlite3 from syslog.utils import sprint, eprint, str_to_bool count = 0 folder = '/var/sqlite' file = os.getenv('DB_FILE') path = os.path.join(folder, file) in_memory = str_to_bool(os.getenv('DB_MEMORY...
37.790698
291
0.661538
8ee13cd4319f0d5edc6259af4ad0b176ee90068f
520
py
Python
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_pattern_2_xsd/nistschema_sv_iv_list_unsigned_byte_pattern_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_pattern_2_xsd/nistschema_sv_iv_list_unsigned_byte_pattern_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_pattern_2_xsd/nistschema_sv_iv_list_unsigned_byte_pattern_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-unsignedByte-pattern-2-NS" @dataclass class NistschemaSvIvListUnsignedBytePattern2: class Meta: name = "NISTSchema-SV-IV-list-unsignedByte-pattern-2" namespace = "NISTSchema-SV-IV-list-unsigned...
26
69
0.638462
88f3b2d76c5a9f7fd876493bc8ddafe86b510178
1,884
py
Python
src/affinity_matrix.py
vaishnavi-sridhar/CU_HIN
686a0cf883fbface41acdcdeba44eb8805bb74e1
[ "MIT" ]
2
2021-02-24T21:32:33.000Z
2021-06-08T19:29:56.000Z
src/affinity_matrix.py
vaishnavi-sridhar/CU_HIN
686a0cf883fbface41acdcdeba44eb8805bb74e1
[ "MIT" ]
1
2021-04-10T08:39:09.000Z
2021-04-10T08:39:09.000Z
src/affinity_matrix.py
vaishnavi-sridhar/CU_HIN
686a0cf883fbface41acdcdeba44eb8805bb74e1
[ "MIT" ]
4
2021-03-03T04:38:45.000Z
2022-03-01T22:35:48.000Z
from scipy.sparse import lil_matrix, csr_matrix, dia_matrix import numpy as np import math import logging def affinity_matrix(M: csr_matrix, threshold: float) -> csr_matrix: """ Computes the affinity matrix for matrix M. Each row is compared to each other row and a gaussian is used to calculate how close the ...
26.535211
83
0.618365
835f3c12327c66cacc06cb414cdba1c313ba6da7
377
py
Python
tests/test_longest_valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
tests/test_longest_valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
tests/test_longest_valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
import pytest from problems.longest_valid_parentheses import Solution @pytest.mark.parametrize("s, expected", [ ("", 0), (")(", 0), ("()", 2), ("(())", 4), ("()()", 4), ("(()()", 4), (")()()", 4), ("()())()", 4), ("()(())", 6), ]) def test_longestValidParentheses(s, expected): ...
20.944444
60
0.498674
fac59c03dc212aee154818f10cf7e1638716bbf4
21,806
py
Python
bw2io/extractors/simapro_csv.py
brightway-lca/brightway2-io-copy
8383adc2f0cb06852f689fb2aab62d5a29f41130
[ "BSD-3-Clause" ]
null
null
null
bw2io/extractors/simapro_csv.py
brightway-lca/brightway2-io-copy
8383adc2f0cb06852f689fb2aab62d5a29f41130
[ "BSD-3-Clause" ]
3
2020-03-10T11:08:18.000Z
2020-03-10T11:09:00.000Z
bw2io/extractors/simapro_csv.py
brightway-lca/brightway2-io-copy
8383adc2f0cb06852f689fb2aab62d5a29f41130
[ "BSD-3-Clause" ]
null
null
null
import csv import math import os import re import uuid from numbers import Number from bw2data.logs import close_log, get_io_logger from bw2parameters import ParameterSet from stats_arrays import ( LognormalUncertainty, NormalUncertainty, TriangularUncertainty, UndefinedUncertainty, UniformUncertai...
34.286164
156
0.523342
38f4ce85f6a073f6640092229423af2abe2fbdaf
3,375
py
Python
scripts/slave/recipes/infra/luci_gae.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipes/infra/luci_gae.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipes/infra/luci_gae.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'depot_tools/bot_update', 'depot_tools/gclient', 'depot_tools/git', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/propertie...
32.142857
84
0.64
0eb0ceda657bc4d4e96ed44af26a131785dcc574
638
py
Python
oops_fhir/r4/value_set/restful_capability_mode.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/restful_capability_mode.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/restful_capability_mode.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.restful_capability_mode import ( RestfulCapabilityMode as RestfulCapabilityMode_, ) __all__ = ["RestfulCapabilityMode"] _resource = _ValueSet.parse_file(Path(_...
20.580645
69
0.755486
5fa98d222f0b15357816897d8dbba04ae1f98210
1,925
py
Python
vectorhub/encoders/image/tfhub/bit.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
385
2020-10-26T13:12:11.000Z
2021-10-07T15:14:48.000Z
vectorhub/encoders/image/tfhub/bit.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
24
2020-10-29T13:16:31.000Z
2021-08-31T06:47:33.000Z
vectorhub/encoders/image/tfhub/bit.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
45
2020-10-29T15:25:19.000Z
2021-09-05T21:50:57.000Z
from datetime import date from ....base import catch_vector_errors from ....doc_utils import ModelDefinition from ....import_utils import * from ..base import BaseImage2Vec if is_all_dependency_installed('encoders-image-tfhub'): import tensorflow as tf import tensorflow_hub as hub BITModelDefinition = ModelDe...
39.285714
96
0.668571
c0fe2b35ec024dc5f622e32820ec60f6e29e2e2c
9,343
py
Python
src/sage/plot/density_plot.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/plot/density_plot.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/plot/density_plot.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
""" Density Plots """ #***************************************************************************** # Copyright (C) 2006 Alex Clemesha <clemesha@gmail.com>, # William Stein <wstein@gmail.com>, # 2008 Mike Hansen <mhansen@gmail.com>, # Arnaud ...
35.660305
131
0.586321
18b1e0e91d766fe67a717be42b69fd4ae0baa0e5
52,007
py
Python
doc/conf.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 import gc import os import sys import time import warnings fr...
47.065158
300
0.636299
e2dc9c25d41243c7b937676d4e95517baca56c49
12,321
py
Python
src/sagemaker/xgboost/estimator.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
1
2021-07-16T20:14:59.000Z
2021-07-16T20:14:59.000Z
src/sagemaker/xgboost/estimator.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
null
null
null
src/sagemaker/xgboost/estimator.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
45.464945
100
0.671618
882e3a1502cfd5552b9f71412489ea91b777491c
895
py
Python
onnxmltools/convert/coreml/operator_converters/Normalizer.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
3
2019-02-27T21:03:43.000Z
2020-04-07T22:16:50.000Z
onnxmltools/convert/coreml/operator_converters/Normalizer.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
null
null
null
onnxmltools/convert/coreml/operator_converters/Normalizer.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
2
2020-10-01T09:24:55.000Z
2021-04-17T13:57:31.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from ...c...
37.291667
119
0.604469
f8fb238cdbdb8d733767962afe4cb8c0b6100912
8,532
py
Python
frappe/desk/form/load.py
Mitchy25/frappe
807dc0facb6dcdd9bd53557ce7d3c499beb1c26a
[ "MIT" ]
null
null
null
frappe/desk/form/load.py
Mitchy25/frappe
807dc0facb6dcdd9bd53557ce7d3c499beb1c26a
[ "MIT" ]
null
null
null
frappe/desk/form/load.py
Mitchy25/frappe
807dc0facb6dcdd9bd53557ce7d3c499beb1c26a
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, json import frappe.utils import frappe.share import frappe.defaults import frappe.desk.form.meta from frappe.model.utils.user_settings import get_user_settings from...
30.14841
111
0.723043
b5212334dfc9a0ccf2e802366139f23c10cdbaea
939
py
Python
python/router/__init__.py
michaeldboyd/indy-agent
3371a44144f45c7978b3454a440fe143eda7b1de
[ "Apache-2.0" ]
null
null
null
python/router/__init__.py
michaeldboyd/indy-agent
3371a44144f45c7978b3454a440fe143eda7b1de
[ "Apache-2.0" ]
2
2020-07-17T03:35:07.000Z
2021-05-08T23:22:31.000Z
python/router/__init__.py
michaeldboyd/indy-agent
3371a44144f45c7978b3454a440fe143eda7b1de
[ "Apache-2.0" ]
2
2019-05-30T06:56:20.000Z
2019-11-05T16:39:59.000Z
""" Module containing router implementations. A base router is provided to show the basic interface of routers. """ from typing import Callable from python_agent_utils.messages.message import Message class BaseRouter: """ Router Base Class. Provide basic interface for additional routers. """ async d...
27.617647
78
0.702875
ffe5ba68e1b704fd7b3f2ee9ce002364b28d0451
6,793
py
Python
scripts/classcompare.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
2
2018-08-29T14:50:25.000Z
2018-09-12T13:45:25.000Z
scripts/classcompare.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
5
2018-06-15T01:04:13.000Z
2021-03-02T15:58:33.000Z
scripts/classcompare.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
2
2019-07-19T07:59:15.000Z
2019-11-27T18:53:03.000Z
#!/usr/bin/env python # ClassCompare - Compare entire TC classes to one another using P2. # This program will skip members of the same superfamily. import protocol2 import tcdb import urllib import scala import os,re import blast import shutil import pickle import templates #import resource from Bio import SeqIO from...
41.420732
164
0.599441
a3c980cfd55ca3c23a5bb896a0a6efd3d994521c
6,762
py
Python
kubernetes_asyncio/client/models/v1_deployment.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_deployment.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_deployment.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Deployme...
30.597285
295
0.603668
773ffed8473b6f6a1153fd7bfce27f0c5a647ff1
2,004
py
Python
astr2600/galileo.py
zkbt/cu-astr2600
cfba78289f664a260d7e5cd7a1e45a6e9b06ec33
[ "MIT" ]
1
2020-07-14T00:09:43.000Z
2020-07-14T00:09:43.000Z
astr2600/galileo.py
zkbt/cu-astr2600
cfba78289f664a260d7e5cd7a1e45a6e9b06ec33
[ "MIT" ]
null
null
null
astr2600/galileo.py
zkbt/cu-astr2600
cfba78289f664a260d7e5cd7a1e45a6e9b06ec33
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def drawMoons(names, xpositions, xlim=[-500,500], labels=True): ''' Draw a plot of the positions of moons relative to Jupiter. This function requires two input arguments. They should both be lists, and they should be the same size as each other. T...
30.363636
93
0.621257
a5c3ac1db1bd2ad5b98d68b132faf92132eea658
32,664
py
Python
python/ccxt/async_support/bitmart.py
alok46/ccxt
ea94147e03e6974384727ead440a7cd2e80f7078
[ "MIT" ]
1
2019-10-30T13:32:54.000Z
2019-10-30T13:32:54.000Z
python/ccxt/async_support/bitmart.py
alok46/ccxt
ea94147e03e6974384727ead440a7cd2e80f7078
[ "MIT" ]
null
null
null
python/ccxt/async_support/bitmart.py
alok46/ccxt
ea94147e03e6974384727ead440a7cd2e80f7078
[ "MIT" ]
2
2019-12-02T10:32:52.000Z
2020-03-22T00:58:58.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
38.747331
164
0.477774
f83e842051d7720c1ed75e98c6569e905db61c58
601
py
Python
library/core/schema.py
gabrielloliveira/library-ql
65776af5037b03dfe899c978dbb13e6c473e6c92
[ "MIT" ]
2
2021-05-02T16:26:56.000Z
2021-05-05T19:05:18.000Z
library/core/schema.py
gabrielloliveira/library-ql
65776af5037b03dfe899c978dbb13e6c473e6c92
[ "MIT" ]
null
null
null
library/core/schema.py
gabrielloliveira/library-ql
65776af5037b03dfe899c978dbb13e6c473e6c92
[ "MIT" ]
null
null
null
import graphene from graphene import relay from graphene_django import DjangoObjectType from graphene_django.filter import DjangoFilterConnectionField from .models import Book class BookNode(DjangoObjectType): class Meta: model = Book fields = ("uuid", "created_at", "updated_at", "name") ...
26.130435
62
0.673877
e0dbb35cdb1432a040ea41e02ab6ceb6622ed5ab
3,090
py
Python
edx_data_research/reporting/basic/ip_to_country.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
edx_data_research/reporting/basic/ip_to_country.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
edx_data_research/reporting/basic/ip_to_country.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
''' This module retrieve IP addresses for each student and maps their IP to a country This is to determine the diversity of students who took a given course The geoip module and GeoIP.dat file was used to map the IP address to a country Each user may have multiple ips, so this module retrieves all the countries mapped...
46.818182
87
0.59288
27273305d6a729de5868306fbc02e0fe222791f8
960
py
Python
DAFNI-wrappers/base-image/dockerFiles/settings.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
5
2019-12-18T15:27:28.000Z
2020-10-03T09:10:23.000Z
DAFNI-wrappers/base-image/dockerFiles/settings.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
11
2019-12-18T14:53:03.000Z
2021-12-30T07:26:46.000Z
DAFNI-wrappers/base-image/dockerFiles/settings.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
3
2019-12-18T15:27:39.000Z
2022-02-25T07:04:06.000Z
""" The settings module which points the settings at environment variables. """ import os from pathlib import Path # Static settings INPUT_PATH = Path("/data/inputs/") OUTPUT_PATH = Path("/data/outputs/") CONFIG_FILE = Path("/code/script_config.ini") RESULTS_PATH = Path("/code/nismod2/results/") NISMOD_PATH = Path("/...
36.923077
85
0.779167
d236664b390f83d9798389cfd0fa72d2e359b280
16,138
py
Python
uvcgan/base/networks.py
LS4GAN/uvcgan
376439ae2a9be684ff279ddf634fe137aadc5df5
[ "BSD-2-Clause" ]
20
2022-02-14T22:36:19.000Z
2022-03-29T06:31:30.000Z
uvcgan/base/networks.py
LS4GAN/uvcgan
376439ae2a9be684ff279ddf634fe137aadc5df5
[ "BSD-2-Clause" ]
1
2022-03-09T17:23:30.000Z
2022-03-09T17:23:30.000Z
uvcgan/base/networks.py
LS4GAN/uvcgan
376439ae2a9be684ff279ddf634fe137aadc5df5
[ "BSD-2-Clause" ]
3
2022-02-14T22:36:41.000Z
2022-03-20T12:53:29.000Z
# LICENSE # This file was extracted from # https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix # Please see `uvcgan/base/LICENSE` for copyright attribution and LICENSE # pylint: disable=line-too-long # pylint: disable=redefined-builtin # pylint: disable=too-many-arguments # pylint: disable=unidiomatic-typecheck ...
40.446115
178
0.603297
21618d722a35f8b86ebdeb0330a685455daf8fca
5,275
py
Python
keyring.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
2
2015-05-25T10:47:30.000Z
2017-12-12T18:15:00.000Z
keyring.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
keyring.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
from go import bytes, encoding.hex, fmt, io.ioutil, regexp from go.crypto import rand, sha256 import conv, dh, flag, sym from "github.com/strickyak/rye/contrib" import data "The global RingDict." RingDict = {} Ring = {} RingFilename = flag.String('ring', '', 'name of keyring file') RingSecret = flag.String('secret', ...
26.77665
97
0.603791
2cbc1179ee9458695bdbf1b161ff5dcd4f2aeeea
1,866
py
Python
tests/contract_tests/KT1VYsVfmobT7rsMVivvZ4J8i3bPiqz12NaH/test_vysvfm_mint.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
98
2019-02-07T16:33:38.000Z
2022-03-31T15:53:41.000Z
tests/contract_tests/KT1VYsVfmobT7rsMVivvZ4J8i3bPiqz12NaH/test_vysvfm_mint.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
152
2019-05-20T16:38:56.000Z
2022-03-30T14:24:38.000Z
tests/contract_tests/KT1VYsVfmobT7rsMVivvZ4J8i3bPiqz12NaH/test_vysvfm_mint.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
34
2019-07-25T12:03:51.000Z
2021-11-11T22:23:38.000Z
from unittest import TestCase from os.path import dirname, join import json from pytezos.michelson.program import MichelsonProgram from pytezos.michelson.types.big_map import big_map_diff_to_lazy_diff from pytezos.michelson.forge import forge_micheline, unforge_micheline folder = 'dexter_usdtz_xtz' entrypoint = 'remo...
38.875
112
0.720793
5dd4690029de33ad33881f86ffad75ef3ba57a82
668
py
Python
algorithm/jinshan.py
sheldonl3/python_learning
cfd82e90c3d4104339164c082a8964405b13dd2f
[ "MIT" ]
null
null
null
algorithm/jinshan.py
sheldonl3/python_learning
cfd82e90c3d4104339164c082a8964405b13dd2f
[ "MIT" ]
null
null
null
algorithm/jinshan.py
sheldonl3/python_learning
cfd82e90c3d4104339164c082a8964405b13dd2f
[ "MIT" ]
null
null
null
def work(N): if N == 0: return if N == 1: print(1) return if N == 2: tmp=[1,1,1] print(1) for each in tmp: print(each, end=' ') return tmp = [1, 1, 1] print(1) for each in tmp: print(each, end=' ') a, b = 1, 1 li...
18.555556
32
0.396707
beaa0944277ea689df3fabaf124b79e81a196807
1,303
py
Python
scripts/workers/id2tax.py
hurwitzlab/taxoner-patric
f761f4e0bcaae92340538ed4af94f39a37da44ed
[ "Apache-2.0" ]
null
null
null
scripts/workers/id2tax.py
hurwitzlab/taxoner-patric
f761f4e0bcaae92340538ed4af94f39a37da44ed
[ "Apache-2.0" ]
null
null
null
scripts/workers/id2tax.py
hurwitzlab/taxoner-patric
f761f4e0bcaae92340538ed4af94f39a37da44ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse from collections import defaultdict if __name__ == "__main__": parser = \ argparse.ArgumentParser(description="Script to count taxas.") parser.add_argument("-f", "--file", action="store", \ help="File to count taxas from") parser.add_argument("-o1", "--out...
28.326087
87
0.646969
c8a6c33dc32b150b6139b1eddf5670e19dccea60
1,499
py
Python
gapid_tests/command_buffer_tests/DispatchAndDispatchIndirect_test/DispatchAndDispatchIndirect_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
55
2017-06-20T13:54:31.000Z
2022-02-08T23:58:11.000Z
gapid_tests/command_buffer_tests/DispatchAndDispatchIndirect_test/DispatchAndDispatchIndirect_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
53
2017-06-15T19:23:07.000Z
2022-03-30T19:56:30.000Z
gapid_tests/command_buffer_tests/DispatchAndDispatchIndirect_test/DispatchAndDispatchIndirect_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
42
2017-06-15T19:05:40.000Z
2022-03-30T14:15:25.000Z
# Copyright 2017 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 applicable law or agreed to in writing, softwa...
38.435897
74
0.762508
17b91ebb149ff794e7ab9e3c0e500dbf74dd6ee0
2,039
py
Python
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from acttypes import ActType class Act(object): """ basic action class. """ def __init__(self, subject, act_type, action, description, with_subject=False): self.action = action self.act_type = act_type self.description = description self.subject = ...
23.436782
83
0.583619
56c5e622b288ece0a397f1d8b7ae5f738d537404
5,218
py
Python
pymatgen/analysis/tests/test_functional_groups.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
6
2015-02-06T08:27:09.000Z
2021-02-28T14:42:52.000Z
pymatgen/analysis/tests/test_functional_groups.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
null
null
null
pymatgen/analysis/tests/test_functional_groups.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
3
2018-10-17T19:08:09.000Z
2021-12-02T20:26:58.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os import warnings from pymatgen.core.structure import Molecule from pymatgen.analysis.graphs import MoleculeGraph from pymatgen.analysis.local_env import OpenBabelNN from pymatgen.analy...
35.739726
93
0.705059
ff04b4092d8af4712e3274368555c4e9dfe42cb4
1,039
py
Python
ymir/backend/src/pymir-app/app/schemas/runtime.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
1
2022-01-12T03:12:47.000Z
2022-01-12T03:12:47.000Z
ymir/backend/src/pymir-app/app/schemas/runtime.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/pymir-app/app/schemas/runtime.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
import enum import json from datetime import datetime from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, EmailStr, Field, validator from app.schemas.common import ( Common, DateTimeModelMixin, IdModelMixin, IsDeletedModelMixin, ) class RuntimeType(enum.IntEnum): ...
17.610169
78
0.676612
0b2fc3669689c275dbab8a7fdf5e46a1407b4dab
8,039
py
Python
stratlib/bollinger_band.py
llmofang/backtest
9a2b10ab604defcca7f4b7d4111526130d79192b
[ "Apache-2.0" ]
null
null
null
stratlib/bollinger_band.py
llmofang/backtest
9a2b10ab604defcca7f4b7d4111526130d79192b
[ "Apache-2.0" ]
null
null
null
stratlib/bollinger_band.py
llmofang/backtest
9a2b10ab604defcca7f4b7d4111526130d79192b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 03 13:06:56 2015 @author: Eunice """ if __name__ == '__main__': import sys sys.path.append("..") from pyalgotrade import bar from pyalgotrade import plotter # 以上模块仅测试用 from pyalgotrade.broker.fillstrategy import DefaultStrategy from pyalgotrade.broker.bac...
31.03861
111
0.602563
42dc4c4a1948c5b69eef5be773a009923fccc907
3,511
py
Python
tests/test_writers.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
13
2020-12-21T14:43:08.000Z
2022-02-16T03:35:14.000Z
tests/test_writers.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
137
2019-08-14T17:00:15.000Z
2022-03-29T14:48:38.000Z
tests/test_writers.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
6
2019-08-30T08:00:22.000Z
2022-01-19T20:06:24.000Z
""" Unit tests for buildH_calcOP. Test functions from module writers. """ import pathlib import filecmp import pytest import pandas as pd import MDAnalysis as mda from buildh import lipids from buildh import init_dics from buildh import core from buildh import writers DIR_DATA = "test_data" PATH_ROOT_DATA = pathl...
33.759615
110
0.592139
b0917532ad3b598f5ceb117d90e19bc22c73f8d4
3,849
py
Python
plot_functions/reflectivity_series_plot.py
Silvermoonsniper/Normal-Moveout-for-Seismic-Signals-for-Distributed-Velocity-Estimation-in-Subsurfaces
ff1144d485a0a48f380289ffc4a8637f7d384b8e
[ "Unlicense" ]
1
2021-12-13T15:05:52.000Z
2021-12-13T15:05:52.000Z
plot_functions/reflectivity_series_plot.py
Silvermoonsniper/Normal-Moveout-for-Seismic-Signals-for-Distributed-Velocity-Estimation-in-Subsurfaces
ff1144d485a0a48f380289ffc4a8637f7d384b8e
[ "Unlicense" ]
null
null
null
plot_functions/reflectivity_series_plot.py
Silvermoonsniper/Normal-Moveout-for-Seismic-Signals-for-Distributed-Velocity-Estimation-in-Subsurfaces
ff1144d485a0a48f380289ffc4a8637f7d384b8e
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np #function to plot reflectivity series #input args: # LS:reflectivity series # time_array: time series for plot # time_array1: time series for plotting ground truth series # newdesired: ground truth series # trace_number: ...
58.318182
100
0.654716
5fa3b817a0eed75ef218850815dac1a31b7639e4
39,765
py
Python
pyoptsparse/pyALPSO/alpso_ext.py
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
null
null
null
pyoptsparse/pyALPSO/alpso_ext.py
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
null
null
null
pyoptsparse/pyALPSO/alpso_ext.py
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python """ alpso - Python Version of the Augmented Lagrangian Particle Swarm Optimizer alpso if a global optimizer which solves problems of the form: min F(x) subject to: Gi(x) = 0, i = 1(1)ME Gj(x) <= 0, j = ME+1(1)M xLB <= x <= xUB Co...
35.097087
141
0.44089
1f78e842488c541d546cb31c34c453d496b829e8
3,823
py
Python
test/functional/wallet_encryption.py
allforonebusiness/AllForOneBusiness
63978033c60e2106adb7c6d9ba4bd3a4fc159ce6
[ "MIT" ]
null
null
null
test/functional/wallet_encryption.py
allforonebusiness/AllForOneBusiness
63978033c60e2106adb7c6d9ba4bd3a4fc159ce6
[ "MIT" ]
null
null
null
test/functional/wallet_encryption.py
allforonebusiness/AllForOneBusiness
63978033c60e2106adb7c6d9ba4bd3a4fc159ce6
[ "MIT" ]
4
2019-11-13T21:49:01.000Z
2020-11-29T20:17:14.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Wallet encryption""" import time from test_framework.test_framework import AllForOneBusinessTest...
43.942529
138
0.706513
020f7a329738a2c26675e58a7ab6bf3992630a4c
1,830
py
Python
media/transcoder/list_job_templates.py
BaljitSingh919/Project360
b8ec08f6598e6b4d6d190b63c6b64f268225bd2d
[ "Apache-2.0" ]
5,938
2015-05-18T05:04:37.000Z
2022-03-31T20:16:39.000Z
media/transcoder/list_job_templates.py
pranshusinghal/python-docs-samples
3341286ec657d9010d2441de66f7e45c7f5cefdd
[ "Apache-2.0" ]
4,730
2015-05-07T19:00:38.000Z
2022-03-31T21:59:41.000Z
media/transcoder/list_job_templates.py
FFHixio/python-docs-samples
b39441b3ca0a7b27e9c141e9b43e78e729105573
[ "Apache-2.0" ]
6,734
2015-05-05T17:06:20.000Z
2022-03-31T12:02:51.000Z
#!/usr/bin/env python # Copyright 2020 Google 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.apache.org/licenses/LICENSE-2.0 # # Unless require...
30.5
85
0.734973
5144253a93105389f895957baf1c408c708606a1
6,775
py
Python
datadog_checks_dev/tests/tooling/test_utils.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
datadog_checks_dev/tests/tooling/test_utils.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
datadog_checks_dev/tests/tooling/test_utils.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from os.path import join import mock from datadog_checks.dev.tooling.config import copy_default_config from datadog_checks.dev.tooling.utils import ( complete_set_root, get_check_files,...
35.846561
118
0.648266
4e810df48f1632835d3adb11ee9fa296d74536c5
6,234
py
Python
setup.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
setup.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
setup.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- ## ## setup.py ## ## Created on: Jan 23, 2018 ## Author: Alexey Ignatiev ## E-mail: alexey.ignatiev@monash.edu ## # #============================================================================== import os import os.path import contextlib import glob try: fro...
32.638743
138
0.580687
4e0889224ee37f9489866eb0040acca6d2e77f00
62,160
py
Python
application_test.py
bendiste/Algorithmic-Fairness
7e3b54e38eddb7572777be6f9772e3b2a8e398ec
[ "MIT" ]
null
null
null
application_test.py
bendiste/Algorithmic-Fairness
7e3b54e38eddb7572777be6f9772e3b2a8e398ec
[ "MIT" ]
null
null
null
application_test.py
bendiste/Algorithmic-Fairness
7e3b54e38eddb7572777be6f9772e3b2a8e398ec
[ "MIT" ]
null
null
null
#Created by eNAS #Import GUI interface Libraries from tkinter import* import tkinter as tk from tkinter import ttk import pickle import tkinter.messagebox import tksheet from tkinter.ttk import * from tkinter.filedialog import askopenfile import time from dissim import * import os, sys from tkinter impo...
66.982759
280
0.324003
4c6fcb7fc0e8b4fa908a11717f5397ff7dfd9bfb
2,219
py
Python
irekua_database/models/terms/entailments.py
CONABIO-audio/irekua-database
abaf3eb3c5273cdb973c7ac1b921ab2f9759042c
[ "BSD-4-Clause" ]
null
null
null
irekua_database/models/terms/entailments.py
CONABIO-audio/irekua-database
abaf3eb3c5273cdb973c7ac1b921ab2f9759042c
[ "BSD-4-Clause" ]
18
2019-10-31T21:41:42.000Z
2022-03-12T00:03:54.000Z
irekua_database/models/terms/entailments.py
IslasGECI/irekua-database
abaf3eb3c5273cdb973c7ac1b921ab2f9759042c
[ "BSD-4-Clause" ]
1
2021-05-06T19:38:21.000Z
2021-05-06T19:38:21.000Z
from django.db.models import JSONField from django.db import models from django.utils.translation import gettext_lazy as _ from django.core.exceptions import ValidationError from irekua_database.models.object_types.entailment_types import EntailmentType from irekua_database.models import base class Entailment(base.I...
33.119403
99
0.628211
9bcec6b41983fa0bd7ee3735aceb09fce8b265de
61,211
py
Python
tests/unit/gapic/compute_v1/test_region_autoscalers.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_region_autoscalers.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_region_autoscalers.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
39.747403
122
0.688749
3a0dabaf5d81e494549ed78ad91d85130c302e95
1,905
py
Python
tests.dev/bundle_list.py
Clarify/clarify_python
1a00a5e39f77af9ad7f2e08480a3ab14e7d72aeb
[ "MIT" ]
5
2015-07-22T18:50:32.000Z
2020-12-06T12:08:37.000Z
tests.dev/bundle_list.py
Clarify/clarify_python
1a00a5e39f77af9ad7f2e08480a3ab14e7d72aeb
[ "MIT" ]
1
2015-04-15T04:48:44.000Z
2015-04-18T22:01:41.000Z
tests.dev/bundle_list.py
Clarify/clarify_python
1a00a5e39f77af9ad7f2e08480a3ab14e7d72aeb
[ "MIT" ]
2
2015-03-11T19:04:14.000Z
2015-03-12T16:12:37.000Z
#!/usr/bin/env python """ Some test functions used to sanity check during development. Not unit tests. """ import sys sys.path.insert(0, '..') from clarify_python import clarify def get_first_page_hrefs(client): """Print first page of bundle hrefs.""" bundle_list = client.get_bundle_list() print('*** ...
24.113924
67
0.628871
c2d6cc61bbe0566ef619ab6cbb843c0f9c6d53dd
1,828
py
Python
spyder/plugins/projects/widgets/tests/test_project_explorer.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/plugins/projects/widgets/tests/test_project_explorer.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
null
null
null
spyder/plugins/projects/widgets/tests/test_project_explorer.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2019-02-18T01:28:51.000Z
2019-02-18T01:28:51.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # """ Tests for explorer.py """ # Standard imports import os import os.path as osp # Test library imports import pytest # Local imports from spyder.plugins.projects.widgets.explorer import ProjectExplore...
26.492754
72
0.708972
7961d51b7d07f9e212c0ba1beeadc1e5ca9d4db4
914
py
Python
rating/models/result.py
bomzheg/equestrian-rating
d880dcb40500b3b78d4c10f387b15ac4a60428ce
[ "MIT" ]
null
null
null
rating/models/result.py
bomzheg/equestrian-rating
d880dcb40500b3b78d4c10f387b15ac4a60428ce
[ "MIT" ]
null
null
null
rating/models/result.py
bomzheg/equestrian-rating
d880dcb40500b3b78d4c10f387b15ac4a60428ce
[ "MIT" ]
null
null
null
from django.db import models class Result(models.Model): """Данные о конкретном случае выполненного норматива.""" fulfilled_standard = models.ForeignKey( "Standard", on_delete=models.PROTECT, related_name="results", verbose_name="Норматив", ) date = models.DateField(ver...
32.642857
79
0.657549
8e5affe98958eb983445350540bd65c1731c4b11
5,052
py
Python
tests/core/consensus/test_pot_iterations.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
tests/core/consensus/test_pot_iterations.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
tests/core/consensus/test_pot_iterations.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
from pytest import raises from replaceme.consensus.default_constants import DEFAULT_CONSTANTS from replaceme.consensus.pos_quality import _expected_plot_size from replaceme.consensus.pot_iterations import ( calculate_ip_iters, calculate_iterations_quality, calculate_sp_iters, is_overflow_block, ) from ...
43.551724
120
0.65677
b6398cd8e5e8712abb26c5b22fbf2422ccf3bdfb
475
py
Python
solutions/1002.find-common-characters.229280375.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/1002.find-common-characters.229280375.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/1002.find-common-characters.229280375.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution: def commonChars(self, A): answer = collections.Counter(A[0]) for word in A[1:]: temp = collections.Counter(word) for c in answer: if c in temp: answer[c] = min(answer[c], temp[c]) else:...
23.75
55
0.402105
644ecd6b1fb818d037dc235c8e94d37d07b75b9e
3,947
py
Python
experiments/neuron-segmentation/isbi2012/export_bioimageio_model.py
JoOkuma/torch-em
68b723683f9013723a0e4fc8cfef1d6a2a9c9dff
[ "MIT" ]
null
null
null
experiments/neuron-segmentation/isbi2012/export_bioimageio_model.py
JoOkuma/torch-em
68b723683f9013723a0e4fc8cfef1d6a2a9c9dff
[ "MIT" ]
null
null
null
experiments/neuron-segmentation/isbi2012/export_bioimageio_model.py
JoOkuma/torch-em
68b723683f9013723a0e4fc8cfef1d6a2a9c9dff
[ "MIT" ]
null
null
null
import argparse import os import numpy as np from elf.io import open_file from torch_em.util import (convert_to_onnx, convert_to_pytorch_script, export_biomageio_model, get_default_citations) def _load_data(input_, ndim): with open_file(input_, 'r') as f: ds = f['volumes/raw'] ...
33.449153
95
0.654674
44468f5382f9ba62b9bb22fe299140a42ba283f0
13,781
py
Python
tests/handlers/test_user_directory.py
Kolatzek/synapse
7ce1f97a1353e7bd9232c22a20835e40fa5662e0
[ "Apache-2.0" ]
null
null
null
tests/handlers/test_user_directory.py
Kolatzek/synapse
7ce1f97a1353e7bd9232c22a20835e40fa5662e0
[ "Apache-2.0" ]
null
null
null
tests/handlers/test_user_directory.py
Kolatzek/synapse
7ce1f97a1353e7bd9232c22a20835e40fa5662e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 New Vector # # 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...
37.346883
88
0.632973
6322de653a6125d0556b86dee007ac6dc343a7cd
1,407
py
Python
model/highway.py
graviraja/deep-paraphrase-generation
b09cfeee6b9410b60346d3851b3da440c2992cff
[ "MIT" ]
5
2019-02-27T10:32:38.000Z
2020-08-24T13:06:49.000Z
model/highway.py
graviraja/deep-paraphrase-generation
b09cfeee6b9410b60346d3851b3da440c2992cff
[ "MIT" ]
null
null
null
model/highway.py
graviraja/deep-paraphrase-generation
b09cfeee6b9410b60346d3851b3da440c2992cff
[ "MIT" ]
null
null
null
'''This code contains the implementation of highway network. ''' import torch.nn as nn import torch.nn.functional as F class Highway(nn.Module): def __init__(self, size, num_layers, f): super().__init__() self.num_layers = num_layers self.nonlinear = nn.ModuleList([nn.Linear(size, size) ...
32.72093
105
0.570007
d7c629d944781c090872517dc4b99149009096da
15,124
py
Python
esque/controller/topic_controller.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
29
2019-05-10T21:12:38.000Z
2021-08-24T08:09:49.000Z
esque/controller/topic_controller.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
103
2019-05-17T07:21:41.000Z
2021-12-02T08:29:00.000Z
esque/controller/topic_controller.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
2
2019-05-28T06:45:14.000Z
2019-11-21T00:33:15.000Z
import logging import re import time from contextlib import closing from itertools import islice from logging import Logger from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Union, cast import confluent_kafka import kafka import kafka.consumer.fetcher import pendulum from confluent_kafka.ad...
45.969605
124
0.640373
0b8d31f85cf3eccca35e733072d2c4931fc02bf5
92,574
py
Python
virtual/Lib/tarfile.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
15
2015-04-14T00:33:13.000Z
2021-10-18T01:08:54.000Z
virtual/Lib/tarfile.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
1
2018-02-13T10:12:15.000Z
2018-02-13T10:12:15.000Z
virtual/Lib/tarfile.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
3
2015-04-23T11:12:32.000Z
2021-10-18T01:08:55.000Z
#!/usr/bin/env python3 #------------------------------------------------------------------- # tarfile.py #------------------------------------------------------------------- # Copyright (C) 2002 Lars Gustaebel <lars@gustaebel.de> # All rights reserved. # # Permission is hereby granted, free of charge, to any pers...
36.489555
103
0.546795
ff986b304087327313ddd1a1b8b033c610b642fb
442
py
Python
desafio/desafio063.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
desafio/desafio063.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
desafio/desafio063.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
# Escreva um programa que leia um número N inteiro qualquer e mostre na tela os N primeiros elementos de uma Sequência de Fibonacci tt = 0 t = int(input('Digite o numero de termos da sequência de Fibonacci: ')) n1 = 0 n2 = 1 print(f'\n{n1} -> ', end='') while(tt != (t - 1)): n = n1 + n2 n2 = n1 n1 = n ...
21.047619
131
0.540724
13cd85bc0bba7738200de05fddc089da68e22901
958
py
Python
app/index.py
spakov/irbox_app
a2b3af9629681c97c19a95019fffaafaaa515c26
[ "Unlicense" ]
null
null
null
app/index.py
spakov/irbox_app
a2b3af9629681c97c19a95019fffaafaaa515c26
[ "Unlicense" ]
null
null
null
app/index.py
spakov/irbox_app
a2b3af9629681c97c19a95019fffaafaaa515c26
[ "Unlicense" ]
null
null
null
""" Index endpoint. """ from flask import current_app from flask import Blueprint from flask import render_template from app.include import IncludeType from app.include import remote_include index_blueprint = Blueprint('index_blueprint', __name__) @index_blueprint.route('/') def index(): """ Return index pa...
25.891892
78
0.689979
82b6864299337134a8e45d2a1a639fe7bdc498f5
35
py
Python
btclib/tests/__init__.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
40
2020-04-07T12:10:34.000Z
2022-03-18T18:10:48.000Z
btclib/tests/__init__.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
30
2020-03-20T00:52:37.000Z
2022-02-10T12:54:30.000Z
btclib/tests/__init__.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
16
2020-03-19T15:33:35.000Z
2022-02-24T21:47:39.000Z
"""btclib non-regression tests."""
17.5
34
0.685714
3ea79c42038faaedf5a66e7c71fa0f312c4f2630
64,518
py
Python
esrally/chart_generator.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,577
2016-04-19T12:38:58.000Z
2022-03-31T07:18:25.000Z
esrally/chart_generator.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,079
2016-04-19T12:09:16.000Z
2022-03-31T05:38:50.000Z
esrally/chart_generator.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
300
2016-04-19T18:27:12.000Z
2022-03-23T07:54:16.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
40.048417
139
0.433166
970d5b912cf01797894f63a6209f4e7a2557c70a
1,865
py
Python
code/count_word_coll.py
reginaldcobb/findbook
95fd179426a1ee69802b4c541c0d22b8037e59cc
[ "MIT" ]
null
null
null
code/count_word_coll.py
reginaldcobb/findbook
95fd179426a1ee69802b4c541c0d22b8037e59cc
[ "MIT" ]
null
null
null
code/count_word_coll.py
reginaldcobb/findbook
95fd179426a1ee69802b4c541c0d22b8037e59cc
[ "MIT" ]
null
null
null
#!/usr/bin/python import collections import os def remove_newlines(fname): flist = open(fname).readlines() return [s.rstrip('\n') for s in flist] wordcount = collections.Counter() # with open('text_book4png_3200_3200_0.65_0.5_1_10_02_26_01_24_54.txt') as f: # for line in f: # wordcount.update(line...
32.155172
77
0.542091
e2b294afe12c7b4ebb561b044a434dd0d0fff855
1,617
py
Python
tests/test_services/test_parse_bp/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
tests/test_services/test_parse_bp/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
tests/test_services/test_parse_bp/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def init_actions_(service, args): """ this needs to returns an array of actions representing the depencies between actions. Looks at ACTION_DEPS in this module for an example of what is expected """ # some default logic for simple actions return { 'test': ['install'] } de...
36.75
106
0.648114
b7cea46d819c6d903b3e620239377655890645d6
7,733
py
Python
lib/spack/spack/cmd/mirror.py
rtohid/spack
6df57bb2d0619a22b0bb0a5028b7caef7f31e722
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
lib/spack/spack/cmd/mirror.py
rtohid/spack
6df57bb2d0619a22b0bb0a5028b7caef7f31e722
[ "ECL-2.0", "Apache-2.0", "MIT" ]
17
2018-09-20T18:32:50.000Z
2019-12-04T16:58:12.000Z
lib/spack/spack/cmd/mirror.py
rtohid/spack
6df57bb2d0619a22b0bb0a5028b7caef7f31e722
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 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 sys import os from datetime import datetime import argparse import llnl.util.tty as tty from llnl.util.tty.colify ...
33.768559
79
0.61619
7287a6f65ee56ebf576d781a07d2da3b3d83951b
10,702
py
Python
BeautyRecommendation/Data/yolo_image.py
hundyoung/BeautyRecommendation
96680b5b1d9eceb0022cf833bda1ae0c1d9c499f
[ "MIT" ]
1
2020-09-02T15:38:06.000Z
2020-09-02T15:38:06.000Z
BeautyRecommendation/Data/yolo_image.py
hundyoung/BeautyRecommendation
96680b5b1d9eceb0022cf833bda1ae0c1d9c499f
[ "MIT" ]
null
null
null
BeautyRecommendation/Data/yolo_image.py
hundyoung/BeautyRecommendation
96680b5b1d9eceb0022cf833bda1ae0c1d9c499f
[ "MIT" ]
null
null
null
import colorsys from timeit import default_timer as timer import numpy as np from keras import backend as K from keras.models import load_model from keras.layers import Input from PIL import Image, ImageFont, ImageDraw from Data.yolo3.model import yolo_eval, yolo_body, tiny_yolo_body,box_iou from Data.yolo3.utils impo...
44.406639
110
0.572229
f19f1872afe1d5ca1900579736e015be63ca64a1
2,834
py
Python
tests/test_tokenizer.py
domonless/cppjieba-py
73479ab9c4edbdec8a58a9b021a091e0bb1bd113
[ "MIT" ]
null
null
null
tests/test_tokenizer.py
domonless/cppjieba-py
73479ab9c4edbdec8a58a9b021a091e0bb1bd113
[ "MIT" ]
null
null
null
tests/test_tokenizer.py
domonless/cppjieba-py
73479ab9c4edbdec8a58a9b021a091e0bb1bd113
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # pylint: disable=E1101 from spec import Spec import sys if sys.version_info[0] >= 3: from pathlib import Path else: from pathlib2 import Path DICT_DIR = Path("../cppjieba/dict") DICT = str(DICT_DIR / "jieba.dict.utf8") USER_DICT = str(DICT_DIR / ...
26
76
0.581157
8316c900695577c10c9077aa73bf9b92cbfc7c4e
2,333
py
Python
brian2/core/namespace.py
mackelab/brian2
3a58c8e1ca87f70972aca24c6eeb78c539c190db
[ "BSD-2-Clause" ]
null
null
null
brian2/core/namespace.py
mackelab/brian2
3a58c8e1ca87f70972aca24c6eeb78c539c190db
[ "BSD-2-Clause" ]
null
null
null
brian2/core/namespace.py
mackelab/brian2
3a58c8e1ca87f70972aca24c6eeb78c539c190db
[ "BSD-2-Clause" ]
null
null
null
""" Implementation of the namespace system, used to resolve the identifiers in model equations of `NeuronGroup` and `Synapses` """ import collections import inspect import itertools from brian2.utils.logger import get_logger from brian2.units.fundamentalunits import ( standard_unit_register, additional_unit_r...
28.802469
81
0.690527
7a55acf5c15d7d224eb0d8235cce62d38fb40b94
592
py
Python
class/functions.py
lizebang/think-python-2e-examples
2ba647573d2f2e4d870aaf827044db2035104cb0
[ "MIT" ]
null
null
null
class/functions.py
lizebang/think-python-2e-examples
2ba647573d2f2e4d870aaf827044db2035104cb0
[ "MIT" ]
null
null
null
class/functions.py
lizebang/think-python-2e-examples
2ba647573d2f2e4d870aaf827044db2035104cb0
[ "MIT" ]
null
null
null
class Time: """Represents the time of day. attributes: hour, minute, second """ # pure functions, modifiers and designed development # think python 2e -- chapter16 # designed development def time_to_int(time): minutes = time.hour * 60 + time.minute seconds = minutes * 60 + time.second retur...
20.413793
52
0.679054
dcb54906b0ac30a6ee34c2c085d9bb2b5167075a
6,906
py
Python
tests/functional_test/Libs/flask/config.py
HopeBayMobile/hcfs
153666610f42fd6c39f2ca1f1864ebb8652e6b2c
[ "Apache-2.0" ]
null
null
null
tests/functional_test/Libs/flask/config.py
HopeBayMobile/hcfs
153666610f42fd6c39f2ca1f1864ebb8652e6b2c
[ "Apache-2.0" ]
null
null
null
tests/functional_test/Libs/flask/config.py
HopeBayMobile/hcfs
153666610f42fd6c39f2ca1f1864ebb8652e6b2c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2021 HopeBayTech. # # This file is part of Tera. # See https://github.com/HopeBayMobile for further info. # # 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 Licens...
36.930481
79
0.648422
325914ff90633c2bcd2560b23487ad036b606276
80
py
Python
yolov4-deepsort/func.py
saru-d2/road-tracking-yolov4
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
[ "MIT" ]
null
null
null
yolov4-deepsort/func.py
saru-d2/road-tracking-yolov4
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
[ "MIT" ]
null
null
null
yolov4-deepsort/func.py
saru-d2/road-tracking-yolov4
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
[ "MIT" ]
null
null
null
''' functions to test out in jupyter notebook ''' def add(a,b): return a + b
26.666667
49
0.6375
c412d76773e2004991cbbcf25eea944509788e2b
1,175
py
Python
UniNeuroLab/urls.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
UniNeuroLab/urls.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
UniNeuroLab/urls.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
"""UniNeuroLab URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
37.903226
77
0.756596
065a5c360fddeb82baf076a37c5d3eaf50d5f51e
2,865
py
Python
migrations/versions/ecc60e81cf5f_initial_migration.py
Chiuri254/pitch
fd49e9454a636f449fd4f109d4d55c5db5520325
[ "Unlicense" ]
null
null
null
migrations/versions/ecc60e81cf5f_initial_migration.py
Chiuri254/pitch
fd49e9454a636f449fd4f109d4d55c5db5520325
[ "Unlicense" ]
null
null
null
migrations/versions/ecc60e81cf5f_initial_migration.py
Chiuri254/pitch
fd49e9454a636f449fd4f109d4d55c5db5520325
[ "Unlicense" ]
null
null
null
"""Initial Migration Revision ID: ecc60e81cf5f Revises: Create Date: 2019-12-02 16:13:00.605474 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ecc60e81cf5f' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
36.730769
76
0.664223
9089faa22279c209b0635e9447f6b9072ac10e93
111
py
Python
tests/background/task/hard_fails/cannot_be_lambda.py
FundingOptions/background-tasks-python
3694d3c5bdafaffebbd6c3d55daa976f4d34ba4c
[ "MIT" ]
null
null
null
tests/background/task/hard_fails/cannot_be_lambda.py
FundingOptions/background-tasks-python
3694d3c5bdafaffebbd6c3d55daa976f4d34ba4c
[ "MIT" ]
null
null
null
tests/background/task/hard_fails/cannot_be_lambda.py
FundingOptions/background-tasks-python
3694d3c5bdafaffebbd6c3d55daa976f4d34ba4c
[ "MIT" ]
null
null
null
from fops.background import task # Lambdas are nameless. Tasks must be discoverable. x = task()(lambda: None)
22.2
51
0.756757
24bbac10e9fd2f46bbd9da5257a3a6edf6f633d3
4,030
py
Python
fediplay.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
1
2019-07-19T20:46:56.000Z
2019-07-19T20:46:56.000Z
fediplay.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
null
null
null
fediplay.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
null
null
null
from os import environ, umask import shlex from subprocess import run from threading import Thread, Lock from lxml.etree import HTML import mastodon Mastodon = mastodon.Mastodon from youtube_dl import YoutubeDL class Queue(object): def __init__(self): self.lock = Lock() self.playing = False ...
29.851852
111
0.647146
971a73338733cb6eddc82321f4e678558291f729
992
py
Python
moex/migrations/0018_auto_20200704_1120.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
2
2020-09-08T12:51:56.000Z
2021-08-18T15:27:52.000Z
moex/migrations/0018_auto_20200704_1120.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
1
2021-12-13T20:43:35.000Z
2021-12-13T20:43:35.000Z
moex/migrations/0018_auto_20200704_1120.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-07-04 08:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('moex', '0017_auto_20200704_1115'), ] operations = [ migrations.AlterField( model_name='security', name='code', ...
29.176471
86
0.580645
a2f2e0a91a0e0e8420713a7cb701ac13842cd476
22,080
py
Python
tensorflow_quantum/python/differentiators/gradient_test.py
quantummind/quantum
fd952d0362c5445eef0da4437fb3e5ebb16b7948
[ "Apache-2.0" ]
1,501
2020-03-09T00:40:31.000Z
2022-03-28T19:59:57.000Z
tensorflow_quantum/python/differentiators/gradient_test.py
quantummind/quantum
fd952d0362c5445eef0da4437fb3e5ebb16b7948
[ "Apache-2.0" ]
381
2020-03-09T18:31:04.000Z
2022-03-28T18:47:32.000Z
tensorflow_quantum/python/differentiators/gradient_test.py
quantummind/quantum
fd952d0362c5445eef0da4437fb3e5ebb16b7948
[ "Apache-2.0" ]
410
2020-03-09T03:05:48.000Z
2022-03-31T12:08:14.000Z
# Copyright 2020 The TensorFlow Quantum 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...
43.636364
80
0.603034
b16ec656e69fa3d0df0f9887ace3bc9112387235
7,525
py
Python
eventtools/tests/_fixture.py
ixc/glamkit-eventtools
f94726c145f52bb7771b1c5352a39903d5fa33f3
[ "BSD-3-Clause" ]
9
2015-03-02T21:14:53.000Z
2019-10-28T09:08:38.000Z
eventtools/tests/_fixture.py
ixc/glamkit-eventtools
f94726c145f52bb7771b1c5352a39903d5fa33f3
[ "BSD-3-Clause" ]
null
null
null
eventtools/tests/_fixture.py
ixc/glamkit-eventtools
f94726c145f52bb7771b1c5352a39903d5fa33f3
[ "BSD-3-Clause" ]
1
2019-12-09T19:05:28.000Z
2019-12-09T19:05:28.000Z
from dateutil.relativedelta import * from eventtools.models import Rule from eventtools_testapp.models import * from eventtools.utils.dateranges import * from datetime import datetime, date, timedelta def fixture(obj): #some simple events obj.talk = ExampleEvent.eventobjects.create(title="Curator's Talk", slug...
47.929936
205
0.714684
35e1b0fa1312099074053aed4258d9dbefa0f0ad
4,510
py
Python
flask_sqlalchemy_bundle/meta/base_model_metaclass.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
flask_sqlalchemy_bundle/meta/base_model_metaclass.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
flask_sqlalchemy_bundle/meta/base_model_metaclass.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
import re from collections import defaultdict from flask_sqlalchemy.model import DefaultMeta, should_set_tablename from flask_unchained.string_utils import snake_case from flask_unchained.utils import deep_getattr from sqlalchemy import Column from .model_meta_factory import ModelMetaFactory from .model_registry impo...
42.952381
85
0.660976
bcc717c42fb63746c480096b4162c8e84a132500
752
py
Python
game_finder/migrations/0002_auto_20171117_1833.py
stuart-bradley/steam_lan_game_finder
345cc02b64da7269887dcce7014ddb5d5b6194bd
[ "MIT" ]
1
2018-01-09T11:44:54.000Z
2018-01-09T11:44:54.000Z
game_finder/migrations/0002_auto_20171117_1833.py
lutrasdebtra/steam_lan_game_finder
345cc02b64da7269887dcce7014ddb5d5b6194bd
[ "MIT" ]
1
2020-04-26T19:52:31.000Z
2020-04-26T19:52:31.000Z
game_finder/migrations/0002_auto_20171117_1833.py
lutrasdebtra/steam_lan_game_finder
345cc02b64da7269887dcce7014ddb5d5b6194bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-11-17 05:33 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('game_finder', '0001_initial'), ] operations = [ ...
26.857143
74
0.586436
588f1e71d7c21acfc61f5a892a0d8b682a977ae1
4,092
py
Python
type_classgen.py
rombie/contrail-generateDS
f8666e9b5ffe1502830197d31b645dd83e47b754
[ "MIT" ]
null
null
null
type_classgen.py
rombie/contrail-generateDS
f8666e9b5ffe1502830197d31b645dd83e47b754
[ "MIT" ]
null
null
null
type_classgen.py
rombie/contrail-generateDS
f8666e9b5ffe1502830197d31b645dd83e47b754
[ "MIT" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # class TypeClassGenerator(object): def __init__(self, cTypeDict): self._cTypeDict = cTypeDict self._generated_types = { } def _GenerateTypeSub(self, file, ctype): depend_types = ctype.getDependentTypes() for ch...
30.311111
80
0.57869
7071cb9b546f67ba34702f2cde10f5776e640e8e
457
py
Python
xendit/models/ewallet/ovo/ovo_payment_status.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
xendit/models/ewallet/ovo/ovo_payment_status.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
xendit/models/ewallet/ovo/ovo_payment_status.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
from xendit.models._base_model import BaseModel class OVOPaymentStatus(BaseModel): """Payment Status for OVO (API Reference: eWallets) Attributes: - amount (str) - business_id (str) - ewallet_type (str) - external_id (str) - status (str) - transaction_date (str) (ISO 8601 ...
20.772727
55
0.63895
02b192f487778ba1cc6a465d613c339554afe365
18,202
py
Python
Tools/ccbench/ccbench.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
2
2019-03-03T00:04:36.000Z
2020-10-06T16:22:38.000Z
Tools/ccbench/ccbench.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
null
null
null
Tools/ccbench/ccbench.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
1
2019-03-03T00:04:38.000Z
2019-03-03T00:04:38.000Z
# This file should be kept compatible with both Python 2.6 and Python >= 3.0. from __future__ import division from __future__ import print_function """ ccbench, a Python concurrency benchmark. """ import time import os import sys import functools import itertools import threading import subprocess import socket from...
29.839344
92
0.566531
5ae5adefe24cefd6244bf8ed53ef10cd29ddb636
48,323
py
Python
pylayers/util/easygui.py
ArtashesH/PylayersWith3D
e4c35279a7da121d9a68282a6a0c3decfba696b4
[ "MIT" ]
null
null
null
pylayers/util/easygui.py
ArtashesH/PylayersWith3D
e4c35279a7da121d9a68282a6a0c3decfba696b4
[ "MIT" ]
null
null
null
pylayers/util/easygui.py
ArtashesH/PylayersWith3D
e4c35279a7da121d9a68282a6a0c3decfba696b4
[ "MIT" ]
null
null
null
""" EasyGuiRevisionInfo = " version 0.73 2008-02-10" EasyGui provides an easy-to-use interface for simple GUI interaction with a user. It does not require the programmer to know anything about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are invoked by simple function calls that return results...
33.580959
209
0.652112
2585bb11557ba0225ddcd3a77a31a15631114318
434
py
Python
api/wsgi/src/manage.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/wsgi/src/manage.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/wsgi/src/manage.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": # Use local config if not on openshift server if os.environ.get('SLIP_ENV') == 'local': os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.local") else: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.setti...
27.125
75
0.721198
d0c9e4369cc8547d9e37b25b4cf3c48f297c2c53
9,062
py
Python
themes/qutebrowser/themes/minimal/base16-silk-light.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
95
2018-05-28T18:06:48.000Z
2022-03-14T21:36:05.000Z
themes/qutebrowser/themes/minimal/base16-silk-light.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
18
2018-08-26T00:57:20.000Z
2022-02-19T08:29:29.000Z
themes/qutebrowser/themes/minimal/base16-silk-light.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
20
2018-06-21T12:41:47.000Z
2022-03-04T22:06:20.000Z
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova and Daniel Mulford # Silk Light scheme by Gabriel Fontes (https://github.com/Misterio77) base00 = "#E9F1EF" base01 = "#CCD4D3" base02 = "#90B7B6" base03 = "#5C787B" base04 = "#4B5B5F" base05 = "#385156" base06 =...
30.106312
95
0.771905
4af524bbbc9ef3816ef8a49aeb24323fb6d00265
15,386
py
Python
homeassistant/helpers/collection.py
Madj42/core
829131fe51bd09ff9032766c57bb293c89db7614
[ "Apache-2.0" ]
null
null
null
homeassistant/helpers/collection.py
Madj42/core
829131fe51bd09ff9032766c57bb293c89db7614
[ "Apache-2.0" ]
null
null
null
homeassistant/helpers/collection.py
Madj42/core
829131fe51bd09ff9032766c57bb293c89db7614
[ "Apache-2.0" ]
null
null
null
"""Helper to deal with YAML + storage.""" from abc import ABC, abstractmethod import asyncio from dataclasses import dataclass import logging from typing import Any, Awaitable, Callable, Dict, Iterable, List, Optional, cast import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.com...
30.957746
88
0.599181
e6f44023f63a2610bb13f526aafbd38799815dc5
1,609
py
Python
artic/align_trim_fasta.py
ColinAnthony/fieldbioinformatics
41f9881218ffe22476662e35ac7786ecbd950696
[ "MIT" ]
null
null
null
artic/align_trim_fasta.py
ColinAnthony/fieldbioinformatics
41f9881218ffe22476662e35ac7786ecbd950696
[ "MIT" ]
null
null
null
artic/align_trim_fasta.py
ColinAnthony/fieldbioinformatics
41f9881218ffe22476662e35ac7786ecbd950696
[ "MIT" ]
null
null
null
#!/usr/bin/env python #Written by Nick Loman #Part of the ZiBRA pipeline (zibraproject.org) import argparse import pysam import sys from .align_trim import find_primer from .vcftagprimersites import read_bed_file def find_query_pos(alignment, reference_pos): nearest = -1 for qry, ref in alignment.get_aligned...
29.254545
115
0.670603
946ce1167b6a2b7312287cb122b627f18ae90055
230
py
Python
resources/lib/teams/texans.py
Tenzer/plugin.video.nfl-teams
66b9b1f113865095125be231e578ac1e491cca1e
[ "MIT" ]
3
2017-09-29T13:21:59.000Z
2020-06-01T03:49:52.000Z
resources/lib/teams/texans.py
Tenzer/plugin.video.nfl-teams
66b9b1f113865095125be231e578ac1e491cca1e
[ "MIT" ]
8
2015-08-17T19:28:54.000Z
2018-07-28T16:00:41.000Z
resources/lib/teams/texans.py
Tenzer/plugin.video.nfl-teams
66b9b1f113865095125be231e578ac1e491cca1e
[ "MIT" ]
4
2017-09-15T08:36:47.000Z
2019-03-02T20:50:56.000Z
from resources.lib.nfl2018 import NFL2018 class Team(NFL2018): short = "texans" hostname = "www.houstontexans.com" def __init__(self, parameters): self.parameters = parameters NFL2018.__init__(self)
20.909091
41
0.686957
7e9c4ae4a64aa7c252083c57ecb072e152494e36
8,472
py
Python
src/AeroMod.py
sailingfree/Python-VPP
c4730494ae86dc78260ccd94fe05c85141760360
[ "MIT" ]
11
2020-06-03T15:06:03.000Z
2022-02-05T19:01:33.000Z
src/AeroMod.py
sailingfree/Python-VPP
c4730494ae86dc78260ccd94fe05c85141760360
[ "MIT" ]
2
2020-06-03T15:24:51.000Z
2020-10-24T21:21:28.000Z
src/AeroMod.py
sailingfree/Python-VPP
c4730494ae86dc78260ccd94fe05c85141760360
[ "MIT" ]
8
2020-06-07T18:28:34.000Z
2021-08-20T16:55:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Marin Lauber" __copyright__ = "Copyright 2020, Marin Lauber" __license__ = "GPL" __version__ = "1.0.1" __email__ = "M.Lauber@soton.ac.uk" import numpy as np from scipy.interpolate import interp1d from scipy.optimize import fsolve from scipy.optimize import ...
31.969811
114
0.522781