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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60b2db27faa35c5bbae9711262c54fdad4d8f495 | 1,212 | py | Python | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 23 | 2015-11-26T12:05:45.000Z | 2022-03-17T10:24:22.000Z | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 54 | 2016-07-26T12:44:07.000Z | 2022-02-17T10:08:01.000Z | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 34 | 2015-01-04T07:05:48.000Z | 2022-02-15T10:23:52.000Z | #
# Copyright (C) 2009 Mendix. All rights reserved.
#
SUCCESS = 0
# Starting the Mendix Runtime can fail in both a temporary or permanent way.
# Some of the errors can be fixed with some help of the user.
#
# The default m2ee cli program will only handle a few of these cases, by
# providing additional hints or intera... | 30.3 | 76 | 0.792079 |
60b31fb7e46f9a498f1975750fe02489646c609d | 2,456 | py | Python | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch.utils.data
import torchvision
| 47.230769 | 112 | 0.733713 |
60b3e5f9c1bddecc88bf9ce4ae8e78ecc1b7e1ee | 11,139 | py | Python | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | # dkhomeleague.py
import json
import logging
import os
from string import ascii_uppercase
import pandas as pd
from requests_html import HTMLSession
import browser_cookie3
import pdsheet
def contest_leaderboard(self, contest_id):
"""Gets contest leaderboard"""
url = self.api_url + f'scores/v1/meg... | 33.250746 | 133 | 0.586767 |
60b401f8d464942d7d88868c9047da1188916d43 | 246 | py | Python | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(0.0, 3.0, 0.01)
s = np.sin(2.5 * np.pi * t)
plt.plot(t, s)
plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.title('Sine Wave')
plt.grid(True)
plt.show() | 15.375 | 31 | 0.646341 |
60b4ecd85396e388011990857be8fae61e376084 | 517 | py | Python | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | 1 | 2021-03-16T13:07:29.000Z | 2021-03-16T13:07:29.000Z | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | null | null | null | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | null | null | null | #Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros.
n = float(input('\033[32mDigite o numero:\033[m'))
print('O nmero digitado \033[33m{0:.0f}m\033[m.\n'
'Ele apresentado em centimetros fica \033[33m{0:.2f}cm\033[m.\n'
'Apresentado em milmetros fica \033[33m{0... | 47 | 98 | 0.686654 |
60b50f0934ca9581fa086a588f7ded362261de6d | 795 | py | Python | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 21 08:47:08 2019
@author: dordoloy
"""
import os
import pika
import config
import getpass
publish_fanout() | 22.714286 | 71 | 0.622642 |
60b55902d0598b3b2fa55eabb666b4e4d52752c7 | 16,112 | py | Python | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | <<<<<<< HEAD
# Lint as: python3
=======
>>>>>>> a811a3b7e640722318ad868c99feddf3f3063e36
# Copyright 2020 The Orbit Authors. 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 ... | 32.288577 | 80 | 0.696996 |
60b74cba1803d593d12dfa926f3a269a994bf89a | 705 | py | Python | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from apischema import deserialize, deserializer
from apischema.json_schema import deserialization_schema
# Could be shorten into deserializer(Expression), because class is callable too
assert deserialization_schema(Expression) == {
"$schema": "http://json-schema.org/draft/20... | 25.178571 | 86 | 0.753191 |
60b7ecc0410fa366c1d483830d2676a99b8210cd | 1,509 | py | Python | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 02/12/2011
@author: chra
'''
import csv
from operator import itemgetter
# ----- Funcin media de la notas de los alumnos ----------
# ----------------------------------------------------------
fin = open('alumnos.csv')
lector = csv.DictReader(fin, delimiter=",") # si no se pon... | 29.588235 | 120 | 0.581842 |
60ba59b06c112c09793490d953e6cf3a3ee2e96f | 799 | py | Python | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | 2 | 2021-11-02T04:28:32.000Z | 2021-11-05T14:27:08.000Z | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | null | null | null | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | null | null | null | from src.interpreter.functions.math.add import add
from src.interpreter.functions.math.div import div
from src.interpreter.functions.math.mod import mod
from src.interpreter.functions.math.mul import mul
from src.interpreter.functions.math.pow import pow_func
from src.interpreter.functions.math.sub import sub
| 31.96 | 56 | 0.667084 |
60bb3a202511a6b1b6fac3f7f1b3970bd6850c3c | 367 | py | Python | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | 1 | 2018-01-28T09:38:56.000Z | 2018-01-28T09:38:56.000Z | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | null | null | null | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='pygazetteer',
version='0.1.0',
description='Location extractor by looking up gazetteer',
url='https://github.com/monkey2000/pygazetteer',
license='MIT',
packages=['pygazetteer'],
install_requires=[
'pyahocorasick'
],
zip... | 24.466667 | 63 | 0.643052 |
60bc5e49484474aa3891401d08c7a54d11595b9c | 3,145 | py | Python | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 3 | 2021-07-09T18:34:57.000Z | 2021-08-04T18:05:17.000Z | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 5 | 2022-01-20T00:32:49.000Z | 2022-02-16T23:12:10.000Z | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 2 | 2021-06-15T15:13:07.000Z | 2021-12-08T04:16:36.000Z | ID = {"Worldwide":0,
"AF": 1,
"AL": 2,
"DZ": 3,
"AD": 5,
"AO": 6,
"AI": 7,
"AG": 9,
"AR": 10,
"AM": 11,
"AW": 12,
"AT": 14,
"AZ": 15,
"BS": 16,
"BH": 17,
"BD": 18,
"BB": 19,
"BY": 20,
"BZ": 22,
"BJ": 23,
... | 16.465969 | 20 | 0.275358 |
60bc8d5255a0bd875f4af98e1eec0327e1d5bb7e | 34,771 | py | Python | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | null | null | null | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | 1 | 2021-05-25T16:34:10.000Z | 2021-05-25T16:34:10.000Z | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | null | null | null | """
These classes are a collection of the needed tools to read external data.
The External type objects created by these classes are initialized before
the Stateful objects by functions.Model.initialize.
"""
import re
import os
import warnings
import pandas as pd # TODO move to openpyxl
import numpy as np
import xarr... | 34.156189 | 79 | 0.515516 |
60bd44a6d884dfc054933f1d7828b758d91a71b3 | 15,921 | py | Python | pirates/piratesgui/ChatBar.py | ksmit799/POTCO-PS | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 8 | 2017-01-24T04:33:29.000Z | 2020-11-01T08:36:24.000Z | pirates/piratesgui/ChatBar.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 1 | 2017-03-02T18:05:17.000Z | 2017-03-14T06:47:10.000Z | pirates/piratesgui/ChatBar.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 11 | 2017-03-02T18:46:07.000Z | 2020-11-01T08:36:26.000Z | # File: C (Python 2.4)
from direct.gui.DirectGui import *
from direct.interval.IntervalGlobal import *
from direct.fsm.FSM import FSM
from direct.showbase.PythonUtil import Functor
from pandac.PandaModules import *
from pirates.piratesbase import PiratesGlobals
from pirates.piratesbase import PLocalizer
from pirates.p... | 43.5 | 464 | 0.655172 |
60bd4912fb3c20a7cbfabbd3fdd321346095f54b | 6,610 | py | Python | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from logging import getLogger as getSysLogger
from logging import *
# Some of the build slave environments don't see the... | 36.519337 | 100 | 0.637065 |
60c1a81157e41324b28041d302b03e92ee199d40 | 14,335 | py | Python | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 7 | 2016-05-20T21:56:39.000Z | 2022-02-07T21:09:48.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2019-03-21T16:10:04.000Z | 2019-03-22T17:21:56.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2020-05-19T16:17:17.000Z | 2020-05-19T16:17:17.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** Astronomical Observatory, Ghent University **
# *****************************************************************
## ... | 35.134804 | 209 | 0.548936 |
60c1d48ace52455ffd7fc2885603c6dc3baa53ba | 5,876 | py | Python | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 154 | 2015-02-04T08:41:23.000Z | 2022-03-18T19:39:53.000Z | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 115 | 2015-06-14T13:31:07.000Z | 2022-02-14T23:02:19.000Z | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 87 | 2015-04-18T23:15:18.000Z | 2022-03-18T09:52:06.000Z | # RiveScript-Python
#
# This code is released under the MIT License.
# See the "LICENSE" file for more information.
#
# https://www.rivescript.com/
def get_topic_triggers(rs, topic, thats, depth=0, inheritance=0, inherited=False):
"""Recursively scan a topic and return a list of all triggers.
Arguments:
... | 40.524138 | 107 | 0.651293 |
60c2063c53b34bc28b910dfe0bb280da49581724 | 2,560 | py | Python | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | 1 | 2016-10-24T02:45:11.000Z | 2016-10-24T02:45:11.000Z | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | null | null | null | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | null | null | null | #Copyright 2009 Humanitarian International Services Group
#
#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... | 29.767442 | 98 | 0.75625 |
60c55601d180bba88cdc945fcda09ef1976ad00b | 1,617 | py | Python | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as fin:
long_description = fin.read()
setup(
name='pylint-pytest',
version='1.0.3',
author='Reverb Chu',
... | 33 | 78 | 0.63389 |
60c5712ca1f4ef817490766e027dfd8c59267d52 | 1,637 | py | Python | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | 1 | 2021-05-18T04:35:38.000Z | 2021-05-18T04:35:38.000Z | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | null | null | null | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | 1 | 2021-05-18T04:35:40.000Z | 2021-05-18T04:35:40.000Z | # Reverse TCP Shell in Python For Offensive Security/Penetration Testing Assignments
# Connect on LinkedIn https://www.linkedin.com/in/lismore or Twitter @patricklismore
#=========================================================================================================================================
# Python... | 43.078947 | 166 | 0.508247 |
60c6f3e298d768073d3b87bc2b50e42241d8b8c4 | 6,395 | py | Python | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
INCLUDES = """
#include <openssl/engine.h>
"""
TYPES = """
static const ... | 37.180233 | 79 | 0.792807 |
60c720ca02631a4c8efcc9abc342c50fb241f153 | 1,324 | py | Python | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | import pytest
from httpx import AsyncClient
from conf_test_db import app
from tests.shared.info import category_info, product_info
| 29.422222 | 70 | 0.654834 |
60c83e7959d89b5e5edca7072a51f45a83d6ac45 | 59,840 | py | Python | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 11 | 2020-07-31T00:39:26.000Z | 2022-02-10T05:46:52.000Z | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 1 | 2021-02-08T06:14:07.000Z | 2021-02-22T02:33:30.000Z | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 5 | 2019-12-31T11:03:09.000Z | 2022-01-30T02:16:02.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
_viso2 = sw... | 33.448854 | 155 | 0.670488 |
60c89c536a5a429da0bac1d845d414b2ea221030 | 4,251 | py | Python | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 4 | 2020-07-14T19:45:44.000Z | 2021-08-11T20:15:51.000Z | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 1 | 2020-07-26T03:06:09.000Z | 2020-07-26T03:06:09.000Z | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 1 | 2021-05-28T07:23:40.000Z | 2021-05-28T07:23:40.000Z | # -*- coding: utf-8 -*-
import asyncio
import datetime
import json
import logging
import sys
from typing import Optional
import aiohttp
from aiohttp import ClientSession
from . import __version__
from .errors import (
BadGateway,
BadRequest,
Forbidden,
HTTPException,
InternalServerError,
NotFo... | 29.317241 | 173 | 0.593037 |
60c93dc759e4957c6c02160af6c8d88b4200fc54 | 1,518 | py | Python | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 6 | 2020-07-05T05:15:19.000Z | 2021-01-24T20:17:14.000Z | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | null | null | null | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 2 | 2020-09-14T06:46:37.000Z | 2021-06-15T09:17:21.000Z | '''
What is a Mother Vertex?
A mother vertex in a graph G = (V,E) is a vertex v such that all other vertices in G can be reached by a path from v.
How to find mother vertex?
Case 1:- Undirected Connected Graph : In this case, all the vertices are mother vertices as we can reach to all the other nodes in the graph... | 43.371429 | 178 | 0.729908 |
60ca5ce5e30551afa068c44f1f37df1dba443df8 | 516 | py | Python | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
if __name__ == "__main__":
main()
| 23.454545 | 64 | 0.649225 |
60ca8c56131d2ab13002b353ba23eeec4638f221 | 2,613 | py | Python | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null |
"""
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
"""
import re
import yaml
from html.parser import HTMLParser
from mistune import Renderer
from mechanical_markdown.step import Step
start_token = 'STEP'
end_token = 'END_STEP'
ignore_links_token = 'IGNORE_LINKS'
end_ignore_links_token = 'END_... | 30.034483 | 111 | 0.64026 |
60cb62275d3608a9262e293a2d9784988739e4b8 | 7,082 | py | Python | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import argparse
import sys
from compliance_checker.runner import ComplianceChecker, CheckSuite
from compliance_checker.cf.util import download_cf_standard_name_table
from compliance_checker import __version__
if __name__ == "__main__":
sys.exit(main())... | 48.841379 | 119 | 0.515391 |
60cb8e5c27f24f98943d97e9273f6af1c5fa5149 | 328 | py | Python | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import gettext as _
apphook_pool.register(CategoriesAppHook)
| 23.428571 | 59 | 0.759146 |
60cbf96ec164888707eb2ca83b141b44664c1449 | 821 | py | Python | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | null | null | null | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | 25 | 2018-07-17T10:58:23.000Z | 2018-08-30T11:33:58.000Z | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | 2 | 2018-07-18T10:57:20.000Z | 2020-05-23T04:43:27.000Z | from django.db.models.signals import pre_save
from django.dispatch import receiver
from blacklist import models
from hashlib import sha256
| 31.576923 | 74 | 0.774665 |
60ccc770ca96a11d7b161998731a553fd9e80f74 | 971 | py | Python | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-22 17:48
from django.db import migrations, models
| 33.482759 | 134 | 0.547889 |
60ccdf38e3f7af2b3782dcf2b849f63822752423 | 2,181 | py | Python | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 12 | 2019-05-23T03:55:06.000Z | 2022-02-25T07:11:27.000Z | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 11 | 2020-03-27T18:43:58.000Z | 2021-06-10T18:00:50.000Z | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 9 | 2019-11-15T23:18:44.000Z | 2022-02-10T19:27:37.000Z | import re
# regex for a user or channel mention at the beginning of a message
# example matches: " <@UJQ07L30Q> ", "<#C010P8N1ABB|interns>"
# interactive playground: https://regex101.com/r/2Z7eun/2
MENTION_PATTERN = r"(?:^\s?<@(.*?)>\s?)|(?:^\s?<#(.*?)\|.*?>\s?)"
def get_set_element(_set):
"""get the element fr... | 30.291667 | 78 | 0.643283 |
60ce6d6b59025060fc5b78c3b1b74f61b441a1a2 | 1,058 | py | Python | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | # In Search for the Lost Memory [Explorer Thief] (3526)
# To be replaced with GMS's exact dialogue.
# Following dialogue has been edited from DeepL on JMS's dialogue transcript (no KMS footage anywhere):
# https://kaengouraiu2.blog.fc2.com/blog-entry-46.html
recoveredMemory = 7081
darkLord = 1052001
sm.setSpeakerID(... | 48.090909 | 111 | 0.753308 |
60cf079213b806efdae39b46a5d5e92189e230e8 | 1,404 | py | Python | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | from django.contrib.auth.views import LoginView
from django.urls import path
from student import views
urlpatterns = [
path('studentclick', views.studentclick_view, name='student-click'),
path('studentlogin', LoginView.as_view(
template_name='student/studentlogin.html'), name='studentlogin'),
path... | 52 | 80 | 0.718661 |
60cfe2b25e1fd15d3b1f9eec1ded9e4ee805612a | 10,381 | py | Python | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from aiida.common import NotExistent
from aiida.orm import Dict
from aiida_quantumespresso.calculations.pw import PwCalculation
from aiida_quantumespresso.parsers import QEOutputParsingError
from aiida_quantumespresso.parsers.parse_raw import convert_qe_to_aiida_structure
from aiida_quantumespr... | 47.619266 | 119 | 0.652731 |
60cffac1ca4370e00b0819dac3003373ca8c201a | 361 | py | Python | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models.pluginmodel import CMSPlugin
plugin_pool.register_plugin(SubmenuPlugin)
| 25.785714 | 55 | 0.806094 |
60d008a523955b3331abaa74c2b768ea0d2cf905 | 6,942 | py | Python | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 418 | 2019-06-26T05:55:42.000Z | 2022-03-31T10:46:57.000Z | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 362 | 2019-06-26T20:41:17.000Z | 2022-02-10T16:02:16.000Z | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 229 | 2019-06-29T17:55:33.000Z | 2022-03-14T15:52:58.000Z | import collections
import datetime
import json
import multiprocessing
import os
import subprocess
import sys
import time
_SSHD_BINARY_PATH = "/usr/sbin/sshd"
EnvironmentConfig = collections.namedtuple(
"EnvironmentConfig",
["hosts", "port", "is_chief", "pools", "job_id"])
def _get_available_gpus():
"""R... | 33.699029 | 81 | 0.659896 |
60d29eaedc8f1767e8af8cea16dd1cbc33c8db22 | 2,539 | py | Python | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | null | null | null | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | 1 | 2021-08-18T21:08:06.000Z | 2021-08-18T21:08:06.000Z | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | null | null | null | import datetime
from pydantic import Field
from typing import (
ClassVar,
List,
Dict,
Optional,
)
from smaregipy.base_api import (
BaseServiceRecordApi,
BaseServiceCollectionApi,
)
from smaregipy.utils import NoData, DictUtil
| 37.338235 | 93 | 0.747538 |
60d36c2c07868be1d602edbfc58792e48953ffe7 | 960 | py | Python | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python3
"""
Base-Client Class
This is the parent-class of all client-classes and holds properties and functions they all depend on.
Author: Jason Cabezuela
"""
import src.util.debugger as Debugger
import src.util.configmaker as configmaker
| 27.428571 | 101 | 0.684375 |
60d3ab0d0b30464f05fb6f22999b5abfbd62a774 | 1,575 | py | Python | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from cryptomon.common import Colors
if sys.version_info >= (3, 0):
import io
else:
import StringIO as io
ascii_title = """
/$$$$$$ /$$ /$$ /$$
/$$__ $$ | $$ ... | 37.5 | 93 | 0.258413 |
60d5e102f224ce9da90306668a9ad7d31fe50111 | 1,332 | py | Python | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | 1 | 2022-01-05T13:26:26.000Z | 2022-01-05T13:26:26.000Z | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | null | null | null | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | null | null | null | import cv2
video=cv2.VideoCapture(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.mp4')
#pre trained pedestrian and car classifier
car_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\car.xml')
pedestrian_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.x... | 28.340426 | 94 | 0.712462 |
60d7aa6b6e26e469afd18baf5e09fc751d3bc828 | 1,658 | py | Python | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | 1 | 2018-05-03T06:17:02.000Z | 2018-05-03T06:17:02.000Z | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | 8 | 2018-05-07T16:42:35.000Z | 2022-02-26T03:31:56.000Z | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | null | null | null | # site settings rest api serializers
from rest_framework import serializers
from saleor.wing.models import Wing as Table
| 27.180328 | 86 | 0.581423 |
60d863fc0a0729ad229e95ea37c2cad1dd4545ab | 2,165 | py | Python | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 57 | 2019-11-03T07:47:37.000Z | 2022-03-22T00:41:49.000Z | from . import FishBase
from . import FishGlobals
| 30.069444 | 99 | 0.597229 |
60d8c3596ef6ebab1b92b84940522e5139154989 | 1,550 | py | Python | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
#
# Distributed under terms of the MIT license.
"""
Strategy base class
"""
from abc import ABCMeta, abstractmethod
from tinydb import TinyDB, Query
from node import Node
import json
| 25.833333 | 82 | 0.60129 |
60d8e5a0116e064e77e230eb96c9a8d6cada4db5 | 525 | py | Python | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | '''
Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3,5,6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below N.
'''
from __future__ import print_function
try:
raw_input # Python 2
except NameError:
raw_input = i... | 21 | 73 | 0.638095 |
60d91e2f9fc2f2ed156791ead05310dd7eaf0d26 | 2,017 | py | Python | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | null | null | null | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | 2 | 2019-05-31T23:46:05.000Z | 2019-06-02T06:54:54.000Z | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | null | null | null | import copy
from django.db import NotSupportedError
from django.db.models import Expression
from .fields import mysql_compile_json_path, postgres_compile_json_path, FallbackJSONField
| 41.163265 | 116 | 0.695092 |
60d99db002da009becee8998564d797726db9d1f | 6,460 | py | Python | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | 11 | 2018-02-12T16:57:26.000Z | 2021-03-12T03:04:53.000Z | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | 1 | 2018-02-04T20:53:35.000Z | 2018-02-04T22:08:35.000Z | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | null | null | null | import unittest
import tempfile
import pathlib
import datetime
import warnings
from IPython.testing.globalipapp import start_ipython, get_ipython
import pandas.util.testing as tm
from pandas.core.frame import DataFrame
from pandas.core.series import Series
from pandas import read_excel
import pytest
ip = get_ipytho... | 37.34104 | 126 | 0.658204 |
60d9b92e67e9782a6608f736efa327e02d317901 | 702 | py | Python | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | # https://www.reddit.com/r/dailyprogrammer/comments/3ltee2/20150921_challenge_233_easy_the_house_that_ascii/
import random
import sys
if __name__ == "__main__":
main()
| 21.9375 | 108 | 0.541311 |
60dac391ea8e7b79572392e5f5a6e6cef2504848 | 11,103 | py | Python | usr/callbacks/action/tools.py | uwitec/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | 151 | 2015-01-25T10:25:29.000Z | 2022-03-15T10:04:09.000Z | usr/callbacks/action/tools.py | legendmohe/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | null | null | null | usr/callbacks/action/tools.py | legendmohe/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | 70 | 2015-02-02T02:35:48.000Z | 2021-05-13T09:51:08.000Z | #!/usr/bin/env python
# encoding: utf-8
from __future__ import division
from decimal import Decimal
import subprocess
import threading
import urllib2
import urllib
import httplib
import json
import re
import hashlib
import base64
# import zlib
from lib.command.runtime import UserInput
from lib.helper.CameraHelper ... | 33.442771 | 84 | 0.482482 |
60db218e039d083d014a00cf31bcf97c6c95ef51 | 286 | py | Python | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | #############################
# Collaborators: (enter people or resources who/that helped you)
# If none, write none
#
#
#############################
base = input('Enter the base: ")
height =
area = # Calculate the area of the triangle
print("The area of the triangle is (area).") | 23.833333 | 64 | 0.548951 |
60db6ae3957694fa22eea77ea766c2665fc6212f | 13,015 | py | Python | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 89 | 2015-08-28T14:17:33.000Z | 2022-01-20T16:19:34.000Z | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 24 | 2015-08-28T19:06:22.000Z | 2022-02-21T21:10:13.000Z | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 17 | 2015-08-28T18:56:43.000Z | 2021-09-15T23:15:36.000Z | """
an adaptation of pyopencl's reduction kernel for weighted avarages
like sum(a*b)
mweigert@mpi-cbg.de
"""
from __future__ import print_function, unicode_literals, absolute_import, division
from six.moves import zip
import pyopencl as cl
from pyopencl.tools import (
context_dependent_memoize,
dtype_to_cty... | 28.417031 | 108 | 0.542374 |
60dcfdc60c959c4708ded0468f3983791fbd3721 | 596 | py | Python | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python
import mcpi.minecraft as minecraft
import mcpi.block as block
import random
import time
mc = minecraft.Minecraft.create()
# ----------------------------------------------------------------------
# S E T U P
# ----------------------------------------------------------------------
# Where Am ... | 24.833333 | 86 | 0.513423 |
60de65cd7b893d039ce64092d8888cd693558525 | 831 | py | Python | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | 2 | 2016-09-08T11:39:09.000Z | 2016-11-29T14:04:38.000Z | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | null | null | null | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | 5 | 2017-03-03T03:18:32.000Z | 2018-09-18T02:46:27.000Z | #-*- encoding:utf-8 -*-
from __future__ import print_function
import sys
try:
reload(sys)
sys.setdefaultencoding('utf-8')
except:
pass
import codecs
from textrank4zh import TextRank4Keyword, TextRank4Sentence
text = codecs.open('../test/doc/01.txt', 'r', 'utf-8').read()
tr4w = TextRank4Keyword()
tr4w.an... | 24.441176 | 109 | 0.731649 |
60de82d5bb8ba90b967a1ecc746d150756ee64d4 | 1,833 | py | Python | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 1 | 2018-11-13T06:03:27.000Z | 2018-11-13T06:03:27.000Z | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 1 | 2020-06-12T08:58:58.000Z | 2020-06-12T08:58:58.000Z | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | null | null | null | import random
import uuid
import sys
import json
from faker import Factory
from faker.providers.person.fi_FI import Provider as PersonProvider
fake = Factory.create('fi_FI')
email_by_user = {}
users_by_id = {}
data = json.load(sys.stdin)
anonymize_users(data)
remove_secrets(data)
json.dump(data, sys.stdout, indent=4... | 31.067797 | 67 | 0.582106 |
60ded314d6e25af4b6bb277bc0ff9652a4d9cb93 | 12,252 | py | Python | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 2,350 | 2021-09-12T08:32:50.000Z | 2022-03-31T18:09:36.000Z | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 588 | 2021-09-12T08:49:08.000Z | 2022-03-31T21:02:13.000Z | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 505 | 2021-09-13T13:13:32.000Z | 2022-03-31T15:54:00.000Z | import random
from typing import Optional, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from torch_geometric.utils import coalesce, degree, remove_self_loops
from .num_nodes import maybe_num_nodes
def negative_sampling(edge_index: Tensor,
num_nodes: Optional[Union[int... | 39.395498 | 79 | 0.614675 |
60def5370c10bc67986c4becccbe96488e2d1a66 | 3,924 | py | Python | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | 2 | 2021-10-05T03:09:57.000Z | 2022-01-12T09:50:31.000Z | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | 1 | 2021-05-23T17:10:20.000Z | 2021-05-23T17:10:20.000Z | import sys
if sys.version_info[:2] >= (3, 0):
# pylint: disable=E0611,F0401,I0011
from urllib.request import build_opener
else:
from urllib2 import build_opener
from . import __version__
urls = {
'gdata': "https://www.googleapis.com/youtube/v3/",
'watchv': "http://www.youtube.com/watch?v=%s",
... | 41.305263 | 77 | 0.509429 |
60e2a8760c2ed0b0d0f7dbca153dcadf9a319042 | 4,827 | py | Python | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 2,316 | 2015-06-25T18:51:02.000Z | 2022-03-29T23:31:16.000Z | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 632 | 2015-07-08T19:02:05.000Z | 2022-03-20T03:20:56.000Z | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 486 | 2015-08-12T05:02:45.000Z | 2022-03-27T19:54:02.000Z | # Copyright (C) 2015, 2016 GoSecure Inc.
"""
Telnet Transport and Authentication for the Honeypot
@author: Olivier Bilodeau <obilodeau@gosecure.ca>
"""
from __future__ import annotations
import struct
from twisted.conch.telnet import (
ECHO,
LINEMODE,
NAWS,
SGA,
AuthenticatingTelnetProtocol,
... | 32.18 | 82 | 0.63207 |
60e37ada66e51ab9afb000b29227a5b5f48e9d09 | 6,230 | py | Python | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | import astropy.io.fits as fits
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import obj_data as od
import saphires as saph
from astropy.time import Time
from astropy.visualization import ZScaleInterval, SqrtStretch, ImageNormalize
from matplotlib.backends.backend_pdf import PdfPages
ra = od.ra
d... | 40.193548 | 135 | 0.586035 |
60e50a2d4456ade56ee11c29fccdf4c73a092641 | 5,590 | py | Python | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | 1 | 2015-10-06T21:51:51.000Z | 2015-10-06T21:51:51.000Z | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | null | null | null | """Tests for tools and arithmetics for monomials of distributed polynomials. """
from sympy.polys.monomialtools import (
monomials, monomial_count,
monomial_key, lex, grlex, grevlex,
monomial_mul, monomial_div,
monomial_gcd, monomial_lcm,
monomial_max, monomial_min,
monomial_divides,
Monomi... | 29.114583 | 97 | 0.549911 |
60e53510234906afd7570dd7318d1a436abfb43e | 2,752 | py | Python | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 2,227 | 2019-02-25T09:34:46.000Z | 2022-03-31T21:30:59.000Z | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 1,728 | 2019-02-25T17:18:16.000Z | 2022-03-31T23:49:18.000Z | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 1,624 | 2019-02-28T16:17:38.000Z | 2022-03-31T18:00:02.000Z | import re
import base64
import hmac
import hashlib
import logging
import requests
from datetime import datetime
| 42.338462 | 100 | 0.630087 |
60e59ef3909991b68e7bb0525872e77256366019 | 3,553 | py | Python | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from PIL import ImageGrab
import numpy as np
import cv2
import time
import pyautogui as pg
import DirectInputRoutines as DIR
from LogKey import key_check
last_time = time.time()
one_hot = [0, 0, 0, 0, 0, 0]
hash_dict = {'w':0, 's':1, 'a':2, 'd':3, 'c':4, 'v':5}
X = []
y = []
r... | 32.3 | 110 | 0.627357 |
60e70e427a588cb1cff3bcadb9c8fed3c8764de3 | 825 | py | Python | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | 2 | 2020-06-08T07:29:55.000Z | 2021-05-08T09:34:07.000Z | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | null | null | null | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-05 23:22
from django.db import migrations, models
| 28.448276 | 92 | 0.550303 |
60e7397962091395a87e3dcdedd54da76ffb66e6 | 515 | py | Python | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | 1 | 2015-03-03T15:49:14.000Z | 2015-03-03T15:49:14.000Z | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | 10 | 2015-04-08T14:16:52.000Z | 2021-12-15T16:17:57.000Z | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | null | null | null | from django.template.loaders.base import Loader as BaseLoader
from django.template.base import TemplateDoesNotExist
| 25.75 | 70 | 0.671845 |
60e763dc935a4e4a40e12663f5266d53075d9cc0 | 732 | py | Python | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | import sigvisa.database.db
from sigvisa.database.dataset import *
import sigvisa.utils.geog
cursor = database.db.connect().cursor()
detections, arid2num = read_detections(cursor, 1237680000, 1237680000 + 168 * 3600, arrival_table="leb_arrival", noarrays=False)
last_det = dict()
overlaps = 0
for det in detections:
... | 31.826087 | 153 | 0.669399 |
60e76b8b07e06048ecf1a15c72134fecf5c97346 | 3,227 | py | Python | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 109 | 2018-07-02T13:52:26.000Z | 2019-09-23T02:33:24.000Z | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 36 | 2018-08-15T19:05:09.000Z | 2019-07-14T17:51:20.000Z | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 28 | 2018-08-23T12:46:06.000Z | 2019-09-08T14:19:09.000Z | import pytest
from onnx import TensorProto
from onnx import helper as oh
import finn.core.onnx_exec as oxe
from finn.core.modelwrapper import ModelWrapper
from finn.transformation.streamline.reorder import MoveTransposePastJoinAdd
from finn.util.basic import gen_finn_dt_tensor
# Permutation of transpose node
| 33.968421 | 84 | 0.707468 |
60e7afd023af256d856d33c530545d41d0b53bb0 | 1,537 | py | Python | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 1 | 2020-09-23T21:40:16.000Z | 2020-09-23T21:40:16.000Z | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | null | null | null | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 3 | 2020-07-11T19:18:12.000Z | 2021-08-14T17:43:06.000Z | import json
from lib import authz
from lib.logger import logger
from lib.exclusions import exclusions, state_machine
def can_requirement_be_remediated(requirement):
"""
Mehtod to validate whether a requirement is capable of being remediated.
:param requirement: The dict representing the requirement to ... | 37.487805 | 96 | 0.739753 |
60e7fd2a428e03eaeee1467baac8a69ce2121456 | 9,545 | py | Python | ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py | Syndra/Ambari-source | 717526b2bf3636622212b14de0d3d298a20c7370 | [
"Apache-2.0"
] | 1 | 2021-06-24T07:59:25.000Z | 2021-06-24T07:59:25.000Z | ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py | Syndra/Ambari-source | 717526b2bf3636622212b14de0d3d298a20c7370 | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py | Syndra/Ambari-source | 717526b2bf3636622212b14de0d3d298a20c7370 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
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")... | 62.796053 | 497 | 0.466841 |
60e862c41a954427496e89a9970f3280bae259e6 | 2,158 | py | Python | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | import quandl
import math
import numpy as np
from sklearn import preprocessing, cross_validation, svm
from sklearn.linear_model import LinearRegression
import pickle
import datetime
from matplotlib import style
import matplotlib.pyplot as plot
# Config
isLoadFromLocal = True
quandl.ApiConfig.api_key = '76eCnz6z9XTH8nf... | 26.975 | 111 | 0.70899 |
60e88e1b2de1fea540026e9d706f57f0d6656209 | 7,824 | py | Python | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | 1 | 2018-05-17T09:48:53.000Z | 2018-05-17T09:48:53.000Z | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | 4 | 2018-05-12T10:43:03.000Z | 2021-02-24T11:17:44.000Z | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | null | null | null |
tagtypes = {
'chad': (IccProfile.read_s15Fixed16ArrayType),
'cprt': (IccProfile.read_string),
'desc': (IccProfile.read_string),
'dmdd': (IccProfile.read_string),
'tech': (IccProfile.read_signature_type),
'vued': (IccProfile.read_string),
'wtpt': (IccProfile.read_xyztype),
'bkpt': (IccPr... | 45.225434 | 121 | 0.597393 |
60e8913b47be138bc8536280cabcc4db4221cdf3 | 1,179 | py | Python | challenges/binary_search/test_binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | challenges/binary_search/test_binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | 2 | 2020-09-24T13:13:49.000Z | 2021-06-25T15:15:35.000Z | challenges/binary_search/test_binary_search.py | grandquista/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | from .binary_search import binary_search
| 23.58 | 67 | 0.721798 |
60e990ef7bf30b20330df7c11df2bae657a8aa9f | 88 | py | Python | Module2.py | Cipalex/session3 | fe0866db54d719687f5a89a71ddc17657c91089e | [
"MIT"
] | null | null | null | Module2.py | Cipalex/session3 | fe0866db54d719687f5a89a71ddc17657c91089e | [
"MIT"
] | null | null | null | Module2.py | Cipalex/session3 | fe0866db54d719687f5a89a71ddc17657c91089e | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
print('Module 2') | 14.666667 | 28 | 0.579545 |
60ead80e847ae9dc084472d4e5417a3a4311cbff | 9,413 | py | Python | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 29 16:40:53 2017
@author: Sergio
"""
#Analisis de variables
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import ensemble, tree, linear_model
from sklearn.model_selection import train_test_split, cr... | 41.46696 | 147 | 0.739403 |
60eb25016e8dffa48a7ee4e49cffca99635d22f2 | 566 | py | Python | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | import random
import sys
ntables = 100
ncols = 100
nrows = 10000
for t in range(ntables):
printstderr(f'{t}/{ntables}')
print(f"create table x ({','.join(['x int'] * ncols)});")
for r in range(nrows):
print(f"insert into _last ({','.join(['x'] * ncols)}) values (", end='')
for c in range(ncols):
... | 21.769231 | 76 | 0.609541 |
60ebcdffbce13db306c3a548fbb31af96bfe8e29 | 1,549 | py | Python | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | null | null | null | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | 1 | 2018-10-31T03:14:05.000Z | 2018-10-31T03:14:05.000Z | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
# Tests extension install/enable
| 24.587302 | 70 | 0.713363 |
60ec05a1e04f7befa5818096872bdb308d2b1dde | 4,552 | py | Python | wgskex/worker/netlink.py | moepman/wgskex | 7a931088b5910f8034ad5a1362777e08c47c42fe | [
"0BSD"
] | 2 | 2021-01-05T23:42:35.000Z | 2021-10-03T14:12:30.000Z | wgskex/worker/netlink.py | moepman/wgskex | 7a931088b5910f8034ad5a1362777e08c47c42fe | [
"0BSD"
] | null | null | null | wgskex/worker/netlink.py | moepman/wgskex | 7a931088b5910f8034ad5a1362777e08c47c42fe | [
"0BSD"
] | null | null | null | import hashlib
import logging
import re
from dataclasses import dataclass
from datetime import datetime, timedelta
from textwrap import wrap
from typing import Dict, List
from pyroute2 import IPRoute, NDB, WireGuard
from wgskex.common.utils import mac2eui64
logger = logging.getLogger(__name__)
# TODO make loglevel c... | 30.756757 | 115 | 0.639719 |
60ec772a2bff1ce4c7f82d3ad31a4b3889b15287 | 708 | py | Python | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routes import items
import config
from constants import *
config.parse_args()
app = FastAPI(
title="API",
description="API boilerplate",
version="1.0.0",
openapi_tags=API_TAGS_METADATA,
)
app.add_midd... | 18.153846 | 82 | 0.686441 |
60ed370b9d6be678d96e0ec349072e5fb104c1f2 | 1,582 | py | Python | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.html import mark_safe
# Create your models here.
| 35.954545 | 91 | 0.689633 |
60ed6b24088a86522dceda37eeecc0306f7958dc | 1,335 | py | Python | scanBase/migrations/0003_ipsection.py | wsqy/sacn_server | e91a41a71b27926fbcfbe3f22bbb6bbc61b39461 | [
"Apache-2.0"
] | null | null | null | scanBase/migrations/0003_ipsection.py | wsqy/sacn_server | e91a41a71b27926fbcfbe3f22bbb6bbc61b39461 | [
"Apache-2.0"
] | null | null | null | scanBase/migrations/0003_ipsection.py | wsqy/sacn_server | e91a41a71b27926fbcfbe3f22bbb6bbc61b39461 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-16 13:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 40.454545 | 140 | 0.612734 |
60edce602ee84c179651834e36a3725524081131 | 3,522 | py | Python | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 18 | 2021-12-22T09:41:24.000Z | 2022-03-19T12:54:30.000Z | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | null | null | null | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 4 | 2021-12-26T11:31:46.000Z | 2022-03-28T07:55:45.000Z | import argparse
import numpy as np
import os
import torch
from transformers import AutoTokenizer, AutoConfig, Trainer, TrainingArguments
from model import RobertaForStsRegression
from dataset import KlueStsWithSentenceMaskDataset
from utils import read_json, seed_everything
from metric import compute_metrics
if __... | 37.073684 | 87 | 0.727144 |
60edf40403e6f66a0e02912003729be0d59531bb | 1,760 | py | Python | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 28 | 2015-03-26T10:25:31.000Z | 2022-01-31T21:59:11.000Z | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 3 | 2015-09-14T04:10:04.000Z | 2020-01-29T03:52:05.000Z | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 9 | 2015-09-10T08:11:37.000Z | 2020-11-08T10:41:51.000Z | import unittest
from nanoservice import Responder
from nanoservice import Requester
if __name__ == '__main__':
unittest.main()
| 29.830508 | 62 | 0.630682 |
60f1a087b3bdc065cf389f51df6915d8dc0b8312 | 563 | py | Python | airtech_api/flight/models.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 1 | 2019-04-04T12:27:55.000Z | 2019-04-04T12:27:55.000Z | airtech_api/flight/models.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 34 | 2019-03-26T11:18:17.000Z | 2022-02-10T08:12:36.000Z | airtech_api/flight/models.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | null | null | null | from airtech_api.utils.auditable_model import AuditableBaseModel
from django.db import models
# Create your models here.
| 28.15 | 73 | 0.706927 |
60f2562d19bb7ab823ff8910d39c430258f1cd35 | 723 | py | Python | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
if __name__ == "__main__":
gauss_1 = gaussian(10, 8, 2) # 0.12098536225957168
gauss_2 = gaussian(10, 10, 2) # 0.19947114020071635
print("Gauss(10, 8, 2): {}".format(gauss_1))
print("Gauss(10, 10, 2): {}".format(gauss_2))
#
mean = 0
var... | 23.322581 | 78 | 0.580913 |
60f26fe4816d83e373acca7a0999becfe86e2ce4 | 9,029 | py | Python | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 1,682 | 2015-06-15T11:42:03.000Z | 2022-03-29T12:40:35.000Z | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 10 | 2017-06-22T11:35:21.000Z | 2022-02-26T17:37:42.000Z | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 493 | 2015-07-05T09:05:09.000Z | 2022-03-28T03:33:33.000Z | import unittest
if __name__ == '__main__':
unittest.main()
| 27.95356 | 84 | 0.507144 |
60f465712817804b710d37a55f88faebafc8ed3c | 1,675 | py | Python | bot_components/configurator.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | 3 | 2021-11-05T20:22:05.000Z | 2022-02-14T12:12:31.000Z | bot_components/configurator.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | null | null | null | bot_components/configurator.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | null | null | null | import json
from typing import TypedDict
from .bot_emoji import AdditionalEmoji
configurator = Configurator()
configurator.load()
| 21.202532 | 69 | 0.666269 |
60f6336cf78fe6b4d87ec03f5cf82a49ade1394b | 3,493 | py | Python | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | 1 | 2021-04-10T08:21:21.000Z | 2021-04-10T08:21:21.000Z | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | null | null | null | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | null | null | null | from scipy.spatial import distance
from scipy import ndimage
import matplotlib.pyplot as plt
import torch
from scipy import stats
import numpy as np
| 30.373913 | 96 | 0.590896 |
60f7e54acc60354d75596811ff04f18911fc24eb | 6,362 | py | Python | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
| 40.265823 | 185 | 0.365923 |
60f8300c3b1d0bfc0e3ab0efad7d54c27160ef0c | 1,053 | py | Python | 2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py | essepuntato/comp-think | 3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6 | [
"BSD-2-Clause"
] | 19 | 2017-07-03T11:55:33.000Z | 2021-10-17T10:21:24.000Z | 2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py | essepuntato/comp-think | 3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6 | [
"BSD-2-Clause"
] | 1 | 2017-12-21T10:52:56.000Z | 2018-06-06T13:59:13.000Z | 2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py | essepuntato/comp-think | 3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6 | [
"BSD-2-Clause"
] | 4 | 2017-11-13T09:29:06.000Z | 2019-05-09T03:29:49.000Z |
if __name__ == "__main__":
bibliographic_entry = "Peroni, S., Osborne, F., Di Iorio, A., Nuzzolese, A. G., Poggi, F., Vitali, F., " \
"Motta, E. (2017). Research Articles in Simplified HTML: a Web-first format for " \
"HTML-based scholarly articles. PeerJ Comput... | 47.863636 | 110 | 0.674264 |
60f86292339dc07295795b770971581f3a845840 | 2,855 | py | Python | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import responses
from selenium import webdriver
# This file contains/references the default JS
# used to provide functions dealing with input/output
SCRIPT_RUNNER = "runner.html"
ENCODING = 'utf-8'
PAGE_LOAD_TIMEOUT = 5
PAGE_LOAD_TIMEOUT_MS = PAGE_LOAD_TIMEOUT * 1000
capabilities = webdriver.D... | 31.032609 | 79 | 0.652539 |
60f89950c5e281ca1dca03166764cafad747aec6 | 1,490 | py | Python | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | null | null | null | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | null | null | null | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | 1 | 2018-09-28T08:59:38.000Z | 2018-09-28T08:59:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
VALID_HISTORY_FIELDS = [
'datetime', 'open', 'close', 'high', 'low', 'total_turnover', 'volume',
'acc_net_value', 'discount_rate', 'unit_net_value',
'limit_up', 'limit_down', 'open_interest', 'basis_spread', 'settlement', 'prev_settlement'
]
VALID_GET_PRICE_FI... | 25.689655 | 94 | 0.619463 |
60f8eaaad292345c3bccc32bf4de41d8a5ec6e07 | 9,830 | py | Python | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 114 | 2019-05-31T03:54:05.000Z | 2022-03-28T06:37:27.000Z | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 7 | 2019-08-12T01:35:22.000Z | 2020-09-23T17:32:46.000Z | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 20 | 2019-06-03T05:33:10.000Z | 2022-02-04T19:34:41.000Z | """
Simple pre-processing for PeerRead papers.
Takes in JSON formatted data from ScienceParse and outputs a tfrecord
Reference example:
https://github.com/tensorlayer/tensorlayer/blob/9528da50dfcaf9f0f81fba9453e488a1e6c8ee8f/examples/data_process/tutorial_tfrecord3.py
"""
import argparse
import glob
import os
import... | 33.896552 | 132 | 0.662665 |
60f9b711d1be6899f182566e81c346882c7e82b3 | 19 | py | Python | app/packageB/__init__.py | An7ar35/python-app-skeleton-structure | 9060411bd32840c6510ad8fe18dcdc097c07b511 | [
"MIT"
] | null | null | null | app/packageB/__init__.py | An7ar35/python-app-skeleton-structure | 9060411bd32840c6510ad8fe18dcdc097c07b511 | [
"MIT"
] | null | null | null | app/packageB/__init__.py | An7ar35/python-app-skeleton-structure | 9060411bd32840c6510ad8fe18dcdc097c07b511 | [
"MIT"
] | null | null | null | __all__=['module1'] | 19 | 19 | 0.736842 |
60fad164495b1d30558324f3422b6ab9ad4d496c | 5,268 | py | Python | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | 6 | 2018-05-07T04:04:58.000Z | 2021-05-15T17:44:16.000Z | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | null | null | null | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | 2 | 2017-05-27T17:06:23.000Z | 2020-08-26T17:57:10.000Z | from pygame import Surface, font
from copy import copy
from random import randint, choice
import string
from lib.transactionButton import TransactionButton
SHOP_PREFIX = ["archer", "baker", "fisher", "miller", "rancher", "robber"]
SHOP_SUFFIX = ["cave", "creek", "desert", "farm", "field", "forest", "hill", "lake", "m... | 41.480315 | 137 | 0.650721 |
60fb27a39e6c08f8aae7d5554b69bcd58cf5b1d9 | 2,047 | py | Python | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | import logging
import numpy as np
import core.dataflow as dtf
import helpers.unit_test as hut
_LOG = logging.getLogger(__name__)
| 31.984375 | 76 | 0.616512 |
60fb78d100400013bb9e1879a2d59065d01b4f6b | 4,478 | py | Python | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | import tkinter.messagebox
from tkinter import *
import tkinter as tk
from tkinter import filedialog
import numpy
import pytesseract #Python wrapper for Google-owned OCR engine known by the name of Tesseract.
import cv2
from PIL import Image, ImageTk
import os
root = tk.Tk()
root.title("Object Character Recognizer")
ro... | 44.336634 | 209 | 0.692497 |
60fbe7657269c996fc3948f64ef4c1f61caa8318 | 881 | bzl | Python | third_party/nasm/workspace.bzl | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 54 | 2017-06-17T14:07:48.000Z | 2022-03-29T02:11:20.000Z | third_party/nasm/workspace.bzl | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 19 | 2021-12-28T12:44:55.000Z | 2022-01-13T08:11:28.000Z | third_party/nasm/workspace.bzl | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 11 | 2018-04-19T22:36:01.000Z | 2021-08-02T08:44:43.000Z | """loads the nasm library, used by TF."""
load("//third_party:repo.bzl", "tf_http_archive")
| 48.944444 | 237 | 0.694665 |
60fc4c563a78f035d637363b6ec3e80079aa3d28 | 10,095 | py | Python | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
# reserved. See files LICENSE and NOTICE for details.
#
# This file is part of CEED, a collection of benchmarks, miniapps, software
# libraries and APIs for efficient h... | 28.597734 | 81 | 0.470134 |
60fe83ebf52b160eaac4df2f49fea7ababebb7f8 | 1,659 | py | Python | esmvalcore/cmor/_fixes/cmip6/cesm2.py | aperezpredictia/ESMValCore | d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2 | [
"Apache-2.0"
] | 1 | 2019-11-28T13:09:42.000Z | 2019-11-28T13:09:42.000Z | esmvalcore/cmor/_fixes/cmip6/cesm2.py | aperezpredictia/ESMValCore | d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2 | [
"Apache-2.0"
] | null | null | null | esmvalcore/cmor/_fixes/cmip6/cesm2.py | aperezpredictia/ESMValCore | d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2 | [
"Apache-2.0"
] | 1 | 2019-11-29T00:50:30.000Z | 2019-11-29T00:50:30.000Z | """Fixes for CESM2 model."""
from ..fix import Fix
from ..shared import (add_scalar_depth_coord, add_scalar_height_coord,
add_scalar_typeland_coord, add_scalar_typesea_coord)
| 20.481481 | 74 | 0.540084 |
60fea0a23e4a5ea1e75b9b0eb479df0b1f05f8bb | 707 | py | Python | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 11 | 2018-02-25T16:20:16.000Z | 2021-07-27T02:46:09.000Z | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 1 | 2018-12-14T19:56:16.000Z | 2018-12-16T22:09:30.000Z | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 3 | 2017-05-05T03:23:17.000Z | 2019-11-11T01:39:25.000Z | from YouTubeFacesDB import generate_ytf_database
###############################################################################
# Create the dataset
###############################################################################
generate_ytf_database(
directory= '../data',#'/scratch/vitay/Datasets/YouTubeFaces'... | 47.133333 | 95 | 0.550212 |
60ff05c6f96bea8d8b81dd6255359543dc3d93ad | 1,562 | py | Python | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | 2 | 2017-01-20T15:26:25.000Z | 2017-08-03T04:38:08.000Z | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | from freezegun import freeze_time
from rest_framework import test
from waldur_mastermind.billing.tests.utils import get_financial_report_url
from waldur_mastermind.invoices import models as invoice_models
from waldur_mastermind.invoices.tests import factories as invoice_factories
from waldur_mastermind.invoices.tests ... | 37.190476 | 80 | 0.68822 |
60ff33dc263000945ad4491d74e8e10a35657808 | 16,741 | py | Python | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 39.206089 | 88 | 0.696792 |