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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8705be63c63c4c6cc5d6f7cc5c1159e4435dd4ec | 956 | py | Python | examples/img-classifier/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 12 | 2019-04-18T13:32:48.000Z | 2020-06-19T13:45:34.000Z | examples/img-classifier/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 1 | 2019-06-20T03:44:07.000Z | 2019-06-21T14:35:44.000Z | examples/img-classifier/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 3 | 2019-04-18T19:36:52.000Z | 2020-01-30T22:51:02.000Z | import numpy as np
import os
import os.path as path
from keras.applications import vgg16, inception_v3, resnet50, mobilenet
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
import kmri
base_path = path.dirname(path.realpath(__file__))
img_path = path.join(base_path, 'i... | 26.555556 | 80 | 0.761506 |
8707f87d551c2ced2234e8a164a65f88799aa23a | 1,483 | py | Python | tests/test_voting_phase.py | SeanAmmirati/secrethitlergame | a7266593a3d0df36dbca4f4b476ab8604e780382 | [
"MIT"
] | null | null | null | tests/test_voting_phase.py | SeanAmmirati/secrethitlergame | a7266593a3d0df36dbca4f4b476ab8604e780382 | [
"MIT"
] | null | null | null | tests/test_voting_phase.py | SeanAmmirati/secrethitlergame | a7266593a3d0df36dbca4f4b476ab8604e780382 | [
"MIT"
] | null | null | null | import pytest
from secrethitlergame.phase import Phase
from unittest import mock
from secrethitlergame.voting_phase import VotingPhase
| 23.919355 | 53 | 0.691841 |
870a18d23ecfa11d93e662286c89a4d7d8fe6f2e | 328 | py | Python | python_handler.py | toddcooke/aws-lambda-function-cold-start-time | a5abced3718aaa73c0cc42f827647549a72fda71 | [
"MIT"
] | null | null | null | python_handler.py | toddcooke/aws-lambda-function-cold-start-time | a5abced3718aaa73c0cc42f827647549a72fda71 | [
"MIT"
] | null | null | null | python_handler.py | toddcooke/aws-lambda-function-cold-start-time | a5abced3718aaa73c0cc42f827647549a72fda71 | [
"MIT"
] | null | null | null | # import datetime
# import logging
# logger = logging.getLogger(__name__)
# logger.setLevel(logging.INFO)
| 25.230769 | 80 | 0.685976 |
870a1fd5ff0795c011afc5632b304b463b0623e3 | 131 | py | Python | testapp2/admin.py | gabrielbiasi/django-improved-permissions | 9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71 | [
"MIT"
] | 12 | 2018-03-22T00:30:32.000Z | 2021-04-24T16:26:08.000Z | testapp2/admin.py | s-sys/django-improved-permissions | 9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71 | [
"MIT"
] | 27 | 2018-03-18T00:43:37.000Z | 2020-06-05T18:09:18.000Z | testapp2/admin.py | gabrielbiasi/django-improved-permissions | 9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71 | [
"MIT"
] | 2 | 2018-03-28T17:54:43.000Z | 2021-01-11T21:17:08.000Z | """ testapp2 admin configs """
from django.contrib import admin
from testapp2.models import Library
admin.site.register(Library)
| 18.714286 | 35 | 0.78626 |
870a8d637ee605f55604fde4b7ffc2547f1122a2 | 958 | py | Python | tests/unitary/ERC20CRV/test_setters.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/unitary/ERC20CRV/test_setters.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/unitary/ERC20CRV/test_setters.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import brownie
| 26.611111 | 65 | 0.676409 |
870aa75776aa600e03d1f7176f47f56559bbbd5d | 1,235 | py | Python | data/data_analysis.py | poch4319/Method-Exploration-Relation-Extraction-Using-BERT | 81ffbae2508f641b9028baba4983f673edecb424 | [
"Apache-2.0"
] | null | null | null | data/data_analysis.py | poch4319/Method-Exploration-Relation-Extraction-Using-BERT | 81ffbae2508f641b9028baba4983f673edecb424 | [
"Apache-2.0"
] | null | null | null | data/data_analysis.py | poch4319/Method-Exploration-Relation-Extraction-Using-BERT | 81ffbae2508f641b9028baba4983f673edecb424 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import json
from collections import Counter
import matplotlib.pyplot as plt
DATASET_DIR = './dataset/tacred/train_mod.json'
with open(DATASET_DIR) as f:
examples = json.load(f)
# relation distribution
print('NUM EXAMPLES', len(examples))
relations = [e['relation'] for e in examples]
print("NU... | 25.204082 | 80 | 0.706883 |
870ba9ec72cbb4826cda872685bfc48f3a36eeaf | 1,776 | py | Python | Lab_4/4.3_rsa_cracking.py | Saif-M-Dhrubo/Crypto-Lab | 2807320d7ca389adee86f69f704b9f91f9cd8054 | [
"MIT"
] | 2 | 2019-04-28T16:34:15.000Z | 2019-04-28T17:54:06.000Z | Lab_4/4.3_rsa_cracking.py | saif-mahmud/Crypto-Lab | 2807320d7ca389adee86f69f704b9f91f9cd8054 | [
"MIT"
] | null | null | null | Lab_4/4.3_rsa_cracking.py | saif-mahmud/Crypto-Lab | 2807320d7ca389adee86f69f704b9f91f9cd8054 | [
"MIT"
] | 1 | 2020-01-08T06:48:08.000Z | 2020-01-08T06:48:08.000Z | import sys
from fractions import Fraction as frac
from math import gcd, floor
from isqrt import isqrt
sys.setrecursionlimit(10**4)
# text=int(open("4.3_ciphertext.hex").read())
e=int(open("4.4_public_key.hex").read(),0)
n=int((open("4.5_modulo.hex").read()),0)
p = 0
q = 0
# print(text,"\n",e,"\n",n)
... | 24 | 58 | 0.472973 |
870c5accc8a181d69392e0b19859b15d5dbaf7c7 | 2,161 | py | Python | MachineLearning/Ensemble/GradientBoostingTree.py | percycat/Tutorial | d01fbb974c3a85436ea68ec277ca55cd553dd61f | [
"MIT"
] | null | null | null | MachineLearning/Ensemble/GradientBoostingTree.py | percycat/Tutorial | d01fbb974c3a85436ea68ec277ca55cd553dd61f | [
"MIT"
] | null | null | null | MachineLearning/Ensemble/GradientBoostingTree.py | percycat/Tutorial | d01fbb974c3a85436ea68ec277ca55cd553dd61f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 19 06:10:55 2018
@author: PC Lee
Demo of gradient boosting tree
A very nice reference for gradient boosting
http://homes.cs.washington.edu/~tqchen/pdf/BoostedTree.pdf
LightGBM
https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide
Catboost
https://gith... | 28.813333 | 90 | 0.710782 |
870cea4c86e4cc9024721aa610576f983d0f1449 | 215 | py | Python | rurouni/exceptions.py | PinkDiamond1/Kenshin | bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb | [
"Apache-2.0"
] | 219 | 2016-04-24T10:09:25.000Z | 2022-02-02T22:12:17.000Z | rurouni/exceptions.py | PinkDiamond1/Kenshin | bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb | [
"Apache-2.0"
] | 16 | 2016-04-22T07:45:26.000Z | 2018-01-11T03:16:30.000Z | rurouni/exceptions.py | PinkDiamond1/Kenshin | bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb | [
"Apache-2.0"
] | 29 | 2016-05-12T05:47:34.000Z | 2021-11-05T19:19:12.000Z | # coding: utf-8
| 15.357143 | 41 | 0.767442 |
870cf724477b120338bce4e51453e770e70b63e5 | 1,756 | py | Python | aydin/it/transforms/test/test_fixed_pattern.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 78 | 2021-11-08T16:11:23.000Z | 2022-03-27T17:51:04.000Z | aydin/it/transforms/test/test_fixed_pattern.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 19 | 2021-11-08T17:15:40.000Z | 2022-03-30T17:46:55.000Z | aydin/it/transforms/test/test_fixed_pattern.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 7 | 2021-11-09T17:42:32.000Z | 2022-03-09T00:37:57.000Z | import numpy
from scipy.ndimage import gaussian_filter
from skimage.data import binary_blobs
from skimage.util import random_noise
from aydin.it.transforms.fixedpattern import FixedPatternTransform
| 33.132075 | 81 | 0.678246 |
870dbc44ca3ddd2e95df266b346d82599c7bb3ea | 1,069 | py | Python | lib/geovista/__init__.py | trexfeathers/geovista | f11a7a54ef11d8542be632c29f9fe6653572879e | [
"BSD-3-Clause"
] | 11 | 2021-05-12T08:45:51.000Z | 2022-03-15T11:45:22.000Z | lib/geovista/__init__.py | trexfeathers/geovista | f11a7a54ef11d8542be632c29f9fe6653572879e | [
"BSD-3-Clause"
] | 13 | 2021-11-22T17:10:20.000Z | 2022-03-29T08:10:51.000Z | lib/geovista/__init__.py | trexfeathers/geovista | f11a7a54ef11d8542be632c29f9fe6653572879e | [
"BSD-3-Clause"
] | 5 | 2021-05-14T13:36:00.000Z | 2022-03-08T11:49:20.000Z | from os import environ
from pathlib import Path
from appdirs import user_cache_dir
from ._version import version as __version__ # noqa: F401
from .bridge import Transform # noqa: F401
from .core import combine # noqa: F401
from .geodesic import BBox, line, panel, wedge # noqa: F401
from .geometry import get_coast... | 26.725 | 87 | 0.781104 |
870dfc6d56b7b14caa775a8da4e5a06fd9e0533c | 421 | py | Python | app.py | Nohossat/Smart-tic-tac-toe | 204b97bf4874e0ee604abdb9b215e5b8ddcef497 | [
"MIT"
] | null | null | null | app.py | Nohossat/Smart-tic-tac-toe | 204b97bf4874e0ee604abdb9b215e5b8ddcef497 | [
"MIT"
] | null | null | null | app.py | Nohossat/Smart-tic-tac-toe | 204b97bf4874e0ee604abdb9b215e5b8ddcef497 | [
"MIT"
] | null | null | null | from morpion import Morpion
import argparse
if __name__=='__main__':
parser = argparse.ArgumentParser(description="Play Tic-Tac-Toe\n")
parser.add_argument('-mode', '--mode', help='play against Human', default=False)
args = parser.parse_args()
mode = False
if args.mode in ["h", "human", "humain",... | 28.066667 | 84 | 0.674584 |
870f4a06886086706c0904777ac053129591b6cd | 715 | py | Python | src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 63 | 2018-05-17T21:02:14.000Z | 2021-11-15T19:18:03.000Z | src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 225 | 2017-09-08T02:24:58.000Z | 2018-05-16T12:18:58.000Z | src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 21 | 2018-06-14T21:58:24.000Z | 2021-11-15T19:18:06.000Z | """
Mount /sys/fs/cgroup Option
"""
from typing import Callable
import click
def cgroup_mount_option(command: Callable[..., None]) -> Callable[..., None]:
"""
Option for choosing to mount `/sys/fs/cgroup` into the container.
"""
function = click.option(
'--mount-sys-fs-cgroup/--no-mount-sys-... | 27.5 | 79 | 0.587413 |
870fcfd9e03efc22e487caad092766b6eab4008d | 5,676 | py | Python | soapfish/soap.py | jocassid/soapfish | 7926335089ec286d3f4f491f72d84ec7096c79c9 | [
"BSD-3-Clause"
] | null | null | null | soapfish/soap.py | jocassid/soapfish | 7926335089ec286d3f4f491f72d84ec7096c79c9 | [
"BSD-3-Clause"
] | 1 | 2018-02-19T22:40:44.000Z | 2018-02-19T22:40:44.000Z | soapfish/soap.py | jocassid/soapfish | 7926335089ec286d3f4f491f72d84ec7096c79c9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
SOAP protocol implementation, dispatchers and client stub.
'''
from __future__ import absolute_import
import logging
import string
import requests
import six
from . import core, namespaces as ns, soap11, soap12, wsa
from .utils import uncapitalize
SOAP_HTTP_Transport = ns.wsdl_soap_http... | 33.585799 | 101 | 0.650106 |
8710f101398ef0acb5a1b6361f52aad333d1ef26 | 2,505 | py | Python | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 28 | 2017-10-04T03:41:56.000Z | 2021-07-18T14:53:36.000Z | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 13 | 2017-09-06T10:49:44.000Z | 2019-09-07T13:53:24.000Z | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 15 | 2018-02-13T00:08:55.000Z | 2022-02-14T05:46:43.000Z | """functions that generate reports and figures using the .xml output from the performance tests"""
__all__ = ['TestSuite', 'parse_testsuite_xml']
def scalar_element(element):
value = element.get('value')
try:
return int(value)
except:
try:
return float(value)
except:
... | 29.821429 | 106 | 0.668663 |
8711dd388b808ba1f43903d57986edc525c23668 | 2,538 | py | Python | snippets_dataset.py | AAlben/kaggle_SETI_search_ET | 9194db0372d0d49ab914f29f1bf221ea8a32474a | [
"MIT"
] | null | null | null | snippets_dataset.py | AAlben/kaggle_SETI_search_ET | 9194db0372d0d49ab914f29f1bf221ea8a32474a | [
"MIT"
] | null | null | null | snippets_dataset.py | AAlben/kaggle_SETI_search_ET | 9194db0372d0d49ab914f29f1bf221ea8a32474a | [
"MIT"
] | null | null | null | import os
import pdb
import torch
import random
import numpy as np
import pandas as pd
from torch.utils.data import Dataset
| 33.84 | 105 | 0.618597 |
87122655263199d9b374ca6048b68654898e3165 | 2,809 | py | Python | tf_agents/keras_layers/bias_layer.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 2 | 2021-10-30T16:57:37.000Z | 2021-11-17T10:21:17.000Z | tf_agents/keras_layers/bias_layer.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | null | null | null | tf_agents/keras_layers/bias_layer.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 2 | 2020-06-05T18:38:16.000Z | 2020-07-08T14:41:42.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents 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... | 33.843373 | 80 | 0.698825 |
8712aff8958c54d885bd36104125e3e7046bb22c | 29,060 | py | Python | ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py | dr11m/steamSkins | 74202ec23c2b096ef18bad0a408ca7f6cccd187f | [
"MIT"
] | null | null | null | ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py | dr11m/steamSkins | 74202ec23c2b096ef18bad0a408ca7f6cccd187f | [
"MIT"
] | null | null | null | ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py | dr11m/steamSkins | 74202ec23c2b096ef18bad0a408ca7f6cccd187f | [
"MIT"
] | 1 | 2022-02-20T21:01:16.000Z | 2022-02-20T21:01:16.000Z | import os
from selenium import webdriver
import random
import time
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.common.act... | 43.699248 | 1,098 | 0.618582 |
871306cf01b343214f8b57e9282bd4078015ff09 | 308 | py | Python | Example/Algo/LinearRegressionTest.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 4 | 2021-04-12T06:18:57.000Z | 2021-12-03T15:18:09.000Z | Example/Algo/LinearRegressionTest.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 1 | 2021-07-14T16:40:21.000Z | 2021-07-14T16:40:21.000Z | Example/Algo/LinearRegressionTest.py | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 2 | 2020-12-04T17:49:11.000Z | 2021-01-04T15:25:33.000Z | # __Date__ : 1/5/2020.
# __Author__ : CodePerfectPlus
# __Package__ : Python 3
# __GitHub__ : https://www.github.com/codeperfectplus
#
from Algorithms import LinearRegression
X = [12, 24, 36]
y = [25, 49, 73]
lr = LinearRegression()
lr.fit(X, y)
y_predict = lr.predict(12)
print(y_predict)
| 19.25 | 56 | 0.675325 |
871339da3c5ad19f363b1ca88a51d6c2fea28c59 | 3,858 | py | Python | scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 3 | 2015-11-20T08:44:42.000Z | 2016-12-14T01:40:03.000Z | scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 1 | 2017-09-04T14:04:32.000Z | 2020-05-26T19:04:00.000Z | scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import with_statement
from cogent import LoadTree
from cogent.phylo import nj as NJ
from cogent.phylo.distance import EstimateDistances
from cogent.core.info import Info
from cogent.util import progress_display as UI
__author__ = "Peter Maxwell"
__copyright__ = "Copyright 2007-20... | 38.58 | 89 | 0.664593 |
8713e249df8ab7b42369aeb0097bb65f5da669b5 | 992 | py | Python | di_scoring/admin.py | tboz203/django-scoring | 9766ce861022e2f42d42ced156966099f18c2397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | di_scoring/admin.py | tboz203/django-scoring | 9766ce861022e2f42d42ced156966099f18c2397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | di_scoring/admin.py | tboz203/django-scoring | 9766ce861022e2f42d42ced156966099f18c2397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from django.contrib import admin
from di_scoring import models
# copypastad with love from :
# `http://stackoverflow.com/questions/10543032/how-to-show-all-fields-of-model-in-admin-page`
# subclassed modeladmins' list_displays will contain all model fields except
# for id
| 30.060606 | 93 | 0.681452 |
8713f50880ce1a36e5b15f90eca7dd6b247d359c | 4,654 | py | Python | Day Pogress - 18~100/Day 17/constructor.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | 1 | 2022-02-04T07:04:34.000Z | 2022-02-04T07:04:34.000Z | Day Pogress - 18~100/Day 17/constructor.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | 12 | 2022-02-13T12:10:32.000Z | 2022-02-17T09:36:49.000Z | Day Pogress - 18~100/Day 17/constructor.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | null | null | null | """
how to create a class
a class is constructed through constructor
=> a class can be constructed through specific function called "__init__(self)"
"""
# let's create a Class
abhishek = Person(21, 90, 31114111, 12345, "student", "to be a good programmer")
abhishek.set_age(20)
abhishek.set_marks(90)
abhishek.s... | 26.747126 | 89 | 0.595617 |
8714cfb5d5d59c4388d610853c7edfc7de4282a8 | 9,309 | py | Python | src/compas_rhino/artists/networkartist.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | src/compas_rhino/artists/networkartist.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | src/compas_rhino/artists/networkartist.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from functools import partial
import compas_rhino
from compas.geometry import centroid_points
from compas.utilities import color_to_colordict
from compas.artists import NetworkArtist
from .artist import Rhino... | 37.236 | 98 | 0.5615 |
8714de68982283bcaeff5e6a0b71251d452dbab8 | 1,873 | py | Python | tests/x7/lib/test_shell_tools.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | tests/x7/lib/test_shell_tools.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | tests/x7/lib/test_shell_tools.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | # Originally auto-generated on 2021-02-15-12:14:36 -0500 EST
# By '--verbose --verbose x7.lib.shell_tools'
from unittest import TestCase
from x7.lib.annotations import tests
from x7.testing.support import Capture
from x7.lib import shell_tools
from x7.lib.shell_tools_load import ShellTool
| 36.019231 | 74 | 0.662573 |
8716b23b59dc13aa5f3ac5d9e7d97c51ba82770e | 754 | py | Python | HmacCalculation/Hmac256Calculation.py | likloadm/cross_platform_crypto | e828c9c9504c022d3882d174f7a8fd424aa19991 | [
"Unlicense"
] | 15 | 2020-11-14T09:50:50.000Z | 2022-03-13T16:39:19.000Z | HmacCalculation/Hmac256Calculation.py | likloadm/cross_platform_crypto | e828c9c9504c022d3882d174f7a8fd424aa19991 | [
"Unlicense"
] | 1 | 2021-04-26T07:42:27.000Z | 2021-07-06T07:39:17.000Z | HmacCalculation/Hmac256Calculation.py | likloadm/cross_platform_crypto | e828c9c9504c022d3882d174f7a8fd424aa19991 | [
"Unlicense"
] | 6 | 2021-11-03T11:28:36.000Z | 2022-03-16T13:03:20.000Z | from Crypto.Hash import HMAC, SHA256
import base64
print("HMAC 256 calculation")
hmac256KeyString = "hmac256ForAesEncryption"
plaintext = "The quick brown fox jumps over the lazy dog"
print ("hmac256Key: " + hmac256KeyString)
print("plaintext: " + plaintext)
hmac256 = hmac256Calculation(hmac256KeyString, pla... | 32.782609 | 94 | 0.733422 |
8716b6c023660b91d85d95f0d7e719aaefef6ec6 | 408 | py | Python | elvaapp/elvaapp/doctype/vache/vache_dashboard.py | ovresko/elvadesk | 10090244ce5bd379cf16763e216e6011870de937 | [
"MIT"
] | 1 | 2020-12-28T16:35:41.000Z | 2020-12-28T16:35:41.000Z | elvaapp/troupeau/doctype/vache/vache_dashboard.py | ovresko/elvadesk | 10090244ce5bd379cf16763e216e6011870de937 | [
"MIT"
] | null | null | null | elvaapp/troupeau/doctype/vache/vache_dashboard.py | ovresko/elvadesk | 10090244ce5bd379cf16763e216e6011870de937 | [
"MIT"
] | null | null | null | from frappe import _
| 17 | 53 | 0.544118 |
8716deba2bfaed14d7a9b60985573ae32efd9715 | 1,447 | py | Python | setup.py | patlegu/python-SNS-API | 5eafe0309bdceacc8a5b617067d01f5a21814b14 | [
"Apache-2.0"
] | 9 | 2019-02-22T10:18:12.000Z | 2022-03-25T11:23:32.000Z | setup.py | patlegu/python-SNS-API | 5eafe0309bdceacc8a5b617067d01f5a21814b14 | [
"Apache-2.0"
] | 4 | 2019-10-10T10:48:40.000Z | 2021-12-21T14:23:23.000Z | setup.py | patlegu/python-SNS-API | 5eafe0309bdceacc8a5b617067d01f5a21814b14 | [
"Apache-2.0"
] | 5 | 2020-01-23T19:23:04.000Z | 2022-03-22T16:44:38.000Z | #!/usr/bin/python
import setuptools
import os
version = {}
with open(os.path.join('stormshield', 'sns', 'sslclient', '__version__.py'), 'r') as fh:
exec(fh.read(), version)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="stormshield.sns.sslclient",
version=ver... | 30.145833 | 88 | 0.641327 |
8719077594c4ee561b05b1f90d93c6bca7fc1d70 | 23 | py | Python | vpc_hyp2/ansible/roles/vm_create/files/variables.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null | vpc_hyp2/ansible/roles/vm_create/files/variables.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null | vpc_hyp2/ansible/roles/vm_create/files/variables.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null |
dom_list = ['an_h1']
| 5.75 | 20 | 0.565217 |
871a4c4bcd5ba8f6c98873acee5df7de49d7bdba | 50,713 | py | Python | Examples/ApiExamples/ex_structured_document_tag.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 3 | 2021-12-04T22:17:28.000Z | 2022-02-22T03:30:01.000Z | Examples/ApiExamples/ex_structured_document_tag.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 4 | 2021-11-26T10:01:06.000Z | 2021-12-14T15:01:11.000Z | Examples/ApiExamples/ex_structured_document_tag.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 2 | 2021-10-20T18:06:22.000Z | 2021-10-29T20:59:18.000Z | # Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
#
# This file is part of Aspose.Words. The source code in this file
# is only intended as a supplement to the documentation, and is provided
# "as is", without warranty of any kind, either expressed or implied.
import uuid
from datetime import datetime
im... | 48.809432 | 179 | 0.692643 |
871afb26bdc862a0ddb469ca8e427353406c19fc | 690 | py | Python | tests/emulator/kernel/test_kernel.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 17 | 2017-07-26T13:08:34.000Z | 2022-02-19T20:44:02.000Z | tests/emulator/kernel/test_kernel.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 4 | 2017-10-12T20:56:39.000Z | 2020-05-04T09:19:44.000Z | tests/emulator/kernel/test_kernel.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 4 | 2017-10-16T16:24:16.000Z | 2022-03-21T19:07:06.000Z | from .utils import init_kernel
| 24.642857 | 71 | 0.614493 |
871c1782c66580c2fb34c35862df10f3a69db67c | 10,183 | py | Python | tensorflow_graphics/rendering/barycentrics.py | Tensorflow-Devs/graphics | e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1 | [
"Apache-2.0"
] | null | null | null | tensorflow_graphics/rendering/barycentrics.py | Tensorflow-Devs/graphics | e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1 | [
"Apache-2.0"
] | null | null | null | tensorflow_graphics/rendering/barycentrics.py | Tensorflow-Devs/graphics | e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorFlow 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 44.859031 | 80 | 0.7104 |
871cf554500d1f5fcf075f0dd9341f26889da829 | 1,780 | py | Python | to_remove/Crawler/measurement_loc_crawler.py | jsdelivrbot/SeoulWind | be4ee24981df651104c178f04fe59c5be9cd946c | [
"MIT"
] | null | null | null | to_remove/Crawler/measurement_loc_crawler.py | jsdelivrbot/SeoulWind | be4ee24981df651104c178f04fe59c5be9cd946c | [
"MIT"
] | null | null | null | to_remove/Crawler/measurement_loc_crawler.py | jsdelivrbot/SeoulWind | be4ee24981df651104c178f04fe59c5be9cd946c | [
"MIT"
] | 2 | 2018-06-22T01:16:55.000Z | 2018-12-09T03:37:55.000Z | from parameters import Parameters
from bs4 import BeautifulSoup
import requests
import json
f = open('observatory.csv', 'w', encoding='utf8')
url = 'http://cleanair.seoul.go.kr/inform.htm?method=observatory'
res = requests.get(url)
soup = BeautifulSoup(res.text, "html.parser")
table_pages = soup.find('table', {'cl... | 32.363636 | 113 | 0.600562 |
871edef7298e1f6e8174cf24afd5721a5373f0fa | 3,297 | py | Python | google_analytics/predictor.py | hadisotudeh/jads_kaggle | 384928f8504053692ee4569f9692dd8ecebe1df3 | [
"MIT"
] | 11 | 2018-01-20T08:17:34.000Z | 2019-12-04T08:40:11.000Z | google_analytics/predictor.py | hadisotudeh/jads_kaggle | 384928f8504053692ee4569f9692dd8ecebe1df3 | [
"MIT"
] | 55 | 2018-01-19T15:23:45.000Z | 2019-11-01T09:51:21.000Z | google_analytics/predictor.py | hadisotudeh/jads_kaggle | 384928f8504053692ee4569f9692dd8ecebe1df3 | [
"MIT"
] | 28 | 2018-01-17T16:18:23.000Z | 2020-05-25T14:14:49.000Z | import numpy as np
from sklearn.metrics import mean_squared_error, make_scorer
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.base import BaseEstimator
from utils import timing # noqa
TUNING_OUTPUT_DEFAULT = 'tuning.txt'
RANDOM_STATE = 42 # Used for reproducible results
| 40.703704 | 142 | 0.670003 |
871f5dc52afe55d8105df47c84018b6b4a55294d | 3,544 | py | Python | py/fft.py | bradowen2011/lightshowpi | 15713bdd64dd4e7be52abee3b1aac9286eebaf9a | [
"BSD-2-Clause"
] | 3 | 2016-10-13T20:47:13.000Z | 2018-11-30T00:53:26.000Z | py/fft.py | bradowen2011/lightshowpi | 15713bdd64dd4e7be52abee3b1aac9286eebaf9a | [
"BSD-2-Clause"
] | null | null | null | py/fft.py | bradowen2011/lightshowpi | 15713bdd64dd4e7be52abee3b1aac9286eebaf9a | [
"BSD-2-Clause"
] | 8 | 2015-10-10T05:08:59.000Z | 2021-01-31T15:57:27.000Z | #
# Licensed under the BSD license. See full license in LICENSE file.
# http://www.lightshowpi.com/
#
# Author: Todd Giles (todd@lightshowpi.com)
"""FFT methods for computing / analyzing frequency response of audio.
This is simply a wrapper around FFT support in numpy.
Initial FFT code inspired from the code posted... | 34.407767 | 98 | 0.683126 |
871f9d647a8ce835e1b9294a55164bca63acffe5 | 2,625 | py | Python | benchmark/test.py | franklx/misaka | 616d360bee576e4b1dfb36c58bd05a5166f59a38 | [
"MIT"
] | 1 | 2017-09-04T05:32:10.000Z | 2017-09-04T05:32:10.000Z | benchmark/test.py | franklx/misaka | 616d360bee576e4b1dfb36c58bd05a5166f59a38 | [
"MIT"
] | null | null | null | benchmark/test.py | franklx/misaka | 616d360bee576e4b1dfb36c58bd05a5166f59a38 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from misaka import Markdown, BaseRenderer, HtmlRenderer, \
SmartyPants, \
EXT_FENCED_CODE, EXT_TABLES, EXT_AUTOLINK, EXT_STRIKETHROUGH, \
EXT_SUPERSCRIPT, HTML_USE_XHTML, \
TABLE_ALIGN_L, TABLE_ALIGN_R, TABLE_ALIGN_C, \
TABLE_ALIGNMASK, TABLE_HEADER
md = Markdown(BleepRen... | 25.240385 | 78 | 0.552762 |
87214198b671c3bd959654596c5df39383991bf6 | 3,663 | py | Python | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | """
The batchimport_settings.py module initializes itself with defaults but
allows for the values to be overridden via the django project's settings
file.
NOTE: These values should be considered CONSTANTS even though I'm kind
of cheating and using them as variables to initialize them here.
"""
import settings
def ... | 43.094118 | 107 | 0.803986 |
8722f6f5404b5e8a02c1795e4a9cd19c750cfc01 | 10,119 | py | Python | tests/test_xunit_plugin.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | tests/test_xunit_plugin.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | tests/test_xunit_plugin.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
import slash
from lxml import etree
# Taken from https://gist.github.com/jzelenkov/959290
_XUNIT_XSD = """<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documenta... | 45.376682 | 303 | 0.608657 |
87234ddbc75c00fe76141a6b66832d15ac92c6f3 | 2,495 | py | Python | slides/figs/draw.py | hiyouga/AMP-Poster-Slides-LaTeX | c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40 | [
"MIT"
] | 8 | 2021-05-25T11:56:48.000Z | 2021-12-20T07:12:01.000Z | slides/figs/draw.py | hiyouga/AMP-Poster-Slides-LaTeX | c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40 | [
"MIT"
] | 1 | 2021-05-28T15:25:37.000Z | 2021-05-30T05:01:24.000Z | slides/figs/draw.py | hiyouga/AMP-Poster-Slides-LaTeX | c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40 | [
"MIT"
] | 2 | 2021-05-26T01:39:53.000Z | 2021-12-20T06:36:04.000Z | import matplotlib
import numpy as np
import matplotlib.pyplot as plt
default_params = {
'text.usetex': False,
'font.family': 'Times New Roman',
'font.serif': 'Times New Roman'
}
if __name__ == '__main__':
plt.rcParams.update(default_params)
myfont1 = matplotlib.font_manager.FontProperties(fname='C... | 43.77193 | 122 | 0.600802 |
8723d146de1810223e1e03f81066a7c04d4f199d | 144 | py | Python | tests/unit/test_u_wsgi.py | p15r/HYOK-Wrapper | 257f29150f2f035e12aa2247d95aac4263e1694b | [
"MIT"
] | 2 | 2020-10-02T13:10:26.000Z | 2020-10-12T07:21:55.000Z | tests/unit/test_u_wsgi.py | p15r/HYOK-Wrapper | 257f29150f2f035e12aa2247d95aac4263e1694b | [
"MIT"
] | 12 | 2020-10-03T13:59:50.000Z | 2020-10-26T20:10:32.000Z | tests/unit/test_u_wsgi.py | p15r/HYOK-Wrapper | 257f29150f2f035e12aa2247d95aac4263e1694b | [
"MIT"
] | null | null | null | import wsgi # noqa: F401
| 20.571429 | 38 | 0.701389 |
87244a8e220cfb272e1a810228a8534c5aa83e79 | 884 | py | Python | ceefax/pages/index.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2020-03-28T15:53:22.000Z | 2020-03-28T15:53:22.000Z | ceefax/pages/index.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2021-02-05T13:43:52.000Z | 2021-02-05T13:43:52.000Z | ceefax/pages/index.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | null | null | null | from ceefax.page import Page
from ceefax import config
from ceefax import Ceefax
i_p = IndexPage("100")
| 26.787879 | 70 | 0.554299 |
872538f9e004a1966a45af99b31962b33d5a2ea0 | 372 | py | Python | bin/award_ebadge_declare.py | ervikey/SA-ctf_scoreboard | 00b631e9ed2c075f96f660583656ae68eb4b17e0 | [
"CC0-1.0"
] | 106 | 2018-03-09T13:03:05.000Z | 2022-03-10T11:01:48.000Z | bin/award_ebadge_declare.py | ervikey/SA-ctf_scoreboard | 00b631e9ed2c075f96f660583656ae68eb4b17e0 | [
"CC0-1.0"
] | 17 | 2018-05-11T00:53:47.000Z | 2020-05-07T10:14:40.000Z | bin/award_ebadge_declare.py | ervikey/SA-ctf_scoreboard | 00b631e9ed2c075f96f660583656ae68eb4b17e0 | [
"CC0-1.0"
] | 33 | 2018-04-23T20:18:11.000Z | 2022-03-27T16:41:03.000Z | # encode = utf-8
import os
import sys
import re
ta_name = 'SA-ctf_scoreboard'
ta_lib_name = 'sa_ctf_scoreboard'
pattern = re.compile(r"[\\/]etc[\\/]apps[\\/][^\\/]+[\\/]bin[\\/]?$")
new_paths = [path for path in sys.path if not pattern.search(path) or ta_name in path]
new_paths.insert(0, os.path.sep.join([os.path.dir... | 28.615385 | 86 | 0.688172 |
87259cd2c6b021df4f9006bba7f609c83a89593f | 503 | py | Python | books/migrations/0009_library_waitlist_items.py | rodbv/kamu | f390d91f7d7755b49176cf5d504648e3fe572237 | [
"MIT"
] | 70 | 2018-05-23T16:44:44.000Z | 2021-12-05T21:48:10.000Z | books/migrations/0009_library_waitlist_items.py | rodbv/kamu | f390d91f7d7755b49176cf5d504648e3fe572237 | [
"MIT"
] | 122 | 2018-10-06T21:31:24.000Z | 2020-11-09T15:04:56.000Z | books/migrations/0009_library_waitlist_items.py | rodbv/kamu | f390d91f7d7755b49176cf5d504648e3fe572237 | [
"MIT"
] | 50 | 2018-05-23T05:49:10.000Z | 2021-11-22T07:53:42.000Z | # Generated by Django 2.0.1 on 2019-01-07 14:45
from django.db import migrations, models
| 25.15 | 122 | 0.628231 |
8725efc65cc7a34903579071ce0f80f5535bdbf6 | 3,671 | py | Python | main.py | drdoof2019/Twitter-Sentiment-Analysis | b0fd17b2384c6540a08b63e1660c1c241f7645da | [
"MIT"
] | null | null | null | main.py | drdoof2019/Twitter-Sentiment-Analysis | b0fd17b2384c6540a08b63e1660c1c241f7645da | [
"MIT"
] | null | null | null | main.py | drdoof2019/Twitter-Sentiment-Analysis | b0fd17b2384c6540a08b63e1660c1c241f7645da | [
"MIT"
] | null | null | null | import re
import tweepy
from tweepy import OAuthHandler
from textblob import TextBlob
# pip install tweepy
# pip install textblob
# developer.twitter.com/en/portal/dashboard
# Yetkilendirme ilemleri
consumerKey = "qwe"
consumerSecret = "asd"
accessToken = "qweewq"
accessTokenSecret = "asddsa"
auth =... | 36.346535 | 140 | 0.651321 |
8726ffb07f7ca1189ea73517ad7af10fd540bf6c | 58 | py | Python | todo/__init__.py | maxios/gtd.py | afe91405c8f5ba7fc6cdd46e1818559b2a6079d3 | [
"BSD-3-Clause"
] | null | null | null | todo/__init__.py | maxios/gtd.py | afe91405c8f5ba7fc6cdd46e1818559b2a6079d3 | [
"BSD-3-Clause"
] | null | null | null | todo/__init__.py | maxios/gtd.py | afe91405c8f5ba7fc6cdd46e1818559b2a6079d3 | [
"BSD-3-Clause"
] | null | null | null | '''gtd.py'''
__version__ = '0.7.0'
__author__ = 'delucks'
| 14.5 | 22 | 0.62069 |
872757654f8085ced49101ead759a3fbe2d7c7bc | 7,695 | py | Python | SubredditScraper/scrape.py | tomhennessey/Subreddit-Scrape | 224c76fb179b6171634e7dd7739f73015c206d62 | [
"MIT"
] | null | null | null | SubredditScraper/scrape.py | tomhennessey/Subreddit-Scrape | 224c76fb179b6171634e7dd7739f73015c206d62 | [
"MIT"
] | null | null | null | SubredditScraper/scrape.py | tomhennessey/Subreddit-Scrape | 224c76fb179b6171634e7dd7739f73015c206d62 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
A simple subreddit scraper
"""
import datetime as dt
import logging
import time
import os
import sys
import getopt
import praw
from psaw import PushshiftAPI
if __package__ == None:
import db
else:
from . import db
def init_log():
"""
Initiates a logger for psaw to be used ... | 24.046875 | 86 | 0.591813 |
872b15d4a269e14f5342a8109b8993012c978013 | 1,222 | py | Python | trieste/models/gpflow/__init__.py | henrymoss/trieste | 4c8d14ead793fb49cdbb883789b799310873db70 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:53:48.000Z | 2021-10-02T19:53:48.000Z | trieste/models/gpflow/__init__.py | TsingQAQ/trieste | 6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b | [
"Apache-2.0"
] | null | null | null | trieste/models/gpflow/__init__.py | TsingQAQ/trieste | 6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Trieste Contributors
#
# 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... | 34.914286 | 92 | 0.787234 |
872daf06ad41c681b338cb82204799f97cdb8c02 | 829 | py | Python | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible
VALIDATE_ONLY_LETTERS_EXCEPTION_MESSAGE = 'Ensure this value contains only letters.'
| 29.607143 | 84 | 0.74427 |
872deb99006e5413d89c06dfa856df9a1719736e | 2,347 | py | Python | seleniumwire/thirdparty/mitmproxy/net/http/multipart.py | KozminMoci/selenium-wire | 063c44ab42ac5e53e28c8a8c49c9ae7036bd878b | [
"MIT"
] | 975 | 2018-06-23T10:50:42.000Z | 2022-03-31T00:56:03.000Z | seleniumwire/thirdparty/mitmproxy/net/http/multipart.py | KozminMoci/selenium-wire | 063c44ab42ac5e53e28c8a8c49c9ae7036bd878b | [
"MIT"
] | 492 | 2018-07-30T12:49:51.000Z | 2022-03-31T12:46:56.000Z | seleniumwire/thirdparty/mitmproxy/net/http/multipart.py | KozminMoci/selenium-wire | 063c44ab42ac5e53e28c8a8c49c9ae7036bd878b | [
"MIT"
] | 149 | 2018-08-29T06:53:12.000Z | 2022-03-31T09:23:56.000Z | import mimetypes
import re
from urllib.parse import quote
from seleniumwire.thirdparty.mitmproxy.net.http import headers
def decode(hdrs, content):
"""
Takes a multipart boundary encoded string and returns list of (key, value) tuples.
"""
v = hdrs.get("content-type")
if v:
v = header... | 34.014493 | 92 | 0.484448 |
872e1c57fa4968272b0db8d13d59197b314f92ad | 566 | py | Python | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import gettext_lazy
| 28.3 | 76 | 0.674912 |
872e646505f83dcab385fa79942ad96da9c731d8 | 1,156 | py | Python | flexselect/views.py | twerp/django-admin-flexselect-py3 | 38563b98cb333e6edd5351f7e88d6156e7a71a34 | [
"CC0-1.0"
] | null | null | null | flexselect/views.py | twerp/django-admin-flexselect-py3 | 38563b98cb333e6edd5351f7e88d6156e7a71a34 | [
"CC0-1.0"
] | null | null | null | flexselect/views.py | twerp/django-admin-flexselect-py3 | 38563b98cb333e6edd5351f7e88d6156e7a71a34 | [
"CC0-1.0"
] | null | null | null | import json
from django.http import HttpResponse
from django.forms.widgets import Select
from django.contrib.auth.decorators import login_required
from flexselect import (FlexSelectWidget, choices_from_instance,
details_from_instance, instance_from_request)
| 36.125 | 77 | 0.719723 |
872f00ae4d30467f373664e873bfd51982763b06 | 20,371 | py | Python | mscreen/autodocktools_prepare_py3k/AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/mscreen | a50f0b2f7104007c730baa51b4ec65c891008c47 | [
"MIT"
] | 9 | 2021-03-06T04:24:28.000Z | 2022-01-03T09:53:07.000Z | AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 3 | 2021-03-07T05:37:16.000Z | 2021-09-19T15:06:54.000Z | AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 4 | 2019-08-28T23:11:39.000Z | 2021-11-27T08:43:36.000Z | ########################################################################
#
# Vision Macro - Python source code - file generated by vision
# Thursday 01 July 2010 13:22:44
#
# The Scripps Research Institute (TSRI)
# Molecular Graphics Lab
# La Jolla, CA 92037, USA
#
# Copyright: Daniel Stoff... | 64.059748 | 852 | 0.676206 |
872f9d630a0a1249e1763f2b416aea3945ab0e26 | 4,821 | py | Python | taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 47 | 2021-04-13T10:32:13.000Z | 2022-03-31T10:30:30.000Z | taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 1 | 2021-11-01T07:41:04.000Z | 2021-11-01T07:41:10.000Z | taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 21 | 2021-04-13T10:32:17.000Z | 2022-03-26T07:43:22.000Z | from django.shortcuts import render,redirect,HttpResponse
from repository import models
from django.forms import Form
from django.forms import fields
from django.forms import widgets
import datetime
| 34.435714 | 194 | 0.630367 |
87304ebf26d53abe5381b3ecce55748ffeed5bfe | 442 | py | Python | examples/single_camera.py | Hikki12/camio | c183234083c0382b91ecda8952cda6640e78d974 | [
"MIT"
] | null | null | null | examples/single_camera.py | Hikki12/camio | c183234083c0382b91ecda8952cda6640e78d974 | [
"MIT"
] | null | null | null | examples/single_camera.py | Hikki12/camio | c183234083c0382b91ecda8952cda6640e78d974 | [
"MIT"
] | null | null | null | import cv2
from camio import Camera
camera = Camera(
src=0,
fps=30,
size=None,
emitterIsEnabled=False,
queueModeEnabled=False,
backgroundIsEnabled=True,
)
camera.start()
while True:
image = camera.read()
if image is not None:
c... | 16.37037 | 41 | 0.565611 |
873062623f7ba6c782e2eb75ee0d4275cd9a9460 | 876 | py | Python | setup.py | Seojiyoon/pydata_jy | 3166b34ea8cf078bf934a8b3b12b395cf01e14fa | [
"MIT"
] | null | null | null | setup.py | Seojiyoon/pydata_jy | 3166b34ea8cf078bf934a8b3b12b395cf01e14fa | [
"MIT"
] | null | null | null | setup.py | Seojiyoon/pydata_jy | 3166b34ea8cf078bf934a8b3b12b395cf01e14fa | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pydata_jy',
version='1.0.0',
description='PyData Location List',... | 27.375 | 63 | 0.642694 |
87317b99687d8331d065138ebb8a07bd2daca0b3 | 4,759 | py | Python | src/modules/bot_info.py | 490720818/jx3_bot | e73822914c21d399cd5f51f103efb30fb7d3b534 | [
"MIT"
] | 22 | 2021-09-05T23:29:34.000Z | 2022-02-18T14:45:31.000Z | src/modules/bot_info.py | 490720818/jx3_bot | e73822914c21d399cd5f51f103efb30fb7d3b534 | [
"MIT"
] | 10 | 2021-09-23T07:43:47.000Z | 2021-12-20T04:26:47.000Z | src/modules/bot_info.py | 490720818/jx3_bot | e73822914c21d399cd5f51f103efb30fb7d3b534 | [
"MIT"
] | 8 | 2021-09-09T00:41:54.000Z | 2022-01-17T07:01:11.000Z | from datetime import datetime
from typing import Optional
from src.utils.config import config
from tortoise import fields
from tortoise.models import Model
defaule_nickname: str = config.get('default').get('nickname')
| 23.795 | 114 | 0.536037 |
87340f549a9504189615f389775f3fa776205530 | 5,816 | py | Python | ckan/tests/legacy/functional/test_admin.py | ogdch/ckan | dd5d6a46971bcd167450d58eb2613b2fe0c40f38 | [
"Apache-2.0"
] | null | null | null | ckan/tests/legacy/functional/test_admin.py | ogdch/ckan | dd5d6a46971bcd167450d58eb2613b2fe0c40f38 | [
"Apache-2.0"
] | 1 | 2016-09-20T16:46:29.000Z | 2016-09-20T16:46:29.000Z | ckan/tests/legacy/functional/test_admin.py | ogdch/ckan | dd5d6a46971bcd167450d58eb2613b2fe0c40f38 | [
"Apache-2.0"
] | 3 | 2017-03-09T15:07:14.000Z | 2019-11-17T18:32:19.000Z | import ckan.model as model
from ckan.tests.legacy import url_for, CreateTestData, WsgiAppCase
## This is no longer used
| 38.263158 | 98 | 0.617779 |
87375bd58b68763ac46aa57f63b861f0eab7f1f4 | 943 | py | Python | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 10 | 2019-12-19T21:17:46.000Z | 2022-02-22T15:47:29.000Z | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 2 | 2020-06-05T03:14:15.000Z | 2020-06-14T09:14:54.000Z | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 2 | 2020-01-08T14:49:46.000Z | 2021-06-06T03:36:04.000Z | """
Copyright (c) 2019 Yevheniia Soroka
Licensed under the MIT License
Author: Yevheniia Soroka
Email: ysoroka@cs.stonybrook.edu
Last modified: 18/12/2019
Usage:
Run this script to train GloVe model on Adobe tags.
"""
import os
import gluonnlp as nlp
import numpy as np
import matplotlib.pyplot as plt
import seaborn a... | 25.486486 | 79 | 0.795334 |
87384dc72f9e3199e13ece29c53d8947b043dfd8 | 3,592 | py | Python | src/py/fi3201/vis-anim/plot-sine-wave.py | butiran/butiran.github.io | bf99f55819a140190e5bda8f9675109ef607eb9d | [
"MIT"
] | null | null | null | src/py/fi3201/vis-anim/plot-sine-wave.py | butiran/butiran.github.io | bf99f55819a140190e5bda8f9675109ef607eb9d | [
"MIT"
] | 2 | 2020-08-08T13:57:20.000Z | 2020-08-08T14:18:05.000Z | src/py/fi3201/vis-anim/plot-sine-wave.py | butiran/butiran.github.io | bf99f55819a140190e5bda8f9675109ef607eb9d | [
"MIT"
] | 1 | 2020-08-08T13:54:23.000Z | 2020-08-08T13:54:23.000Z | #
# plot-sine-wave.py
# Produce a PNG file of a sine wave plot
#
# Sparisoma Viridi | https://butiran.github.io
#
# Execute: py plot-sine-wave.py
# Output: sine-t-<time>.png
#
# 20210212
# 1901 Create this by modifying moving-sine-wave.py from [1].
# 1902 Remove FuncAnimation from matplotlib.animation.
# 1904 Can s... | 32.954128 | 197 | 0.707684 |
873cd9aa4ca69fb8db27282cbf6f46eaf38835b5 | 433 | py | Python | app/grandchallenge/emails/urls.py | comic/comic-django | 4f534fae2c7d2102e94991667398aef12394e32e | [
"Apache-2.0"
] | 7 | 2016-11-05T07:16:30.000Z | 2017-11-23T03:38:03.000Z | app/grandchallenge/emails/urls.py | comic/comic-django | 4f534fae2c7d2102e94991667398aef12394e32e | [
"Apache-2.0"
] | 113 | 2015-05-26T09:27:59.000Z | 2018-03-21T10:45:56.000Z | app/grandchallenge/emails/urls.py | comic/comic-django | 4f534fae2c7d2102e94991667398aef12394e32e | [
"Apache-2.0"
] | 7 | 2015-07-16T20:11:22.000Z | 2017-06-06T02:41:24.000Z | from django.urls import path
from grandchallenge.emails.views import (
EmailCreate,
EmailDetail,
EmailList,
EmailUpdate,
)
app_name = "emails"
urlpatterns = [
path("", EmailList.as_view(), name="list"),
path("create/", EmailCreate.as_view(), name="create"),
path("<int:pk>/",... | 24.055556 | 68 | 0.628176 |
873d8b0d8fb5d84af7dbc0818d054644154458aa | 2,212 | py | Python | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'AlertNotifications',
'AlertsToAdmins',
'DataSource',
'ExportData',
'RecommendationConfigStatus'... | 28.358974 | 90 | 0.735986 |
873dcab1696da898509ad657f23420a697da102c | 437 | py | Python | Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | null | null | null | Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | null | null | null | Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | 1 | 2021-01-30T22:19:07.000Z | 2021-01-30T22:19:07.000Z | # Write a program that reads a word and prints all substrings, sorted by length. For
# example, if the user provides the input "rum" , the program prints
# r
# u
# m
# ru
# um
# rum
word = str(input("Enter a word: "))
wordLen = len(word)
subLen = 1
start = 0
for i in range(wordLen):
star... | 20.809524 | 84 | 0.597254 |
873f6c355000a9b2cfae9ab9f448789e549f97f0 | 5,462 | py | Python | openprocurement/auction/esco/utils.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | null | null | null | openprocurement/auction/esco/utils.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | 3 | 2017-10-26T12:42:01.000Z | 2017-11-06T10:41:49.000Z | openprocurement/auction/esco/utils.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | 4 | 2017-07-10T12:03:38.000Z | 2017-09-08T10:19:46.000Z | # -*- coding: utf-8 -*-
import json
from functools import partial
from fractions import Fraction
from barbecue import chef
from decimal import Decimal
def sorting_start_bids_by_amount(bids, features=None, reverse=True):
"""
>>> from json import load
>>> import os
>>> data = load(open(os.path.join(os... | 41.694656 | 143 | 0.623398 |
87401eff4431709b68990d11ae10ed30cfb15a48 | 5,446 | py | Python | src/octopus/dispatcher/model/pool.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 35 | 2015-02-23T23:13:13.000Z | 2021-01-03T05:56:39.000Z | src/octopus/dispatcher/model/pool.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 15 | 2015-01-12T12:58:29.000Z | 2016-03-30T13:10:19.000Z | src/octopus/dispatcher/model/pool.py | mikrosimage/OpenRenderManagement | 6f9237a86cb8e4b206313f9c22424c8002fd5e4d | [
"BSD-3-Clause"
] | 20 | 2015-03-18T06:57:13.000Z | 2020-07-01T15:09:36.000Z | ####################################################################################################
# @file pool.py
# @package
# @author
# @date 2008/10/29
# @version 0.1
#
# @mainpage
#
####################################################################################################
from weakref import... | 37.047619 | 180 | 0.615498 |
87410a5465e9de55d3305d33ab36376d56b46d98 | 13,287 | py | Python | optimiser.py | FJFranklin/DomeBuilder | b286486dd4ff99eacf5754653a0e318f57884c21 | [
"MIT"
] | null | null | null | optimiser.py | FJFranklin/DomeBuilder | b286486dd4ff99eacf5754653a0e318f57884c21 | [
"MIT"
] | null | null | null | optimiser.py | FJFranklin/DomeBuilder | b286486dd4ff99eacf5754653a0e318f57884c21 | [
"MIT"
] | null | null | null | import argparse
import csv
import sys
import numpy as np
from BeesEtAl.BA_Garden import BA_Garden
from BeesEtAl.F3_Garden import F3_Garden
from BeesEtAl.Base_Coster import Base_Coster
from DomeBuilder.MaterialLib import MaterialLib
from DomeBuilder.Frame import Frame
# Defaults
bF3 ... | 38.181034 | 158 | 0.567246 |
87444113cdb71868cffb7577fdd08b827329e23a | 333 | py | Python | File_Counts.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | File_Counts.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | File_Counts.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | file_counts = {"jpg":10, "txt":14, "csv":2, "py":23}
print(file_counts)
file_counts["txt"]
14
"jpg" in file_counts
True
"html" in file_counts
False
file_counts["cfg"] = 8
print file_counts
{"jpg":10, "txt":14, "csv":2, "py":23, "cfg" = 8 }
file_counts["csv"]= 17
print file_counts
{"jpg":10, "txt":14, "csv":17, "py":23,... | 22.2 | 52 | 0.633634 |
8744e9e584ee597102545132a7add5ffd86f0a43 | 3,632 | py | Python | monolithic/order_transaction.py | liks79/sample-saga-with-step-functions | d515317f93cdb7b294de06de8f2b571c5bf9edb9 | [
"BSD-3-Clause"
] | 3 | 2020-03-17T08:08:15.000Z | 2020-04-17T07:16:05.000Z | monolithic/order_transaction.py | liks79/sample-saga-with-step-functions | d515317f93cdb7b294de06de8f2b571c5bf9edb9 | [
"BSD-3-Clause"
] | 3 | 2020-03-20T05:51:28.000Z | 2020-03-20T15:18:30.000Z | monolithic/order_transaction.py | liks79/sample-saga-with-aws-step-functions | d515317f93cdb7b294de06de8f2b571c5bf9edb9 | [
"BSD-3-Clause"
] | null | null | null | """
Database model for Monolithic application
~~~~~~~~~~~~~~~~~~~~~~~
:created date: Thursday, March 12, 2020
:description: Monolithic application implementation of simple order transaction scenario
:copyright: 2020 written by sungshik (liks79@gmail.com)
:license: BSD 3-Clause License, see LIC... | 33.62963 | 92 | 0.647577 |
8745e6b7c33659f03c672584cd00f2afaf7bb97a | 662 | py | Python | build.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | 1 | 2021-07-12T11:20:58.000Z | 2021-07-12T11:20:58.000Z | build.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | build.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
import os
PROJ_PATH = os.getenv('NEU_PATH')
# Test
lib_list = [
'dev_global','libutils', 'libmysql_utils',
'libbasemodel', 'libspider', 'libnlp',
'libcontext', 'service_api', 'libstrategy', 'libtask']
# lib_list = ['libstrategy',]
for lib in lib_list:
print(f"[Building {lib}]")
#... | 28.782609 | 58 | 0.637462 |
8747368931826c6a70cd078a736cf5cc4deabb4f | 175 | py | Python | problem0116.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0116.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0116.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #116 Red, green or blue tiles - Project Euler
# https://projecteuler.net/problem=116
#
# Code by Kevin Marciniak
#
###########################
| 19.444444 | 47 | 0.48 |
8749210b10b6c1b7dc00fe6d7d2356679b07cd0f | 7,569 | py | Python | src_adsabs/ads_dataviz.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | src_adsabs/ads_dataviz.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | src_adsabs/ads_dataviz.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | import numpy as np
import pickle
import pandas as pd
import random
from matplotlib import pyplot as plt
from plot_styles import *
# #################################################################
# Load data
# #################################################################
df_papers_auth = pickle.load(open('../... | 24.105096 | 77 | 0.631788 |
8749319477407cbd8ae7a058e2b902a1251b535a | 58,443 | py | Python | p2p/__init__.py | jperezlatimes/p2p-python | 193050303c762b4e46bd1f7637795e19178fd025 | [
"MIT"
] | 2 | 2017-08-05T12:25:17.000Z | 2017-11-21T05:00:19.000Z | p2p/__init__.py | jperezlatimes/p2p-python | 193050303c762b4e46bd1f7637795e19178fd025 | [
"MIT"
] | 28 | 2015-10-16T19:09:58.000Z | 2019-02-28T21:09:54.000Z | p2p/__init__.py | jperezlatimes/p2p-python | 193050303c762b4e46bd1f7637795e19178fd025 | [
"MIT"
] | 5 | 2015-10-15T22:56:10.000Z | 2018-11-13T20:44:39.000Z | from builtins import str
from builtins import range
from builtins import object
import os
import re
import json
import math
import logging
import requests
import warnings
from time import mktime
from copy import deepcopy
from datetime import datetime
from datetime import date
from p2p import utils
from p2p.cache import... | 35.898649 | 121 | 0.577092 |
874a9dec1f0fc82823381398bf087a0f194d84c8 | 707 | py | Python | plots/ttest.py | Denbergvanthijs/imbDRLAppendix | 2bc810366b5793abdb47fbe110caf0936c0c9f28 | [
"Apache-2.0"
] | null | null | null | plots/ttest.py | Denbergvanthijs/imbDRLAppendix | 2bc810366b5793abdb47fbe110caf0936c0c9f28 | [
"Apache-2.0"
] | null | null | null | plots/ttest.py | Denbergvanthijs/imbDRLAppendix | 2bc810366b5793abdb47fbe110caf0936c0c9f28 | [
"Apache-2.0"
] | 3 | 2021-01-22T14:53:55.000Z | 2021-10-08T16:44:11.000Z | import pandas as pd
from scipy.stats import ttest_ind
experiments = ("creditcardfraud", "histology", "aki")
usecols = ("F1", ) # "Precision", "Recall"
alpha = 0.05
for experiment in experiments:
df_nn = pd.read_csv(f"./results/{experiment}/nn.csv", usecols=usecols)
df_dqn = pd.read_csv(f"./results/{experimen... | 33.666667 | 89 | 0.623762 |
874c9017ad17aa813ad7a4b4bd54385bf7e3cba6 | 91 | py | Python | build/lib/acousondePy/__init__.py | SvenGastauer/acousondePy | 94a99dc9de35d644a35cbfa3078110a67a35212e | [
"MIT"
] | null | null | null | build/lib/acousondePy/__init__.py | SvenGastauer/acousondePy | 94a99dc9de35d644a35cbfa3078110a67a35212e | [
"MIT"
] | null | null | null | build/lib/acousondePy/__init__.py | SvenGastauer/acousondePy | 94a99dc9de35d644a35cbfa3078110a67a35212e | [
"MIT"
] | null | null | null | from .MTRead import MTread,spec_plot,read_multiple_MT
from .main import MTreadgui,acousonde | 45.5 | 53 | 0.868132 |
874d8921f97e42c910fe28fa0b4fc2ea91322a92 | 5,739 | py | Python | references/encase/code/resNet_3.py | wenh06/cinc2020 | b3757f54df86c8470e8f22f3399b4aecd64dd5d1 | [
"BSD-2-Clause"
] | 4 | 2020-10-31T07:02:37.000Z | 2021-05-24T08:11:35.000Z | references/encase/code/resNet_3.py | DeepPSP/cinc2020 | 38105ed9dac6554e2dd51b94e5553fb8ba22dbe6 | [
"BSD-2-Clause"
] | null | null | null | references/encase/code/resNet_3.py | DeepPSP/cinc2020 | 38105ed9dac6554e2dd51b94e5553fb8ba22dbe6 | [
"BSD-2-Clause"
] | 1 | 2021-05-25T14:54:31.000Z | 2021-05-25T14:54:31.000Z | # -*- coding: utf-8 -*-
'''
split long seq into small sub_seq,
feed sub_seq to lstm
'''
from __future__ import division, print_function, absolute_import
import tflearn
import tflearn.data_utils as du
import numpy as np
import ReadData
import tensorflow as tf
from tensorflow.contrib import learn
from tensorflow.con... | 40.415493 | 133 | 0.723471 |
874d8fc54269b9f8feb9d8bfe93b5d4acc6447c0 | 3,277 | py | Python | experiments/data_manager.py | bekirufuk/longformer | 75a07d57a46b6db298abf316e21b0d9f8763e26e | [
"Apache-2.0"
] | null | null | null | experiments/data_manager.py | bekirufuk/longformer | 75a07d57a46b6db298abf316e21b0d9f8763e26e | [
"Apache-2.0"
] | null | null | null | experiments/data_manager.py | bekirufuk/longformer | 75a07d57a46b6db298abf316e21b0d9f8763e26e | [
"Apache-2.0"
] | null | null | null | import os
import json
import config
import pandas as pd
if __name__ == '__main__':
# Icpr file holds detailed class information about the patents.
# We will only investigate section column which consist of 8 distinct classes.
ipcr = pd.read_csv(os.path.join(config.data_dir, 'ipcr.tsv'),
sep="\... | 36.411111 | 132 | 0.604821 |
874e44d7d7e00de1617e441b5379a89885ecea65 | 3,291 | py | Python | batch.py | jazevedo620/RepoMigrator | f358c91447e7fbb37b13c829aa16ce4ca36b213a | [
"MIT"
] | null | null | null | batch.py | jazevedo620/RepoMigrator | f358c91447e7fbb37b13c829aa16ce4ca36b213a | [
"MIT"
] | null | null | null | batch.py | jazevedo620/RepoMigrator | f358c91447e7fbb37b13c829aa16ce4ca36b213a | [
"MIT"
] | null | null | null | import migrate
import argparse
import shutil
__author__ = "Joseph Azevedo"
__version__ = "1.0"
DESCRIPTION = "Migrates multiple repositories at once"
HTTPS_START = "https://"
REPO_FORMAT = "{}/{}/{}.git"
# Run script
if __name__ == "__main__":
# Argument definitions
parser = argparse.ArgumentParser(descrip... | 44.472973 | 120 | 0.666971 |
874e9462e77f3d3d5e37bd23d18ef1dc06f8cc9d | 2,704 | py | Python | libs/logo.py | Ethical-Hacking-Tools/InstaReport | 051bde7b4b24283096c3a050ec7f70019c36994e | [
"MIT"
] | null | null | null | libs/logo.py | Ethical-Hacking-Tools/InstaReport | 051bde7b4b24283096c3a050ec7f70019c36994e | [
"MIT"
] | null | null | null | libs/logo.py | Ethical-Hacking-Tools/InstaReport | 051bde7b4b24283096c3a050ec7f70019c36994e | [
"MIT"
] | null | null | null | # coding=utf-8
#!/usr/bin/env python3
from libs.animation import colorText
logo = '''
[[black-bright-background]][[red]] [[green]] [[blue]] [[magenta]] [[cyan]] [[red]] [[green]] [[blue]] [[magenta]] [[cyan]] [[yellow]][[reset]]
[[black-bright-background]][[red]] [[green]] [[blue]]... | 100.148148 | 231 | 0.339867 |
874e95d0535471b1e17d17092df7f1e9c60c6cb5 | 1,228 | py | Python | coherence/upnp/services/servers/switch_power_server.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 60 | 2018-09-14T18:57:38.000Z | 2022-02-19T18:16:24.000Z | coherence/upnp/services/servers/switch_power_server.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 37 | 2018-09-04T08:51:11.000Z | 2022-02-21T01:36:21.000Z | coherence/upnp/services/servers/switch_power_server.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 16 | 2019-02-19T18:34:58.000Z | 2022-02-05T15:36:33.000Z | # -*- coding: utf-8 -*-
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# Copyright 2008, Frank Scholz <coherence@beebits.net>
'''
Switch Power service
====================
'''
from twisted.web import resource
from coherence.upnp.core import service
from coherence.upnp.core.soap_s... | 29.238095 | 73 | 0.697068 |
874f63a84b2700710fd965dced8d15b1927c1840 | 503 | py | Python | enumerate_and_map_and_reduce.py | aslange/Python_Basics | 53856d53b970026da7aa26b8bc468c03352d97b7 | [
"Apache-2.0"
] | null | null | null | enumerate_and_map_and_reduce.py | aslange/Python_Basics | 53856d53b970026da7aa26b8bc468c03352d97b7 | [
"Apache-2.0"
] | null | null | null | enumerate_and_map_and_reduce.py | aslange/Python_Basics | 53856d53b970026da7aa26b8bc468c03352d97b7 | [
"Apache-2.0"
] | null | null | null | # funo enumerate
lista = ['abacate', 'bola', 'cachorro'] # lista
for i in range(len(lista)):
print(i, lista[i])
for i, nome in enumerate(lista):
print(i, nome)
# funo map
valor = [1, 2, 3, 4, 5]
print(dobro(valor))
valor_dobrado = map(dobro, valor)
valor_dobrado = list(valor_dobrado)
print(valor_dobrado... | 14.371429 | 47 | 0.648111 |
87514738fd99c215e3ff8b572b9ce3a7d7ef4ffb | 30,068 | py | Python | VKActivityAnalisys/ActivityAnalysis.py | Rig0ur/VKAnalysis | 23bfedc490c99d488078039b9aab1c7cd3defce9 | [
"Apache-2.0"
] | 54 | 2018-03-04T10:18:59.000Z | 2022-03-24T20:47:13.000Z | VKActivityAnalisys/ActivityAnalysis.py | Lukmora/VKAnalysis | 23bfedc490c99d488078039b9aab1c7cd3defce9 | [
"Apache-2.0"
] | 7 | 2020-09-30T10:17:20.000Z | 2021-12-27T01:53:52.000Z | VKActivityAnalisys/ActivityAnalysis.py | Lukmora/VKAnalysis | 23bfedc490c99d488078039b9aab1c7cd3defce9 | [
"Apache-2.0"
] | 12 | 2019-11-29T15:54:39.000Z | 2021-12-13T22:33:20.000Z | import datetime
import json
import logging
import operator
import os
from collections import defaultdict
from datetime import date
import vk_api
import vk_api.exceptions
from vk_api import execute
#from .TimeActivityAnalysis import VKOnlineGraph
from .VKFilesUtils import check_and_create_path, DIR_PREFIX
| 48.1088 | 249 | 0.511906 |
87567263e4472013f3e9c6f40f7e91f2cff4f5d5 | 40 | py | Python | tipos de datos/integer1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | tipos de datos/integer1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | tipos de datos/integer1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | x = 100
y = 50
print('x=', x, 'y=', y)
| 8 | 23 | 0.4 |
8757b04fd4b2fb6a8af17658469898c40069ccbc | 4,776 | py | Python | tests/package/aeronpy/archive_test.py | welly87/aeron-python | 300a4344dd7f1526aeafb3a23fe5c85fb3313ad1 | [
"Apache-2.0"
] | 9 | 2018-11-16T03:06:22.000Z | 2022-03-13T19:14:15.000Z | tests/package/aeronpy/archive_test.py | welly87/aeron-python | 300a4344dd7f1526aeafb3a23fe5c85fb3313ad1 | [
"Apache-2.0"
] | 1 | 2021-11-10T12:43:09.000Z | 2021-11-10T12:43:09.000Z | tests/package/aeronpy/archive_test.py | welly87/aeron-python | 300a4344dd7f1526aeafb3a23fe5c85fb3313ad1 | [
"Apache-2.0"
] | 7 | 2019-01-21T13:52:03.000Z | 2022-03-08T21:09:06.000Z | import os
from hamcrest import *
from pytest import fixture
from tempfile import _get_candidate_names as temp_dir_candidates, tempdir
from time import sleep
from aeronpy import Archive
from aeronpy.driver import archiving_media_driver
def test__archive_create(aeron_directory):
archive = Archive(aeron_dir=aeron_... | 33.398601 | 105 | 0.751884 |
8757f1428a8a127f5ffc412dd30fac1f77be1d47 | 106 | py | Python | app/script.py | tallywiesenberg/spotter-blocker | 1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc | [
"MIT"
] | null | null | null | app/script.py | tallywiesenberg/spotter-blocker | 1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc | [
"MIT"
] | null | null | null | app/script.py | tallywiesenberg/spotter-blocker | 1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc | [
"MIT"
] | null | null | null | import edits
from edits import PageEditor
pe = PageEditor(keyword='spider', orientation='block')
pe.edit() | 26.5 | 54 | 0.783019 |
87599bd37b5c1ce4791f85dbb86aca71c590ae91 | 6,095 | py | Python | src/cascade_at/settings/base_case.py | ihmeuw/cascade-at | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 1 | 2019-10-14T23:18:04.000Z | 2019-10-14T23:18:04.000Z | src/cascade_at/settings/base_case.py | ihmeuw/cascade | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 35 | 2018-07-17T18:37:33.000Z | 2020-03-06T13:31:35.000Z | src/cascade_at/settings/base_case.py | ihmeuw/cascade | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 4 | 2018-07-13T00:01:35.000Z | 2019-09-02T23:56:11.000Z | BASE_CASE = {
"model": {
"random_seed": 495279142,
"default_age_grid": "0 0.01917808 0.07671233 1 5 10 20 30 40 50 60 70 80 90 100",
"default_time_grid": "1990 1995 2000 2005 2010 2015 2016",
"add_calc_emr": "from_both",
"birth_prev": 0,
"ode_step_size": 5,
"m... | 27.331839 | 89 | 0.31534 |
875a2fb1710235abb404827fb32a14c9aebf6c27 | 14,778 | py | Python | navrep/scripts/train_rnn.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | 48 | 2020-11-26T10:16:08.000Z | 2022-03-24T15:22:08.000Z | navrep/scripts/train_rnn.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | 1 | 2021-12-14T02:08:18.000Z | 2022-03-14T09:17:25.000Z | navrep/scripts/train_rnn.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | 18 | 2020-12-09T08:37:43.000Z | 2022-03-30T06:56:38.000Z | from __future__ import print_function
import numpy as np
import os
from datetime import datetime
import random
import time
import pickle
from pyniel.python_tools.path_tools import make_dir_if_not_exists
import pandas as pd
from navrep.models.vae2d import ConvVAE
from navrep.models.vae1d import Conv1DVAE
from navrep.mo... | 47.517685 | 110 | 0.60563 |
875bf153c38837563607848c2a4373f619fc49b1 | 893 | py | Python | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | #Write a function named "falling_distance" that accepts an object's falling time
#(in seconds) as an argument. The function should return the distance, in meters
#, that the object has fallen during the time interval.Write a program that
#calls the function in a loop that passes the values 1 through 10 as arguments
... | 35.72 | 81 | 0.646137 |
875d850a61502a05ae1607c589db3488582a51b9 | 3,140 | py | Python | prepare_data.py | aascode/OMGEmotionChallenge | 0f29ba2d4e9472c889f3aa72545fb835c80dcf0f | [
"Apache-2.0"
] | null | null | null | prepare_data.py | aascode/OMGEmotionChallenge | 0f29ba2d4e9472c889f3aa72545fb835c80dcf0f | [
"Apache-2.0"
] | null | null | null | prepare_data.py | aascode/OMGEmotionChallenge | 0f29ba2d4e9472c889f3aa72545fb835c80dcf0f | [
"Apache-2.0"
] | 1 | 2021-01-07T05:42:54.000Z | 2021-01-07T05:42:54.000Z | from __future__ import print_function
import argparse
import os
import sys
import subprocess
import datetime
# microsecond = int((seconds - int(seconds)) * 1000 * 1000)
# int_seconds = int(seconds)
# hour = int_seconds // 3600
# minute = (int_seconds - hour * 3600) // 60
# second = int_seconds - hour *... | 35.681818 | 91 | 0.486306 |
875e13669b90d566535e678aeb9626f67f4c6d30 | 3,101 | py | Python | PyBlokusTools/pyblokustools/testserver/Message.py | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | PyBlokusTools/pyblokustools/testserver/Message.py | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | PyBlokusTools/pyblokustools/testserver/Message.py | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | from typing import Any, Final, Tuple, List
from enum import IntEnum
from .MsgType import MsgType
| 29.817308 | 131 | 0.58207 |
875f3dc2268c5b69947a406b55babc4f4af29f54 | 2,984 | py | Python | celo_sdk/tests/stable_token_tests.py | rcroessmann/celo-sdk-py | 8826adaa6bbcb53374e7c26f0638a7fc973a9dd9 | [
"Apache-2.0"
] | 7 | 2021-02-09T20:44:41.000Z | 2022-03-30T10:56:06.000Z | celo_sdk/tests/stable_token_tests.py | rcroessmann/celo-sdk-py | 8826adaa6bbcb53374e7c26f0638a7fc973a9dd9 | [
"Apache-2.0"
] | 4 | 2020-11-04T07:39:10.000Z | 2022-02-19T00:06:46.000Z | celo_sdk/tests/stable_token_tests.py | rcroessmann/celo-sdk-py | 8826adaa6bbcb53374e7c26f0638a7fc973a9dd9 | [
"Apache-2.0"
] | 8 | 2020-11-03T14:45:26.000Z | 2022-02-23T12:41:05.000Z | import time
import unittest
from web3 import Web3
from celo_sdk.kit import Kit
from celo_sdk.tests import test_data
| 33.909091 | 124 | 0.678284 |
876278e2ecaa859862d1b4df367b7a0946313f4c | 3,450 | py | Python | compipe/utils/parameters.py | ImagineersHub/pyspinner | 272c000af3bfaef866bf4ae6a4694e5449ceca68 | [
"MIT"
] | null | null | null | compipe/utils/parameters.py | ImagineersHub/pyspinner | 272c000af3bfaef866bf4ae6a4694e5449ceca68 | [
"MIT"
] | null | null | null | compipe/utils/parameters.py | ImagineersHub/pyspinner | 272c000af3bfaef866bf4ae6a4694e5449ceca68 | [
"MIT"
] | null | null | null | """Represent the command parameter strings."""
ARG_COMMAND = 'command'
ARG_ARGUMENT = 'argument'
ARG_COUNT = 'count'
ARG_CHANNEL = 'channel'
ARG_CLIENT = 'client'
ARG_GUID = 'guid'
ARG_CHANGELIST = 'cl'
ARG_DEV_CHANNEL = 'dev_channel'
ARG_QUEUE_WORKER_NUMBER = 'worker_number'
ARG_CALLBACK = 'callback'
ARG_PAYLOAD = 'pa... | 23 | 58 | 0.73971 |
87639751a19ec144d88f1bcfcf5fc14664d50b35 | 3,412 | py | Python | python/avi/migrationtools/f5_converter/test/excel_reader.py | thisisshi/sdk | 99c52caffeebbfd41f43931fea2b5b1323841892 | [
"Apache-2.0"
] | 37 | 2016-03-14T22:27:17.000Z | 2022-03-03T05:18:39.000Z | python/avi/migrationtools/f5_converter/test/excel_reader.py | thisisshi/sdk | 99c52caffeebbfd41f43931fea2b5b1323841892 | [
"Apache-2.0"
] | 195 | 2016-03-14T23:47:55.000Z | 2021-05-12T11:28:56.000Z | python/avi/migrationtools/f5_converter/test/excel_reader.py | thisisshi/sdk | 99c52caffeebbfd41f43931fea2b5b1323841892 | [
"Apache-2.0"
] | 50 | 2016-03-14T05:52:14.000Z | 2022-01-06T06:12:00.000Z | import json
import pandas
def output_sanitization(path_to_excel, path_to_out_json=None):
''' Find the Success percentage of each output report '''
path = path_to_excel
out_obj = []
excel_obj = []
# Output Sanitization
wb = pandas.read_excel(path, engine='openpyxl')
cols = 0
for s in ... | 35.541667 | 85 | 0.517878 |
87657d81607a298ec18b2ddd27e36c523d708591 | 2,069 | py | Python | full_mode/rx.py | diegoa314/daphne | dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d | [
"BSD-2-Clause"
] | null | null | null | full_mode/rx.py | diegoa314/daphne | dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d | [
"BSD-2-Clause"
] | null | null | null | full_mode/rx.py | diegoa314/daphne | dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d | [
"BSD-2-Clause"
] | null | null | null | from litex.soc.cores.code_8b10b import Decoder
from transmitter32b import Transmitter32b
from alignment_corrector import Alignment_Corrector
from migen.genlib.fifo import *
from migen import *
| 28.736111 | 88 | 0.702755 |
87678f18706219a75f4b57fd79110313c3f75dec | 1,232 | py | Python | vsts/vsts/work/v4_1/models/parent_child_wIMap.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/work/v4_1/models/parent_child_wIMap.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/work/v4_1/models/parent_child_wIMap.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 36.235294 | 94 | 0.507305 |
8767ef401078ac093bf46d8edd93e289989ab422 | 2,152 | py | Python | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-08-03 08:53
from __future__ import unicode_literals
from django.db import migrations, models
| 39.851852 | 114 | 0.555762 |
87681dce3beb584df65213d7ac35f6fe63e61aa4 | 13,141 | py | Python | blockchain.py | jdacode/Blockchain_voting_system | 7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1 | [
"MIT"
] | 2 | 2021-06-23T22:31:55.000Z | 2021-11-02T11:51:25.000Z | blockchain.py | jdacode/Blockchain_voting_system | 7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1 | [
"MIT"
] | null | null | null | blockchain.py | jdacode/Blockchain_voting_system | 7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1 | [
"MIT"
] | null | null | null | """ ANACONDA: To open anaconda use the command line $ anaconda-navigator
ANACONDA: And the in Pycharm you can activate your Environtments, in this case is on terminal:
$ source activate pycoin
ANACONDA: Now it will change to (pycoin) at the beginning of the user. For instance, (pycoin) w11@w11: path$
"""
# I... | 43.657807 | 248 | 0.597291 |
876886b10c5d7283b41479e686ebe38301aec6fb | 477 | py | Python | examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py | anthonyjpratti/pants | d98e53af6ddd877861231bce8343f8204da0a9d1 | [
"Apache-2.0"
] | 1 | 2020-08-26T03:30:31.000Z | 2020-08-26T03:30:31.000Z | examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py | wisechengyi/SCL-16273 | 18ed1fb4212879150ae5b292137d058894051fc6 | [
"Apache-2.0"
] | 1 | 2020-01-21T16:34:02.000Z | 2020-01-21T16:34:02.000Z | examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py | wisechengyi/SCL-16273 | 18ed1fb4212879150ae5b292137d058894051fc6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import tensorflow as tf
# TODO: It would be great if we could maintain the example.tensorflow_custom_op package prefix for
# this python_dist()!
from wrap_lib.wrap_zero_out_op import zero_... | 36.692308 | 98 | 0.802935 |
8768ed3b565c90b42d728ffd7491d21be706a7a0 | 7,221 | py | Python | frozen_box/frozen_class.py | leavers/frozen-box | d7e389fb2039a1f1781e373e213ea99f474792b4 | [
"MIT"
] | null | null | null | frozen_box/frozen_class.py | leavers/frozen-box | d7e389fb2039a1f1781e373e213ea99f474792b4 | [
"MIT"
] | null | null | null | frozen_box/frozen_class.py | leavers/frozen-box | d7e389fb2039a1f1781e373e213ea99f474792b4 | [
"MIT"
] | null | null | null | from typing import List, Optional, Sequence, Union
from abc import abstractmethod, ABC
from copy import deepcopy
from sys import _getframe as get_stack
from frozen_box.exception import FrozenException, FrozenKeyError, FrozenValueError
QueryableItem = Union[str, int, slice]
Queryable = Union[QueryableItem, Sequence[Qu... | 28.654762 | 82 | 0.554771 |
8769770ef83407fc3c538e1058e91191bb513e0f | 3,902 | py | Python | tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py | tmpsantos/chromium | 802d4aeeb33af25c01ee5994037bbf14086d4ac0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py | tmpsantos/chromium | 802d4aeeb33af25c01ee5994037bbf14086d4ac0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py | tmpsantos/chromium | 802d4aeeb33af25c01ee5994037bbf14086d4ac0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:23:37.000Z | 2020-11-04T07:23:37.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import unittest
from telemetry.core import exceptions
from telemetry.unittest import gtest_progress_reporter
from telemetry.unittest import simpl... | 30.484375 | 76 | 0.719375 |
876a947ea1b19fe069f293dc368c754e8d9e9711 | 1,057 | py | Python | demo_app_3pages_deep.py | MarijaAP/freezeyt | 730a79a0e4bcee38e2d285ead4b9ccd695440516 | [
"MIT"
] | null | null | null | demo_app_3pages_deep.py | MarijaAP/freezeyt | 730a79a0e4bcee38e2d285ead4b9ccd695440516 | [
"MIT"
] | null | null | null | demo_app_3pages_deep.py | MarijaAP/freezeyt | 730a79a0e4bcee38e2d285ead4b9ccd695440516 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
| 18.224138 | 64 | 0.470199 |
876a99e9cc17fc4370d8852ddd46f7f32c7207d3 | 6,932 | py | Python | Main.py | Farhad-Shabani/TSETMC_Dashboard | 8279bd9579f02447b9ab70dfe491d56713810f51 | [
"MIT"
] | 5 | 2021-04-10T17:04:48.000Z | 2021-09-17T11:49:53.000Z | Main.py | Farhad-Shabani/TSETMC_Dashboard | 8279bd9579f02447b9ab70dfe491d56713810f51 | [
"MIT"
] | null | null | null | Main.py | Farhad-Shabani/TSETMC_Dashboard | 8279bd9579f02447b9ab70dfe491d56713810f51 | [
"MIT"
] | 3 | 2021-07-04T16:52:10.000Z | 2021-08-18T15:17:10.000Z | import re, time, requests
from bs4 import BeautifulSoup
from openpyxl import workbook
from openpyxl import load_workbook
from src.Scrape_Index import Scrape_Index
from src.Database_Maker import Database_Maker, Sorted_Database
# Give a list of 7 your desired stocks in order to make the Excel-based Dashboard ... | 41.508982 | 140 | 0.493508 |
876c1cba6f1447d0c88950330beca198b83d45a2 | 1,148 | py | Python | ace/api/apikey.py | ace-ecosystem/ace2-core | a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53 | [
"Apache-2.0"
] | null | null | null | ace/api/apikey.py | ace-ecosystem/ace2-core | a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53 | [
"Apache-2.0"
] | 11 | 2020-12-30T03:13:09.000Z | 2021-05-02T14:09:32.000Z | ace/api/apikey.py | ace-ecosystem/ace2-core | a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53 | [
"Apache-2.0"
] | 1 | 2022-03-16T20:44:16.000Z | 2022-03-16T20:44:16.000Z | from dataclasses import dataclass, asdict
from typing import Optional
from ace.data_model import ApiKeyModel
| 25.511111 | 68 | 0.641986 |