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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6cb0fa8a1a4abfdc534c16273c7b975a0573046 | 2,968 | py | Python | src/cihpc/common/utils/progress.py | janhybs/ci-hpi | 293740c7af62ecada5744ff663266de2e3d37445 | [
"MIT"
] | 1 | 2020-01-09T13:00:18.000Z | 2020-01-09T13:00:18.000Z | src/cihpc/common/utils/progress.py | janhybs/ci-hpi | 293740c7af62ecada5744ff663266de2e3d37445 | [
"MIT"
] | null | null | null | src/cihpc/common/utils/progress.py | janhybs/ci-hpi | 293740c7af62ecada5744ff663266de2e3d37445 | [
"MIT"
] | 2 | 2018-08-12T01:13:28.000Z | 2018-08-13T14:37:28.000Z | #!/bin/python3
# author: Jan Hybs
import sys
import time
basic_format = '{desc} {n:02d}/{total:02d} [{elapsed}/{remaining}] [{item_duration}/item]'
reverse_format = '{n:02d}/{total:02d} {desc} [{elapsed}/{remaining}] [{item_duration}/item]'
| 26.265487 | 121 | 0.492925 |
b6cc7f99fc4e29918f1da13bf49a17e58ad30b28 | 134 | py | Python | supermario/supermario 1118/mygame.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | supermario/supermario 1118/mygame.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | supermario/supermario 1118/mygame.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | import game_framework
import pico2d
import start_state
pico2d.open_canvas()
game_framework.run(start_state)
pico2d.close_canvas()
| 13.4 | 31 | 0.835821 |
b6ce4050e78600daf4ee55e409415f73487c1342 | 1,364 | py | Python | leetcode/coding/editor.py | chishui/terminal-leetcode | 3fee04a8827d6b45393ff7c98a3b9a8318364b9e | [
"MIT"
] | 254 | 2016-07-23T04:39:20.000Z | 2022-03-28T03:06:21.000Z | leetcode/coding/editor.py | chishui/terminal-leetcode | 3fee04a8827d6b45393ff7c98a3b9a8318364b9e | [
"MIT"
] | 37 | 2016-07-25T03:20:58.000Z | 2022-02-03T19:47:31.000Z | leetcode/coding/editor.py | chishui/terminal-leetcode | 3fee04a8827d6b45393ff7c98a3b9a8318364b9e | [
"MIT"
] | 41 | 2016-07-23T04:39:24.000Z | 2020-12-27T09:22:09.000Z | import os
import subprocess
from pathlib import Path
from ..views.viewhelper import delay_refresh_detail
from ..helper.config import config
| 29.652174 | 79 | 0.631232 |
b6d0f398f88127709e685d4f3b844ed8ccdd2a61 | 238 | py | Python | src/mem/__init__.py | LeeChunHei/NXP-MCUBootUtility | b8880291a9ef5ce46c0624a1cff831f8c93c4861 | [
"Apache-2.0"
] | 1 | 2019-07-02T02:31:41.000Z | 2019-07-02T02:31:41.000Z | src/mem/__init__.py | LeeChunHei/NXP-MCUBootUtility | b8880291a9ef5ce46c0624a1cff831f8c93c4861 | [
"Apache-2.0"
] | 1 | 2019-12-06T02:08:56.000Z | 2019-12-06T02:09:24.000Z | src/mem/__init__.py | fanqyyy/NXP-MCUBootUtility | 8275cec74a64d27818153223e5c8a39e39834ae5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import RTxxx_memcore
import RTxxx_memdef
import RTyyyy_memcore
import RTyyyy_memdef
import memcore
import memdef
__all__ = ["RTxxx_memcore", "RTxxx_memdef", "RTyyyy_memcore", "RTyyyy_memdef", "memcore", "memdef"]
| 19.833333 | 99 | 0.789916 |
b6d2b9e2ee63abb49b22b7ce14b1a34dbccce2ed | 934 | py | Python | website/scripts/update_product_list.py | zckoh/ecommerce-fullstack | c4cecea3ebaec900da484954d01dcbc2cba325c9 | [
"Apache-2.0"
] | 1 | 2021-12-14T22:24:20.000Z | 2021-12-14T22:24:20.000Z | website/scripts/update_product_list.py | zckoh/ecommerce-fullstack | c4cecea3ebaec900da484954d01dcbc2cba325c9 | [
"Apache-2.0"
] | 11 | 2021-03-30T13:59:29.000Z | 2022-03-12T00:48:40.000Z | website/scripts/update_product_list.py | zckoh/ecommerce-fullstack | c4cecea3ebaec900da484954d01dcbc2cba325c9 | [
"Apache-2.0"
] | null | null | null | import json
import sys
import os
from algoliasearch.search_client import SearchClient
# This script updates the product list in products/data/product_list.json
# This is done by downloading the data from algolia index and replacing the product_list.json with the new content.
if __name__ == '__main__':
ma... | 30.129032 | 116 | 0.683084 |
b6d401b928be0efe4943532e5f75e05cc978ab98 | 3,867 | py | Python | pycftboot/sdpb/sdpb_docker.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | pycftboot/sdpb/sdpb_docker.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | pycftboot/sdpb/sdpb_docker.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | import os
from subprocess import CompletedProcess
import docker
from .sdpb import Sdpb
| 35.805556 | 263 | 0.620378 |
b6d40e6e1a0a1e5c3c359434a8bebc1c0d1fdcb1 | 560 | py | Python | setup.py | nad2000/swagger_to_uml | 3660ad140ef96d6e1cb9cee967bde275100a0ada | [
"MIT"
] | 190 | 2017-11-23T17:57:41.000Z | 2022-03-14T15:28:31.000Z | setup.py | nad2000/swagger_to_uml | 3660ad140ef96d6e1cb9cee967bde275100a0ada | [
"MIT"
] | 18 | 2017-12-18T18:53:37.000Z | 2021-10-15T20:31:58.000Z | setup.py | nad2000/swagger_to_uml | 3660ad140ef96d6e1cb9cee967bde275100a0ada | [
"MIT"
] | 62 | 2017-12-18T16:31:45.000Z | 2022-02-14T21:56:23.000Z | from setuptools import setup, find_packages
requires = [
'PyYAML==5.1'
]
setup(
name='swagger_to_uml',
version='0.1',
description='swagger_to_uml',
classifiers=[
"Programming Language :: Python"
],
author='Niels Lohmann',
author_email='mail@nlohmann.me',
license='MIT',
... | 21.538462 | 43 | 0.6625 |
b6d416e8ad70376db90f851feca4168a9d94c1c2 | 294 | py | Python | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.unsigned_int.schema_instance.nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd.nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1 import NistschemaSvIvAtomicUnsignedIntMinExclusive1
__all__ = [
"NistschemaSvIvAtomicUnsignedIntMinExclusive1",
]
| 49 | 226 | 0.908163 |
b6d47188f56985f0d16f2de995a3f0ac8ec57791 | 643 | py | Python | merge_CDR3.py | maxchang/IMGT-subsets | e1731edd46c2d17e08efd73f3769a6c2fd6945ee | [
"MIT"
] | null | null | null | merge_CDR3.py | maxchang/IMGT-subsets | e1731edd46c2d17e08efd73f3769a6c2fd6945ee | [
"MIT"
] | null | null | null | merge_CDR3.py | maxchang/IMGT-subsets | e1731edd46c2d17e08efd73f3769a6c2fd6945ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import pandas
SUBSET_POSITION = -3
if __name__ == '__main__':
merge_CDR3_summaries(sys.argv[1:]) | 26.791667 | 90 | 0.702955 |
b6d5db98b5a1474fc8a0ed138b6c1dc0be7c174b | 3,119 | py | Python | HW4/Q6/Q6.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | HW4/Q6/Q6.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | HW4/Q6/Q6.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[13]:
#site https://www.geeksforgeeks.org/dijkstras-shortest-path-algorithm-greedy-algo-7/
# In[7]:
# Python program for Dijkstra's single
# source shortest path algorithm. The program is
# for adjacency matrix representation of the graph
# In[10]:
Q4b = Graph(8)
... | 23.276119 | 105 | 0.571016 |
b6d5ef1023c72ca108dc090927e00b9e884f6e93 | 19,470 | py | Python | docs/examples/viewobspy/serveobspy.py | crotwell/seisplotjs | 20e55ecc36bb2340ae67585a3369fea296725b3e | [
"MIT"
] | 26 | 2018-02-08T08:45:55.000Z | 2022-02-17T22:19:49.000Z | docs/examples/viewobspy/serveobspy.py | crotwell/seisplotjs | 20e55ecc36bb2340ae67585a3369fea296725b3e | [
"MIT"
] | 2 | 2017-11-09T19:26:00.000Z | 2021-06-10T13:55:51.000Z | docs/examples/viewobspy/serveobspy.py | crotwell/seisplotjs | 20e55ecc36bb2340ae67585a3369fea296725b3e | [
"MIT"
] | 3 | 2018-09-09T02:51:16.000Z | 2019-10-18T21:24:39.000Z | #!/usr/bin/env python
import asyncio
import io
import http.server
import json
import numpy
import os
import queue
import re
import sys
import threading
import websockets
from obspy.io.quakeml.core import Pickler
from obspy.core.stream import Stream
from obspy.core.utcdatetime import UTCDateTime
from obspy.core.event.... | 38.478261 | 384 | 0.557576 |
b6d5f7d52c3ae0ba8e0e0bccd6828e7cc95ac77d | 1,330 | py | Python | fluidpythran/for_test_init.py | fluiddyn/fluidpythran | e34e9886680e6b8e365d24a77fcb66b67e554043 | [
"CECILL-B"
] | 1 | 2018-10-31T09:30:15.000Z | 2018-10-31T09:30:15.000Z | fluidpythran/for_test_init.py | fluiddyn/fluidpythran | e34e9886680e6b8e365d24a77fcb66b67e554043 | [
"CECILL-B"
] | null | null | null | fluidpythran/for_test_init.py | fluiddyn/fluidpythran | e34e9886680e6b8e365d24a77fcb66b67e554043 | [
"CECILL-B"
] | null | null | null | import numpy as np
# pythran import numpy as np
from fluidpythran import FluidPythran, boost, include, Array, Union
# pythran def func(int, float)
A = Union[int, Array[int, "1d"]]
fp = FluidPythran()
if __name__ == "__main__":
check_class()
| 16.419753 | 67 | 0.564662 |
b6d605cd6f63ff9b3d0595af45c7a4be3cdb68b5 | 5,101 | py | Python | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Created by "Thieu" at 00:16, 15/03/2022 ----------%
# Email: nguyenthieu2102@gmail.com %
# Github: https://github.com/thieu1995 % ... | 36.177305 | 132 | 0.464223 |
b6d76b134944d07734ccfafac9e235f37c951d35 | 1,313 | py | Python | tests/ext/identity/test_identity.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | tests/ext/identity/test_identity.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | tests/ext/identity/test_identity.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | from io import StringIO
from hypothesis import given, strategies
from intentionally_blank import api
| 37.514286 | 82 | 0.747906 |
b6d982858370343ba6bff413962419dacf19d81d | 9,188 | py | Python | oxe-api/test/resource/private/test_update_my_article.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | oxe-api/test/resource/private/test_update_my_article.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | oxe-api/test/resource/private/test_update_my_article.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | from test.BaseCase import BaseCase
import os
import base64
| 48.104712 | 120 | 0.591968 |
b6d9c90a5f7ae8c6c9881a3084c29a5b70f24c3a | 2,659 | py | Python | multimedia/gui/lvgl/lvgl_multiple_screens.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 485 | 2019-03-18T10:53:59.000Z | 2022-03-27T09:02:08.000Z | multimedia/gui/lvgl/lvgl_multiple_screens.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 110 | 2019-04-04T09:07:39.000Z | 2022-03-03T08:08:19.000Z | multimedia/gui/lvgl/lvgl_multiple_screens.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 379 | 2019-03-18T04:48:46.000Z | 2022-03-30T00:29:29.000Z | #this demo shows how to create multiple screens, load and unload them properly without causing memory leak
import lvgl as lv
import lvgl_helper as lv_h
import lcd
import time
from machine import Timer
from machine import I2C
from touch import Touch, TouchLow
import KPU as kpu
import gc
config_touchscreen_support = Tr... | 23.741071 | 128 | 0.666792 |
b6d9e74e11c76c18da277b15e5aba538d9f0cbc1 | 474 | py | Python | cm4/abstractclass/DatabaseManagerABC.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | cm4/abstractclass/DatabaseManagerABC.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | cm4/abstractclass/DatabaseManagerABC.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | import abc
| 18.230769 | 49 | 0.57384 |
b6dac074b63a033d6902961cd084c17a6f044e6b | 326 | py | Python | Anachebe_Ikechukwu/Phase 1/Python Basic 1/Day 3/Qtn_4.py | dreamchild7/python-challenge-solutions | 29e2ca780e86fc8a3e9d4def897c26bfa6d6493d | [
"MIT"
] | null | null | null | Anachebe_Ikechukwu/Phase 1/Python Basic 1/Day 3/Qtn_4.py | dreamchild7/python-challenge-solutions | 29e2ca780e86fc8a3e9d4def897c26bfa6d6493d | [
"MIT"
] | null | null | null | Anachebe_Ikechukwu/Phase 1/Python Basic 1/Day 3/Qtn_4.py | dreamchild7/python-challenge-solutions | 29e2ca780e86fc8a3e9d4def897c26bfa6d6493d | [
"MIT"
] | null | null | null | #4. Write a Python program to calculate number of days between two dates.
# Sample dates : (2014, 7, 2), (2014, 7, 11)
#Expected output : 9 days
#Tools: Datetime module, timedelta module
from datetime import date
date_1 = date(2020, 1, 24)
date_2 = date(2020, 6, 24)
days = date_2 - date_1
print(days... | 32.6 | 73 | 0.674847 |
b6db94e0097b3f92da067a04061bf7aa0aae8675 | 11,880 | py | Python | twitter follow_unfollow/balloon.py | giterdun345/Automating-Social-Media | 2dd35f91dd891909520f90dfec911140cd8f7368 | [
"MIT"
] | null | null | null | twitter follow_unfollow/balloon.py | giterdun345/Automating-Social-Media | 2dd35f91dd891909520f90dfec911140cd8f7368 | [
"MIT"
] | null | null | null | twitter follow_unfollow/balloon.py | giterdun345/Automating-Social-Media | 2dd35f91dd891909520f90dfec911140cd8f7368 | [
"MIT"
] | null | null | null | """
Mask R-CNN
Train on the toy Balloon dataset and implement color splash effect.
Copyright (c) 2018 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
------------------------------------------------------------"""
import os
import sys
import json
import ... | 37.009346 | 94 | 0.578872 |
b6dbc45e2a3f3da410a07c7d298c2382d8c190a7 | 7,846 | py | Python | squid/squid3-3.3.8.spaceify/debian/tests/test-squid.py | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/debian/tests/test-squid.py | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/debian/tests/test-squid.py | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# test-squid.py quality assurance test script
# Copyright (C) 2008-2013 Canonical Ltd.
# Author: Jamie Strandboge <jamie@canonical.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as pu... | 35.342342 | 110 | 0.635483 |
b6dc2d5c6b37c06411e4b2b686ddf633947cd5e9 | 409 | py | Python | db/folderName_to_CSV.py | JontyBurden/local-movies | f7df5156244d3b48ff5d5d906a84778a041e8e6a | [
"MIT"
] | null | null | null | db/folderName_to_CSV.py | JontyBurden/local-movies | f7df5156244d3b48ff5d5d906a84778a041e8e6a | [
"MIT"
] | null | null | null | db/folderName_to_CSV.py | JontyBurden/local-movies | f7df5156244d3b48ff5d5d906a84778a041e8e6a | [
"MIT"
] | null | null | null | import os, csv
path = 'F:\Movies-TV'
with open('C:\wsl\local-movies\db\movies.csv', 'w', newline='') as csvfile:
writer = csv.writer(csvfile)
for root,dirs, files in os.walk(path):
for folders in dirs:
if folders == "Subs" or folders == "Subtitles" or folders == "Other" or folders == "subtitles":
... | 34.083333 | 105 | 0.586797 |
b6dc336da62888edd5386714f6a8e59cf1cf1328 | 5,929 | py | Python | receiveSTA/rcv_kset_omit2.py | ilinastoilkovska/syncTA | 9224ef50d5ada4782d0a1d5723531ebe43149584 | [
"Apache-2.0"
] | 2 | 2021-01-05T11:45:48.000Z | 2021-04-06T12:59:38.000Z | receiveSTA/rcv_kset_omit2.py | ilinastoilkovska/syncTA | 9224ef50d5ada4782d0a1d5723531ebe43149584 | [
"Apache-2.0"
] | null | null | null | receiveSTA/rcv_kset_omit2.py | ilinastoilkovska/syncTA | 9224ef50d5ada4782d0a1d5723531ebe43149584 | [
"Apache-2.0"
] | null | null | null | # process local states
local = range(12)
# L states
L = {"x0" : [6], "x1" : [7], "x2" : [8],
"f0" : [9], "f1" : [10], "f2" : [11],
"v0" : [0, 3, 6, 9], "v1" : [1, 4, 7, 10], "v2" : [2, 5, 8, 11],
"corr0" : [0, 6], "corr1" : [1, 7], "corr2" : [2, 8]}
# receive variables
rcv_vars = ["nr0", "nr1", "nr2"]
#... | 47.432 | 144 | 0.512059 |
b6dc9f22280151da48c2987c070d2e6947fd962e | 100 | py | Python | notes/demos/nn.py | Clickity-Clack/iceberg | e0c7e4f29c238502cbea3b951d30616ba3eeacd0 | [
"MIT"
] | null | null | null | notes/demos/nn.py | Clickity-Clack/iceberg | e0c7e4f29c238502cbea3b951d30616ba3eeacd0 | [
"MIT"
] | null | null | null | notes/demos/nn.py | Clickity-Clack/iceberg | e0c7e4f29c238502cbea3b951d30616ba3eeacd0 | [
"MIT"
] | 1 | 2018-01-05T23:11:12.000Z | 2018-01-05T23:11:12.000Z | import gym
import numpy as np
import random
import tensorflow as tf
import matplotlib.pyplot as plt
| 16.666667 | 31 | 0.83 |
b6e1bc4b57d65c00d1e42ab7399391e3f4adbe4d | 1,609 | py | Python | labscript_utils/qtwidgets/outputbox.py | JQIamo/labscript-utils | e13c992622f6c5294068e808c59ad0f32dae14c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2020-05-12T17:26:06.000Z | 2020-07-03T20:11:38.000Z | labscript_utils/qtwidgets/outputbox.py | JQIamo/labscript-utils | e13c992622f6c5294068e808c59ad0f32dae14c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 40 | 2020-05-14T15:07:01.000Z | 2022-03-21T20:53:26.000Z | labscript_utils/qtwidgets/outputbox.py | JQIamo/labscript-utils | e13c992622f6c5294068e808c59ad0f32dae14c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 18 | 2020-05-31T03:14:46.000Z | 2022-02-25T15:24:03.000Z | #####################################################################
# #
# qtwidgets/outputbox.py #
# #
# Copyright 2013, Monash University ... | 47.323529 | 87 | 0.455562 |
b6e1e0454d8f1592ac64d81c2b922c0038769a98 | 12,490 | py | Python | metrics.py | ShiHuiwen-creat/MedT | e0c4a18ebee495a247a0b9dc65229f361756ff28 | [
"MIT"
] | null | null | null | metrics.py | ShiHuiwen-creat/MedT | e0c4a18ebee495a247a0b9dc65229f361756ff28 | [
"MIT"
] | null | null | null | metrics.py | ShiHuiwen-creat/MedT | e0c4a18ebee495a247a0b9dc65229f361756ff28 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.functional import cross_entropy
from torch.nn.modules.loss import _WeightedLoss
EPSILON = 1e-32
# Multi-Label Focal Loss
def classwise_iou(output, gt):
"""
Args:
output: torch.Tensor of shape (n_batch, n_class... | 33.756757 | 164 | 0.596317 |
b6e1f0993d71b4d86552c766b57772603e7abbab | 484 | py | Python | v3/scripts/testing/hackerrank/Staircase.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | null | null | null | v3/scripts/testing/hackerrank/Staircase.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | 1 | 2021-06-01T22:50:19.000Z | 2021-06-01T22:50:19.000Z | v3/scripts/testing/hackerrank/Staircase.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
n = int(input().strip())
level = 1
while level < n + 1:
# print treeSpaces() + treeParts() for level
print('{s}{t}'.format(s=treeSpaces(level), t=treeParts(level)))
level += 1
| 19.36 | 67 | 0.615702 |
b6e1f426d62a4fddb665d5d65095f691a5da2580 | 9,330 | py | Python | lib/buildTemplate.py | pnlbwh/Harmonization-Python | 3dc3c08de2865d3ca96c94ce89f2573d32ea15b2 | [
"CNRI-Python",
"Info-ZIP"
] | null | null | null | lib/buildTemplate.py | pnlbwh/Harmonization-Python | 3dc3c08de2865d3ca96c94ce89f2573d32ea15b2 | [
"CNRI-Python",
"Info-ZIP"
] | 1 | 2019-03-27T19:17:22.000Z | 2019-03-27T19:17:22.000Z | lib/buildTemplate.py | pnlbwh/Harmonization-Python | 3dc3c08de2865d3ca96c94ce89f2573d32ea15b2 | [
"CNRI-Python",
"Info-ZIP"
] | null | null | null | # ===============================================================================
# dMRIharmonization (2018) pipeline is written by-
#
# TASHRIF BILLAH
# Brigham and Women's Hospital/Harvard Medical School
# tbillah@bwh.harvard.edu, tashrifbillah@gmail.com
#
# ===========================================================... | 35.475285 | 114 | 0.599464 |
b6e53ea6a72678a21b9d2e3336270225aa772e0f | 3,553 | py | Python | quantecon/markov/utilities.py | Smit-create/QuantEcon.py | 5be42da065c198e84a468d5e0e38056168a6b0e3 | [
"BSD-3-Clause"
] | 1,462 | 2015-01-08T18:58:13.000Z | 2022-03-29T05:24:28.000Z | quantecon/markov/utilities.py | Smit-create/QuantEcon.py | 5be42da065c198e84a468d5e0e38056168a6b0e3 | [
"BSD-3-Clause"
] | 505 | 2015-01-06T08:52:16.000Z | 2022-03-31T13:52:58.000Z | quantecon/markov/utilities.py | Smit-create/QuantEcon.py | 5be42da065c198e84a468d5e0e38056168a6b0e3 | [
"BSD-3-Clause"
] | 1,987 | 2015-01-08T06:08:39.000Z | 2022-03-29T08:02:45.000Z | """
Utility routines for the markov submodule
"""
import numpy as np
from numba import jit
| 24.170068 | 71 | 0.565438 |
b6e55ebb8af286313e7dc054c50c7d19cf4d73db | 1,010 | py | Python | Surrogate_MBO/constraints.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | 8 | 2020-09-02T14:46:07.000Z | 2021-11-29T15:27:05.000Z | Surrogate_MBO/constraints.py | omersan/Practice | 77eecdc2a202e6b333123cfd92e7db6dc0eea021 | [
"MIT"
] | 18 | 2020-11-13T18:49:33.000Z | 2022-03-12T00:54:43.000Z | Surrogate_MBO/constraints.py | omersan/Practice | 77eecdc2a202e6b333123cfd92e7db6dc0eea021 | [
"MIT"
] | 5 | 2019-09-25T23:57:00.000Z | 2021-04-18T08:15:34.000Z | '''
Define constraints (depends on your problem)
https://stackoverflow.com/questions/42303470/scipy-optimize-inequality-constraint-which-side-of-the-inequality-is-considered
[0.1268 0.467 0.5834 0.2103 -0.1268 -0.5425 -0.5096 0.0581] . The bounds are +/-30% of this.
'''
t_base = [0.1268, 0.467, 0.5834, 0.2103, -0.1268... | 32.580645 | 124 | 0.656436 |
b6e579bdd514a20d1c5d2a97e578f7ccc82ca41c | 395 | py | Python | GmailWrapper_JE/venv/Lib/site-packages/cachetools/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/venv/Lib/site-packages/cachetools/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/venv/Lib/site-packages/cachetools/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | """Extensible memoizing collections and decorators."""
from .cache import Cache
from .decorators import cached, cachedmethod
from .lfu import LFUCache
from .lru import LRUCache
from .rr import RRCache
from .ttl import TTLCache
__all__ = (
'Cache',
'LFUCache',
'LRUCache',
'RRCache',
'... | 18.809524 | 55 | 0.653165 |
b6e5d5f5948432f4db2b11823aa7ceab5a15f6b4 | 18,804 | py | Python | fan_control.py | bouldinnathan/r710-fan-controller | a9b2719867b338a8df9198b0531b8a2d97b6455a | [
"MIT"
] | null | null | null | fan_control.py | bouldinnathan/r710-fan-controller | a9b2719867b338a8df9198b0531b8a2d97b6455a | [
"MIT"
] | null | null | null | fan_control.py | bouldinnathan/r710-fan-controller | a9b2719867b338a8df9198b0531b8a2d97b6455a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
try:_=os.system("apt-get -y install ipmitool")
except:pass
try:_=os.system("apt -y install libsensors4-dev ")
except:pass
try:_=os.system("apt -y install python-paho-mqtt ")
except:pass
#function of import and install
easy=Easy_installer()
easy.easy("pyyaml",import_name="yaml"... | 34.693727 | 179 | 0.567592 |
b6e6af6db57d4c49cfc18e92e40204a374d53b00 | 2,688 | py | Python | script_generation_tools/generate_experiment_scripts.py | cdt-data-science/TemplateProjectCDTGPUCluster | 72cdb8bf9e3849c7ef56b652329c667ac686da84 | [
"MIT"
] | 10 | 2018-11-23T13:48:46.000Z | 2022-01-27T16:55:55.000Z | script_generation_tools/generate_experiment_scripts.py | cdt-data-science/TemplateProjectCDTGPUCluster | 72cdb8bf9e3849c7ef56b652329c667ac686da84 | [
"MIT"
] | null | null | null | script_generation_tools/generate_experiment_scripts.py | cdt-data-science/TemplateProjectCDTGPUCluster | 72cdb8bf9e3849c7ef56b652329c667ac686da84 | [
"MIT"
] | 4 | 2019-01-31T15:17:18.000Z | 2020-04-28T11:01:03.000Z | import os
import sys
from copy import copy
import argparse
experiment_json_dir = '../experiment_config_files/'
maml_experiment_script = 'train_evaluate_emnist_classification_system.py'
cluster_scripts = {"gpu_cluster": "cluster_template_script", "remote_machine": "remote_machine_script"}
local_script_dir = "../experim... | 41.353846 | 111 | 0.6875 |
b6e79da658647f9a32d8c09cfd8180a52d57e871 | 437 | py | Python | mime/users/api/serializers.py | mrdvince/mime | ff0df1797a821c0fa607a56df2d31fb3408bea31 | [
"MIT"
] | null | null | null | mime/users/api/serializers.py | mrdvince/mime | ff0df1797a821c0fa607a56df2d31fb3408bea31 | [
"MIT"
] | 9 | 2021-12-16T06:39:57.000Z | 2022-02-14T15:58:00.000Z | mime/users/api/serializers.py | mrdvince/mime | ff0df1797a821c0fa607a56df2d31fb3408bea31 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework import serializers
from mime.mime.models import Mime
User = get_user_model()
| 23 | 85 | 0.709382 |
b6e85a371e4489a86a94a9d1350d98a45bd58339 | 1,512 | py | Python | experimentator/loggers.py | gabriel-vanzandycke/experimentator | e733e03930fc45ad62dfbf3f85cb9babfd078585 | [
"BSD-3-Clause"
] | 1 | 2020-09-25T13:10:59.000Z | 2020-09-25T13:10:59.000Z | experimentator/loggers.py | gabriel-vanzandycke/experimentator | e733e03930fc45ad62dfbf3f85cb9babfd078585 | [
"BSD-3-Clause"
] | null | null | null | experimentator/loggers.py | gabriel-vanzandycke/experimentator | e733e03930fc45ad62dfbf3f85cb9babfd078585 | [
"BSD-3-Clause"
] | null | null | null | import io
import logging
from functools import cached_property
from .base_experiment import BaseExperiment
from .utils import insert_suffix
| 40.864865 | 106 | 0.664683 |
b6e87a305461c5f4c196baa5e970e25ed6d80a40 | 483 | py | Python | mb_changedetection.py | mouhamedba/mb_changedetection.io | 41d339fb807da3bf27a45dff5d69db6a4f99a9e0 | [
"Apache-2.0"
] | null | null | null | mb_changedetection.py | mouhamedba/mb_changedetection.io | 41d339fb807da3bf27a45dff5d69db6a4f99a9e0 | [
"Apache-2.0"
] | null | null | null | mb_changedetection.py | mouhamedba/mb_changedetection.io | 41d339fb807da3bf27a45dff5d69db6a4f99a9e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# Entry-point for running from the CLI when not installed via Pip, Pip will handle the console_scripts entry_points's from setup.py
# It's recommended to use `pip3 install changedetection.io` and start with `changedetection.py` instead, it will be linkd to your global path.
# or Docker.
# Read more ... | 40.25 | 142 | 0.784679 |
b6eaf6148ff2d5db7a379220d276e7ab7879f08c | 1,077 | py | Python | PyOpenGL-3.0.2/OpenGL/raw/GL/INGR/color_clamp.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/raw/GL/INGR/color_clamp.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/raw/GL/INGR/color_clamp.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | '''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_INGR_color_clamp'
_p.unpack_constants( """GL_RED_MIN_CLAMP_INGR 0x8560
GL_GREEN_MIN_CLAMP_INGR 0x8561
GL_BLUE_MIN_CLAMP_INGR 0x8562
GL_ALPHA_MIN_CLAMP_INGR 0x8563
GL_RED_MAX_C... | 39.888889 | 71 | 0.81987 |
b6ed718fa2ac43c1c6ca5521138866516dff9d2d | 882 | py | Python | File handling/file_organizer.py | 100rabmittal/python-Automations | f57bac14478a82fa4014fa795aeb622c0f59d30d | [
"MIT"
] | null | null | null | File handling/file_organizer.py | 100rabmittal/python-Automations | f57bac14478a82fa4014fa795aeb622c0f59d30d | [
"MIT"
] | null | null | null | File handling/file_organizer.py | 100rabmittal/python-Automations | f57bac14478a82fa4014fa795aeb622c0f59d30d | [
"MIT"
] | null | null | null | import os
from pathlib import Path #this helps in getting path of file
# here you can add more formats and categories in same way
subdir = {
"DOCUMENTS": ['.pdf','.rtf','.txt'],
"AUDIO": ['.m4a','.m4b','.mp3'],
"VIDEOS": ['.mov','.avi','.mp4'],
"IMAGES": ['.jpg','.jpeg','.png']
}
# called from orga... | 25.941176 | 61 | 0.598639 |
b6f0a5f5a846a20cf54784a02ecf434d5e6c25fa | 26,852 | py | Python | datamodels.py | cubecloud/sunday_show | 5bfd1fccdd78bec2d7dae1f2a95d9432b98153d9 | [
"MIT"
] | null | null | null | datamodels.py | cubecloud/sunday_show | 5bfd1fccdd78bec2d7dae1f2a95d9432b98153d9 | [
"MIT"
] | null | null | null | datamodels.py | cubecloud/sunday_show | 5bfd1fccdd78bec2d7dae1f2a95d9432b98153d9 | [
"MIT"
] | null | null | null | import os
import sys
import time
import copy
import pytz
import numpy as np
import datetime
import pandas as pd
# from pandas import DataFrame
from tsdataparams import TSDataParams, DatasetParams
import matplotlib.pyplot as plt
import seaborn as sns
from typing import Tuple
from tsdataparams import DatasetParams
impor... | 40.318318 | 123 | 0.498659 |
b6f2e0a496e88d10793a8e3e0dc3d0a95cb0fa1b | 7,764 | py | Python | Dynamic Obstacle Simulation/nmpc_example.py | TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning | 717b9f07f4ed625ee33ab8ec22ce78dc2907d759 | [
"MIT"
] | 3 | 2022-01-07T19:37:03.000Z | 2022-03-15T08:50:28.000Z | risk_bounded_planning/nmpc_example.py | TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning | 717b9f07f4ed625ee33ab8ec22ce78dc2907d759 | [
"MIT"
] | null | null | null | risk_bounded_planning/nmpc_example.py | TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning | 717b9f07f4ed625ee33ab8ec22ce78dc2907d759 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 10 22:12:12 2020
@author: vxr131730
"""
import glob
import os
import sys
import random
import time
import numpy as np
import cv2
from test import *
from casadi import *
from numpy import random as npr
from casadi.tools import *
try:
sys.path.appe... | 34.052632 | 123 | 0.509016 |
b6f443c89de17865d2aff7e7d3e5c479bc0ccb12 | 92 | py | Python | taggable/__init__.py | ville-k/taggable | d37ecdfba5bc09277f19ea51344ad2ea3ae100f2 | [
"MIT"
] | null | null | null | taggable/__init__.py | ville-k/taggable | d37ecdfba5bc09277f19ea51344ad2ea3ae100f2 | [
"MIT"
] | null | null | null | taggable/__init__.py | ville-k/taggable | d37ecdfba5bc09277f19ea51344ad2ea3ae100f2 | [
"MIT"
] | null | null | null | from .taggable_sequence import TaggableSequence
from .taggable_sequence import TaggedSegment | 46 | 47 | 0.902174 |
b6f654169c3271517b08a11d104c504eb77b6207 | 20,356 | py | Python | parsewkt/parse.py | cleder/parsewkt | 728579d79a37a5ad413abceac5e8349f70380624 | [
"BSD-2-Clause"
] | 12 | 2015-01-26T00:39:42.000Z | 2021-07-01T16:15:17.000Z | parsewkt/parse.py | cleder/parsewkt | 728579d79a37a5ad413abceac5e8349f70380624 | [
"BSD-2-Clause"
] | 1 | 2020-05-22T08:26:09.000Z | 2020-05-24T16:58:53.000Z | parsewkt/parse.py | cleder/parsewkt | 728579d79a37a5ad413abceac5e8349f70380624 | [
"BSD-2-Clause"
] | 3 | 2015-11-22T01:09:34.000Z | 2016-05-26T20:57:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# CAVEAT UTILITOR
# This file was automatically generated by Grako.
# https://bitbucket.org/apalala/grako/
# Any changes you make to it will be overwritten the
# next time the file is generated.
#
from __future__ import print_function, division, absolute_import, unico... | 28.311544 | 82 | 0.560523 |
b6f79fc8b584bbc96a492b4abe713281e46b2b0b | 6,437 | py | Python | envs/sse/scenarios/pattern.py | HAXRD/1120 | a15dbb35aa219f874d374a198e02effe15bce196 | [
"MIT"
] | null | null | null | envs/sse/scenarios/pattern.py | HAXRD/1120 | a15dbb35aa219f874d374a198e02effe15bce196 | [
"MIT"
] | null | null | null | envs/sse/scenarios/pattern.py | HAXRD/1120 | a15dbb35aa219f874d374a198e02effe15bce196 | [
"MIT"
] | null | null | null | # Copyright (c) 2021, Xu Chen, FUNLab, Xiamen University
# All rights reserved.
import numpy as np
import random
from envs.sse.core import World, GU, ABS, BM
from envs.sse.scenario import BaseScenario | 34.239362 | 115 | 0.566568 |
b6f829829f98b77270009a2e680bfb487912ed46 | 790 | py | Python | checkio/Scientific Expedition/The Angles of a Triangle/triangle_angles.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/Scientific Expedition/The Angles of a Triangle/triangle_angles.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/Scientific Expedition/The Angles of a Triangle/triangle_angles.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | from math import acos, degrees
# These "asserts" using only for self-checking
# and not necessary for auto-testing
if __name__ == '__main__':
assert checkio(4, 4, 4) == [60, 60, 60], "All sides are equal"
assert checkio(3, 4, 5) == [37, 53, 90], "Egyptian triangle"
assert checkio(2, 2, 5) == [0, 0, 0], "... | 32.916667 | 78 | 0.531646 |
b6f93efc3176655f565780356c94acd55a0c9537 | 1,503 | py | Python | setup.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | setup.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | setup.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# setup.py
from setuptools import setup, find_packages
from sfftk import SFFTK_VERSION
with open('README.rst') as f:
long_description = f.read()
setup(
name="sfftk",
version=SFFTK_VERSION,
packages=find_packages(),
author="Paul K. Korir, PhD",
author_email="pkorir@ebi.a... | 34.159091 | 115 | 0.616766 |
b6f9501026a04d0626533555e817c2dbeb5e82d5 | 6,484 | py | Python | ds21grl/ebisuzaki97.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-04-08T18:13:47.000Z | 2021-04-08T18:13:47.000Z | ds21grl/ebisuzaki97.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | null | null | null | ds21grl/ebisuzaki97.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-06-10T14:48:04.000Z | 2021-06-10T14:48:04.000Z | """
Collection of functions to calculate lag correlations
and significance following Ebisuzaki 97 JCLIM
"""
def phaseran(recblk, nsurr,ax):
""" Phaseran by Carlos Gias: http://www.mathworks.nl/matlabcentral/fileexchange/32621-phase-randomization/content/phaseran.m
Args:
recblk (2D array): Row: time sa... | 32.913706 | 129 | 0.609038 |
b6f9fb3f6cfba6d3158acafee567dc98d0eadba9 | 21,619 | py | Python | vnpy_huobi/huobi_spot_gateway.py | noranhe/vnpy_huobi | 9f4a8abe9c6716492fccec6a58bb1e054490b8c2 | [
"MIT"
] | null | null | null | vnpy_huobi/huobi_spot_gateway.py | noranhe/vnpy_huobi | 9f4a8abe9c6716492fccec6a58bb1e054490b8c2 | [
"MIT"
] | null | null | null | vnpy_huobi/huobi_spot_gateway.py | noranhe/vnpy_huobi | 9f4a8abe9c6716492fccec6a58bb1e054490b8c2 | [
"MIT"
] | null | null | null | import json
from copy import copy
from datetime import datetime
from typing import Dict, List, Tuple
from vnpy.trader.utility import round_to
from vnpy_rest import RestClient, Request, Response
from vnpy.trader.constant import (
Direction,
Exchange,
Product,
Status,
OrderType,
Interval
)
from v... | 29.901798 | 136 | 0.557935 |
b6fa3420049e6fb9537fcbfcdff2619865eab8ae | 8,555 | py | Python | lib/bsde_risk_neutral_measure.py | marcsv87/Deep-PDE-Solvers | 3322704f0291dc98e5bdf8c81c57a95cbfe70981 | [
"MIT"
] | 5 | 2021-01-27T03:32:59.000Z | 2022-03-07T08:34:57.000Z | lib/bsde_risk_neutral_measure.py | msabvid/Deep-PDE-Solvers | 3322704f0291dc98e5bdf8c81c57a95cbfe70981 | [
"MIT"
] | null | null | null | lib/bsde_risk_neutral_measure.py | msabvid/Deep-PDE-Solvers | 3322704f0291dc98e5bdf8c81c57a95cbfe70981 | [
"MIT"
] | 3 | 2021-02-05T04:56:40.000Z | 2021-11-20T09:01:55.000Z | import torch
import torch.nn as nn
import signatory
from typing import Tuple, Optional, List
from abc import abstractmethod
from lib.networks import FFN, FFN_net_per_timestep
from lib.options import BaseOption
| 40.164319 | 213 | 0.558738 |
b6fa41165716e0275cf6bae9ca18e82c64c4f825 | 405 | py | Python | Python/Django/Django/LoginAndRegistration/apps/main/urls.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | 2 | 2018-08-18T15:14:45.000Z | 2019-10-16T16:14:13.000Z | Python/Django/Django/LoginAndRegistration/apps/main/urls.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | null | null | null | Python/Django/Django/LoginAndRegistration/apps/main/urls.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | 6 | 2018-05-05T18:13:05.000Z | 2021-05-20T11:32:48.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name="home"),
url(r'success/(?P<id>\d+)', views.success, name="success"),
url(r'register$', views.register, name="register"),
url(r'login$', views.login, name="login"),
url(r'users$', views.users, name="use... | 36.818182 | 77 | 0.632099 |
b6fcbba77524221677dd42ee911ae0932812d6b1 | 11,862 | py | Python | pysdds/writers/writers.py | nikitakuklev/pySDDS | 3f5a104712813b7494b56ff959a5feef1271d889 | [
"MIT"
] | null | null | null | pysdds/writers/writers.py | nikitakuklev/pySDDS | 3f5a104712813b7494b56ff959a5feef1271d889 | [
"MIT"
] | null | null | null | pysdds/writers/writers.py | nikitakuklev/pySDDS | 3f5a104712813b7494b56ff959a5feef1271d889 | [
"MIT"
] | null | null | null | import csv
import io
import struct
from io import BytesIO
import logging
import sys
import shlex
from pathlib import Path
from typing import Union, Iterable, List, IO, BinaryIO, Optional, Literal
import numpy as np
import pandas as pd
from ..structures import *
from ..util.constants import _NUMPY_DTYPES, _NUMPY_DTYPE... | 34.58309 | 112 | 0.595262 |
b6fde1bceb7d8f9fb3e743365ee54e08c0d839b9 | 1,309 | py | Python | examples/run_bidaf/cmrc_bidaf.py | ishine/SMRCToolkit | 8a81410225b85a126f1535f5b1aa1137d6948e98 | [
"Apache-2.0"
] | 1,238 | 2019-03-31T11:10:31.000Z | 2020-03-11T09:22:24.000Z | examples/run_bidaf/cmrc_bidaf.py | ishine/SMRCToolkit | 8a81410225b85a126f1535f5b1aa1137d6948e98 | [
"Apache-2.0"
] | 36 | 2019-04-07T05:38:04.000Z | 2020-03-12T15:38:26.000Z | examples/run_bidaf/cmrc_bidaf.py | ishine/SMRCToolkit | 8a81410225b85a126f1535f5b1aa1137d6948e98 | [
"Apache-2.0"
] | 162 | 2019-03-31T11:07:13.000Z | 2020-03-11T09:23:16.000Z | # coding: utf-8
from sogou_mrc.data.vocabulary import Vocabulary
from sogou_mrc.dataset.squad import SquadReader, SquadEvaluator
from sogou_mrc.dataset.cmrc import CMRCReader,CMRCEvaluator
from sogou_mrc.model.bidaf import BiDAF
import tensorflow as tf
import logging
from sogou_mrc.data.batch_generator import BatchGene... | 42.225806 | 103 | 0.825057 |
b6fee963092d66a5995b3a43e9089c5f670f7fd2 | 898 | py | Python | pynes/examples/mario.py | timgates42/pyNES | e385c7189eca44b9a9e0e781b28c8562e0647b0b | [
"BSD-3-Clause"
] | 1,046 | 2015-02-10T02:23:58.000Z | 2022-03-16T02:42:02.000Z | pynes/examples/mario.py | mcanthony/pyNES | 5f6078c02ae1fe9c6fecb4a8490f82f8c721cf3b | [
"BSD-3-Clause"
] | 30 | 2015-02-11T15:21:10.000Z | 2022-03-11T23:12:26.000Z | pynes/examples/mario.py | mcanthony/pyNES | 5f6078c02ae1fe9c6fecb4a8490f82f8c721cf3b | [
"BSD-3-Clause"
] | 132 | 2015-05-28T14:55:04.000Z | 2021-12-09T18:58:45.000Z | import pynes
from pynes.bitbag import *
if __name__ == "__main__":
pynes.press_start()
exit()
palette = [
0x22,0x29, 0x1A,0x0F, 0x22,0x36,0x17,0x0F, 0x22,0x30,0x21,0x0F, 0x22,0x27,0x17,0x0F,
0x22,0x16,0x27,0x18, 0x22,0x1A,0x30,0x27, 0x22,0x16,0x30,0x27, 0x22,0x0F,0x36,0x17]
chr_asset = impor... | 20.883721 | 90 | 0.64922 |
b6ff3eee82a9fd6ce220391346e4b91f3238b41c | 15,233 | py | Python | train.py | mateuszbuda/duke-dbt-detection | cf6a6b623fef24a3f36d3187e9f48b12b0e112bc | [
"MIT"
] | 10 | 2020-11-18T06:31:12.000Z | 2022-03-20T03:11:19.000Z | train.py | mateuszbuda/duke-dbt-detection | cf6a6b623fef24a3f36d3187e9f48b12b0e112bc | [
"MIT"
] | 2 | 2021-01-03T22:56:12.000Z | 2022-01-07T03:02:35.000Z | train.py | mateuszbuda/duke-dbt-detection | cf6a6b623fef24a3f36d3187e9f48b12b0e112bc | [
"MIT"
] | 7 | 2020-11-19T05:34:51.000Z | 2022-03-12T17:50:17.000Z | import argparse
import os
import mlflow
import numpy as np
import pandas as pd
import torch
import torch.optim as optim
from matplotlib import pyplot as plt
from matplotlib.backends.backend_agg import FigureCanvasAgg
from mlflow import log_metric, log_param, get_artifact_uri
from skimage.io import imsave
from sklearn.m... | 34.386005 | 106 | 0.538961 |
8e012bfae300b1cdd7f6b9a1ec257890417d45b0 | 4,602 | py | Python | S4/S4 Library/simulation/zone_modifier/zone_modifier_commands.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/zone_modifier/zone_modifier_commands.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/zone_modifier/zone_modifier_commands.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from server_commands.argument_helpers import TunableInstanceParam, get_tunable_instance
import services
import sims4.commands
ZONE_MODIFIER_CAP = 3
def run_zone_modifier_entry(zone_modifier, schedule_entry_index, _connection):
persistence_service = services.get_persistence_service()
zone_data = persistence_ser... | 55.445783 | 141 | 0.794003 |
8e01bae31d8548d0787a015e8b5e0ef8217381b3 | 982 | py | Python | scripts/bag_to_csv.py | SpyGuyIan/NU-PRISMM | 58441faedbe8d9f55dac666ea4b294d8319b112b | [
"MIT"
] | null | null | null | scripts/bag_to_csv.py | SpyGuyIan/NU-PRISMM | 58441faedbe8d9f55dac666ea4b294d8319b112b | [
"MIT"
] | null | null | null | scripts/bag_to_csv.py | SpyGuyIan/NU-PRISMM | 58441faedbe8d9f55dac666ea4b294d8319b112b | [
"MIT"
] | null | null | null | import csv
import rosbag
name = raw_input("Enter bag name: ")
bag = rosbag.Bag(name)
with open('data_pas.csv', 'wb') as csvfile:
spamwriter = csv.writer(csvfile, delimiter=',',
quotechar='|', quoting=csv.QUOTE_MINIMAL)
#spamwriter.writerow(["time", "loadA", "loadB", "drill_current",... | 46.761905 | 147 | 0.668024 |
8e02c712d755776c41fb50ac17bdda4f8defd76a | 3,510 | py | Python | preprocessing/split_data.py | rasmouz/thesis | f4cbd243d381f7c27c57e9f2b90aba5c89737ffb | [
"Apache-2.0"
] | null | null | null | preprocessing/split_data.py | rasmouz/thesis | f4cbd243d381f7c27c57e9f2b90aba5c89737ffb | [
"Apache-2.0"
] | null | null | null | preprocessing/split_data.py | rasmouz/thesis | f4cbd243d381f7c27c57e9f2b90aba5c89737ffb | [
"Apache-2.0"
] | null | null | null | import json
from nltk.tokenize import sent_tokenize, word_tokenize
from tqdm import tqdm
import random
from random import sample
unked_filename = "unked_dutch.txt"
vocab = "vocab_dutch.txt"
obligatory_words = "obligatory_words.txt"
important_sentences = "important_sentences.txt"
subsampled_sents = "subsampled_sentence... | 28.770492 | 77 | 0.636182 |
8e04cb8bc0a08664e80d4f15a028d215c05859b3 | 875 | py | Python | util.py | WRY-learning/k3http | 095a49118d052c43eb0e1dd82b6764eee9fcb158 | [
"MIT"
] | null | null | null | util.py | WRY-learning/k3http | 095a49118d052c43eb0e1dd82b6764eee9fcb158 | [
"MIT"
] | 2 | 2021-11-10T22:16:25.000Z | 2022-03-23T06:59:52.000Z | util.py | WRY-learning/k3http | 095a49118d052c43eb0e1dd82b6764eee9fcb158 | [
"MIT"
] | 1 | 2021-08-18T05:16:59.000Z | 2021-08-18T05:16:59.000Z | #!/usr/bin/env python3
# coding: utf-8
import copy
def headers_add_host(headers, address):
"""
If there is no Host field in the headers, insert the address as a Host into the headers.
:param headers: a 'dict'(header name, header value) of http request headers
:param address: a string represents a dom... | 27.34375 | 116 | 0.693714 |
8e05676982045b8332280fafa7905cf849cb0db4 | 22,892 | py | Python | ansible-devel/test/units/module_utils/facts/hardware/linux_data.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/units/module_utils/facts/hardware/linux_data.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/units/module_utils/facts/hardware/linux_data.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | # This file is part of Ansible
#
# Ansible 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 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 39.064846 | 154 | 0.554211 |
8e057c3146b2a35d72243c16effee9d368779138 | 1,173 | py | Python | utils/paramutils.py | louity/generating-doodle | dfed08a5d278122e3303e84a22df5da2686255fe | [
"MIT"
] | null | null | null | utils/paramutils.py | louity/generating-doodle | dfed08a5d278122e3303e84a22df5da2686255fe | [
"MIT"
] | null | null | null | utils/paramutils.py | louity/generating-doodle | dfed08a5d278122e3303e84a22df5da2686255fe | [
"MIT"
] | null | null | null | import numpy as np
def point_to_seg(x1, x2) -> np.ndarray:
'''
Method:
-------
Transform 2 points into a parametrized segment. Implicitely phi is in
[-pi/2; pi/2], it is the oriented angle the segment makes with the
horizontal line passing through its middle c.
'''
c = (x1[:2] + x2[:2]... | 32.583333 | 90 | 0.572038 |
8e0687afc7d6a33489c8755575067c466c4d338a | 2,240 | py | Python | main/utils/taskfactory.py | leonsim/clickwork | d3d75e535d0b0c77f747d893c5ca73ac9ab7ff00 | [
"MIT"
] | null | null | null | main/utils/taskfactory.py | leonsim/clickwork | d3d75e535d0b0c77f747d893c5ca73ac9ab7ff00 | [
"MIT"
] | null | null | null | main/utils/taskfactory.py | leonsim/clickwork | d3d75e535d0b0c77f747d893c5ca73ac9ab7ff00 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import absolute_import
from __future__ import print_function
import sys, os
import syslog
try:
import time
import daemon
import pwd
from . import pid
djangopath = os.path.join(os.path.dirname(sys.argv[0]), "../../")
sys.path.append(djangopath)
os.environ... | 25.454545 | 74 | 0.594196 |
8e073064fa439a464103697b271198bdd4fa2108 | 15,880 | py | Python | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | null | null | null | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2016 Martin Glueck All rights reserved
# Langstrasse 4, A--2244 Spannberg, Austria. martin@mangari.org
# ****************************************************************************
# This module is part of the package GTW.__test__.
#
# This module is licensed under the term... | 33.50211 | 176 | 0.497922 |
8e07779be64b5247716c3c8bb7b9dc225c5ec93a | 17,595 | py | Python | sfftk/unittests/test_readers.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/unittests/test_readers.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/unittests/test_readers.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
sfftk.unittests.test_readers
This testing module should have no side-effects because it only reads.
"""
from __future__ import division, print_function
import glob
import os
import struct
import sys
import unittest
import numpy
import random_words
import __init__ a... | 41.4 | 118 | 0.649957 |
8e0993bc222701face6f4e3e8c36bd2fa4219793 | 6,367 | py | Python | Sources/sublime/file.py | shamsan/sublime | 7cb17e4431cffb8d626ad99f6f93b8b0d8a5d520 | [
"BSD-3-Clause"
] | 1 | 2015-08-05T15:07:05.000Z | 2015-08-05T15:07:05.000Z | Sources/sublime/file.py | shamsan/sublime | 7cb17e4431cffb8d626ad99f6f93b8b0d8a5d520 | [
"BSD-3-Clause"
] | null | null | null | Sources/sublime/file.py | shamsan/sublime | 7cb17e4431cffb8d626ad99f6f93b8b0d8a5d520 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
###
# Project : SubLime
# FileName : util.py
# -----------------------------------------------------------------------------
# Author : sham
# E-Mail : mauricesham@gmail.com
# -----------------------------------------------------------... | 31.835 | 79 | 0.509973 |
8e0b9f255c0a4fb2766db0c2a01bf9c797647361 | 2,716 | py | Python | rater/models/graph/classify.py | shibing624/rater | 8437dea8baf0137ab3c07dd19c5f2bb8c15b4435 | [
"Apache-2.0"
] | 25 | 2020-06-28T09:21:12.000Z | 2022-03-25T10:25:17.000Z | rater/models/graph/classify.py | shibing624/rater | 8437dea8baf0137ab3c07dd19c5f2bb8c15b4435 | [
"Apache-2.0"
] | null | null | null | rater/models/graph/classify.py | shibing624/rater | 8437dea8baf0137ab3c07dd19c5f2bb8c15b4435 | [
"Apache-2.0"
] | 5 | 2021-02-01T02:52:04.000Z | 2022-02-07T09:07:12.000Z | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com), Weichen Shen(wcshen1994@163.com)
@description: Graph classify
"""
import numpy
from sklearn.metrics import f1_score, accuracy_score
from sklearn.multiclass import OneVsRestClassifier
from sklearn.preprocessing import MultiLabelBinarizer
def read_node_la... | 33.121951 | 78 | 0.604197 |
8e0cc0f9c4e1b4b0cd8fb9940b2837fd1a7b79ce | 156 | py | Python | db/hello.py | alicezehner/sql | cb5219209ff65ae157c0624fdd6d887e3725c47c | [
"MIT"
] | null | null | null | db/hello.py | alicezehner/sql | cb5219209ff65ae157c0624fdd6d887e3725c47c | [
"MIT"
] | null | null | null | db/hello.py | alicezehner/sql | cb5219209ff65ae157c0624fdd6d887e3725c47c | [
"MIT"
] | null | null | null | from faker import Faker
fake = Faker()
# generate random names
print(fake.first_name(), fake.last_name())
print(fake.job())
# push fake data into database
| 19.5 | 42 | 0.74359 |
8e0e7025679823e2bffe9b97772e691e6fdbe9e0 | 1,065 | py | Python | data_pipeline/sql/statement/ddl_statement.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | data_pipeline/sql/statement/ddl_statement.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | data_pipeline/sql/statement/ddl_statement.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | ###############################################################################
# Module: ddl_statement
# Purpose: Parent class for DDL (Data Definition Language) statements
#
# Notes:
#
###############################################################################
import data_pipeline.constants.const as const
... | 27.307692 | 79 | 0.585915 |
8e0fa8aab1e583351886aca167c74cb9380e0926 | 11,623 | py | Python | modules/products.py | sammdu/Shopify-Challenge-2022 | c9d93a6132d4a20f360a6b57f35508246baade55 | [
"MIT"
] | null | null | null | modules/products.py | sammdu/Shopify-Challenge-2022 | c9d93a6132d4a20f360a6b57f35508246baade55 | [
"MIT"
] | null | null | null | modules/products.py | sammdu/Shopify-Challenge-2022 | c9d93a6132d4a20f360a6b57f35508246baade55 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.9
"""
Enables access to products in the inventory.
Allows for project-relevant SQLite database access by exposing the Products class.
"""
import sqlite3
| 37.253205 | 91 | 0.585563 |
8e10091ba614e84baff419299184c6e5902d47f9 | 1,421 | py | Python | getdirpaths.py | AlexOrlek/ATCG | 75143bdaf7d71c25dc46183e3653876b587cf10b | [
"MIT"
] | null | null | null | getdirpaths.py | AlexOrlek/ATCG | 75143bdaf7d71c25dc46183e3653876b587cf10b | [
"MIT"
] | null | null | null | getdirpaths.py | AlexOrlek/ATCG | 75143bdaf7d71c25dc46183e3653876b587cf10b | [
"MIT"
] | null | null | null | import sys,os,re
from pythonmods import runsubprocess
dirpath=sys.argv[1] #args.sequences directory path
filepathinfo=sys.argv[2]
blastdbdir=sys.argv[3] #actually where blastdbs are stored
blasttype=sys.argv[4]
runsubprocess(['mkdir -p %s'%blastdbdir],shell=True)
directory=str(dirpath).rstrip('/')
dircontents=os.l... | 37.394737 | 105 | 0.670654 |
8e12dfc1b02e5be9035a157f02de86f0ae9a1423 | 4,533 | py | Python | zajem_podatkov.py | ajdalemut/vina | 6566d1aabcaaa5fc4aff3e5075ef6180c4fc64bd | [
"MIT"
] | null | null | null | zajem_podatkov.py | ajdalemut/vina | 6566d1aabcaaa5fc4aff3e5075ef6180c4fc64bd | [
"MIT"
] | null | null | null | zajem_podatkov.py | ajdalemut/vina | 6566d1aabcaaa5fc4aff3e5075ef6180c4fc64bd | [
"MIT"
] | null | null | null | import re
import orodja as orod
vzorec_url_vina = re.compile(
r'https://winelibrary.com/wines/'
r'(?P<novi_url>.+?)">.*?'
,
flags = re.DOTALL
)
vzorec_vina = re.compile(
r'<title>(?P<ime>.+?) \| Wine Library</title>.*?'
r'price:amount" content="(?P<cena>\d+?\.\d\d)"/>.*?'
r'>Item #</td>.+... | 32.611511 | 143 | 0.597176 |
8e133f5d7e8cfcdad5e8bc7b71c4dd7ffd623a0e | 5,569 | py | Python | trainer/lib/tgui/TClassSelector.py | Telcrome/ai-trainer | 54bca3252e194c054bdd3af2b94d6dde940a2a86 | [
"MIT"
] | 1 | 2021-05-05T12:57:42.000Z | 2021-05-05T12:57:42.000Z | trainer/lib/tgui/TClassSelector.py | Telcrome/ai-trainer | 54bca3252e194c054bdd3af2b94d6dde940a2a86 | [
"MIT"
] | null | null | null | trainer/lib/tgui/TClassSelector.py | Telcrome/ai-trainer | 54bca3252e194c054bdd3af2b94d6dde940a2a86 | [
"MIT"
] | null | null | null | from enum import Enum
from typing import Callable, List
import PySimpleGUI as sg
from PyQt5 import QtWidgets, QtCore
import trainer.lib as lib
| 38.944056 | 125 | 0.666008 |
8e142c763fdb8d924ffaccc126ec69589aa927d1 | 640 | py | Python | openre/agent/server/action/utils.py | openre/openre | c5969df92cac83bdafd049e1c0a3bcf56b51223a | [
"MIT"
] | null | null | null | openre/agent/server/action/utils.py | openre/openre | c5969df92cac83bdafd049e1c0a3bcf56b51223a | [
"MIT"
] | null | null | null | openre/agent/server/action/utils.py | openre/openre | c5969df92cac83bdafd049e1c0a3bcf56b51223a | [
"MIT"
] | 1 | 2016-02-14T11:20:57.000Z | 2016-02-14T11:20:57.000Z | # -*- coding: utf-8 -*-
from openre.agent.decorators import action
import logging
| 22.068966 | 50 | 0.69375 |
8e1438d6f0c12c7c5f3b595642f6d06a14138826 | 24,597 | py | Python | apis/booking/model.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | null | null | null | apis/booking/model.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | 1 | 2021-06-02T01:09:17.000Z | 2021-06-02T01:09:17.000Z | apis/booking/model.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | null | null | null | from flask_restplus import Namespace, fields
import socket
import time
from datetime import datetime, date, time, timedelta
from flask import jsonify, request
from database import DB
from bson import json_util, ObjectId
from apis.utils.common import *
from apis.libraries.send_mail import Send_mail
import requests
impor... | 49.892495 | 233 | 0.590072 |
8e17a9538e76246ed04d8a1eda0d6ac18d6b1fa0 | 1,801 | py | Python | logging/google/cloud/logging/_helpers.py | rodrigodias27/google-cloud-python | 7d1161f70744c0dbbe67a3f472ea95667eaafe50 | [
"Apache-2.0"
] | 1 | 2017-05-18T06:58:48.000Z | 2017-05-18T06:58:48.000Z | logging/google/cloud/logging/_helpers.py | rodrigodias27/google-cloud-python | 7d1161f70744c0dbbe67a3f472ea95667eaafe50 | [
"Apache-2.0"
] | null | null | null | logging/google/cloud/logging/_helpers.py | rodrigodias27/google-cloud-python | 7d1161f70744c0dbbe67a3f472ea95667eaafe50 | [
"Apache-2.0"
] | 1 | 2022-03-24T01:37:10.000Z | 2022-03-24T01:37:10.000Z | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.755102 | 74 | 0.735702 |
8e193b0bde2f443a74d2f503a6ddb21056e794e0 | 20 | py | Python | tests/acceptance/test_acceptance/__init__.py | WolffunGame/experiment-agent | 5fbf3fb4ef2defc4c81ecafb2335bb9ac31c1aac | [
"Apache-2.0"
] | 23 | 2020-01-14T11:28:10.000Z | 2022-02-06T09:05:34.000Z | tests/acceptance/test_acceptance/__init__.py | WolffunGame/experiment-agent | 5fbf3fb4ef2defc4c81ecafb2335bb9ac31c1aac | [
"Apache-2.0"
] | 146 | 2020-01-13T19:33:09.000Z | 2022-03-30T22:24:38.000Z | tests/acceptance/test_acceptance/__init__.py | WolffunGame/experiment-agent | 5fbf3fb4ef2defc4c81ecafb2335bb9ac31c1aac | [
"Apache-2.0"
] | 22 | 2020-02-17T22:48:55.000Z | 2022-02-22T09:54:57.000Z | # __init__ is empty
| 10 | 19 | 0.75 |
8e1ab0021a7c0f128fe23cec8868353c85222900 | 1,052 | py | Python | tests/__init__.py | Kua-Fu/rally | 7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae | [
"Apache-2.0"
] | 1,577 | 2016-04-19T12:38:58.000Z | 2022-03-31T07:18:25.000Z | tests/__init__.py | Kua-Fu/rally | 7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae | [
"Apache-2.0"
] | 1,079 | 2016-04-19T12:09:16.000Z | 2022-03-31T05:38:50.000Z | tests/__init__.py | Kua-Fu/rally | 7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae | [
"Apache-2.0"
] | 300 | 2016-04-19T18:27:12.000Z | 2022-03-23T07:54:16.000Z | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | 32.875 | 68 | 0.737643 |
8e1ac72e518e59f4fb71dd5f3cb8acb60ee30b3d | 1,470 | py | Python | preprocessors.py | abr-98/COVID-19_regression_analysis | f902f4771f665ee27c33a9cb7e3e4c83be54493d | [
"MIT"
] | null | null | null | preprocessors.py | abr-98/COVID-19_regression_analysis | f902f4771f665ee27c33a9cb7e3e4c83be54493d | [
"MIT"
] | null | null | null | preprocessors.py | abr-98/COVID-19_regression_analysis | f902f4771f665ee27c33a9cb7e3e4c83be54493d | [
"MIT"
] | 1 | 2020-06-07T08:50:29.000Z | 2020-06-07T08:50:29.000Z | import os
import pandas as pd
import numpy as np
mark_rate_tot()
| 16.516854 | 84 | 0.672109 |
8e1aec894f906f37f58c502ee1845c30fa56dcb3 | 2,866 | py | Python | alipay/aop/api/domain/ItapDeviceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/ItapDeviceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/ItapDeviceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
| 28.376238 | 75 | 0.583391 |
8e1e1c4f5b20e35d952914703755a7f3f5d49a06 | 179 | py | Python | synapse/servers/aha.py | ackroute/synapse | 51197f89ab372d2e357bcd054358352ecca66840 | [
"Apache-2.0"
] | 216 | 2017-01-17T18:52:50.000Z | 2022-03-31T18:44:49.000Z | synapse/servers/aha.py | ackroute/synapse | 51197f89ab372d2e357bcd054358352ecca66840 | [
"Apache-2.0"
] | 2,189 | 2017-01-17T22:31:48.000Z | 2022-03-31T20:41:45.000Z | synapse/servers/aha.py | ackroute/synapse | 51197f89ab372d2e357bcd054358352ecca66840 | [
"Apache-2.0"
] | 44 | 2017-01-17T16:50:57.000Z | 2022-03-16T18:35:52.000Z | # pragma: no cover
import sys
import asyncio
import synapse.lib.aha as s_aha
if __name__ == '__main__': # pragma: no cover
asyncio.run(s_aha.AhaCell.execmain(sys.argv[1:]))
| 19.888889 | 53 | 0.726257 |
8e1e583f80ca97e7424a25ea64300d82b7ad3565 | 2,090 | py | Python | pydatacube/pcaxis/__init__.py | jampekka/pydatacube | 6999db7ae12d60089904081b47fbddd0cbf9e371 | [
"MIT"
] | 1 | 2016-04-03T10:01:04.000Z | 2016-04-03T10:01:04.000Z | pydatacube/pcaxis/__init__.py | jampekka/pydatacube | 6999db7ae12d60089904081b47fbddd0cbf9e371 | [
"MIT"
] | null | null | null | pydatacube/pcaxis/__init__.py | jampekka/pydatacube | 6999db7ae12d60089904081b47fbddd0cbf9e371 | [
"MIT"
] | 2 | 2015-02-25T08:49:01.000Z | 2018-10-19T23:57:47.000Z | # encoding: utf-8
from collections import OrderedDict
import string
from pydatacube.pydatacube import _DataCube
import px_reader
# A bit scandinavian specific
default_translate = dict(zip(
u" -",
u"aoa__"
))
PxSyntaxError = px_reader.PxSyntaxError
| 22 | 61 | 0.686124 |
8e1f020861d5f149b4d1bf36cf869f3fcf1d8b21 | 4,869 | py | Python | tests/python/contrib/test_ethosu/cascader/test_integration.py | shengxinhu/tvm | 06c443e9959452c6da3a911fe0c11e08c5554477 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 4,640 | 2017-08-17T19:22:15.000Z | 2019-11-04T15:29:46.000Z | tests/python/contrib/test_ethosu/cascader/test_integration.py | shengxinhu/tvm | 06c443e9959452c6da3a911fe0c11e08c5554477 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 2,863 | 2017-08-17T19:55:50.000Z | 2019-11-04T17:18:41.000Z | tests/python/contrib/test_ethosu/cascader/test_integration.py | shengxinhu/tvm | 06c443e9959452c6da3a911fe0c11e08c5554477 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1,352 | 2017-08-17T19:30:38.000Z | 2019-11-04T16:09:29.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.349315 | 89 | 0.701787 |
8e1f54ce37b4015e516f48f0556e4a20d2843ccd | 493 | py | Python | pymterm/term_pylibui/key_translate.py | stonewell/pymterm | af36656d5f7fb008533178d14b00d83d72ba00cf | [
"MIT"
] | 102 | 2016-07-21T06:39:02.000Z | 2022-03-09T19:34:03.000Z | pymterm/term_pylibui/key_translate.py | stonewell/pymterm | af36656d5f7fb008533178d14b00d83d72ba00cf | [
"MIT"
] | 2 | 2017-01-11T13:43:34.000Z | 2020-01-19T12:06:47.000Z | pymterm/term_pylibui/key_translate.py | stonewell/pymterm | af36656d5f7fb008533178d14b00d83d72ba00cf | [
"MIT"
] | 4 | 2020-03-22T04:08:35.000Z | 2021-06-27T23:38:02.000Z |
__key_mapping = {
'return' : 'enter',
'up_arrow' : 'up',
'down_arrow' : 'down',
'left_arrow' : 'left',
'right_arrow' : 'right',
'page_up' : 'pageup',
'page_down' : 'pagedown',
}
| 22.409091 | 72 | 0.505071 |
8e204483fe351d8b8c3d7163c557940ac5a53c2d | 951 | py | Python | socketio/web.py | falleco/sample-websockets | ad600c4531fd2120b1424b459ad80697d723e435 | [
"MIT"
] | null | null | null | socketio/web.py | falleco/sample-websockets | ad600c4531fd2120b1424b459ad80697d723e435 | [
"MIT"
] | null | null | null | socketio/web.py | falleco/sample-websockets | ad600c4531fd2120b1424b459ad80697d723e435 | [
"MIT"
] | null | null | null | # import sys
# sys.path.insert(0, "lib/gevent-0.13.8")
# sys.path.insert(0, "lib/bottle")
# sys.path.insert(0, "lib/gevent-socketio")
from gevent import monkey
monkey.patch_all()
#
from socketio import socketio_manage, mixins
from socketio.namespace import BaseNamespace
from bottle import route, run, view, request, s... | 25.702703 | 110 | 0.710831 |
8e2063365732693edaa9ba388b9fb75a35d453c0 | 633 | py | Python | imagesave.py | aasthabhat/Alzheimer-s-Disease-Prediction | 0e60fa35ef81bc9241706ee0c0f12a9683071181 | [
"MIT"
] | null | null | null | imagesave.py | aasthabhat/Alzheimer-s-Disease-Prediction | 0e60fa35ef81bc9241706ee0c0f12a9683071181 | [
"MIT"
] | null | null | null | imagesave.py | aasthabhat/Alzheimer-s-Disease-Prediction | 0e60fa35ef81bc9241706ee0c0f12a9683071181 | [
"MIT"
] | 1 | 2019-10-05T18:52:10.000Z | 2019-10-05T18:52:10.000Z | import os
import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
import scipy.misc
import glob
from sklearn.cluster import KMeans
import cv2 as cv
#Save the 92 index slices out of 256 2D slices of the 3D MRI image
basepath = 'C:/Users/aasth/Desktop/adni dataset'
outpath = 'C:/Users/aasth/D... | 26.375 | 67 | 0.693523 |
8e20954a9f051a66b3352dc0b5b6171f171eac41 | 387 | py | Python | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | 2 | 2015-10-14T12:45:32.000Z | 2016-01-27T03:24:43.000Z | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | """
sentry.pool.base
~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
| 19.35 | 75 | 0.602067 |
8e248f33f455ddef45b8751374c960a986a597d8 | 9,970 | py | Python | MindLink-Eumpy/real_time_detection/GUI/EmotivDeviceReader.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 7 | 2020-11-19T14:34:50.000Z | 2022-02-26T14:16:50.000Z | MindLink-Eumpy/real_time_detection/GUI/EmotivDeviceReader.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 1 | 2021-08-20T07:30:32.000Z | 2021-09-01T07:20:14.000Z | MindLink-Eumpy/real_time_detection/GUI/EmotivDeviceReader.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 2 | 2021-07-20T08:59:14.000Z | 2021-08-10T08:03:56.000Z | # encoding: utf-8
'''
Created on Dec 18, 2018
@author: Yongrui Huang
'''
import time
from array import *
from ctypes import *
from sys import exit
from multiprocessing import Process
from multiprocessing import Queue
import numpy as np
# __main__
if __name__ == '__main__':
print("EmotivDeviceReader.py..__m... | 38.199234 | 125 | 0.607121 |
8e24e40dde5688e2e81d201ac41badf49b0c7ee8 | 3,977 | py | Python | blog/recognition/model/fmobilenet.py | ForrestPi/FaceProjects | 87ae30191c01eadc3cfa59b751db91f1aa76bc5d | [
"MIT"
] | 4 | 2020-04-06T10:25:09.000Z | 2021-06-22T06:21:29.000Z | blog/recognition/model/fmobilenet.py | ForrestPi/FaceProjects | 87ae30191c01eadc3cfa59b751db91f1aa76bc5d | [
"MIT"
] | null | null | null | blog/recognition/model/fmobilenet.py | ForrestPi/FaceProjects | 87ae30191c01eadc3cfa59b751db91f1aa76bc5d | [
"MIT"
] | 3 | 2020-05-30T01:26:39.000Z | 2021-12-28T02:25:31.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
if __name__ == "__main__":
from PIL import Image
import numpy as np
x = Image.open("../samples/009.jpg").convert('L')
x = x.resize((128, 128))
x = np.asarray(x, dtype=np.float32)
x = x[None, None, ...]
x = torch.from... | 32.333333 | 113 | 0.598944 |
8e25761876fd8e4aaf1e3c9049789e90709486aa | 1,048 | py | Python | Quizzes/Quiz3.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null | Quizzes/Quiz3.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null | Quizzes/Quiz3.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null | import scipy
import matplotlib.pyplot as plt
import numpy as np
x = [
0.001, 0.019, 0.039, 0.058, 0.080, 0.098, 0.119, 0.139,
0.159, 0.180, 0.198, 0.249, 0.298, 0.349, 0.398, 0.419,
0.439, 0.460, 0.479, 0.499, 0.519, 0.540, 0.558, 0.578,
0.598, 0.649, 0.698, 0.749, 0.798, 0.819, 0.839, 0.859,
0.879... | 26.2 | 83 | 0.583969 |
8e257db2202e7ae23d7e1ad381d19796e4ee9743 | 408 | py | Python | setup.py | gunnchadwick/backtrace-python | f2a735857fd76de1e568301856a9292059689878 | [
"MIT"
] | 3 | 2017-01-05T02:25:19.000Z | 2017-08-01T14:48:08.000Z | setup.py | gunnchadwick/backtrace-python | f2a735857fd76de1e568301856a9292059689878 | [
"MIT"
] | 10 | 2016-11-30T19:54:05.000Z | 2022-01-31T16:10:07.000Z | setup.py | gunnchadwick/backtrace-python | f2a735857fd76de1e568301856a9292059689878 | [
"MIT"
] | 1 | 2021-01-03T08:52:40.000Z | 2021-01-03T08:52:40.000Z | #!/usr/bin/env python
from setuptools import setup
import backtracepython
setup(
name='backtracepython',
version=backtracepython.version_string,
description='Backtrace error reporting tool for Python',
author='Andrew Kelley',
author_email='akelley@backtrace.io',
packages=['backtracepython'],
... | 24 | 61 | 0.732843 |
8e25bac68d0f359168091bb6963a2c55404d12a4 | 428 | py | Python | tests/test_core.py | srdjanrosic/supervisor | cd07bde30701590534c36dde35368192241c5839 | [
"Apache-2.0"
] | 597 | 2017-04-27T15:10:08.000Z | 2019-12-18T16:02:57.000Z | tests/test_core.py | BigElkHunter/cyberockit | fa7140fd9a5ee1316d103628f1f7f4c6db05b158 | [
"Apache-2.0"
] | 1,056 | 2020-01-30T09:59:44.000Z | 2022-03-31T10:15:32.000Z | tests/test_core.py | BigElkHunter/cyberockit | fa7140fd9a5ee1316d103628f1f7f4c6db05b158 | [
"Apache-2.0"
] | 295 | 2020-02-03T11:30:42.000Z | 2022-03-31T18:53:14.000Z | """Testing handling with CoreState."""
from supervisor.const import CoreState
from supervisor.coresys import CoreSys
def test_write_state(run_dir, coresys: CoreSys):
"""Test write corestate to /run/supervisor."""
coresys.core.state = CoreState.RUNNING
assert run_dir.read_text() == CoreState.RUNNING.val... | 25.176471 | 58 | 0.75 |
8e29547ebb12c872bca43a47dbb47aa24227f805 | 4,623 | py | Python | airbyte-integrations/connectors/source-s3/integration_tests/integration_test.py | luizgribeiro/airbyte | 71a96f5417b678c39b34e2e92234d8a51529e086 | [
"MIT"
] | 2 | 2021-08-04T03:17:38.000Z | 2021-11-15T10:16:08.000Z | airbyte-integrations/connectors/source-s3/integration_tests/integration_test.py | luizgribeiro/airbyte | 71a96f5417b678c39b34e2e92234d8a51529e086 | [
"MIT"
] | 1 | 2021-08-17T06:12:26.000Z | 2021-08-17T06:12:26.000Z | airbyte-integrations/connectors/source-s3/integration_tests/integration_test.py | luizgribeiro/airbyte | 71a96f5417b678c39b34e2e92234d8a51529e086 | [
"MIT"
] | 2 | 2021-12-14T17:15:40.000Z | 2021-12-14T17:18:03.000Z | #
# MIT License
#
# Copyright (c) 2020 Airbyte
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pu... | 40.552632 | 134 | 0.681592 |
8e298ab4c2ead4d23fde1cd5967fb6989b4d0d24 | 1,925 | py | Python | serverless_crud/aws/iam.py | epsylabs/python-serverless-crud | 71a79c4eb86e177a543e0af90c1dcf839996be34 | [
"MIT"
] | null | null | null | serverless_crud/aws/iam.py | epsylabs/python-serverless-crud | 71a79c4eb86e177a543e0af90c1dcf839996be34 | [
"MIT"
] | null | null | null | serverless_crud/aws/iam.py | epsylabs/python-serverless-crud | 71a79c4eb86e177a543e0af90c1dcf839996be34 | [
"MIT"
] | null | null | null | from serverless_crud.model import BaseModel
try:
from troposphere import Sub
except ImportError:
| 29.166667 | 120 | 0.571429 |
8e2a4f0ad6ff444c6eb22df34356010f4835cc86 | 157 | py | Python | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | 1 | 2020-09-02T15:44:12.000Z | 2020-09-02T15:44:12.000Z | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | 7 | 2015-06-20T19:01:15.000Z | 2015-06-20T19:19:39.000Z | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | null | null | null | import sys
if __name__== "__main__":
with open(sys.argv[1]) as f:
for lines in f:
for line in lines.split(";"):
if (line != ""): print(line + ";") | 22.428571 | 37 | 0.579618 |
8e2a73cce55ece5d68051c4436a8c3dfddbe2302 | 4,334 | py | Python | demodocusfw/tests/dom_manipulations.py | dchud/demodocus | e37040af521bc56a61fea6327fae111268b81497 | [
"Apache-2.0"
] | 7 | 2020-11-17T15:02:32.000Z | 2022-02-18T23:53:23.000Z | demodocusfw/tests/dom_manipulations.py | dchud/demodocus | e37040af521bc56a61fea6327fae111268b81497 | [
"Apache-2.0"
] | 20 | 2020-11-02T13:40:40.000Z | 2020-11-30T14:09:01.000Z | demodocusfw/tests/dom_manipulations.py | dchud/demodocus | e37040af521bc56a61fea6327fae111268b81497 | [
"Apache-2.0"
] | 4 | 2020-11-02T18:48:24.000Z | 2020-11-20T18:31:29.000Z | """
Software License Agreement (Apache 2.0)
Copyright (c) 2020, The MITRE 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
https://www.apache.org/licenses/LICENSE-... | 31.405797 | 78 | 0.598754 |
8e2bf73c75361284609fa99906336f91ac13a128 | 1,188 | py | Python | unit_04/08-Databases/1-Meet_Peewee/3_tables.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 19 | 2019-03-14T01:39:32.000Z | 2022-02-03T00:36:43.000Z | unit_04/08-Databases/1-Meet_Peewee/3_tables.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 1 | 2020-04-10T01:01:16.000Z | 2020-04-10T01:01:16.000Z | unit_04/08-Databases/1-Meet_Peewee/3_tables.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 5 | 2019-01-02T20:46:05.000Z | 2020-07-08T22:47:48.000Z | #
# Using Databases in Python: Meet Peewee
# Python Techdegree
#
# Created by Dulio Denis on 1/1/19.
# Copyright (c) 2019 ddApps. All rights reserved.
# ------------------------------------------------
# Challenge 1: Create Table
# ------------------------------------------------
# Challenge Task 1 of 4
# Import... | 33 | 80 | 0.561448 |
8e2c09add3ac51db67fc2fcabbd80acd70c3d84f | 2,497 | py | Python | model/i3DMM/utils.py | tarun738/i3DMM | 4ab77f60dd76eb612c4b2e13e1236bdf014fe89d | [
"MIT"
] | 33 | 2021-04-14T11:12:09.000Z | 2022-03-28T08:52:06.000Z | model/i3DMM/utils.py | tarun738/i3DMM | 4ab77f60dd76eb612c4b2e13e1236bdf014fe89d | [
"MIT"
] | 6 | 2021-04-20T11:54:44.000Z | 2021-12-08T05:19:39.000Z | model/i3DMM/utils.py | tarun738/i3DMM | 4ab77f60dd76eb612c4b2e13e1236bdf014fe89d | [
"MIT"
] | 5 | 2021-06-25T01:45:12.000Z | 2022-01-19T02:19:29.000Z | import logging
import torch
| 32.012821 | 137 | 0.645975 |
8e2c8ea26343525dca9a833b62e3ed6507179602 | 72 | py | Python | test/remote/__init__.py | ScorpionResponse/kbwc_api_client | 3f327a8ddd1ef2bcee6a499ae2af867f10e5d61b | [
"Apache-2.0"
] | 1 | 2020-07-22T16:51:17.000Z | 2020-07-22T16:51:17.000Z | test/remote/__init__.py | ScorpionResponse/kbwc_api_client | 3f327a8ddd1ef2bcee6a499ae2af867f10e5d61b | [
"Apache-2.0"
] | null | null | null | test/remote/__init__.py | ScorpionResponse/kbwc_api_client | 3f327a8ddd1ef2bcee6a499ae2af867f10e5d61b | [
"Apache-2.0"
] | null | null | null | import OpenURL
import Rest
__all__ = [OpenURL.__name__, Rest.__name__]
| 14.4 | 43 | 0.791667 |
8e2f53b44bbb5fca0d567eb53e2abb0c303b2263 | 550 | py | Python | neat-python-read-only/setup.py | anuragpapineni/Hearthbreaker-evolved-agent | d519d42babd93e3567000c33a381e93db065301c | [
"MIT"
] | null | null | null | neat-python-read-only/setup.py | anuragpapineni/Hearthbreaker-evolved-agent | d519d42babd93e3567000c33a381e93db065301c | [
"MIT"
] | null | null | null | neat-python-read-only/setup.py | anuragpapineni/Hearthbreaker-evolved-agent | d519d42babd93e3567000c33a381e93db065301c | [
"MIT"
] | null | null | null | # Installation script
from distutils.core import setup, Extension
setup(
name='neat-python',
version='0.1',
description='A NEAT (NeuroEvolution of Augmenting Topologies) implementation',
packages=['neat', 'neat/iznn', 'neat/nn', 'neat/ctrnn', 'neat/ifnn'],
#ext_modules=[
# Ex... | 42.307692 | 97 | 0.616364 |
8e30880e9a11d554ed2ceaa67847c1a5d9a22e18 | 9,721 | py | Python | affinity2kicad/converter.py | wntrblm/affinity2kicad | 466bc31693f6c989c2d47b0917cac2830b22bb44 | [
"MIT"
] | 3 | 2021-11-30T18:24:26.000Z | 2022-01-02T17:57:18.000Z | affinity2kicad/converter.py | wntrblm/affinity2kicad | 466bc31693f6c989c2d47b0917cac2830b22bb44 | [
"MIT"
] | null | null | null | affinity2kicad/converter.py | wntrblm/affinity2kicad | 466bc31693f6c989c2d47b0917cac2830b22bb44 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Alethea Katherine Flowers.
# Published under the standard MIT License.
# Full text available at: https://opensource.org/licenses/MIT
import concurrent.futures
import os.path
import svgpathtools
import rich
import rich.live
import rich.text
from .bitmap2component import bitmap2component
console ... | 32.620805 | 169 | 0.554367 |
8e329e4a0e6140f052d060368eaa9d899b41b1a3 | 679 | py | Python | app.py | ialjumah/python-helloworld | 3bf5d450617e5ab79f00fe25e6906b662f48f418 | [
"MIT"
] | null | null | null | app.py | ialjumah/python-helloworld | 3bf5d450617e5ab79f00fe25e6906b662f48f418 | [
"MIT"
] | null | null | null | app.py | ialjumah/python-helloworld | 3bf5d450617e5ab79f00fe25e6906b662f48f418 | [
"MIT"
] | null | null | null | Volume in drive C has no label.
Volume Serial Number is 30AD-FC05
Directory of C:\Users\HP\Documents\nd064_course_1-main\solutions\python-helloworld
13/07/2021 14:33 <DIR> .
13/07/2021 14:33 <DIR> ..
13/07/2021 14:34 0 app.log
13/07/2021 14:34 0 a... | 39.941176 | 84 | 0.536082 |
8e32af04333e07380c6816c822c35084a3b4f59b | 583 | py | Python | study/curso-em-video/exercises/056.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | study/curso-em-video/exercises/056.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | study/curso-em-video/exercises/056.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | soma_idade=0
media_Idade=0
maior_idade_homem=0
nome_velho=''
tot_mulher_20=0
for i in range(0,4):
nome=str(input('Nome: ')).strip()
idade=int(input('Idade: '))
sexo=str(input('Sexo: ')).strip()
soma_idade+=idade
if i==1 and sexo in 'Mm':
maior_idade_homem=idade
nome_velho=nome
el... | 26.5 | 50 | 0.684391 |
8e337ccb451a59d3ab427b7f22df5fcf9b32c64c | 7,898 | py | Python | Argen/argen.py | jebreimo/Argen | d989d788edcd8d623e808c8f515b432ac69123e5 | [
"Zlib"
] | null | null | null | Argen/argen.py | jebreimo/Argen | d989d788edcd8d623e808c8f515b432ac69123e5 | [
"Zlib"
] | null | null | null | Argen/argen.py | jebreimo/Argen | d989d788edcd8d623e808c8f515b432ac69123e5 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python
"""
argen - Command Line Argument Parser GENerator
"""
import argparse
import os
import sys
import textwrap
from error import Error
import helptextparser
import argparser_hpp
import argparser_cpp
if __name__ == "__main__":
sys.exit(main(sys.argv))
| 38.526829 | 95 | 0.525196 |