hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d493273ba4aac5351552304e302799fbea8feee | 740 | py | Python | Mentorama/Modulo 3 - POO/Quadrado.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null | Mentorama/Modulo 3 - POO/Quadrado.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null | Mentorama/Modulo 3 - POO/Quadrado.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null |
quadrado = Quadrado(6)
print('Tamanho atual :')
print(quadrado.tamanho_lado)
print('----------------')
quadrado.mudar_valor_lado(3)
print('Novo tamanho :')
print(quadrado.tamanho_lado)
print('----------------')
print('Tamanho atual:')
quadrado.retornar_valor_lado(3)
print('----------------')
print('Total da area ficou... | 24.666667 | 43 | 0.647297 |
2d49e0003cf21961e6f6dc0b7737191d0a1bdba9 | 772 | py | Python | src/sima/riflex/fileformatcode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/fileformatcode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/fileformatcode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with FileFormatCode
#
from enum import Enum
from enum import auto | 32.166667 | 55 | 0.650259 |
2d4a0bf88b1675b2283b37ee3a00023fb0c67f4b | 13,075 | py | Python | wolframclient/evaluation/pool.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | wolframclient/evaluation/pool.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | wolframclient/evaluation/pool.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import itertools
import logging
from asyncio import CancelledError
from wolframclient.evaluation.base import WolframAsyncEvaluator
from wolframclient.evaluation.kernel.asyncsession import (
WolframLanguageAsyncSessio... | 41.246057 | 125 | 0.609025 |
2d4a9f16085458c84c9dbbf956decc433cb478e6 | 1,237 | py | Python | results/neural_nets/trainsize_varyresults/run_charcnn.py | k-ivey/FastSK | 3316f8078a516e808c2c4fe7ed3fdc8db808fc11 | [
"Apache-2.0"
] | 13 | 2020-04-23T21:25:51.000Z | 2021-11-19T23:56:17.000Z | results/neural_nets/trainsize_varyresults/run_charcnn.py | k-ivey/FastSK | 3316f8078a516e808c2c4fe7ed3fdc8db808fc11 | [
"Apache-2.0"
] | 3 | 2020-08-24T22:15:50.000Z | 2021-05-11T12:42:14.000Z | results/neural_nets/trainsize_varyresults/run_charcnn.py | k-ivey/FastSK | 3316f8078a516e808c2c4fe7ed3fdc8db808fc11 | [
"Apache-2.0"
] | 10 | 2020-04-24T09:27:19.000Z | 2021-06-16T21:05:46.000Z | import os.path as osp
import subprocess
dna_datasets = [
"CTCF",
"EP300",
"JUND",
"RAD21",
"SIN3A",
"Pbde",
"EP300_47848",
"KAT2B",
"TP53",
"ZZZ3",
"Mcf7",
"Hek29",
"NR2C2",
"ZBTB33",
]
prot_datasets = [
"1.1",
"1.34",
"2.1",
"2.19",
"2.31",
... | 17.180556 | 66 | 0.481811 |
2d4e716ec32e46db3c8f8b92ca201b3088f776bf | 1,911 | py | Python | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
| 39 | 112 | 0.70539 |
2d4f0d89f4feb1da62ed45be7c3ee895624c079b | 2,945 | py | Python | malaya/entity.py | aizatrosli/Malaya | d326384d2c0925c139a7224b77ac20f0ad57f237 | [
"MIT"
] | 1 | 2019-08-20T17:59:20.000Z | 2019-08-20T17:59:20.000Z | malaya/entity.py | aizatrosli/Malaya | d326384d2c0925c139a7224b77ac20f0ad57f237 | [
"MIT"
] | null | null | null | malaya/entity.py | aizatrosli/Malaya | d326384d2c0925c139a7224b77ac20f0ad57f237 | [
"MIT"
] | null | null | null | from ._utils import _tag_class
from ._utils._paths import PATH_ENTITIES, S3_PATH_ENTITIES
def available_deep_model():
"""
List available deep learning entities models, ['concat', 'bahdanau', 'luong']
"""
return ['concat', 'bahdanau', 'luong']
def available_bert_model():
"""
List available be... | 30.05102 | 106 | 0.642784 |
2d51dd7e74d06bcb018f0868e88b1e186fc49ead | 1,451 | py | Python | src/invoices/tests/test_models.py | brianl9995/payinv | 7fc2160c2c9bbb9568a659ff3edf2526142d33fc | [
"MIT"
] | 2 | 2019-09-21T23:36:49.000Z | 2019-10-02T23:31:21.000Z | src/invoices/tests/test_models.py | brianl9995/payinv | 7fc2160c2c9bbb9568a659ff3edf2526142d33fc | [
"MIT"
] | 2 | 2019-10-04T13:51:43.000Z | 2021-06-10T21:57:55.000Z | src/invoices/tests/test_models.py | brianl9995/payinv | 7fc2160c2c9bbb9568a659ff3edf2526142d33fc | [
"MIT"
] | 2 | 2019-10-02T23:31:22.000Z | 2020-06-07T14:57:55.000Z | from django.test import TestCase
from core.tests.factories import SaleFactory, InvoiceFactory
from invoices.models import Invoice
| 43.969697 | 78 | 0.724328 |
2d524adbfa80670475741f1458c92253a9a3edbe | 523 | py | Python | testes e exercícios/URI/somaImparesConsecutivosII.py | LightSnow17/exercicios-Python | 3ac016ce284860f45d71cfb396d33a73ec06c25d | [
"MIT"
] | null | null | null | testes e exercícios/URI/somaImparesConsecutivosII.py | LightSnow17/exercicios-Python | 3ac016ce284860f45d71cfb396d33a73ec06c25d | [
"MIT"
] | null | null | null | testes e exercícios/URI/somaImparesConsecutivosII.py | LightSnow17/exercicios-Python | 3ac016ce284860f45d71cfb396d33a73ec06c25d | [
"MIT"
] | null | null | null | valores = []
quant = int(input())
for c in range(0, quant):
x, y = input().split(' ')
x = int(x)
y = int(y)
maior = menor = soma = 0
if x > y:
maior = x
menor = y
else:
maior = y
menor = x
if maior == menor+1 or maior == menor:
valores.append(0)
e... | 20.92 | 42 | 0.447419 |
2d57a7c0a415efe520854cd9d0641e6992522bef | 53,932 | py | Python | magmap/stats/vols.py | kaparna126/magellanmapper | 6a50e82b3bcdbbb4706f749f366b055f0c6f13f2 | [
"BSD-3-Clause"
] | null | null | null | magmap/stats/vols.py | kaparna126/magellanmapper | 6a50e82b3bcdbbb4706f749f366b055f0c6f13f2 | [
"BSD-3-Clause"
] | null | null | null | magmap/stats/vols.py | kaparna126/magellanmapper | 6a50e82b3bcdbbb4706f749f366b055f0c6f13f2 | [
"BSD-3-Clause"
] | null | null | null | # Regional volume and density management
# Author: David Young, 2018, 2019
"""Measure volumes and densities by regions.
Intended to be higher-level, relatively atlas-agnostic measurements.
"""
from enum import Enum
from time import time
import numpy as np
import pandas as pd
from scipy.spatial.distance import cdist
... | 41.872671 | 80 | 0.61483 |
2d5842d1c5376eb851aa288ea6f1a9e5f74b9b80 | 251 | py | Python | PythonCode/Pyboard/Examples/SImpleUART.py | CarterWS/Summer2020 | 120f8ed5e225dcbf9f469daf17a787e3f0b93417 | [
"MIT"
] | null | null | null | PythonCode/Pyboard/Examples/SImpleUART.py | CarterWS/Summer2020 | 120f8ed5e225dcbf9f469daf17a787e3f0b93417 | [
"MIT"
] | null | null | null | PythonCode/Pyboard/Examples/SImpleUART.py | CarterWS/Summer2020 | 120f8ed5e225dcbf9f469daf17a787e3f0b93417 | [
"MIT"
] | 11 | 2020-06-03T10:12:28.000Z | 2020-06-05T16:02:40.000Z | import time,pyb
uart = pyb. UART(3,9600, bits=8, parity=None, stop=1)
while(True):
time.sleep_ms(100)
size = uart.any()
if (size > 0):
string = uart.read(size)
data = int(string[-1])
print('Data: %3d' % (data))
| 17.928571 | 53 | 0.549801 |
2d58a7a9f6b56ec2da62f50746c4430128a39551 | 2,089 | py | Python | scripts/add_session_chairs.py | pranav-ust/naacl-2021-website | b6353f2e7d5cbd5b3dae485035560df07e9a4b5c | [
"MIT",
"BSD-3-Clause"
] | 8 | 2020-09-25T09:52:53.000Z | 2022-01-24T04:14:33.000Z | scripts/add_session_chairs.py | pranav-ust/naacl-2021-website | b6353f2e7d5cbd5b3dae485035560df07e9a4b5c | [
"MIT",
"BSD-3-Clause"
] | 6 | 2020-10-01T19:41:29.000Z | 2021-06-18T16:32:02.000Z | scripts/add_session_chairs.py | pranav-ust/naacl-2021-website | b6353f2e7d5cbd5b3dae485035560df07e9a4b5c | [
"MIT",
"BSD-3-Clause"
] | 9 | 2020-07-14T20:44:08.000Z | 2021-07-20T16:23:11.000Z | # Adds session chairs to the existing (static) program.html file.
# Source: https://docs.google.com/spreadsheets/d/1aoUGr44xmU6bnJ_S61WTJkwarOcKzI_u1BgK4H99Yt4/edit?usp=sharing
# Please download and save the spreadsheet in CSV format.
PATH_TO_CSV = "/tmp/sessions.csv"
#PATH_TO_HTML = "../conference-program/main/progra... | 31.651515 | 133 | 0.699856 |
2d598f2e4196c937db359c1fb681b55186a150c3 | 2,084 | py | Python | generator/request.py | WulffHunter/log_generator | 47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc | [
"MIT"
] | 5 | 2021-02-12T15:52:59.000Z | 2021-05-26T13:22:12.000Z | generator/request.py | WulffHunter/log_generator | 47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc | [
"MIT"
] | 1 | 2021-11-03T10:10:58.000Z | 2021-11-05T11:43:16.000Z | generator/request.py | WulffHunter/log_generator | 47b8ab77d003494aa21b2c2ab85d1d21f7bae8fc | [
"MIT"
] | 2 | 2021-11-07T08:12:46.000Z | 2022-02-10T01:13:47.000Z | from faker import Faker
import random
import parameters
from utils import chance_choose, chance
from uri_generator import gen_path, uri_extensions, gen_uri_useable
# TODO: Continue to expand this list with the proper formats for other application
# layer protocols (e.g. FTP, SSH, SMTP...)
protocols = ['HTTP/1.0', 'H... | 24.232558 | 82 | 0.65499 |
2d59d5bd3118fef6e7534ad9d74a82446be2e23e | 2,570 | py | Python | ktx_parser/format_jupyter.py | SebastianoF/ktx-parser | 9445b7251b9d2984e57cf9e051cf975ab2b81109 | [
"MIT"
] | null | null | null | ktx_parser/format_jupyter.py | SebastianoF/ktx-parser | 9445b7251b9d2984e57cf9e051cf975ab2b81109 | [
"MIT"
] | null | null | null | ktx_parser/format_jupyter.py | SebastianoF/ktx-parser | 9445b7251b9d2984e57cf9e051cf975ab2b81109 | [
"MIT"
] | null | null | null | from pathlib import PosixPath, Path
from typing import Optional
import nbformat as nbf
from ktx_parser.abs_format import AbsFormat
from ktx_parser.abs_getter import AbsGetter
from ktx_parser.decorations import keys_to_decorations
| 37.246377 | 101 | 0.635798 |
2d5abdd3abf9c29ea242210df43416a2eeef80b9 | 787 | py | Python | leetcode/binary_search.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null | leetcode/binary_search.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null | leetcode/binary_search.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
main()
print('success') | 24.59375 | 74 | 0.537484 |
2d5b27caab5eb536bb49195481bfb64795974fb0 | 4,831 | py | Python | pywakeup.py | CRImier/pyWakeUp | 3e80787bf5c771e9ade29d71642338cecfb8e023 | [
"MIT"
] | null | null | null | pywakeup.py | CRImier/pyWakeUp | 3e80787bf5c771e9ade29d71642338cecfb8e023 | [
"MIT"
] | null | null | null | pywakeup.py | CRImier/pyWakeUp | 3e80787bf5c771e9ade29d71642338cecfb8e023 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from datetime import datetime, timedelta
from threading import Thread
import logging
import os
from time import sleep
logging.basicConfig(level = logging.DEBUG)
"""# define various handy options
usage = "usage: %prog [options] [+]hours:minutes"
parser = OptionParser(usage=usage)
parser.add_op... | 40.596639 | 281 | 0.643552 |
2d5b33059a390f5db8e8df5de2be104977259c36 | 10,442 | py | Python | lib/mpmath/tests/test_hp.py | np0212/Capstone-Project | 424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7 | [
"Apache-2.0"
] | 4 | 2018-07-04T17:20:12.000Z | 2019-07-14T18:07:25.000Z | lib/mpmath/tests/test_hp.py | np0212/Capstone-Project | 424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7 | [
"Apache-2.0"
] | 7 | 2017-05-01T14:15:32.000Z | 2017-09-06T20:44:24.000Z | lib/mpmath/tests/test_hp.py | np0212/Capstone-Project | 424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7 | [
"Apache-2.0"
] | 1 | 2018-09-03T03:02:06.000Z | 2018-09-03T03:02:06.000Z | """
Check that the output from irrational functions is accurate for
high-precision input, from 5 to 200 digits. The reference values were
verified with Mathematica.
"""
import time
from mpmath import *
precs = [5, 15, 28, 35, 57, 80, 100, 150, 200]
# sqrt(3) + pi/2
a = \
"3.302847134363773912758768033145623809041389... | 35.638225 | 76 | 0.77648 |
2d5d4b0e8ee8b61a38dc6be3798b8feb193f02e1 | 61 | py | Python | mp2ragelib/ui.py | ofgulban/mp2ragelib | 3df294f02ae4aadd0c9f91e8a101305f3f5f15fe | [
"BSD-3-Clause"
] | 1 | 2020-09-04T19:36:58.000Z | 2020-09-04T19:36:58.000Z | mp2ragelib/ui.py | ofgulban/mp2ragelib | 3df294f02ae4aadd0c9f91e8a101305f3f5f15fe | [
"BSD-3-Clause"
] | null | null | null | mp2ragelib/ui.py | ofgulban/mp2ragelib | 3df294f02ae4aadd0c9f91e8a101305f3f5f15fe | [
"BSD-3-Clause"
] | null | null | null | """Commandline interface."""
# TODO: After scripting works.
| 15.25 | 30 | 0.704918 |
2d5d92bfe2c4a6e4236c3e16196184c932e0ccc3 | 1,396 | py | Python | DQMServices/Components/scripts/dqmiodumpindices.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | DQMServices/Components/scripts/dqmiodumpindices.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | DQMServices/Components/scripts/dqmiodumpindices.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | #!/usr/bin/env python
from __future__ import print_function
import uproot
import argparse
from prettytable import PrettyTable
from collections import defaultdict
parser = argparse.ArgumentParser(description="Shows Indices table in a DQMIO file. Last column (ME count) is computed like this: lastIndex - firstIndex + 1... | 33.238095 | 162 | 0.689112 |
2d5dc4553abbc55c9321bc9cfe1937d4082c6990 | 272 | py | Python | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | #Exerccio Python 9: Faa um programa que leia um nmero Inteiro qualquer e mostre na tela a sua tabuada.
n = int(input("Digite um nmero: "))
i = 0
print("--------------")
while i < 10:
i += 1
print("{:2} x {:2} = {:2}".format(n, i, n*i))
print("--------------") | 30.222222 | 105 | 0.544118 |
2d5e1da162df4150bdc1aed06c46f5054aabf1f7 | 52 | py | Python | test3a.py | naveen912014/pyneta | 637bf25d39a8e773845dc57eac276382642d92d0 | [
"Apache-2.0"
] | null | null | null | test3a.py | naveen912014/pyneta | 637bf25d39a8e773845dc57eac276382642d92d0 | [
"Apache-2.0"
] | null | null | null | test3a.py | naveen912014/pyneta | 637bf25d39a8e773845dc57eac276382642d92d0 | [
"Apache-2.0"
] | null | null | null |
print
print('This is Naveen')
:q
| 2.26087 | 23 | 0.442308 |
2d5eb9a5f86eac06485fcefb4b677be4db7c878c | 4,988 | py | Python | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 27 | 2019-03-15T21:21:17.000Z | 2022-01-03T14:37:02.000Z | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 4 | 2019-09-30T13:29:20.000Z | 2021-03-20T20:05:36.000Z | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 11 | 2019-03-15T21:21:19.000Z | 2021-08-09T22:10:15.000Z | """Test evaluation functionality."""
from moda.evaluators import f_beta
from moda.evaluators.metrics import calculate_metrics_with_shift, _join_metrics
if __name__ == '__main__':
test_f_beta1()
test_f_beta3()
test_calculate_metrics_with_shift_all_zero()
test_calculate_metrics_with_shift_actu... | 34.4 | 90 | 0.604451 |
2d601a610adba2a9dbf87218ce0ac031d70916ca | 9,070 | py | Python | server/utils/server_db.py | DoctorChe/Python_DataBase_PyQT | 6f65bad52edf9afa8cfce9689f7e88f87d420d9d | [
"MIT"
] | 1 | 2019-08-07T20:08:32.000Z | 2019-08-07T20:08:32.000Z | server/utils/server_db.py | DoctorChe/Python_DataBase_PyQT | 6f65bad52edf9afa8cfce9689f7e88f87d420d9d | [
"MIT"
] | 6 | 2019-08-08T11:53:09.000Z | 2019-09-11T14:45:59.000Z | server/utils/server_db.py | DoctorChe/Python_DataBase_PyQT | 6f65bad52edf9afa8cfce9689f7e88f87d420d9d | [
"MIT"
] | null | null | null | from contextlib import contextmanager
from sqlalchemy import MetaData
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from .config_server import SERVER_DATABASE
engine = create_engine(SERVER_DATABASE)
Base = declarative_base(metadat... | 40.672646 | 115 | 0.634179 |
2d62a8f36d7f870a7dac21567c1c12af16462737 | 3,064 | py | Python | glouton/repositories/archive/archiveRepo.py | deckbsd/glouton-satnogs-data-downloader | 9674081b669b0ca3c04513ede4127c6221962a73 | [
"MIT"
] | 13 | 2018-01-29T06:08:15.000Z | 2020-03-04T07:00:56.000Z | glouton/repositories/archive/archiveRepo.py | deckbsd/glouton-satnogs-data-downloader | 9674081b669b0ca3c04513ede4127c6221962a73 | [
"MIT"
] | 10 | 2018-12-21T11:37:21.000Z | 2021-05-09T12:39:23.000Z | glouton/repositories/archive/archiveRepo.py | deckbsd/glouton-satnogs-data-downloader | 9674081b669b0ca3c04513ede4127c6221962a73 | [
"MIT"
] | 4 | 2019-01-25T13:40:13.000Z | 2019-07-22T08:14:19.000Z | from queue import Queue
from threading import Thread
from glouton.commands.download.downloadCommandParams import DownloadCommandParams
from glouton.commands.download.archiveDownloadCommand import ArchiveDownloadCommand
from glouton.commands.module.endModuleCommand import EndModuleCommand
from glouton.commands.module.en... | 49.419355 | 125 | 0.744778 |
2d63bc571680f79f12326140ffc844c72f08a20c | 418 | py | Python | DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | null | null | null | DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | 12 | 2019-10-25T15:01:06.000Z | 2021-09-22T18:02:03.000Z | DataWorkflow/file_deletion/migrations/0005_maxlength_filename.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-25 19:50
from django.db import migrations, models
| 22 | 73 | 0.617225 |
2d641c2640b0ffe80cc97c24622ffeee1f154b10 | 84 | py | Python | tools/Sikuli/DoReplace.sikuli/DoReplace.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 296 | 2018-05-27T08:03:14.000Z | 2022-03-19T08:36:11.000Z | tools/Sikuli/DoReplace.sikuli/DoReplace.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 1,562 | 2018-05-27T18:36:25.000Z | 2022-03-31T07:35:11.000Z | tools/Sikuli/DoReplace.sikuli/DoReplace.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 299 | 2018-06-18T20:00:56.000Z | 2022-03-29T12:29:55.000Z | click(Pattern("Bameumbrace.png").similar(0.80))
sleep(1)
click("3abnb.png")
exit(0)
| 16.8 | 47 | 0.714286 |
2d6468482d56c0366eac034ecc843d9749364fb7 | 1,459 | py | Python | src/python/procyon/types.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | src/python/procyon/types.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | src/python/procyon/types.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2017 The Procyon Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | 27.018519 | 82 | 0.669637 |
2d6528c8b581dc40057b868ca114d1c79a0e8e3f | 5,053 | py | Python | approval/models.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 2 | 2019-06-08T22:50:59.000Z | 2020-07-12T14:13:18.000Z | approval/models.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 13 | 2020-02-11T23:51:43.000Z | 2021-06-05T13:10:49.000Z | approval/models.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | null | null | null | from django.db import models,transaction
from contact.models import Customer
from product.models import Stock
from django.urls import reverse
from django.db.models import Sum
# Create your models here.
class ApprovalLine(models.Model):
product = models.ForeignKey(Stock,related_name = 'product',
... | 34.37415 | 81 | 0.579458 |
2d662757e1d86c36d9d911b8a2139bac3250db00 | 221 | py | Python | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | 1 | 2019-08-17T03:31:19.000Z | 2019-08-17T03:31:19.000Z | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | null | null | null | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | null | null | null | from pdf2image import convert_from_path, convert_from_bytes
from pdf2image.exceptions import (
PDFInfoNotInstalledError,
PDFPageCountError,
PDFSyntaxError
)
images = convert_from_path('.\git_cheat_sheet.pdf')
| 27.625 | 59 | 0.809955 |
2d677e943a4a9eb487c23dd1525395a69ff39881 | 3,097 | py | Python | Google-Meet-Scheduler/script.py | dsrao711/Amazing-Python-Scripts | 4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7 | [
"MIT"
] | 1 | 2021-04-17T08:33:25.000Z | 2021-04-17T08:33:25.000Z | Google-Meet-Scheduler/script.py | dsrao711/Amazing-Python-Scripts | 4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7 | [
"MIT"
] | null | null | null | Google-Meet-Scheduler/script.py | dsrao711/Amazing-Python-Scripts | 4a8bf7bc3d0c6f2c7838d1380c7f9ddbfce766b7 | [
"MIT"
] | 1 | 2021-07-22T07:06:09.000Z | 2021-07-22T07:06:09.000Z | from googleapiclient.discovery import build
from uuid import uuid4
from google.auth.transport.requests import Request
from pathlib import Path
from google_auth_oauthlib.flow import InstalledAppFlow
from typing import Dict, List
from pickle import load, dump
print('------------------------------')
print('-- Follow YYYY... | 44.884058 | 137 | 0.60155 |
2d6b6bfc0fc1ea8f28924520ef3ca4e11fecded3 | 782 | py | Python | submissions/urls.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 5 | 2018-07-23T13:44:33.000Z | 2021-12-24T20:13:57.000Z | submissions/urls.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 25 | 2018-02-11T00:02:08.000Z | 2021-07-06T22:35:30.000Z | submissions/urls.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 1 | 2021-12-02T14:48:15.000Z | 2021-12-02T14:48:15.000Z | from django.urls import path
from . import views
urlpatterns = [
path('panel/', views.panel, name='panel-noslug'),
path('panel/<slug:conslug>/', views.panel, name='panel'),
path('panelreview/',
views.PendingPanelList.as_view(), name='pending-panel-list-noslug'),
path('panelreview/<slug:conslug... | 43.444444 | 80 | 0.677749 |
2d6c392d23be86039709559e2b39f5d2016733c8 | 1,538 | py | Python | voicebox_project.py | raccoonML/audiotools | 9b378a7e4b136cdb5e1b7a048f8d35794880a4b0 | [
"MIT"
] | null | null | null | voicebox_project.py | raccoonML/audiotools | 9b378a7e4b136cdb5e1b7a048f8d35794880a4b0 | [
"MIT"
] | null | null | null | voicebox_project.py | raccoonML/audiotools | 9b378a7e4b136cdb5e1b7a048f8d35794880a4b0 | [
"MIT"
] | null | null | null | import librosa
import numpy as np
import audio
from hparams import hparams
"""
This helps implement a user interface for a vocoder.
Currently this is Griffin-Lim but can be extended to different vocoders.
Required elements for the vocoder UI are:
self.sample_rate
self.source_action
self.vocode_action
"""
| 32.041667 | 91 | 0.692458 |
2d6d0fc2ece7d6b6190b0adbadaceaefdccb6df6 | 472 | py | Python | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | 2 | 2015-09-28T10:08:13.000Z | 2015-11-08T12:46:43.000Z | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | null | null | null | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | null | null | null | from django.conf import settings
from django import template
from spreedly.functions import subscription_url
register = template.Library() | 27.764706 | 86 | 0.760593 |
2d6f0d4c488163d6af2961ff00285a48a9efa061 | 981 | py | Python | tests/test_replace_lcsh.py | BookOps-CAT/ChangeSubject | bff86ad58685db169a99f9ad3b2df1179cffb5a3 | [
"MIT"
] | 1 | 2022-01-13T20:28:12.000Z | 2022-01-13T20:28:12.000Z | tests/test_replace_lcsh.py | BookOps-CAT/ChangeSubject | bff86ad58685db169a99f9ad3b2df1179cffb5a3 | [
"MIT"
] | null | null | null | tests/test_replace_lcsh.py | BookOps-CAT/ChangeSubject | bff86ad58685db169a99f9ad3b2df1179cffb5a3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from src.replace_lcsh import replace_term, lcsh_fields, normalize_subfields
# def test_flip_impacted_fields(fake_bib):
# pass
| 24.525 | 75 | 0.554536 |
2d6f17060fd47cde9fb3914ca0a07ef8a05b18d0 | 6,178 | py | Python | tutorplanner/input/data.py | tutor-planner/tutor-planner | 25119d2d50322e3a68ebc2a12f9c49f95ff51ad8 | [
"ISC"
] | 1 | 2018-04-16T17:35:57.000Z | 2018-04-16T17:35:57.000Z | tutorplanner/input/data.py | tutor-planner/tutor-planner | 25119d2d50322e3a68ebc2a12f9c49f95ff51ad8 | [
"ISC"
] | null | null | null | tutorplanner/input/data.py | tutor-planner/tutor-planner | 25119d2d50322e3a68ebc2a12f9c49f95ff51ad8 | [
"ISC"
] | 1 | 2020-10-14T12:56:19.000Z | 2020-10-14T12:56:19.000Z | __author__ = ("Matthias Rost <mrost AT inet.tu-berlin.de>, "
"Alexander Elvers <aelvers AT inet.tu-berlin.de>")
__all__ = ["Data"]
from collections import OrderedDict
from typing import Dict, List, Optional
from . import tutor
from . import rooms
from ..util import converter
from ..util.settings import... | 38.855346 | 117 | 0.597443 |
2d6f721c6dc031148182f002703abf47c155dce1 | 359 | py | Python | tests/doubles/producers.py | ess-dmsc/JustBinIt | dc8242ed44f03e92f60618c96596025ec8cbc40e | [
"BSD-2-Clause"
] | null | null | null | tests/doubles/producers.py | ess-dmsc/JustBinIt | dc8242ed44f03e92f60618c96596025ec8cbc40e | [
"BSD-2-Clause"
] | 23 | 2018-12-04T11:50:37.000Z | 2022-03-17T11:30:39.000Z | tests/doubles/producers.py | ess-dmsc/JustBinIt | dc8242ed44f03e92f60618c96596025ec8cbc40e | [
"BSD-2-Clause"
] | 2 | 2019-07-24T11:13:41.000Z | 2020-08-04T18:33:22.000Z | from just_bin_it.exceptions import KafkaException
| 23.933333 | 49 | 0.715877 |
2d70a8b78aca6d858249d4a0c40efeae5a1ad298 | 5,333 | py | Python | openfda/deploy/tests/adae/test_endpoint.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | 388 | 2015-01-09T18:50:35.000Z | 2022-03-24T10:15:23.000Z | openfda/deploy/tests/adae/test_endpoint.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | 150 | 2015-01-21T20:30:54.000Z | 2022-03-28T20:46:29.000Z | openfda/deploy/tests/adae/test_endpoint.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | 113 | 2015-01-31T21:24:16.000Z | 2022-01-30T15:17:28.000Z | # coding=utf-8
import inspect
import sys
from openfda.tests.api_test_helpers import *
if __name__ == '__main__':
all_functions = inspect.getmembers(sys.modules[__name__], inspect.isfunction)
for key, func in all_functions:
if key.find("test_") > -1:
func()
| 42.664 | 101 | 0.649916 |
2d72528a1f010274ea124fa51f712d501f63eda5 | 6,972 | py | Python | dutil.py | Zverik/podcast_duration | dad0719c3876c21c174d7a34678aa3abdefe39a4 | [
"WTFPL"
] | 1 | 2019-02-26T17:26:24.000Z | 2019-02-26T17:26:24.000Z | dutil.py | Zverik/podcast_duration | dad0719c3876c21c174d7a34678aa3abdefe39a4 | [
"WTFPL"
] | null | null | null | dutil.py | Zverik/podcast_duration | dad0719c3876c21c174d7a34678aa3abdefe39a4 | [
"WTFPL"
] | null | null | null | import requests
import re
import json
import datetime
import os
DATE_FORMAT = '%Y-%m-%d'
DATA_PATH = 'rupodcast_lengths.json'
MONTHS = {m: i+1 for i, m in enumerate(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])}
EXTRACTORS = {
... | 28 | 99 | 0.536862 |
2d74ac43e77b3bc75d905f63bb070721d4e2b893 | 557 | py | Python | apps/rates/urls.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/rates/urls.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/rates/urls.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from . import views
urlpatterns = [
url(r'^$', views.rate_list, name='list'),
url(r'^(?P<pk>\d+)/$', views.rate_as_field, name='as_field'),
url(r'^suggestions/$', views.suggestions, name='suggestions'),
url(r'^create/$', views.create_rate, name='creat... | 42.846154 | 97 | 0.626571 |
2d7725aa76b9cb8657abbe0c436fc2ad37634dab | 1,100 | py | Python | icasf/utils.py | human-ai2025/Intent_detection_slot_filling | a1d590b85ceea15ac0c528a9092cd79786f82c7e | [
"MIT"
] | null | null | null | icasf/utils.py | human-ai2025/Intent_detection_slot_filling | a1d590b85ceea15ac0c528a9092cd79786f82c7e | [
"MIT"
] | null | null | null | icasf/utils.py | human-ai2025/Intent_detection_slot_filling | a1d590b85ceea15ac0c528a9092cd79786f82c7e | [
"MIT"
] | null | null | null | # importing libraries
import numpy as np
import pandas as pd
import random
import torch
def set_seeds(seed=1234):
"""[Set seeds for reproducibility.]
Keyword Arguments:
seed {int} -- [The seed value] (default: {1234})
"""
np.random.seed(seed)
random.seed(seed)
torch.manual_seed(seed)
... | 26.190476 | 73 | 0.64 |
2d7a3e516a3dc6332a0d0d4fc1a519e619d09c80 | 95 | py | Python | back/treatments/apps.py | EDario333/idia | 21cab7057f924c58ec098c27effcee1a8f0dc94e | [
"BSD-3-Clause"
] | null | null | null | back/treatments/apps.py | EDario333/idia | 21cab7057f924c58ec098c27effcee1a8f0dc94e | [
"BSD-3-Clause"
] | 5 | 2021-03-11T05:33:41.000Z | 2022-02-27T10:21:50.000Z | back/treatments/apps.py | EDario333/idia | 21cab7057f924c58ec098c27effcee1a8f0dc94e | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
| 15.833333 | 34 | 0.768421 |
2d7be3678b02b1a94e7d1293d4c7eaa5d0726a38 | 1,602 | py | Python | Numbers/alarm.py | arindampradhan/Projects | 5677e05ea56ffea2334d65b275e8920b14980ac2 | [
"MIT"
] | 10 | 2016-07-11T22:09:46.000Z | 2021-12-22T18:59:07.000Z | Numbers/alarm.py | arindampradhan/Projects | 5677e05ea56ffea2334d65b275e8920b14980ac2 | [
"MIT"
] | 1 | 2015-02-26T17:00:13.000Z | 2015-02-26T17:00:13.000Z | Numbers/alarm.py | arindampradhan/Projects | 5677e05ea56ffea2334d65b275e8920b14980ac2 | [
"MIT"
] | 41 | 2015-03-04T00:14:53.000Z | 2022-01-19T14:16:24.000Z | """
Alarm Clock - A simple clock where it plays a sound after
X number of minutes/seconds or at a particular time.
Dependencies:
pyglet
pip install pyglet
"""
import time
import winsound
import pyglet
if __name__ == '__main__':
print """
1. Play sound after X minutes
2. Play sound a... | 32.04 | 100 | 0.581773 |
2d7dcc785b405d3f6e78cbe6c3e04130c286b168 | 3,107 | py | Python | tests/test_in_serializers.py | expobrain/drf-compound-fields | c1ea78705fb460fabde48984a7d195d71adee68a | [
"BSD-3-Clause"
] | null | null | null | tests/test_in_serializers.py | expobrain/drf-compound-fields | c1ea78705fb460fabde48984a7d195d71adee68a | [
"BSD-3-Clause"
] | null | null | null | tests/test_in_serializers.py | expobrain/drf-compound-fields | c1ea78705fb460fabde48984a7d195d71adee68a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_in_serializers
-------------------
Tests of the fields cooperation in the serializer interfaces for serialization, de-serialization,
and validation.
"""
# Django settings:
import os
os.environ['DJANGO_SETTINGS_MODULE'] = __name__
from django.conf.global_sett... | 34.910112 | 99 | 0.717734 |
2d7e4675f7508f5659dc4db59ff7f4d23a5f9db7 | 642 | py | Python | reframe/utility/json.py | stevenvdb/reframe | be9de13dc16d2c9fb4b760e07ac986b04f8ed880 | [
"BSD-3-Clause"
] | null | null | null | reframe/utility/json.py | stevenvdb/reframe | be9de13dc16d2c9fb4b760e07ac986b04f8ed880 | [
"BSD-3-Clause"
] | null | null | null | reframe/utility/json.py | stevenvdb/reframe | be9de13dc16d2c9fb4b760e07ac986b04f8ed880 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
import json
| 25.68 | 76 | 0.705607 |
2d7f27789173a96e9e9a14e59877eda7d7c585f8 | 3,072 | py | Python | occo/enactor/upkeep.py | occopus/enactor | 01d5417b2239c3f6693d767224c3495089b8d9d3 | [
"Apache-2.0"
] | null | null | null | occo/enactor/upkeep.py | occopus/enactor | 01d5417b2239c3f6693d767224c3495089b8d9d3 | [
"Apache-2.0"
] | null | null | null | occo/enactor/upkeep.py | occopus/enactor | 01d5417b2239c3f6693d767224c3495089b8d9d3 | [
"Apache-2.0"
] | 3 | 2015-11-12T09:36:13.000Z | 2017-11-30T10:04:38.000Z | ### Copyright 2014, MTA SZTAKI, www.sztaki.hu
###
### 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 applicab... | 35.310345 | 92 | 0.659831 |
2d7ff8efa71157528cf59e7762c185eb4caf5b50 | 147 | py | Python | Chapter08/chapter8_sflowtool_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 107 | 2017-03-31T09:39:47.000Z | 2022-01-10T17:43:12.000Z | Chapter08/chapter8_sflowtool_1.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 3 | 2020-03-29T14:14:43.000Z | 2020-10-29T18:21:09.000Z | Chapter08/chapter8_sflowtool_1.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 98 | 2017-02-25T17:55:43.000Z | 2022-02-20T19:06:06.000Z | #!/usr/bin/env python3
import sys, re
for line in iter(sys.stdin.readline, ''):
if re.search('agent ', line):
print(line.strip())
| 14.7 | 41 | 0.605442 |
2d80556385c4d4bedc014437f9eac4454a0a8d16 | 1,277 | py | Python | examples/fuzz.py | defparam/haptyc | 9baecd797081bbf6edada2db9aad3b1fd3331190 | [
"Apache-2.0"
] | 74 | 2021-09-09T22:19:22.000Z | 2022-01-12T00:52:08.000Z | examples/fuzz.py | defparam/haptyc | 9baecd797081bbf6edada2db9aad3b1fd3331190 | [
"Apache-2.0"
] | null | null | null | examples/fuzz.py | defparam/haptyc | 9baecd797081bbf6edada2db9aad3b1fd3331190 | [
"Apache-2.0"
] | 15 | 2021-09-18T21:01:50.000Z | 2022-02-01T18:59:59.000Z | from haptyc import *
from base64 import b64encode, b64decode
import json
| 31.146341 | 115 | 0.591229 |
2d805588965de2f3350c8e40dca405d56b0fa7da | 1,271 | py | Python | nginx-with-mtls-and-appserver/appserver/app.py | fshmcallister/examples | e2052778cbd531bf716131b8311e87c4ee005f07 | [
"MIT"
] | 6 | 2019-10-18T13:32:46.000Z | 2020-06-20T17:45:43.000Z | nginx-with-mtls-and-appserver/appserver/app.py | fshmcallister/examples | e2052778cbd531bf716131b8311e87c4ee005f07 | [
"MIT"
] | 4 | 2019-07-18T16:05:57.000Z | 2021-09-23T23:27:06.000Z | nginx-with-mtls-and-appserver/appserver/app.py | fshmcallister/examples | e2052778cbd531bf716131b8311e87c4ee005f07 | [
"MIT"
] | 3 | 2019-07-15T13:16:49.000Z | 2020-01-09T09:39:33.000Z | import re
from flask import Flask, request
app = Flask(__name__)
def grant_client_access(headers):
"""
We need to check for:
* 'Ssl-Client-Verify' = 'SUCCESS'
* 'Ssl-Client' = 'CN=x.d.wott.local,O=Web of Trusted Things\\, Ltd,ST=London,C=UK')
"""
if not headers.get('Ssl-Client-Verify') ==... | 24.442308 | 88 | 0.610543 |
2d81d3087ce7b2f4ba15e8c7dc9496c1d42f9104 | 1,676 | py | Python | Database/flask-sqlalchemy/one_to_many.py | amamov/cs001 | 5753f28e74e2330837d22142cff4713801c77a2d | [
"MIT"
] | 5 | 2021-02-21T17:10:03.000Z | 2022-03-04T21:17:50.000Z | flask-sqlalchemy/one_to_many.py | amamov/pythonic | 95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0 | [
"MIT"
] | null | null | null | flask-sqlalchemy/one_to_many.py | amamov/pythonic | 95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0 | [
"MIT"
] | 3 | 2021-02-25T17:53:57.000Z | 2021-06-25T17:25:44.000Z | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from pathlib import Path
app = Flask(__name__)
BASE_DIR = Path(__file__).resolve().parent
DB_PATH = str(BASE_DIR / "one_to_many.sqlite")
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + DB_PATH
app.config["SQLALCHEMY_COMMIT_ON_SUBMIT"] = True
app... | 23.942857 | 77 | 0.679594 |
2d83d5ac7ec09bb8e96ad46997e6e2b1b848abb9 | 231 | py | Python | hcap_utils/contrib/material/views/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | null | null | null | hcap_utils/contrib/material/views/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 31 | 2020-04-11T13:38:17.000Z | 2021-09-22T18:51:11.000Z | hcap_utils/contrib/material/views/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 1 | 2020-04-08T17:04:39.000Z | 2020-04-08T17:04:39.000Z | from .create_model_view import CreateModelView
from .delete_model_view import DeleteModelView
from .detail_model_view import DetailModelView
from .list_model_view import ListModelView
from .update_model_view import UpdateModelView
| 38.5 | 46 | 0.891775 |
2d849f6ef02f2ba2420e4777e5f788eedd4a8971 | 357 | py | Python | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | 1 | 2022-02-18T22:28:36.000Z | 2022-02-18T22:28:36.000Z | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | null | null | null | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | null | null | null | import boto3
import logging
import json
| 29.75 | 94 | 0.742297 |
2d860cb528497ffbf5b2990f064b4319234cb072 | 4,204 | py | Python | boids/boids.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | 1 | 2022-02-21T15:54:01.000Z | 2022-02-21T15:54:01.000Z | boids/boids.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | null | null | null | boids/boids.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | 2 | 2020-11-21T16:34:22.000Z | 2021-01-27T10:30:34.000Z | # Ported from JavaSript version to Python and Pygame Zero
# Designed to work well with mu-editor environment.
#
# Original by Ben Eater at https://github.com/beneater/boids (MIT License)
# No endorsement implied.
import random
HEIGHT = 600 # window height
WIDTH = 700 # window width
MARG... | 29.815603 | 77 | 0.620124 |
2d8645dc45088fa874c2aeccbf853372bdcf387c | 507 | py | Python | notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py | EmanuelFontelles/machineLearning | 26e810c2dbc89c2076b312d02a957ab6f8dee7d8 | [
"MIT"
] | 2 | 2018-11-09T03:49:31.000Z | 2019-06-28T17:24:04.000Z | notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py | lucasvt01/Machine_Learning | 6ee17061b77d23c966ad7700712938bfe00ef9c1 | [
"MIT"
] | null | null | null | notebook/03-udacityIntroductionToMachineLearning/projects/datasets_questions/utils/read_names.py | lucasvt01/Machine_Learning | 6ee17061b77d23c966ad7700712938bfe00ef9c1 | [
"MIT"
] | 2 | 2020-05-09T00:49:56.000Z | 2021-08-28T07:24:46.000Z | import pandas as pd
import sys
from os import system
sys.path.append('../final_project/')
sys.path.append('../')
def readNames(inputFile='new_poi_names.txt'):
'''
A function to read names data from a file create by a data cache
Returns:
Returns a data frame that contains data from 'poi_names.txt'
... | 25.35 | 96 | 0.672584 |
2d8781eedd833caad160a7f046c6482144d1ef2b | 1,270 | py | Python | launch/test/legacy/launch_counter.py | stonier/launch | e8704247708eb017c388aaf8606e9dbb6971239b | [
"Apache-2.0"
] | null | null | null | launch/test/legacy/launch_counter.py | stonier/launch | e8704247708eb017c388aaf8606e9dbb6971239b | [
"Apache-2.0"
] | null | null | null | launch/test/legacy/launch_counter.py | stonier/launch | e8704247708eb017c388aaf8606e9dbb6971239b | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Open Source Robotics Foundation, 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... | 35.277778 | 89 | 0.734646 |
2d888527e706a87e3f98f2c6cc06bcf9c253256b | 4,833 | py | Python | exporter/config.py | TaIos/code_generator | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | 2 | 2021-02-12T12:07:26.000Z | 2022-02-10T23:49:43.000Z | exporter/config.py | TaIos/code_generator | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | 1 | 2020-12-05T10:38:31.000Z | 2020-12-05T10:38:31.000Z | exporter/config.py | TaIos/exporter | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | null | null | null | import pathlib
| 32.006623 | 102 | 0.589696 |
2d8947d4985d3f74c9b311aff5ca0779c9ce0c9d | 3,613 | py | Python | mars/learn/tests/test_wrappers.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | 1 | 2022-02-02T03:03:48.000Z | 2022-02-02T03:03:48.000Z | mars/learn/tests/test_wrappers.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | mars/learn/tests/test_wrappers.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2021 Alibaba Group Holding 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 a... | 33.453704 | 88 | 0.729588 |
2d8b618cd92e8a0d5a05adebae79ed5b9c19a3f8 | 620 | py | Python | setup.py | mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor | dc5b0c9b783e105efe06220daf4db3bd8c84c87a | [
"MIT"
] | 3 | 2018-08-21T14:34:27.000Z | 2018-08-21T14:40:04.000Z | setup.py | mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor | dc5b0c9b783e105efe06220daf4db3bd8c84c87a | [
"MIT"
] | null | null | null | setup.py | mayankgiri619/Speech-Recognizer-cum-Voice-Typing-Editor | dc5b0c9b783e105efe06220daf4db3bd8c84c87a | [
"MIT"
] | 3 | 2019-06-30T13:46:31.000Z | 2021-04-23T09:35:55.000Z | import cx_Freeze
import sys
base = None
if sys.platform == 'win32':
base = "Win32GUI"
executables = [cx_Freeze.Executable("Speech_Recognizer.py", base=base, icon = "icon.ico")]
cx_Freeze.setup(
name = "Speech Recognizer",
author = "Mayank Kumar Giri",
options = {"build_exe":{"packages":... | 34.444444 | 162 | 0.669355 |
2d8f6e8ccc46303dc79e17c51afb21313146a6d3 | 7,101 | py | Python | checkers/checker_optimization_knapsack.py | aosokin/assignment_checker_email | ce6efe6902625a463e25e22add14d9616b2d13ee | [
"MIT"
] | 4 | 2016-07-03T18:51:45.000Z | 2021-10-13T12:00:47.000Z | checkers/checker_optimization_knapsack.py | aosokin/assignment_checker_email | ce6efe6902625a463e25e22add14d9616b2d13ee | [
"MIT"
] | null | null | null | checkers/checker_optimization_knapsack.py | aosokin/assignment_checker_email | ce6efe6902625a463e25e22add14d9616b2d13ee | [
"MIT"
] | null | null | null |
import sys
import numpy as np
import os
import math
import chardet
import io
COMPARISON_ACCURACY = 1e-2
MAX_SCORE = 1.0
HALF_SCORE = 0.5
SUBMISSION_SCORE = 0.0
MESSAGES_SCORE = {}
MESSAGES_SCORE[SUBMISSION_SCORE] = lambda value, value_to_get : \
'Your submission output is good, but the solution ob... | 37.373684 | 245 | 0.619068 |
2d8f8e28942f195a55b92faceed62f651846b560 | 332 | py | Python | src/485-max-consecutive-ones.py | sahilrider/LeetCode-Solutions | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | [
"MIT"
] | 2 | 2020-03-06T11:44:25.000Z | 2020-03-13T20:07:48.000Z | src/485-max-consecutive-ones.py | sahilrider/LeetCode-Solutions | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | [
"MIT"
] | null | null | null | src/485-max-consecutive-ones.py | sahilrider/LeetCode-Solutions | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | [
"MIT"
] | null | null | null | '''https://leetcode.com/problems/max-consecutive-ones/''' | 27.666667 | 61 | 0.472892 |
2d8fae0946e143eccda5adf40ae6e9f29db66db6 | 1,508 | py | Python | setup.py | milnus/Phupa | 67822d445c0c235b4652d3a269e846d2babd1b9c | [
"MIT"
] | 1 | 2021-11-02T03:22:42.000Z | 2021-11-02T03:22:42.000Z | setup.py | milnus/Phupa | 67822d445c0c235b4652d3a269e846d2babd1b9c | [
"MIT"
] | 3 | 2021-04-15T01:22:31.000Z | 2022-01-28T02:33:06.000Z | setup.py | milnus/primer_site_extraction_software | 67822d445c0c235b4652d3a269e846d2babd1b9c | [
"MIT"
] | 1 | 2021-11-29T00:07:02.000Z | 2021-11-29T00:07:02.000Z | #!/usr/bin/env python
from setuptools import setup
LONG_DESCRIPTION = \
'''The program extracts regions of interest from Fasta or Genome Feature Format (GFF) genomes.
This is done given a set of seed sequences given as nucleotide strings in a multi-line fasta file.
The program can output fasta and GFF outputs or re... | 39.684211 | 125 | 0.68634 |
2d902e63cf6b01f219487429775dd10a277526c1 | 56 | py | Python | tests/__init__.py | EmmanuelObo/python-coord | edcecc881c26b81f3a74db140fdb9dfb2106fb3d | [
"MIT"
] | null | null | null | tests/__init__.py | EmmanuelObo/python-coord | edcecc881c26b81f3a74db140fdb9dfb2106fb3d | [
"MIT"
] | 1 | 2021-03-25T22:00:56.000Z | 2021-03-25T22:00:56.000Z | tests/__init__.py | EmmanuelObo/python-coord | edcecc881c26b81f3a74db140fdb9dfb2106fb3d | [
"MIT"
] | null | null | null | from tests import test_bike
from tests import test_curb
| 18.666667 | 27 | 0.857143 |
2d90fd798725f293a72746db65ecf6534864d958 | 599 | py | Python | tranquil/solve.py | skyeto/actf2021 | f5f4e280ac459f8d01943f87512cf2b466588f50 | [
"MIT"
] | null | null | null | tranquil/solve.py | skyeto/actf2021 | f5f4e280ac459f8d01943f87512cf2b466588f50 | [
"MIT"
] | null | null | null | tranquil/solve.py | skyeto/actf2021 | f5f4e280ac459f8d01943f87512cf2b466588f50 | [
"MIT"
] | null | null | null | from pwn import *
from pwnlib.elf import *
## Get the offset
## Should be @ 0x401260 <vuln+92> ret <0x6161617461616173>
## cyclic -c amd64 -l 0x61616174
## 72
#payload = cyclic(100)
#p = process('./tranquil')
#gdb.attach(p, gdbscript="""
#continue
#""")
#print(p.readline())
#p.sendline(payload)
#print(p.readli... | 18.71875 | 66 | 0.661102 |
2d94558c7c873c9ba1bee3f6b9671d5e8e49c3c7 | 5,788 | py | Python | model.py | Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network | c2579121b39a536a946adc26c740dc9a7e32296b | [
"MIT"
] | 12 | 2021-03-31T10:10:13.000Z | 2022-02-24T11:11:16.000Z | model.py | Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network | c2579121b39a536a946adc26c740dc9a7e32296b | [
"MIT"
] | 6 | 2021-04-02T20:44:18.000Z | 2021-11-10T10:21:04.000Z | model.py | Vishal2188/TherISuRNet---A-Computationally-Efficient-Thermal-Image-Super-Resolution-Network | c2579121b39a536a946adc26c740dc9a7e32296b | [
"MIT"
] | 2 | 2021-04-15T11:44:05.000Z | 2021-09-01T15:28:10.000Z | import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
| 41.640288 | 117 | 0.636835 |
2d961bbd9e62206e0f980c876fa9c77bbf669f26 | 10,337 | py | Python | authordetect/tokenizers/nltk.py | fabianfallasmoya/authorship_classification | fbcc1d21407cd65b5909fc04209d4517e6a033a1 | [
"MIT"
] | 2 | 2020-10-16T19:27:21.000Z | 2021-11-04T15:06:54.000Z | authordetect/tokenizers/nltk.py | fabianfallasmoya/authorship_classification | fbcc1d21407cd65b5909fc04209d4517e6a033a1 | [
"MIT"
] | 24 | 2020-07-13T01:49:36.000Z | 2020-10-30T21:54:00.000Z | facet/tokenizer/nltk.py | edponce/FACET | 0dca2d728813a4865e72b2e8fd6b114a0c63d5b0 | [
"MIT"
] | null | null | null | import nltk
from .base import BaseTokenizer
from typing import (
Tuple,
Iterator,
)
__all__ = ['NLTKTokenizer']
| 35.159864 | 78 | 0.546387 |
2d96973e83e7a2807cf2780063d803366b4ad276 | 10,185 | py | Python | vcs/editors/marker.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 11 | 2018-10-10T03:14:33.000Z | 2022-01-05T14:18:15.000Z | vcs/editors/marker.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 196 | 2018-03-21T19:44:56.000Z | 2021-12-21T21:56:24.000Z | vcs/editors/marker.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T21:54:45.000Z | 2022-03-20T04:22:14.000Z | from vcs import vtk_ui
from vcs.colorpicker import ColorPicker
from vcs.vtk_ui import behaviors
from vcs.VCS_validation_functions import checkMarker
import vtk
import vcs.vcs2vtk
from . import priority
import sys
__shape_cache = {}
| 30.494012 | 106 | 0.559352 |
2d97ba6d06d356159a1be569b516b82e7fd9edeb | 3,608 | py | Python | tinkoff/invest/_errors.py | forked-group/invest-python | 3398391f5bb4a52020c312855de175cfe8cdc021 | [
"Apache-2.0"
] | 41 | 2022-01-21T05:38:57.000Z | 2022-03-30T03:54:41.000Z | tinkoff/invest/_errors.py | forked-group/invest-python | 3398391f5bb4a52020c312855de175cfe8cdc021 | [
"Apache-2.0"
] | 20 | 2022-01-24T05:46:02.000Z | 2022-03-31T16:54:04.000Z | tinkoff/invest/_errors.py | forked-group/invest-python | 3398391f5bb4a52020c312855de175cfe8cdc021 | [
"Apache-2.0"
] | 15 | 2022-01-25T06:53:27.000Z | 2022-03-30T03:49:07.000Z | from functools import wraps
from typing import Any, Callable, TypeVar, cast
from grpc import Call, RpcError
from grpc.aio import AioRpcError
from .exceptions import AioRequestError, RequestError
from .logging import get_metadata_from_aio_error, get_metadata_from_call, log_error
TFunc = TypeVar("TFunc", bound=Callabl... | 33.407407 | 83 | 0.504435 |
2d97f03499e19a5c1f5c27d7a74182ab0d44f492 | 4,049 | py | Python | src/controllerarena/controllers/refVec.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | src/controllerarena/controllers/refVec.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | src/controllerarena/controllers/refVec.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | # code for python reference dipole vector field controller
# these functions require stuff
#from mathFuns import *
from numpy import *
from math import *
# For future:
# pass r vector as parameter
# low pass filtering for derivatives (PD control?) [phidot]
# visual stuff
# global feedback plan is the ref vecf field
#... | 34.313559 | 147 | 0.568288 |
2d986f68f511ab1e314274eb389796705ee7e764 | 7,066 | py | Python | script/trainer/trainer.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | script/trainer/trainer.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | script/trainer/trainer.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torchvision import transforms
from torch.utils.data import DataLoader, TensorDataset, Dataset
from torch.utils.data.sampler import SubsetRandomSampler
from torch import optim
import pandas as pd
import sys
sys.path.append('./proto')
import trainer_pb2
import trainer_pb2_grpc
impo... | 31.544643 | 107 | 0.601472 |
2d987782f603dc9882b5729a821433527afffdcc | 1,475 | py | Python | polls/views.py | alejandro-medici/django_docker | 6fe847837c244f506bd35809f2444f182bfc6500 | [
"MIT"
] | 1 | 2021-12-02T22:44:24.000Z | 2021-12-02T22:44:24.000Z | polls/views.py | alejandro-medici/django_docker | 6fe847837c244f506bd35809f2444f182bfc6500 | [
"MIT"
] | null | null | null | polls/views.py | alejandro-medici/django_docker | 6fe847837c244f506bd35809f2444f182bfc6500 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.template.loader import get_template
from .models import Poll
from time import timezone
from datetime import date
# Create your views here.
# CRUD
#### SECURITY PENDING TOPICS
# Toda conexion con el back deberia tener un token.
# ... | 30.102041 | 79 | 0.699661 |
2d9a25324f21790c34116f8d2994220e3c4fb627 | 3,644 | py | Python | train.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | train.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | train.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import tensorflow as tf
import time
import input as ip
import lm
import config as cf
import numpy as np
if __name__ == "__main__":
tf.app.run()
| 40.043956 | 92 | 0.621844 |
2d9c04e64991b8b9420152f31a373fa2bb0db9b8 | 9,312 | py | Python | PICdecompression.py | lukestaniscia/PIC | 65e46bad184a17827234fc94313509c456b81986 | [
"MIT"
] | 2 | 2022-01-28T01:33:36.000Z | 2022-02-13T11:07:22.000Z | PICdecompression.py | lukestaniscia/PIC | 65e46bad184a17827234fc94313509c456b81986 | [
"MIT"
] | null | null | null | PICdecompression.py | lukestaniscia/PIC | 65e46bad184a17827234fc94313509c456b81986 | [
"MIT"
] | null | null | null | # PIC Decompressor
# By: Luke Staniscia
#import used libraries/packages
import math
from PIL import Image, ImageOps, ImageEnhance
import time
| 34.361624 | 255 | 0.641753 |
2d9ca014f6148bba68bdfa5b4c7582e543d8a366 | 320 | py | Python | FlyBIDS/utils.py | PennLINC/FlyBIDS | 0b44d624c75f537c668d75664c239c51100bdf8d | [
"MIT"
] | null | null | null | FlyBIDS/utils.py | PennLINC/FlyBIDS | 0b44d624c75f537c668d75664c239c51100bdf8d | [
"MIT"
] | null | null | null | FlyBIDS/utils.py | PennLINC/FlyBIDS | 0b44d624c75f537c668d75664c239c51100bdf8d | [
"MIT"
] | 1 | 2021-11-25T21:33:13.000Z | 2021-11-25T21:33:13.000Z | import re
| 17.777778 | 38 | 0.553125 |
2d9d64a82c22c23125bda210680688498f197ef6 | 16,493 | py | Python | bayes_optim/acquisition_optim/one_plus_one_cma_es.py | zdanial/Bayesian-Optimization | a4779e992da15d21fa3fc425293cfb1f2621f81f | [
"BSD-3-Clause"
] | null | null | null | bayes_optim/acquisition_optim/one_plus_one_cma_es.py | zdanial/Bayesian-Optimization | a4779e992da15d21fa3fc425293cfb1f2621f81f | [
"BSD-3-Clause"
] | null | null | null | bayes_optim/acquisition_optim/one_plus_one_cma_es.py | zdanial/Bayesian-Optimization | a4779e992da15d21fa3fc425293cfb1f2621f81f | [
"BSD-3-Clause"
] | null | null | null | import logging
from copy import copy
from typing import Callable, Dict, List, Union
import numpy as np
from scipy.linalg import solve_triangular
from ..search_space import RealSpace, SearchSpace
from ..utils import dynamic_penalty, get_logger, handle_box_constraint, set_bounds
Vector = List[float]
Matrix = List[Vect... | 35.166311 | 108 | 0.560056 |
2d9e596053cbf26c358f0b0d5fec8cd4ccabf164 | 114 | py | Python | app/models.py | emmapraise/tweekners | c4c1af7bbf606d1e1b031482ebe9bed8fb62292a | [
"MIT"
] | 1 | 2021-04-30T15:55:00.000Z | 2021-04-30T15:55:00.000Z | app/models.py | emmapraise/tweekners | c4c1af7bbf606d1e1b031482ebe9bed8fb62292a | [
"MIT"
] | null | null | null | app/models.py | emmapraise/tweekners | c4c1af7bbf606d1e1b031482ebe9bed8fb62292a | [
"MIT"
] | null | null | null | from . import db
| 22.8 | 38 | 0.605263 |
2da001704782c80e590fd5c245e888c659cc6581 | 4,526 | py | Python | tests/tests/test_provides_depends.py | NilsOlavKJohansen/integration | f6f70ad03e2518d76b90ebbfe37ff309a3c442e7 | [
"Apache-2.0"
] | null | null | null | tests/tests/test_provides_depends.py | NilsOlavKJohansen/integration | f6f70ad03e2518d76b90ebbfe37ff309a3c442e7 | [
"Apache-2.0"
] | 66 | 2021-02-01T06:47:58.000Z | 2022-02-28T16:03:48.000Z | tests/tests/test_provides_depends.py | NilsOlavKJohansen/integration | f6f70ad03e2518d76b90ebbfe37ff309a3c442e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2021 Northern.tech AS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 42.299065 | 152 | 0.670349 |
2da05b7bb91fd333642597816cb7392931c551a1 | 276 | py | Python | tests/_support/docstrings.py | techtonik/invoke | f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a | [
"BSD-2-Clause"
] | null | null | null | tests/_support/docstrings.py | techtonik/invoke | f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a | [
"BSD-2-Clause"
] | null | null | null | tests/_support/docstrings.py | techtonik/invoke | f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a | [
"BSD-2-Clause"
] | null | null | null | from invoke import task
| 9.857143 | 25 | 0.514493 |
2da1a492db1b897c4bb9696be1e2b24cd6f6083c | 280 | py | Python | love_release/utils.py | toxinu/pylove-release | 92d879cbaa7cd6e5adfe21151617377bde7ba358 | [
"Zlib"
] | 1 | 2017-02-26T10:50:03.000Z | 2017-02-26T10:50:03.000Z | love_release/utils.py | toxinu/pylove-release | 92d879cbaa7cd6e5adfe21151617377bde7ba358 | [
"Zlib"
] | 1 | 2020-12-09T08:15:16.000Z | 2020-12-09T08:15:16.000Z | love_release/utils.py | toxinu/pylove-release | 92d879cbaa7cd6e5adfe21151617377bde7ba358 | [
"Zlib"
] | null | null | null | from subprocess import PIPE
from subprocess import Popen
| 28 | 64 | 0.689286 |
2da324e1630916481c6ac8f3476873373cb7e770 | 12,748 | py | Python | gender_converter/model/loss.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | null | null | null | gender_converter/model/loss.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | 1 | 2021-08-11T06:41:56.000Z | 2021-08-11T06:41:56.000Z | gender_converter/model/loss.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras.layers import Layer
from debugprint import print_debug
from .utils import get_mask_from_lengths
| 56.15859 | 124 | 0.655005 |
2da34ae804d338824cab481265b913a1023b155d | 2,509 | py | Python | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | """Markdown filters
This file contains a collection of utility filters for dealing with
markdown within Jinja templates.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import os
import subprocess
from io import TextIOWra... | 28.511364 | 87 | 0.721403 |
2da37e3c9de143cff5afbbd07d8f713a7806daa6 | 3,006 | py | Python | tests/test_python_simulation_function.py | tanxicccc/rsopt | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | [
"Apache-2.0"
] | null | null | null | tests/test_python_simulation_function.py | tanxicccc/rsopt | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | [
"Apache-2.0"
] | null | null | null | tests/test_python_simulation_function.py | tanxicccc/rsopt | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | [
"Apache-2.0"
] | null | null | null | import unittest
import sys
import inspect
from unittest import mock
import numpy as np
import rsopt.libe_tools.simulation_functions.python_simulation_functions as pyfunc
import rsopt.optimizer as opt
radiamodule = mock.MagicMock()
sys.modules["radia"] = radiamodule
from rsopt.codes.radia.sim_functions import hybrid_und... | 37.111111 | 116 | 0.659348 |
2da5fddf872be8bcdd6b64ff00d82f7bd32eb0ed | 10,646 | py | Python | ranker/views.py | shreyashc/firecube | 4e3da7b66398cafb54182afdf34bfe76fd160376 | [
"Apache-2.0"
] | 1 | 2020-06-23T13:04:07.000Z | 2020-06-23T13:04:07.000Z | ranker/views.py | shreyashc/firecube | 4e3da7b66398cafb54182afdf34bfe76fd160376 | [
"Apache-2.0"
] | 4 | 2021-03-30T13:41:15.000Z | 2021-06-04T23:28:51.000Z | ranker/views.py | shreyashc/firecube | 4e3da7b66398cafb54182afdf34bfe76fd160376 | [
"Apache-2.0"
] | null | null | null | import datetime
import json
import os
import random
import re
from urllib.parse import quote
import lxml
import pafy
import requests
import youtube_dl
from bs4 import BeautifulSoup
from django.conf import settings
from django.core.files.storage import FileSystemStorage
from django.http import (Http404, HttpResponse, H... | 29.490305 | 91 | 0.629814 |
2da60021013430b40d9e59ed61bc0bac8ce56e08 | 416 | py | Python | spotdl/get-file-name.py | Shaxadhere/spotdl | fc7d587a86b886fa4e020ac825d1748a7776de32 | [
"MIT"
] | 25 | 2019-02-21T09:31:56.000Z | 2022-03-13T15:36:24.000Z | spotdl/get-file-name.py | Shaxadhere/spotdl | fc7d587a86b886fa4e020ac825d1748a7776de32 | [
"MIT"
] | 2 | 2019-09-02T20:04:44.000Z | 2019-12-27T22:13:13.000Z | spotdl/get-file-name.py | Shaxadhere/spotdl | fc7d587a86b886fa4e020ac825d1748a7776de32 | [
"MIT"
] | 9 | 2019-10-01T12:44:29.000Z | 2021-03-24T10:09:03.000Z | from spotdl import handle
from spotdl import const
from spotdl import downloader
import os
import sys
const.args = handle.get_arguments(to_group=True)
track = downloader.Downloader(raw_song=const.args.song[0])
track_title = track.refine_songname(track.content.title)
track_filename = track_title + const.args.output_... | 26 | 69 | 0.822115 |
2da6673de1f45443b481635cfc357d6aa84b8b6e | 10,180 | py | Python | jax/_src/numpy/ndarray.py | tianjuchen/jax | 4755dc3fee8a33030c0571ecf4217c5656e3170d | [
"Apache-2.0"
] | null | null | null | jax/_src/numpy/ndarray.py | tianjuchen/jax | 4755dc3fee8a33030c0571ecf4217c5656e3170d | [
"Apache-2.0"
] | null | null | null | jax/_src/numpy/ndarray.py | tianjuchen/jax | 4755dc3fee8a33030c0571ecf4217c5656e3170d | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.391892 | 87 | 0.654224 |
2da77faddf4b0a9e2d1e82abb164f673b693fc5a | 2,047 | py | Python | tests/cursor_test.py | lunixbochs/bearfield | 1dd2f6932af900393ca764d8aa1ec6c043dd24ed | [
"BSD-3-Clause"
] | 1 | 2020-02-10T04:10:47.000Z | 2020-02-10T04:10:47.000Z | tests/cursor_test.py | lunixbochs/bearfield | 1dd2f6932af900393ca764d8aa1ec6c043dd24ed | [
"BSD-3-Clause"
] | null | null | null | tests/cursor_test.py | lunixbochs/bearfield | 1dd2f6932af900393ca764d8aa1ec6c043dd24ed | [
"BSD-3-Clause"
] | null | null | null | """Tests for the cursor module."""
from __future__ import absolute_import
from . import common
from bearfield import cursor, Document, Field, Query
| 32.492063 | 91 | 0.587201 |
2da7cbb4021480710bdd309c7b2cd4bb7eabafd6 | 1,417 | py | Python | probability_combinatorics/combinatoric.py | codecakes/random_games | 1e670021ec97a196726e937e658878dc63ba9d34 | [
"MIT"
] | null | null | null | probability_combinatorics/combinatoric.py | codecakes/random_games | 1e670021ec97a196726e937e658878dc63ba9d34 | [
"MIT"
] | null | null | null | probability_combinatorics/combinatoric.py | codecakes/random_games | 1e670021ec97a196726e937e658878dc63ba9d34 | [
"MIT"
] | null | null | null | from decimal import Decimal
from math import e, factorial
def combination(num, den):
"""
Find nCr or (n r), the Binomial Coefficients
"""
dec1 = dec2 = Decimal(1)
if 0 <= den <= num:
diff = num - den
if num-diff < num-den:
temp = diff
other = den
else... | 26.240741 | 88 | 0.531404 |
2da83aad3727d404e8eb161796f19ec8b932423c | 471 | py | Python | tests/conftest.py | bcsummers/falcon-provider-redis | fb2644530196448aff6c1924d8bd533f0ce4ee8c | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | bcsummers/falcon-provider-redis | fb2644530196448aff6c1924d8bd533f0ce4ee8c | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | bcsummers/falcon-provider-redis | fb2644530196448aff6c1924d8bd533f0ce4ee8c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Testing conf module."""
# third-party
import pytest
from falcon import testing
from .app import app_hook, app_middleware
| 23.55 | 58 | 0.73673 |
2da8c8644c0e6cac3083e9093738eebd0e2b170b | 1,574 | py | Python | sortingview/SpikeSortingView/create_position_pdf_plot.py | garrettmflynn/sortingview | 0bb3df40d5d031ec651c4821f928787bbee71fbb | [
"Apache-2.0"
] | 2 | 2021-11-19T04:51:42.000Z | 2022-03-12T23:36:19.000Z | sortingview/experimental/SpikeSortingView/create_position_pdf_plot.py | magland/sortingview | 0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7 | [
"Apache-2.0"
] | 172 | 2021-05-10T17:39:15.000Z | 2022-03-18T21:46:15.000Z | sortingview/SpikeSortingView/create_position_pdf_plot.py | garrettmflynn/sortingview | 0bb3df40d5d031ec651c4821f928787bbee71fbb | [
"Apache-2.0"
] | 2 | 2021-08-29T20:13:57.000Z | 2022-03-12T23:36:34.000Z | from typing import List, Union
import numpy as np
from .Figure import Figure
# def _get_subsample_inds(timestamps: np.array, sampling_frequency: float):
# dt = 1 / sampling_frequency
# ret = []
# last_t = timestamps[0] - dt * 2
# for i in range(len(timestamps)):
# delta = timestamps[i] - last_t... | 31.48 | 216 | 0.622618 |
2da911fdfe3d966fb015f3569a027ce8ff19ecfb | 976 | py | Python | Prototype Pygame/arrays.py | KValexander/own_rts | 6bfeadb5c5d29461471c84d883b616117cea79f5 | [
"MIT"
] | null | null | null | Prototype Pygame/arrays.py | KValexander/own_rts | 6bfeadb5c5d29461471c84d883b616117cea79f5 | [
"MIT"
] | null | null | null | Prototype Pygame/arrays.py | KValexander/own_rts | 6bfeadb5c5d29461471c84d883b616117cea79f5 | [
"MIT"
] | null | null | null | # Connect files
from configs import *
# Arrays
items = []
selectedItems = []
# Interface arrays
buttons = []
surfaces = []
# Getting item
# Removing item
# Removing items
# Adding items in selection items
# Clear selected items
# Clear buttons
# Clear surfaces
# Import templates
from templates import Worker
... | 16.542373 | 42 | 0.71209 |
2daba1326e1f0508a50319a46a2356919a73deaf | 6,236 | py | Python | webapp/app.py | liaosvcaf/earlyAlertOfLaws | 9c348304c977bf8266f41a26e8ef1b9625bf2624 | [
"BSD-3-Clause"
] | null | null | null | webapp/app.py | liaosvcaf/earlyAlertOfLaws | 9c348304c977bf8266f41a26e8ef1b9625bf2624 | [
"BSD-3-Clause"
] | 32 | 2019-06-16T18:37:56.000Z | 2020-04-13T05:46:51.000Z | webapp/app.py | liaosvcaf/earlyAlertOfLaws | 9c348304c977bf8266f41a26e8ef1b9625bf2624 | [
"BSD-3-Clause"
] | 1 | 2019-06-19T19:26:47.000Z | 2019-06-19T19:26:47.000Z | import os
import markdown2
from forms import AddKeywordForm, SubscribeEmailForm, TimeWindowForm
from flask import (flash, render_template, request, escape, redirect, url_for,
session, abort)
from flask_paginate import Pagination, get_page_parameter
from parsing.notifications import send_email_subs_... | 36.899408 | 85 | 0.581944 |
2daf875f81bee0d399c3a9fc2f2a690e79795655 | 46,895 | py | Python | colossalai/nn/layer/parallel_1d/layers.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_1d/layers.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_1d/layers.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import math
from collections import OrderedDict
from typing import Callable, Tuple
import torch
import torch.nn.functional as F
from colossalai.communication import broadcast
from colossalai.context import ParallelMode, seed
from colossalai.core import global_context as... | 47.803262 | 126 | 0.57906 |
2dafc2ffcc26838e9b8053b355658613f3b90115 | 1,027 | py | Python | 3rdparty/wsgi_intercept/test/test_mechanoid.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 50 | 2015-01-01T00:14:04.000Z | 2020-11-26T04:44:30.000Z | 3rdparty/wsgi_intercept/test/test_mechanoid.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 3 | 2016-01-31T17:14:41.000Z | 2017-03-01T13:36:17.000Z | 3rdparty/wsgi_intercept/test/test_mechanoid.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 15 | 2015-10-29T09:04:21.000Z | 2022-01-19T17:33:25.000Z | #! /usr/bin/env python2.3
from wsgi_intercept.mechanoid_intercept import Browser
from nose.tools import with_setup
import wsgi_intercept
from wsgi_intercept import test_wsgi_app
###
_saved_debuglevel = None | 30.205882 | 105 | 0.772152 |
2db05706caff34651b92ff77057d0e7d52474883 | 3,538 | py | Python | kneejerk/cli.py | NapsterInBlue/kneejerk | 8ea78e0e57c5078155983ac2bdf163ac1e14c639 | [
"MIT"
] | null | null | null | kneejerk/cli.py | NapsterInBlue/kneejerk | 8ea78e0e57c5078155983ac2bdf163ac1e14c639 | [
"MIT"
] | 15 | 2019-01-20T02:32:59.000Z | 2020-03-31T01:18:40.000Z | kneejerk/cli.py | NapsterInBlue/kneejerk | 8ea78e0e57c5078155983ac2bdf163ac1e14c639 | [
"MIT"
] | null | null | null | import click
import pathlib
import os
from kneejerk.image_server import score_images_in_dir
from kneejerk.data.saver import persist_scores, persist_metadata
from kneejerk.data.transfer import segment_data_from_csv, transfer_normalized_image_data
from kneejerk.data.utils import _get_classes, _get_max_image_dim, _ensure... | 34.349515 | 88 | 0.672131 |
2db0fa793cb0563f92fe9fa1fd0a8a2de5faad8e | 7,277 | py | Python | magic.py | githoniel/ac7-ultrawide | 1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3 | [
"MIT"
] | null | null | null | magic.py | githoniel/ac7-ultrawide | 1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3 | [
"MIT"
] | null | null | null | magic.py | githoniel/ac7-ultrawide | 1e28fbc01ddca8c06fd43025f864c2a9b8b20fd3 | [
"MIT"
] | null | null | null | import sys, os, shutil, binascii, urllib.request, zipfile, ctypes, math, glob
# Must be in game root folder.
if not os.path.isfile('Ace7Game.exe'):
wait = input('Ace7Game.exe not found in this folder. Press any key to close...')
sys.exit(0)
# Get resolution from OS.
u32 = ctypes.windll.user32
u32.SetProcessDP... | 34.325472 | 113 | 0.694929 |
2db16944c7d0a8a83740304bb1e35db5c0789ebe | 5,202 | py | Python | DigitRecognition.py | Michael-Kidd/4th-Year---Emerging-Technology | ec24a32e08cff691cbfd888fe6ba92db0678d57f | [
"MIT"
] | null | null | null | DigitRecognition.py | Michael-Kidd/4th-Year---Emerging-Technology | ec24a32e08cff691cbfd888fe6ba92db0678d57f | [
"MIT"
] | null | null | null | DigitRecognition.py | Michael-Kidd/4th-Year---Emerging-Technology | ec24a32e08cff691cbfd888fe6ba92db0678d57f | [
"MIT"
] | null | null | null | # Tkinter is Python's de-facto standard GUI (Graphical User Interface) package.
import tkinter as tk
import keras as kr
import numpy as np
import matplotlib.pyplot as plt
import math
import sklearn.preprocessing as pre
import gzip
import PIL
from PIL import Image, ImageDraw
import os.path
width = 280
height = 280
ce... | 25.37561 | 98 | 0.660323 |
2db293b083a219201f316a4494a2574920bb381f | 1,007 | py | Python | sort/insertion.py | Wind2esg/python3sort | ead213f75a54da7d476865e3cf0a551ab0970d7d | [
"MIT"
] | 1 | 2018-01-30T04:44:05.000Z | 2018-01-30T04:44:05.000Z | sort/insertion.py | Wind2esg/python3sort | ead213f75a54da7d476865e3cf0a551ab0970d7d | [
"MIT"
] | null | null | null | sort/insertion.py | Wind2esg/python3sort | ead213f75a54da7d476865e3cf0a551ab0970d7d | [
"MIT"
] | null | null | null | # python3 sort <http://github.com/Wind2esg/python3sort>
# Copyright 2018 Wind2esg
# Released under the MIT license <http://github.com/Wind2esg/python3sort/LICENSE>
# Build a sorted range from 0 to i - 1, then try to find the position for the i item
# Because it is sorted in the range, when finding, compare the i item ... | 32.483871 | 95 | 0.653426 |
2db2c86f651f174e6af10c9853850aca24373576 | 571 | py | Python | organization/urls.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | null | null | null | organization/urls.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | 7 | 2020-06-06T01:40:06.000Z | 2022-02-10T09:12:56.000Z | organization/urls.py | adwait-thattey/raygun_api | 9d5571de452fbf70d34b9583ebc42eb662292f61 | [
"MIT"
] | 1 | 2021-08-16T13:23:34.000Z | 2021-08-16T13:23:34.000Z | from django.urls import path
from .views import OrganizationView, ServiceView, ServiceListView
from registration import views
app_name = "organization"
urlpatterns = [
path('<org_name>/service/<ticket>/', ServiceView.as_view(), name='service_view_get'),
path('<org_name>/service/', ServiceView.as_view(), name... | 35.6875 | 89 | 0.732049 |
2db31ca93e416c8f0b58659d1cea6bcc728c9c86 | 1,977 | py | Python | examples/layer_metrics.py | rolandproud/pyechometrics | 6036772b5e3acd329cb7bda84331c291e8fb334d | [
"MIT"
] | null | null | null | examples/layer_metrics.py | rolandproud/pyechometrics | 6036772b5e3acd329cb7bda84331c291e8fb334d | [
"MIT"
] | null | null | null | examples/layer_metrics.py | rolandproud/pyechometrics | 6036772b5e3acd329cb7bda84331c291e8fb334d | [
"MIT"
] | 1 | 2021-06-30T23:16:03.000Z | 2021-06-30T23:16:03.000Z | # -*- coding: utf-8 -*-
"""
Summarise Sound Scattering Layers (SSLs)
@author: Roland Proud
"""
## import packages
import matplotlib.pyplot as plt
import gzip
import pickle
import numpy as np
from pyechoplot.plotting import plot_pseudo_SSL, save_png_plot, plot_Sv
## import pyechometrics modules
from pyechometrics.met... | 22.724138 | 77 | 0.711179 |
2db77d4290e85a408a47162d591a4a6dfa173183 | 10,334 | py | Python | chb/graphics/DotCfg.py | orinatic/CodeHawk-Binary | 8b4fd728213e629736d5ece840ea3b43cea53f30 | [
"MIT"
] | null | null | null | chb/graphics/DotCfg.py | orinatic/CodeHawk-Binary | 8b4fd728213e629736d5ece840ea3b43cea53f30 | [
"MIT"
] | null | null | null | chb/graphics/DotCfg.py | orinatic/CodeHawk-Binary | 8b4fd728213e629736d5ece840ea3b43cea53f30 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
# Copyright (c) 2020 Henny Si... | 40.210117 | 89 | 0.533869 |
2db7c1f7bd22a70de17e35de2236e6155f5a96dc | 534 | py | Python | AEC.py | apayeur/GIF-Ca | 7ba9e715d79aa3a733f417f7dfce81842041e7ec | [
"MIT"
] | 1 | 2020-06-05T15:34:34.000Z | 2020-06-05T15:34:34.000Z | src/AEC.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | src/AEC.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | import abc
from Experiment import *
| 18.413793 | 97 | 0.554307 |
2db8d601711034292e85c17511fbcd5cd25b13fb | 6,126 | py | Python | locust/test/test_env.py | radhakrishnaakamat/locust | 51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2 | [
"MIT"
] | 1 | 2022-02-26T00:17:46.000Z | 2022-02-26T00:17:46.000Z | locust/test/test_env.py | radhakrishnaakamat/locust | 51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2 | [
"MIT"
] | 1 | 2020-12-29T04:26:09.000Z | 2020-12-29T04:26:09.000Z | locust/test/test_env.py | radhakrishnaakamat/locust | 51b1d5038a2be6e2823b2576c4436f2ff9f7c7c2 | [
"MIT"
] | 1 | 2022-02-25T14:23:40.000Z | 2022-02-25T14:23:40.000Z | from locust import (
constant,
)
from locust.env import Environment, LoadTestShape
from locust.user import (
User,
task,
)
from locust.user.task import TaskSet
from .testcases import LocustTestCase
from .fake_module1_for_env_test import MyUserWithSameName as MyUserWithSameName1
from .fake_module2_for_env_te... | 30.326733 | 182 | 0.579987 |
2db96537947c81899effbd609c7adfa473931eeb | 33 | py | Python | datasets/__init__.py | Masterchef365/pvcnn | db13331a46f672e74e7b5bde60e7bf30d445cd2d | [
"MIT"
] | 477 | 2019-12-10T01:03:43.000Z | 2022-03-28T14:10:08.000Z | datasets/__init__.py | chaomath/pvcnn | 8f07316611067e9a0e2df8b35e4a729a03e0806b | [
"MIT"
] | 57 | 2019-12-10T10:14:26.000Z | 2022-03-26T04:59:43.000Z | datasets/__init__.py | chaomath/pvcnn | 8f07316611067e9a0e2df8b35e4a729a03e0806b | [
"MIT"
] | 126 | 2019-12-10T07:59:50.000Z | 2022-03-12T07:21:19.000Z | from datasets.s3dis import S3DIS
| 16.5 | 32 | 0.848485 |