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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9407ea96d7707d8b52c8d7cf4a197411ba311970 | 2,151 | py | Python | hypotonic/__init__.py | mscavnicky/hypotonic | 499ea821988c34ae5492979f4f8056c4a45b3b1f | [
"MIT"
] | 8 | 2019-01-01T13:50:00.000Z | 2020-09-06T16:15:51.000Z | hypotonic/__init__.py | mscavnicky/hypotonic | 499ea821988c34ae5492979f4f8056c4a45b3b1f | [
"MIT"
] | 1 | 2019-02-24T12:13:46.000Z | 2019-02-24T19:50:49.000Z | hypotonic/__init__.py | mscavnicky/hypotonic | 499ea821988c34ae5492979f4f8056c4a45b3b1f | [
"MIT"
] | null | null | null | import logging
import importlib
import asyncio
import aiohttp
logger = logging.getLogger('hypotonic')
| 26.8875 | 81 | 0.62901 |
940830c796f500a7ec43a9e9a73df7a17bb2c403 | 714 | py | Python | 03. Programacion orientada a objetos/04. clases y objetos/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/04. clases y objetos/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/04. clases y objetos/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null |
# bloque principal
alumno1=Alumno()
alumno1.declarar("diego",2)
alumno1.visualizar()
alumno1.estadistica()
alumno2=Alumno()
alumno2.declarar("ana",10)
alumno2.visualizar()
alumno2.estadistica() | 22.3125 | 45 | 0.592437 |
9408773ad197cea530dbf06232c18e80bd339f4d | 5,487 | py | Python | sagas/corpus/searcher.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 3 | 2020-01-11T13:55:38.000Z | 2020-08-25T22:34:15.000Z | sagas/corpus/searcher.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | null | null | null | sagas/corpus/searcher.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 1 | 2021-01-01T05:21:44.000Z | 2021-01-01T05:21:44.000Z | from bert_serving.client import BertClient
import pandas as pd
import numpy as np
import json
import sagas.tracker_fn as tc
from sagas.conf.conf import cf
if __name__ == '__main__':
import fire
fire.Fire(CorpusSearcher)
| 34.949045 | 95 | 0.612539 |
9408ba6fbe5aa752679b16a7faeb0c1c96aadb6e | 882 | py | Python | Mobility Algorithms/Test/link_identifier_test.py | James-OHara/NCHRP-BSM-Traffic-Measures | d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56 | [
"Apache-2.0"
] | null | null | null | Mobility Algorithms/Test/link_identifier_test.py | James-OHara/NCHRP-BSM-Traffic-Measures | d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56 | [
"Apache-2.0"
] | null | null | null | Mobility Algorithms/Test/link_identifier_test.py | James-OHara/NCHRP-BSM-Traffic-Measures | d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from bsm_stream_vector import LinkIdentifier
"""Test LinkIndentifier class in bsm_stream_vector to ensure the BSMs are being assigned to the correct Measures Estimation link
"""
if __name__ == '__main__':
unittest.main() | 30.413793 | 129 | 0.727891 |
940bf9f6bcf066af4e32b8cbf37d9f28635da2d5 | 8,350 | py | Python | TSP/model_free.py | machine-reasoning-ufrgs/graph-nn | 7489b7b3d6a4750245e3f506982d98b56a74b6bb | [
"MIT"
] | 1 | 2019-11-04T15:56:00.000Z | 2019-11-04T15:56:00.000Z | TSP/model_free.py | machine-reasoning-ufrgs/graph-nn | 7489b7b3d6a4750245e3f506982d98b56a74b6bb | [
"MIT"
] | null | null | null | TSP/model_free.py | machine-reasoning-ufrgs/graph-nn | 7489b7b3d6a4750245e3f506982d98b56a74b6bb | [
"MIT"
] | 2 | 2019-09-21T12:10:56.000Z | 2021-04-17T13:55:32.000Z |
import sys, os
import tensorflow as tf
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from graphnn_free import GraphNN
from mlp import Mlp
#end
| 39.57346 | 183 | 0.600719 |
940c0b72ebd459534046c762a3ab4ce951637c18 | 1,593 | py | Python | ixnetwork_restpy/pytest_tests/tests/test_async_operation.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/pytest_tests/tests/test_async_operation.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/pytest_tests/tests/test_async_operation.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | """Tests to verify the async=True functionality of operations
"""
import pytest
from ixnetwork_restpy import TestPlatform, BadRequestError
if __name__ == "__main__":
pytest.main(["-v", "-s", "--server", "localhost:11009:windows", __file__])
| 37.928571 | 78 | 0.750157 |
940ddb5e6655f6d1f74858cf98a8d51ff4dc825b | 1,452 | py | Python | kodistubs/_publish_docs.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | kodistubs/_publish_docs.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | kodistubs/_publish_docs.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Created on: 24.02.2016
# Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua)
from __future__ import print_function
import os
from subprocess import call
gh_token = os.environ['GH_TOKEN']
repo_slug= os.environ['TRAVIS_REPO_SLUG']
gh_repo_url = 'https://{gh_token}@git... | 33.767442 | 89 | 0.631543 |
940ea273ac1efd7b81d8def3cd0c08c7f2a030f1 | 12,861 | py | Python | self_play_train.py | DrVecctor/GameOfGo | ab8b0313372fe380b44dd7021c00895c971b3e54 | [
"MIT"
] | null | null | null | self_play_train.py | DrVecctor/GameOfGo | ab8b0313372fe380b44dd7021c00895c971b3e54 | [
"MIT"
] | null | null | null | self_play_train.py | DrVecctor/GameOfGo | ab8b0313372fe380b44dd7021c00895c971b3e54 | [
"MIT"
] | 1 | 2020-09-11T16:49:01.000Z | 2020-09-11T16:49:01.000Z | import warnings
warnings.filterwarnings('ignore')
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow.python.util.deprecation as deprecation
deprecation._PRINT_DEPRECATION_WARNINGS = False
import json
import argparse
import multiprocessing
import random
import shutil
import time
import tempfile
from... | 32.892583 | 154 | 0.643807 |
940f0434744074dbc6c913f66fdd1933bcaa8210 | 16,611 | py | Python | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | 3 | 2021-06-10T08:32:05.000Z | 2021-06-11T08:06:27.000Z | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | null | null | null | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : run_eval.py
# Author : Mohamed Alzayat <alzayat@mpi-sws.org>
# Date : 21.10.2020
# Last Modified Date: 21.10.2020
# Last Modified By : Mohamed Alzayat <alzayat@mpi-sws.org>
import argparse
from bcns import sim
from evaluation... | 52.566456 | 155 | 0.722232 |
940f45a74fbe5732957c0a584ead0ec8af62f5f8 | 1,618 | py | Python | mooc_ex/xbaoItemPrice.py | ds17/reptiles | 99418624ae4b7548bf4dc1ea834e8c75a47a0557 | [
"Apache-2.0"
] | null | null | null | mooc_ex/xbaoItemPrice.py | ds17/reptiles | 99418624ae4b7548bf4dc1ea834e8c75a47a0557 | [
"Apache-2.0"
] | null | null | null | mooc_ex/xbaoItemPrice.py | ds17/reptiles | 99418624ae4b7548bf4dc1ea834e8c75a47a0557 | [
"Apache-2.0"
] | 1 | 2021-02-20T13:17:42.000Z | 2021-02-20T13:17:42.000Z | #D:\Python\Python35\python.exe
# -*- coding:utf-8 -*-
''
import requests,csv,re,os,time
i=1 #
if __name__=='__main__':
main()
| 26.52459 | 128 | 0.549444 |
9411e487e97666c6453fbbd22292c525e1819e7a | 2,359 | py | Python | appCore/apps/replica/cms/views/template.py | jadedgamer/alifewellplayed.com | b7b3dee8d3b9526c7cfe77078570a29394ef7e76 | [
"MIT"
] | 4 | 2017-04-22T11:03:01.000Z | 2018-01-16T22:28:15.000Z | appCore/apps/replica/cms/views/template.py | alifewellplayed/alifewellplayed.com | b7b3dee8d3b9526c7cfe77078570a29394ef7e76 | [
"MIT"
] | 10 | 2017-04-06T19:54:42.000Z | 2017-11-07T06:53:10.000Z | appCore/apps/replica/cms/views/template.py | alifewellplayed/alifewellplayed.com | b7b3dee8d3b9526c7cfe77078570a29394ef7e76 | [
"MIT"
] | 1 | 2017-12-14T12:49:40.000Z | 2017-12-14T12:49:40.000Z | from django.conf import settings
from django.template import RequestContext
from django.shortcuts import render_to_response, render, get_object_or_404, redirect
from django.views.decorators.cache import cache_page
from django.views.generic.list import ListView
from django.contrib import messages
from replica import se... | 36.859375 | 86 | 0.694786 |
9411f20ddc93846bc9ba0efb924f787c448b3493 | 1,844 | py | Python | cogs.py | Paarf/BoxBot | da323ddf30e368bed077ef75f843eb6e43902bd3 | [
"MIT"
] | null | null | null | cogs.py | Paarf/BoxBot | da323ddf30e368bed077ef75f843eb6e43902bd3 | [
"MIT"
] | null | null | null | cogs.py | Paarf/BoxBot | da323ddf30e368bed077ef75f843eb6e43902bd3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import discord
from discord.ext import commands
| 34.148148 | 122 | 0.646421 |
94138d3730f1e927ee57027157b082e4aa899444 | 85 | py | Python | djadmin/ngapp/apps.py | gnud/django-angular-lte-admin | b4bed527aa25184e17deb31eb5987b209dfd9253 | [
"MIT"
] | 3 | 2019-03-07T06:11:05.000Z | 2019-05-24T13:53:17.000Z | djadmin/ngapp/apps.py | gnud/damjan-dimitrioski.com | 6c9cb215ec0878eeb1ed5e1359bb1bd07f774476 | [
"MIT"
] | 3 | 2017-03-14T19:02:17.000Z | 2017-03-17T16:24:33.000Z | djadmin/ngapp/apps.py | gnud/damjan-dimitrioski.com | 6c9cb215ec0878eeb1ed5e1359bb1bd07f774476 | [
"MIT"
] | 3 | 2019-01-21T22:39:04.000Z | 2019-11-21T22:18:07.000Z | from django.apps import AppConfig
| 14.166667 | 33 | 0.741176 |
9416afea7476965ed4206e1afa4b1c98c8a8e2e2 | 4,808 | py | Python | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | '''
Spider IPCA v.1
---------------
Captura variao do IPCA do site do IBGE
Para o Blog Cincia de Dados
Thiago Serra F. Carvalho (C073835)
'''
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd
import time
# Nosso programa para rodar esse cdigo bastante simples
print("-----------------... | 34.84058 | 111 | 0.540765 |
941744eaeedb8147966109fc40c6847481dcda99 | 13,358 | py | Python | quantlib/test/test_hybridhestonhullwhite_process.py | yuyingfeng/pyql | ceb838581ad4db73a0208bc51bde2771bb534e5f | [
"BSD-3-Clause"
] | null | null | null | quantlib/test/test_hybridhestonhullwhite_process.py | yuyingfeng/pyql | ceb838581ad4db73a0208bc51bde2771bb534e5f | [
"BSD-3-Clause"
] | null | null | null | quantlib/test/test_hybridhestonhullwhite_process.py | yuyingfeng/pyql | ceb838581ad4db73a0208bc51bde2771bb534e5f | [
"BSD-3-Clause"
] | 2 | 2016-08-24T20:56:14.000Z | 2022-01-03T05:58:42.000Z | from __future__ import division
from __future__ import print_function
from .unittest_tools import unittest
import numpy as np
from quantlib.settings import Settings
from quantlib.instruments.option import (
EuropeanExercise)
from quantlib.instruments.payoffs import PAYOFF_TO_STR
from quantlib.models.shortrate... | 30.778802 | 86 | 0.564381 |
9419dfff89fc658e4d5b9784d855175327b46249 | 13,470 | py | Python | microutil/napari_wrappers.py | Hekstra-Lab/microutil | ab3b7b51754bf90ef35d6eea1c7b35cece638f0e | [
"BSD-3-Clause"
] | 2 | 2021-07-06T05:31:51.000Z | 2021-10-05T13:29:59.000Z | microutil/napari_wrappers.py | Hekstra-Lab/microutil | ab3b7b51754bf90ef35d6eea1c7b35cece638f0e | [
"BSD-3-Clause"
] | 16 | 2021-02-08T22:36:42.000Z | 2021-11-01T22:36:02.000Z | microutil/napari_wrappers.py | Hekstra-Lab/microutil | ab3b7b51754bf90ef35d6eea1c7b35cece638f0e | [
"BSD-3-Clause"
] | null | null | null | __all__ = [
"manual_segmentation",
"correct_watershed",
"correct_decreasing_cell_frames",
]
import warnings
import numpy as np
import xarray as xr
from .array_utils import axis2int
from .segmentation import (
napari_points_to_peak_mask,
peak_mask_to_napari_points,
watershed_single_frame_presee... | 31.619718 | 129 | 0.607275 |
941ac9a588b0f7f631258968825a911c7c67938a | 1,388 | py | Python | package/PartSeg/plugins/napari_widgets/__init__.py | neuromusic/PartSeg | a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf | [
"BSD-3-Clause"
] | 15 | 2020-03-21T03:27:56.000Z | 2022-03-21T07:46:39.000Z | package/PartSeg/plugins/napari_widgets/__init__.py | neuromusic/PartSeg | a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf | [
"BSD-3-Clause"
] | 479 | 2019-10-27T22:57:22.000Z | 2022-03-30T12:48:14.000Z | package/PartSeg/plugins/napari_widgets/__init__.py | neuromusic/PartSeg | a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf | [
"BSD-3-Clause"
] | 5 | 2020-02-05T14:25:02.000Z | 2021-12-21T03:44:52.000Z | from napari_plugin_engine import napari_hook_implementation
from PartSeg.plugins.napari_widgets.mask_create_widget import MaskCreateNapari
from PartSeg.plugins.napari_widgets.roi_extraction_algorithms import ROIAnalysisExtraction, ROIMaskExtraction
from PartSeg.plugins.napari_widgets.search_label_widget import SearchL... | 34.7 | 109 | 0.879683 |
941bf67ace09cea1fa8be060142fbc460a1ab4a9 | 1,433 | py | Python | pypy/module/posix/app_startfile.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-06-02T23:02:09.000Z | 2021-06-02T23:02:09.000Z | pypy/module/posix/app_startfile.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-03-30T18:08:41.000Z | 2021-03-30T18:08:41.000Z | pypy/module/posix/app_startfile.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2022-03-30T11:42:37.000Z | 2022-03-30T11:42:37.000Z | # NOT_RPYTHON
_cffi_wrapper = None
| 32.568182 | 79 | 0.597348 |
941d7a4e476aa62949af65296740953c1199a191 | 1,815 | py | Python | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | import csv
import pandas as pd
from ast import literal_eval
import matplotlib.pyplot as plt
import seaborn as sns
# DATA_PATH = "/content/drive/MyDrive/ExplainedKinshipData/data/all_pairs_also_unrelated_complete.csv"
# data = pd.read_csv(DATA_PATH, converters={"feat1": literal_eval, "feat2": literal_eval})
# print(dat... | 38.617021 | 122 | 0.722865 |
941e79630ab05ab4af582a022af0f3d07f154519 | 91 | py | Python | atcoder/AtCoder_Beginner_Contest_144/9x9.py | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | atcoder/AtCoder_Beginner_Contest_144/9x9.py | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | atcoder/AtCoder_Beginner_Contest_144/9x9.py | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | a, b = map(int, input().split())
if a >= 10 or b >= 10:
print(-1)
else:
print(a*b)
| 15.166667 | 32 | 0.494505 |
941fa2d0f2957a837877bc52e0cf20be207d8edc | 2,147 | py | Python | Revoke.py | locobastos/IBM-Informix-Comparison-Script | bd624a73e24a1d994e5d3c266d49a7f12d972611 | [
"MIT"
] | null | null | null | Revoke.py | locobastos/IBM-Informix-Comparison-Script | bd624a73e24a1d994e5d3c266d49a7f12d972611 | [
"MIT"
] | null | null | null | Revoke.py | locobastos/IBM-Informix-Comparison-Script | bd624a73e24a1d994e5d3c266d49a7f12d972611 | [
"MIT"
] | null | null | null | # coding=utf-8
| 37.017241 | 94 | 0.647415 |
9421063687d5c674de82454a24f2a06d3bbc10f3 | 172 | py | Python | Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 8 | 2022-03-01T09:09:20.000Z | 2022-03-03T05:36:01.000Z | Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 52 | 2022-03-02T13:52:46.000Z | 2022-03-04T03:03:17.000Z | Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 23 | 2022-03-01T06:39:34.000Z | 2022-03-03T09:24:40.000Z | #!C:\Users\INDIA\PycharmProjects\patient5\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 28.666667 | 65 | 0.796512 |
94216394fa225ea1e01514370a7ab54fc7850fd6 | 4,394 | py | Python | StateTracing/dataloader.py | junchenfeng/diagnosis_tracing | 4e26e2ad0c7abc547f22774b6c9c299999a152c3 | [
"MIT"
] | null | null | null | StateTracing/dataloader.py | junchenfeng/diagnosis_tracing | 4e26e2ad0c7abc547f22774b6c9c299999a152c3 | [
"MIT"
] | null | null | null | StateTracing/dataloader.py | junchenfeng/diagnosis_tracing | 4e26e2ad0c7abc547f22774b6c9c299999a152c3 | [
"MIT"
] | 1 | 2020-09-08T13:42:16.000Z | 2020-09-08T13:42:16.000Z | from torch import tensor
from numpy.random import choice,shuffle
max_len = 128
def pad_sequence3(sequences,padding = 0):
"""
every element in sequence is a 2-d list
with shape [time_steps,dim]
the dim is fixed
"""
d2s = [len(seq) for seq in sequences]
d3 =... | 26.46988 | 92 | 0.466318 |
9421e29a0bf88b5d1d33c777e246e5747fbbdf1c | 467 | py | Python | classification/classifier.py | mjbaucas/OneWordSpeechRecognition | 8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106 | [
"CC-BY-4.0"
] | null | null | null | classification/classifier.py | mjbaucas/OneWordSpeechRecognition | 8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106 | [
"CC-BY-4.0"
] | null | null | null | classification/classifier.py | mjbaucas/OneWordSpeechRecognition | 8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106 | [
"CC-BY-4.0"
] | null | null | null | from keras.models import load_model
from numpy import array, asarray, shape
from dataset import DatasetGenerator
| 22.238095 | 46 | 0.717345 |
9423171d16250d6171ddafca3f4c87c148dbefd2 | 489 | py | Python | 00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py | felixdittrich92/Python3_book | cd0e2b55aa72c51927d347b70199fb9ed928e06f | [
"MIT"
] | null | null | null | 00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py | felixdittrich92/Python3_book | cd0e2b55aa72c51927d347b70199fb9ed928e06f | [
"MIT"
] | null | null | null | 00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py | felixdittrich92/Python3_book | cd0e2b55aa72c51927d347b70199fb9ed928e06f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from email.mime.text import MIMEText
msg = MIMEMultipart()
msg["Subject"] = "Hallo Welt"
msg["From"] = "Donald Duck <don@ld.de>"
msg["To"] = "Onkel Dagobert <d@gobert.de>"
text = MIMETe... | 22.227273 | 58 | 0.697342 |
94233aaf3bc27bbb95fcba3936869d2e38d18220 | 841 | py | Python | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 2 | 2020-04-21T08:57:49.000Z | 2020-08-19T11:34:24.000Z | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 1 | 2021-03-14T00:56:53.000Z | 2021-06-03T02:03:10.000Z | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 2 | 2020-08-19T11:34:27.000Z | 2022-03-11T02:42:06.000Z | '''
slrfield slrclasses subpackage
This subpackage defines some classes that facilitate the processing of the SLR(Satellite Laser Ranging) data.
# cpfpred.py
Class structure:
CPFdata
- attributes:
- info: all information about the cpf ephemeris file
- version: version number of ... | 35.041667 | 155 | 0.657551 |
9423c78a108248ff56d8221e0af10e55045879da | 396 | py | Python | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import User, Log | 26.4 | 62 | 0.689394 |
9423dad74e2310d3e32cf63739fb7581d69d1ba6 | 2,346 | py | Python | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 16 | 2015-10-29T14:23:37.000Z | 2020-04-21T00:19:39.000Z | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 74 | 2016-09-14T19:52:32.000Z | 2018-10-03T10:11:16.000Z | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 7 | 2017-02-08T13:11:20.000Z | 2021-08-11T07:29:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 20:29
from __future__ import unicode_literals
import enum
from django.db.models import Sum
from django.db import migrations
from moneyed import Money
def migrate_trxs(apps, schema_editor):
WalletTransaction = apps.get_model("wallet", "WalletTr... | 31.28 | 74 | 0.638534 |
94273c713ab37d904542b3d0103d1a9ec8a8232d | 20,935 | py | Python | src/system/libs/python/seiscomp3/Shell.py | thefroid/seiscomp3 | 0b05d5550dcea000a93c7d9a39c5347d8786a91a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2015-09-17T22:43:50.000Z | 2017-11-29T20:27:11.000Z | src/system/libs/python/seiscomp3/Shell.py | thefroid/seiscomp3 | 0b05d5550dcea000a93c7d9a39c5347d8786a91a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2016-04-26T00:03:09.000Z | 2017-12-05T02:24:50.000Z | src/system/libs/python/seiscomp3/Shell.py | salichon/seiscomp3 | 4f7715f9ff9a35e7912c379ebf10446d0bceaeb2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | ############################################################################
# Copyright (C) by gempa GmbH, GFZ Potsdam #
# #
# You can redistribute and/or modify this program under the #
# terms o... | 31.014815 | 96 | 0.459422 |
9427c1c57cf677a2859c3b47d370c6f3bd16a79d | 543 | py | Python | asyncqtpy/common.py | codelv/asyncqtpy | def6207aa44c7de794345816fff514103c2440bb | [
"BSD-2-Clause"
] | null | null | null | asyncqtpy/common.py | codelv/asyncqtpy | def6207aa44c7de794345816fff514103c2440bb | [
"BSD-2-Clause"
] | null | null | null | asyncqtpy/common.py | codelv/asyncqtpy | def6207aa44c7de794345816fff514103c2440bb | [
"BSD-2-Clause"
] | null | null | null | # 2018 Gerard Marull-Paretas <gerard@teslabs.com>
# 2014 Mark Harviston <mark.harviston@gmail.com>
# 2014 Arve Knudsen <arve.knudsen@gmail.com>
# BSD License
"""Mostly irrelevant, but useful utilities common to UNIX and Windows."""
import logging
def with_logger(cls):
"""Class decorator to add a logger to a c... | 30.166667 | 73 | 0.714549 |
9427fe62f70bac3dffa9c51e9108759e4dbc47d2 | 13,665 | pyp | Python | plugins/Py-RoundedTube/Py-RoundedTube.pyp | tdapper/cinema4d_py_sdk | 32b1d2b63fe28510c83c66065394042900000e92 | [
"Apache-2.0"
] | 113 | 2015-12-11T11:00:49.000Z | 2022-03-27T01:33:12.000Z | plugins/Py-RoundedTube/Py-RoundedTube.pyp | tdapper/cinema4d_py_sdk | 32b1d2b63fe28510c83c66065394042900000e92 | [
"Apache-2.0"
] | 3 | 2016-04-04T12:45:28.000Z | 2019-04-12T08:33:38.000Z | plugins/Py-RoundedTube/Py-RoundedTube.pyp | tdapper/cinema4d_py_sdk | 32b1d2b63fe28510c83c66065394042900000e92 | [
"Apache-2.0"
] | 50 | 2015-11-16T11:13:02.000Z | 2022-03-26T07:05:25.000Z | """
RoundedTube
Copyright: MAXON Computer GmbH
Written for Cinema 4D R18
Modified Date: 05/12/2018
"""
import os
import math
import sys
import c4d
from c4d import plugins, utils, bitmaps, gui
# Be sure to use a unique ID obtained from www.plugincafe.com
PLUGIN_ID = 1025250
# Override method, react to some mes... | 38.064067 | 195 | 0.589901 |
942a08b6947bb2c1cb07c5fce687f9f20cbf31ee | 1,548 | py | Python | scripts/models/checkpoint.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | scripts/models/checkpoint.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | scripts/models/checkpoint.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from scripts.utils.saving import save_soccer_model
| 33.652174 | 102 | 0.605943 |
942a3017af0e69609df179fb9df9ebaec85f8069 | 1,115 | py | Python | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | null | null | null | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | 2 | 2018-08-30T20:45:12.000Z | 2018-09-14T02:44:06.000Z | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | null | null | null | import numpy as np
import os
import cv2
from multiprocessing import Process
faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
for directory in os.listdir("."):
if directory[-3:] != ".py" and directory[-4:] != ".xml" and directory[-4:] != ".png":
process = Process(target=process_direc... | 29.342105 | 89 | 0.572197 |
942d0bcdfeaa1163d62e0939cf24c2b534c1fc62 | 215 | py | Python | problems/0003/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | problems/0003/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | problems/0003/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | from euler.primes import smallest_prime_factor
| 19.545455 | 46 | 0.55814 |
942dc9b440e4ffa9fdc514a9cb6d21b6ea806211 | 398 | py | Python | Solutions/PAT/Basic/1004.py | Kahsolt/OJ-Notes | 6623ab7d61e305ce0467d6220f49134044b67c9e | [
"WTFPL"
] | null | null | null | Solutions/PAT/Basic/1004.py | Kahsolt/OJ-Notes | 6623ab7d61e305ce0467d6220f49134044b67c9e | [
"WTFPL"
] | null | null | null | Solutions/PAT/Basic/1004.py | Kahsolt/OJ-Notes | 6623ab7d61e305ce0467d6220f49134044b67c9e | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python3
# (20)
n = int(input())
l = input()
maxRecord = l
minRecord = l
maxScore = int(l.split()[2])
minScore = int(l.split()[2])
for i in range(n-1):
l = input()
s = int(l.split()[2])
if s < minScore:
minScore = s
minRecord = l
if s > maxScore:
maxScore = s
maxRecord = l
print... | 18.952381 | 39 | 0.580402 |
942e7f06e4223544b111045d0bf09989375fa72f | 505 | py | Python | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | null | null | null | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | 1 | 2022-01-18T09:41:25.000Z | 2022-01-18T09:41:25.000Z | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | null | null | null | # db init
from tinydb import TinyDB
from constants.directory import DB_PATH, TRAINING_PATH
if __name__ == "__main__":
main()
| 22.954545 | 86 | 0.659406 |
942ecae3009ce2581679881569b9f0511a4f09f7 | 9,057 | py | Python | thseq/modules/attention.py | DeepLearnXMU/ABDNMT-RNMT | c3b20e4afdbfee5741e95a42bbd31329bb9bb93d | [
"MIT"
] | 12 | 2019-08-17T15:40:11.000Z | 2022-02-04T16:22:18.000Z | thseq/modules/attention.py | DeepLearnXMU/ABDNMT-RNMT | c3b20e4afdbfee5741e95a42bbd31329bb9bb93d | [
"MIT"
] | null | null | null | thseq/modules/attention.py | DeepLearnXMU/ABDNMT-RNMT | c3b20e4afdbfee5741e95a42bbd31329bb9bb93d | [
"MIT"
] | 3 | 2019-06-04T08:39:56.000Z | 2020-01-10T06:52:04.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
def scaled_dot_attention(query, key, value, mask=None, dropout=None):
"Compute 'Scaled Dot Product Attention'"
# d_k = query.size(-1) mistake!
d_k = key.size(-1)
scaling = d_k ** -0.5
scores = torch.matmul(query, key.transpose(-2,... | 38.540426 | 114 | 0.602738 |
942f52a56216cd9dd4b3b55735c54ed5fcbd5571 | 610 | py | Python | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | pass
self.name = name
self.name = name
self.name = name
self.pet = None
super(Employee, self).__init__(name)
self.salary = salary
pass
pass
pass
rover = Dog("Rover")
satan = Cat("Satan")
mary = Person("Mary")
mary.pet = satan
frank = Employee("Frank", 120000)
frank.pet = rover
flipper = Fish()
crouse = Salmon()
harry =... | 19.0625 | 36 | 0.722951 |
94307fbfc839df25d3fad02f6fd8299ed5a1b1c1 | 877 | py | Python | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 23 | 2018-11-06T03:54:00.000Z | 2022-03-14T13:30:40.000Z | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | null | null | null | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 5 | 2019-05-24T16:56:45.000Z | 2022-03-10T17:29:10.000Z | # 76. Minimum Window Substring
import collections
print(Solution().minWindow("ADOBECODEBANCA", "ABCA")) | 30.241379 | 68 | 0.371722 |
9432f1baae90553cebe69202cb4904909bae73e4 | 3,737 | py | Python | examples/infersent.py | goel96vibhor/AdvSentEval | c23684c5f9da905517071361fdb40acf194cd608 | [
"BSD-3-Clause"
] | 2 | 2018-12-19T22:06:22.000Z | 2019-01-29T16:59:31.000Z | examples/infersent.py | goel96vibhor/AdvSentEval | c23684c5f9da905517071361fdb40acf194cd608 | [
"BSD-3-Clause"
] | null | null | null | examples/infersent.py | goel96vibhor/AdvSentEval | c23684c5f9da905517071361fdb40acf194cd608 | [
"BSD-3-Clause"
] | 2 | 2019-02-10T22:40:43.000Z | 2019-04-03T06:16:33.000Z | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
"""
InferSent models. See https://github.com/facebookresearch/InferSent.
"""
from __future__ import absolute_import, division,... | 33.366071 | 138 | 0.704843 |
943348300720cc80d81688b70013a870e1f308db | 5,680 | py | Python | hyperadmin/states.py | zbyte64/django-hyperadmin | 9ac2ae284b76efb3c50a1c2899f383a27154cb54 | [
"BSD-3-Clause"
] | 25 | 2015-01-26T11:37:22.000Z | 2021-04-05T17:21:05.000Z | hyperadmin/states.py | webcube/django-hyperadmin | c6fcbd227098ea02a2c1a2865664fbbef92107dc | [
"BSD-3-Clause"
] | 1 | 2015-04-13T04:19:49.000Z | 2015-04-13T04:19:49.000Z | hyperadmin/states.py | webcube/django-hyperadmin | c6fcbd227098ea02a2c1a2865664fbbef92107dc | [
"BSD-3-Clause"
] | 2 | 2017-05-24T13:33:17.000Z | 2019-11-14T06:24:48.000Z | from copy import copy
from django.utils.http import urlencode
from django.utils.datastructures import MergeDict
from django.http import QueryDict
from hyperadmin.links import LinkCollectionProvider, LinkCollectorMixin
def _set_item(self, val):
self['item'] = val
def _get_item(self):
... | 31.910112 | 100 | 0.594542 |
943370e1bfc6784163e96c08d443c0404b7a159d | 799 | py | Python | pymeteo/constants.py | Matze77/pyMeteo | 8cf234e996c2f294da175ce89e22c8f80ce0df15 | [
"BSD-3-Clause"
] | 51 | 2015-09-02T16:48:36.000Z | 2022-03-03T04:01:09.000Z | pymeteo/constants.py | Matze77/pyMeteo | 8cf234e996c2f294da175ce89e22c8f80ce0df15 | [
"BSD-3-Clause"
] | 26 | 2015-06-16T21:30:21.000Z | 2019-12-12T12:53:30.000Z | pymeteo/constants.py | Matze77/pyMeteo | 8cf234e996c2f294da175ce89e22c8f80ce0df15 | [
"BSD-3-Clause"
] | 20 | 2015-12-25T05:57:37.000Z | 2022-01-06T06:44:55.000Z | """This module provides constants used in the rest of the package
"""
# some constants
missingval = -99999999.
m2km = 0.001
km2m = 1000.
gravity = 9.81
maxparcels = 99999
L = 2.501e6 # latent heat of vaporization
Rd = 287.04 # gas constant dry air
Rv = 461.5 # gas constant water vapor
epsilon ... | 17.755556 | 65 | 0.627034 |
943405ec2b5893fc8c55f18e23a5611334471ceb | 23,161 | py | Python | baikal/_core/model.py | awesome-archive/baikal | c44b4f1b0f7a01ca5d41762043723aeeb5a130c9 | [
"BSD-3-Clause"
] | 1 | 2019-11-18T23:12:22.000Z | 2019-11-18T23:12:22.000Z | baikal/_core/model.py | awesome-archive/baikal | c44b4f1b0f7a01ca5d41762043723aeeb5a130c9 | [
"BSD-3-Clause"
] | null | null | null | baikal/_core/model.py | awesome-archive/baikal | c44b4f1b0f7a01ca5d41762043723aeeb5a130c9 | [
"BSD-3-Clause"
] | 1 | 2020-04-19T12:16:15.000Z | 2020-04-19T12:16:15.000Z | from collections import defaultdict
from typing import Union, List, Dict, Set, Iterable, Optional
from baikal._core.data_placeholder import is_data_placeholder_list, DataPlaceholder
from baikal._core.digraph import DiGraph
from baikal._core.step import Step, InputStep
from baikal._core.typing import ArrayLike
from bai... | 35.964286 | 112 | 0.614265 |
943464b9a939d5e26362c02446f6afb5de549747 | 1,127 | py | Python | elmo-chainer/bilm_encode_sentenses.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 112 | 2018-04-18T07:13:03.000Z | 2022-03-11T03:36:34.000Z | elmo-chainer/bilm_encode_sentenses.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 16 | 2018-05-11T11:41:08.000Z | 2021-04-24T03:50:54.000Z | elmo-chainer/bilm_encode_sentenses.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 45 | 2018-04-18T07:13:06.000Z | 2021-12-22T03:46:18.000Z | '''
Encode dataset as biLM embeddings to a file.
'''
import argparse
import json
from bilm import dump_bilm_embeddings
parser = argparse.ArgumentParser()
parser.add_argument('--gpu', '-g', type=int, default=-1,
help='GPU ID (negative value indicates CPU)')
parser.add_argument('--batchsize', '-b', ... | 33.147059 | 72 | 0.704525 |
94352c18896ac52cb3e3688b9085e562ded5443b | 7,023 | py | Python | Autonomous/libs/ARTracker.py | ROMANT21/SoonerRoverTeamV | 7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50 | [
"MIT"
] | null | null | null | Autonomous/libs/ARTracker.py | ROMANT21/SoonerRoverTeamV | 7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50 | [
"MIT"
] | null | null | null | Autonomous/libs/ARTracker.py | ROMANT21/SoonerRoverTeamV | 7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50 | [
"MIT"
] | null | null | null | import cv2
import cv2.aruco as aruco
import numpy as np
import configparser
import os
| 46.82 | 137 | 0.544212 |
94354260b7f3c6fef0f04ea5b99624f3fede367a | 1,850 | py | Python | fb_api.py | ianchen06/bus_bot | d8808deda07e7455f82497f6cb4efa65bb46732b | [
"MIT"
] | null | null | null | fb_api.py | ianchen06/bus_bot | d8808deda07e7455f82497f6cb4efa65bb46732b | [
"MIT"
] | null | null | null | fb_api.py | ianchen06/bus_bot | d8808deda07e7455f82497f6cb4efa65bb46732b | [
"MIT"
] | null | null | null | import os
import requests
PAGE_ACCESS_TOKEN = os.getenv('PAGE_ACCESS_TOKEN')
| 27.205882 | 129 | 0.535676 |
9436f350e7d7acc2d2cbaf063890d3cd75d3b805 | 5,015 | py | Python | tuinwolk/tests/algorithm_test.py | TuinfeesT/TuinWolk | 0af0321948f4f573d8eb5ad1b87ea42bfa6644e1 | [
"MIT"
] | 1 | 2017-09-08T02:34:22.000Z | 2017-09-08T02:34:22.000Z | tuinwolk/tests/algorithm_test.py | TuinfeesT/TuinWolk | 0af0321948f4f573d8eb5ad1b87ea42bfa6644e1 | [
"MIT"
] | null | null | null | tuinwolk/tests/algorithm_test.py | TuinfeesT/TuinWolk | 0af0321948f4f573d8eb5ad1b87ea42bfa6644e1 | [
"MIT"
] | null | null | null | import random, string, sys
GROWTH_RATE = 2 # we only place repo's in locations that support at least GROWTH_RATE times the size of the repo
CHIP_RATE = 0.9 # if a repo has no locations that support GROWTH_RATE * repo.local_size, we chip off a bit off the desired size to see if we can find a repo anyway
MAX_SERVERS = 1... | 31.149068 | 185 | 0.705085 |
94370721e69f25f233cc1d50ab8e488f9896e6fc | 881 | py | Python | Basic Data Structures/string/StringToInteger.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null | Basic Data Structures/string/StringToInteger.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null | Basic Data Structures/string/StringToInteger.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null |
obj = Solution()
s1 = '0.1'
s2 = '1.23'
s3 = '1.22'
print(obj.compareVersion(s2, s3))
| 17.62 | 80 | 0.553916 |
943809361a17063e9ad22cf431e9277484379aec | 1,003 | py | Python | src/day3.py | mfrdbigolin/AoC2020 | 18757f0d610ad6a7064a22f94688900208260e48 | [
"MIT"
] | null | null | null | src/day3.py | mfrdbigolin/AoC2020 | 18757f0d610ad6a7064a22f94688900208260e48 | [
"MIT"
] | null | null | null | src/day3.py | mfrdbigolin/AoC2020 | 18757f0d610ad6a7064a22f94688900208260e48 | [
"MIT"
] | null | null | null | #!/bin/python3
# Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org>
# SPDX-License-Identifier: MIT
"""Day Three, Toboggan Trajectory."""
from sys import argv
from utils import open_file, arrange, usage_and_exit, product
def solve(terrain, slopes):
"""Return the product of the number of t... | 22.288889 | 74 | 0.63011 |
943a6e918a39fde29903bdaa2b2cdab7804a8d42 | 203 | py | Python | mamba/__init__.py | jaimegildesagredo/mamba | f7cdb231b5eec036edba05752ae90d174751aa10 | [
"MIT"
] | null | null | null | mamba/__init__.py | jaimegildesagredo/mamba | f7cdb231b5eec036edba05752ae90d174751aa10 | [
"MIT"
] | null | null | null | mamba/__init__.py | jaimegildesagredo/mamba | f7cdb231b5eec036edba05752ae90d174751aa10 | [
"MIT"
] | null | null | null | from mamba.loader import describe, context
from mamba.hooks import before, after
from mamba.decorators import pending
__all__ = ['describe', 'context', 'before', 'after', 'pending']
__version__ = '0.6'
| 29 | 63 | 0.748768 |
943c68bb009981d99005672e8d3f04e12a35c5f4 | 1,753 | py | Python | utils/large_pickle.py | t-aritake/ancestral_atom_learning | 1af3451058f31dfdd28289bb05e90bb2ec1d9e5d | [
"MIT"
] | null | null | null | utils/large_pickle.py | t-aritake/ancestral_atom_learning | 1af3451058f31dfdd28289bb05e90bb2ec1d9e5d | [
"MIT"
] | null | null | null | utils/large_pickle.py | t-aritake/ancestral_atom_learning | 1af3451058f31dfdd28289bb05e90bb2ec1d9e5d | [
"MIT"
] | null | null | null | import pickle
# openfileread, write2**3
if __name__ == '__main__':
import numpy
data = numpy.random.normal(size=(2**14, 2**15))
pickle_dump(data, './test.pkl')
| 31.303571 | 101 | 0.560753 |
943df8ec9917dadf2f8a3e2c1b6cb3862ab6f172 | 349 | py | Python | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | from magnebot.test_controller import TestController, ActionStatus
"""
Test whether the Magnebot is initialized successfully.
"""
if __name__ == "__main__":
m = TestController()
status = m.init_scene()
assert status == ActionStatus.success, status
status = m.move_by(1)
assert status == ActionStatus... | 24.928571 | 65 | 0.713467 |
943f4b96e47fad94ad779b8d7570c1b93a4ab158 | 4,373 | py | Python | RpiServer/main.py | MaxThom/LightYourHearth | bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c | [
"MIT"
] | null | null | null | RpiServer/main.py | MaxThom/LightYourHearth | bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c | [
"MIT"
] | 4 | 2021-06-08T22:21:15.000Z | 2022-03-12T00:47:34.000Z | RpiServer/main.py | MaxThom/LightYourHearth-rpi | e8b01569e583d7aa3343b9bdcd8b0e7d4834ae5f | [
"MIT"
] | null | null | null | from blue_connect import BluetoothComm
from ledstrip import Ledstrip
from button_manager import ButtonManager
import subprocess
import constants
import pprint
import time
import datetime
# ps -ef | grep python
# sudo kill -9 [pid]
# pip freeze > requirements.txt
# pip install -r requirements.txt
# sudo systemctl st... | 34.706349 | 102 | 0.686943 |
9440dc39866b4ed3cdff0a21be7c14bc4667a7e9 | 837 | py | Python | tutorials/10-days-of-statistics/s10-normal-distribution-2.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 41 | 2018-05-11T07:54:34.000Z | 2022-03-29T19:02:32.000Z | tutorials/10-days-of-statistics/s10-normal-distribution-2.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 2 | 2021-09-13T10:03:26.000Z | 2021-10-04T10:21:05.000Z | tutorials/10-days-of-statistics/s10-normal-distribution-2.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 21 | 2019-01-23T19:06:59.000Z | 2021-12-23T16:03:47.000Z | # Tutorials > 10 Days of Statistics > Day 5: Normal Distribution II
# Problems based on basic statistical distributions.
#
# https://www.hackerrank.com/challenges/s10-normal-distribution-2/problem
# challenge id: 21230
#
import math
def N(x, , ):
""" Normal Distribution """
= math.pi
return math.exp(- (... | 24.617647 | 74 | 0.610514 |
9441d12538aebf4fa87c06330fdaa81538b0282c | 2,214 | py | Python | cloud.py | ArkinSolomon/Cuby | c0957efee8f2f29cc85fb155a4f8fd5658482881 | [
"MIT"
] | null | null | null | cloud.py | ArkinSolomon/Cuby | c0957efee8f2f29cc85fb155a4f8fd5658482881 | [
"MIT"
] | null | null | null | cloud.py | ArkinSolomon/Cuby | c0957efee8f2f29cc85fb155a4f8fd5658482881 | [
"MIT"
] | null | null | null | import pygame
from random import randrange
from cloud_part import Cloud_Part
import math
'''
This class creates clouds at random locations in the screen.
'''
| 38.842105 | 101 | 0.533875 |
9441f8090083e12e5068f348f98fdd3f2fe20640 | 2,070 | py | Python | backend/audio_analysis/audio_emotions.py | shan-memery/political-atlas | ecfcd7185592943c34487ec9fae65916d5f2f212 | [
"MIT"
] | 3 | 2021-02-22T00:56:48.000Z | 2021-03-25T06:15:38.000Z | backend/audio_analysis/audio_emotions.py | shan-memery/political-atlas | ecfcd7185592943c34487ec9fae65916d5f2f212 | [
"MIT"
] | 3 | 2021-05-03T18:42:30.000Z | 2022-02-27T12:23:09.000Z | backend/audio_analysis/audio_emotions.py | shan-memery/political-atlas | ecfcd7185592943c34487ec9fae65916d5f2f212 | [
"MIT"
] | null | null | null | import base64
import json
import pathlib
import requests
import sys
BASE_DIR = pathlib.Path(__file__).parent.absolute()
with open(BASE_DIR.joinpath('config.json')) as config_file:
config = json.load(config_file)
WEB_HOOK = "https://pabe.vanillacre.me/deepwebhook"
querystring: dict = {
"apikey": config['API_K... | 33.934426 | 106 | 0.702415 |
94430051a0be192eb8095277d402c71833104df1 | 104 | py | Python | uvcoverage-plot.py | haricash/bayesian-ionized-bubbles | c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6 | [
"MIT"
] | null | null | null | uvcoverage-plot.py | haricash/bayesian-ionized-bubbles | c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6 | [
"MIT"
] | null | null | null | uvcoverage-plot.py | haricash/bayesian-ionized-bubbles | c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
data = np.load("uv-coverage.npy")
print(data.shape) | 17.333333 | 33 | 0.759615 |
944340e0a695126f125615f284c92afb1ac4bd00 | 4,587 | py | Python | gravy/sndfile/__init__.py | greenbender/django-gravy | cbdf33db31c73797ca704a89707b6bba48fb3cb9 | [
"BSD-3-Clause"
] | 6 | 2018-04-02T22:00:57.000Z | 2021-12-17T00:33:12.000Z | gravy/sndfile/__init__.py | greenbender/django-gravy | cbdf33db31c73797ca704a89707b6bba48fb3cb9 | [
"BSD-3-Clause"
] | null | null | null | gravy/sndfile/__init__.py | greenbender/django-gravy | cbdf33db31c73797ca704a89707b6bba48fb3cb9 | [
"BSD-3-Clause"
] | null | null | null | from _binding import *
def _get_frame_buffer(self, frames=None):
frames = frames or self.default_frames
count = self._sfinfo.channels * frames
if not hasattr(self, '_buf') or len(self._buf) < count:
self._buf = (c_int * count)()
return self._buf
def _get_item... | 29.216561 | 96 | 0.571179 |
94469ec893b63ee14bfa7d21379d184d4d336ea8 | 77 | py | Python | __init__.py | AustinCasteel/FacebookBirthdays | aac83eab7b76bad37ff3e074e3a5b45b12107217 | [
"MIT"
] | null | null | null | __init__.py | AustinCasteel/FacebookBirthdays | aac83eab7b76bad37ff3e074e3a5b45b12107217 | [
"MIT"
] | null | null | null | __init__.py | AustinCasteel/FacebookBirthdays | aac83eab7b76bad37ff3e074e3a5b45b12107217 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .facebookbirthday import FacebookBirthdayPlugin
| 25.666667 | 52 | 0.753247 |
9449a2b0d6c1565d42d9cb5e3842bc3035d92db9 | 833 | py | Python | basics/testTkinter1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | null | null | null | basics/testTkinter1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T07:54:19.000Z | 2020-05-23T17:57:43.000Z | basics/testTkinter1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | null | null | null | """tkimage.pyw
"""
import tkinter as tk
import tkinter.filedialog as fd
def openimage(canvas):
"""
"""
filename = fd.askopenfilename(filetypes=[("PNG", "*.png"),
("GIF", "*.gif")])
global image #
image = tk.PhotoImage(file=filename)
... | 25.242424 | 66 | 0.565426 |
9449bc4a88c928fcca8b119b92228696c1d3f838 | 1,027 | py | Python | tests/test_data.py | eyaler/alt-reality-cam | 317c84239b64dc761f05f38c2d0024dc82237fa4 | [
"MIT"
] | 3 | 2019-05-04T14:04:41.000Z | 2020-12-10T22:05:03.000Z | tests/test_data.py | eyaler/alt-reality-cam | 317c84239b64dc761f05f38c2d0024dc82237fa4 | [
"MIT"
] | null | null | null | tests/test_data.py | eyaler/alt-reality-cam | 317c84239b64dc761f05f38c2d0024dc82237fa4 | [
"MIT"
] | null | null | null | import joblib
import pandas as pd
from util import draw_boxes, display_image, get_image_from_s3, get_image_boxes
import os
objects = joblib.load(os.path.join('..','data','data.joblib'))
id2url = joblib.load(os.path.join('..','data','id2url.joblib'))
meta = pd.read_csv(os.path.join('..','open_images_', 'validation-ima... | 26.333333 | 100 | 0.682571 |
944b24d006ea6d6534e3cafb96fdf06a586981fc | 52 | py | Python | tests/__init__.py | codiceviola/environ | 1173690a84a85efe43fd5a26443b4f43f96f3e98 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | codiceviola/environ | 1173690a84a85efe43fd5a26443b4f43f96f3e98 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | codiceviola/environ | 1173690a84a85efe43fd5a26443b4f43f96f3e98 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Codice Viola 2020."""
| 13 | 26 | 0.480769 |
944bb4c301ced596aa5db3a3e40634312604d90b | 1,233 | py | Python | 6_CommandPattern/Invoker.py | gama79530/DesignPattern | 707e20a1e379d59b6b41a5fe389935c8caa4b1b1 | [
"MIT"
] | null | null | null | 6_CommandPattern/Invoker.py | gama79530/DesignPattern | 707e20a1e379d59b6b41a5fe389935c8caa4b1b1 | [
"MIT"
] | null | null | null | 6_CommandPattern/Invoker.py | gama79530/DesignPattern | 707e20a1e379d59b6b41a5fe389935c8caa4b1b1 | [
"MIT"
] | null | null | null | import Command
| 39.774194 | 142 | 0.664234 |
944c0444be36853f3a762f2e2f840cd5bc072676 | 2,458 | py | Python | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 34.619718 | 245 | 0.704638 |
944d4863c2b49e4ad6cf9e7d921f530ca9d61704 | 1,174 | py | Python | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet
import os
if __name__ == '__main__':
generate_fernet_key() | 32.611111 | 88 | 0.517036 |
944e55182faf9a6527a5868bbcdc772b013e1b6d | 1,221 | py | Python | bcipy/signal/model/inference.py | theGreenJedi/BciPy | 222ac9b79f1ab3374e888be9e9b8d86f88d1bc82 | [
"MIT"
] | null | null | null | bcipy/signal/model/inference.py | theGreenJedi/BciPy | 222ac9b79f1ab3374e888be9e9b8d86f88d1bc82 | [
"MIT"
] | 5 | 2021-06-08T23:56:19.000Z | 2022-03-12T00:57:00.000Z | bcipy/signal/model/inference.py | theGreenJedi/BciPy | 222ac9b79f1ab3374e888be9e9b8d86f88d1bc82 | [
"MIT"
] | null | null | null | import numpy as np
def inference(x, targets, model, alphabet):
"""Evaluate the log likelihood ratios given the model and input.
Then maps the distribution over the alphabet.
Args:
x(ndarray(float)): 3 dimensional np array first dimension is
channels second dimension is trials and thir... | 37 | 80 | 0.657658 |
944f4e07ae76e0175a6fe84669287a44fcfa23a9 | 1,231 | py | Python | test/CheckManpage.py | sanel/ledger | 81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836 | [
"BSD-3-Clause"
] | 3,509 | 2015-01-01T11:47:51.000Z | 2022-03-30T09:22:43.000Z | test/CheckManpage.py | sanel/ledger | 81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836 | [
"BSD-3-Clause"
] | 651 | 2015-01-09T16:18:10.000Z | 2022-03-26T23:52:00.000Z | test/CheckManpage.py | sanel/ledger | 81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836 | [
"BSD-3-Clause"
] | 440 | 2015-01-02T21:28:11.000Z | 2022-03-25T05:38:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import re
import os
import argparse
from os.path import *
from subprocess import Popen, PIPE
from CheckOptions import CheckOptions
if __name__ == "__main__":
args = getargs()
script = CheckManpage(args)
status = s... | 26.76087 | 82 | 0.649878 |
944f7fb44853067aa20905eb80412dcbeeac8cdb | 449 | py | Python | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-21 12:01
from django.db import migrations, models
| 23.631579 | 109 | 0.628062 |
9450618219812524336f36a73f4f2432207e9704 | 1,789 | py | Python | examples/somebenchmark.py | dunnkers/fseval | 49a11a63e09e65b1f14389b6ba3a9ae3aeae086d | [
"MIT"
] | 5 | 2020-07-08T11:58:46.000Z | 2022-01-26T13:58:00.000Z | examples/somebenchmark.py | dunnkers/fseval | 49a11a63e09e65b1f14389b6ba3a9ae3aeae086d | [
"MIT"
] | 63 | 2021-05-09T06:18:24.000Z | 2022-03-27T18:05:58.000Z | examples/somebenchmark.py | dunnkers/fseval | 49a11a63e09e65b1f14389b6ba3a9ae3aeae086d | [
"MIT"
] | 1 | 2022-02-11T03:24:14.000Z | 2022-02-11T03:24:14.000Z | import hydra
from fseval.adapters.openml import OpenMLDataset
from fseval.config import DatasetConfig, EstimatorConfig, PipelineConfig
from fseval.main import run_pipeline
from fseval.types import Task
from hydra.core.config_store import ConfigStore
from sklearn.base import BaseEstimator
from sklearn.feature_selection ... | 24.506849 | 72 | 0.713248 |
94509be309d1816f01aaf5c9843c5c4efa72acc0 | 2,776 | py | Python | onadata/apps/remote_app/models.py | awemulya/fieldsight-kobocat | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 38 | 2017-02-28T05:39:40.000Z | 2019-01-16T04:39:04.000Z | onadata/apps/remote_app/models.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 20 | 2017-04-27T09:14:27.000Z | 2019-01-17T06:35:52.000Z | onadata/apps/remote_app/models.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 5 | 2017-02-22T12:25:19.000Z | 2019-01-15T11:16:40.000Z | from random import choice
from string import ascii_lowercase, digits
from django.utils import timezone
from django.db import models
from django.conf import settings
from django.contrib.auth import get_user_model
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
import j... | 26.438095 | 74 | 0.67147 |
9451d8920aafd4d93813d4d8a6d863e885a6a62c | 2,276 | py | Python | example_code/HABET_tracker.py | M2I-HABET/ahac2020workshop | 7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e | [
"MIT"
] | null | null | null | example_code/HABET_tracker.py | M2I-HABET/ahac2020workshop | 7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e | [
"MIT"
] | null | null | null | example_code/HABET_tracker.py | M2I-HABET/ahac2020workshop | 7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e | [
"MIT"
] | null | null | null | # HABET Basic Tracking Payload CircuitPython Script
# Recieves GPS data and transmits it via LoRa radio module
# Utilizes Adafruit Feather M4 Express, Ultimate GPS FeatherWing, RFM95W 433 MHz FeatherWing
# Last updated 9/2/2020 by Austin Trask
import time
import board
import busio
import digitalio
import analogio
impo... | 25.288889 | 92 | 0.685413 |
9453b14b9e14bb2251d140e523b7352f31df8836 | 1,058 | py | Python | message_broker/exchange.py | nicolads87/mnemosine | b8057b3bb6482586c663bba2c392eb2c81795a2a | [
"MIT"
] | null | null | null | message_broker/exchange.py | nicolads87/mnemosine | b8057b3bb6482586c663bba2c392eb2c81795a2a | [
"MIT"
] | null | null | null | message_broker/exchange.py | nicolads87/mnemosine | b8057b3bb6482586c663bba2c392eb2c81795a2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#===============================
# MNEMOSINE PY EXCHANGE
#===============================
from threading import Thread
import queue
import logging
import uuid
from message_broker.broker.broker import Broker
logging.basicConfig(level=logging.INFO,
format='[... | 25.804878 | 62 | 0.559546 |
9454a7596d445e08a15c5b3eac352a2c7dc0a75a | 1,293 | py | Python | functionality_cores/jokes.py | SergeJohanns/aboc-bot | 542866c5dc2df2d93821fc9c9d5190c6e3089117 | [
"MIT"
] | null | null | null | functionality_cores/jokes.py | SergeJohanns/aboc-bot | 542866c5dc2df2d93821fc9c9d5190c6e3089117 | [
"MIT"
] | null | null | null | functionality_cores/jokes.py | SergeJohanns/aboc-bot | 542866c5dc2df2d93821fc9c9d5190c6e3089117 | [
"MIT"
] | null | null | null | import time
from functionality_core import FCore
from functionality_cores.utilcore import asynced
from functionality_cores.kerberos import require_ring | 36.942857 | 89 | 0.581593 |
94556addbf8b82be0922fc6157fda0ff5c155248 | 7,195 | py | Python | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | 1 | 2021-10-19T13:44:34.000Z | 2021-10-19T13:44:34.000Z | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | null | null | null | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | null | null | null | from pathlib import Path
import os
from json_handler.utils import save_as_json, load_from_json, create_new_file
| 29.979167 | 114 | 0.603197 |
945713b531ab76dc304c8cb885e6156fb03e8b00 | 1,403 | py | Python | 02_Optimization/nightRun.py | NaoPagamosEstatistica/mlclass | d47a003edda368959a78cf207e66e77a80e6f5b3 | [
"MIT"
] | null | null | null | 02_Optimization/nightRun.py | NaoPagamosEstatistica/mlclass | d47a003edda368959a78cf207e66e77a80e6f5b3 | [
"MIT"
] | null | null | null | 02_Optimization/nightRun.py | NaoPagamosEstatistica/mlclass | d47a003edda368959a78cf207e66e77a80e6f5b3 | [
"MIT"
] | null | null | null | import os
import subprocess
from random import randint
os.system("g++ hillClimb.cpp -o test -std=c++11")
inf = 1<<20
radious = [90, 45, 30, 360, 10]
best = []
for i in range(len(radious)):
f = open("%d" % (radious[i]), "w")
b = open("best%d" % (radious[i]), "w")
best += [[-inf]]
f.close()
b.close()... | 25.509091 | 86 | 0.498931 |
9459564910a505c210ee0c2d7c209c21ba0721f1 | 5,243 | py | Python | httpserver/tcpserver.py | ansal/http-server | 6020b235039bf1332de613a7ffad12c668594cdc | [
"MIT"
] | 1 | 2022-03-26T18:08:54.000Z | 2022-03-26T18:08:54.000Z | httpserver/tcpserver.py | ansal/http-server | 6020b235039bf1332de613a7ffad12c668594cdc | [
"MIT"
] | null | null | null | httpserver/tcpserver.py | ansal/http-server | 6020b235039bf1332de613a7ffad12c668594cdc | [
"MIT"
] | null | null | null | # Simple TCP server
import socket
import queue
import select
| 33.825806 | 87 | 0.54034 |
9459bb0f03aa50504d4105c581de763700f9c2e2 | 445 | py | Python | plugin/python/libraries/numpy/v1_x/methods.py | deqode/CodeAnalyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | 3 | 2021-07-13T12:48:48.000Z | 2021-07-21T07:57:21.000Z | plugin/python/libraries/numpy/v1_x/methods.py | deqode/code-analyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | null | null | null | plugin/python/libraries/numpy/v1_x/methods.py | deqode/code-analyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | null | null | null | from protos.plugin import library_pb2_grpc, common_pb2
| 34.230769 | 67 | 0.759551 |
945dd0d9b70abc4ba2a33b9db34923ccdcde4e40 | 2,225 | py | Python | src/resource/spear_of_Adun.py | Thrimbda/my-life-for-Aiur | 5e385e1b6e49c4b7f75024572d21a6621ad550d9 | [
"MIT"
] | null | null | null | src/resource/spear_of_Adun.py | Thrimbda/my-life-for-Aiur | 5e385e1b6e49c4b7f75024572d21a6621ad550d9 | [
"MIT"
] | null | null | null | src/resource/spear_of_Adun.py | Thrimbda/my-life-for-Aiur | 5e385e1b6e49c4b7f75024572d21a6621ad550d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Macsnow
# @Date: 2017-05-11 10:53:57
# @Last Modified by: Macsnow
# @Last Modified time: 2017-05-11 15:36:00
from flask.ext.restful import Resource, reqparse
from flask import session
from src.common.util import abortIfSubjectUnauthenticated
from src.common.util import abo... | 37.711864 | 96 | 0.60809 |
9464fd14b792b482c66ebf4c89048f0fbdc126f7 | 449 | py | Python | vmreflect/tests/test_util.py | andrewdotn/vmreflect | f6dcab5df747df7bb8b53d9637f3f48d66910ca5 | [
"BSD-2-Clause"
] | 1 | 2015-10-20T15:09:08.000Z | 2015-10-20T15:09:08.000Z | vmreflect/tests/test_util.py | andrewdotn/vmreflect | f6dcab5df747df7bb8b53d9637f3f48d66910ca5 | [
"BSD-2-Clause"
] | null | null | null | vmreflect/tests/test_util.py | andrewdotn/vmreflect | f6dcab5df747df7bb8b53d9637f3f48d66910ca5 | [
"BSD-2-Clause"
] | null | null | null | import string
import unittest
| 29.933333 | 67 | 0.625835 |
9465004e65aa4a1c46ff0c353a22bdc9a36dbb13 | 4,740 | py | Python | temboo/core/Library/Utilities/Callback/RegisterCallback.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Utilities/Callback/RegisterCallback.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Utilities/Callback/RegisterCallback.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# RegisterCallback
# Allows you to generate a unique URL that can "listen" for incoming data from web request.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache Licens... | 46.019417 | 280 | 0.700633 |
9465ea6e8a3e28767df80dc2e1f77115e0fcf158 | 2,788 | py | Python | test/test_model/test_annotation.py | alexandermendes/libanno | bc504498ef330fab46f2334f96631457d520ec90 | [
"MIT"
] | 7 | 2018-05-22T04:54:08.000Z | 2020-05-28T20:27:39.000Z | test/test_model/test_annotation.py | alexandermendes/libanno | bc504498ef330fab46f2334f96631457d520ec90 | [
"MIT"
] | 9 | 2018-07-20T12:54:24.000Z | 2020-11-05T17:44:19.000Z | test/test_model/test_annotation.py | alexandermendes/libanno | bc504498ef330fab46f2334f96631457d520ec90 | [
"MIT"
] | 1 | 2019-06-12T14:19:33.000Z | 2019-06-12T14:19:33.000Z | # -*- coding: utf8 -*-
from flask import url_for, current_app
from nose.tools import *
from base import Test, db, with_context
from explicates.model.collection import Collection
from explicates.model.annotation import Annotation
| 31.681818 | 76 | 0.573888 |
9466a0890aee0dc1575d353661a33b3cadbde55e | 6,641 | py | Python | src/cropbox_search/cropbox_record_sm.py | asr-ros/asr_state_machine | bdba6f34275a83dade4cc40d2bd21a18dbcef4c3 | [
"BSD-3-Clause"
] | 1 | 2019-10-29T13:37:26.000Z | 2019-10-29T13:37:26.000Z | src/cropbox_search/cropbox_record_sm.py | asr-ros/asr_state_machine | bdba6f34275a83dade4cc40d2bd21a18dbcef4c3 | [
"BSD-3-Clause"
] | null | null | null | src/cropbox_search/cropbox_record_sm.py | asr-ros/asr_state_machine | bdba6f34275a83dade4cc40d2bd21a18dbcef4c3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
'''
Copyright (c) 2016, Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Marek Felix, Meissner Pascal, Trautmann Jeremias, Wittenbeck Valerij
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted... | 58.254386 | 755 | 0.568288 |
946731cb45e6088144b61d5dec0e0d8b4e410ade | 474 | py | Python | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | null | null | null | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | 6 | 2016-10-25T14:55:39.000Z | 2017-10-09T15:37:03.000Z | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | 2 | 2016-09-29T16:28:14.000Z | 2021-08-04T12:28:21.000Z | from nose.tools import set_trace
| 31.6 | 66 | 0.704641 |
94674f843dab73643aa11740f5acb4a209e24514 | 58,296 | py | Python | tests/unit/test_paragraphs.py | IanVermes/recompose | e675af59930ae2d45ec054dfa0d0ebc85383c669 | [
"MIT"
] | null | null | null | tests/unit/test_paragraphs.py | IanVermes/recompose | e675af59930ae2d45ec054dfa0d0ebc85383c669 | [
"MIT"
] | null | null | null | tests/unit/test_paragraphs.py | IanVermes/recompose | e675af59930ae2d45ec054dfa0d0ebc85383c669 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf8 -*-
"""Unit test of paragraph processing classes: PreProcessed and PostProcessed
as well as Processor subclasses.
Copyright: Ian Vermes 2019
"""
from tests.base_testcases import ParagraphsTestCase, BaseTestCase, ProcessorTestCase_Genuine
from tests.special_testcases import Pr... | 38.403162 | 190 | 0.571206 |
94683e867fcf095a6c6c96fe20091c6adf5781ba | 25 | py | Python | tldry/__init__.py | vangaa/tldry | 0f5075dbed3cd09ac6749e09273a2e054d75445a | [
"MIT"
] | 2 | 2019-04-01T09:39:54.000Z | 2019-05-17T19:24:39.000Z | tldry/__init__.py | vangaa/tldry | 0f5075dbed3cd09ac6749e09273a2e054d75445a | [
"MIT"
] | null | null | null | tldry/__init__.py | vangaa/tldry | 0f5075dbed3cd09ac6749e09273a2e054d75445a | [
"MIT"
] | 1 | 2021-02-03T14:00:43.000Z | 2021-02-03T14:00:43.000Z | from .tldry import TLDRy
| 12.5 | 24 | 0.8 |
946b8d6d8025c10201a0e997dc4dab9b8be0198b | 2,911 | py | Python | geode/utility/json_conversion.py | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/utility/json_conversion.py | girving/geode | 4267bd8d0c1a768ee0b6f57a40a551d8c0965178 | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/utility/json_conversion.py | girving/geode | 4267bd8d0c1a768ee0b6f57a40a551d8c0965178 | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | import json
from numpy import *
from geode import *
to_json_fn = {}
from_json_fn = {}
from_json_fn['int'] = lambda v: int(v)
from_json_fn['real'] = lambda v: real(v)
from_json_fn['float'] = lambda v: float(v)
from_json_fn['string'] = lambda v: str(v)
from_json_fn['bool'] = lambda v: bool(v)
from_json_fn['n... | 25.761062 | 82 | 0.618344 |
946d934aac033af47877b5f2809432c42624515e | 124 | py | Python | xmca/__init__.py | NiclasRieger/mca | 579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9 | [
"MIT"
] | 23 | 2021-05-14T11:05:02.000Z | 2022-03-26T15:40:26.000Z | xmca/__init__.py | NiclasRieger/mca | 579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9 | [
"MIT"
] | 13 | 2021-03-22T11:05:05.000Z | 2022-02-25T17:47:28.000Z | xmca/__init__.py | NiclasRieger/mca | 579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9 | [
"MIT"
] | 11 | 2021-03-22T03:04:37.000Z | 2022-02-24T03:54:25.000Z | from .version import __version__
# __version__ = version
__author__ = 'Niclas Rieger'
__email__ = 'niclasrieger@gmail.com'
| 20.666667 | 36 | 0.782258 |
946e1bad96b68d54c90ade3c0e3ea528c85c1987 | 2,350 | py | Python | tibanna_4dn/core.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | 2 | 2019-10-08T17:36:02.000Z | 2019-10-08T18:42:05.000Z | tibanna_4dn/core.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | null | null | null | tibanna_4dn/core.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | null | null | null | from tibanna_ffcommon.core import API as _API
from .stepfunction import StepFunctionPony
from .stepfunction_cost_updater import StepFunctionCostUpdater
from .vars import (
TIBANNA_DEFAULT_STEP_FUNCTION_NAME,
LAMBDA_TYPE,
IAM_BUCKETS,
DEV_ENV,
PROD_ENV
)
| 34.558824 | 124 | 0.648936 |
946e744db067216acca7174cc9413bd1c9de27ef | 1,262 | py | Python | motor.py | fehlfarbe/vorpal-hexabot-micropython | 129eac0018f291545efa304f9202dded315fba93 | [
"MIT"
] | null | null | null | motor.py | fehlfarbe/vorpal-hexabot-micropython | 129eac0018f291545efa304f9202dded315fba93 | [
"MIT"
] | null | null | null | motor.py | fehlfarbe/vorpal-hexabot-micropython | 129eac0018f291545efa304f9202dded315fba93 | [
"MIT"
] | null | null | null | import pca9685
_DC_MOTORS = ((8, 9, 10), (13, 12, 11), (2, 3, 4), (7, 6, 5))
| 27.434783 | 61 | 0.515055 |
946fcddeae45422d84791902026dee2a591bd902 | 978 | py | Python | chargen.py | celestian/chargen | 7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845 | [
"MIT"
] | 1 | 2018-04-23T00:45:24.000Z | 2018-04-23T00:45:24.000Z | chargen.py | celestian/chargen | 7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845 | [
"MIT"
] | null | null | null | chargen.py | celestian/chargen | 7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*-coding:utf-8-*-
"""chargen
Usage:
chargen.py start project <project>
chargen.py add template <template_file> into <project>
chargen.py (-h | --help)
chargen.py --version
Options:
-h --help Show this screen.
--version Show version.
"""
from docopt import docopt
import c... | 23.285714 | 77 | 0.701431 |
94718b16055ae616596fb158c43a68ad0465fe4b | 6,914 | py | Python | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | 1 | 2015-06-23T03:48:03.000Z | 2015-06-23T03:48:03.000Z | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | null | null | null | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | null | null | null | import sys,os,random
def MakeSystemDict(path, center):
f = open(path)
systemlist = []
for line in f:
systemlist.append(line.rstrip("\n"))
f.close()
systemdict = {}
for x in systemlist:
system = StarSystem(x)
system.load(center)
... | 33.892157 | 122 | 0.448655 |
9472f1d45c073a911013e85819b6ce785223389f | 2,092 | py | Python | orangecontrib/recommendation/rating/base_rating.py | robertcv/orange3-recommendation | db421c32f85f123b1f3058865438df1b996772cd | [
"BSD-2-Clause"
] | 22 | 2016-09-11T11:40:17.000Z | 2019-07-27T21:45:21.000Z | orangecontrib/recommendation/rating/base_rating.py | robertcv/orange3-recommendation | db421c32f85f123b1f3058865438df1b996772cd | [
"BSD-2-Clause"
] | 14 | 2016-08-16T22:19:31.000Z | 2020-12-17T00:03:34.000Z | orangecontrib/recommendation/rating/base_rating.py | robertcv/orange3-recommendation | db421c32f85f123b1f3058865438df1b996772cd | [
"BSD-2-Clause"
] | 19 | 2016-08-16T20:06:57.000Z | 2021-09-16T11:42:11.000Z | from orangecontrib.recommendation import Learner, Model
import numpy as np
__all__ = ["LearnerRecommendation", "ModelRecommendation"]
| 36.701754 | 79 | 0.657744 |
9473f79c4819abb3294b7e94567ee6d53a6be9c6 | 14,480 | py | Python | analyze-pictures/app.py | realnetworks-safr/python-examples | afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf | [
"MIT"
] | 1 | 2020-09-15T15:36:07.000Z | 2020-09-15T15:36:07.000Z | analyze-pictures/app.py | realnetworks-safr/python-examples | afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf | [
"MIT"
] | 12 | 2020-03-03T17:48:22.000Z | 2022-03-12T00:02:51.000Z | analyze-pictures/app.py | realnetworks-safr/python-examples | afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf | [
"MIT"
] | 2 | 2019-08-16T13:01:05.000Z | 2020-06-14T15:04:57.000Z | #!/usr/bin/python3
from datetime import datetime
import os
import shutil
import logging
import base64
import requests
import json
import cv2 as cv
from PIL import Image, ImageEnhance
import pandas as pd
import numpy as np
import math
logging.basicConfig(filename='app.log', filemode='w',level=logging.INFO, format="... | 43.223881 | 193 | 0.617541 |
947433b9a8d5f78f0611c57201560dd8bfa28250 | 229 | py | Python | economy/exc.py | bk62/botter.py | 73799a5c0415bd2b52483f3dd02c37b81c70d631 | [
"MIT"
] | null | null | null | economy/exc.py | bk62/botter.py | 73799a5c0415bd2b52483f3dd02c37b81c70d631 | [
"MIT"
] | null | null | null | economy/exc.py | bk62/botter.py | 73799a5c0415bd2b52483f3dd02c37b81c70d631 | [
"MIT"
] | null | null | null | from discord.ext import commands
| 17.615385 | 58 | 0.820961 |
94748c13b48c015ed744c4825ce449b56551be58 | 3,445 | py | Python | 2015-09-09-calculator/arti.py | EIK-LUG/CodeClubPython | fb0660ad85a7b0a17d33d37d18f8b41ae597e022 | [
"WTFPL"
] | 2 | 2015-09-12T10:11:38.000Z | 2015-09-13T13:18:25.000Z | 2015-09-09-calculator/arti.py | EIK-LUG/CodeClubPython | fb0660ad85a7b0a17d33d37d18f8b41ae597e022 | [
"WTFPL"
] | 2 | 2015-09-12T07:18:15.000Z | 2015-10-07T06:01:56.000Z | 2015-09-09-calculator/arti.py | EIK-LUG/CodeClubPython | fb0660ad85a7b0a17d33d37d18f8b41ae597e022 | [
"WTFPL"
] | 5 | 2015-09-11T11:19:51.000Z | 2018-02-08T18:17:44.000Z | #!/usr/bin/env python3
# This is a simple 4 banger calculator
LICENSE = """DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Arti Zirk <arti.zirk@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, ... | 28.708333 | 111 | 0.628447 |
94796da60c973686297c10aaaafe4c00df0e9db5 | 2,444 | py | Python | runtime/components/Data_Quality/apply_substitution.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 41 | 2020-11-18T10:12:29.000Z | 2022-03-28T21:46:41.000Z | runtime/components/Data_Quality/apply_substitution.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 4 | 2020-12-08T15:28:15.000Z | 2022-02-01T11:40:17.000Z | runtime/components/Data_Quality/apply_substitution.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 14 | 2020-11-18T11:39:17.000Z | 2022-03-21T15:05:11.000Z | from hetdesrun.component.registration import register
from hetdesrun.datatypes import DataType # add your own imports here
from hetdesrun.utils import plotly_fig_to_json_dict
import pandas as pd
def handle_substitutions(original_series, substitution_series):
"""Applies substituion series on raw values
... | 34.422535 | 94 | 0.720949 |
947aad7e403fb4127e29b67ef21419ba51759e96 | 1,047 | py | Python | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | import os
import torch
import numpy as np
from torch.utils.data import TensorDataset, DataLoader
from src.data_preprocessing.witness_complex_offline.config import ConfigWC
from src.datasets.datasets import SwissRoll
if __name__ == "__main__":
n_samples = 5
#
labels = torch.from_numpy(np.array(range(n_sa... | 30.794118 | 82 | 0.69532 |
947ebed65bcada5a3f48803a1f559572a4c5fa9e | 2,688 | py | Python | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 70 | 2020-10-04T09:23:15.000Z | 2022-02-01T09:44:39.000Z | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 148 | 2020-06-05T15:32:12.000Z | 2020-11-01T08:29:01.000Z | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 298 | 2020-10-04T04:27:01.000Z | 2022-03-07T04:02:59.000Z | '''Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty.
The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating for Bob's challenge is the t... | 22.214876 | 203 | 0.669271 |
947efdbc985976ac04f87ceecfcc075b0bbb1d41 | 16,366 | py | Python | src/main.py | elifesciences/update-iam-human | c00a8824f13584bb0f3456252dd9478b6e21c3e7 | [
"MIT"
] | null | null | null | src/main.py | elifesciences/update-iam-human | c00a8824f13584bb0f3456252dd9478b6e21c3e7 | [
"MIT"
] | 1 | 2018-09-18T00:41:53.000Z | 2018-09-19T00:28:33.000Z | src/main.py | elifesciences/update-iam-human | c00a8824f13584bb0f3456252dd9478b6e21c3e7 | [
"MIT"
] | null | null | null | import getpass
import argparse
import boto3
import sys, os, csv
from github import Github
from github.InputFileContent import InputFileContent
import json
from datetime import timedelta
from collections import OrderedDict
from . import utils
from .utils import ensure, ymd, splitfilter, vals, lmap, lfilter, utcnow
MAX_... | 37.280182 | 141 | 0.668459 |
947f2096032e935caa47b5b4ee0ac97865845efd | 3,805 | py | Python | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 - Nokia
#
# 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, sof... | 36.941748 | 77 | 0.673587 |