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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9aa0a86fc034faf07525b543313701f15dfaa4e4 | 4,526 | py | Python | datasets/datasets.py | rioyokotalab/ecl-isvr | ae274b1b81b1d1c10db008140c477f5893a0c1c3 | [
"BSD-4-Clause-UC"
] | null | null | null | datasets/datasets.py | rioyokotalab/ecl-isvr | ae274b1b81b1d1c10db008140c477f5893a0c1c3 | [
"BSD-4-Clause-UC"
] | null | null | null | datasets/datasets.py | rioyokotalab/ecl-isvr | ae274b1b81b1d1c10db008140c477f5893a0c1c3 | [
"BSD-4-Clause-UC"
] | 2 | 2021-09-30T02:13:40.000Z | 2021-12-14T07:33:28.000Z | #! -*- coding:utf-8
from typing import Callable, List, Optional
import numpy as np
import torch
import torchvision
__all__ = ["CIFAR10", "FashionMNIST"]
| 36.208 | 87 | 0.527176 |
9aa249f279f7113e5bf54c4bf46eea1716af9bd2 | 1,819 | py | Python | API/Segmentation_API/detectron_seg.py | rogo96/Background-removal | e301d288b73074940356fa4fe9c11f11885dc506 | [
"MIT"
] | 40 | 2020-09-16T02:22:30.000Z | 2021-12-22T11:30:49.000Z | API/Segmentation_API/detectron_seg.py | ganjbakhshali/Background-removal | 39691c0044b824e8beab13e44f2c269e309aec72 | [
"MIT"
] | 6 | 2020-09-18T02:59:11.000Z | 2021-09-06T15:44:33.000Z | API/Segmentation_API/detectron_seg.py | ganjbakhshali/Background-removal | 39691c0044b824e8beab13e44f2c269e309aec72 | [
"MIT"
] | 14 | 2020-11-06T09:26:25.000Z | 2021-10-20T08:00:48.000Z | from detectron2 import model_zoo
from detectron2.engine import DefaultPredictor
from detectron2.config import get_cfg
from detectron2.utils.visualizer import Visualizer
from detectron2.data import MetadataCatalog
import torch
import numpy as np
import cv2
| 31.912281 | 124 | 0.6663 |
9aa39e5e7763187b713ab547d0e364010f1b3d6f | 106 | py | Python | examples/plugin_example/setup.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 423 | 2021-03-22T08:45:12.000Z | 2022-03-31T21:05:53.000Z | examples/plugin_example/setup.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 1 | 2022-02-23T08:53:24.000Z | 2022-03-23T14:11:54.000Z | examples/plugin_example/setup.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 9 | 2021-03-26T14:20:07.000Z | 2022-03-24T13:17:06.000Z | from setuptools import setup
setup(
name="example-advanced-package", version="0.0.0", packages=[],
)
| 17.666667 | 66 | 0.698113 |
9aa3bdf68ace18fc9d168671cbe55ba44bdbac29 | 416 | py | Python | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | 10 | 2017-02-05T12:15:19.000Z | 2020-05-20T14:33:04.000Z | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | null | null | null | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | 3 | 2017-04-02T13:00:28.000Z | 2020-06-13T23:34:37.000Z | from distutils.core import setup
setup(
name='pyASA',
packages=['pyASA'],
version='0.1.0',
description='Wrapper for the Cisco ASA REST API',
author='xpac',
author_email='bjoern@areafunky.net',
url='https://github.com/xpac1985/pyASA',
download_url='https://github.com/xpac1985/pyASA/tarba... | 27.733333 | 67 | 0.646635 |
9aa3ca73beed1f30ce5fdf99995b03ee7f17a719 | 2,441 | py | Python | Client.py | fimmartins/qpid_protobuf_python | b1411088e74b48347aeeaecdf84bbf9c7c9f7662 | [
"Apache-2.0"
] | 1 | 2015-12-15T19:21:26.000Z | 2015-12-15T19:21:26.000Z | Client.py | fimmartins/qpid_protobuf_python | b1411088e74b48347aeeaecdf84bbf9c7c9f7662 | [
"Apache-2.0"
] | null | null | null | Client.py | fimmartins/qpid_protobuf_python | b1411088e74b48347aeeaecdf84bbf9c7c9f7662 | [
"Apache-2.0"
] | null | null | null | from Qpid import QpidConnection
from mxt1xx_pb2 import *
from commands_pb2 import *
from QpidTypes import *
from qpid.messaging import *
#doc http://qpid.apache.org/releases/qpid-0.14/apis/python/html/
#examples https://developers.google.com/protocol-buffers/docs/pythontutorial
qpidCon = QpidConnection('192.168.0.78... | 31.294872 | 114 | 0.679639 |
9aa4eade5a06a5cb47e49505af09bdb59f7f1c8a | 1,574 | py | Python | run_all.py | EinariTuukkanen/line-search-comparison | 7daa38779017f26828caa31a53675c8223e6ab8e | [
"MIT"
] | null | null | null | run_all.py | EinariTuukkanen/line-search-comparison | 7daa38779017f26828caa31a53675c8223e6ab8e | [
"MIT"
] | null | null | null | run_all.py | EinariTuukkanen/line-search-comparison | 7daa38779017f26828caa31a53675c8223e6ab8e | [
"MIT"
] | null | null | null | import numpy as np
from example_functions import target_function_dict
from line_search_methods import line_search_dict
from main_methods import main_method_dict
from config import best_params
from helpers import generate_x0
np.warnings.filterwarnings('ignore', category=RuntimeWarning)
for theta in best_params:
... | 34.217391 | 74 | 0.670902 |
9aa4fd6241fe5ed3a825608b2a7990cea4c0d1af | 5,299 | py | Python | bin/runner.py | ColorOfLight/ML-term-project | 047b22fcdd8df7a18abd224ccbf23ae5d981fc97 | [
"MIT"
] | null | null | null | bin/runner.py | ColorOfLight/ML-term-project | 047b22fcdd8df7a18abd224ccbf23ae5d981fc97 | [
"MIT"
] | null | null | null | bin/runner.py | ColorOfLight/ML-term-project | 047b22fcdd8df7a18abd224ccbf23ae5d981fc97 | [
"MIT"
] | null | null | null | # Load Packages
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn.model_selection import GridSearchCV, cross_val_score
from sklearn.metrics import classification_report
from plots import draw_corr_heatmap
import seaborn as sns
... | 32.115152 | 115 | 0.684846 |
9aa693424bf8bc328cb722f9e8651b7867acfe8a | 1,346 | py | Python | api/app.py | t-kigi/nuxt-chalice-aws-app-template | d413752004976911938d2fc26aa864ddae91a34f | [
"MIT"
] | null | null | null | api/app.py | t-kigi/nuxt-chalice-aws-app-template | d413752004976911938d2fc26aa864ddae91a34f | [
"MIT"
] | null | null | null | api/app.py | t-kigi/nuxt-chalice-aws-app-template | d413752004976911938d2fc26aa864ddae91a34f | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
nuxt-chalice-api
"""
import os
from chalice import (
Chalice, CognitoUserPoolAuthorizer,
CORSConfig
)
from chalicelib import aws
from chalicelib.env import store
stage = store.mutation(
'chalilce.stage', os.environ.get('STAGE', 'local'))
appname = os.env... | 22.433333 | 70 | 0.704309 |
9aa815cea217ed0284d392142fbc2dadb16b41d8 | 2,186 | py | Python | examples/plotting/plot_with_matplotlib.py | crzdg/acconeer-python-exploration | 26c16a3164199c58fe2940fe7050664d0d0e1161 | [
"BSD-3-Clause-Clear"
] | null | null | null | examples/plotting/plot_with_matplotlib.py | crzdg/acconeer-python-exploration | 26c16a3164199c58fe2940fe7050664d0d0e1161 | [
"BSD-3-Clause-Clear"
] | null | null | null | examples/plotting/plot_with_matplotlib.py | crzdg/acconeer-python-exploration | 26c16a3164199c58fe2940fe7050664d0d0e1161 | [
"BSD-3-Clause-Clear"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from acconeer.exptool import configs, utils
from acconeer.exptool.clients import SocketClient, SPIClient, UARTClient
if __name__ == "__main__":
main()
| 26.987654 | 77 | 0.682068 |
9aa888a27862f3097e55339b5958acdbaec12723 | 437 | py | Python | kryptobot/bots/multi_bot.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 24 | 2018-05-29T13:44:36.000Z | 2022-03-12T20:41:45.000Z | kryptobot/bots/multi_bot.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 23 | 2018-07-08T02:31:18.000Z | 2020-06-02T04:07:49.000Z | kryptobot/bots/multi_bot.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 14 | 2018-08-10T15:44:27.000Z | 2021-06-14T07:14:52.000Z | from .bot import Bot
| 24.277778 | 54 | 0.606407 |
9aa8e28e915cdb48539530ca48ffdc1fa280bc82 | 140 | py | Python | setup.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 27 | 2018-06-04T19:11:42.000Z | 2022-02-23T22:46:39.000Z | setup.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 7 | 2018-06-09T15:27:51.000Z | 2021-03-11T20:00:35.000Z | setup.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 3 | 2018-07-29T10:20:02.000Z | 2021-11-18T19:55:07.000Z | #!/usr/bin/env python
"""Setup file for the ``mixt`` module. Configuration is in ``setup.cfg``."""
from setuptools import setup
setup()
| 15.555556 | 76 | 0.678571 |
9aa95eb6fe52df130917d5af87f7b5c65c75b243 | 691 | py | Python | app/accounts/views/user_type.py | phessabi/eshop | 6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb | [
"Apache-2.0"
] | 1 | 2020-02-04T21:18:31.000Z | 2020-02-04T21:18:31.000Z | app/accounts/views/user_type.py | phessabi/eshop | 6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb | [
"Apache-2.0"
] | 12 | 2020-01-01T11:46:33.000Z | 2022-03-12T00:10:01.000Z | app/accounts/views/user_type.py | phessabi/eshop | 6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb | [
"Apache-2.0"
] | 1 | 2020-02-18T11:12:48.000Z | 2020-02-18T11:12:48.000Z | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
| 26.576923 | 54 | 0.570188 |
9aa976fa66600077fd0293cccc1c6dcd3ade5f91 | 9,390 | py | Python | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shreejitverma/Data-Scientist | 03c06936e957f93182bb18362b01383e5775ffb1 | [
"MIT"
] | 2 | 2022-03-12T04:53:03.000Z | 2022-03-27T12:39:21.000Z | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 2 | 2022-03-12T04:52:21.000Z | 2022-03-27T12:45:32.000Z | # Thinking probabilistically-- Discrete variables!!
# Statistical inference rests upon probability. Because we can very rarely say anything meaningful with absolute certainty from data, we use probabilistic language to make quantitative statements about data. In this chapter, you will learn how to think probabilistical... | 47.908163 | 812 | 0.760809 |
9aacaa2c9c98de085aff50585e25fcd2964d6c96 | 1,008 | py | Python | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | '''
This is an abstract example of Extracting in an ETL pipeline.
Inspired from the "Introduction to Data Engineering" course on Datacamp.com
Author: Alex Nakagawa
'''
import requests
# Fetch the Hackernews post
resp = requests.get("https://hacker-news.firebaseio.com/v0/item/16222426.json")
# Print the response par... | 30.545455 | 79 | 0.779762 |
9aacd4bc00b3363cbb5a9d413afa93f29eedb771 | 531 | py | Python | python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | 1 | 2022-03-06T03:49:31.000Z | 2022-03-06T03:49:31.000Z | python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | """
*
J , S . S ? .
- Example 1
Input : J = "aA", S = "aAAbbbb"
Output : 3
- Example 2
Input : J = "z", S = "ZZ"
Output : 0
"""
import collections
if __name__ == '__main__':
solution = Solution()
print(solution.numJewelsInStones("aA", "aAAbbbb")) | 19.666667 | 55 | 0.585687 |
9aad0121a197a064fa70a4456dc468491585ad3b | 774 | py | Python | migrations/versions/e1c435b9e9dc_.py | vipshae/todo-lister | ca639a3efcc243bebe132ca43c1917a28d4e83a6 | [
"MIT"
] | null | null | null | migrations/versions/e1c435b9e9dc_.py | vipshae/todo-lister | ca639a3efcc243bebe132ca43c1917a28d4e83a6 | [
"MIT"
] | null | null | null | migrations/versions/e1c435b9e9dc_.py | vipshae/todo-lister | ca639a3efcc243bebe132ca43c1917a28d4e83a6 | [
"MIT"
] | null | null | null | """empty message
Revision ID: e1c435b9e9dc
Revises: 2527092d6a89
Create Date: 2020-06-11 14:22:00.453626
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e1c435b9e9dc'
down_revision = '2527092d6a89'
branch_labels = None
depends_on = None
| 23.454545 | 65 | 0.652455 |
9aad26c087264dde6976cf7bacd6c4bf3d397a51 | 1,345 | py | Python | test/test_quilted_contacts_list.py | cocoroutine/pyquilted | dd8644043deec17608e00f46e3ac4562b8879603 | [
"MIT"
] | 1 | 2019-02-21T20:10:37.000Z | 2019-02-21T20:10:37.000Z | test/test_quilted_contacts_list.py | cocoroutine/pyquilted | dd8644043deec17608e00f46e3ac4562b8879603 | [
"MIT"
] | null | null | null | test/test_quilted_contacts_list.py | cocoroutine/pyquilted | dd8644043deec17608e00f46e3ac4562b8879603 | [
"MIT"
] | null | null | null | import unittest
from pyquilted.quilted.contact import *
from pyquilted.quilted.contacts_list import ContactsList
if __name__ == '__main__':
unittest.main()
| 31.27907 | 79 | 0.475093 |
9aae954a3239c945002696eff2a9d8adff07720d | 3,110 | py | Python | examples/python/macOS/hack_or_die.py | kitazaki/NORA_Badge | 9b04a57235f0763641ffa8e90e499f141dc57570 | [
"Apache-2.0"
] | null | null | null | examples/python/macOS/hack_or_die.py | kitazaki/NORA_Badge | 9b04a57235f0763641ffa8e90e499f141dc57570 | [
"Apache-2.0"
] | null | null | null | examples/python/macOS/hack_or_die.py | kitazaki/NORA_Badge | 9b04a57235f0763641ffa8e90e499f141dc57570 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import time
import uuid
import Adafruit_BluefruitLE
CHARACTERISTIC_SERVICE_UUID = uuid.UUID('0000fee0-0000-1000-8000-00805f9b34fb')
CHARACTERISTIC_DATA_UUID = uuid.UUID('0000fee1-0000-1000-8000-00805f9b34fb')
provider = Adafruit_BluefruitLE.get_provider()
provider.initialize()... | 37.02381 | 82 | 0.632797 |
9aaec48386d244bd541a612785f13979caec8fe3 | 4,902 | py | Python | turkish_morphology/validate_test.py | nogeeky/turkish-morphology | 64881f23dad87c6f470d874030f6b5f33fe1a9eb | [
"Apache-2.0"
] | 157 | 2019-05-20T13:05:43.000Z | 2022-03-23T16:36:31.000Z | turkish_morphology/validate_test.py | OrenBochman/turkish-morphology | 8f33046722ce204ccc51739687921ab041bed254 | [
"Apache-2.0"
] | 9 | 2019-09-11T08:17:12.000Z | 2022-03-15T18:29:01.000Z | turkish_morphology/validate_test.py | OrenBochman/turkish-morphology | 8f33046722ce204ccc51739687921ab041bed254 | [
"Apache-2.0"
] | 30 | 2019-09-29T06:50:01.000Z | 2022-03-13T15:31:10.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 33.346939 | 76 | 0.659935 |
9aaf20b86321deb4ac2d2c3951af5c3c52764470 | 115 | py | Python | rplint/__main__.py | lpozo/rplint | 907cb5342827b2c38e79721bc2dc99b3b6f7912b | [
"MIT"
] | 7 | 2020-09-10T15:39:07.000Z | 2021-02-15T17:45:04.000Z | rplint/__main__.py | lpozo/rplint | 907cb5342827b2c38e79721bc2dc99b3b6f7912b | [
"MIT"
] | 6 | 2020-11-11T02:42:37.000Z | 2021-03-17T01:00:27.000Z | rplint/__main__.py | lpozo/rplint | 907cb5342827b2c38e79721bc2dc99b3b6f7912b | [
"MIT"
] | 3 | 2020-11-11T02:10:22.000Z | 2020-12-12T01:02:29.000Z | #!/usr/bin/env python3
from .main import rplint
if __name__ == "__main__":
rplint.main(prog_name=__package__)
| 19.166667 | 38 | 0.730435 |
9ab1353597b9195d65b8c371888b502f56866647 | 3,368 | py | Python | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from numpy import sqrt, cos, sin, arctan, exp, abs, pi, conj
from scipy import array, dot, sum
def mphase(n,k,th):
""" Calculate phase shift and reflectance of a metal in the s and p directions"""
u = sqrt(0.5 *((n**2 - k**2 - sin(th)**2) + sqrt( (n**2 - k... | 34.367347 | 101 | 0.518705 |
9ab5d8227882ea8202fdc93b49f22e935bbc0e93 | 2,560 | py | Python | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-10-01T17:11:58.000Z | 2020-10-01T17:11:58.000Z | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 17 | 2020-03-11T17:04:05.000Z | 2020-05-01T09:34:45.000Z | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 36.056338 | 116 | 0.605078 |
9ab6d13a500341cc43c1e83dfab97d3f76d1b8d3 | 460 | py | Python | vaccine_feed_ingest/runners/ct/state/parse.py | jeremyschlatter/vaccine-feed-ingest | 215f6c144fe5220deaccdb5db3e96f28b7077b3f | [
"MIT"
] | 27 | 2021-04-24T02:11:18.000Z | 2021-05-17T00:54:45.000Z | vaccine_feed_ingest/runners/ct/state/parse.py | jeremyschlatter/vaccine-feed-ingest | 215f6c144fe5220deaccdb5db3e96f28b7077b3f | [
"MIT"
] | 574 | 2021-04-06T18:09:11.000Z | 2021-08-30T07:55:06.000Z | vaccine_feed_ingest/runners/ct/state/parse.py | jeremyschlatter/vaccine-feed-ingest | 215f6c144fe5220deaccdb5db3e96f28b7077b3f | [
"MIT"
] | 47 | 2021-04-23T05:31:14.000Z | 2021-07-01T20:22:46.000Z | #!/usr/bin/env python
import json
import pathlib
import sys
input_dir = pathlib.Path(sys.argv[2])
output_dir = pathlib.Path(sys.argv[1])
output_file = output_dir / "data.parsed.ndjson"
results = []
for input_file in input_dir.glob("data.raw.*.json"):
with input_file.open() as fin:
results.extend(json.loa... | 23 | 52 | 0.680435 |
9ab9d917b353cf0f8ea3e285cac62732af59e404 | 563 | py | Python | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | null | null | null | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | null | null | null | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | 1 | 2020-12-23T19:32:51.000Z | 2020-12-23T19:32:51.000Z | # example of redefinition __repr__ and __str__ of exception
try:
raise MyBad('spam')
except MyBad as X:
print(X) # My mistake!
print(X.args) # ('spam',)
try:
raise MyBad2('spam')
except MyBad2 as X:
print(X) # spam
print(X.args) # ('spam',)
raise MyBad('spam') # __main__.MyBad2: My mistake!... | 20.107143 | 65 | 0.648313 |
9abaab450ac2ca5229b853ff9168c5720ce319bf | 7,998 | py | Python | difPy/dif.py | ppizarror/Duplicate-Image-Finder | 371d70454531d1407b06d98f3e3bdc5e3fc03f49 | [
"MIT"
] | null | null | null | difPy/dif.py | ppizarror/Duplicate-Image-Finder | 371d70454531d1407b06d98f3e3bdc5e3fc03f49 | [
"MIT"
] | null | null | null | difPy/dif.py | ppizarror/Duplicate-Image-Finder | 371d70454531d1407b06d98f3e3bdc5e3fc03f49 | [
"MIT"
] | null | null | null | import skimage.color
import matplotlib.pyplot as plt
import numpy as np
import cv2
import os
import imghdr
import time
"""
Duplicate Image Finder (DIF): function that searches a given directory for images and finds duplicate/similar images among them.
Outputs the number of found duplicate/similar image pairs with a l... | 41.65625 | 128 | 0.572893 |
9abc03c9cf82f6250f6e274347a435222a3060a0 | 1,572 | py | Python | minmax.py | jeffmorais/estrutura-de-dados | e7088df4fe753af106b4642c5e147d578a466c3b | [
"MIT"
] | 1 | 2016-02-16T13:52:00.000Z | 2016-02-16T13:52:00.000Z | minmax.py | jeffmorais/estrutura-de-dados | e7088df4fe753af106b4642c5e147d578a466c3b | [
"MIT"
] | null | null | null | minmax.py | jeffmorais/estrutura-de-dados | e7088df4fe753af106b4642c5e147d578a466c3b | [
"MIT"
] | null | null | null | # A funo min_max dever rodar em O(n) e o cdigo no pode usar nenhuma
# lib do Python (sort, min, max e etc)
# No pode usar qualquer lao (while, for), a funo deve ser recursiva
# Ou delegar a soluo para uma funo puramente recursiva
import unittest
def min_max(seq):
'''
:param seq: uma sequencia
:return: (min... | 29.111111 | 72 | 0.588422 |
9abd21b74954fe3eba3090f8582e570668b4381d | 3,927 | py | Python | news-category-classifcation/build_vocab.py | lyeoni/pytorch-nlp-tutorial | 8cc490adc6cc92d458548e0e73fbbf1db575f049 | [
"MIT"
] | 1,433 | 2018-12-14T06:20:28.000Z | 2022-03-31T14:12:50.000Z | news-category-classifcation/build_vocab.py | itsshaikaslam/nlp-tutorial-1 | 6e4c74e103f4cdc5e0559d987ae6e41c40e17a5a | [
"MIT"
] | 14 | 2019-04-03T08:30:23.000Z | 2021-07-11T11:41:05.000Z | news-category-classifcation/build_vocab.py | itsshaikaslam/nlp-tutorial-1 | 6e4c74e103f4cdc5e0559d987ae6e41c40e17a5a | [
"MIT"
] | 306 | 2018-12-20T09:41:24.000Z | 2022-03-31T05:07:14.000Z | import argparse
import pickle
from tokenization import Vocab, Tokenizer
TOKENIZER = ('treebank', 'mecab')
def load_pretrained(fname):
"""
Load pre-trained FastText word vectors
:param fname: text file containing the word vectors, one per line.
"""
fin = open(fname, 'r', encoding='utf-8', newline... | 40.071429 | 98 | 0.638146 |
9abd5d0a8f6f8a824f776810d4a5b66aeca261fa | 650 | py | Python | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | 1 | 2022-01-12T17:22:02.000Z | 2022-01-12T17:22:02.000Z | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | null | null | null | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import boto3
import os
from aws_lambda_powertools import Logger
logger = Logger()
client = boto3.client('stepfunctions')
sfnArn = os.environ['SFN_ARN']
| 23.214286 | 68 | 0.676923 |
9abd6d106252aee5d79f8c8f78a07cba499bc3da | 3,068 | py | Python | tests/encryption/aes_decrypter.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 176 | 2015-01-02T13:55:39.000Z | 2022-03-12T11:44:37.000Z | tests/encryption/aes_decrypter.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 495 | 2015-01-13T06:47:06.000Z | 2022-03-12T11:07:03.000Z | tests/encryption/aes_decrypter.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 62 | 2015-02-23T08:19:38.000Z | 2022-03-18T06:01:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the AES decrypter object."""
import unittest
from dfvfs.encryption import aes_decrypter
from dfvfs.lib import definitions
from tests.encryption import test_lib
if __name__ == '__main__':
unittest.main()
| 33.714286 | 77 | 0.730769 |
9abfb5ca61ed6e49fce34592c1824290b02d1d23 | 4,460 | py | Python | Crash Course on Python/WEEK 5/solutions.py | atharvpuranik/Google-IT-Automation-with-Python-Professional-Certificate | 4d8fd587fa85ea4db62db6142fbb58cd9c29bb69 | [
"MIT"
] | 42 | 2020-04-28T09:06:21.000Z | 2022-01-09T01:01:55.000Z | Crash Course on Python/WEEK 5/solutions.py | vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate | d87dffe924de218f73d61d27689798646824ed6c | [
"MIT"
] | null | null | null | Crash Course on Python/WEEK 5/solutions.py | vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate | d87dffe924de218f73d61d27689798646824ed6c | [
"MIT"
] | 52 | 2020-05-12T05:29:46.000Z | 2022-01-26T21:24:08.000Z | #Q2
# If you have an apple and I have an apple and we exchange these apples then
# you and I will still each have one apple. But if you have an idea and I have
# an idea and we exchange these ideas, then each of us will have two ideas.
# George Bernard Shaw
johanna = Person()
johanna.apples = 1
johanna.ideas = 1
mart... | 31.188811 | 140 | 0.722646 |
9ac1c767370071e77aa1a0a522794a49b7886db3 | 205 | py | Python | python/test/is_prime.test.py | hotate29/kyopro_lib | 20085381372d2555439980c79887ca6b0809bb77 | [
"MIT"
] | null | null | null | python/test/is_prime.test.py | hotate29/kyopro_lib | 20085381372d2555439980c79887ca6b0809bb77 | [
"MIT"
] | 2 | 2020-10-13T17:02:12.000Z | 2020-10-17T16:04:48.000Z | python/test/is_prime.test.py | hotate29/kyopro_lib | 20085381372d2555439980c79887ca6b0809bb77 | [
"MIT"
] | null | null | null | # verification-helper: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_C
from python.lib.is_prime import isprime
print(sum(isprime(int(input())) for _ in range(int(input()))))
| 25.625 | 97 | 0.756098 |
9ac242f669af4d52c4d497c2811debd7113e2d03 | 691 | py | Python | utils/pad.py | Zenodia/nativePytorch_NMT | bfced09eb6e5476d34619dfc0dd41d4ed610248f | [
"MIT"
] | 60 | 2018-09-28T07:53:11.000Z | 2020-11-06T11:59:07.000Z | utils/pad.py | Pravin74/transformer-pytorch | c31e163ed57321e405771ef7fb556d4d92fd5efb | [
"MIT"
] | 2 | 2021-02-15T14:08:08.000Z | 2021-09-12T12:52:37.000Z | utils/pad.py | Pravin74/transformer-pytorch | c31e163ed57321e405771ef7fb556d4d92fd5efb | [
"MIT"
] | 18 | 2018-09-28T07:56:35.000Z | 2020-11-24T00:11:33.000Z | import torch
import numpy as np
PAD_TOKEN_INDEX = 0
| 32.904762 | 87 | 0.723589 |
9ac324779be3fdadd696253340d551fc8f9b954c | 576 | py | Python | jesse/modes/utils.py | julesGoullee/jesse | 49a1ac46715682e8a30df133ce055bf2dfdedb7d | [
"MIT"
] | 4 | 2021-02-23T18:23:58.000Z | 2021-10-10T07:32:41.000Z | jesse/modes/utils.py | ArdeshirV/jesse | 2ff415f6768f9ef7cca3e86d8f2f87988d3e7129 | [
"MIT"
] | null | null | null | jesse/modes/utils.py | ArdeshirV/jesse | 2ff415f6768f9ef7cca3e86d8f2f87988d3e7129 | [
"MIT"
] | 2 | 2021-04-30T06:49:26.000Z | 2022-01-24T09:24:35.000Z | from jesse.store import store
from jesse import helpers
from jesse.services import logger
| 27.428571 | 76 | 0.694444 |
9ac5612f4d7fef57c2d92d9c354db5aaef44d59e | 1,020 | py | Python | Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py | heimlich1024/OD_CopyPasteExternal | 943b993198e16d19f1fb4ba44049e498abf1e993 | [
"Apache-2.0"
] | 278 | 2017-04-27T18:44:06.000Z | 2022-03-31T02:49:42.000Z | Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py | heimlich1024/OD_CopyPasteExternal | 943b993198e16d19f1fb4ba44049e498abf1e993 | [
"Apache-2.0"
] | 57 | 2017-05-01T11:58:41.000Z | 2022-02-06T18:43:13.000Z | Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py | heimlich1024/OD_CopyPasteExternal | 943b993198e16d19f1fb4ba44049e498abf1e993 | [
"Apache-2.0"
] | 49 | 2017-04-28T19:24:14.000Z | 2022-03-12T15:17:13.000Z | ################################################################################
#
# cmd_copyToExternal.py
#
# Author: Oliver Hotz | Chris Sprance
#
# Description: Copies Geo/Weights/Morphs/UV's to External File
#
# Last Update:
#
###############################################################################... | 23.72093 | 81 | 0.560784 |
9ac6f272c7449b8674bd2e0ae76f212c2c1488d6 | 17,828 | py | Python | iotest/case.py | gwk/iotest | bb5386c8d2e96cf99ca840fc512008ef786c4805 | [
"CC0-1.0"
] | 1 | 2018-03-24T16:03:15.000Z | 2018-03-24T16:03:15.000Z | iotest/case.py | gwk/iotest | bb5386c8d2e96cf99ca840fc512008ef786c4805 | [
"CC0-1.0"
] | 1 | 2016-08-12T19:09:43.000Z | 2016-08-12T19:09:43.000Z | iotest/case.py | gwk/iotest | bb5386c8d2e96cf99ca840fc512008ef786c4805 | [
"CC0-1.0"
] | null | null | null | # Dedicated to the public domain under CC0: https://creativecommons.org/publicdomain/zero/1.0/.
import ast
import os
import re
import shlex
from itertools import zip_longest
from string import Template
from typing import *
from .pithy.fs import *
from .pithy.io import *
from .pithy.types import * # type: ignore
fro... | 40.796339 | 146 | 0.648138 |
9ac8a3896499bd8c6da3c5ab7c320fbd74dda4ff | 111 | py | Python | aiophotoprism/__init__.py | zhulik/aiophotoprism | 91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85 | [
"MIT"
] | 4 | 2021-08-09T05:02:23.000Z | 2022-01-30T03:04:29.000Z | aiophotoprism/__init__.py | zhulik/aiophotoprism | 91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85 | [
"MIT"
] | null | null | null | aiophotoprism/__init__.py | zhulik/aiophotoprism | 91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85 | [
"MIT"
] | null | null | null | """Asynchronous Python client for the Photoprism REST API."""
from .photoprism import API, Photoprism # noqa
| 27.75 | 61 | 0.756757 |
9ac8a6eee2b79ed601b853802a3795b71f290223 | 5,558 | py | Python | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #!/usr/bin/python
vm_cfg = {
'name_label': 'APIVM',
'user_version': 1,
'is_a_template': False,
'auto_power_on': False, # TODO
'memory_static_min': 64,
'memory_static_max': 128,
#'memory_dynamic_min': 64,
#'memory_dynamic_max': 128,
'VCPUs_policy': 'credit',
'VCPUs... | 26.216981 | 75 | 0.542821 |
9ac8dc710710ba41c77dd17ed479decc6f7a00ea | 6,171 | py | Python | portfolyo/core/pfline/tests/test_single_helper.py | rwijtvliet/portfolyo | b22948fbc55264ec5d69824e791ca7ef45c6e49c | [
"BSD-3-Clause"
] | null | null | null | portfolyo/core/pfline/tests/test_single_helper.py | rwijtvliet/portfolyo | b22948fbc55264ec5d69824e791ca7ef45c6e49c | [
"BSD-3-Clause"
] | null | null | null | portfolyo/core/pfline/tests/test_single_helper.py | rwijtvliet/portfolyo | b22948fbc55264ec5d69824e791ca7ef45c6e49c | [
"BSD-3-Clause"
] | null | null | null | from portfolyo import testing, dev
from portfolyo.core.pfline import single_helper
from portfolyo.tools.nits import Q_
from portfolyo.tools.stamps import FREQUENCIES
import pandas as pd
import pytest
| 33 | 97 | 0.580943 |
9ac99cea9babd92f880b3baa9bf72af575865d84 | 31,044 | py | Python | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | """Competitions for parameter tuning using Monte-carlo tree search."""
from __future__ import division
import operator
import random
from heapq import nlargest
from math import exp, log, sqrt
from gomill import compact_tracebacks
from gomill import game_jobs
from gomill import competitions
from gomill import competi... | 35.077966 | 95 | 0.616544 |
9acbd6e09016763ff8a75cf2e88c6a01d873ad9c | 9,705 | py | Python | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#%matplotlib inline
import codecs
import lightgbm as lgb
from sklearn.model_selection import StratifiedShuffleSplit
from sklearn.metrics import mean_squared_error
from sklearn.metrics import r2_score
# Read data
image_file_path = './simulated_dpc_d... | 48.525 | 165 | 0.757651 |
9acbf669f84ad525253b32c114c4e395b93adc19 | 3,488 | py | Python | open-hackathon-tempUI/src/hackathon/config-sample.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | open-hackathon-tempUI/src/hackathon/config-sample.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | open-hackathon-tempUI/src/hackathon/config-sample.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | # "javascript" section for javascript. see @app.route('/config.js') in app/views.py
# oauth constants
HOSTNAME = "http://hackathon.chinacloudapp.cn" # host name of the UI site
QQ_OAUTH_STATE = "openhackathon" # todo state should be constant. Actually it should be unguessable to prevent CSFA
HACkATHON_API_ENDPOINT = ... | 48.444444 | 294 | 0.648222 |
9acc78e7c1d68d1a67b2d32bd290cc493caa9d62 | 1,036 | py | Python | marocco/first.py | panos1998/Thesis_Code | 3f95730b1b2139011b060f002d5ce449a886079b | [
"Apache-2.0"
] | null | null | null | marocco/first.py | panos1998/Thesis_Code | 3f95730b1b2139011b060f002d5ce449a886079b | [
"Apache-2.0"
] | null | null | null | marocco/first.py | panos1998/Thesis_Code | 3f95730b1b2139011b060f002d5ce449a886079b | [
"Apache-2.0"
] | null | null | null | #%%
import sys
import numpy as np
from typing import Any, List
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
sys.path.append('C:/Users/panos/Documents//code/fz')
from arfftocsv import function_labelize
import csv
colnames =['age', 'sex', 'cp', 'trestbps', 'chol',
'fbs', 'restecg', 'thalach','exang... | 32.375 | 63 | 0.712355 |
9accd3c42fa9f549ce35aac4c4567cb2591c14a9 | 10,323 | py | Python | matlab2cpp/datatype.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | 28 | 2017-04-25T10:06:38.000Z | 2022-02-09T07:25:34.000Z | matlab2cpp/datatype.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | null | null | null | matlab2cpp/datatype.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | 5 | 2017-04-25T17:54:53.000Z | 2022-03-21T20:15:15.000Z | """
The follwing constructor classes exists here:
+------------------------------------------+---------------------------------------+
| Class | Description |
+==========================================+=======================================+
| :py:class:`~... | 28.675 | 84 | 0.465272 |
9acd3d20a14d9e96bec466426e861a98197f22b0 | 330 | py | Python | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | 2 | 2020-04-15T03:57:42.000Z | 2020-06-06T01:43:34.000Z | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-05-14 03:18
from django.db import migrations
| 18.333333 | 47 | 0.593939 |
9acd4db9f55911f16eb79b057e6fc8abf0b3c6d4 | 210 | py | Python | resident/views.py | felipeue/SmartBuilding | 57d904c6166c87f836bc8fada9eb5a2bc82069b8 | [
"MIT"
] | null | null | null | resident/views.py | felipeue/SmartBuilding | 57d904c6166c87f836bc8fada9eb5a2bc82069b8 | [
"MIT"
] | null | null | null | resident/views.py | felipeue/SmartBuilding | 57d904c6166c87f836bc8fada9eb5a2bc82069b8 | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView
from main.permissions import ResidentLoginRequiredMixin
| 30 | 62 | 0.852381 |
9acff9f4ad0162148d8ed69428c049eb258f8169 | 9,179 | py | Python | src/awspfx/awspfx.py | exfi/awspfx | 118d2f83a365e1cd37da0b0689e6d5ff527e0f64 | [
"MIT"
] | 1 | 2021-08-10T23:17:07.000Z | 2021-08-10T23:17:07.000Z | src/awspfx/awspfx.py | exfi/awspfx | 118d2f83a365e1cd37da0b0689e6d5ff527e0f64 | [
"MIT"
] | 2 | 2021-09-22T03:59:52.000Z | 2021-12-22T22:48:18.000Z | src/awspfx/awspfx.py | exfi/awspfx | 118d2f83a365e1cd37da0b0689e6d5ff527e0f64 | [
"MIT"
] | 1 | 2022-03-29T15:14:22.000Z | 2022-03-29T15:14:22.000Z | #!/usr/bin/env python3
"""awspfx
Usage:
awspfx.py <profile>
awspfx.py [(-c | --current) | (-l | --list) | (-s | --swap)]
awspfx.py token [(-p | --profile) <profile>]
awspfx.py sso [(login | token)] [(-p | --profile) <profile>]
awspfx.py -h | --help
awspfx.py --version
Examples:
awspfx.py ... | 26.002833 | 93 | 0.610742 |
9ad11bb35b11a89ca5873c299ffa8f65fee28a06 | 3,694 | py | Python | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | import re
from model.contact import Contact
# def test_contacts(app, ormdb):
# random_index = randrange(app.contact.count())
# #
# contact_from_home_page = app.contact.get_contact_list()
# #
# contact_from_db = ormdb.get_contact_list()
# # ,
# assert sorted(contact_from_ho... | 52.028169 | 119 | 0.67542 |
9ad1371d592dd9a07aabbaf79a51d2d1c5de33e5 | 628 | py | Python | Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 36.941176 | 96 | 0.644904 |
9ad242baf7204452ac38c08eb06958775483a1b5 | 1,790 | py | Python | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | 1 | 2016-10-23T19:45:12.000Z | 2016-10-23T19:45:12.000Z | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | null | null | null | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Writing Our First Classifier - Machine Learning Recipes #5
#https://www.youtube.com/watch?v=AoeEHqVSNOw&list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal&index=1
from scipy.spatial import distance
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accu... | 24.189189 | 92 | 0.754749 |
9ad3c6eb1d3fc248c366e0859044b8671327d992 | 2,323 | py | Python | process_frames.py | w-garcia/video-caption.pytorch | ef3766b093815b7cfd48d29b2af880c05b45ddbe | [
"MIT"
] | 4 | 2019-03-27T11:37:44.000Z | 2021-01-07T02:10:46.000Z | process_frames.py | w-garcia/video-caption.pytorch | ef3766b093815b7cfd48d29b2af880c05b45ddbe | [
"MIT"
] | 2 | 2019-07-11T20:34:19.000Z | 2019-08-19T13:21:52.000Z | process_frames.py | w-garcia/video-caption.pytorch | ef3766b093815b7cfd48d29b2af880c05b45ddbe | [
"MIT"
] | 3 | 2020-02-12T02:31:58.000Z | 2021-02-07T06:17:48.000Z | """
Re-tooled version of the script found on VideoToTextDNN:
https://github.com/OSUPCVLab/VideoToTextDNN/blob/master/data/process_frames.py
"""
import sys
import os
import argparse
import time
from multiprocessing import Pool
if __name__=='__main__':
arg_parser = argparse.ArgumentParser()
arg_parser.add_arg... | 27.329412 | 145 | 0.635385 |
9ad3d0b300ea5b2d36712d2ed1f19a77b925f25f | 383 | py | Python | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | null | null | null | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | null | null | null | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | 2 | 2021-04-23T08:24:08.000Z | 2022-03-01T06:56:33.000Z | from django.contrib.auth.hashers import get_hashers_by_algorithm
from django.core import checks
| 34.818182 | 83 | 0.744125 |
9ad5dd0d9bd8fbcbf6eef199aef2d2ca49925d18 | 9,340 | py | Python | code/preprocess/data_generation.py | hms-dbmi/VarPPUD | 316a45f33c12dfecadb17fa41b699ef95096a623 | [
"Apache-2.0"
] | null | null | null | code/preprocess/data_generation.py | hms-dbmi/VarPPUD | 316a45f33c12dfecadb17fa41b699ef95096a623 | [
"Apache-2.0"
] | null | null | null | code/preprocess/data_generation.py | hms-dbmi/VarPPUD | 316a45f33c12dfecadb17fa41b699ef95096a623 | [
"Apache-2.0"
] | 1 | 2022-01-18T17:14:31.000Z | 2022-01-18T17:14:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 24 17:19:39 2021
@author: rayin
"""
import os, sys
import numpy as np
import pandas as pd
import torch
import warnings
import random
import torchvision.models as models
from sdv.tabular import CTGAN
from sdv.evaluation import evaluate
from sdv.met... | 37.51004 | 147 | 0.713169 |
9ad633a8b545c9fd60433dd7e1485b51abf58bfc | 1,265 | py | Python | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | 3 | 2019-08-06T19:04:32.000Z | 2022-01-19T14:00:12.000Z | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | 6 | 2018-10-14T21:32:58.000Z | 2021-03-20T00:07:56.000Z | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | null | null | null | from app.extensions import db
from flask import current_app
| 38.333333 | 147 | 0.714625 |
9ad63695127b031d5978acb9042f9c3b9cb8c5de | 1,240 | py | Python | output/models/boeing_data/ipo4/ipo_xsd/address.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/boeing_data/ipo4/ipo_xsd/address.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/boeing_data/ipo4/ipo_xsd/address.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
from output.models.boeing_data.ipo4.ipo_xsd.ipo import AddressType
__NAMESPACE__ = "http://www.example.com/IPO"
| 20 | 66 | 0.504032 |
9ad672b90b5e5960648f597358159ab9f9c375ec | 5,060 | py | Python | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | # Jared Dyreson
# CPSC 386-01
# 2021-11-29
# jareddyreson@csu.fullerton.edu
# @JaredDyreson
#
# Lab 00-04
#
# Some filler text
#
"""
This module contains the Intro display class
"""
import pygame
import functools
import sys
import pathlib
import typing
import os
import dataclasses
import random
from pprint import ppr... | 32.025316 | 86 | 0.594862 |
9ad73e40610067893659f1466d9493e1d1fdb576 | 49 | py | Python | ledger/checkout/models.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 59 | 2015-08-29T10:51:34.000Z | 2021-11-03T10:00:25.000Z | ledger/checkout/models.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 162 | 2018-02-16T05:13:03.000Z | 2021-05-14T02:47:37.000Z | ledger/checkout/models.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 22 | 2015-08-10T10:46:18.000Z | 2020-04-04T07:11:55.000Z | from oscar.apps.checkout.models import * # noqa
| 24.5 | 48 | 0.755102 |
9ad97cd25d6ffe7ca83c1fced680d4dc39e56290 | 1,642 | py | Python | api/serializers.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | api/serializers.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | api/serializers.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from apps.calendarioPago.models import CalendarioPago
from apps.cliente.models import Cliente
from apps.cuenta.models import Cuenta
from apps.grupo.models import Grupo
from apps.miembro.models import Miembro
from apps.transaccion.models import Transaccion
# Serializers define t... | 26.483871 | 84 | 0.694275 |
9ada5e1bb0d72f096389f3d35f059bd13ec5be47 | 8,194 | py | Python | emmet/markup/format/html.py | emmetio/py-emmet | 9cbb42f482526d7df18ba632b3b3f2ed3b7653a5 | [
"MIT"
] | 29 | 2019-11-12T16:15:15.000Z | 2022-02-06T10:51:25.000Z | emmet/markup/format/html.py | emmetio/py-emmet | 9cbb42f482526d7df18ba632b3b3f2ed3b7653a5 | [
"MIT"
] | 3 | 2020-04-25T11:02:53.000Z | 2021-11-25T10:39:09.000Z | emmet/markup/format/html.py | emmetio/py-emmet | 9cbb42f482526d7df18ba632b3b3f2ed3b7653a5 | [
"MIT"
] | 7 | 2020-04-25T09:42:54.000Z | 2021-02-16T20:29:41.000Z | import re
from .walk import walk, WalkState
from .utils import caret, is_inline_element, is_snippet, push_tokens, should_output_attribute
from .comment import comment_node_before, comment_node_after, CommentWalkState
from ...abbreviation import Abbreviation, AbbreviationNode, AbbreviationAttribute
from ...abbreviation.... | 34.868085 | 122 | 0.611667 |
9adc3fed9b6a076b0f178e8d91edfcd0fe2b0e5f | 2,584 | py | Python | secant_method.py | FixingMind5/proyecto_metodos_I | 4eaed1991ad18574984bcc0010394ecb9c4a620e | [
"MIT"
] | null | null | null | secant_method.py | FixingMind5/proyecto_metodos_I | 4eaed1991ad18574984bcc0010394ecb9c4a620e | [
"MIT"
] | null | null | null | secant_method.py | FixingMind5/proyecto_metodos_I | 4eaed1991ad18574984bcc0010394ecb9c4a620e | [
"MIT"
] | null | null | null | """Secant Method module"""
from numeric_method import NumericMethod
| 32.708861 | 101 | 0.540635 |
9add394027ddb25c4a3c822d581f2bbeacc67447 | 245 | py | Python | variables.py | bestend/korquad | 3b92fffcc950ff584e0f9755ea9b04f8bece7a31 | [
"MIT"
] | 1 | 2019-09-06T04:47:14.000Z | 2019-09-06T04:47:14.000Z | variables.py | bestend/korquad | 3b92fffcc950ff584e0f9755ea9b04f8bece7a31 | [
"MIT"
] | 6 | 2020-01-28T22:12:50.000Z | 2022-02-09T23:30:45.000Z | variables.py | bestend/korquad | 3b92fffcc950ff584e0f9755ea9b04f8bece7a31 | [
"MIT"
] | null | null | null | import os
import re
MODEL_FILE_FORMAT = 'weights.{epoch:02d}-{val_loss:.2f}.h5'
MODEL_REGEX_PATTERN = re.compile(r'^.*weights\.(\d+)\-\d+\.\d+\.h5$')
LAST_MODEL_FILE_FORMAT = 'last.h5'
TEAMS_WEBHOOK_URL = os.environ.get('TEAMS_WEBHOOK_URL', '') | 35 | 69 | 0.714286 |
9ade61531561b4025a09449d1265b8472b175b17 | 977 | py | Python | svm.py | sciencementors2019/Image-Processer | a1b036f38166722d2bb0ee44de1f3558880312c5 | [
"MIT"
] | null | null | null | svm.py | sciencementors2019/Image-Processer | a1b036f38166722d2bb0ee44de1f3558880312c5 | [
"MIT"
] | null | null | null | svm.py | sciencementors2019/Image-Processer | a1b036f38166722d2bb0ee44de1f3558880312c5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn import svm
from mlxtend.plotting import plot_decision_regions
import matplotlib.pyplot as plt
# Create arbitrary dataset for example
df = pd.DataFrame({'Planned_End': np.random.uniform(low=-5, high=5, size=50),
'Actual_End': np.random.uniform(low... | 32.566667 | 85 | 0.663255 |
9ae1bc0d9c8249afc93cd2e786ee58fa70373ce4 | 2,544 | py | Python | tests/importing/test_read_genes.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-11-23T09:39:35.000Z | 2022-01-25T15:49:45.000Z | tests/importing/test_read_genes.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 76 | 2021-07-07T18:31:44.000Z | 2022-03-22T10:04:40.000Z | tests/importing/test_read_genes.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-09-16T10:56:20.000Z | 2022-01-25T12:33:25.000Z |
from transposonmapper.importing import (
load_default_files,read_genes
)
| 39.138462 | 107 | 0.717374 |
9ae33df6172e3d387be468447aa95067143972f3 | 4,477 | py | Python | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | 1 | 2018-04-24T09:55:40.000Z | 2018-04-24T09:55:40.000Z | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | null | null | null | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | 1 | 2020-11-25T08:53:49.000Z | 2020-11-25T08:53:49.000Z | """
Using
http://thejit.org/static/v20/Docs/files/Options/Options-Canvas-js.html#Options.Canvas
"""
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.urls import reverse
from django.shortcuts import render, redirect, get_object_or_404
import json
import os
import json
from libs.myuti... | 33.916667 | 309 | 0.663837 |
9ae3c34cb81d8405b95cc94d6b0a73cbfa7be42a | 14,772 | py | Python | vumi/blinkenlights/metrics_workers.py | apopheniac/vumi | e04bf32a0cf09292f03dfe8628798adff512b709 | [
"BSD-3-Clause"
] | null | null | null | vumi/blinkenlights/metrics_workers.py | apopheniac/vumi | e04bf32a0cf09292f03dfe8628798adff512b709 | [
"BSD-3-Clause"
] | null | null | null | vumi/blinkenlights/metrics_workers.py | apopheniac/vumi | e04bf32a0cf09292f03dfe8628798adff512b709 | [
"BSD-3-Clause"
] | 2 | 2018-03-05T18:01:45.000Z | 2019-11-02T19:34:18.000Z | # -*- test-case-name: vumi.blinkenlights.tests.test_metrics_workers -*-
import time
import random
import hashlib
from datetime import datetime
from twisted.python import log
from twisted.internet.defer import inlineCallbacks, Deferred
from twisted.internet import reactor
from twisted.internet.task import LoopingCall
... | 36.384236 | 79 | 0.641822 |
9ae436efa8485153023aeda553abb0051a92e57f | 1,401 | py | Python | src/sentry/web/forms/base_organization_member.py | JannKleen/sentry | 8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88 | [
"BSD-3-Clause"
] | 1 | 2019-02-27T15:13:06.000Z | 2019-02-27T15:13:06.000Z | src/sentry/web/forms/base_organization_member.py | rmax/sentry | 8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88 | [
"BSD-3-Clause"
] | 5 | 2020-07-17T11:20:41.000Z | 2021-05-09T12:16:53.000Z | src/sentry/web/forms/base_organization_member.py | zaasmi/codeerrorhelp | 1ab8d3e314386b9b2d58dad9df45355bf6014ac9 | [
"BSD-3-Clause"
] | 2 | 2021-01-26T09:53:39.000Z | 2022-03-22T09:01:47.000Z | from __future__ import absolute_import
from django import forms
from django.db import transaction
from sentry.models import (
OrganizationMember,
OrganizationMemberTeam,
Team,
)
| 29.1875 | 94 | 0.68237 |
9ae66ae64bed27a4c419e21d360710c58e9c3114 | 1,589 | py | Python | turbinia/workers/fsstat.py | dfjxs/turbinia | 23a97d9d826cbcc51e6b5dfd50d85251506bf242 | [
"Apache-2.0"
] | 1 | 2021-05-31T19:44:50.000Z | 2021-05-31T19:44:50.000Z | turbinia/workers/fsstat.py | dfjxs/turbinia | 23a97d9d826cbcc51e6b5dfd50d85251506bf242 | [
"Apache-2.0"
] | null | null | null | turbinia/workers/fsstat.py | dfjxs/turbinia | 23a97d9d826cbcc51e6b5dfd50d85251506bf242 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 33.104167 | 79 | 0.733166 |
9ae7351fe81fa3901619faf1757d1f1b2dffbe49 | 401 | py | Python | app/django-doubtfire-api/endpoint/urls.py | JiatengTao/speaker-verification-api | 89c0b82c49498426c4d35104e0e4935c193a3cb1 | [
"MIT"
] | null | null | null | app/django-doubtfire-api/endpoint/urls.py | JiatengTao/speaker-verification-api | 89c0b82c49498426c4d35104e0e4935c193a3cb1 | [
"MIT"
] | null | null | null | app/django-doubtfire-api/endpoint/urls.py | JiatengTao/speaker-verification-api | 89c0b82c49498426c4d35104e0e4935c193a3cb1 | [
"MIT"
] | null | null | null | from django.urls import include, path
from django.conf.urls import url
from endpoint.views import (
enroll_user,
validate_recording,
check_redis_health,
redirect_flower_dashboard,
)
urlpatterns = [
path("enroll", enroll_user),
path("validate", validate_recording),
path("redis-healthcheck", ... | 25.0625 | 61 | 0.733167 |
9ae9da1c04d49fc47628f3418837d002feeee3c7 | 3,096 | py | Python | back/src/crud.py | Celeo/wiki_elm | 620caf74b4cc17d3ffe3231493df15e84bfcf67f | [
"MIT"
] | null | null | null | back/src/crud.py | Celeo/wiki_elm | 620caf74b4cc17d3ffe3231493df15e84bfcf67f | [
"MIT"
] | null | null | null | back/src/crud.py | Celeo/wiki_elm | 620caf74b4cc17d3ffe3231493df15e84bfcf67f | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List, Optional
import bcrypt
from sqlalchemy.orm import Session
from . import models, schemas
def get_user(db: Session, id: int) -> models.User:
"""Return a single user by id.
Args:
db (Session): database connection
id (int): id of the user
... | 26.016807 | 105 | 0.648256 |
9aea27159d7833c105fb4af0a9c01c188110c93d | 2,693 | py | Python | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 1 | 2021-03-12T17:42:37.000Z | 2021-03-12T17:42:37.000Z | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 10 | 2020-02-12T01:46:41.000Z | 2022-02-10T09:00:03.000Z | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 1 | 2020-04-18T15:14:47.000Z | 2020-04-18T15:14:47.000Z | from django.test import TransactionTestCase
from polymorphic.models import PolymorphicModel, PolymorphicTypeUndefined
from polymorphic.tests.models import (
Enhance_Base,
Enhance_Inherit,
Model2A,
Model2B,
Model2C,
Model2D,
)
from polymorphic.utils import (
get_base_polymorphic_model,
r... | 32.445783 | 82 | 0.671742 |
9aeae4d01c050a9274a24e3e6c5783d7fc583318 | 2,098 | py | Python | blockchain/utils.py | TheEdgeOfRage/blockchain | f75764b5a5a87337200b14d1909077c31e2dbdc1 | [
"MIT"
] | null | null | null | blockchain/utils.py | TheEdgeOfRage/blockchain | f75764b5a5a87337200b14d1909077c31e2dbdc1 | [
"MIT"
] | null | null | null | blockchain/utils.py | TheEdgeOfRage/blockchain | f75764b5a5a87337200b14d1909077c31e2dbdc1 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright 2020 <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD 3-Clause license.
import hashlib
import itertools
import json
from decimal import Decimal
from multiprocessing import (
cpu_count,
Pool,
Process,
Queue
)
de... | 18.900901 | 69 | 0.702574 |
9aebd92051cfcf6d0045079f9f922a518fd301b8 | 5,317 | py | Python | myfunds/web/views/joint_limits/limit/views/participants.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | myfunds/web/views/joint_limits/limit/views/participants.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | myfunds/web/views/joint_limits/limit/views/participants.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | import peewee as pw
from flask import g
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from myfunds.core.models import Account
from myfunds.core.models import Category
from myfunds.core.models import JointLimitParticipant
from myfunds.web import auth
fr... | 30.912791 | 88 | 0.658454 |
9aec3cbbdf80ed6024cc8bfdc62a6afaf2fdc1c4 | 6,854 | py | Python | elyra/pipeline/component_parser_kfp.py | rachaelhouse/elyra | e2f474f26f65fd7c5ec5602f6e40a229dda0a081 | [
"Apache-2.0"
] | null | null | null | elyra/pipeline/component_parser_kfp.py | rachaelhouse/elyra | e2f474f26f65fd7c5ec5602f6e40a229dda0a081 | [
"Apache-2.0"
] | null | null | null | elyra/pipeline/component_parser_kfp.py | rachaelhouse/elyra | e2f474f26f65fd7c5ec5602f6e40a229dda0a081 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2018-2021 Elyra Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 45.390728 | 111 | 0.579224 |
9aedf1a23d553278d5b929adc837502da68eda10 | 356 | py | Python | mayan/apps/mimetype/apps.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 2,743 | 2017-12-18T07:12:30.000Z | 2022-03-27T17:21:25.000Z | mayan/apps/mimetype/apps.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 15 | 2017-12-18T14:58:07.000Z | 2021-03-01T20:05:05.000Z | mayan/apps/mimetype/apps.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 257 | 2017-12-18T03:12:58.000Z | 2022-03-25T08:59:10.000Z | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from common import MayanAppConfig
from .licenses import * # NOQA
| 22.25 | 56 | 0.727528 |
9aefb8bc9120b71f8727047442cac13c02b21950 | 388 | py | Python | test/level.py | Matt-London/command-line-tutorial | 5b6afeedb4075de114e8c91756ecf3a03645fde7 | [
"MIT"
] | 1 | 2020-07-11T06:29:25.000Z | 2020-07-11T06:29:25.000Z | test/level.py | Matt-London/Command-Line-Tutorial | 5b6afeedb4075de114e8c91756ecf3a03645fde7 | [
"MIT"
] | 15 | 2020-07-10T20:01:51.000Z | 2020-08-10T05:23:47.000Z | test/level.py | Matt-London/command-line-tutorial | 5b6afeedb4075de114e8c91756ecf3a03645fde7 | [
"MIT"
] | null | null | null | from packages.levels.Level import Level
import packages.levels.levels as Levels
import packages.resources.functions as function
import packages.resources.variables as var
from packages.filesystem.Directory import Directory
from packages.filesystem.File import File
var.bash_history = ("Check")
test = Level("Instruct",... | 27.714286 | 51 | 0.796392 |
9af07d32c8be1202f3730dbd2847cb3a451513ad | 1,235 | py | Python | tests/test_buffers.py | TheCharmingCthulhu/cython-vst-loader | 2d2d358515f24f4846ca664e5a9b366a207207a6 | [
"MIT"
] | 23 | 2020-07-29T14:44:29.000Z | 2022-01-07T05:29:16.000Z | tests/test_buffers.py | TheCharmingCthulhu/cython-vst-loader | 2d2d358515f24f4846ca664e5a9b366a207207a6 | [
"MIT"
] | 14 | 2020-09-09T02:38:24.000Z | 2022-03-04T05:19:25.000Z | tests/test_buffers.py | TheCharmingCthulhu/cython-vst-loader | 2d2d358515f24f4846ca664e5a9b366a207207a6 | [
"MIT"
] | 2 | 2021-06-05T23:30:08.000Z | 2021-06-06T19:58:59.000Z | # noinspection PyUnresolvedReferences
import unittest
from cython_vst_loader.vst_loader_wrapper import allocate_float_buffer, get_float_buffer_as_list, \
free_buffer, \
allocate_double_buffer, get_double_buffer_as_list
| 36.323529 | 99 | 0.688259 |
9af148fc623927e65f3f0abe332698d9eddb80f8 | 1,520 | py | Python | samples/17.multilingual-bot/translation/microsoft_translator.py | hangdong/botbuilder-python | 8ff979a58fadc4356d76b9ce577f94da3245f664 | [
"MIT"
] | null | null | null | samples/17.multilingual-bot/translation/microsoft_translator.py | hangdong/botbuilder-python | 8ff979a58fadc4356d76b9ce577f94da3245f664 | [
"MIT"
] | null | null | null | samples/17.multilingual-bot/translation/microsoft_translator.py | hangdong/botbuilder-python | 8ff979a58fadc4356d76b9ce577f94da3245f664 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import uuid
import requests
| 40 | 82 | 0.678947 |
9af29a94a64ce15c2f18ac01d5658596e67aa248 | 48 | py | Python | dachar/utils/__init__.py | roocs/dachar | 687b6acb535f634791d13a435cded5f97cae8e76 | [
"BSD-3-Clause"
] | 2 | 2020-05-01T11:17:06.000Z | 2020-11-23T10:37:24.000Z | dachar/utils/__init__.py | roocs/dachar | 687b6acb535f634791d13a435cded5f97cae8e76 | [
"BSD-3-Clause"
] | 69 | 2020-03-26T15:39:26.000Z | 2022-01-14T14:34:39.000Z | dachar/utils/__init__.py | roocs/dachar | 687b6acb535f634791d13a435cded5f97cae8e76 | [
"BSD-3-Clause"
] | null | null | null | from .common import *
from .json_store import *
| 16 | 25 | 0.75 |
9af36b234d70f262e1618ab3933e4d7b9aedd9f4 | 2,760 | py | Python | scraper/models.py | mrcnc/assessor-scraper | b502ebb157048d20294ca44ab0d30e3a44d86c08 | [
"MIT"
] | null | null | null | scraper/models.py | mrcnc/assessor-scraper | b502ebb157048d20294ca44ab0d30e3a44d86c08 | [
"MIT"
] | null | null | null | scraper/models.py | mrcnc/assessor-scraper | b502ebb157048d20294ca44ab0d30e3a44d86c08 | [
"MIT"
] | 1 | 2019-02-14T04:01:40.000Z | 2019-02-14T04:01:40.000Z | # -*- coding: utf-8 -*-
import os
import logging
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey
from sqlalchemy.engine.url import URL
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from scraper import settings
Base = declarative_base()
def... | 29.677419 | 73 | 0.721014 |
9af3a835ffd32ad662ca751cd48d5f535bf94f5d | 487 | py | Python | WeIrD-StRiNg-CaSe.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | WeIrD-StRiNg-CaSe.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | WeIrD-StRiNg-CaSe.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | 1 | 2021-02-08T08:48:44.000Z | 2021-02-08T08:48:44.000Z |
'''
def to_weird_case(string):
recase = lambda s: "".join([c.upper() if i % 2 == 0 else c.lower() for i, c in enumerate(s)])
return " ".join([recase(word) for word in string.split(" ")])
''' | 23.190476 | 97 | 0.521561 |
9af63c97cc5b9b0bb2ddfde6ccac394409cbd012 | 1,573 | py | Python | FTP_client/LHYlearning/Entry.py | welles2000/CCNProject | 0f20718aa171571a952343d7a07c2f1c0f953a6e | [
"MulanPSL-1.0"
] | 2 | 2022-03-29T05:43:09.000Z | 2022-03-29T14:29:46.000Z | FTP_client/LHYlearning/Entry.py | welles2000/CCNProject | 0f20718aa171571a952343d7a07c2f1c0f953a6e | [
"MulanPSL-1.0"
] | null | null | null | FTP_client/LHYlearning/Entry.py | welles2000/CCNProject | 0f20718aa171571a952343d7a07c2f1c0f953a6e | [
"MulanPSL-1.0"
] | null | null | null | # GUI
from tkinter import *
from tkinter import messagebox
if __name__ == '__main__':
root = Tk()
root.geometry("1280x720+200+300")
root.title("")
app = Application(master=root)
root.mainloop()
| 24.2 | 75 | 0.577241 |
9af728f0342a41c7e42c05bfe4ce250d82a4e42b | 839 | py | Python | curso-em-video/ex054.py | joseluizbrits/sobre-python | 316143c341e5a44070a3b13877419082774bd730 | [
"MIT"
] | null | null | null | curso-em-video/ex054.py | joseluizbrits/sobre-python | 316143c341e5a44070a3b13877419082774bd730 | [
"MIT"
] | null | null | null | curso-em-video/ex054.py | joseluizbrits/sobre-python | 316143c341e5a44070a3b13877419082774bd730 | [
"MIT"
] | null | null | null | # Grupo da Maioridade
'''Crie um programa que leia o ANO DE NASCIMENTO de
SETE PESSOAS. No final, mostre quantas pessoas ainda
no atingiram a maioridade e quantas j so maiores'''
from datetime import date
anoatual = date.today().year # Pegar o ano atual configurado na mquina
totalmaior = 0
totalmenor = 0
for pessoas i... | 38.136364 | 87 | 0.682956 |
9af8cf4aed2f78a490c8a32e60b1aabe24f15e72 | 2,160 | py | Python | stellar/simulation/data.py | strfx/stellar | 41b190eed016d2d6ad8548490a0c9620a02d711e | [
"MIT"
] | null | null | null | stellar/simulation/data.py | strfx/stellar | 41b190eed016d2d6ad8548490a0c9620a02d711e | [
"MIT"
] | null | null | null | stellar/simulation/data.py | strfx/stellar | 41b190eed016d2d6ad8548490a0c9620a02d711e | [
"MIT"
] | null | null | null | from typing import Tuple
import numpy as np
import png
from skimage.transform import resize
def load_world(filename: str, size: Tuple[int, int], resolution: int) -> np.array:
"""Load a preconstructred track to initialize world.
Args:
filename: Full path to the track file (png).
... | 29.189189 | 83 | 0.611574 |
9af8e51dd66ea49555fb4a24794f6c9c1dc7752a | 885 | py | Python | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | from rest_framework import serializers
from user.models import User
from main.exceptions.user_exceptions import UserException
user_exception = UserException
| 32.777778 | 116 | 0.754802 |
9af8e62cf5607d29f1d31c790e20bc86925e4fe4 | 7,332 | py | Python | bf_compiler.py | PurpleMyst/bf_compiler | 51832ac9bb493b478c88f68798e99727cf43e180 | [
"MIT"
] | 31 | 2018-03-09T15:40:46.000Z | 2021-01-15T10:03:40.000Z | bf_compiler.py | PurpleMyst/bf_compiler | 51832ac9bb493b478c88f68798e99727cf43e180 | [
"MIT"
] | null | null | null | bf_compiler.py | PurpleMyst/bf_compiler | 51832ac9bb493b478c88f68798e99727cf43e180 | [
"MIT"
] | 2 | 2018-03-09T23:59:28.000Z | 2021-01-15T10:05:00.000Z | #!/usr/bin/env python3
import argparse
import ctypes
import os
import sys
from llvmlite import ir, binding as llvm
INDEX_BIT_SIZE = 16
# courtesy of the llvmlite docs
def create_execution_engine():
"""
Create an ExecutionEngine suitable for JIT code generation on
the host CPU. The engine is reusable ... | 31.2 | 79 | 0.610475 |
9afad36409d9c59fa007a59c5630a3d8610a0ebd | 4,715 | py | Python | dapbench/record_dap.py | cedadev/dapbench | e722c52f1d38d0ea008e177a1d68adff0a5daecc | [
"BSD-3-Clause-Clear"
] | null | null | null | dapbench/record_dap.py | cedadev/dapbench | e722c52f1d38d0ea008e177a1d68adff0a5daecc | [
"BSD-3-Clause-Clear"
] | null | null | null | dapbench/record_dap.py | cedadev/dapbench | e722c52f1d38d0ea008e177a1d68adff0a5daecc | [
"BSD-3-Clause-Clear"
] | 1 | 2019-08-05T20:01:23.000Z | 2019-08-05T20:01:23.000Z | #!/usr/bin/env python
# BSD Licence
# Copyright (c) 2011, Science & Technology Facilities Council (STFC)
# All rights reserved.
#
# See the LICENSE file in the source distribution of this software for
# the full license text.
"""
Execute a programme that makes NetCDF-API OPeNDAP calls, capturing
request events and timi... | 30.419355 | 103 | 0.599152 |
9afbc58c35485195590c0111ab875fa7190d1ec1 | 621 | py | Python | kesko_webapp/models.py | kounelisagis/kesko-food-waste-hackathon | 6b66806aeaf4fc72ea96e47f152cd4bbd8b5a43d | [
"MIT"
] | 1 | 2019-12-29T16:16:54.000Z | 2019-12-29T16:16:54.000Z | kesko_webapp/models.py | kounelisagis/kesko-food-waste-hackathon | 6b66806aeaf4fc72ea96e47f152cd4bbd8b5a43d | [
"MIT"
] | 14 | 2019-11-16T18:27:51.000Z | 2022-02-26T20:17:01.000Z | kesko_webapp/models.py | kounelisagis/kesko-food-waste-hackathon | 6b66806aeaf4fc72ea96e47f152cd4bbd8b5a43d | [
"MIT"
] | 8 | 2019-11-15T20:27:32.000Z | 2020-08-26T16:21:48.000Z | from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.db import models
| 23.884615 | 80 | 0.727858 |
9afd4d7170021441a6b8eb952c84d874debdddcf | 5,925 | py | Python | source/prosumer.py | gus0k/LEMsim | a008a2d25d1de9d5d07706ebeaaaa402bee97bef | [
"Apache-2.0"
] | null | null | null | source/prosumer.py | gus0k/LEMsim | a008a2d25d1de9d5d07706ebeaaaa402bee97bef | [
"Apache-2.0"
] | null | null | null | source/prosumer.py | gus0k/LEMsim | a008a2d25d1de9d5d07706ebeaaaa402bee97bef | [
"Apache-2.0"
] | null | null | null | """
Prosumer class, extendes the battery controler
"""
import numpy as np
from source.batterycontroller import BatteryController
| 37.738854 | 167 | 0.575021 |
9afd605d71b6ed6dddc10236ff2ea972b58f32f8 | 1,630 | py | Python | tests/calculations/test_inner_goals_regression.py | frc1678/server-2021-public | d61e35f8385bf1debc9daaaed40208f6c783ed77 | [
"MIT"
] | null | null | null | tests/calculations/test_inner_goals_regression.py | frc1678/server-2021-public | d61e35f8385bf1debc9daaaed40208f6c783ed77 | [
"MIT"
] | null | null | null | tests/calculations/test_inner_goals_regression.py | frc1678/server-2021-public | d61e35f8385bf1debc9daaaed40208f6c783ed77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2019 FRC Team 1678: Citrus Circuits
import pytest
import numpy as np
import os, sys
current_directory = os.path.dirname(os.path.realpath(__file__))
parent_directory = os.path.dirname(current_directory)
grandparent_directory = os.path.dirname(parent_directory)
sys.path.append(gran... | 33.265306 | 80 | 0.648466 |
9afec172d7c5d85ad984f002f65f8f198cc1e65d | 13,758 | py | Python | trove/tests/unittests/taskmanager/test_galera_clusters.py | a4913994/openstack_trove | 3b550048dd1e5841ad0f3295679e0f0b913a5687 | [
"Apache-2.0"
] | 244 | 2015-01-01T12:04:44.000Z | 2022-03-25T23:38:39.000Z | trove/tests/unittests/taskmanager/test_galera_clusters.py | a4913994/openstack_trove | 3b550048dd1e5841ad0f3295679e0f0b913a5687 | [
"Apache-2.0"
] | 6 | 2015-08-18T08:19:10.000Z | 2022-03-05T02:32:36.000Z | trove/tests/unittests/taskmanager/test_galera_clusters.py | a4913994/openstack_trove | 3b550048dd1e5841ad0f3295679e0f0b913a5687 | [
"Apache-2.0"
] | 178 | 2015-01-02T15:16:58.000Z | 2022-03-23T03:30:20.000Z | # Copyright [2015] Hewlett-Packard Development Company, L.P.
# 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... | 50.029091 | 79 | 0.611353 |
9afeccca8e9baead9183ce3029a46c08b65bc934 | 3,814 | py | Python | AStyleTest/file-py/locale_enum_i18n.py | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/file-py/locale_enum_i18n.py | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/file-py/locale_enum_i18n.py | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | #! /usr/bin/python
""" Enumerate selected locales and sort by codepage to determine
which languages the locales support.
"""
# to disable the print statement and use the print() function (version 3 format)
from __future__ import print_function
import libastyle # local directory
import locale
import os
imp... | 28.893939 | 80 | 0.522811 |
9aff6921a655770822f92c25247b7dfa80a21333 | 2,521 | py | Python | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | """ 2015-07-23
Perform coordinate conversions from the command line.
Uses
"""
import argparse
import pyperclip
# p1 = argparse.ArgumentParser()
# p1.add_argument('x')
# print p1.parse_args(['123'])
#
# p2 = argparse.ArgumentParser()
# p2.add_argument('-d', action='store_const',const='dak')
# print p2.p... | 28.647727 | 127 | 0.623165 |
9aff8c7e14210fed3124a5e6c2fdfe6fc51837d4 | 58 | py | Python | contest/abc106/A.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc106/A.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc106/A.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | A, B = map(int, input().split())
print((A - 1) * (B - 1))
| 19.333333 | 32 | 0.465517 |
b1011b3a30f3ce240dd73397c6dc7062b1511e60 | 774 | py | Python | pythonmisc/string_manipulation.py | davikawasaki/python-misc-module-library | c66b3e8be09db741c3b62d3a4e4a92ce70e1edb5 | [
"MIT"
] | null | null | null | pythonmisc/string_manipulation.py | davikawasaki/python-misc-module-library | c66b3e8be09db741c3b62d3a4e4a92ce70e1edb5 | [
"MIT"
] | null | null | null | pythonmisc/string_manipulation.py | davikawasaki/python-misc-module-library | c66b3e8be09db741c3b62d3a4e4a92ce70e1edb5 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Version: 0.1.1
import re
| 24.967742 | 106 | 0.524548 |
b101387aab58adbece7fb5e7de6f69fdf986d8dd | 6,979 | py | Python | ALLCools/clustering/incremental_pca.py | mukamel-lab/ALLCools | 756ef790665c6ce40633873211929ea92bcccc21 | [
"MIT"
] | 5 | 2019-07-16T17:27:15.000Z | 2022-01-14T19:12:27.000Z | ALLCools/clustering/incremental_pca.py | mukamel-lab/ALLCools | 756ef790665c6ce40633873211929ea92bcccc21 | [
"MIT"
] | 12 | 2019-10-17T19:34:43.000Z | 2022-03-23T16:04:18.000Z | ALLCools/clustering/incremental_pca.py | mukamel-lab/ALLCools | 756ef790665c6ce40633873211929ea92bcccc21 | [
"MIT"
] | 4 | 2019-10-18T23:43:48.000Z | 2022-02-12T04:12:26.000Z | import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.decomposition import IncrementalPCA as _IncrementalPCA
from ..count_matrix.zarr import dataset_to_array
| 36.160622 | 114 | 0.55796 |
b103007297614b73c2ae8e2e4d5c35bd947a709c | 1,051 | py | Python | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
import operator
| 30.028571 | 115 | 0.617507 |
b103796b9eb62b2e02e96ca3c1828f5ebc3886b8 | 3,137 | py | Python | example/06-modules/modules.py | iten-engineering/python | 97a79973c7727cd881974462db99a99d612b55f9 | [
"MIT"
] | null | null | null | example/06-modules/modules.py | iten-engineering/python | 97a79973c7727cd881974462db99a99d612b55f9 | [
"MIT"
] | null | null | null | example/06-modules/modules.py | iten-engineering/python | 97a79973c7727cd881974462db99a99d612b55f9 | [
"MIT"
] | null | null | null | # =============================================================================
# Python examples - modules
# =============================================================================
# -----------------------------------------------------------------------------
# Module
# ----------------------------------------... | 34.855556 | 115 | 0.476889 |
b1040fd46ded01c83aec3ec914b8371b0061edd6 | 5,010 | py | Python | .github/docker/checker_image/scripts/check_copyright_headers.py | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | null | null | null | .github/docker/checker_image/scripts/check_copyright_headers.py | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | null | null | null | .github/docker/checker_image/scripts/check_copyright_headers.py | TomasRejhons/siren | 9ef3ace7174cbdb48b9e45a2db104f3f5c4b9825 | [
"MIT"
] | 1 | 2021-05-26T12:06:12.000Z | 2021-05-26T12:06:12.000Z | #!/usr/bin/env python
#
# MIT License
#
# Copyright (c) 2021 silicon-village
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | 28.465909 | 99 | 0.642515 |
b104d1fb0a99c316174f26991ded219303201426 | 1,584 | py | Python | setup.py | finsberg/scholar_bot | b8a9fc22cfa1888d58a1881235e57a98769153fb | [
"MIT"
] | null | null | null | setup.py | finsberg/scholar_bot | b8a9fc22cfa1888d58a1881235e57a98769153fb | [
"MIT"
] | null | null | null | setup.py | finsberg/scholar_bot | b8a9fc22cfa1888d58a1881235e57a98769153fb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import platform
import glob
from setuptools import setup, find_packages, Command
if sys.version_info < (3, 6):
print("Python 3.6 or higher required, please upgrade.")
sys.exit(1)
version = "0.1"
name = "scholar_bot"
description = ("Post updates on Slack about ci... | 26.847458 | 71 | 0.636364 |
b105030052fdd1f7dc3bd7505e5951494ee00846 | 3,226 | py | Python | time_series_rnn_without_wrapper.py | KT12/hands_on_machine_learning | 6de2292b43d7c34b6509ad61dab2da4f7ec04894 | [
"MIT"
] | null | null | null | time_series_rnn_without_wrapper.py | KT12/hands_on_machine_learning | 6de2292b43d7c34b6509ad61dab2da4f7ec04894 | [
"MIT"
] | null | null | null | time_series_rnn_without_wrapper.py | KT12/hands_on_machine_learning | 6de2292b43d7c34b6509ad61dab2da4f7ec04894 | [
"MIT"
] | null | null | null | # Predict time series w/o using OutputProjectWrapper
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# Create time series
t_min, t_max = 0, 30
resolution = 0.1
t = np.linspace(t_min, t_max, (t_max - t_min) // resolution)
n_steps = 20
t_instance = np.linspace(12.2, 12.2 + resolution * (n_s... | 32.26 | 95 | 0.66522 |
b10569084242d8420b097b98d57fbf57c409ad50 | 5,536 | py | Python | pydocteur/actions.py | AFPy/PyDocTeur | 70e6e025468ad232797c4da0b9a834613d2a2ec4 | [
"MIT"
] | 4 | 2020-11-30T10:14:32.000Z | 2021-02-18T00:44:30.000Z | pydocteur/actions.py | AFPy/PyDocTeur | 70e6e025468ad232797c4da0b9a834613d2a2ec4 | [
"MIT"
] | 46 | 2020-11-27T09:21:02.000Z | 2021-06-08T07:43:33.000Z | pydocteur/actions.py | AFPy/PyDocTeur | 70e6e025468ad232797c4da0b9a834613d2a2ec4 | [
"MIT"
] | 4 | 2020-11-27T06:52:11.000Z | 2022-02-22T20:06:35.000Z | import json
import logging
import os
import random
import time
from functools import lru_cache
from github import Github
from github import PullRequest
from pydocteur.github_api import get_commit_message_for_merge
from pydocteur.github_api import get_trad_team_members
from pydocteur.pr_status import is_already_greete... | 38.713287 | 119 | 0.740426 |