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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e53797255ddf8c7e28dc3a9ceca68b9b6f0d9c22 | 323 | py | Python | main/amy/setup.py | drepetto/alles | bb72c36f1b07f539e73726a91c9538482b4c06cb | [
"MIT"
] | 81 | 2020-03-01T22:18:48.000Z | 2022-03-20T16:53:01.000Z | main/amy/setup.py | bwhitman/synthserver | 98f824fd5c2056823727884a3bdf8c8a6ff7ced1 | [
"MIT"
] | 12 | 2021-04-22T01:21:25.000Z | 2021-12-11T18:29:18.000Z | main/amy/setup.py | bwhitman/synthserver | 98f824fd5c2056823727884a3bdf8c8a6ff7ced1 | [
"MIT"
] | 8 | 2020-04-29T18:26:25.000Z | 2021-12-07T22:55:00.000Z | from distutils.core import setup, Extension
import glob
import os
# the c++ extension module
sources = glob.glob("*.c")
os.environ["CC"] = "gcc"
os.environ["CXX"] = "g++"
extension_mod = Extension("libamy", sources=sources, extra_link_args=["-lsoundio", "-lpthread"])
setup(name = "libamy",
ext_modules=[extension_mo... | 26.916667 | 96 | 0.708978 |
e53b4e82439a5be972e3455d4b58df9c2ff3541c | 826 | py | Python | app/model/job_keyword.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | app/model/job_keyword.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | app/model/job_keyword.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sqlalchemy import Column
from sqlalchemy.dialects.mysql import INTEGER
from common.db import BaseModel
| 29.5 | 95 | 0.671913 |
e53b8de7cefb3da0c77b80958c4124a1178847f8 | 905 | py | Python | ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py | zhangyimi/Research | 866f91d9774a38d205d6e9a3b1ee6293748261b3 | [
"Apache-2.0"
] | 1 | 2022-03-18T08:32:37.000Z | 2022-03-18T08:32:37.000Z | ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | null | null | null | ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
"""
Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved
File: ll_2_mc.py
func:
Author: yuwei09(yuwei09@baidu.com)
Date: 2021/07/21
"""
import math
SCALE_S = 20037508.34
def lonLat2Mercator(x, y):
"""Convert longitude/latitude to Mercator coordinate"""
mx = x * SCALE_S ... | 23.205128 | 85 | 0.612155 |
e541c66e26b2dcd462e9c9a22b50ce0b746cca85 | 7,028 | py | Python | process_azure_roles.py | noamsdahan/iam-dataset | da640ba65906f3f6091c6cbfdfdc0ca03df83f8f | [
"MIT"
] | 58 | 2021-06-23T07:12:19.000Z | 2022-03-26T14:55:00.000Z | process_azure_roles.py | noamsdahan/iam-dataset | da640ba65906f3f6091c6cbfdfdc0ca03df83f8f | [
"MIT"
] | 8 | 2021-11-01T15:41:19.000Z | 2022-02-08T08:04:05.000Z | process_azure_roles.py | noamsdahan/iam-dataset | da640ba65906f3f6091c6cbfdfdc0ca03df83f8f | [
"MIT"
] | 4 | 2021-07-31T03:13:12.000Z | 2022-03-22T08:28:08.000Z | import os
import json
import time
import requests
import re
result = {
'roles': []
}
raw_roles = []
with open("azure/built-in-roles-raw.json", "r") as f:
raw_roles = json.loads(f.read())
provider_ops = []
with open("azure/provider-operations.json", "r") as f:
provider_ops = json.loads(f.read())
for raw_... | 50.2 | 147 | 0.517075 |
e542dba77b736c853c5f81ad6228519c31bfebd5 | 6,656 | py | Python | tests/usecases/test_exchange_rate_interactors.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 8 | 2021-11-09T16:43:38.000Z | 2022-03-25T16:04:26.000Z | tests/usecases/test_exchange_rate_interactors.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | null | null | null | tests/usecases/test_exchange_rate_interactors.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 2 | 2021-11-16T21:17:31.000Z | 2022-02-11T11:15:29.000Z | # coding: utf-8
import datetime
import random
from unittest.mock import Mock
from django.db import reset_queries
import pytest
from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity
from src.usecases.exchange_rate import CurrencyInteractor, CurrencyExchangeRateInteractor
from tests.fixtures ... | 41.341615 | 89 | 0.783804 |
e5435081eee984010a042f8f54a44d659b9e9dc8 | 1,978 | py | Python | pypret/io/tests/test_io.py | liam-clink/pypret | c84e954efc12137c6b5ade4fae920d60a15d4875 | [
"MIT"
] | 36 | 2019-03-16T18:38:10.000Z | 2022-02-15T14:25:30.000Z | pypret/io/tests/test_io.py | liam-clink/pypret | c84e954efc12137c6b5ade4fae920d60a15d4875 | [
"MIT"
] | 1 | 2019-06-24T21:32:14.000Z | 2019-07-03T12:46:28.000Z | pypret/io/tests/test_io.py | liam-clink/pypret | c84e954efc12137c6b5ade4fae920d60a15d4875 | [
"MIT"
] | 12 | 2019-07-23T22:03:55.000Z | 2022-01-06T08:50:52.000Z | """ This module tests the io subpackage implementation.
Author: Nils Geib, nils.geib@uni-jena.de
"""
import numpy as np
from pypret import io
from pprint import pformat
from os import remove
def test_io():
# test flat arrays
_assert_io(np.arange(5))
_assert_io(np.arange(5, dtype=np.compl... | 26.026316 | 79 | 0.577351 |
e543a1470c327269bc5d0fa3125cb8ab3fe77488 | 14,682 | py | Python | src/main/python/main.py | wong-justin/quick-bible | 035db43eca2c811792e32b123fa81f679ac5f168 | [
"MIT"
] | null | null | null | src/main/python/main.py | wong-justin/quick-bible | 035db43eca2c811792e32b123fa81f679ac5f168 | [
"MIT"
] | null | null | null | src/main/python/main.py | wong-justin/quick-bible | 035db43eca2c811792e32b123fa81f679ac5f168 | [
"MIT"
] | null | null | null |
from utils import *
from shared import *
from updating import MyAppContext
from threading import Thread
import re
import sys
import os
# --- run
if __name__ == '__main__':
appctxt = MyAppContext()
set_theme(appctxt.app)
init_data()
main = Main(PageManager(BooksPage, ChaptersPage, VersesPage, Sear... | 36.431762 | 136 | 0.63697 |
e54424cb8a2e93ad7659fa0e0f3c23ae851505b8 | 5,458 | py | Python | armada/tests/unit/utils/test_lint.py | sktelecom-oslab/armada | ebc71ff8eca7ecf0560493d5cdafc14e34c783c9 | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | sktelecom-oslab/armada | ebc71ff8eca7ecf0560493d5cdafc14e34c783c9 | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | sktelecom-oslab/armada | ebc71ff8eca7ecf0560493d5cdafc14e34c783c9 | [
"Apache-2.0"
] | 2 | 2018-05-28T13:00:42.000Z | 2021-09-02T07:28:59.000Z | # Copyright 2017 The Armada 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
#
# Unless required by applicable law or agreed to in w... | 32.295858 | 74 | 0.622206 |
e545cf0e67826a43917bc1e5665f0de69c08ad62 | 278 | py | Python | scripts/rename_fq.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | null | null | null | scripts/rename_fq.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | null | null | null | scripts/rename_fq.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | 1 | 2018-05-11T14:54:51.000Z | 2018-05-11T14:54:51.000Z | #! /usr/bin/env python
import csv
import sys
import os
import pathogenseq.files as psf
infile = sys.argv[1]
for row in csv.DictReader(open(infile)):
f1 = "%s.fastq.gz" % row["Barcode"]
f2 = "%s.%s.fastq.gz" % (row["Name"],row["Barcode"])
psf.filecheck(f1)
os.rename(f1,f2)
| 21.384615 | 53 | 0.672662 |
e54612725dff063fe507222226db0fb8875e240a | 4,100 | py | Python | synapse/tools/cryo/cat.py | vertexmc/synapse | bd1f8ab1abcbaac20dc9afb9ad385cf831278ada | [
"Apache-2.0"
] | null | null | null | synapse/tools/cryo/cat.py | vertexmc/synapse | bd1f8ab1abcbaac20dc9afb9ad385cf831278ada | [
"Apache-2.0"
] | 4 | 2017-10-03T21:50:40.000Z | 2017-11-20T15:49:38.000Z | synapse/tools/cryo/cat.py | vertexmc/synapse | bd1f8ab1abcbaac20dc9afb9ad385cf831278ada | [
"Apache-2.0"
] | null | null | null | import sys
import json
import pprint
import argparse
import logging
import synapse.common as s_common
import synapse.cryotank as s_cryotank
import synapse.lib.cell as s_cell
import synapse.lib.output as s_output
import synapse.lib.msgpack as s_msgpack
logger = logging.getLogger(__name__)
if __name__ == '__main__':... | 38.679245 | 119 | 0.628537 |
e546ebdb04dff83307e0ea85b193a4c434f9cc11 | 3,905 | py | Python | bdd100k/eval/lane_test.py | bdd100k/bdd100k | c8b54044038d2a03dcb10dcc6d9aef361639ffec | [
"BSD-3-Clause"
] | 193 | 2020-09-22T09:48:17.000Z | 2022-03-31T20:49:24.000Z | bdd100k/eval/lane_test.py | bdd100k/bdd100k | c8b54044038d2a03dcb10dcc6d9aef361639ffec | [
"BSD-3-Clause"
] | 60 | 2020-09-28T15:44:40.000Z | 2022-03-31T07:58:58.000Z | bdd100k/eval/lane_test.py | bdd100k/bdd100k | c8b54044038d2a03dcb10dcc6d9aef361639ffec | [
"BSD-3-Clause"
] | 41 | 2020-09-27T02:52:20.000Z | 2022-02-21T03:33:39.000Z | """Test cases for lane.py."""
import os
import unittest
import numpy as np
from ..common.utils import list_files
from .lane import (
eval_lane_per_threshold,
evaluate_lane_marking,
get_foreground,
get_lane_class,
sub_task_funcs,
)
if __name__ == "__main__":
unittest.main()
| 35.5 | 78 | 0.568246 |
e547362978e6693dbe91b5bc878d2ea775c9f025 | 1,561 | py | Python | comp_modules/Quicksort.py | SpyrosMouselinos/CompSciStructs | e45743cc4fdf103d4cc0b48d62086226e1cbe726 | [
"Apache-2.0"
] | null | null | null | comp_modules/Quicksort.py | SpyrosMouselinos/CompSciStructs | e45743cc4fdf103d4cc0b48d62086226e1cbe726 | [
"Apache-2.0"
] | null | null | null | comp_modules/Quicksort.py | SpyrosMouselinos/CompSciStructs | e45743cc4fdf103d4cc0b48d62086226e1cbe726 | [
"Apache-2.0"
] | null | null | null | import random
| 22.623188 | 61 | 0.53171 |
e547b6a838dfd62eee61bf8e0dfa8ecb24093404 | 18,522 | py | Python | backend/generate_z3.py | uwplse/stng | ce12c2c079516df873382a5aa3c18c407833d130 | [
"MIT"
] | 14 | 2017-03-07T00:14:33.000Z | 2022-02-09T00:59:22.000Z | backend/generate_z3.py | uwplse/stng | ce12c2c079516df873382a5aa3c18c407833d130 | [
"MIT"
] | 11 | 2016-11-22T13:14:55.000Z | 2021-12-14T00:56:51.000Z | backend/generate_z3.py | uwplse/stng | ce12c2c079516df873382a5aa3c18c407833d130 | [
"MIT"
] | 6 | 2016-11-07T13:38:45.000Z | 2021-04-04T12:13:31.000Z | import logging
from stencil_ir import *
from verify import *
from assertion_to_z3 import *
import generate_sketch
import asp.codegen.ast_tools as ast_tools
| 43.275701 | 166 | 0.576774 |
e548c969786feae43c81dceea46b23eaaf132846 | 2,991 | py | Python | user_program/old/firmware_tester.py | dekuNukem/USB4VC | 66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c | [
"MIT"
] | 78 | 2022-02-07T16:48:11.000Z | 2022-03-31T12:25:35.000Z | user_program/old/firmware_tester.py | dekuNukem/USB4VC | 66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c | [
"MIT"
] | 1 | 2022-02-26T20:16:08.000Z | 2022-02-26T20:24:04.000Z | user_program/old/firmware_tester.py | dekuNukem/USB4VC | 66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c | [
"MIT"
] | 1 | 2022-02-24T03:34:15.000Z | 2022-02-24T03:34:15.000Z | import os
import sys
import time
import spidev
import RPi.GPIO as GPIO
PBOARD_RESET_PIN = 25
PBOARD_BOOT0_PIN = 12
SLAVE_REQ_PIN = 16
GPIO.setmode(GPIO.BCM)
GPIO.setup(PBOARD_RESET_PIN, GPIO.IN)
GPIO.setup(PBOARD_BOOT0_PIN, GPIO.IN)
GPIO.setup(SLAVE_REQ_PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
is_dfu = False
if(le... | 27.694444 | 102 | 0.638248 |
e54bb2a421e7b64f44e6913ef7732630a953e801 | 8,394 | py | Python | dataset/text.py | scfrank/deep-generative-lm | 70067fcda82aa035bba805ce6c2709097166a7a4 | [
"MIT"
] | null | null | null | dataset/text.py | scfrank/deep-generative-lm | 70067fcda82aa035bba805ce6c2709097166a7a4 | [
"MIT"
] | null | null | null | dataset/text.py | scfrank/deep-generative-lm | 70067fcda82aa035bba805ce6c2709097166a7a4 | [
"MIT"
] | null | null | null | """
Text datatset iterators, as an extension of the PyTorch Dataset class.
class SimpleTextData(): reads a text file line by line up to a specified sequence length.
class SimpleTextDataSplit(): extends SimpleTextData() by splitting the data in train and val sets.
class TextDataPadded(): extends SimpleTextData() by pad... | 38.861111 | 122 | 0.65928 |
e54c9a30192e6b4af7abb9251e624d83d9672e92 | 2,938 | py | Python | object_detection/pytorch/demo/webcam.py | lamyiowce/training | da4c959b5a7b65091b850872cdd4014d768c087c | [
"Apache-2.0"
] | 567 | 2018-09-13T05:07:49.000Z | 2020-11-23T11:52:11.000Z | object_detection/pytorch/demo/webcam.py | lamyiowce/training | da4c959b5a7b65091b850872cdd4014d768c087c | [
"Apache-2.0"
] | 222 | 2018-09-14T10:15:39.000Z | 2020-11-20T22:21:09.000Z | object_detection/pytorch/demo/webcam.py | ltechkorea/mlperf-training | 498b945dd914573bdbf7a871eaeebd9388b60b76 | [
"Apache-2.0"
] | 279 | 2018-09-16T12:40:29.000Z | 2020-11-17T14:22:52.000Z | # Copyright (c) 2021, NVIDIA CORPORATION. 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 applic... | 31.255319 | 88 | 0.663036 |
e54d49eead1974109248b8035d8a201f05e5a2c9 | 1,886 | py | Python | os_xenapi/client/host_agent.py | jonarrien/openstack-xenapi | 8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6 | [
"Apache-2.0"
] | null | null | null | os_xenapi/client/host_agent.py | jonarrien/openstack-xenapi | 8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6 | [
"Apache-2.0"
] | null | null | null | os_xenapi/client/host_agent.py | jonarrien/openstack-xenapi | 8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Citrix Systems
#
# 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 agr... | 39.291667 | 78 | 0.671262 |
e55136ee5d85881c01e65dc049c23752a163d827 | 8,328 | py | Python | changes/api/build_details.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | changes/api/build_details.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | changes/api/build_details.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from collections import defaultdict
from flask_restful.reqparse import RequestParser
from itertools import groupby
from sqlalchemy.orm import contains_eager, joinedload, subqueryload_all
from uuid import UUID
from changes.api.base import APIView
from changes.api.serializer.model... | 31.074627 | 79 | 0.587416 |
e55245ae534826a12c1057928c01b0d967155c85 | 633 | py | Python | test/test_one_or_greater.py | kant/stream-daemon | 729bc576b74dcd9f1e2021a2433d176d33c413c9 | [
"MIT"
] | 2 | 2016-06-06T22:50:21.000Z | 2018-01-17T16:14:05.000Z | test/test_one_or_greater.py | kant/stream-daemon | 729bc576b74dcd9f1e2021a2433d176d33c413c9 | [
"MIT"
] | null | null | null | test/test_one_or_greater.py | kant/stream-daemon | 729bc576b74dcd9f1e2021a2433d176d33c413c9 | [
"MIT"
] | 1 | 2018-08-27T19:57:03.000Z | 2018-08-27T19:57:03.000Z | import unittest
from Monitor import five_or_greater | 30.142857 | 81 | 0.616114 |
e552b7215e51626970b737861ed04a252b5cb791 | 1,293 | py | Python | biblepaycentral/masternodes/migrations/0001_initial.py | Lichtsucher/biblepaycentral | 0575c9c6851bd87d35d8cda9840301ee510698e8 | [
"MIT"
] | 3 | 2018-03-18T22:36:20.000Z | 2020-02-13T15:52:25.000Z | biblepaycentral/masternodes/migrations/0001_initial.py | Lichtsucher/biblepaycentral | 0575c9c6851bd87d35d8cda9840301ee510698e8 | [
"MIT"
] | null | null | null | biblepaycentral/masternodes/migrations/0001_initial.py | Lichtsucher/biblepaycentral | 0575c9c6851bd87d35d8cda9840301ee510698e8 | [
"MIT"
] | 1 | 2018-10-16T10:51:11.000Z | 2018-10-16T10:51:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-05-20 16:32
from __future__ import unicode_literals
from django.db import migrations, models
| 34.026316 | 114 | 0.572312 |
e552e80c6cecaff697d61ab26de1caa136a85aa7 | 100 | py | Python | taobaotmcpy/__init__.py | baocaixiong/taobao-tmc-python | 7fea2e481f303aae172606bcc9e17d3ce5500abe | [
"MIT"
] | 3 | 2015-09-17T14:35:45.000Z | 2017-01-23T13:18:48.000Z | taobaotmcpy/__init__.py | baocaixiong/taobao-tmc-python | 7fea2e481f303aae172606bcc9e17d3ce5500abe | [
"MIT"
] | null | null | null | taobaotmcpy/__init__.py | baocaixiong/taobao-tmc-python | 7fea2e481f303aae172606bcc9e17d3ce5500abe | [
"MIT"
] | 7 | 2016-03-29T07:02:50.000Z | 2020-06-01T07:37:18.000Z | # coding: utf8
__author__ = 'baocaixiong'
__all__ = ['TmcClient']
from tmcclient import TmcClient
| 14.285714 | 31 | 0.75 |
e554f5b6e49841dbafd67f8647e1ce20f5fc6e43 | 17 | py | Python | test.py | HayatoNagasaki/HayatoNagasaki.github.io | 98ca109f327ad2e079b2143d46487ed60209c83d | [
"MIT"
] | 1 | 2019-07-11T01:06:01.000Z | 2019-07-11T01:06:01.000Z | test.py | HayatoNagasaki/HayatoNagasaki.github.io | 98ca109f327ad2e079b2143d46487ed60209c83d | [
"MIT"
] | 1 | 2019-07-08T05:28:59.000Z | 2021-01-14T10:44:49.000Z | test.py | HayatoNagasaki/HayatoNagasaki.github.io | 98ca109f327ad2e079b2143d46487ed60209c83d | [
"MIT"
] | null | null | null | print("test.py")
| 8.5 | 16 | 0.647059 |
e559a7fb012d10180f481f20a5e14d31f9279b77 | 2,368 | py | Python | helper.py | HackerLion123/CNN_for_Fashion | 25eb3fc449cf9ee2f1591e3c137a11915f0ee199 | [
"MIT"
] | null | null | null | helper.py | HackerLion123/CNN_for_Fashion | 25eb3fc449cf9ee2f1591e3c137a11915f0ee199 | [
"MIT"
] | null | null | null | helper.py | HackerLion123/CNN_for_Fashion | 25eb3fc449cf9ee2f1591e3c137a11915f0ee199 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from tensorflow import gfile
from PIL import Image
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelBinarizer
import multiprocessing
import sys
import os
if __name__ == '__main__':
images, labels, _ = load_data("data/notMNIST_sm... | 26.606742 | 132 | 0.752956 |
e55aa2f041ab96556aa76a0a7df9e2eb922247e5 | 1,570 | py | Python | row.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | null | null | null | row.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | 9 | 2015-10-30T12:46:53.000Z | 2015-11-25T03:27:49.000Z | row.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | 2 | 2018-06-22T15:23:44.000Z | 2020-11-05T01:47:54.000Z | from __future__ import print_function, division
import sys
sys.dont_write_bytecode = True
"""
# Rows
"""
from lib import *
| 22.112676 | 50 | 0.499363 |
e55cd024add940dff887d317c65342a61070e10c | 306 | py | Python | hyperparams.py | nce3xin/spam | 908421d5cf2dd103e2a7044bf1c8586aaf5f2ada | [
"MIT"
] | 1 | 2019-03-13T10:49:25.000Z | 2019-03-13T10:49:25.000Z | hyperparams.py | nce3xin/spam | 908421d5cf2dd103e2a7044bf1c8586aaf5f2ada | [
"MIT"
] | null | null | null | hyperparams.py | nce3xin/spam | 908421d5cf2dd103e2a7044bf1c8586aaf5f2ada | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 9 11:17:24 2018
@author: nce3xin
"""
seed_num=1
learning_rate=1e-3
#epochs=109
#epochs=90
epochs=20
batch_size=16
log_interval=1
no_cuda=False
MODEL='LSTM'
cnn_out_dims=25
CNN_mapping=False
normalization=False
standard_scale=False
min_max_scaler=False | 11.769231 | 35 | 0.754902 |
e55d3600b75d26796ee6898a2f70d9baa125034f | 1,091 | py | Python | elkm1_lib/settings.py | stevemcquaid/elkm1 | 843092329208a3a2bafdedc0a8984a6f20626480 | [
"MIT"
] | null | null | null | elkm1_lib/settings.py | stevemcquaid/elkm1 | 843092329208a3a2bafdedc0a8984a6f20626480 | [
"MIT"
] | null | null | null | elkm1_lib/settings.py | stevemcquaid/elkm1 | 843092329208a3a2bafdedc0a8984a6f20626480 | [
"MIT"
] | null | null | null | """Definition of an ElkM1 Custom Value"""
from .const import Max, TextDescriptions
from .elements import Element, Elements
from .message import add_message_handler, cp_encode, cw_encode
| 32.088235 | 72 | 0.679193 |
e55fd1183bbea7baae5e8cb8798441212de67d2a | 286 | py | Python | rxbp/indexed/init/initindexedflowable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 24 | 2018-11-22T21:04:49.000Z | 2021-11-08T11:18:09.000Z | rxbp/indexed/init/initindexedflowable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2019-02-06T15:58:46.000Z | 2019-02-12T20:31:50.000Z | rxbp/indexed/init/initindexedflowable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:41:37.000Z | 2021-01-26T12:41:37.000Z | from rxbp.indexed.impl.indexedflowableimpl import IndexedFlowableImpl
from rxbp.indexed.mixins.indexedflowablemixin import IndexedFlowableMixin
| 26 | 73 | 0.800699 |
e560c0065add902aec8b6f052dd6151fd1ebe484 | 291 | py | Python | src/__init__.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | src/__init__.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | src/__init__.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | """Top-level package for COSC525-Project2."""
from .neuron import *
from .fully_connected_layer import *
from .convolutional_layer import *
from .max_pooling_layer import *
from .flatten_layer import *
from .neural_network import *
from .data_generator import *
from .tensor_files import *
| 26.454545 | 45 | 0.786942 |
e560f9f2e17600df62f3bea76144c341a81a3cc7 | 7,581 | py | Python | source/02_ssd_large/lib/model.py | toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles | af2e0db16281fb997a9bd5149c478095128a627e | [
"MIT"
] | 24 | 2019-11-28T05:54:58.000Z | 2021-06-14T07:38:30.000Z | source/03_ssd_small/lib/model.py | toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles | af2e0db16281fb997a9bd5149c478095128a627e | [
"MIT"
] | null | null | null | source/03_ssd_small/lib/model.py | toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles | af2e0db16281fb997a9bd5149c478095128a627e | [
"MIT"
] | 5 | 2019-12-06T05:59:32.000Z | 2021-09-16T13:30:29.000Z | import math
from pathlib import Path
import numpy as np
import torch
from torch import nn
import torch.nn.functional as F
from torch.autograd import Variable
from torchvision import models
from PIL import Image
from lib.default_box import dbox_params
from lib.visualize import Visualizer
from common import numpy2pil
... | 34.616438 | 118 | 0.61298 |
e5616dbad551125f0ff82bbdd7078f807585a1f9 | 2,560 | py | Python | tests/datastructures_tests/physical_data_tests.py | czbiohub/reconstruct-order | e729ae3871aea0a5ec2d42744a9448c7f0a93037 | [
"Unlicense"
] | 6 | 2019-10-30T23:00:01.000Z | 2021-03-02T19:09:07.000Z | tests/datastructures_tests/physical_data_tests.py | czbiohub/ReconstructOrder | e729ae3871aea0a5ec2d42744a9448c7f0a93037 | [
"Unlicense"
] | 14 | 2019-07-08T22:51:29.000Z | 2019-07-13T15:44:01.000Z | tests/datastructures_tests/physical_data_tests.py | mehta-lab/reconstruct-order | e729ae3871aea0a5ec2d42744a9448c7f0a93037 | [
"Unlicense"
] | 2 | 2020-05-02T23:28:36.000Z | 2020-07-16T23:46:46.000Z | import numpy as np
import pytest, os
from numpy.testing import assert_array_equal
from ReconstructOrder.datastructures.physical_data import PhysicalData
def test_basic_constructor_nparray():
"""
test assignment using numpy arrays
"""
phys = PhysicalData()
phys.I_trans = np.ones((512, 512))
p... | 28.444444 | 70 | 0.679688 |
e5620e85ec34ab2ff5817e8825c91c57685d44ba | 6,349 | py | Python | 2019/14.py | IsaacG/Advent-of-Code | 1e970c6a4abc4a2025f7c70323e70aee64d0bc21 | [
"MIT"
] | 3 | 2020-12-19T09:01:03.000Z | 2021-12-16T13:05:03.000Z | 2019/14.py | IsaacG/Advent-of-Code | 1e970c6a4abc4a2025f7c70323e70aee64d0bc21 | [
"MIT"
] | null | null | null | 2019/14.py | IsaacG/Advent-of-Code | 1e970c6a4abc4a2025f7c70323e70aee64d0bc21 | [
"MIT"
] | null | null | null | #!/bin/python
"""Day 14: Space Stoichiometry.
Handle chemical reactions, converting ORE to FUEL.
"""
import collections
import math
import typer
from typing import Dict, List, Set, Tuple
import data
from lib import aoc
SAMPLE = data.D14
TRILLION = int(1e12)
if __name__ == '__main__':
typer.run(Day14().run)
#... | 35.668539 | 96 | 0.642778 |
e5636f16a4be081479c9bb8479ea7b652ed01784 | 530 | py | Python | src/pynauty/tests/test_autgrp.py | sammorley-short/pynauty-1 | 852ee738174179c242913ff2afa8b47715d0947b | [
"Apache-2.0"
] | 16 | 2021-02-05T10:15:57.000Z | 2022-03-07T21:51:09.000Z | src/pynauty/tests/test_autgrp.py | sammorley-short/pynauty-1 | 852ee738174179c242913ff2afa8b47715d0947b | [
"Apache-2.0"
] | 20 | 2021-01-31T11:48:56.000Z | 2022-01-25T15:16:05.000Z | src/pynauty/tests/test_autgrp.py | sammorley-short/pynauty-1 | 852ee738174179c242913ff2afa8b47715d0947b | [
"Apache-2.0"
] | 6 | 2021-02-18T11:55:17.000Z | 2021-08-21T03:24:58.000Z | #!/usr/bin/env python
import sys
from pynauty import autgrp, Version
import pytest
# List of graphs for testing
#
# Structure:
# [[name, Graph, numorbit, grpsize, generators]]
#
# numorbit, grpsize, generators was calculated by dreadnut
#
| 24.090909 | 75 | 0.683019 |
e563d88bca3ef7c6f932060d4826c5924fd546b6 | 3,284 | py | Python | easytrader/pazq_remote_trader.py | CHiSec/nextrader | 28b9becf23f6e40d36f5bda0515ac383913899d6 | [
"MIT"
] | null | null | null | easytrader/pazq_remote_trader.py | CHiSec/nextrader | 28b9becf23f6e40d36f5bda0515ac383913899d6 | [
"MIT"
] | null | null | null | easytrader/pazq_remote_trader.py | CHiSec/nextrader | 28b9becf23f6e40d36f5bda0515ac383913899d6 | [
"MIT"
] | null | null | null | import abc
import requests
import time
import json
from easytrader.utils.misc import file2dict
def sell(self, stock_id, price: float, amount: int):
return self._api_post("sell", {'stock_id': stock_id, 'price': price, 'amount': amount})
def cancel_entrust(self, entrust_no: str):
data = self._... | 26.063492 | 95 | 0.563033 |
e565c470b23648889679a52fd97863eab35ec86e | 3,496 | py | Python | Game/images.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | Game/images.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | Game/images.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | import pygame, constants, copy
# pygame.init()
pygame.display.set_mode(constants.default_size)
current_path = constants.current_path + "Pixel Images\\"
def create_path(path:str):
"""
:param path:path is the relative path from the pixel images folder
:return: the relative path from roots of project
"""... | 36.041237 | 136 | 0.735984 |
e5669614b0e617bd22827739713131fdd9270edc | 2,030 | py | Python | examples/old-examples/Kivy/window_coordinates.py | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 916 | 2019-03-11T19:15:20.000Z | 2022-03-31T19:22:16.000Z | examples/old-examples/Kivy/window_coordinates.py | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 218 | 2019-03-11T06:05:52.000Z | 2022-03-30T16:59:22.000Z | examples/old-examples/Kivy/window_coordinates.py | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 110 | 2019-04-06T18:32:24.000Z | 2022-03-21T20:30:47.000Z | import struct
import ModernGL
from kivy.app import App
from kivy.core.window import Window
from kivy.graphics import Callback
from kivy.uix.widget import Widget
if __name__ == '__main__':
MainApp().run()
| 26.363636 | 97 | 0.484729 |
e566b297876dff7f7531c8e89abb6a0cb5ac2b19 | 3,589 | py | Python | shogun/records/generic.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-11-26T21:04:20.000Z | 2020-11-26T21:04:20.000Z | shogun/records/generic.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | shogun/records/generic.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | import inspect
from abc import ABCMeta, abstractmethod
from typing import Any, Generic, List, Mapping, Optional, Type, TypeVar
from .error import NotARecordClass
T = TypeVar("T")
FieldType = TypeVar("FieldType")
class RecordClass(Generic[FieldType], metaclass=ABCMeta):
"""
Abstract base class for dataclas... | 26.783582 | 113 | 0.633881 |
e566f80f2af89ff3cebc3584e47b99d358ead339 | 481 | py | Python | example/get_concurrent.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | example/get_concurrent.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | example/get_concurrent.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | # type: ignore
import asyncio
from scrapeacademy import context, run
run(get_concurrent("https://www.python.jp/"))
| 20.913043 | 84 | 0.632017 |
e568447e5a2058ff096a7764cac780efbf11101d | 213 | py | Python | edx_6.00.1x_python/ex7_7.py | TimothyDJones/learn-python | 687239572bee5e5c94bebb6b175b3fba4d47600e | [
"MIT"
] | null | null | null | edx_6.00.1x_python/ex7_7.py | TimothyDJones/learn-python | 687239572bee5e5c94bebb6b175b3fba4d47600e | [
"MIT"
] | null | null | null | edx_6.00.1x_python/ex7_7.py | TimothyDJones/learn-python | 687239572bee5e5c94bebb6b175b3fba4d47600e | [
"MIT"
] | null | null | null | # ex7_7.py
def f(n):
"""
n: integer, n >= 0.
"""
if n == 0:
return 1
else:
return n * f(n-1)
if __name__ == "__main__":
print(f(0))
print(f(1))
print(f(3))
print(f(5))
| 12.529412 | 26 | 0.43662 |
e568882780ef0ac998bdbf653d401680333f8d0d | 919 | py | Python | zeus/factories/revision.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 221 | 2017-07-03T17:29:21.000Z | 2021-12-07T19:56:59.000Z | zeus/factories/revision.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 298 | 2017-07-04T18:08:14.000Z | 2022-03-03T22:24:51.000Z | zeus/factories/revision.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 24 | 2017-07-15T13:46:45.000Z | 2020-08-16T16:14:45.000Z | import factory
import factory.faker
from datetime import timedelta
from faker import Factory
faker = Factory.create()
from zeus import models
from zeus.config import db
from zeus.utils import timezone
from .base import ModelFactory
| 23.564103 | 71 | 0.68444 |
e569092e20bd1bfebd7bbcdc409a0332fd58245a | 18,701 | py | Python | xga/xspec/run.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 12 | 2020-05-16T09:45:45.000Z | 2022-02-14T14:41:46.000Z | xga/xspec/run.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 684 | 2020-05-28T08:52:09.000Z | 2022-03-31T10:56:24.000Z | xga/xspec/run.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 2 | 2022-02-04T10:55:55.000Z | 2022-02-04T11:30:56.000Z | # This code is a part of XMM: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
# Last modified by David J Turner (david.turner@sussex.ac.uk) 09/06/2021, 16:34. Copyright (c) David J Turner
import os
import warnings
from functools import wraps
# from multiprocessing.dummy import Pool
fr... | 55.492582 | 119 | 0.579006 |
e56946e13d2d2d1c51e541739f896030848cdd8a | 76,894 | py | Python | utils/utils_df_nn.py | Lifelong-ML/LASEM | c4ec052c850e37f54bc3e6faf6b988a4c5239f10 | [
"MIT"
] | 8 | 2021-07-06T14:35:50.000Z | 2022-03-03T08:45:13.000Z | utils/utils_df_nn.py | Lifelong-ML/LASEM | c4ec052c850e37f54bc3e6faf6b988a4c5239f10 | [
"MIT"
] | null | null | null | utils/utils_df_nn.py | Lifelong-ML/LASEM | c4ec052c850e37f54bc3e6faf6b988a4c5239f10 | [
"MIT"
] | 1 | 2021-07-09T09:26:11.000Z | 2021-07-09T09:26:11.000Z | import numpy as np
import tensorflow as tf
from utils.utils import *
from utils.utils_nn import *
###########################################################
##### functions to generate parameter #####
###########################################################
#### function to generate k... | 116.154079 | 1,000 | 0.734986 |
e569a5dbd4c731524441ab30a896814a5ca98109 | 22,303 | py | Python | cogs/device.py | quiprr/AutoTSS | 8d78db17ed5a7f6200955689bfb7580b7eba7183 | [
"MIT"
] | null | null | null | cogs/device.py | quiprr/AutoTSS | 8d78db17ed5a7f6200955689bfb7580b7eba7183 | [
"MIT"
] | null | null | null | cogs/device.py | quiprr/AutoTSS | 8d78db17ed5a7f6200955689bfb7580b7eba7183 | [
"MIT"
] | null | null | null | from aioify import aioify
from discord.ext import commands
import aiofiles
import aiohttp
import aiosqlite
import asyncio
import discord
import json
import shutil
| 40.922936 | 183 | 0.706407 |
e569cd589ab6a45a901427f44fecdf26b339de4e | 3,725 | py | Python | applications/AdminSItes/controllers/sites.py | pigaov10/prodam.site.admin | 9105c092a76fb7158085a08cd4d30d99b6e02ba9 | [
"BSD-3-Clause"
] | null | null | null | applications/AdminSItes/controllers/sites.py | pigaov10/prodam.site.admin | 9105c092a76fb7158085a08cd4d30d99b6e02ba9 | [
"BSD-3-Clause"
] | null | null | null | applications/AdminSItes/controllers/sites.py | pigaov10/prodam.site.admin | 9105c092a76fb7158085a08cd4d30d99b6e02ba9 | [
"BSD-3-Clause"
] | null | null | null | ### SITE PLONE
import os, sys
import xml.etree.cElementTree as tree_element_first
def add_configure_file(path,project_name,param1='IPortalHeader',param2='IProdamPortal'):
"""
MTODO RESPONSVEL POR GERAR O ARQUIVO ZCML
"""
#seta n para configurao dos namespaces
configure = tree_element_first.Element('configure')... | 27.389706 | 88 | 0.682953 |
e56a51d213bf7149b8e6be6f0bd4f017978c2a3f | 1,365 | py | Python | fraktal_kocha_obiektowy.py | dkosztowniak/krzywaKocha | 1ece53d0fda51565eedd7e5427a82e72e019a21d | [
"MIT"
] | null | null | null | fraktal_kocha_obiektowy.py | dkosztowniak/krzywaKocha | 1ece53d0fda51565eedd7e5427a82e72e019a21d | [
"MIT"
] | null | null | null | fraktal_kocha_obiektowy.py | dkosztowniak/krzywaKocha | 1ece53d0fda51565eedd7e5427a82e72e019a21d | [
"MIT"
] | null | null | null | import turtle
kolory = ('#ffbd20', '#20bd20', '#ff3c00', '#f000ff', '#004aff')
xPlatek = (-400, -400, 200, 200, -100)
yPlatek = (-50, 250, 250, -50, 150)
f = fraktalKocha()
turtle.title('Krzywa Kocha')
f.home()
f.speed(0) # 0..10 - najszybciej 0
f.penup()
f.pensize(2)
f.clear()
for n in range(5):
# Legenda
... | 24.375 | 69 | 0.556044 |
e56b278c08c9a210c958ffc52ff78cb97e76e231 | 718 | py | Python | scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py | leipzig/cromwell | e46adf05cc96343c4b4b9f081e68160b7f178ded | [
"Apache-2.0",
"BSD-3-Clause"
] | 850 | 2015-05-17T12:45:42.000Z | 2022-03-31T08:36:54.000Z | scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py | leipzig/cromwell | e46adf05cc96343c4b4b9f081e68160b7f178ded | [
"Apache-2.0",
"BSD-3-Clause"
] | 5,136 | 2015-05-06T14:58:16.000Z | 2022-03-31T15:44:37.000Z | scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py | leipzig/cromwell | e46adf05cc96343c4b4b9f081e68160b7f178ded | [
"Apache-2.0",
"BSD-3-Clause"
] | 363 | 2015-11-18T13:15:45.000Z | 2022-03-31T08:05:56.000Z | Attempt = "attempt"
CromwellAdditionalTotalTimeSeconds = "cromwellAdditionalTotalTimeSeconds"
CromwellEnd = "cromwellEnd"
CromwellStart = "cromwellStart"
CromwellTotalTimeSeconds = "cromwellTotalTimeSeconds"
DelocalizationTimeSeconds = "delocalizationTimeSeconds"
Disks = "disks"
DockerImagePullTimeSeconds = "dockerImag... | 35.9 | 73 | 0.841226 |
e56d517d2e7a6f8ec101aff647f99c75f46d671c | 8,765 | py | Python | VPR_Techniques/HybridNet.py | oravus/VPR-Bench | 80ff8d1f18e3cd102af94b96b6fe9bd0041257cc | [
"MIT"
] | 30 | 2021-04-24T12:25:50.000Z | 2022-03-23T05:28:19.000Z | VPR_Techniques/HybridNet.py | UQEKV/VPR-Bench | 5b3c6170a1c3f6137aba371468302efd612de66d | [
"MIT"
] | 5 | 2021-06-28T00:48:24.000Z | 2022-03-04T16:05:57.000Z | VPR_Techniques/HybridNet.py | UQEKV/VPR-Bench | 5b3c6170a1c3f6137aba371468302efd612de66d | [
"MIT"
] | 7 | 2021-04-16T06:46:05.000Z | 2022-03-23T05:28:09.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 5 15:34:18 2020
@author: mubariz
"""
import caffe
import numpy as np
import os
| 50.66474 | 189 | 0.610496 |
e56e6882dba09fa5e87e1ace9bbb92be2582bd23 | 7,228 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2019 Nicholas H. Tollervey for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_ble_radio`
================================================================================
Simple byte and string based inter-device communication via BLE.
* Author(s): Nicholas H.Tollervey f... | 35.258537 | 87 | 0.606253 |
e56ec1987b2697fa228af32ab9806f8ffcfab331 | 536 | py | Python | 01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | 01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | 01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | #!/user/bin/python
'''FibonacciList(n)
create an array F[0... n]
F[0] <- 0
F[1] <- 1
for i from 2 to n:
F[i] <- F[i-1] + F[i-2]
return F[n]
'''
if __name__ == "__main__":
print(fibonacci_iter(10))
| 16.242424 | 64 | 0.516791 |
e56ec44fd01f43bc003d160541bb7a0ae0b9a6ae | 1,715 | py | Python | pynYNAB/schema/catalog.py | rienafairefr/pynYNAB | d5fc0749618409c6bb01cc2b93832cc59d780eaa | [
"MIT"
] | 82 | 2017-02-21T11:07:24.000Z | 2022-03-20T21:56:17.000Z | pynYNAB/schema/catalog.py | rienafairefr/pynYNAB | d5fc0749618409c6bb01cc2b93832cc59d780eaa | [
"MIT"
] | 37 | 2017-02-19T10:28:03.000Z | 2021-01-23T07:44:06.000Z | pynYNAB/schema/catalog.py | rienafairefr/pynYNAB | d5fc0749618409c6bb01cc2b93832cc59d780eaa | [
"MIT"
] | 13 | 2017-03-07T10:08:59.000Z | 2018-05-11T04:53:25.000Z | from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import DateTime
from sqlalchemy import ForeignKey
from sqlalchemy import String
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
from pynYNAB.schema.Entity import Entity, Base
from pynYNAB.schema.ty... | 28.583333 | 73 | 0.744606 |
e56f6d2a048e2089110b635b9fc2860c2724c363 | 13,775 | py | Python | layers/MultiWaveletCorrelation.py | MAZiqing/FEDformer | 7914d39df829494a8172afb9676982c3789d491d | [
"MIT"
] | 7 | 2022-02-20T13:03:25.000Z | 2022-03-30T09:27:38.000Z | layers/MultiWaveletCorrelation.py | MAZiqing/FEDformer | 7914d39df829494a8172afb9676982c3789d491d | [
"MIT"
] | null | null | null | layers/MultiWaveletCorrelation.py | MAZiqing/FEDformer | 7914d39df829494a8172afb9676982c3789d491d | [
"MIT"
] | 4 | 2022-03-05T09:09:28.000Z | 2022-03-21T08:46:23.000Z | import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from typing import List, Tuple
import math
from functools import partial
from einops import rearrange, reduce, repeat
from torch import nn, einsum, diagonal
from math import log2, ceil
import pdb
from utils.m... | 36.345646 | 116 | 0.503739 |
e56f87f0384ecbf57f48e8eac0641bcfd48082b7 | 5,636 | py | Python | perrec/cbr.py | Tbabm/PerRec | 1f711d70df8354156b37857719db0559876be08c | [
"MIT"
] | 3 | 2019-07-24T12:03:24.000Z | 2019-08-28T14:42:51.000Z | perrec/cbr.py | Tbabm/PerRec | 1f711d70df8354156b37857719db0559876be08c | [
"MIT"
] | null | null | null | perrec/cbr.py | Tbabm/PerRec | 1f711d70df8354156b37857719db0559876be08c | [
"MIT"
] | null | null | null | # encoding=utf-8
import os
import fire
import numpy as np
from scipy.sparse.csr import csr_matrix
from sklearn.base import BaseEstimator
from sklearn.model_selection import cross_validate
from sklearn.preprocessing import normalize
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from .co... | 36.836601 | 98 | 0.649929 |
e57008133545852ca9c37cb6b1fc3ddad68b824d | 675 | py | Python | registry/migrations/0041_auto_20210505_1210.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | registry/migrations/0041_auto_20210505_1210.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | registry/migrations/0041_auto_20210505_1210.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-05-05 12:10
from django.db import migrations, models
| 28.125 | 119 | 0.619259 |
e57010f041e3598f7f9d0eae8d7344c471cefd8d | 847 | py | Python | topic_modeling.py | francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation | c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a | [
"MIT"
] | null | null | null | topic_modeling.py | francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation | c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a | [
"MIT"
] | null | null | null | topic_modeling.py | francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation | c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a | [
"MIT"
] | null | null | null | import csv
import sys
import json
import pandas as pd
import os
import logging
# Configure the path
os.chdir('/home/emi/unipd/Sartori_CBSD/project/cbsdproject')
accounts = pd.read_excel('LabelledAccounts.xlsx', skiprows=1)
import operator
import collections
accounts['party_threshold']=pd.Series(np.zeros())
#Fi... | 26.46875 | 82 | 0.744982 |
e570191797fda76257f543ceca066c63d6087a58 | 1,410 | py | Python | examples/tournament/tournament.py | gavento/orco | 07e90bf87246f4577c8e3653b34474a69cc5338e | [
"MIT"
] | null | null | null | examples/tournament/tournament.py | gavento/orco | 07e90bf87246f4577c8e3653b34474a69cc5338e | [
"MIT"
] | null | null | null | examples/tournament/tournament.py | gavento/orco | 07e90bf87246f4577c8e3653b34474a69cc5338e | [
"MIT"
] | null | null | null | import itertools
import random
import orco
# Function that trains "players"
# Build function for "games"
# Build function for a tournament, return score for each player
orco.run_cli()
| 26.603774 | 79 | 0.664539 |
e57024f83b49dd4e2de2007ee984d24ae347e3b1 | 2,546 | py | Python | scripts/injection_ROI_visualization.py | karimi-ali/brainrender | 04be6a05fdfdd22424c4c499f4563943436faf6f | [
"BSD-3-Clause"
] | null | null | null | scripts/injection_ROI_visualization.py | karimi-ali/brainrender | 04be6a05fdfdd22424c4c499f4563943436faf6f | [
"BSD-3-Clause"
] | null | null | null | scripts/injection_ROI_visualization.py | karimi-ali/brainrender | 04be6a05fdfdd22424c4c499f4563943436faf6f | [
"BSD-3-Clause"
] | null | null | null | import os
from pathlib import Path
import brainrender
from brainrender import Scene, actor, Animation
from rich import color, print
from myterial import orange
from vedo import Volume, io, load, show
import numpy as np
import pandas as pd
import util
# path names and roi names
paths = util.get_paths()
roi_names = ut... | 36.371429 | 98 | 0.688138 |
e57240c96406c5bb3b032eec708032b091e297a7 | 7,664 | py | Python | scripts/wk/exe.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | null | null | null | scripts/wk/exe.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 178 | 2017-11-17T19:14:31.000Z | 2021-12-15T07:43:29.000Z | scripts/wk/exe.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 1 | 2017-11-17T19:32:36.000Z | 2017-11-17T19:32:36.000Z | """WizardKit: Execution functions"""
#vim: sts=2 sw=2 ts=2
import json
import logging
import os
import re
import subprocess
import time
from threading import Thread
from queue import Queue, Empty
import psutil
# STATIC VARIABLES
LOG = logging.getLogger(__name__)
# Classes
# Functions
def build_cmd_kwargs(cmd, ... | 26.797203 | 78 | 0.662578 |
e572bb9c99a87131d6b55a9f4ae160708893aa34 | 808 | py | Python | ch03/question_5.py | dhrey112/IntroToPython_Deitel | 7ecbff931d05c467ad64da0bd829f79fedf729ba | [
"MIT"
] | null | null | null | ch03/question_5.py | dhrey112/IntroToPython_Deitel | 7ecbff931d05c467ad64da0bd829f79fedf729ba | [
"MIT"
] | null | null | null | ch03/question_5.py | dhrey112/IntroToPython_Deitel | 7ecbff931d05c467ad64da0bd829f79fedf729ba | [
"MIT"
] | null | null | null | # TODO: 5 (ifelse Statements) Reimplement the script of Fig2.1. using three
# ifelse statements rather than six if statements. [Hint: For example,
# think of == and != as opposite tests.]
print('Enter two integers and I will tell you',
'the relationships they satisfy.')
# read first integer
number1 = int(inp... | 27.862069 | 76 | 0.690594 |
e5738670ee63aa457dda6f798c0a759c27cefdc5 | 7,815 | py | Python | src/libnbnotify/plugins/bus.py | webnull/nbnotify | 54f7d0db0656053680466537aeba35f348147830 | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2015-12-03T06:41:23.000Z | 2015-12-03T06:41:23.000Z | src/libnbnotify/plugins/bus.py | webnull/nbnotify | 54f7d0db0656053680466537aeba35f348147830 | [
"Python-2.0",
"OLDAP-2.7"
] | 2 | 2019-03-02T08:02:34.000Z | 2019-03-02T08:02:47.000Z | src/libnbnotify/plugins/bus.py | webnull/nbnotify | 54f7d0db0656053680466537aeba35f348147830 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #-*- coding: utf-8 -*-
import libnbnotify
import socket
import ssl
import json
import asyncore
import re
import sys
from threading import Thread
import string
import random
import os
import BaseHTTPServer, SimpleHTTPServer
PluginInfo = {'Requirements' : { 'OS' : 'All'}, 'API': 2, 'Authors': 'webnull', 'domain': '', 't... | 29.490566 | 183 | 0.572105 |
e574327e0656040a8425a4febb6293a932d17cd0 | 3,738 | py | Python | main.py | Sujay-Paul/Clara-Music-Bot-Telegram | deb4623185e2b6d09f55e65c4e738c49e22ee1dc | [
"MIT"
] | 1 | 2022-01-11T16:43:57.000Z | 2022-01-11T16:43:57.000Z | main.py | Sujay-Paul/Clara-Music-Bot-Telegram | deb4623185e2b6d09f55e65c4e738c49e22ee1dc | [
"MIT"
] | 1 | 2021-10-01T17:01:48.000Z | 2021-10-01T17:01:48.000Z | main.py | Sujay-Paul/Clara-Music-Bot-Telegram | deb4623185e2b6d09f55e65c4e738c49e22ee1dc | [
"MIT"
] | 1 | 2021-10-01T16:59:49.000Z | 2021-10-01T16:59:49.000Z | from pyrogram import Client, filters
from pyrogram.types import (
InlineKeyboardButton,
InlineKeyboardMarkup
)
import youtube_dl
from youtube_search import YoutubeSearch
import requests
import json
import os
with open('./config.json', 'r') as config:
data = json.load(config)
bot_token = data['token']
... | 31.948718 | 169 | 0.581594 |
e575ae4d7ce1c8acba084bc5319b860ff622e79d | 12,371 | py | Python | main.py | dzinghan/Bouncing-Ball-Simulation | b476af0df40cdd76a9d1256d95de1393748e9edc | [
"MIT"
] | null | null | null | main.py | dzinghan/Bouncing-Ball-Simulation | b476af0df40cdd76a9d1256d95de1393748e9edc | [
"MIT"
] | null | null | null | main.py | dzinghan/Bouncing-Ball-Simulation | b476af0df40cdd76a9d1256d95de1393748e9edc | [
"MIT"
] | null | null | null | '''
Bouncing Ball Simulation
This is an implementation of a bouncing ball simulation using mainly the Tkinter library in Python.
It includes physics and mechanics-related concepts such as gravity, air resistance, and collision.
Before the start of the simulation, the program prompts the user to enter a value for gravit... | 38.780564 | 120 | 0.547167 |
e575dbc2852de3f51f4fc99d4e2297f4d5034e48 | 1,935 | py | Python | examples/validation/core/06_vuetify_components.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 42 | 2021-09-24T22:10:32.000Z | 2022-03-30T19:39:25.000Z | examples/validation/core/06_vuetify_components.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 31 | 2021-10-01T21:19:56.000Z | 2022-03-04T00:14:28.000Z | examples/validation/core/06_vuetify_components.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 7 | 2021-11-17T16:12:06.000Z | 2022-03-26T21:08:40.000Z | from trame.app import get_server
from trame.widgets import vtk, trame, vuetify
from trame.ui.vuetify import SinglePageLayout
# -----------------------------------------------------------------------------
# Trame setup
# -----------------------------------------------------------------------------
server = get_server... | 29.769231 | 79 | 0.447028 |
e5770a81b9b82cc0a7f14946858d355e97381b6c | 752 | py | Python | migrations/versions/4d998c6ec630_nobadges.py | Togohogo1/tag-dh | e6903a87b8e491d84d3dcee02912238e6a3cabbe | [
"MIT"
] | 4 | 2020-05-05T01:36:54.000Z | 2021-03-13T21:05:47.000Z | migrations/versions/4d998c6ec630_nobadges.py | Togohogo1/tag-dh | e6903a87b8e491d84d3dcee02912238e6a3cabbe | [
"MIT"
] | 1 | 2020-05-23T05:48:18.000Z | 2020-05-23T05:48:18.000Z | migrations/versions/4d998c6ec630_nobadges.py | Togohogo1/tag-dh | e6903a87b8e491d84d3dcee02912238e6a3cabbe | [
"MIT"
] | 1 | 2020-05-23T05:41:24.000Z | 2020-05-23T05:41:24.000Z | """nobadges
Revision ID: 4d998c6ec630
Revises: 7950a35f5dbd
Create Date: 2020-05-04 11:55:22.475532
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4d998c6ec630'
down_revision = '7950a35f5dbd'
branch_labels = None
depends_on = None
| 24.258065 | 74 | 0.695479 |
e577c049fff9107639adbdf73d533e3bceafb55b | 323 | py | Python | app/migrations/0003_remove_opinions_idea_opinion.py | sergane13/WorkingPlace | 51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1 | [
"MIT"
] | 1 | 2021-12-10T17:58:09.000Z | 2021-12-10T17:58:09.000Z | app/migrations/0003_remove_opinions_idea_opinion.py | sergane13/IdeaTool-testSite | 51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1 | [
"MIT"
] | null | null | null | app/migrations/0003_remove_opinions_idea_opinion.py | sergane13/IdeaTool-testSite | 51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2021-01-26 08:59
from django.db import migrations
| 17.944444 | 48 | 0.585139 |
e57aa1c123fef768bea75c45c3ceece7bb3f0440 | 859 | py | Python | dxgi_values.py | ouroborus/dds_loader | 2b28d5f58c79473e040a1f755305bf26cfe28d47 | [
"MIT"
] | null | null | null | dxgi_values.py | ouroborus/dds_loader | 2b28d5f58c79473e040a1f755305bf26cfe28d47 | [
"MIT"
] | null | null | null | dxgi_values.py | ouroborus/dds_loader | 2b28d5f58c79473e040a1f755305bf26cfe28d47 | [
"MIT"
] | null | null | null | # BPP and block sizes for all DXGI formats
# Since dxgi formats are enumerated from 0 onward there is no need for dictionary
# if some formats are not suited for storing the value is going to be set to 0
# Sizes are in BYTES
dxgi_pixel_or_block_size = [
0,
16, 16, 16, 16,
12, 12, 12, 12,
8, 8, 8, 8, 8, 8,
8, ... | 23.216216 | 81 | 0.527357 |
e57c0b31f4195a26edf8f9247751452b0807e246 | 1,709 | py | Python | wifi.py | 4yub1k/Python-Wifi-Password | 913d39fe532c566f96aa3605191d142bea759498 | [
"MIT"
] | null | null | null | wifi.py | 4yub1k/Python-Wifi-Password | 913d39fe532c566f96aa3605191d142bea759498 | [
"MIT"
] | null | null | null | wifi.py | 4yub1k/Python-Wifi-Password | 913d39fe532c566f96aa3605191d142bea759498 | [
"MIT"
] | null | null | null | #@ayuboid --- salahuddin[@]protonmail.ch/com
import subprocess
b=t1()
b.password()
#print(b.username()) GET USERNAMES
#You can also use os.system
| 39.744186 | 139 | 0.591574 |
e580b0c306509aee55a5e30612158ccd86541db3 | 23,831 | py | Python | cal_metric.py | BMEngineeR/single_cell_spatial_image | 72676556218605907085a81847cb640a0bc460ea | [
"MIT"
] | 5 | 2021-04-29T12:45:42.000Z | 2021-11-06T23:22:07.000Z | cal_metric.py | OSU-BMBL/single_cell_spatial_image | 61db0da133787885e9f5f7ecc977df0620b62ad7 | [
"MIT"
] | 6 | 2021-02-26T12:36:06.000Z | 2022-02-26T11:44:05.000Z | cal_metric.py | BMEngineeR/single_cell_spatial_image | 72676556218605907085a81847cb640a0bc460ea | [
"MIT"
] | 6 | 2021-04-20T14:01:14.000Z | 2021-11-18T20:18:38.000Z | import os.path as osp
import pickle
import shutil
import tempfile
import os
import mmcv
import numpy as np
import torch
import torch.distributed as dist
from mmcv.image import tensor2imgs
from mmcv.runner import get_dist_info
import pandas as pd
import json
import cv2
from PIL import Image
from sklearn.m... | 43.329091 | 123 | 0.537745 |
e58484894c5f43692fe7341a176dcb84807da1d8 | 467 | py | Python | asab/proactor/__init__.py | TeskaLabs/asab | f28894b62bad192d8d30df01a8ad1b842ee2a2fb | [
"BSD-3-Clause"
] | 23 | 2018-03-07T18:58:13.000Z | 2022-03-29T17:11:47.000Z | asab/proactor/__init__.py | TeskaLabs/asab | f28894b62bad192d8d30df01a8ad1b842ee2a2fb | [
"BSD-3-Clause"
] | 87 | 2018-04-04T19:44:13.000Z | 2022-03-31T11:18:00.000Z | asab/proactor/__init__.py | TeskaLabs/asab | f28894b62bad192d8d30df01a8ad1b842ee2a2fb | [
"BSD-3-Clause"
] | 10 | 2018-04-30T16:40:25.000Z | 2022-03-09T10:55:24.000Z | import logging
import asab
from .service import ProactorService
#
L = logging.getLogger(__name__)
#
asab.Config.add_defaults(
{
'asab:proactor': {
'max_workers': '0',
'default_executor': True,
}
}
)
| 14.59375 | 61 | 0.704497 |
e5851888f1c433217aef830313dc07ac613ce867 | 13,266 | py | Python | mywebsite/shop/views.py | Zadigo/ecommerce_template | a4572c3faeaeb9cd399351c0fd1f19a4ef94de27 | [
"MIT"
] | 16 | 2020-07-01T03:42:40.000Z | 2022-02-21T21:02:27.000Z | mywebsite/shop/views.py | Zadigo/ecommerce_template | a4572c3faeaeb9cd399351c0fd1f19a4ef94de27 | [
"MIT"
] | 14 | 2020-11-19T18:55:28.000Z | 2022-02-01T22:08:23.000Z | mywebsite/shop/views.py | Zadigo/ecommerce_template | a4572c3faeaeb9cd399351c0fd1f19a4ef94de27 | [
"MIT"
] | 7 | 2020-06-30T23:55:36.000Z | 2021-11-12T00:06:40.000Z | """
Conversion Tunnel
------
checkout > shipment > payment > success
Payment process
-------
1. On submitting the form, an AJAX request is
done using Stripe in order to get the token
2. An intermediate view is used afterwards to
process the payment ofn ... | 34.546875 | 99 | 0.635761 |
e585e2842a0d58243451c36eb2f3bb53a795288e | 245 | py | Python | docker/dataset/stock_analysis/run.py | jojees/operations | bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b | [
"MIT"
] | null | null | null | docker/dataset/stock_analysis/run.py | jojees/operations | bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b | [
"MIT"
] | 2 | 2019-09-22T11:24:19.000Z | 2019-09-22T11:38:49.000Z | docker/dataset/stock_analysis/run.py | jojees/operations | bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b | [
"MIT"
] | null | null | null | """Application entry point."""
from webapp import init_app
app = init_app()
# Using a development configuration
app.config.from_object('config.DevConfig')
# print(app.config)
if __name__ == "__main__":
app.run(host="0.0.0.0", debug=False) | 22.272727 | 42 | 0.722449 |
e585fd72caa5f846d1fe6076b952b19c250c6439 | 19,169 | py | Python | utils/yolo_utils.py | Dishoungh/martrec | 74d0cffa3c046509017e1fd121a474ee5b50a194 | [
"MIT"
] | null | null | null | utils/yolo_utils.py | Dishoungh/martrec | 74d0cffa3c046509017e1fd121a474ee5b50a194 | [
"MIT"
] | 1 | 2021-01-28T16:57:41.000Z | 2021-01-28T18:13:34.000Z | utils/yolo_utils.py | Dishoungh/martrec | 74d0cffa3c046509017e1fd121a474ee5b50a194 | [
"MIT"
] | null | null | null | import numpy as np
import cv2 as cv
import time
import os
import sys
import multiprocessing
| 42.787946 | 194 | 0.440816 |
e5862640078cc1b43e3103a6081579e3c5f73b50 | 1,386 | py | Python | collectDataFromNet/postTest.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | collectDataFromNet/postTest.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | collectDataFromNet/postTest.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import requests
if __name__ == '__main__':
auth_test() | 30.130435 | 94 | 0.647186 |
e5882538b7bda731c247750333cac651bac62825 | 775 | py | Python | python_pyxel/pyxel1.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | python_pyxel/pyxel1.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | python_pyxel/pyxel1.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | from turtle import width
import pyxel
from random import randint
App() | 23.484848 | 76 | 0.575484 |
e589291903c062b835adf5adc75c3f7669bcca6a | 723 | py | Python | dataset.py | chengsen/Pytorch_model_train_template | 7da63210ac4015df74baef0205776abe9dc2b5d8 | [
"MIT"
] | null | null | null | dataset.py | chengsen/Pytorch_model_train_template | 7da63210ac4015df74baef0205776abe9dc2b5d8 | [
"MIT"
] | null | null | null | dataset.py | chengsen/Pytorch_model_train_template | 7da63210ac4015df74baef0205776abe9dc2b5d8 | [
"MIT"
] | null | null | null | from torch.utils.data import DataLoader, Dataset
__build__ = 2018
__author__ = "singsam_jam@126.com"
| 25.821429 | 121 | 0.672199 |
e5893301e5d8b6496d1b088428d496d181d86dbc | 2,386 | py | Python | get_apis.py | Pemacope/Assessment_3 | 37591a8c2245b0d64dcb1b75326a7a82de45480f | [
"Unlicense"
] | null | null | null | get_apis.py | Pemacope/Assessment_3 | 37591a8c2245b0d64dcb1b75326a7a82de45480f | [
"Unlicense"
] | null | null | null | get_apis.py | Pemacope/Assessment_3 | 37591a8c2245b0d64dcb1b75326a7a82de45480f | [
"Unlicense"
] | null | null | null | from uk_covid19 import Cov19API
import geocoder
import logging
import requests
import json
logging.basicConfig(filename = "sys.log", encoding = 'utf-8')
#get_location function
def get_location():
"""This function gets the location of the user"""
current_location_data = geocoder.ip('me')
retu... | 28.404762 | 74 | 0.602263 |
e58b7e482ceb4804189a6da6cf34ef3305149a16 | 81 | py | Python | tests/unit/system_status/formatters/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | 2 | 2016-10-06T21:19:32.000Z | 2016-10-06T21:58:04.000Z | tests/unit/system_status/formatters/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | 392 | 2016-10-06T17:13:30.000Z | 2021-01-15T04:15:38.000Z | tests/unit/system_status/formatters/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Unit Test: orchard.system_status.formatters
"""
| 13.5 | 47 | 0.592593 |
e58ccf5e4c1a6de4e6e01e0244878e63b72d84c5 | 5,522 | py | Python | benchmark/how_lineage_benchmark.py | ZhuofanXie/DataTracer | 718f58ca87f297e7541c910a53ca8dde8ed7b66e | [
"MIT"
] | null | null | null | benchmark/how_lineage_benchmark.py | ZhuofanXie/DataTracer | 718f58ca87f297e7541c910a53ca8dde8ed7b66e | [
"MIT"
] | null | null | null | benchmark/how_lineage_benchmark.py | ZhuofanXie/DataTracer | 718f58ca87f297e7541c910a53ca8dde8ed7b66e | [
"MIT"
] | null | null | null | import time
from time import time
import dask
import pandas as pd
from dask.diagnostics import ProgressBar
import datatracer
def benchmark_how_lineage(data_dir, dataset_name=None, solver="datatracer.how_lineage.basic"):
"""Benchmark the how lineage solver.
This uses leave-one-out validation and evalu... | 33.877301 | 121 | 0.641434 |
e58deea7e4ceca8f46170fba5c491445e89261b9 | 4,606 | py | Python | pysnmp/H323-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/H323-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/H323-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module H323-TRAP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H323-TRAP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:07:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 139.575758 | 559 | 0.745766 |
e58f4679796a04818a079751cf89d2d05f6670ee | 2,132 | py | Python | admin.py | dikshith/allcode | b5563f9d9f1839c50396a2d4de70aac5bceb318f | [
"MIT"
] | null | null | null | admin.py | dikshith/allcode | b5563f9d9f1839c50396a2d4de70aac5bceb318f | [
"MIT"
] | null | null | null | admin.py | dikshith/allcode | b5563f9d9f1839c50396a2d4de70aac5bceb318f | [
"MIT"
] | null | null | null | # save this as app.py
from __main__ import app, ALLOWED_EXTENSIONS, UPLOAD_FOLDER
from flask import Flask, request, jsonify, abort, render_template, Flask, flash, redirect, url_for
from werkzeug.utils import secure_filename
import os
import io
import csv
from models import *
| 37.403509 | 344 | 0.615385 |
e58f86674bdf77a8b5f16bc946bf19c653623803 | 2,057 | py | Python | BSSN_SF/BSSN_ID_function_string.py | kazewong/nrpytutorial | cc511325f37f01284b2b83584beb2a452556b3fb | [
"BSD-2-Clause"
] | null | null | null | BSSN_SF/BSSN_ID_function_string.py | kazewong/nrpytutorial | cc511325f37f01284b2b83584beb2a452556b3fb | [
"BSD-2-Clause"
] | null | null | null | BSSN_SF/BSSN_ID_function_string.py | kazewong/nrpytutorial | cc511325f37f01284b2b83584beb2a452556b3fb | [
"BSD-2-Clause"
] | null | null | null | # This module sets up an initial data function meant to
# be called in a pointwise manner at all gridpoints.
# Author: Zachariah B. Etienne
# zachetie **at** gmail **dot* com
from outputC import *
| 55.594595 | 115 | 0.500243 |
e5919a61e375fbb9499ebd4f58ee76df900f51b5 | 8,163 | py | Python | CollectData/instagram_downloader_public.py | erik1110/face-transformation | e9afab85340522c8e19d73b08cedced187d8ada0 | [
"MIT"
] | 1 | 2020-10-04T07:39:50.000Z | 2020-10-04T07:39:50.000Z | CollectData/instagram_downloader_public.py | erik1110/face-transformation | e9afab85340522c8e19d73b08cedced187d8ada0 | [
"MIT"
] | null | null | null | CollectData/instagram_downloader_public.py | erik1110/face-transformation | e9afab85340522c8e19d73b08cedced187d8ada0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding:utf-8
"""
Instagram Downloader
"""
import os
import logging
import time
import requests
from datetime import datetime
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from bs4 i... | 32.521912 | 111 | 0.565356 |
e5955e9b54c057b715c9c61eeca8482e6b1cbc74 | 474 | py | Python | src/entrypoint.py | nastjamakh/home-credit-risk | 610d5cd4ddfed4298b4119ca1a5d73609a339e6a | [
"MIT"
] | null | null | null | src/entrypoint.py | nastjamakh/home-credit-risk | 610d5cd4ddfed4298b4119ca1a5d73609a339e6a | [
"MIT"
] | null | null | null | src/entrypoint.py | nastjamakh/home-credit-risk | 610d5cd4ddfed4298b4119ca1a5d73609a339e6a | [
"MIT"
] | null | null | null | """CLI interface."""
import fire
from train import TrainingPipeline
from data.load import FileDataLoader
from modelling.estimator import HeuristicEstimator
def cli() -> None:
"""Function to start cli."""
fire.Fire(Entrypoint)
if __name__ == "__main__":
cli()
| 18.96 | 50 | 0.672996 |
e59674284af4fef611fde876735095fbdeedb812 | 538 | py | Python | Working folder/refactored/Player_Ability.py | rschnek/SpaceShooterRemix | 7e667183e770679d593f46b119780ad72f4e3135 | [
"MIT"
] | null | null | null | Working folder/refactored/Player_Ability.py | rschnek/SpaceShooterRemix | 7e667183e770679d593f46b119780ad72f4e3135 | [
"MIT"
] | null | null | null | Working folder/refactored/Player_Ability.py | rschnek/SpaceShooterRemix | 7e667183e770679d593f46b119780ad72f4e3135 | [
"MIT"
] | null | null | null | import pygame
from os import path
import constants as con
| 24.454545 | 74 | 0.620818 |
e59820d95011ac7776cfe69371f262bf5dfa9d62 | 3,475 | py | Python | src/preview_item.py | viraelin/yame | 2cd2bfa6143c3578ecede602dd1c05236122c1cf | [
"MIT"
] | null | null | null | src/preview_item.py | viraelin/yame | 2cd2bfa6143c3578ecede602dd1c05236122c1cf | [
"MIT"
] | null | null | null | src/preview_item.py | viraelin/yame | 2cd2bfa6143c3578ecede602dd1c05236122c1cf | [
"MIT"
] | null | null | null | # Copyright (C) 2022 viraelin
# License: MIT
from PyQt6.QtCore import *
from PyQt6.QtWidgets import *
from PyQt6.QtGui import *
import system
from layer_type_menu import LayerType
| 29.201681 | 98 | 0.61295 |
e59b01a27430e94ec873e872b409079f3cbd1265 | 781 | py | Python | rznotifier/migrations/0004_auto_20160619_1004.py | rskokan/robozebra | 907ef76b00bef7208078a6ec08260212b2f9aa20 | [
"Apache-2.0"
] | null | null | null | rznotifier/migrations/0004_auto_20160619_1004.py | rskokan/robozebra | 907ef76b00bef7208078a6ec08260212b2f9aa20 | [
"Apache-2.0"
] | null | null | null | rznotifier/migrations/0004_auto_20160619_1004.py | rskokan/robozebra | 907ef76b00bef7208078a6ec08260212b2f9aa20 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-19 08:04
from __future__ import unicode_literals
from django.db import migrations, models
| 25.193548 | 61 | 0.582586 |
e59c0f14387bcc428f3ef596243e548882b04d5f | 54 | py | Python | spotifymoods/__init__.py | ammar-oker/spotifymoods | b5f24e48cc6f17fdbf42001e3e5ec00606b07f5c | [
"MIT"
] | null | null | null | spotifymoods/__init__.py | ammar-oker/spotifymoods | b5f24e48cc6f17fdbf42001e3e5ec00606b07f5c | [
"MIT"
] | null | null | null | spotifymoods/__init__.py | ammar-oker/spotifymoods | b5f24e48cc6f17fdbf42001e3e5ec00606b07f5c | [
"MIT"
] | null | null | null | from .train import train
from .predict import predict
| 18 | 28 | 0.814815 |
e59e35b470fb03223bde0bdc8a8066d61bc5a26b | 1,522 | py | Python | snippets/python/pipe_functional_programming/pipe_example.py | jerabaul29/config_scripts_snippets | c192f50c7cf90088862fd1f4d5678e0936cc375c | [
"MIT"
] | null | null | null | snippets/python/pipe_functional_programming/pipe_example.py | jerabaul29/config_scripts_snippets | c192f50c7cf90088862fd1f4d5678e0936cc375c | [
"MIT"
] | 6 | 2021-10-12T12:27:27.000Z | 2022-03-11T19:45:35.000Z | snippets/python/pipe_functional_programming/pipe_example.py | jerabaul29/config_scripts_snippets | c192f50c7cf90088862fd1f4d5678e0936cc375c | [
"MIT"
] | null | null | null | from pipe import Pipe
from pipe import select as pmap
from pipe import where as filter
from pipe import take
import functools
from icecream import ic
ic.configureOutput(prefix="", outputFunction=print)
"""
For my part, I like to stick to the usual functional programming terminology:
take
map
filter
reduce
"""
# ... | 21.742857 | 85 | 0.631406 |
e59fc847dbc2cbfebb58016de59804f87b3a6672 | 686 | py | Python | Code/Data_Generator/dgenerator_instances_json.py | AymanABDELHAMID/OD_MTO_DARP | a942faabfa6c1a24d9046d74e56a48bd0d2a6d48 | [
"MIT"
] | 1 | 2020-06-19T18:38:31.000Z | 2020-06-19T18:38:31.000Z | Code/Data_Generator/dgenerator_instances_json.py | AymanABDELHAMID/OD_MTO_DARP | a942faabfa6c1a24d9046d74e56a48bd0d2a6d48 | [
"MIT"
] | null | null | null | Code/Data_Generator/dgenerator_instances_json.py | AymanABDELHAMID/OD_MTO_DARP | a942faabfa6c1a24d9046d74e56a48bd0d2a6d48 | [
"MIT"
] | null | null | null | """
Mai 2020 - Ayman Mahmoud
--------------------------------------------
This code - as the title tells will read the data in
the instances .txt files and generate .json files
along the way the data will be modified to input missing data from the instances given
"""
import re
second_part = False
costs = []
with op... | 26.384615 | 86 | 0.590379 |
e5a1307319cf2f807f6042d57a0f8ef329aff915 | 2,322 | py | Python | Modulos/cfirm.py | ovpn-web/lundy | 15f6743995aa5916ba5957dd284e695d1dcc83d5 | [
"CC0-1.0"
] | 1 | 2020-07-14T16:48:06.000Z | 2020-07-14T16:48:06.000Z | Modulos/cfirm.py | ovpn-web/lundy | 15f6743995aa5916ba5957dd284e695d1dcc83d5 | [
"CC0-1.0"
] | null | null | null | Modulos/cfirm.py | ovpn-web/lundy | 15f6743995aa5916ba5957dd284e695d1dcc83d5 | [
"CC0-1.0"
] | 1 | 2021-12-27T00:38:34.000Z | 2021-12-27T00:38:34.000Z | #!/usr/bin/env python
# encoding: utf-8
import smtplib,socket,sys
from os import system
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from datetime import datetime
_NOME_ = sys.argv[1]
_IP_ = sys.argv[2]
_ADRESS_OS_ = '/etc/issue.net'
OS = open(_ADRESS_OS_).readlines()
for SYS in O... | 40.736842 | 108 | 0.586994 |
e5a13e5250764c306a86cb714394aa76f09f4016 | 673 | py | Python | pollsite/poll/migrations/0009_remove_meeting_meeting_date_start_and_more.py | RduMarais/django-polling-site | d194e906cd099531257cf0537b1664295f593c05 | [
"MIT"
] | 2 | 2022-01-11T16:46:36.000Z | 2022-01-11T16:46:51.000Z | pollsite/poll/migrations/0009_remove_meeting_meeting_date_start_and_more.py | RduMarais/django-polling-site | d194e906cd099531257cf0537b1664295f593c05 | [
"MIT"
] | null | null | null | pollsite/poll/migrations/0009_remove_meeting_meeting_date_start_and_more.py | RduMarais/django-polling-site | d194e906cd099531257cf0537b1664295f593c05 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-06 16:57
from django.db import migrations, models
| 24.925926 | 89 | 0.594354 |
e5a27f53e59e6bdb43b79f5ce55cc60189760583 | 5,790 | py | Python | lcrequest.py | nigelboid/lc-investor | 65f5de5c7a4c082fa3e090e4479a78d7432edfdb | [
"MIT"
] | 2 | 2015-10-13T02:54:49.000Z | 2015-11-12T21:59:34.000Z | lcrequest.py | nigelboid/lc-investor | 65f5de5c7a4c082fa3e090e4479a78d7432edfdb | [
"MIT"
] | null | null | null | lcrequest.py | nigelboid/lc-investor | 65f5de5c7a4c082fa3e090e4479a78d7432edfdb | [
"MIT"
] | null | null | null | #
# Import all necessary libraries
#
import requests
#
# Define some global constants
#
VERSION= '1.0.0'
# API request building blocks
API_VERSION= 'v1'
REQUEST_ROOT= 'https://api.lendingclub.com/api/investor/{}/'.format(API_VERSION)
REQUEST_LOANS= 'loans/listing?showAll=true'
REQUEST_ACCOUNTS= 'accounts/{}/'
REQU... | 35.304878 | 215 | 0.721934 |
e5a3174fd3725503784105163c310d47e1598ce0 | 8,317 | py | Python | exegis/analysis.py | gruel/AphorismToTEI | 6d33a353c4b4f159af62e061618ff03a1f09fb7f | [
"BSD-3-Clause"
] | null | null | null | exegis/analysis.py | gruel/AphorismToTEI | 6d33a353c4b4f159af62e061618ff03a1f09fb7f | [
"BSD-3-Clause"
] | null | null | null | exegis/analysis.py | gruel/AphorismToTEI | 6d33a353c4b4f159af62e061618ff03a1f09fb7f | [
"BSD-3-Clause"
] | null | null | null | """Module which contains the function to analyse aphorism and commentaries line
There are two functions which are treating the references ``[W1 W2]``
and the footnotes *XXX*.
The ``references`` function has to be used before the ``footnotes``.
:Authors: Jonathan Boyle, Nicolas Gruel <nicolas.gruel@manchester.ac.uk>
... | 35.391489 | 79 | 0.597451 |
e5a35747d0cd68dc4fa0ce60853f7e9f138b0cb3 | 21,201 | py | Python | ThesisPlot.py | dtiarks/ThesisPlot | b9eaa5f2b2c472667cb17b2ba5a0471c741f0abe | [
"MIT"
] | 1 | 2018-12-27T01:35:40.000Z | 2018-12-27T01:35:40.000Z | ThesisPlot.py | dtiarks/ThesisPlot | b9eaa5f2b2c472667cb17b2ba5a0471c741f0abe | [
"MIT"
] | null | null | null | ThesisPlot.py | dtiarks/ThesisPlot | b9eaa5f2b2c472667cb17b2ba5a0471c741f0abe | [
"MIT"
] | null | null | null | import locale
import numpy as np
import io
import json
import pandas as pd
import ast
import os
# Set to German locale to get comma decimal separater
locale.setlocale(locale.LC_NUMERIC, 'deu_deu')
#locale.setlocale(locale.LC_NUMERIC, 'de_DE.utf8')
import matplotlib as mpl
mpl.use('pgf')
preamble = [
# use utf8 fon... | 52.738806 | 274 | 0.466582 |
e5a7b8b0481012f5ade5147dd6e2ed6513934354 | 1,695 | py | Python | update_damage_sheet.py | faith-grins/RS-RS-DamageRankings | 667387bb8971ea57d8ff669efb62ea7c2ef61f8e | [
"Apache-2.0"
] | null | null | null | update_damage_sheet.py | faith-grins/RS-RS-DamageRankings | 667387bb8971ea57d8ff669efb62ea7c2ef61f8e | [
"Apache-2.0"
] | null | null | null | update_damage_sheet.py | faith-grins/RS-RS-DamageRankings | 667387bb8971ea57d8ff669efb62ea7c2ef61f8e | [
"Apache-2.0"
] | null | null | null | import gspread
# If modifying these scopes, delete the file token.json.
SCOPES = ['https://www.googleapis.com/auth/spreadsheets']
CLIENT_SECRET_FILE = '.secrets/PythonSheetsApiSecret.json'
CREDENTIALS_TOKEN = '.secrets/token.json'
# The ID and range of a sample spreadsheet.
SPREADSHEET_ID = '1oc5TC_nGzLXk4sP3zhlyFeYt... | 30.818182 | 118 | 0.756342 |
e5a938e5e2ec369977b37c0a78e456d48e469534 | 350 | py | Python | Intermediate/json-data.py | abhishek8075374519/python-for-beginners | a3c0334751001c6468819af7c8ae7ec0993a48c3 | [
"MIT"
] | null | null | null | Intermediate/json-data.py | abhishek8075374519/python-for-beginners | a3c0334751001c6468819af7c8ae7ec0993a48c3 | [
"MIT"
] | null | null | null | Intermediate/json-data.py | abhishek8075374519/python-for-beginners | a3c0334751001c6468819af7c8ae7ec0993a48c3 | [
"MIT"
] | null | null | null | import json as j
# CONVERTING TO JSON
data = {
"Name": "John Doe",
"Age": "22"
}
y = j.dumps(data)
print(y)
# A LIST IS CONVERTED INTO JSON EQUIVALENT ARRAY
data = [1, 2, 3, 4, 5]
i = j.dumps(data)
print(i)
# READING FROM JSON
x = '{ "name":"John", "age":30, "city":"New York"}'
y = j.loads(x... | 16.666667 | 52 | 0.554286 |
e5aa8f799f1cb16c92d8d94d9ce091e420f85e52 | 958 | py | Python | programdom/problems/urls.py | vCra/Programdom | 23d734409102917734e67d233768b494904a5cef | [
"MIT"
] | 1 | 2021-06-14T01:08:55.000Z | 2021-06-14T01:08:55.000Z | programdom/problems/urls.py | vCra/Programdom | 23d734409102917734e67d233768b494904a5cef | [
"MIT"
] | 10 | 2019-01-28T16:03:12.000Z | 2019-01-28T16:09:48.000Z | programdom/problems/urls.py | vCra/Programdom | 23d734409102917734e67d233768b494904a5cef | [
"MIT"
] | null | null | null | from django.urls import path
from programdom.problems.views import ProblemStudentView, ProblemListView, ProblemDetailView, ProblemDeleteView, \
ProblemCreateView, ProblemTestcaseCreateView, ProblemTestCaseUpdateView, ProblemTestCaseDeleteView
urlpatterns = [
path("", ProblemListView.as_view(), name="problem_l... | 50.421053 | 114 | 0.746347 |
e5ab3b077876292916d291b072dc3571dc23411f | 3,023 | py | Python | Diff-TVT.py | vipersnews/py-tvt-nbn | 02164752db44967c33001f0c738f69feb1a2b283 | [
"Unlicense"
] | null | null | null | Diff-TVT.py | vipersnews/py-tvt-nbn | 02164752db44967c33001f0c738f69feb1a2b283 | [
"Unlicense"
] | null | null | null | Diff-TVT.py | vipersnews/py-tvt-nbn | 02164752db44967c33001f0c738f69feb1a2b283 | [
"Unlicense"
] | null | null | null | from getpass import getpass
import netmiko
import re
import difflib
#This will be a list of the devices we want to SSH to
ips = []
#Pull the IPs.txt is a list of the IPs we want to connect to
#This function pulls those IPs out of the txt file and puts them into a list
get_ips("input/IPs.txt")
print('#' * 50)
print('... | 32.159574 | 120 | 0.68872 |
e5ac1349e31fac2f5f5e8ce25f69ca68f7e752f0 | 28 | py | Python | pyiArduinoI2Cmotor/__init__.py | tremaru/pyiArduinoI2Cmotor | 5e83c4ab1beaf6041663f4399028a5d3f5fa3f56 | [
"MIT"
] | null | null | null | pyiArduinoI2Cmotor/__init__.py | tremaru/pyiArduinoI2Cmotor | 5e83c4ab1beaf6041663f4399028a5d3f5fa3f56 | [
"MIT"
] | null | null | null | pyiArduinoI2Cmotor/__init__.py | tremaru/pyiArduinoI2Cmotor | 5e83c4ab1beaf6041663f4399028a5d3f5fa3f56 | [
"MIT"
] | null | null | null | name = "pyiArduinoI2Cmotor"
| 14 | 27 | 0.785714 |
e5ac46d95f62c31e2cdcf0a830026f35e4bd572a | 620 | py | Python | code/python/echomesh/output/Registry.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 30 | 2015-02-18T14:07:00.000Z | 2021-12-11T15:19:01.000Z | code/python/echomesh/output/Registry.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 16 | 2015-01-01T23:17:24.000Z | 2015-04-18T23:49:27.000Z | code/python/echomesh/output/Registry.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 31 | 2015-03-11T20:04:07.000Z | 2020-11-02T13:56:59.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.util.registry.Module import register
from echomesh.output.OutputCache import OutputCache
REGISTRY = register(
__name__,
'Bidirectional',
'Offset',
'Output',
'Map',
'Spi',
'Test',
'Visualizer',
)
OUTPUT_CA... | 22.142857 | 82 | 0.73871 |
e5ad2e5b2f0edde8b2e2a850a9a192abd378fd9f | 1,221 | py | Python | pihkaparser.py | K4ldun/slack-starterbot | e0c1468df3b343715cf88f66b5cdb959daa25c0e | [
"MIT"
] | null | null | null | pihkaparser.py | K4ldun/slack-starterbot | e0c1468df3b343715cf88f66b5cdb959daa25c0e | [
"MIT"
] | null | null | null | pihkaparser.py | K4ldun/slack-starterbot | e0c1468df3b343715cf88f66b5cdb959daa25c0e | [
"MIT"
] | null | null | null | from selenium import webdriver #Browser control with options/waits/exceptions.
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import json
if __name__ == '__main__':
print asString()
| 23.480769 | 79 | 0.692056 |
e5ae60de2c631682842c6e19a0b866b268ecc7f0 | 203 | py | Python | learning_python/ex19.py | wcsten/Python-exercises- | cd025b37fa37d847d8ce4f3aff4be6f7b0b5d487 | [
"MIT"
] | null | null | null | learning_python/ex19.py | wcsten/Python-exercises- | cd025b37fa37d847d8ce4f3aff4be6f7b0b5d487 | [
"MIT"
] | null | null | null | learning_python/ex19.py | wcsten/Python-exercises- | cd025b37fa37d847d8ce4f3aff4be6f7b0b5d487 | [
"MIT"
] | null | null | null | # Ler dois valores (considere que no sero lidos valores iguais) e escrever o maior deles.
n1 = float(input('Numero 1:'))
n2 = float(input('Numero 2: '))
if n1 > n2:
print(n1)
else:
print(n2)
| 20.3 | 91 | 0.660099 |