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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93e4b9ba2043f4d210f572091843a3b906a5ef27 | 1,492 | py | Python | adminmgr/media/code/python/red1/myReducer2.2.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 9 | 2019-11-08T02:05:27.000Z | 2021-12-13T12:06:35.000Z | adminmgr/media/code/python/red2/myReducer2.2.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 6 | 2019-11-27T03:23:16.000Z | 2021-06-10T19:15:13.000Z | adminmgr/media/code/python/red2/myReducer2.2.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 4 | 2019-11-26T17:04:27.000Z | 2021-12-13T11:57:03.000Z | #!/usr/bin/python3
import sys
#import fileinput
from operator import itemgetter
myDictionary = {}
myList=[]
for line in sys.stdin:
line = line.strip()
line = line.split("\t")
batsman, bowler, wickets = line[0], line[1], int(line[2])
if batsman not in myDictionary:
myDictionary[batsman] = {}
... | 30.44898 | 121 | 0.663539 |
93e5a39d73ffdd336557527636051e03eddd2896 | 2,478 | py | Python | tests/datastore_test.py | isouzasoares/needle-forms | 1cdb097e1e9801d53607683aa6dcb645b1b82226 | [
"MIT"
] | null | null | null | tests/datastore_test.py | isouzasoares/needle-forms | 1cdb097e1e9801d53607683aa6dcb645b1b82226 | [
"MIT"
] | 3 | 2020-03-31T04:49:13.000Z | 2021-04-30T21:03:00.000Z | tests/datastore_test.py | isouzasoares/needle-forms | 1cdb097e1e9801d53607683aa6dcb645b1b82226 | [
"MIT"
] | 2 | 2019-11-05T14:48:39.000Z | 2020-03-26T20:17:42.000Z | from abstractions.datastore import Datastore
from unittest.mock import Mock
from google.cloud.datastore.entity import Entity
from unittest.mock import patch
import pytest
"""
#test_valid_information::ut
#test_with_invalid_information::ut
"""
| 34.416667 | 75 | 0.75222 |
93e5d68b70881e1e29365acb06e52f0fb4bc0b36 | 2,331 | py | Python | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | null | null | null | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | 50 | 2021-08-20T00:10:05.000Z | 2022-02-21T16:44:46.000Z | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | null | null | null | import logging
import logging.config
import os
from importlib.metadata import version
from typing import Any, Union
from .trace import (
make_request_logging_trace_config,
make_sentry_trace_config,
make_zipkin_trace_config,
new_sampled_trace,
new_trace,
new_trace_cm,
notrace,
setup_sent... | 25.336957 | 86 | 0.607465 |
93e8008d69beb181243428fecbcab6a20eb6cce6 | 3,628 | py | Python | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | 1 | 2019-06-12T11:34:27.000Z | 2019-06-12T11:34:27.000Z | # Copyright 2017 QuantRocket - 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 applicable law or ... | 33.284404 | 88 | 0.651599 |
93e81c0784cf18fea2ad26a23da9cc7f264a20a2 | 3,778 | py | Python | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | 1 | 2020-01-09T10:48:47.000Z | 2020-01-09T10:48:47.000Z | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | null | null | null | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | null | null | null | from random import shuffle
from math import sqrt
from enum import Enum
from src.Sudoku.SudokuSolver import SudokuSolver
from src.Sudoku.Sudoku import Sudoku
"""
**** SUDOKU GENERATOR ****
Author: Andrea Pollastro
Date: September 2018
"""
| 35.641509 | 117 | 0.636051 |
93e8893408bea136d9cbb5e2c4e9cac3b5b0c2f9 | 15,753 | py | Python | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | import argparse
import random, os
from os.path import join as j
from collections import OrderedDict
import conllu
import torch
import pathlib
import tempfile
import depedit
import stanza.models.parser as parser
from stanza.models.depparse.data import DataLoader
from stanza.models.depparse.trainer import Trainer
from s... | 35.320628 | 120 | 0.599314 |
93e9f8a0d79848804615cc209c301de7b2ddbead | 151 | py | Python | chap01/07.py | knuu/nlp100 | 5008d678d7c8d15057ac67fe68b0667657c39b29 | [
"MIT"
] | 1 | 2015-09-11T10:33:42.000Z | 2015-09-11T10:33:42.000Z | chap01/07.py | knuu/nlp100 | 5008d678d7c8d15057ac67fe68b0667657c39b29 | [
"MIT"
] | null | null | null | chap01/07.py | knuu/nlp100 | 5008d678d7c8d15057ac67fe68b0667657c39b29 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
ans = makeSentence(12, '', 22.4)
print(ans)
| 21.571429 | 41 | 0.576159 |
93ea9b725dcae36d582332e92813504608956ade | 49 | py | Python | src/fseq/__init__.py | tanioklyce/python-fseq | be0d5d895ead1b099dd0d47602520c9ebf1f449d | [
"MIT"
] | 3 | 2019-12-07T19:32:32.000Z | 2021-12-27T05:19:26.000Z | src/fseq/__init__.py | tanioklyce/python-fseq | be0d5d895ead1b099dd0d47602520c9ebf1f449d | [
"MIT"
] | 3 | 2020-01-05T03:05:58.000Z | 2021-04-24T06:28:16.000Z | src/fseq/__init__.py | tanioklyce/python-fseq | be0d5d895ead1b099dd0d47602520c9ebf1f449d | [
"MIT"
] | 4 | 2020-03-13T17:49:06.000Z | 2022-03-14T01:26:28.000Z | __version__ = '0.1.0'
from .parser import parse
| 12.25 | 25 | 0.714286 |
93eaa3d71ba2d5f76f2ff30667b738af79cf0791 | 1,769 | py | Python | pycraft/configuration.py | duaneking/pycraft | eb7fcc9ee44677555f667520b74fe053a3fb2392 | [
"MIT"
] | null | null | null | pycraft/configuration.py | duaneking/pycraft | eb7fcc9ee44677555f667520b74fe053a3fb2392 | [
"MIT"
] | null | null | null | pycraft/configuration.py | duaneking/pycraft | eb7fcc9ee44677555f667520b74fe053a3fb2392 | [
"MIT"
] | null | null | null | from os.path import expanduser
import sys
import json
'''
The configuration file will be stored as a json file
@example
{
window: {
w_dimension: 800
h_dimension: 600
resizeable: False
}
}
'''
| 28.532258 | 94 | 0.692482 |
93ebca1d1f1083aaf12c3d720e9e95e6ae2564e1 | 11,432 | py | Python | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
import os
import getopt
import csv
import json
import itertools
import zipfile
import tarfile
import binwalk
import collections
from heapq import nsmallest
from collections import defaultdict
import tlsh
import numpy as np
import matplotlib.pyplot as plt
from multiprocessing.dummy import Poo... | 30.485333 | 141 | 0.571641 |
93ecc85140eb083700cb75cd12da34a931dcc1e5 | 3,132 | py | Python | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | from pyomo.environ import *
import numpy as np
cijr = []
fjr = []
with open("./Test_Instances/RAND2000_120-80.txt") as instanceFile:
n = int(instanceFile.readline())
clientsFacilitiesSizeStr = instanceFile.readline().strip().split(" ")
instanceFile.readline()
for phase in range(2):
for i in range(1, len(cl... | 28.472727 | 295 | 0.590358 |
93ee69a5215c2d7c2cad4e30beebcfeebc327ae5 | 367 | py | Python | import_gs.py | christophdrayss/labelImg-pointer-upgrade | 9304d2c347abb935543579e14554aa74ec97807c | [
"MIT"
] | null | null | null | import_gs.py | christophdrayss/labelImg-pointer-upgrade | 9304d2c347abb935543579e14554aa74ec97807c | [
"MIT"
] | null | null | null | import_gs.py | christophdrayss/labelImg-pointer-upgrade | 9304d2c347abb935543579e14554aa74ec97807c | [
"MIT"
] | null | null | null | #
# exports a specific folder in the import directory to the google cloud
#
# Syntax:
# python3 import.py <GS URI>
#
# Example:
# python3 import.py gs://bini-products-bucket/training-sets-2/intrusion/poc1_v1.2.0/frames
#
#
import os
import sys
# uri
cloud_uri = sys.argv[1]
os.system('mkdir -p import')
os.system... | 18.35 | 90 | 0.692098 |
93ef5cd7a8eaabe0926f1a74eb45c72effabde13 | 482,361 | py | Python | pynos/versions/ver_7/ver_7_1_0/yang/brocade_xstp_ext.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 12 | 2015-09-21T23:56:09.000Z | 2018-03-30T04:35:32.000Z | pynos/versions/ver_7/ver_7_1_0/yang/brocade_xstp_ext.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 10 | 2016-09-15T19:03:27.000Z | 2017-07-17T23:38:01.000Z | pynos/versions/ver_7/ver_7_1_0/yang/brocade_xstp_ext.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 6 | 2015-08-14T08:05:23.000Z | 2022-02-03T15:33:54.000Z | #!/usr/bin/env python
import xml.etree.ElementTree as ET
| 47.744333 | 133 | 0.671974 |
93f0a5f958369eb4430a00c36a168b1783fda002 | 735 | py | Python | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 43 | 2020-07-31T14:38:06.000Z | 2022-03-07T11:28:28.000Z | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 322 | 2020-07-23T19:38:26.000Z | 2022-03-31T19:15:45.000Z | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 6 | 2020-11-28T19:30:20.000Z | 2021-07-29T18:06:55.000Z | import pytz
from django.conf import settings
| 27.222222 | 75 | 0.642177 |
93f2524a7c6f2e836f91bdc023c3abf9b271eb96 | 56 | py | Python | mikaponics/foundation/__init__.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 2 | 2019-04-30T23:51:41.000Z | 2019-05-04T00:35:52.000Z | mikaponics/foundation/__init__.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 27 | 2019-04-30T20:22:28.000Z | 2022-02-10T08:10:32.000Z | mikaponics/foundation/__init__.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 1 | 2019-03-08T18:24:23.000Z | 2019-03-08T18:24:23.000Z | default_app_config = 'foundation.apps.FoundationConfig'
| 28 | 55 | 0.857143 |
93f3149ab4cf735ff8855c62f4a02835c7b351e6 | 483 | py | Python | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | 1 | 2021-04-06T16:52:36.000Z | 2021-04-06T16:52:36.000Z | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | 17 | 2021-05-30T17:06:48.000Z | 2021-09-26T08:20:02.000Z | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | null | null | null | from flask import Flask
from flask_migrate import Migrate
from app.model import db
from app.controller import api
app = Flask(__name__)
app.register_blueprint(api)
app.config[
"SQLALCHEMY_DATABASE_URI"
] = "postgresql://newschatbotdevelopment:Wlk8skrHKvZEbM6Gw@database.internal.newschatbot.ceskodigital.net:5432/n... | 25.421053 | 134 | 0.797101 |
93f37962ca5f7dd8a9101563b5c77758b61305bc | 67 | py | Python | api/vehicles/test_cases/__init__.py | jaconsta/soat_cnpx | 3c5a05a334e44158b0aa9ab57c309771953b2950 | [
"MIT"
] | null | null | null | api/vehicles/test_cases/__init__.py | jaconsta/soat_cnpx | 3c5a05a334e44158b0aa9ab57c309771953b2950 | [
"MIT"
] | null | null | null | api/vehicles/test_cases/__init__.py | jaconsta/soat_cnpx | 3c5a05a334e44158b0aa9ab57c309771953b2950 | [
"MIT"
] | null | null | null | from .test_vehicles_crud import *
from .test_soat_vehicles import * | 33.5 | 33 | 0.835821 |
93f51b485662f69b94bcc6b67cecfbb6633cdc40 | 2,887 | py | Python | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 20 | 2021-12-06T10:41:54.000Z | 2022-03-13T16:25:43.000Z | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 33 | 2021-12-06T08:27:18.000Z | 2022-03-14T05:07:53.000Z | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 2 | 2022-02-07T08:06:48.000Z | 2022-02-14T07:13:42.000Z | """Example on how to read sleep data from SIHA
"""
import os
from tasrif.data_readers.siha_dataset import SihaDataset
from tasrif.processing_pipeline import SequenceOperator
from tasrif.processing_pipeline.custom import JqOperator
from tasrif.processing_pipeline.pandas import (
ConvertToDatetimeOperator,
JsonN... | 38.493333 | 108 | 0.512643 |
93f625804e80ba67e77913d8e04521c5e668b99a | 6,169 | py | Python | tests/test_contract.py | MioYvo/vision-python-sdk | 53608232c333f57f83a8b16ba92f50e90f28ac88 | [
"MIT"
] | null | null | null | tests/test_contract.py | MioYvo/vision-python-sdk | 53608232c333f57f83a8b16ba92f50e90f28ac88 | [
"MIT"
] | null | null | null | tests/test_contract.py | MioYvo/vision-python-sdk | 53608232c333f57f83a8b16ba92f50e90f28ac88 | [
"MIT"
] | null | null | null | import pytest
from visionpy import Vision, Contract
from visionpy import AsyncVision, AsyncContract
from visionpy.keys import PrivateKey
# vpioneer addr and key
PRIVATE_KEY = PrivateKey(bytes.fromhex("a318cb4f1f3b87d604163e4a854312555d57158d78aef26797482d3038c4018b"))
FROM_ADDR = 'VSfD1o6FPChqdqLgwJaztjckyyo2GSM1KP'
... | 36.288235 | 481 | 0.70449 |
93f6815c90e0d2c5d837cca53aee27c9bd4b93f4 | 261 | py | Python | store/cach.py | fj-fj-fj/drf-api-orm | c3fdd9ca31dafe40b8b1b88b5ee9dbeb4880a92a | [
"MIT"
] | null | null | null | store/cach.py | fj-fj-fj/drf-api-orm | c3fdd9ca31dafe40b8b1b88b5ee9dbeb4880a92a | [
"MIT"
] | 2 | 2021-03-20T10:18:45.000Z | 2021-04-05T19:45:58.000Z | store/cach.py | fj-fj-fj/drf-api-orm | c3fdd9ca31dafe40b8b1b88b5ee9dbeb4880a92a | [
"MIT"
] | 1 | 2021-03-19T20:51:17.000Z | 2021-03-19T20:51:17.000Z | from django.db.models import Avg
from store.models import Book, UserBookRelation
| 26.1 | 99 | 0.731801 |
93f841a8146cf689db89cb783c3060d1cae831aa | 555 | py | Python | webware/PSP/PSPPage.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 11 | 2020-10-18T07:33:56.000Z | 2021-09-27T21:03:38.000Z | webware/PSP/PSPPage.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 9 | 2020-01-03T18:58:25.000Z | 2020-01-09T18:36:23.000Z | webware/PSP/PSPPage.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 4 | 2020-06-30T09:41:56.000Z | 2021-02-20T13:48:08.000Z | """Default base class for PSP pages.
This class is intended to be used in the future as the default base class
for PSP pages in the event that some special processing is needed.
Right now, no special processing is needed, so the default base class
for PSP pages is the standard Webware Page.
"""
from Page import Page
... | 26.428571 | 73 | 0.717117 |
93f8df4d6dce3b4bf4d20eae42a3c300c4be5bdc | 139,378 | py | Python | rcsb/utils/dictionary/DictMethodEntityInstanceHelper.py | rcsb/py-rcsb_utils_dictionary | 459f759ed7bc267ef63f57b230974afe555d9157 | [
"Apache-2.0"
] | 2 | 2022-01-22T16:23:44.000Z | 2022-01-22T20:28:34.000Z | rcsb/utils/dictionary/DictMethodEntityInstanceHelper.py | rcsb/py-rcsb_utils_dictionary | 459f759ed7bc267ef63f57b230974afe555d9157 | [
"Apache-2.0"
] | 4 | 2021-11-23T15:27:49.000Z | 2022-03-30T19:51:43.000Z | rcsb/utils/dictionary/DictMethodEntityInstanceHelper.py | rcsb/py-rcsb_utils_dictionary | 459f759ed7bc267ef63f57b230974afe555d9157 | [
"Apache-2.0"
] | 2 | 2022-01-22T16:23:46.000Z | 2022-03-27T18:01:42.000Z | ##
# File: DictMethodEntityInstanceHelper.py
# Author: J. Westbrook
# Date: 16-Jul-2019
# Version: 0.001 Initial version
#
#
# Updates:
# 22-Nov-2021 dwp authSeqBeg and authSeqEnd are returned as integers but must be compared as strings in pAuthAsymD
#
##
"""
This helper class implements methods supporting enti... | 56.474068 | 184 | 0.543536 |
93f8e49e11b7653fd863536bebeb07d2b758a06e | 12,788 | py | Python | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | 5 | 2021-05-19T22:56:40.000Z | 2022-03-29T15:25:03.000Z | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | 32 | 2021-05-10T07:58:57.000Z | 2022-03-01T08:02:11.000Z | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | null | null | null | """Long statement strings and other space consuming data definitions for testing are declared here.
This is done to avoid clutter in main test files.
"""
from typing import Dict
from typing import List
from typing import Tuple
import pytest
from _pytest.fixtures import SubRequest
from fi_parliament_tools.parsing.dat... | 37.722714 | 100 | 0.626759 |
93f98465a257a935b04f433473c8d2f49911d9f0 | 336 | py | Python | atcoder/abc144/d.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc144/d.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc144/d.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | import sys
import math
import itertools
from collections import deque
sys.setrecursionlimit(10000000)
input=lambda : sys.stdin.readline().rstrip()
a,b,x=map(int,input().split())
if (a**2*b)-x<=(a**2*b)/2:
c=2*((a**2*b)-x)/(a**2)
print(math.degrees(math.atan2(c,a)))
else:
c=2*x/b/a
print(math.degrees(ma... | 22.4 | 44 | 0.657738 |
93faa5a4405de0a04d15d1ea4890ad9da6d219ed | 12,644 | py | Python | bakefont3/encode.py | golightlyb/bakefont3 | b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8 | [
"MIT"
] | 7 | 2017-12-01T16:48:12.000Z | 2021-01-21T13:05:24.000Z | bakefont3/encode.py | golightlyb/bakefont3 | b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8 | [
"MIT"
] | 1 | 2021-04-19T01:03:37.000Z | 2021-04-19T03:02:52.000Z | bakefont3/encode.py | golightlyb/bakefont3 | b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8 | [
"MIT"
] | null | null | null | import struct
import itertools
import freetype
ENDIAN = '<' # always little endian
# If you make a modified version, please change the URL in the string to
# let people know what generated the file!
# example: Bakefont 3.0.2 (compatible; Acme Inc version 1.3)
ENCODER = "Bakefont 3.0.2 (https://github.com/golightlyb/b... | 34.358696 | 94 | 0.612148 |
93fcc6644a7bd3a91ddcfdaa15c6e3faf2dbec83 | 137 | py | Python | tests/views/test_healthcheck.py | oliveryuen/python-flask | a53c9ed823fc2f63c416e5a3b47e91f5c9d91604 | [
"Apache-2.0"
] | null | null | null | tests/views/test_healthcheck.py | oliveryuen/python-flask | a53c9ed823fc2f63c416e5a3b47e91f5c9d91604 | [
"Apache-2.0"
] | null | null | null | tests/views/test_healthcheck.py | oliveryuen/python-flask | a53c9ed823fc2f63c416e5a3b47e91f5c9d91604 | [
"Apache-2.0"
] | null | null | null | """Test health check"""
| 19.571429 | 41 | 0.70073 |
93fe622a14e935745be6617c3d7a3da20bbb3012 | 578 | py | Python | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | 1 | 2020-03-30T00:08:41.000Z | 2020-03-30T00:08:41.000Z | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | null | null | null | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | 2 | 2018-12-29T07:49:59.000Z | 2020-03-18T02:44:31.000Z | """
This INTERNAL module is used to manage fbs's global state. Having it here, in
one central place, allows fbs's test suite to manipulate the state to test
various scenarios.
"""
from collections import OrderedDict
SETTINGS = {}
LOADED_PROFILES = []
COMMANDS = OrderedDict() | 27.52381 | 77 | 0.749135 |
93feb2b5aaee509b3ca59bd657fd9239d3cc9aa4 | 5,234 | py | Python | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | 2 | 2020-04-03T04:14:42.000Z | 2021-02-22T05:30:35.000Z | # -*- coding: utf-8 -*-
#
# rtk.dao.RTKMatrix.py is part of The RTK Project
#
# All rights reserved.
# Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com
"""
===============================================================================
The RTKMatrix Table
==============================... | 40.261538 | 79 | 0.526175 |
93ff19152094c70f894a1b56b790e173ed1c2638 | 614 | py | Python | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | 8 | 2020-12-26T07:48:15.000Z | 2022-03-12T00:25:14.000Z | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | import os
import shutil
pull_default()
input('')
| 29.238095 | 65 | 0.583062 |
93ff6193a2b94edc476d54fd31667524f6fc80f3 | 815 | py | Python | pyogp/apps/web/django/pyogp_webbot/urls.py | grobertson/PyOGP.Apps | 03583baa8d3a2438b0d0a5452ee8c9e56aace9fd | [
"Apache-2.0"
] | null | null | null | pyogp/apps/web/django/pyogp_webbot/urls.py | grobertson/PyOGP.Apps | 03583baa8d3a2438b0d0a5452ee8c9e56aace9fd | [
"Apache-2.0"
] | null | null | null | pyogp/apps/web/django/pyogp_webbot/urls.py | grobertson/PyOGP.Apps | 03583baa8d3a2438b0d0a5452ee8c9e56aace9fd | [
"Apache-2.0"
] | null | null | null | from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^pyogp_webbot/', include('pyogp_webbot.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib... | 37.045455 | 87 | 0.692025 |
93ffdac053f4b224bf9ac1f85bcc5aea184dd502 | 9,300 | py | Python | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | ''' code emitters '''
import out, enums as e
| 30.693069 | 78 | 0.475484 |
9e00237613a99687f5e6e25a05d24aa9f51580f2 | 2,291 | py | Python | _static/cookbook/gravmag_euler_classic_expanding_window.py | fatiando/v0.1 | 1ab9876b247c67834b8e1c874d5b1d86f82802e2 | [
"BSD-3-Clause"
] | null | null | null | _static/cookbook/gravmag_euler_classic_expanding_window.py | fatiando/v0.1 | 1ab9876b247c67834b8e1c874d5b1d86f82802e2 | [
"BSD-3-Clause"
] | null | null | null | _static/cookbook/gravmag_euler_classic_expanding_window.py | fatiando/v0.1 | 1ab9876b247c67834b8e1c874d5b1d86f82802e2 | [
"BSD-3-Clause"
] | null | null | null | """
GravMag: Classic 3D Euler deconvolution of magnetic data using an
expanding window
"""
from fatiando import logger, mesher, gridder, utils, gravmag
from fatiando.vis import mpl, myv
log = logger.get()
log.info(logger.header())
# Make a model
bounds = [-5000, 5000, -5000, 5000, 0, 5000]
model = [
mesher.Prism(... | 32.728571 | 78 | 0.690965 |
9e00350a4a2fb7dd0ecbdf440b5912df33e77fb3 | 324 | py | Python | popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py | hangulu/twitter | e4461652d35fc6d547e93f364b56c1a1637c5547 | [
"MIT"
] | null | null | null | popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py | hangulu/twitter | e4461652d35fc6d547e93f364b56c1a1637c5547 | [
"MIT"
] | 7 | 2019-12-29T08:23:25.000Z | 2022-02-26T14:04:51.000Z | popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py | hangulu/twitter | e4461652d35fc6d547e93f364b56c1a1637c5547 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-22 09:39
from django.db import migrations
| 18 | 47 | 0.58642 |
9e06be00254eeed4fa569ee854389c69ab61f743 | 6,434 | py | Python | tests/ampligraph/datasets/test_datasets.py | ojasviyadav/AmpliGraph | 07ce70ff9e30812ac8f4a34d245d1d5decec27f7 | [
"Apache-2.0"
] | null | null | null | tests/ampligraph/datasets/test_datasets.py | ojasviyadav/AmpliGraph | 07ce70ff9e30812ac8f4a34d245d1d5decec27f7 | [
"Apache-2.0"
] | null | null | null | tests/ampligraph/datasets/test_datasets.py | ojasviyadav/AmpliGraph | 07ce70ff9e30812ac8f4a34d245d1d5decec27f7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The AmpliGraph Authors. All Rights Reserved.
#
# This file is Licensed under the Apache License, Version 2.0.
# A copy of the Licence is available in LICENCE, or at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
from ampligraph.datasets import load_wn18, load_fb15k, load_fb15k_237, load_yago3_10... | 42.328947 | 119 | 0.615636 |
9e08eda6cab019bc0097ad8470c08bcc09a74c92 | 5,959 | py | Python | code/geometry/sector.py | Prometheus3375/inno-thesis | 72245706fa25b49f333e08d6074d421b5becfdb5 | [
"BSD-3-Clause"
] | null | null | null | code/geometry/sector.py | Prometheus3375/inno-thesis | 72245706fa25b49f333e08d6074d421b5becfdb5 | [
"BSD-3-Clause"
] | null | null | null | code/geometry/sector.py | Prometheus3375/inno-thesis | 72245706fa25b49f333e08d6074d421b5becfdb5 | [
"BSD-3-Clause"
] | null | null | null | from io import StringIO
from math import atan2, ceil
from typing import Literal, Union, overload
from common import PI, Real, TWOPI, deg, real, reduce_angle
from functions import qbezeir_svg_given_middle
from .circle import CircleBase, FixedCircle
from .point import PointBase, Polar
class FixedSector(SectorBase):
... | 26.721973 | 112 | 0.587515 |
9e097d9b8021dd21364c747eb7b2f08352fe9ba6 | 1,155 | py | Python | scripts/gen_mh.py | bplank/DaNplus | 220428109c9ae5abc60e8968a7fe7a4aa6ad92e3 | [
"MIT"
] | 5 | 2020-12-11T17:11:03.000Z | 2022-01-01T12:14:04.000Z | scripts/gen_mh.py | bplank/DaNplus | 220428109c9ae5abc60e8968a7fe7a4aa6ad92e3 | [
"MIT"
] | null | null | null | scripts/gen_mh.py | bplank/DaNplus | 220428109c9ae5abc60e8968a7fe7a4aa6ad92e3 | [
"MIT"
] | null | null | null | import os
COL_SEPARATOR = "\t"
MULTI_SEPARATOR = "$"
for neFile in os.listdir('data/'):
neFile = 'data/' + neFile
out_filename = neFile.replace('.tsv', "_mh.tsv")
if os.path.isfile(out_filename) or '_mh' in neFile or os.path.isdir(neFile):
continue
out_f = open(out_filename, "w")
with open(n... | 38.5 | 80 | 0.507359 |
9e0bbeb93835b36e23fb310038a044e9818c4553 | 13,451 | py | Python | kecpkg/commands/sign.py | jberends/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | null | null | null | kecpkg/commands/sign.py | jberends/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | 7 | 2017-12-07T11:16:07.000Z | 2019-12-11T15:25:07.000Z | kecpkg/commands/sign.py | KE-works/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | null | null | null | import os
import sys
from pprint import pprint
import click
from pykechain.utils import temp_chdir
from kecpkg.commands.utils import CONTEXT_SETTINGS
from kecpkg.gpg import get_gpg, list_keys, hash_of_file
from kecpkg.settings import SETTINGS_FILENAME, GNUPG_KECPKG_HOME, load_settings, DEFAULT_SETTINGS, ARTIFACTS_FIL... | 46.867596 | 120 | 0.63564 |
9e0cb81c07d1ab8a7ecca4e8e8464e12bdf7bef9 | 954 | py | Python | benchmark/generate_data.py | etra0/sapeaob | 3e21bd66f8530f983130c52e37d612cc53181acd | [
"MIT"
] | 3 | 2021-08-04T13:00:25.000Z | 2021-12-21T21:07:40.000Z | benchmark/generate_data.py | etra0/sapeaob | 3e21bd66f8530f983130c52e37d612cc53181acd | [
"MIT"
] | null | null | null | benchmark/generate_data.py | etra0/sapeaob | 3e21bd66f8530f983130c52e37d612cc53181acd | [
"MIT"
] | null | null | null | import argparse
import random
SIGNATURE = b'\xDE\xAD\xBE\xEF\xC0\xFF\xEE\xAA\xBB\xCC\xDD\xEE\xFF\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xAA'
# Generate data in chunks of 1024 bytes.
if __name__ == "__main__":
main()
| 25.783784 | 111 | 0.669811 |
9e0dd95d1aaf80cae2655fcee6b6427ac437b94c | 10,563 | py | Python | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import io
import os
import re
import subprocess
import warnings
from collections import namedtuple
from decimal import Decimal
from pathlib import Path
import six
from PyPDF2 import PdfFileMerger
from reportlab.pdfgen import canvas
def force_bytes(s, encoding="utf-8", strings_only=False, errors="str... | 30.528902 | 87 | 0.619142 |
9e0e1c62ee116428b55cffa380260139fb9ea5d8 | 906 | py | Python | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | null | null | null | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | null | null | null | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | 1 | 2021-11-10T18:09:27.000Z | 2021-11-10T18:09:27.000Z | import gym
import numpy as np
import os
import random
import matplotlib.pyplot as plt
from atariari.benchmark.wrapper import AtariARIWrapper
# YarsRevenge
#
env_name = "DemonAttackDeterministic-v4"
env = AtariARIWrapper(gym.make(env_name))
name = env.unwrapped.spec.id
#ballgame = any(game in name for game in ["Po... | 22.65 | 66 | 0.695364 |
9e0ef102e2826e6b9febd80bed5d0193a3687555 | 2,711 | py | Python | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | 3 | 2019-11-16T12:38:20.000Z | 2019-11-17T08:44:41.000Z | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | null | null | null | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | 5 | 2019-11-16T16:22:10.000Z | 2019-11-18T21:46:50.000Z | # encoding: utf-8
from datetime import datetime
| 54.22 | 138 | 0.570638 |
9e11d3f12bcf35bac083ace9a1b7490250555694 | 3,087 | py | Python | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | import json
import requests
from os import path
| 38.111111 | 117 | 0.618724 |
9e1202ada111dfedf3e1239998ddc9e7e0c2bac2 | 2,568 | py | Python | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | null | null | null | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | null | null | null | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | 1 | 2021-01-10T15:41:50.000Z | 2021-01-10T15:41:50.000Z |
if __name__ == '__main__':
ll = LinkedList()
ll.append(data="Fedor")
ll.append(data="Julia")
ll.append(data="Bentsi")
ll.print()
print("Length of the Linked list is: ", ll.length())
idx = 1
print(ll.get(index=idx))
print(f"Data at index {idx} is {ll[idx]}")
print("Deleted: ",... | 24.457143 | 73 | 0.550234 |
9e13f559b1f0c5960c9398a871cf6613d7ce918c | 5,442 | py | Python | apps/login/views.py | kwarodom/bemoss_web_ui-1 | 6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92 | [
"Unlicense"
] | null | null | null | apps/login/views.py | kwarodom/bemoss_web_ui-1 | 6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92 | [
"Unlicense"
] | null | null | null | apps/login/views.py | kwarodom/bemoss_web_ui-1 | 6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Copyright (c) 2016, Virginia Tech
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of condi... | 52.326923 | 118 | 0.717567 |
9e14d6737904e50f196708249c8435de6151b062 | 2,768 | py | Python | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
| 33.756098 | 66 | 0.462789 |
9e14d840b0d68fa20db94e8f512ad11ba709e64f | 1,841 | py | Python | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 15 | 2016-10-21T14:30:38.000Z | 2021-10-12T04:50:48.000Z | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 51 | 2016-02-05T01:24:32.000Z | 2019-12-09T16:52:20.000Z | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 6 | 2016-10-17T13:48:16.000Z | 2021-03-28T20:40:14.000Z | import logging
import os.path
import bolt
import bolt.about
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
_src_dir = os.path.join(PROJECT_ROOT, 'bolt')
_test_dir = os.path.join(PROJECT_ROOT, 'test')
_output_dir = os.path.join(PROJECT_ROOT, 'output')
_coverage_dir = os.path.join(_output_dir, 'coverage')
... | 25.569444 | 78 | 0.523628 |
9e15279f716f2f3dcaf04f7c355aee058fe22e12 | 1,120 | py | Python | pyxedit/xedit/object_classes/HDPT.py | leontristain/pyxedit | 4100506930ab6d62d6e2c4a89fee024dbbf87c7b | [
"MIT"
] | null | null | null | pyxedit/xedit/object_classes/HDPT.py | leontristain/pyxedit | 4100506930ab6d62d6e2c4a89fee024dbbf87c7b | [
"MIT"
] | 13 | 2019-04-09T06:14:22.000Z | 2020-07-03T07:35:30.000Z | pyxedit/xedit/object_classes/HDPT.py | leontristain/pyxedit | 4100506930ab6d62d6e2c4a89fee024dbbf87c7b | [
"MIT"
] | null | null | null | from enum import Enum
from pyxedit.xedit.attribute import XEditAttribute
from pyxedit.xedit.generic import XEditGenericObject
| 31.111111 | 80 | 0.669643 |
9e158c914469c96413a23f9b7926f662ec188191 | 1,309 | py | Python | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Me <me@foo.com>
Date : today
Purpose: Rock the Casbah
"""
import argparse
import io
import os
import sys
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Rock the... | 23.375 | 66 | 0.450726 |
9e16d5b26d929cfae2b8a212b8915e0500128d25 | 1,040 | py | Python | tests/CornerCasesTest.py | dpep/py_pluckit | be7c1cd6e2555234f08dd0cb6239db2c249562a4 | [
"MIT"
] | null | null | null | tests/CornerCasesTest.py | dpep/py_pluckit | be7c1cd6e2555234f08dd0cb6239db2c249562a4 | [
"MIT"
] | null | null | null | tests/CornerCasesTest.py | dpep/py_pluckit | be7c1cd6e2555234f08dd0cb6239db2c249562a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import unittest
from collections import namedtuple
sys.path = [ os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) ] + sys.path
from pluckit import pluck
if __name__ == '__main__':
unittest.main()
| 21.22449 | 91 | 0.516346 |
9e177263a0ebd8c89321b840a71c84edfd2ea746 | 1,520 | py | Python | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 44 | 2020-12-09T06:15:15.000Z | 2022-03-31T02:37:47.000Z | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | null | null | null | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 7 | 2020-12-09T10:08:32.000Z | 2021-08-17T01:53:51.000Z | from albumentations.core.transforms_interface import ImageOnlyTransform
import albumentations.augmentations.functional as F
import random
| 33.777778 | 94 | 0.620395 |
9e1798f13a1e5958c9273e51efaff12141f4e76c | 9,497 | py | Python | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import functools
import six
from django.utils.translation import ugettext_lazy as _
from django.template import TemplateDoesNotExist
from django.template.loader import select_template
from cms.plugin_base import CMSPluginBase, CMSPluginBaseMetaclass
from ... | 29.958991 | 134 | 0.666737 |
9e18ddf285ec21f8d58dafd4142a06363020741a | 1,232 | py | Python | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 649 | 2016-09-09T07:38:19.000Z | 2022-03-28T04:30:55.000Z | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 362 | 2016-09-08T16:25:30.000Z | 2022-03-05T23:15:05.000Z | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 85 | 2016-11-08T09:32:44.000Z | 2022-03-03T13:10:37.000Z | import pytest
from julia.core import JuliaOptions
# fmt: off
# fmt: off
| 28 | 65 | 0.655844 |
9e19326d841517afadd3d42542cc9b11a5c4a5d7 | 1,578 | py | Python | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 1 | 2021-09-06T23:22:07.000Z | 2021-09-06T23:22:07.000Z | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 11 | 2021-09-07T14:13:39.000Z | 2021-09-29T15:17:46.000Z | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | null | null | null | import os
import pathlib
import typing
import pytest
from ext_argparse.parameter import Parameter
from ext_argparse.param_enum import ParameterEnum
from enum import Enum
| 28.690909 | 116 | 0.693916 |
9e1b5f4b3183d1482047160b015715a1f35d97f0 | 389 | py | Python | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | #! /usr/local/bin/Python3.5
import urllib.request
with open("images.csv", 'r') as csv:
i = 0
for line in csv:
line = line.split(',')
if line[1] != '' and line[1] != "\n":
urllib.request.urlretrieve(line[1].encode('utf-8'), ("img_" + str(i) + ".jpg").encode('utf-8'))
pri... | 25.933333 | 107 | 0.524422 |
9e1b7c970fedf5252f5d2635e9703e31344e54e5 | 1,031 | py | Python | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | '''
API-related functions in one spot for convenience
Created by NGnius 2019-06-15
'''
from flask import jsonify, request
from threading import Semaphore, RLock
single_semaphores = dict()
resource_lock = RLock()
| 26.435897 | 69 | 0.693501 |
9e1ba32a4a9094fb6f7a46a889dbdd7f780c6321 | 323 | py | Python | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 10 | 2015-01-07T06:01:13.000Z | 2021-02-14T09:11:10.000Z | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 3 | 2015-01-01T09:56:04.000Z | 2015-01-06T01:34:44.000Z | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 5 | 2015-01-01T10:31:50.000Z | 2018-03-09T05:22:16.000Z | """
productporter
~~~~~~~~~~~~~~~~~~~~
helper for uwsgi
:copyright: (c) 2014 by the ProductPorter Team.
:license: BSD, see LICENSE for more details.
"""
from productporter.app import create_app
from productporter.configs.production import ProductionConfig
app = create_app(config=ProductionConfig(... | 23.071429 | 61 | 0.693498 |
9e1bee51dd0ea1878f4a4736c40b34f0977aa174 | 3,968 | py | Python | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | 35.115044 | 80 | 0.618952 |
9e1da62e19fe4f3008c5d21f24d0decbe6f6039d | 1,012 | py | Python | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 33 | 2021-09-04T08:46:48.000Z | 2022-02-04T08:12:55.000Z | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 2 | 2021-09-28T12:05:21.000Z | 2021-12-11T04:08:04.000Z | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 2 | 2021-09-28T10:51:27.000Z | 2021-12-10T09:56:22.000Z | from setuptools import setup, find_packages
__version__ = '1.0.0'
__author__ = 'Takumi Sueda'
__author_email__ = 'puhitaku@gmail.com'
__license__ = 'MIT License'
__classifiers__ = (
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Progra... | 29.764706 | 74 | 0.6917 |
9e1db727da394433477d2ebb717048f5a98a0ab1 | 962 | py | Python | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | # Como trabalhar com paths
from os import path
import time
dadosArquivo() | 31.032258 | 96 | 0.745322 |
9e210cf9cae77591487ca0d70ca7341aca8bd44a | 16,303 | py | Python | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import colorsys
import cv2
import numpy as np
from scipy.stats import multivariate_normal
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
| 37.825986 | 90 | 0.56235 |
9e2177e43f0a318b03307485c7498c4b6cef36fa | 2,127 | py | Python | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 1,259 | 2021-06-10T11:24:09.000Z | 2022-03-31T10:30:44.000Z | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 392 | 2021-06-10T11:12:29.000Z | 2022-03-31T10:13:53.000Z | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 58 | 2021-06-11T03:18:07.000Z | 2022-03-31T14:39:10.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-25 15:41
from __future__ import unicode_literals
import app.utils
from django.db import migrations, models
import django.db.models.deletion
| 39.388889 | 99 | 0.487541 |
9e23d085a14f192cef141c0732be27df361cf10b | 4,456 | py | Python | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | 1 | 2019-04-08T09:52:28.000Z | 2019-04-08T09:52:28.000Z | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | null | null | null | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | 1 | 2020-05-19T12:56:20.000Z | 2020-05-19T12:56:20.000Z | """
module: basic_train.py - Model fitting methods
docs : https://docs.fast.ai/train.html
"""
import pytest, fastai
from fastai.vision import *
from utils.fakes import *
from utils.text import *
from utils.mem import *
from fastai.utils.mem import *
from math import isclose
torch_preload_mem()
# this is not a fixtu... | 38.08547 | 134 | 0.710727 |
9e246f8197a11b73a278225e329244b30642e5a1 | 196 | py | Python | ch04/return.none.py | kxen42/Learn-Python-Programming-Third-Edition | 851ddc5e6094fadd44f31a9ad1d3876456b04372 | [
"MIT"
] | 19 | 2021-11-05T22:54:09.000Z | 2022-03-29T15:03:47.000Z | ch04/return.none.py | kxen42/Learn-Python-Programming-Third-Edition | 851ddc5e6094fadd44f31a9ad1d3876456b04372 | [
"MIT"
] | null | null | null | ch04/return.none.py | kxen42/Learn-Python-Programming-Third-Edition | 851ddc5e6094fadd44f31a9ad1d3876456b04372 | [
"MIT"
] | 26 | 2021-11-12T17:04:50.000Z | 2022-03-29T01:10:35.000Z | # return.none.py
func() # the return of this call won't be collected. It's lost.
a = func() # the return of this one instead is collected into `a`
print(a) # prints: None
| 24.5 | 66 | 0.663265 |
9e24c2357a655395c364e4237fd2c11303d74334 | 204 | py | Python | pyperi/__init__.py | takeontom/PyPeri | 181b6c60bf5ec5c57cd24418ee4524ed81c9a998 | [
"MIT"
] | 5 | 2017-03-10T10:43:07.000Z | 2021-04-01T06:28:29.000Z | pyperi/__init__.py | takeontom/PyPeri | 181b6c60bf5ec5c57cd24418ee4524ed81c9a998 | [
"MIT"
] | 359 | 2016-12-12T20:19:16.000Z | 2022-03-28T09:04:19.000Z | pyperi/__init__.py | takeontom/PyPeri | 181b6c60bf5ec5c57cd24418ee4524ed81c9a998 | [
"MIT"
] | 3 | 2018-08-12T13:38:30.000Z | 2020-07-10T14:36:31.000Z | # -*- coding: utf-8 -*-
__author__ = """Tom Smith"""
__email__ = 'tom@takeontom.com'
__version__ = '0.2.0'
from pyperi.pyperi import Peri # noqa
from pyperi.pyperi import PyPeriConnectionError # noqa
| 22.666667 | 55 | 0.70098 |
f508079561b7a2a57df3ea9bb24da6c3cf24ed29 | 13,454 | py | Python | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 17 | 2019-11-15T06:27:05.000Z | 2021-10-02T14:24:25.000Z | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | null | null | null | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 4 | 2020-09-03T17:01:34.000Z | 2021-11-05T04:09:24.000Z | import numpy as np
import scipy.sparse as sparse
from scipy.integrate import ode
from scipy.interpolate import interp1d
import time
import control
import control.matlab
import numpy.random
import pandas as pd
from ltisim import LinearStateSpaceSystem
from pendulum_model import *
from pyMPC.mpc import MPCController
# R... | 33.219753 | 179 | 0.612829 |
f508880d35de4e5c61d56d0000d4001cccea0293 | 163 | py | Python | server/controllers/main.py | eruixma/trading-app | 3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a | [
"BSD-2-Clause"
] | 2 | 2019-03-27T04:46:29.000Z | 2019-10-10T13:03:24.000Z | server/controllers/main.py | eruixma/trading-app | 3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a | [
"BSD-2-Clause"
] | 1 | 2021-06-01T23:31:21.000Z | 2021-06-01T23:31:21.000Z | server/controllers/main.py | eruixma/trading-app | 3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a | [
"BSD-2-Clause"
] | 1 | 2021-08-19T03:09:05.000Z | 2021-08-19T03:09:05.000Z | from flask import Blueprint, current_app
main = Blueprint('main', __name__)
| 16.3 | 53 | 0.723926 |
f508dd3ad06395335728ce6e7db17f8e899fd2f6 | 2,221 | py | Python | pypad/collab.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/collab.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/collab.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | from enum import Enum
from .dev import Dev | 24.677778 | 61 | 0.662765 |
f50910b14f5b09655a9e1eaecc696a5cfe950b0f | 4,923 | py | Python | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | 1 | 2018-10-09T14:41:59.000Z | 2018-10-09T14:41:59.000Z | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | null | null | null | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | null | null | null | import pandas as pd
from matplotlib.colors import LinearSegmentedColormap
# Dataset
data = pd.read_csv("./hr.csv")
entries = len(data)
bins = 10
# Data analysis
analysis = {
"bins": 10,
"balance_threshold": 0.1
}
# Plot labels
labels = ["satisfaction_level",
"average_montly_hours",
"last_... | 30.018293 | 98 | 0.487508 |
f509ca15e0e12b426c5e187595364f7eea92a920 | 397 | py | Python | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | 1 | 2021-03-01T04:15:08.000Z | 2021-03-01T04:15:08.000Z | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | # Author: Vishal Gaur
# Created: 17-01-2021 20:31:34
# function to find GCD using Basic Euclidean Algorithm
# Driver Code to test above function
a = 14
b = 35
g = gcdEuclid(a, b)
print("GCD of", a, "&", b, "is: ", g)
a = 56
b = 125
g = gcdEuclid(a, b)
print("GCD of", a, "&", b, "is: ", g)
| 17.26087 | 54 | 0.566751 |
f50a95d4fbb66571658a68aa0a66854f9c5c4220 | 437 | py | Python | src/my_package/todelete/modules/MotionSymmetryModule.py | laomao0/AIM_DAIN | 8322569498d675d3b2c1f35475c1299cad580bde | [
"MIT"
] | 3 | 2020-05-08T20:45:57.000Z | 2021-01-18T11:32:38.000Z | src/my_package/todelete/modules/MotionSymmetryModule.py | laomao0/AIM_DAIN | 8322569498d675d3b2c1f35475c1299cad580bde | [
"MIT"
] | null | null | null | src/my_package/todelete/modules/MotionSymmetryModule.py | laomao0/AIM_DAIN | 8322569498d675d3b2c1f35475c1299cad580bde | [
"MIT"
] | null | null | null | # modules/InterpolationLayer.py
from torch.nn import Module
from functions.MotionSymmetryLayer import MotionSymmetryLayer
| 29.133333 | 81 | 0.741419 |
f50adc78c47a350acb70a96ee1ecc3c1259e77a6 | 2,997 | py | Python | steer.py | nlw0/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | 1 | 2020-10-13T14:40:39.000Z | 2020-10-13T14:40:39.000Z | steer.py | umeshraj/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | null | null | null | steer.py | umeshraj/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | 1 | 2018-04-26T10:06:47.000Z | 2018-04-26T10:06:47.000Z | import numpy
from steer2HarmMtx import steer2HarmMtx
def steer(*args):
''' Steer BASIS to the specfied ANGLE.
function res = steer(basis,angle,harmonics,steermtx)
BASIS should be a matrix whose columns are vectorized rotated copies
of a steerable function, or the responses of a set of s... | 34.448276 | 93 | 0.621288 |
f50baf297616723fd430fcda467e665dcd88c479 | 2,057 | py | Python | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | import aiohttp
import asyncio
import os
import zipfile
from pydest.api import API
from pydest.manifest import Manifest
| 29.811594 | 96 | 0.619349 |
f50ea0f4e8fc7432c99f5e054323909249a31983 | 784 | py | Python | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 7 | 2021-06-28T17:33:47.000Z | 2022-02-12T21:54:59.000Z | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 104 | 2021-06-17T21:25:30.000Z | 2022-03-28T14:21:57.000Z | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 1 | 2021-06-25T17:52:23.000Z | 2021-06-25T17:52:23.000Z | # Generated by Django 3.2.1 on 2021-05-06 22:30
import django.contrib.gis.db.models.fields
from django.db import migrations
| 27.034483 | 68 | 0.58801 |
f50f1a90c240661a8974cc7923b38f46dce70bae | 29,856 | py | Python | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 7 | 2017-07-16T05:59:07.000Z | 2018-01-22T09:35:21.000Z | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 17 | 2017-07-31T20:35:24.000Z | 2018-02-26T22:00:12.000Z | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 13 | 2017-08-01T17:03:40.000Z | 2021-11-02T13:24:30.000Z | #!/usr/bin/python
# -*- coding: utf8 -*-
import os
import re
import textwrap
import requests
import unicodedata
from datetime import datetime, timedelta
from flask import Flask, g, request, render_template, abort, make_response
from flask_babel import Babel, gettext
from jinja2 import evalcontextfilter, Markup
app = ... | 36.81381 | 190 | 0.612775 |
f50f7d07d1b11d4dc8dcf82534a3b3e6a3a87158 | 2,891 | py | Python | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-11-20T03:40:40.000Z | 2021-11-20T03:40:42.000Z | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
| 32.483146 | 88 | 0.570391 |
f510f358811538f9c09860ccdb42030579e71a1a | 928 | py | Python | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import fishact
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Validate data files.')
parser.add_argument('activity_fname', metavar='activity_file', type=str,
help='Name of activity file.')
parser.add_argument... | 37.12 | 78 | 0.519397 |
f513b5c28a4eaca8eb08a50fccfcd5204171dfdc | 1,682 | py | Python | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from sys import stdout,stderr,exit
from optparse import OptionParser
from newick_parser import parse_tree_iterator, Branch
from tree_span import calculateSpan
from copy import deepcopy
if __name__ == '__main__':
usage = 'usage: %prog [options] <NEWICK FILE>'
parser = OptionParser(usage... | 29 | 75 | 0.633175 |
f51915e704bb43425413f02d24086079a01a04be | 743 | py | Python | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | from stable_baselines3 import PPO
import os
from setup_gym_env import SnakeEnv
import time
#models_dir = "./models/1644408901/" + "40000"
#models_dir = "./models/1644462865/" + "120000"
#models_dir = "./models/1644466638/" + "100000"
models_dir = "./models/1644485414/" + "100000"
env = SnakeEnv()
env.reset()
model ... | 22.515152 | 50 | 0.641992 |
f519a4dd8609848cb4fec6b2221b463e32b9ae3b | 13,105 | py | Python | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 4 | 2020-04-22T11:00:13.000Z | 2020-12-16T17:49:47.000Z | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 4 | 2020-12-17T16:26:16.000Z | 2020-12-17T16:30:34.000Z | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 2 | 2020-05-06T17:30:05.000Z | 2020-12-16T17:58:23.000Z | #!/usr/bin/env python3
import yoda, sys
import h5py
import numpy as np
def createDatasets(f, binids, variations, depth=1, compression=4):
"""
Create data sets in the HDF5 file.
"""
nbins=len(binids)
nvars=len(variations)
# The fundamental moments/elements of yoda objecs
floats = [
... | 37.766571 | 184 | 0.546814 |
f51c993aef58b3c9c160f8b68cd78fc8daf5ff42 | 1,703 | py | Python | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | import zipfile
import os
import glob
import sys
# Actual directory that we could find somewhere
# Reading the first arg written in the console (program name not included)
fileTest = Folder(sys.argv[1]) | 47.305556 | 116 | 0.593658 |
f51f1a4cfc64468547a1bf70b97687f67b00823c | 634 | py | Python | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | from functools import partial
from airflow.operators.python_operator import ShortCircuitOperator
| 25.36 | 84 | 0.747634 |
f51fe70db140c3154b176531ad8f28b9ef267b5a | 1,974 | py | Python | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | 2 | 2018-07-13T16:44:24.000Z | 2019-10-14T21:31:02.000Z | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | null | null | null | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | null | null | null | # Imports
import pandas as pd
import pickle
from keras.models import load_model
from preprocess import preprocess
from preprocess import prep_text
#Logging
import logging
logging.getLogger().setLevel(logging.INFO)
logging.info('Loading comments to classify...')
# Enter comment to be classified below
comment_to_class... | 24.675 | 78 | 0.670719 |
f523394a40a39dc77c57c643a75603c33eb11af0 | 176 | py | Python | lib/models/backbones/efficientdet/__init__.py | shachargluska/centerpose | 01c2c8bfa9d3ee91807f2ffdcc48728d104265bd | [
"MIT"
] | 245 | 2019-11-29T02:55:25.000Z | 2022-03-30T07:30:18.000Z | lib/models/backbones/efficientdet/__init__.py | shachargluska/centerpose | 01c2c8bfa9d3ee91807f2ffdcc48728d104265bd | [
"MIT"
] | 24 | 2019-11-29T10:05:00.000Z | 2022-03-30T07:16:06.000Z | lib/models/backbones/efficientdet/__init__.py | FishLiuabc/centerpose | 555d753cd82693476f91f78c53aa4147f5a83015 | [
"MIT"
] | 45 | 2019-11-29T05:12:02.000Z | 2022-03-21T02:20:36.000Z | from .efficientdet import EfficientDet
| 25.142857 | 78 | 0.8125 |
f528bf891d405b1631574286911aea9a15dea4b2 | 1,566 | py | Python | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import boto3
from box import Box
from crhelper import CfnResource
from schema import Optional
import codesmith.common.naming as naming
from codesmith.common.cfn import resource_properties
from codesmith.common.schema import encoded_bool, non_empty_string, tolerant_schema
from codesmith.comm... | 29.54717 | 99 | 0.751596 |
f528d3c7d1c051d306cd7f8c1738faafc34bc81c | 125 | py | Python | Mundo 1/Exercicios/Desafio005.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | Mundo 1/Exercicios/Desafio005.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | Mundo 1/Exercicios/Desafio005.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | n = int(input('Digite um nmero: '))
print('Seu nmero {}. O antecessor {} e seu sucessor {}'.format(n, n - 1, n + 1))
| 41.666667 | 87 | 0.592 |
f52b501702b28918819f4339d418e24bd36e3fba | 1,506 | py | Python | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | # Given two binary trees, check if the first tree is subtree of the second one.
# A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T.
# The subtree corresponding to the root node is the entire tree; the subtree corresponding to any other node is called a proper subtree.
#... | 20.351351 | 136 | 0.632802 |
f52c3d4d080221bb0849b2d7854dea28cf442e0d | 619 | py | Python | papi_sdk/models/search/hotelpage/affiliate.py | stanislav-losev/papi-sdk-python | 4a296745d626ef13c6d1170e9d3569cb1c37eb3c | [
"MIT"
] | 1 | 2022-02-01T08:53:24.000Z | 2022-02-01T08:53:24.000Z | papi_sdk/models/search/hotelpage/affiliate.py | stanislav-losev/papi-sdk-python | 4a296745d626ef13c6d1170e9d3569cb1c37eb3c | [
"MIT"
] | 2 | 2021-01-18T07:57:29.000Z | 2021-06-23T11:04:14.000Z | papi_sdk/models/search/hotelpage/affiliate.py | stanislav-losev/papi-sdk-python | 4a296745d626ef13c6d1170e9d3569cb1c37eb3c | [
"MIT"
] | 3 | 2020-12-30T13:09:45.000Z | 2020-12-30T13:42:33.000Z | from typing import List, Optional
from papi_sdk.models.search.base_affiliate_response import (
BaseAffiliateSearchData,
BaseAffiliateSearchResponse,
BaseHotel,
BaseRate,
)
from papi_sdk.models.search.base_request import BaseAffiliateRequest
| 20.633333 | 68 | 0.799677 |
f52d16005d54fc06009e6a33b0d9fa26ef35fd47 | 2,093 | py | Python | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | 1 | 2018-07-04T09:14:26.000Z | 2018-07-04T09:14:26.000Z | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | null | null | null | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019-01-02 16:44
# @Author : zhangzhen
# @Site :
# @File : torch_neural_networks.py
# @Software: PyCharm
import torch
import torch.nn as nn
import torch.nn.functional as F
if __name__ == '__main__':
net = Net()
criterion = nn.MSELoss()
pr... | 26.493671 | 77 | 0.592929 |
f52eac71ac3094d6c2f5d753f7dc5413e91d3ecd | 422 | py | Python | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | from bottle import route, run, template
gitdict = {'po2go':{'https://github.com/cadamswaite/po2go.git:master':'https://github.com/cadamswaite/po2go.git:gh-pages'}}
# Handle http requests to the root address
run(host='0.0.0.0', port=80)
| 23.444444 | 123 | 0.684834 |
f52ec88be52c378180af93ce81749dca618e2061 | 2,577 | py | Python | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | """
Leonard always DRIVES Sheldon (this module is the __main__ driver for Sheldon)
"""
import argparse
import sys
import os
try:
from cooper import Sheldon
except:
from .cooper import Sheldon
# Extensions for python source files
EXTENSIONS = [".py", ".mpy"]
if __name__ == "__main__":
main()
| 28.633333 | 89 | 0.592549 |
f52eee40e1e0d598ea7f901674518fc574586952 | 705 | py | Python | tests/002_finder/003_changeextension.py | Sam-prog-sudo/boussole | 5d6ec94356f9a91ff4d6d23c1700d3512b67006a | [
"MIT"
] | 13 | 2016-05-19T15:18:41.000Z | 2022-03-22T15:37:32.000Z | tests/002_finder/003_changeextension.py | Sam-prog-sudo/boussole | 5d6ec94356f9a91ff4d6d23c1700d3512b67006a | [
"MIT"
] | 38 | 2016-04-07T00:30:58.000Z | 2022-02-28T13:29:33.000Z | tests/002_finder/003_changeextension.py | Sam-prog-sudo/boussole | 5d6ec94356f9a91ff4d6d23c1700d3512b67006a | [
"MIT"
] | 3 | 2016-05-20T09:21:57.000Z | 2020-10-12T10:56:49.000Z | # -*- coding: utf-8 -*-
| 26.111111 | 72 | 0.670922 |
f52efbe88e2653ae5d1fd37a74f972d83828b114 | 40,749 | py | Python | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | """Basic tests for the CherryPy core: request handling."""
from cherrypy.test import test
test.prefer_parent_path()
import cherrypy
from cherrypy import _cptools, tools
from cherrypy.lib import http, static
import types
import os
localDir = os.path.dirname(__file__)
log_file = os.path.join(localDir, "test.log")
log_... | 38.370056 | 104 | 0.545289 |
f52efca4ad0dbdcec53aee2fa61bc784274e7d40 | 1,036 | py | Python | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | # Solution 1
input = readInputFile("input.txt").strip()
print(input)
lowest = input.split("-")[0]
highest = input.split("-")[1]
current = int(input.split("-")[0])
print(lowest)
print(highest)
resultArr = []
while current <= int(highest):
if checkNeverDecreaseRule(current) and checkHasAdjacentSame(current):
res... | 18.836364 | 70 | 0.621622 |
f52fa19632597f93eba421103fbc7100653b7f9d | 763 | py | Python | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | null | null | null | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | null | null | null | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | 1 | 2021-02-08T23:46:35.000Z | 2021-02-08T23:46:35.000Z | #Transactions classes.
from e2e.Classes.Transactions.Transaction import Transaction
from e2e.Classes.Transactions.Transactions import Transactions
#TestError Exception.
from e2e.Tests.Errors import TestError
#RPC class.
from e2e.Meros.RPC import RPC
#Sleep standard function.
from time import sleep
#Verify a Transac... | 23.84375 | 80 | 0.756225 |
f52fef7331b7922effcc0ce7dc2004ff0e5e1b57 | 149 | py | Python | src/pygame_utils/sprite/gamecomponent.py | MarronEyes/pygame_utils | 27a1f1328533d04c20ccb95208d44fda3be81a09 | [
"MIT"
] | null | null | null | src/pygame_utils/sprite/gamecomponent.py | MarronEyes/pygame_utils | 27a1f1328533d04c20ccb95208d44fda3be81a09 | [
"MIT"
] | null | null | null | src/pygame_utils/sprite/gamecomponent.py | MarronEyes/pygame_utils | 27a1f1328533d04c20ccb95208d44fda3be81a09 | [
"MIT"
] | null | null | null | import pygame
from graphics.component import Component
| 16.555556 | 40 | 0.718121 |
f5301087690900f18790595cf080153f91b40dd0 | 954 | py | Python | motivation_quote/app.py | lukas-weiss/motivation-quote | 90c73342a71f6a8f8b5339b5d080d19ac67083b7 | [
"MIT"
] | null | null | null | motivation_quote/app.py | lukas-weiss/motivation-quote | 90c73342a71f6a8f8b5339b5d080d19ac67083b7 | [
"MIT"
] | null | null | null | motivation_quote/app.py | lukas-weiss/motivation-quote | 90c73342a71f6a8f8b5339b5d080d19ac67083b7 | [
"MIT"
] | null | null | null | import json
import os.path
import logging
import csv
from random import randint
logger = logging.getLogger()
logger.setLevel(logging.INFO)
| 25.105263 | 61 | 0.603774 |
f531e1bea64fba94ad609a7c42aeb9cf4d1498ca | 3,142 | py | Python | tools/extract_textline.py | bitcoder-17/scale-digits-recognition | b75c658ffdc830784ae4be9c007909e4c8f1d695 | [
"MIT"
] | null | null | null | tools/extract_textline.py | bitcoder-17/scale-digits-recognition | b75c658ffdc830784ae4be9c007909e4c8f1d695 | [
"MIT"
] | null | null | null | tools/extract_textline.py | bitcoder-17/scale-digits-recognition | b75c658ffdc830784ae4be9c007909e4c8f1d695 | [
"MIT"
] | null | null | null | from pathlib import Path
import cv2
import json
import math
import numpy as np
from argparse import ArgumentParser
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument('input_dir', type=str,
help='Directory where the frame image and the json label be')
parser... | 33.073684 | 85 | 0.54965 |
f532177c4078c1e01572de399b2bc77a18421da8 | 14,159 | py | Python | blender/2.79/scripts/addons/io_coat3D/tex.py | uzairakbar/bpy2.79 | 3a3e0004ac6783c4e4b89d939e4432de99026a85 | [
"MIT"
] | 2 | 2019-11-27T09:05:42.000Z | 2020-02-20T01:25:23.000Z | io_coat3D/tex.py | 1-MillionParanoidTterabytes/blender-addons-master | acc8fc23a38e6e89099c3e5079bea31ce85da06a | [
"Unlicense"
] | null | null | null | io_coat3D/tex.py | 1-MillionParanoidTterabytes/blender-addons-master | acc8fc23a38e6e89099c3e5079bea31ce85da06a | [
"Unlicense"
] | 4 | 2020-02-19T20:02:26.000Z | 2022-02-11T18:47:56.000Z | # ***** BEGIN GPL LICENSE BLOCK *****
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distribute... | 42.139881 | 127 | 0.634296 |
f5327046ce5fcde6d3a6fd1f71b52eace22cd4ab | 3,613 | py | Python | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | 1 | 2019-06-07T14:10:14.000Z | 2019-06-07T14:10:14.000Z | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | null | null | null | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | null | null | null | #!/usr/bin/env python3
#
# Proxy alerts generated by Prometheus Alertmanager turning them into
# nagios passive alert information.
#
# Copyright 2019-2020, PostgreSQL Infrastructure Team
# Author: Magnus Hagander
#
import argparse
import http.server
import json
import time
import sys
missed_alerts = 0
if __name_... | 30.361345 | 82 | 0.568779 |
f53445eedfca0ebec216d205d17da7023b06710f | 172 | py | Python | QuantLib/tsa/smooth/__init__.py | wanhanwan/Packages | 14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3 | [
"MIT"
] | 5 | 2018-06-29T16:56:10.000Z | 2019-06-20T03:31:44.000Z | QuantLib/tsa/smooth/__init__.py | wanhanwan/Packages | 14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3 | [
"MIT"
] | null | null | null | QuantLib/tsa/smooth/__init__.py | wanhanwan/Packages | 14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3 | [
"MIT"
] | 3 | 2018-06-25T06:37:17.000Z | 2018-11-22T08:12:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py
# @Author : wanhanwan (wanshuai_shufe@163.com)
# @Date : 2019/11/25 1:20:12
from .filter import llt_filter | 24.571429 | 46 | 0.668605 |