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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
124879265e549764033ecbb3482f5f663c09d3b1 | 1,911 | py | Python | shift_detector/precalculations/embedding_distance_precalculation.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | 3 | 2019-06-21T11:41:08.000Z | 2019-10-24T06:41:51.000Z | shift_detector/precalculations/embedding_distance_precalculation.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | 63 | 2019-05-16T12:09:57.000Z | 2022-02-10T00:21:01.000Z | shift_detector/precalculations/embedding_distance_precalculation.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | null | null | null | from shift_detector.precalculations.text_embedding_precalculation import TextEmbeddingPrecalculation
from shift_detector.precalculations.store import Store
from shift_detector.precalculations.precalculation import Precalculation
from datawig.utils import random_split
import numpy as np
from numpy.linalg import norm
| 38.22 | 116 | 0.672423 |
1249f53ad50c951d95cda4379ed3d03ccaa7e132 | 694 | py | Python | examples/sync_tx.py | tebzzz/archon | 5276e06ccc2e08e034473108a4dd8e36b6ba6078 | [
"MIT"
] | 78 | 2018-09-20T12:50:42.000Z | 2021-12-17T11:44:03.000Z | examples/sync_tx.py | tebzzz/archon | 5276e06ccc2e08e034473108a4dd8e36b6ba6078 | [
"MIT"
] | 49 | 2018-11-18T16:58:27.000Z | 2019-09-29T18:41:51.000Z | examples/sync_tx.py | tebzzz/archon | 5276e06ccc2e08e034473108a4dd8e36b6ba6078 | [
"MIT"
] | 21 | 2018-09-20T11:31:50.000Z | 2021-10-19T17:01:47.000Z | """
"""
import archon.facade as facade
import archon.broker as broker
import archon.exchange.exchanges as exc
import archon.model.models as models
from archon.util import *
from pymongo import MongoClient
import time
import datetime
import math
afacade = facade.Facade()
broker.setClientsFromFile(afacade)
a = brok... | 20.411765 | 61 | 0.682997 |
124b92d2c7084377d87fc8f02f1de1ed63f57eef | 505 | py | Python | web-scraping/scrapy/items.py | mponweiser/thesis-LDA-in-R | e3be172f97e96c53c3941801e0b913d68621a1a0 | [
"MIT"
] | 4 | 2016-03-14T12:17:16.000Z | 2021-01-27T01:14:30.000Z | web-scraping/scrapy/items.py | mponweiser/thesis-LDA-in-R | e3be172f97e96c53c3941801e0b913d68621a1a0 | [
"MIT"
] | null | null | null | web-scraping/scrapy/items.py | mponweiser/thesis-LDA-in-R | e3be172f97e96c53c3941801e0b913d68621a1a0 | [
"MIT"
] | 3 | 2016-03-14T12:17:24.000Z | 2020-05-05T22:53:53.000Z | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/topics/items.html
from scrapy.item import Item, Field
| 22.954545 | 48 | 0.647525 |
124c0cc2c66967fcbd74c872c18100920840b8b1 | 792 | py | Python | scripts/format_files.py | paltmey/masterthesis | 43ed469bcd0ad7f0d578277743f9776078a2c3c3 | [
"MIT"
] | null | null | null | scripts/format_files.py | paltmey/masterthesis | 43ed469bcd0ad7f0d578277743f9776078a2c3c3 | [
"MIT"
] | null | null | null | scripts/format_files.py | paltmey/masterthesis | 43ed469bcd0ad7f0d578277743f9776078a2c3c3 | [
"MIT"
] | null | null | null | import subprocess
from argparse import ArgumentParser
if __name__ == '__main__':
parser = ArgumentParser(description='Format all files using the black Python formatter.')
requiredNamed = parser.add_argument_group('required named arguments')
requiredNamed.add_argument('--src_dir', type=str, help='Directo... | 31.68 | 124 | 0.683081 |
124da53c618c855ab0d8247e2652d534cd052cf4 | 873 | py | Python | eval_empatheticdialogues.py | skywalker023/focused-empathy | 04bdd0cf2fcd7bb4ee204cacb54ce970f426c916 | [
"MIT"
] | 29 | 2021-09-07T06:54:23.000Z | 2022-03-25T12:33:04.000Z | eval_empatheticdialogues.py | skywalker023/focused-empathy | 04bdd0cf2fcd7bb4ee204cacb54ce970f426c916 | [
"MIT"
] | 8 | 2021-09-25T05:39:40.000Z | 2022-03-29T07:04:08.000Z | eval_empatheticdialogues.py | skywalker023/focused-empathy | 04bdd0cf2fcd7bb4ee204cacb54ce970f426c916 | [
"MIT"
] | 2 | 2021-11-07T08:27:38.000Z | 2022-01-09T05:28:41.000Z | import socket
import datetime
import os
import better_exceptions
from from_parlai.eval_model import eval_model
from from_parlai.eval_model import setup_args as eval_setupargs
better_exceptions.hook()
__PATH__ = os.path.abspath(os.path.dirname(__file__))
if __name__ == '__main__':
print(f"Job is running on {socke... | 27.28125 | 65 | 0.705613 |
124edb12bc0b4f9c7c2db07a2a02bfd911251b8c | 315 | py | Python | ares/phenom/__init__.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | null | null | null | ares/phenom/__init__.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | null | null | null | ares/phenom/__init__.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | 1 | 2021-06-16T23:13:56.000Z | 2021-06-16T23:13:56.000Z | from ares.phenom.Tanh21cm import Tanh21cm
from ares.phenom.OpticalDepth import Madau1995
from ares.phenom.Gaussian21cm import Gaussian21cm
from ares.phenom.DustCorrection import DustCorrection
from ares.phenom.Parametric21cm import Parametric21cm
from ares.phenom.ParameterizedQuantity import ParameterizedQuantity
| 45 | 67 | 0.885714 |
124f15794814742ded4d3518fa8a3f798acf1841 | 5,408 | py | Python | klsh/utils.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 28 | 2015-08-21T07:42:52.000Z | 2022-03-23T23:18:14.000Z | klsh/utils.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 2 | 2016-02-04T12:52:28.000Z | 2016-02-19T07:25:25.000Z | klsh/utils.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 6 | 2016-02-04T06:18:43.000Z | 2020-05-10T10:42:27.000Z | import itertools
import contextlib
import time
import numbers
import numpy as np
def create_rng(seed):
"""Turn seed into a np.random.RandomState instance
If seed is None, return the RandomState singleton used by np.random.
If seed is an int, return a new RandomState instance seeded with seed.
If see... | 29.878453 | 78 | 0.568787 |
12504e8a755643f44ae1e7436164776d1957ad7b | 622 | py | Python | RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 2 | 2020-01-27T15:21:37.000Z | 2020-05-11T11:13:18.000Z | RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 8 | 2020-03-20T23:18:36.000Z | 2020-05-27T11:00:06.000Z | RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 3 | 2017-06-07T15:22:28.000Z | 2019-02-28T20:48:30.000Z | import FWCore.ParameterSet.Config as cms
from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import *
lowPtGsfElectrons = ecalDrivenGsfElectrons.clone(
gsfElectronCoresTag = "lowPtGsfElectronCores",
gedElectronMode = True,
)
from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toModify(lo... | 38.875 | 92 | 0.85209 |
12538ece1750dfd1837c7ec0ab51c093bdd2eb86 | 1,767 | py | Python | Apps/Black_Jack.py | srp98/Python-Stuff | fade8934718e01a3d30cf9db93515b8f02a20b18 | [
"MIT"
] | null | null | null | Apps/Black_Jack.py | srp98/Python-Stuff | fade8934718e01a3d30cf9db93515b8f02a20b18 | [
"MIT"
] | null | null | null | Apps/Black_Jack.py | srp98/Python-Stuff | fade8934718e01a3d30cf9db93515b8f02a20b18 | [
"MIT"
] | 1 | 2019-10-31T03:16:04.000Z | 2019-10-31T03:16:04.000Z |
def blackjack_hand_greater_than(hand_1, hand_2):
"""
Return True if hand_1 beats hand_2, and False otherwise.
In order for hand_1 to beat hand_2 the following must be true:
- The total of hand_1 must not exceed 21
- The total of hand_1 must exceed the total of hand_2 OR hand_2's total must exceed... | 36.061224 | 94 | 0.615167 |
1254aa54269ff251642c4464e9329b6e5da57064 | 6,281 | py | Python | models/gaussian/gaussian/Gaussian.py | lijun99/altar | 92c2915de3de0c51138d382c8192ead7d6eed1a1 | [
"BSD-3-Clause"
] | 6 | 2019-07-25T08:02:09.000Z | 2022-02-09T04:19:31.000Z | models/gaussian/gaussian/Gaussian.py | lijun99/altar | 92c2915de3de0c51138d382c8192ead7d6eed1a1 | [
"BSD-3-Clause"
] | null | null | null | models/gaussian/gaussian/Gaussian.py | lijun99/altar | 92c2915de3de0c51138d382c8192ead7d6eed1a1 | [
"BSD-3-Clause"
] | null | null | null | # -*- python -*-
# -*- coding: utf-8 -*-
#
# michael a.g. avzis <michael.aivazis@para-sim.com>
#
# (c) 2013-2021 parasim inc
# (c) 2010-2021 california institute of technology
# all rights reserved
#
# externals
import math
# the package
import altar
# declaration
# implementation details
peak = None # th... | 30.342995 | 96 | 0.61694 |
1255698f615a2ee79f73dfb0cbca1d3e028c33b4 | 2,486 | py | Python | prototype/crawling/harvesta/modules/naverfuncs.py | latte-horse/jaehyun | 159963b405b1726717f99df0e4ba62df195aeb94 | [
"MIT"
] | null | null | null | prototype/crawling/harvesta/modules/naverfuncs.py | latte-horse/jaehyun | 159963b405b1726717f99df0e4ba62df195aeb94 | [
"MIT"
] | null | null | null | prototype/crawling/harvesta/modules/naverfuncs.py | latte-horse/jaehyun | 159963b405b1726717f99df0e4ba62df195aeb94 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#naverFuncs.py
import requests
import urllib.request
from bs4 import BeautifulSoup
import re
import json
if __name__ != '__main__':
from . import config
#--------------------------------------------------------------------------
# cnt
#-------------------------------------------------... | 33.146667 | 98 | 0.498793 |
1255cd8f4e10c6adbb9a42935b7c7849e265c1ab | 2,922 | py | Python | Setup.py | uHappyLogic/GaiaDbConsumer | a615b689fc30a3cc9dfd0b581d279899bf7a0f8b | [
"MIT"
] | null | null | null | Setup.py | uHappyLogic/GaiaDbConsumer | a615b689fc30a3cc9dfd0b581d279899bf7a0f8b | [
"MIT"
] | null | null | null | Setup.py | uHappyLogic/GaiaDbConsumer | a615b689fc30a3cc9dfd0b581d279899bf7a0f8b | [
"MIT"
] | null | null | null | #!/usr/bin/python
import argparse
import multiprocessing
from distutils.util import strtobool
if __name__ == "__main__":
create_config_file(
configure_argparse().parse_args()
)
| 32.831461 | 107 | 0.469884 |
1256c1154db4f6069ce7c07c379eb4a4a4e45448 | 1,893 | py | Python | src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | from sgmllib import SGMLParser
import htmlentitydefs
if __name__ == "__main__":
for k, v in globals().items():
print k, "=", v
| 27.434783 | 73 | 0.624934 |
125988da139b4ae5434a553bc0bdc723e1b0fa96 | 2,708 | py | Python | neo/Network/core/uintbase.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | neo/Network/core/uintbase.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | neo/Network/core/uintbase.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | if TYPE_CHECKING:
pass | 32.626506 | 138 | 0.677253 |
125bc5ecf5acb0a84b6c7d88d2625e8761895e24 | 1,171 | py | Python | _lib/settings.py | bjuggler/lvrobi | f7831b471058414d9ca383ab3729f3f6f26990c9 | [
"MIT"
] | null | null | null | _lib/settings.py | bjuggler/lvrobi | f7831b471058414d9ca383ab3729f3f6f26990c9 | [
"MIT"
] | null | null | null | _lib/settings.py | bjuggler/lvrobi | f7831b471058414d9ca383ab3729f3f6f26990c9 | [
"MIT"
] | null | null | null | from pathlib import Path
PROJECT_DIR = Path(__file__).resolve().parent.parent
DATA_DIR = PROJECT_DIR.joinpath("data")
DATA_ORIGIN_DIR = DATA_DIR.joinpath("_origin")
DATA_AFTER_PREPARATION_DIR = DATA_DIR.joinpath("prepared")
DATA_TRIPS_AS_HEXES_DIR = DATA_DIR.joinpath("trips_as_hexes")
DATA_ORIGIN_AMIENS_DIR = DATA_O... | 39.033333 | 70 | 0.676345 |
125c09cc6e61d12b4e11b62f59ed5ddecd04ee2c | 231 | py | Python | class2/class2_ex1.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class2/class2_ex1.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class2/class2_ex1.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | # Python libraries
# Ex1a
import pysnmp
import paramiko
# Ex1b
dir(pysnmp)
ver = pysnmp.__version__
print "pysnmp version is: %s " % ver
dir(paramiko)
ver = paramiko.__version__
print "paramiko version is: %s " % ver
# Ex1c
| 12.157895 | 38 | 0.714286 |
125df78648f1c8732c0895fa28745acc66e1387e | 18,971 | py | Python | pyhrt/continuous.py | tansey/hrt | f6d271a34590d073a08f0fc40f40e898f38cdf97 | [
"MIT"
] | 19 | 2018-11-05T19:08:03.000Z | 2022-02-15T03:58:47.000Z | pyhrt/continuous.py | tansey/hrt | f6d271a34590d073a08f0fc40f40e898f38cdf97 | [
"MIT"
] | 1 | 2019-11-20T22:35:54.000Z | 2019-11-20T23:06:51.000Z | pyhrt/continuous.py | tansey/hrt | f6d271a34590d073a08f0fc40f40e898f38cdf97 | [
"MIT"
] | 5 | 2019-04-15T23:17:26.000Z | 2020-04-10T04:18:22.000Z | import os
import sys
import numpy as np
import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.optim as optim
from scipy.stats import norm
from scipy.stats.mstats import gmean
from pyhrt.utils import batches, create_folds, logsumexp
###########################################################... | 40.278132 | 132 | 0.600706 |
125e4ce6af2e9208f22b7dc0cf1dfcc12caa2872 | 178 | py | Python | src/__init__.py | mldev-ai/ML-Text-Classification | fc3d64aaa56796c4ed22b7842df66d59eb90b8ab | [
"MIT"
] | null | null | null | src/__init__.py | mldev-ai/ML-Text-Classification | fc3d64aaa56796c4ed22b7842df66d59eb90b8ab | [
"MIT"
] | null | null | null | src/__init__.py | mldev-ai/ML-Text-Classification | fc3d64aaa56796c4ed22b7842df66d59eb90b8ab | [
"MIT"
] | null | null | null | from src.FeatureExtractor import Extractor
from src.DataLoader import Dataset
from src.Trainer import TrainClf
from src.Inference import PredictClf
from src.Models import MLModel | 35.6 | 42 | 0.865169 |
126250776d5fa66f301a109cdcf5f21aeacb6568 | 3,637 | py | Python | swig/python2/tests/ConcurrentHelpers/SysrepoTester.py | rastislavszabo/sysrepo | dd947fee3b606d354eb7bf50fecef020b943b523 | [
"Apache-2.0"
] | null | null | null | swig/python2/tests/ConcurrentHelpers/SysrepoTester.py | rastislavszabo/sysrepo | dd947fee3b606d354eb7bf50fecef020b943b523 | [
"Apache-2.0"
] | null | null | null | swig/python2/tests/ConcurrentHelpers/SysrepoTester.py | rastislavszabo/sysrepo | dd947fee3b606d354eb7bf50fecef020b943b523 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Rastislav Szabo <raszabo@cisco.com>, Lukas Macko <lmacko@cisco.com>"
__copyright__ = "Copyright 2016, Cisco Systems, Inc."
__license__ = "Apache 2.0"
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compl... | 33.990654 | 115 | 0.670058 |
12638715ec5a1d40ed4f3618c30418ac709c540c | 1,144 | py | Python | ars2/utils.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | ars2/utils.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | ars2/utils.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | import numpy as np
from typing import List
from wrench.basemodel import BaseClassModel
from wrench.dataset import BaseDataset
from sklearn.metrics import f1_score
from snorkel.utils import probs_to_preds
| 33.647059 | 95 | 0.704545 |
1266741504356d2c9f8af5c310226fc914cad6c6 | 663 | py | Python | homedisplay/info_internet_connection/views.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2016-11-28T04:35:06.000Z | 2016-11-28T04:35:06.000Z | homedisplay/info_internet_connection/views.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 160 | 2015-01-01T20:59:29.000Z | 2016-04-25T13:36:52.000Z | homedisplay/info_internet_connection/views.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2015-02-25T21:24:01.000Z | 2015-02-25T21:24:01.000Z | from .models import get_latest_serialized
from django.core import serializers
from django.http import HttpResponse
from django.views.generic import View
from django.conf import settings
import json
| 30.136364 | 97 | 0.720965 |
12695b68be997681bd60160adfb2433e6ae6d592 | 363 | py | Python | stko/calculators/results/rmsd_results.py | stevenbennett96/stko | ee340af4fc549d5a2c3e9cba8360661335efe0fd | [
"MIT"
] | null | null | null | stko/calculators/results/rmsd_results.py | stevenbennett96/stko | ee340af4fc549d5a2c3e9cba8360661335efe0fd | [
"MIT"
] | null | null | null | stko/calculators/results/rmsd_results.py | stevenbennett96/stko | ee340af4fc549d5a2c3e9cba8360661335efe0fd | [
"MIT"
] | 2 | 2020-05-08T17:51:25.000Z | 2020-05-11T09:03:24.000Z | """
RMSD Results
=============
#. :class:`.RmsdResults`
Results class for extracting RMSD of two molecules.
"""
from .results import Results
| 13.961538 | 51 | 0.630854 |
126a6a2bd916dd0fdaa7da08e0f5d55a3f54c764 | 235 | py | Python | section_5_price_alert/src/models/stores/views.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null | section_5_price_alert/src/models/stores/views.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null | section_5_price_alert/src/models/stores/views.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null | from flask import Blueprint
store_blueprint = Blueprint('stores', __name__)
| 19.583333 | 47 | 0.731915 |
126ad831faaee91fb0ce16251134cb082143384a | 5,462 | py | Python | program_helper/ast/parser/ast_similarity_checker.py | jajajaqlt/nsg | 1873f2b5e10441110c3c69940ceb4650f9684ac0 | [
"Apache-2.0"
] | 10 | 2021-11-02T18:30:38.000Z | 2022-03-21T06:31:33.000Z | program_helper/ast/parser/ast_similarity_checker.py | rohanmukh/nag | f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3 | [
"Apache-2.0"
] | 2 | 2021-11-05T18:40:42.000Z | 2022-03-30T04:33:08.000Z | program_helper/ast/parser/ast_similarity_checker.py | rohanmukh/nag | f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3 | [
"Apache-2.0"
] | 2 | 2021-11-03T19:14:06.000Z | 2021-11-03T23:47:09.000Z | # Copyright 2017 Rice University
#
# 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 writin... | 36.172185 | 115 | 0.658184 |
126b7d17b9178997cd2b9b067f78352641394f99 | 375 | py | Python | supervised/regression/ridgeRegression.py | SaadChaouki/ml-eli5-cli5 | 625a69edadf4737e41c58193873cf8a54273d7f0 | [
"MIT"
] | 1 | 2021-05-04T19:53:12.000Z | 2021-05-04T19:53:12.000Z | supervised/regression/ridgeRegression.py | SaadChaouki/ml-eli5-cli5 | 625a69edadf4737e41c58193873cf8a54273d7f0 | [
"MIT"
] | null | null | null | supervised/regression/ridgeRegression.py | SaadChaouki/ml-eli5-cli5 | 625a69edadf4737e41c58193873cf8a54273d7f0 | [
"MIT"
] | null | null | null | from supervised.base.baseRegression import BaseRegression
from processing.regularization import L2Regularization
| 41.666667 | 97 | 0.808 |
126c70cfd4f5dd58b70d6563429b9753c64c44e8 | 941 | py | Python | merpy/__init__.py | AndreLamurias/merpy | eebfa602f07603178d8ae8706e2e7d18b068f7c8 | [
"Apache-2.0"
] | 5 | 2019-06-25T11:00:14.000Z | 2022-03-31T17:31:38.000Z | merpy/__init__.py | AndreLamurias/merpy | eebfa602f07603178d8ae8706e2e7d18b068f7c8 | [
"Apache-2.0"
] | 4 | 2020-01-08T11:05:35.000Z | 2020-11-12T12:32:38.000Z | merpy/__init__.py | AndreLamurias/merpy | eebfa602f07603178d8ae8706e2e7d18b068f7c8 | [
"Apache-2.0"
] | 2 | 2021-03-14T21:24:59.000Z | 2021-10-03T10:53:36.000Z | from .merpy import (
get_entities,
get_similarities,
generate_lexicon,
process_lexicon,
show_lexicons,
get_lexicons,
download_lexicon,
create_lexicon,
create_mappings,
download_mer,
download_lexicons,
mer_path,
get_entities_mp,
create_lexicon_from_file,
delete... | 20.021277 | 31 | 0.68119 |
126d523eba5326c29ad99290557c03112dd4b6ae | 3,231 | py | Python | sk_pymc3/model/base_model.py | drewblasius/pymc3-sklearn | a46c325179459a2eae394f72c4be186d3e074214 | [
"MIT"
] | 1 | 2020-07-13T12:45:20.000Z | 2020-07-13T12:45:20.000Z | sk_pymc3/model/base_model.py | drewblasius/pymc3-sklearn | a46c325179459a2eae394f72c4be186d3e074214 | [
"MIT"
] | null | null | null | sk_pymc3/model/base_model.py | drewblasius/pymc3-sklearn | a46c325179459a2eae394f72c4be186d3e074214 | [
"MIT"
] | null | null | null | import logging
import numpy as np
import pandas as pd
import pymc3 as pm
import theano as tt
from abc import ABC, abstractmethod
from contextlib import contextmanager
from sklearn.base import BaseEstimator
from typing import List, Optional, Tuple, Union
logger = logging.getLogger(__name__)
| 29.108108 | 101 | 0.561436 |
126e4a7de56e62d9de7e709a7a92d3187bd9274a | 2,678 | py | Python | ww/website_domain.py | hbradleyiii/ww | 5a537ab6865fcfb43a253cdb8cf2397a53d940a7 | [
"MIT"
] | null | null | null | ww/website_domain.py | hbradleyiii/ww | 5a537ab6865fcfb43a253cdb8cf2397a53d940a7 | [
"MIT"
] | null | null | null | ww/website_domain.py | hbradleyiii/ww | 5a537ab6865fcfb43a253cdb8cf2397a53d940a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# name: website_domain.py
# author: Harold Bradley III
# email: harold@bradleystudio.net
# created on: 11/03/2015
#
# TODO: add DNS API capabilities
"""
ww.website_domain
~~~~~~~~~~~~~~~~~
A class to describe and ... | 36.189189 | 85 | 0.519417 |
126e7487809cb90beb4de4d2e2b2d8e5ed3bbb80 | 275 | py | Python | 03-datatypes/examples/03-floats.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | 03-datatypes/examples/03-floats.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | 03-datatypes/examples/03-floats.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
# Floats (float) is numeric values like 1.0, 100,5 0,478, -1.36
print("1.0 + 0.2 =", 1.0 + 0.2)
print("2.4 - 100.7 =", 2.4 - 100.7)
print("2.7 * 1.5 =", 2.7 * 1.5)
# You can do expressions and mixing integers and floats.
print("1 + 2.5 =", 1 + 2.5)
| 25 | 63 | 0.574545 |
126ee51683c13a2a0d3c8f7660aaea573d956c4c | 2,448 | py | Python | main.py | prostodrug95/ping-pong | 66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb | [
"CC0-1.0"
] | 1 | 2021-06-04T16:57:30.000Z | 2021-06-04T16:57:30.000Z | main.py | prostodrug95/ping-pong | 66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb | [
"CC0-1.0"
] | null | null | null | main.py | prostodrug95/ping-pong | 66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb | [
"CC0-1.0"
] | null | null | null | from pygame import *
font.init()
speed_x = 1
speed_y = 1
w,h = 500,500
window = display.set_mode((w,h))
background = transform.scale(image.load("amogus.png"), (w,h))
font1 = font.Font(None,35)
lose1 = font1.render(' ',True,(180,0,0))
font2 = font.Font(None,35)
lose2 = font1.render(' ',True,(180,0,0))
r... | 29.853659 | 92 | 0.566176 |
126f1e95442d045eb408d956eca0a3026f66efae | 3,964 | py | Python | mysql-utilities-1.6.0/mysql/utilities/exception.py | bopopescu/mysql-dbcompare | 1e912fd87282be3b3bed48487e6beb0ecb1de339 | [
"Apache-2.0"
] | 2 | 2018-03-20T07:42:58.000Z | 2018-03-20T07:43:49.000Z | mysql-utilities-1.6.0/mysql/utilities/exception.py | bopopescu/mysql-dbcompare | 1e912fd87282be3b3bed48487e6beb0ecb1de339 | [
"Apache-2.0"
] | null | null | null | mysql-utilities-1.6.0/mysql/utilities/exception.py | bopopescu/mysql-dbcompare | 1e912fd87282be3b3bed48487e6beb0ecb1de339 | [
"Apache-2.0"
] | 1 | 2020-07-23T23:07:08.000Z | 2020-07-23T23:07:08.000Z | #
# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights
# reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in ... | 27.150685 | 78 | 0.686176 |
12704a095122fadc942cb65a97c8da4187d6b314 | 3,322 | py | Python | TEST.py | MemoryHeroLi/testPyQt5 | f4155904be626b1f1811bb89f5838c9f5a7aad49 | [
"MIT"
] | null | null | null | TEST.py | MemoryHeroLi/testPyQt5 | f4155904be626b1f1811bb89f5838c9f5a7aad49 | [
"MIT"
] | null | null | null | TEST.py | MemoryHeroLi/testPyQt5 | f4155904be626b1f1811bb89f5838c9f5a7aad49 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'TEST.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, ... | 48.144928 | 75 | 0.717941 |
12709adefb63994c976a043d3df1e7443e69d9f6 | 1,793 | py | Python | tests/test_search_bodemdiepteinterval.py | DOV-Vlaanderen/dov-pydownloader | 126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3 | [
"MIT"
] | null | null | null | tests/test_search_bodemdiepteinterval.py | DOV-Vlaanderen/dov-pydownloader | 126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3 | [
"MIT"
] | 4 | 2016-12-23T10:36:05.000Z | 2017-01-03T11:38:39.000Z | tests/test_search_bodemdiepteinterval.py | DOV-Vlaanderen/dov-pydownloader | 126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3 | [
"MIT"
] | null | null | null | """Module grouping tests for the bodemdiepteinterval search module."""
import datetime
from owslib.fes import PropertyIsEqualTo
from pydov.search.bodemdiepteinterval import BodemdiepteintervalSearch
from pydov.types.bodemdiepteinterval import Bodemdiepteinterval
from pydov.util.dovutil import build_dov_url
from tests... | 40.75 | 82 | 0.782487 |
1273e125cf6e955179d20d62b853392bde84917e | 81 | py | Python | module1_script.py | KeiandraK/Lambdata-BW3-Keiandra | df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70 | [
"MIT"
] | null | null | null | module1_script.py | KeiandraK/Lambdata-BW3-Keiandra | df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70 | [
"MIT"
] | null | null | null | module1_script.py | KeiandraK/Lambdata-BW3-Keiandra | df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
print(3+5/12)
x= 12
y=6
z=3
print(x+z-y) | 9 | 19 | 0.679012 |
1273e26fea12a529cba1a7987ef758ea601ca1da | 438 | py | Python | setup.py | cessor/substitute | d55598e6964bb630fc7703d5d8460bc960793ab9 | [
"MIT"
] | 1 | 2020-02-26T00:10:37.000Z | 2020-02-26T00:10:37.000Z | setup.py | cessor/substitute | d55598e6964bb630fc7703d5d8460bc960793ab9 | [
"MIT"
] | null | null | null | setup.py | cessor/substitute | d55598e6964bb630fc7703d5d8460bc960793ab9 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='substitute',
version='1.1.1',
description='A friendly substitute for python mocking frameworks',
author='Johannes Hofmeister',
author_email='substitute@spam.cessor.de',
url='http://cessor.github.io/substitute',
packages=['substitute'],
k... | 39.818182 | 121 | 0.687215 |
89bf8ee8a7e5c3c278485bd4901ccfbb359df2a4 | 6,922 | py | Python | clumioapi/models/mssql_database_backup.py | clumio-code/clumio-python-sdk | 63bfaf3afed5c0ab4bae3dd1be52271249d07c51 | [
"Apache-2.0"
] | null | null | null | clumioapi/models/mssql_database_backup.py | clumio-code/clumio-python-sdk | 63bfaf3afed5c0ab4bae3dd1be52271249d07c51 | [
"Apache-2.0"
] | 1 | 2021-09-16T05:56:05.000Z | 2021-09-16T05:56:05.000Z | clumioapi/models/mssql_database_backup.py | clumio-code/clumio-python-sdk | 63bfaf3afed5c0ab4bae3dd1be52271249d07c51 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021. Clumio, Inc.
#
from typing import Any, Dict, Mapping, Optional, Sequence, Type, TypeVar
from clumioapi.models import mssql_database_backup_embedded
from clumioapi.models import mssql_database_backup_links
from clumioapi.models import mssql_database_file
T = TypeVar('T', bound='MssqlDatabaseBackup... | 36.819149 | 99 | 0.625397 |
89bfa647876f92e41264d07022e4066b9ff7e709 | 394 | py | Python | infra/docker/python/accounts/forms.py | YA-androidapp/docker-django | 5614f4421b5fab8bbf6b02ebd75c990c012d3db1 | [
"Apache-2.0"
] | null | null | null | infra/docker/python/accounts/forms.py | YA-androidapp/docker-django | 5614f4421b5fab8bbf6b02ebd75c990c012d3db1 | [
"Apache-2.0"
] | null | null | null | infra/docker/python/accounts/forms.py | YA-androidapp/docker-django | 5614f4421b5fab8bbf6b02ebd75c990c012d3db1 | [
"Apache-2.0"
] | null | null | null | from allauth.account.forms import SignupForm
from django import forms
from .models import CustomUser
from allauth.account.adapter import DefaultAccountAdapter
| 23.176471 | 57 | 0.713198 |
89c1c2b31fc38070addd4abcaa1f6789312a5e74 | 485 | py | Python | Cogs/Help.py | Goldfish64/CorpBot.py | 05607332ff15cbecc3a3b950efcfbcf295adad78 | [
"MIT"
] | 2 | 2021-03-16T01:27:52.000Z | 2021-11-23T03:02:21.000Z | Cogs/Help.py | Goldfish64/CorpBot.py | 05607332ff15cbecc3a3b950efcfbcf295adad78 | [
"MIT"
] | null | null | null | Cogs/Help.py | Goldfish64/CorpBot.py | 05607332ff15cbecc3a3b950efcfbcf295adad78 | [
"MIT"
] | null | null | null | import asyncio
import discord
import inspect
from discord.ext import commands
from Cogs import *
# This module is for random funny things I guess...
| 24.25 | 65 | 0.703093 |
89c23a647647ff32bdfe12c1a122bd1e6b3b7682 | 5,351 | py | Python | tests/dku_config/test_dss_parameter.py | Muennighoff/dss-plugin-dkulib | 8d9a954841c23f163f1992822a2a8e4171695f73 | [
"Apache-2.0"
] | null | null | null | tests/dku_config/test_dss_parameter.py | Muennighoff/dss-plugin-dkulib | 8d9a954841c23f163f1992822a2a8e4171695f73 | [
"Apache-2.0"
] | null | null | null | tests/dku_config/test_dss_parameter.py | Muennighoff/dss-plugin-dkulib | 8d9a954841c23f163f1992822a2a8e4171695f73 | [
"Apache-2.0"
] | null | null | null | import logging
import pytest
from dkulib.dku_config.custom_check import CustomCheckError
from dkulib.dku_config.dss_parameter import DSSParameter, DSSParameterError
LOGGER = logging.getLogger(__name__)
| 28.015707 | 75 | 0.484395 |
89c3b7ade106d6f5c8c31707197352a51ca80f2c | 166 | py | Python | strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
| 18.444444 | 39 | 0.716867 |
89c46bb5cab509b8a596d2ce23c543ef5071170a | 1,525 | py | Python | code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py | gakarak/Challenge_Cervical_Cancer_Screening- | 7cb7cb308b43de4f85a09053723e50c368c05891 | [
"Apache-2.0"
] | null | null | null | code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py | gakarak/Challenge_Cervical_Cancer_Screening- | 7cb7cb308b43de4f85a09053723e50c368c05891 | [
"Apache-2.0"
] | null | null | null | code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py | gakarak/Challenge_Cervical_Cancer_Screening- | 7cb7cb308b43de4f85a09053723e50c368c05891 | [
"Apache-2.0"
] | 2 | 2017-06-27T07:14:06.000Z | 2021-07-20T15:21:58.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'ar'
# import numpy as np
import multiprocessing as mp
import multiprocessing.pool
from sklearn.cluster import KMeans
import math
import numpy as np
from concurrent.futures import ThreadPoolExecutor
import threading
if __name__ == '__main__':
# threadPoolExe... | 28.773585 | 79 | 0.601967 |
89c5c5bc48949e63b438dc53999fcd0b926a88dd | 6,187 | py | Python | src/UI_statistics_window.py | GatherLab/OLED-evaluation | 419dfd5d2c3773f5f90d76aef634f8b1cc0b6378 | [
"MIT"
] | null | null | null | src/UI_statistics_window.py | GatherLab/OLED-evaluation | 419dfd5d2c3773f5f90d76aef634f8b1cc0b6378 | [
"MIT"
] | null | null | null | src/UI_statistics_window.py | GatherLab/OLED-evaluation | 419dfd5d2c3773f5f90d76aef634f8b1cc0b6378 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from PySide2 import QtCore, QtGui, QtWidgets
import json
import core_functions as cf
import numpy as np
| 42.965278 | 86 | 0.607564 |
89c7466fa6bef7614fbace29a648ac7f92e2485b | 1,935 | py | Python | encapsulamiento.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null | encapsulamiento.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null | encapsulamiento.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null |
#Instanciamos
Tomas = Perros('Tom', 27)
print (Tomas.nombre) #Imprimimos el nombre de Tomas. Se hace a travs de getter
#Que en este caso como esta luego de property lo toma como el primer mtodo..
Tomas.nombre = 'Tomasito' #Cambiamos el atributo nombre que se hace a travs de setter
print (Tomas.nombre) #Volv... | 37.941176 | 89 | 0.697674 |
89c8316841df2172a19b9834e4e82b01d6035805 | 1,336 | py | Python | icv/data/converter/coco_converter.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 5 | 2019-09-10T04:02:19.000Z | 2020-07-24T07:46:08.000Z | icv/data/converter/coco_converter.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | null | null | null | icv/data/converter/coco_converter.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 1 | 2020-03-20T03:44:04.000Z | 2020-03-20T03:44:04.000Z | # -*- coding: UTF-8 -*-
from ..voc import Voc
from ..coco import Coco
from ..core.sample import Sample
from icv.utils import reset_dir, mkfile
import os
| 31.809524 | 109 | 0.626497 |
89c867ed9daeb13b7d633af74291b2198a878d31 | 2,097 | py | Python | source/game24_calc/game24.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | source/game24_calc/game24.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | source/game24_calc/game24.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | """ game24.py module
The 24 game is played as follows:
You are given a list of four integers, each between 1 and 9, in a fixed order.
By placing operators +,-,* and / between the numbers, and grouping them
with parentheses, determine whether it is possible to reach the value 24.
Example: 5,2,7,8 => ((5*2)-7)*8
Usage:... | 29.535211 | 105 | 0.552217 |
89ca9e1945a597daeaa0428e522ece404164bfa6 | 3,819 | py | Python | fully_colorization/preprocess/change_conv2d.py | HamsterBiz/Automatic-Video-Colorization-1 | e110650d130d3eadfe29073bf445513d10a5b3f6 | [
"MIT"
] | 3 | 2020-06-11T13:10:52.000Z | 2022-02-14T05:44:23.000Z | fully_colorization/preprocess/change_conv2d.py | HamsterBiz/Automatic-Video-Colorization-1 | e110650d130d3eadfe29073bf445513d10a5b3f6 | [
"MIT"
] | 1 | 2022-03-12T00:28:57.000Z | 2022-03-12T00:28:57.000Z | fully_colorization/preprocess/change_conv2d.py | HamsterBiz/Automatic-Video-Colorization-1 | e110650d130d3eadfe29073bf445513d10a5b3f6 | [
"MIT"
] | 2 | 2020-10-31T11:54:53.000Z | 2021-03-26T10:57:34.000Z | # -*- coding: utf-8 -*-
# pretrained model parameter slim.conv2d variable tf.layers.conv2d .
old_check_file = "ckpt_woflow/model.ckpt" #
new_check_file = "ckpt_woflow/model_renamed.ckpt" #
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
vars_to_rename = {
"individual/g_conv1_1/weights": "individu... | 53.788732 | 78 | 0.758576 |
89cb794317763c2361b3ee494c9f942ea5e6b4de | 23 | py | Python | pyshinobicctvapi/const.py | xannor/yshinobicctvapi | 6f96ef103ea10e9cfe4897b690430ea5480d98ba | [
"Unlicense"
] | null | null | null | pyshinobicctvapi/const.py | xannor/yshinobicctvapi | 6f96ef103ea10e9cfe4897b690430ea5480d98ba | [
"Unlicense"
] | null | null | null | pyshinobicctvapi/const.py | xannor/yshinobicctvapi | 6f96ef103ea10e9cfe4897b690430ea5480d98ba | [
"Unlicense"
] | null | null | null | STREAM_MJPEG = "mjpeg"
| 11.5 | 22 | 0.73913 |
89ccc2c1f8883a4c5a1c51e4feef89d87005a9b9 | 4,511 | py | Python | DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py | malbouis/cmssw | 16173a30d3f0c9ecc5419c474bb4d272c58b65c8 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# SiStrip DQM Source
# Hardware Monitoring
from DQM.SiStripMonitorHardware.siStripFEDMonitor_P5_cff import *
# Condition DB Monitoring
from DQM.SiStripMonitorSummary.SiStripMonitorCondData_cfi import *
# DQMEventInfo
DqmEventInfoSiStrip = cms.EDAnalyzer( "DQMEventInfo",
... | 44.22549 | 200 | 0.835957 |
89d0540c48a7bca84cfcb3e101a9c683df469f1f | 978 | py | Python | chat/management/commands/chat_server.py | KraftSoft/letsgo-back | 24159eee1a510e9ae218a0262bc6a51618414b33 | [
"BSD-3-Clause"
] | 1 | 2018-02-17T08:46:11.000Z | 2018-02-17T08:46:11.000Z | chat/management/commands/chat_server.py | KraftSoft/letsgo-back | 24159eee1a510e9ae218a0262bc6a51618414b33 | [
"BSD-3-Clause"
] | null | null | null | chat/management/commands/chat_server.py | KraftSoft/letsgo-back | 24159eee1a510e9ae218a0262bc6a51618414b33 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import signal
from django.core.management import BaseCommand
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from chat.tornado import application
| 28.764706 | 74 | 0.697342 |
89d177050e0f9c43ee5d6213695249987e195575 | 1,407 | py | Python | test/test_tags_api.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | test/test_tags_api.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | test/test_tags_api.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_impor... | 20.1 | 124 | 0.656006 |
89d2abb22bb276794a319caa2cd6ebdafdc37553 | 1,287 | py | Python | src/lockstep/clients/leads_client.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | 1 | 2022-03-17T00:23:24.000Z | 2022-03-17T00:23:24.000Z | src/lockstep/clients/leads_client.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | null | null | null | src/lockstep/clients/leads_client.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | null | null | null | #
# Lockstep Software Development Kit for Python
#
# (c) 2021-2022 Lockstep, Inc.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Ted Spence <tspence@lockstep.io>
# @copyright 2021-2022 Lockstep, Inc.
# @version 2022.4
# ... | 31.390244 | 75 | 0.672883 |
89d3819062a399528d942dfc8efc7adbf2f43f4d | 219 | py | Python | lazymodel/models.py | apnarm/django-lazycache | a68f782ff989fadf30fd3ecf0dad0af799b0341b | [
"MIT"
] | null | null | null | lazymodel/models.py | apnarm/django-lazycache | a68f782ff989fadf30fd3ecf0dad0af799b0341b | [
"MIT"
] | null | null | null | lazymodel/models.py | apnarm/django-lazycache | a68f782ff989fadf30fd3ecf0dad0af799b0341b | [
"MIT"
] | null | null | null | # TODO: define these models and get tests working again
from django.db import models
from lazymodel import ModelWithCaching
| 15.642857 | 55 | 0.785388 |
89d3da54bf6c144f8db6cbc9be5e6d799aa65800 | 2,881 | py | Python | addGateways.py | tjschuler/Prisma-Access-Azure-AD-scripts | 241b44c05c8db057b1fbe57c3d4d3ea3321df024 | [
"MIT"
] | null | null | null | addGateways.py | tjschuler/Prisma-Access-Azure-AD-scripts | 241b44c05c8db057b1fbe57c3d4d3ea3321df024 | [
"MIT"
] | null | null | null | addGateways.py | tjschuler/Prisma-Access-Azure-AD-scripts | 241b44c05c8db057b1fbe57c3d4d3ea3321df024 | [
"MIT"
] | null | null | null | import os
import json
while True:
try:
filename = str(input("Enter the filename for the .csv: "))
stream = open(filename, 'r').read()
break
except Exception:
print("Couldn't open the file. Try again.")
# While the file is a CSV, it is easier to use a quote as the delim... | 41.753623 | 103 | 0.663311 |
89d409645521caf21089344eee4ad88ca9bce9a6 | 146 | py | Python | dendrogenous/test/test_functional.py | fmaguire/dendrogenous | 56beedf15cfffa35ab64ec088a10af7309faeb83 | [
"BSD-3-Clause"
] | null | null | null | dendrogenous/test/test_functional.py | fmaguire/dendrogenous | 56beedf15cfffa35ab64ec088a10af7309faeb83 | [
"BSD-3-Clause"
] | null | null | null | dendrogenous/test/test_functional.py | fmaguire/dendrogenous | 56beedf15cfffa35ab64ec088a10af7309faeb83 | [
"BSD-3-Clause"
] | null | null | null | from dendrogenous.test.base import BaseTestCase
| 18.25 | 47 | 0.739726 |
89d51bd707cac8f01e37c01f5477d44d15ccb882 | 1,390 | py | Python | plugin/content/config.py | zhongshmx/JX3BOT | f00179f100349bd38aa871d76ac1fd36601c3e78 | [
"Unlicense"
] | null | null | null | plugin/content/config.py | zhongshmx/JX3BOT | f00179f100349bd38aa871d76ac1fd36601c3e78 | [
"Unlicense"
] | null | null | null | plugin/content/config.py | zhongshmx/JX3BOT | f00179f100349bd38aa871d76ac1fd36601c3e78 | [
"Unlicense"
] | 1 | 2021-09-28T13:26:06.000Z | 2021-09-28T13:26:06.000Z | # -*- coding: utf-8 -*
"""
@Software : PyCharm
@File : config.py
@Author :
@Time : 2021/04/26 20:21:16
"""
from plugin.common import bot, common
import time
| 26.226415 | 92 | 0.560432 |
89d804d203431be8b125a34a72f55117f6ac54d2 | 611 | py | Python | gen-robots-osx.py | jamesacampbell/random-robots-txt | b008bf74b1f080c82597da80ff0873bea56538cb | [
"MIT"
] | 1 | 2017-12-01T22:06:46.000Z | 2017-12-01T22:06:46.000Z | gen-robots-osx.py | jamesacampbell/random-robots-txt | b008bf74b1f080c82597da80ff0873bea56538cb | [
"MIT"
] | null | null | null | gen-robots-osx.py | jamesacampbell/random-robots-txt | b008bf74b1f080c82597da80ff0873bea56538cb | [
"MIT"
] | null | null | null | """
Author: James Campbell
What: Generates a random robots.txt on OSX
Notes: Only works on Python 3.6+. If gshuf doesnt work do brew install coreutils
"""
import subprocess
# change this for the number of words you want
numberofwords = 500
r = subprocess.Popen(f"gshuf -n{numberofwords} /usr/share/dict/words",stdout=... | 32.157895 | 131 | 0.707038 |
89d8713aaae9a7376b89ddc2e44e25155e876d3b | 22,470 | py | Python | src/atlinter/pair_interpolation.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | null | null | null | src/atlinter/pair_interpolation.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | 5 | 2021-11-03T10:50:53.000Z | 2022-01-17T12:45:34.000Z | src/atlinter/pair_interpolation.py | BlueBrain/atlas-interpolation | c19ca081ee5354d72987e8ee4cacb78d96319c34 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Blue Brain Project, EPFL
#
# 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 t... | 34.097117 | 87 | 0.611037 |
89d9c795b6169e6fd71d4df0205bf5d7c8f7fc9e | 3,270 | py | Python | tests/test_dyndnsupdate.py | Turgon37/DynDNSUpdate | 3282dba416403a2df0dde4e98d862f0d6bc0897f | [
"MIT"
] | null | null | null | tests/test_dyndnsupdate.py | Turgon37/DynDNSUpdate | 3282dba416403a2df0dde4e98d862f0d6bc0897f | [
"MIT"
] | null | null | null | tests/test_dyndnsupdate.py | Turgon37/DynDNSUpdate | 3282dba416403a2df0dde4e98d862f0d6bc0897f | [
"MIT"
] | 1 | 2015-03-04T01:08:08.000Z | 2015-03-04T01:08:08.000Z | # -*- coding: utf8 -*-
import http.client
import logging
import shlex
import shutil
import socket
import ssl
import subprocess
from unittest.mock import patch, Mock, call
from .mocks.connexionmock import createHTTPConnectionMock, createHTTPSConnectionMock
import dyndnsupdate
# URL settings
def test_without_setting... | 39.878049 | 250 | 0.65841 |
89d9e48927ec828fd9208dc357f86ea67a28a09c | 793 | py | Python | scripts/add_come.py | belamu/kanthaus.online | de84010a77e60156cbefb8e014ac6290540ded69 | [
"CC0-1.0",
"MIT"
] | 6 | 2018-09-03T15:48:19.000Z | 2021-09-27T12:04:04.000Z | scripts/add_come.py | belamu/kanthaus.online | de84010a77e60156cbefb8e014ac6290540ded69 | [
"CC0-1.0",
"MIT"
] | 13 | 2017-12-25T20:44:37.000Z | 2020-10-30T09:37:10.000Z | scripts/add_come.py | belamu/kanthaus.online | de84010a77e60156cbefb8e014ac6290540ded69 | [
"CC0-1.0",
"MIT"
] | 14 | 2018-01-05T19:54:40.000Z | 2021-03-24T10:16:31.000Z | #!/usr/bin/env python3
# Usage: ./scripts/add_come.py
url = "https://codi.kanthaus.online/come/download"
import urllib.request
with urllib.request.urlopen(url) as response:
markdown = response.read().decode()
import yaml
parts = markdown.split('---')
frontmatter = parts[1]
frontmatter = yaml.safe_load(frontmatte... | 27.344828 | 82 | 0.741488 |
89da59d4dd7ad791f2d39f92732c1becceee0d21 | 918 | py | Python | classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py | johannaSommer/adversarial_relighting | 6749a8b4a60e83b0907550d771643921bcfdea9e | [
"MIT"
] | 1 | 2021-08-28T15:27:09.000Z | 2021-08-28T15:27:09.000Z | classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py | johannaSommer/adversarial_relighting | 6749a8b4a60e83b0907550d771643921bcfdea9e | [
"MIT"
] | 1 | 2022-03-03T03:24:00.000Z | 2022-03-03T03:24:00.000Z | classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py | johannaSommer/adversarial_relighting | 6749a8b4a60e83b0907550d771643921bcfdea9e | [
"MIT"
] | 1 | 2021-08-28T15:27:11.000Z | 2021-08-28T15:27:11.000Z | import os
from shutil import copy
path_new = "../../../data/vggface2-80"
path_old = "../../../datasets/vggface2/train"
# Create destination folder
if not os.path.exists(path_new):
os.makedirs(path_new)
subfolders = [entry for entry in os.scandir(path_old) if entry.is_dir()][0:80]
for dir in subfolders:
fol... | 27.818182 | 88 | 0.655773 |
89dbb17620026a1abd4d449a3a6748a5cdc88ef7 | 3,935 | py | Python | Linked Lists/Python/doubly_linked_list/main.py | tayfunkscu/data-structures | 374bb24f543cb729e4d4a0acc62260c9c4330c0e | [
"MIT"
] | null | null | null | Linked Lists/Python/doubly_linked_list/main.py | tayfunkscu/data-structures | 374bb24f543cb729e4d4a0acc62260c9c4330c0e | [
"MIT"
] | null | null | null | Linked Lists/Python/doubly_linked_list/main.py | tayfunkscu/data-structures | 374bb24f543cb729e4d4a0acc62260c9c4330c0e | [
"MIT"
] | null | null | null | import time
def test1():
begin = time.time()
dList = DoublyLinkedList()
for i in range(10000000):
dList.insert(i)
t1 = time.time()
insertion = t1 - begin
for i in range(10000000):
dList.deleteNode(i)
end = time.time()
deletion = end - t1
elapsed = end - begin
... | 23.011696 | 95 | 0.520712 |
89dc0192de8a0e22c6c782a2de51f56a3b78a7ae | 306 | py | Python | stl/load.py | karen-leung-tri/py-stl | 87f764a2b8b7c756a239f200b77c3875f959cae6 | [
"BSD-3-Clause"
] | null | null | null | stl/load.py | karen-leung-tri/py-stl | 87f764a2b8b7c756a239f200b77c3875f959cae6 | [
"BSD-3-Clause"
] | null | null | null | stl/load.py | karen-leung-tri/py-stl | 87f764a2b8b7c756a239f200b77c3875f959cae6 | [
"BSD-3-Clause"
] | null | null | null | from traces import Domain, TimeSeries
def from_pandas(df, compact=True):
'''TODO'''
domain = Domain(df.index[0], df.index[-1])
data = {col: TimeSeries(df[col].T, domain=domain) for col in df.columns}
if compact:
for val in data.values():
val.compact()
return data
| 25.5 | 76 | 0.620915 |
89dc83bef82356a8e78989258d5bfb95205eaf7c | 2,075 | py | Python | cw_persistent_bugger.py | yiyinghsieh/python-algorithms-data-structures | 26879343d3d83ca431946f8a92def2bc8672f807 | [
"BSD-2-Clause"
] | null | null | null | cw_persistent_bugger.py | yiyinghsieh/python-algorithms-data-structures | 26879343d3d83ca431946f8a92def2bc8672f807 | [
"BSD-2-Clause"
] | null | null | null | cw_persistent_bugger.py | yiyinghsieh/python-algorithms-data-structures | 26879343d3d83ca431946f8a92def2bc8672f807 | [
"BSD-2-Clause"
] | null | null | null | """Codewars: Persistent Bugger
6 kyu
URL: https://www.codewars.com/kata/55bf01e5a717a0d57e0000ec/train/python
Write a function, persistence, that takes in a positive parameter num
and returns its multiplicative persistence, which is the number of
times you must multiply the digits in num until you reach a single
d... | 22.802198 | 72 | 0.612048 |
89dcd41c1b43c62ebd5fac901007bae71bac0d77 | 385 | py | Python | dbbackup/utils.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | null | null | null | dbbackup/utils.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:38:37.000Z | 2021-06-02T00:38:37.000Z | dbbackup/utils.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | null | null | null | import os
| 25.666667 | 63 | 0.561039 |
89dd2be94e22bee24353b0eddb7d7b32ae0dc12a | 5,953 | py | Python | tests/test_vocab.py | kmkurn/text2array | 910c349fcbd85299b137c132f218a26860211a6b | [
"Apache-2.0"
] | null | null | null | tests/test_vocab.py | kmkurn/text2array | 910c349fcbd85299b137c132f218a26860211a6b | [
"Apache-2.0"
] | null | null | null | tests/test_vocab.py | kmkurn/text2array | 910c349fcbd85299b137c132f218a26860211a6b | [
"Apache-2.0"
] | 1 | 2021-02-27T08:53:59.000Z | 2021-02-27T08:53:59.000Z | from typing import Iterable, MutableMapping
from tqdm import tqdm # type: ignore
import pytest
from text2array import StringStore, Vocab
| 31.664894 | 92 | 0.436923 |
89de287bde4163591292e22935587e9251683f36 | 558 | py | Python | ai_guesses_number.py | dedeogluhu/python-beginner-projects | 612c0e9fa983d1915bebc1fbc0152aee0976d692 | [
"MIT"
] | null | null | null | ai_guesses_number.py | dedeogluhu/python-beginner-projects | 612c0e9fa983d1915bebc1fbc0152aee0976d692 | [
"MIT"
] | 1 | 2020-09-27T10:12:39.000Z | 2020-09-27T10:12:39.000Z | ai_guesses_number.py | dedeogluhu/python-beginner-projects | 612c0e9fa983d1915bebc1fbc0152aee0976d692 | [
"MIT"
] | null | null | null | import random
x = 0
y = 100
counter = 0
print("choose a number between 0-100 and let me guess your number")
while True:
a = random.randint(int(x),int(y))
print("your number is", a, end = " ")
guess = int(input("1.too low\n2.too high\n3.congratulations"))
if guess == 3:
print("tha... | 17.4375 | 98 | 0.541219 |
89de4a6f60e2e4cdcdc3747c6ac5f4201051823c | 811 | py | Python | input_parameters.py | danush-95/1D-axisymmetric-element | 8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb | [
"MIT"
] | null | null | null | input_parameters.py | danush-95/1D-axisymmetric-element | 8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb | [
"MIT"
] | 2 | 2021-06-17T19:17:08.000Z | 2021-07-29T19:22:02.000Z | input_parameters.py | danush-95/1D-axisymmetric-element | 8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Danush
This file contains all the necessary input parameters for the infinite element
problem.
Any changes here reflects in the main.py file
"""
import numpy as np
def parameter_list():
"""This function returns all the input parameters
n_e - no. of elements to be... | 26.16129 | 81 | 0.601726 |
89df3eb91818b947a567a6685f3e154490516860 | 2,477 | py | Python | mod_motif.py | aniketk21/tfbs-prediction | dbb98450182f5be7a7f1ff71b8c382fcbba8666b | [
"MIT"
] | 2 | 2017-07-07T07:22:41.000Z | 2018-02-11T15:56:08.000Z | mod_motif.py | aniketk21/tfbs-prediction | dbb98450182f5be7a7f1ff71b8c382fcbba8666b | [
"MIT"
] | null | null | null | mod_motif.py | aniketk21/tfbs-prediction | dbb98450182f5be7a7f1ff71b8c382fcbba8666b | [
"MIT"
] | null | null | null | '''
mod_motif.py
usage: python mod_motif.py dataset.dat gff_file output.dat
this will modify the motif scores, found in the `gff_file`
'''
import sys
mchr = open(sys.argv[1])
gff = open(sys.argv[2])
out = open(sys.argv[3], 'w')
mchrl = mchr.readlines()
gffl = gff.readlines()
for i in range(len(mchrl)):
... | 24.77 | 113 | 0.50545 |
89e1a9c53dc6347f086ce73a95f9e26add38a845 | 129 | py | Python | lib/JumpScale/lib/sandboxer/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/lib/sandboxer/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/lib/sandboxer/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
j.base.loader.makeAvailable(j, 'tools')
from Sandboxer import Sandboxer
j.tools.sandboxer = Sandboxer()
| 21.5 | 39 | 0.790698 |
89e44893dd1ed37d0cacd918cd6953876b8082e3 | 5,401 | py | Python | sympy/core/compatibility.py | cielavenir/sympy | ada04faf48a4eb6c1529e8a5d49a6f2f9ce2616e | [
"BSD-3-Clause"
] | 2 | 2015-11-13T16:40:57.000Z | 2017-09-15T15:37:19.000Z | openrave/sympy/core/compatibility.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 1 | 2016-06-13T01:29:51.000Z | 2016-06-14T00:38:27.000Z | openrave/sympy/core/compatibility.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | null | null | null | """
Reimplementations of constructs introduced in later versions of Python than we
support.
"""
# These are in here because telling if something is an iterable just by calling
# hasattr(obj, "__iter__") behaves differently in Python 2 and Python 3. In
# particular, hasattr(str, "__iter__") is False in Python 2 and Tr... | 30.173184 | 84 | 0.595816 |
89e4ba7fcaf844dc87baaae6e1b45c22cb420a82 | 7,289 | py | Python | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | 1 | 2020-12-18T14:49:19.000Z | 2020-12-18T14:49:19.000Z | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.906404 | 132 | 0.625463 |
89eb1f8d5a7f0d8efc338ec547c038bda3a22a04 | 5,007 | py | Python | instagram_scraper/utils.py | mikhaelsantos/instagram-scraper | 8822580afe71668e93e17a4efe3d89f1688a5a21 | [
"Unlicense"
] | null | null | null | instagram_scraper/utils.py | mikhaelsantos/instagram-scraper | 8822580afe71668e93e17a4efe3d89f1688a5a21 | [
"Unlicense"
] | null | null | null | instagram_scraper/utils.py | mikhaelsantos/instagram-scraper | 8822580afe71668e93e17a4efe3d89f1688a5a21 | [
"Unlicense"
] | 1 | 2018-08-17T12:32:04.000Z | 2018-08-17T12:32:04.000Z | import re
def extract_tags(item):
"""Extracts the hashtags from the caption text."""
caption_text = ''
if 'caption' in item and item['caption']:
if isinstance(item['caption'], dict):
caption_text = item['caption']['text']
else:
caption_text = item['caption']
el... | 108.847826 | 3,651 | 0.690633 |
89eb41ae8485cac765ccc73868fbd5656b22ac73 | 8,045 | py | Python | riding_forecast.py | GooseDad/Test | 544555a2684a50b11c1de9aeb849872bd7502501 | [
"Apache-2.0"
] | null | null | null | riding_forecast.py | GooseDad/Test | 544555a2684a50b11c1de9aeb849872bd7502501 | [
"Apache-2.0"
] | null | null | null | riding_forecast.py | GooseDad/Test | 544555a2684a50b11c1de9aeb849872bd7502501 | [
"Apache-2.0"
] | null | null | null | import csv
import datetime
from scipy.stats import norm
from regional_poll_interpolator import RegionalPollInterpolator
import riding_poll_model
party_long_names = {
'cpc': 'Conservative/Conservateur',
'lpc': 'Liberal/Lib',
'ndp': 'NDP-New Democratic Party/NPD-Nouveau Parti d',
'gpc': 'Green Party/Pa... | 34.82684 | 79 | 0.612679 |
89ecab6bc7c96ef4ec3c90aee3bd1aeff3579ec5 | 9,090 | py | Python | engine.py | benzhang13/schedule-comparer | 31607883a1907a50adee78574377c53a4c531a86 | [
"MIT"
] | null | null | null | engine.py | benzhang13/schedule-comparer | 31607883a1907a50adee78574377c53a4c531a86 | [
"MIT"
] | null | null | null | engine.py | benzhang13/schedule-comparer | 31607883a1907a50adee78574377c53a4c531a86 | [
"MIT"
] | null | null | null | import discord
from app.process_excel import receive_file, read_all_files, delete_file
from app.process_ical import receive_file as ical_receive_file
from datetime import datetime
from dotenv import load_dotenv
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
client = discord.Client()
load_dotenv()
... | 53.470588 | 117 | 0.577558 |
89ef27909812cb68db4e32120922fdf1198b7341 | 1,579 | py | Python | debug/fixed_width_rnn.py | JunLi-Galios/unsup_temp_embed_alternating | 1b054fd82aadcfe1aa219be17beb77c89efd974e | [
"MIT"
] | null | null | null | debug/fixed_width_rnn.py | JunLi-Galios/unsup_temp_embed_alternating | 1b054fd82aadcfe1aa219be17beb77c89efd974e | [
"MIT"
] | null | null | null | debug/fixed_width_rnn.py | JunLi-Galios/unsup_temp_embed_alternating | 1b054fd82aadcfe1aa219be17beb77c89efd974e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Baseline for relative time embedding: learn regression model in terms of
relative time.
"""
__author__ = 'Jun Li'
__date__ = 'Feberary 2021'
import torch
import torch.nn as nn
from torch.nn import functional as F
from ute.utils.arg_pars import opt
from ute.utils.logging_setup import logger
... | 27.224138 | 75 | 0.631412 |
89ef6e59d097c25a325548a902521efbe1e234db | 193 | py | Python | example/postrequest.py | ayankashyap/speakeasy | 5fc69a060eeb5701ab9c061ed7525a061e1388e6 | [
"MIT"
] | null | null | null | example/postrequest.py | ayankashyap/speakeasy | 5fc69a060eeb5701ab9c061ed7525a061e1388e6 | [
"MIT"
] | null | null | null | example/postrequest.py | ayankashyap/speakeasy | 5fc69a060eeb5701ab9c061ed7525a061e1388e6 | [
"MIT"
] | null | null | null | import requests
dictToSend = {'input': 'Triple X'} # change the input text here
res = requests.post('http://localhost:5000/convert', json=dictToSend)
print('response from server:', res.text)
| 32.166667 | 69 | 0.73057 |
89f0162980637253b6ca436d96b92541d4384986 | 120 | py | Python | examples/standalone_app.py | saddy001/remi | 1dd886a55b0d2750880253508df43c90db4f0b08 | [
"Apache-2.0"
] | 1 | 2018-03-30T16:57:49.000Z | 2018-03-30T16:57:49.000Z | examples/standalone_app.py | saddy001/remi | 1dd886a55b0d2750880253508df43c90db4f0b08 | [
"Apache-2.0"
] | null | null | null | examples/standalone_app.py | saddy001/remi | 1dd886a55b0d2750880253508df43c90db4f0b08 | [
"Apache-2.0"
] | null | null | null | from remi import start, App
from simple_app import MyApp
if __name__ == "__main__":
start(MyApp, standalone=True)
| 17.142857 | 33 | 0.741667 |
89f0ce7428b537765109cc137d76c48be2e614a8 | 2,171 | py | Python | usermanage/user.py | szatjp/rabbitplan | bae942e4673863027fe7f1936e58f2d9d4ebc5c7 | [
"CC0-1.0"
] | null | null | null | usermanage/user.py | szatjp/rabbitplan | bae942e4673863027fe7f1936e58f2d9d4ebc5c7 | [
"CC0-1.0"
] | null | null | null | usermanage/user.py | szatjp/rabbitplan | bae942e4673863027fe7f1936e58f2d9d4ebc5c7 | [
"CC0-1.0"
] | null | null | null | # coding:utf-8
'''
Created on 2012-3-8
@author: tongjp
'''
import datetime
from django.contrib import auth
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
#from django.views.generic.list_detail import object_list,object_detail
from django.contrib.auth.models import User
f... | 29.739726 | 97 | 0.631967 |
89f10ae8b7023ac10ece591b86c26d8921d5d1cf | 8,831 | py | Python | v1alpha1/swagger_client/models/detail.py | dinagraves/client-python | c4f77332b402e61a1e1700fa0c746183008d435c | [
"Apache-2.0"
] | 10 | 2017-11-19T20:21:16.000Z | 2021-04-23T06:59:33.000Z | v1alpha1/swagger_client/models/detail.py | dinagraves/client-python | c4f77332b402e61a1e1700fa0c746183008d435c | [
"Apache-2.0"
] | 1 | 2021-06-01T21:55:48.000Z | 2021-06-01T21:55:48.000Z | v1alpha1/swagger_client/models/detail.py | dinagraves/client-python | c4f77332b402e61a1e1700fa0c746183008d435c | [
"Apache-2.0"
] | 1 | 2019-08-11T16:51:36.000Z | 2019-08-11T16:51:36.000Z | # coding: utf-8
"""
Grafeas API
An API to insert and retrieve annotations on cloud artifacts.
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in co... | 31.315603 | 230 | 0.615899 |
89f111936bad03aca0486268dcb26a7ace32001a | 52 | py | Python | PythonProjects/23-TkinterCommunication/src/main2.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/23-TkinterCommunication/src/main2.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/23-TkinterCommunication/src/main2.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | import m1e_communication
m1e_communication.main(2)
| 13 | 25 | 0.865385 |
89f1d794c6606211816ae6be84f0a01fc23091fc | 2,116 | py | Python | flod_organisations/manage.py | Trondheim-kommune/Tilskuddsbasen | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-10-17T12:15:28.000Z | 2017-10-17T12:15:28.000Z | flod_organisations/manage.py | Trondheim-kommune/Bookingbasen | 58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2021-03-22T17:15:52.000Z | 2022-01-13T00:39:58.000Z | flod_organisations/manage.py | Trondheim-kommune/Tilskuddsbasen | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-09T13:35:03.000Z | 2019-09-09T13:35:03.000Z | # -*- coding: utf-8 -*-
import os
from flask.ext.script import Manager
from run import application
from domain import models
from database import init_db
manager = Manager(application)
import json
model_mapping = {
"brreg_activity_codes": {"model": models.BrregActivityCode, "map_model": no_map},
"flod_a... | 28.594595 | 118 | 0.712665 |
89f3cebe6712e73f788766b163b60831e545280b | 364 | py | Python | spec/construct/test_debug_switch_user.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/construct/test_debug_switch_user.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/construct/test_debug_switch_user.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # runs in debug mode, so the _read() needs to be called manually
import unittest
from debug_switch_user import _schema
| 26 | 64 | 0.711538 |
89f6226b3375969de1abcdae2bec38f52419b391 | 4,438 | py | Python | train_vae_on_convs.py | tencia/video_predict | fbd84769d595b6518d8174024dd2d862cd48518f | [
"MIT"
] | 84 | 2016-01-08T23:35:22.000Z | 2021-06-01T06:52:26.000Z | train_vae_on_convs.py | tencia/video_predict | fbd84769d595b6518d8174024dd2d862cd48518f | [
"MIT"
] | 2 | 2016-05-26T10:32:22.000Z | 2018-03-30T11:51:18.000Z | train_vae_on_convs.py | tencia/video_predict | fbd84769d595b6518d8174024dd2d862cd48518f | [
"MIT"
] | 34 | 2016-03-31T21:13:33.000Z | 2021-12-11T19:49:38.000Z | import numpy as np
import sys
import os
import theano
import theano.tensor as T
import lasagne as nn
import utils as u
import models as m
import config as c
#
# trains a vae using convolutional features (and a separately trained network
# for reversing the convolutional feature extraction.
if __name__ == '__main__':... | 48.23913 | 95 | 0.698288 |
89f93f80f884d8be4061c9cfd378e03b3f3d6fbb | 214 | py | Python | bitmovin_api_sdk/models/file_input_stream_type.py | hofmannben/bitmovin-api-sdk-python | 71aae5cd8a31aa0ad54ca07a6f546a624e8686a9 | [
"MIT"
] | null | null | null | bitmovin_api_sdk/models/file_input_stream_type.py | hofmannben/bitmovin-api-sdk-python | 71aae5cd8a31aa0ad54ca07a6f546a624e8686a9 | [
"MIT"
] | 1 | 2020-07-06T07:13:43.000Z | 2020-07-06T07:13:43.000Z | bitmovin_api_sdk/models/file_input_stream_type.py | hofmannben/bitmovin-api-sdk-python | 71aae5cd8a31aa0ad54ca07a6f546a624e8686a9 | [
"MIT"
] | 1 | 2020-07-06T07:07:26.000Z | 2020-07-06T07:07:26.000Z | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
| 19.454545 | 59 | 0.766355 |
89f94f54e520048aaffee6928a77cb1a6e3ef139 | 4,088 | py | Python | src/tools/images.py | jdmonaco/grid-remapping-model | 5794b0666d51be4359fd8d74da93dca8e98402bf | [
"MIT"
] | 2 | 2019-03-31T13:56:44.000Z | 2022-02-18T18:04:29.000Z | src/tools/images.py | ModelDBRepository/138951 | f71d4febd29e6e09bb7370022ab85f4a8f1c81b3 | [
"MIT"
] | null | null | null | src/tools/images.py | ModelDBRepository/138951 | f71d4febd29e6e09bb7370022ab85f4a8f1c81b3 | [
"MIT"
] | null | null | null | #encoding: utf-8
"""
tools.images -- Toolbox functions for creating image output
Exported namespace: image_blast, array_to_rgba, array_to_image, diffmap
Written by Joe Monaco
Center for Theoretical Neuroscience
Copyright (c) 2007-2008 Columbia Unversity. All Rights Reserved.
"""
import os as _os
import numpy as _N... | 31.446154 | 78 | 0.611057 |
89faf9ca5f17678fb596ebe90143d1485a301df3 | 1,386 | py | Python | python_stock/5/Python5-18.py | hollo08/stockstrategy | 09ece2457d653439a8ace80a6ac7dd4da9813846 | [
"MIT"
] | 1 | 2020-09-18T15:08:46.000Z | 2020-09-18T15:08:46.000Z | python_stock/5/Python5-18.py | hollo08/stockstrategy | 09ece2457d653439a8ace80a6ac7dd4da9813846 | [
"MIT"
] | null | null | null | python_stock/5/Python5-18.py | hollo08/stockstrategy | 09ece2457d653439a8ace80a6ac7dd4da9813846 | [
"MIT"
] | 2 | 2022-01-23T03:26:22.000Z | 2022-03-28T16:21:01.000Z | #
users = {'num1': {'name': 'admin', 'passwd': 'admin888', 'sex': '1'}, 'num2': {'name': '', 'passwd': 'qd123456', 'sex': '0'}}
list1 = [] #
list2 = []
for key1 ,value1 in users.items() :
list1.append(value1['name']) #
list2.append(value1['passwd']) #
print("".center(50,'*'))
timeout = 0... | 43.3125 | 127 | 0.481962 |
89fb095e61e1c1df946fce48cf100b184e5599dc | 424 | py | Python | tests/test_hand.py | kuwv/spades | 9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f | [
"Apache-2.0"
] | null | null | null | tests/test_hand.py | kuwv/spades | 9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f | [
"Apache-2.0"
] | null | null | null | tests/test_hand.py | kuwv/spades | 9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# type: ignore
'''Provide player hand tests.'''
from spades import db
from spades.game.models.card import Card
from spades.game.models.player import Hand
def test_hand(app) -> None:
'''Test hand.'''
hand = Hand()
hand.add_card(Card('A', 'S'))
db.session.add(hand)
db.sessio... | 21.2 | 42 | 0.620283 |
89fbeff5e102c8ed93a9dcb609eeb07e8969b34f | 1,191 | py | Python | Setup.py | jmoore001/JM_Custom_Maya_Tools | a042a497f22fe21b9c70ea56581682731100e259 | [
"MIT"
] | 1 | 2021-10-03T18:03:36.000Z | 2021-10-03T18:03:36.000Z | Setup.py | jmoore001/JM_Custom_Maya_Tools | a042a497f22fe21b9c70ea56581682731100e259 | [
"MIT"
] | null | null | null | Setup.py | jmoore001/JM_Custom_Maya_Tools | a042a497f22fe21b9c70ea56581682731100e259 | [
"MIT"
] | null | null | null | import maya.cmds as cmds
import os
import sys
user = os.environ.get('USER')
path = 'C:/Users/' + user + '/Documents/maya/JM_Custom_Maya_Tools/Scripts'
if path not in sys.path:
sys.path.append(path)
import InitilizeTools
import JMCustomMarkingMenu
version = cmds.about(version = True)
destWindows = 'C:/Users/' + use... | 44.111111 | 248 | 0.753988 |
89fcae0b5887d34e67c9e20f4c13b08e578b22b7 | 10,072 | py | Python | pints/_mcmc/_differential_evolution.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/_mcmc/_differential_evolution.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/_mcmc/_differential_evolution.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | #
# Differential evolution MCMC
#
# This file is part of PINTS (https://github.com/pints-team/pints/) which is
# released under the BSD 3-clause license. See accompanying LICENSE.md for
# copyright notice and full license details.
#
from __future__ import absolute_import, division
from __future__ import print_function,... | 33.461794 | 79 | 0.590052 |
89ffd0729487f13d0cbc63a922ded256cede7242 | 23,621 | py | Python | kms-samples-python/asymmetric.py | QPC-WORLDWIDE67c7x/aliyunu | 4ebf00e1b196ecca94c5dcef6da4f32af9ac9578 | [
"Apache-2.0"
] | 17 | 2020-01-15T08:46:07.000Z | 2022-02-24T15:53:48.000Z | kms-samples-python/asymmetric.py | QPC-WORLDWIDE67c7x/aliyunu | 4ebf00e1b196ecca94c5dcef6da4f32af9ac9578 | [
"Apache-2.0"
] | 3 | 2020-10-13T20:38:58.000Z | 2021-04-30T20:25:43.000Z | kms-samples-python/asymmetric.py | QPC-WORLDWIDE67c7x/aliyunu | 4ebf00e1b196ecca94c5dcef6da4f32af9ac9578 | [
"Apache-2.0"
] | 5 | 2020-11-24T06:55:57.000Z | 2022-02-21T01:15:50.000Z | import argparse
import base64
import hashlib
import json
import ecdsa
from Crypto.Cipher import PKCS1_OAEP
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import pss
from Crypto.Signature import pkcs1_15
from ecdsa.util import sigdecode_der
from aliyunsdkcore.client import AcsCli... | 32.225102 | 112 | 0.678718 |
d6017026544f420a111eccfab9031abf79be64d6 | 2,057 | py | Python | dataset_initial_exploration.py | diarmuidwhelan/python_project | 6964d72ab110a807a59093d4200177e0bf225597 | [
"Apache-2.0"
] | null | null | null | dataset_initial_exploration.py | diarmuidwhelan/python_project | 6964d72ab110a807a59093d4200177e0bf225597 | [
"Apache-2.0"
] | null | null | null | dataset_initial_exploration.py | diarmuidwhelan/python_project | 6964d72ab110a807a59093d4200177e0bf225597 | [
"Apache-2.0"
] | null | null | null | ###################################################################################################################
#GMIT Higher Diploma in Data Analytics
#Scripting and Programming
#Python Project
#Diarmuid Whelan, 2018-04-10
#Iris Dataset initial exploration
#Will provide summary stats and plots for the Iris Dataset
... | 40.333333 | 156 | 0.671852 |
d60174b1c29d306cf33605f0ff3e650f9be71eb2 | 784 | py | Python | example_usage/model_wrapping.py | micheltokic/stable_baselines_model_based_rl | 75bac906aeba69072878ceb15d9be459b1f436c3 | [
"Apache-2.0"
] | 1 | 2022-01-08T17:08:13.000Z | 2022-01-08T17:08:13.000Z | example_usage/model_wrapping.py | micheltokic/stable_baselines_model_based_rl | 75bac906aeba69072878ceb15d9be459b1f436c3 | [
"Apache-2.0"
] | 5 | 2021-09-15T18:14:48.000Z | 2021-09-19T16:17:51.000Z | example_usage/model_wrapping.py | micheltokic/stable_baselines_model_based_rl | 75bac906aeba69072878ceb15d9be459b1f436c3 | [
"Apache-2.0"
] | null | null | null | from stable_baselines_model_based_rl.utils.configuration import Configuration
from stable_baselines_model_based_rl.wrapper.wrapped_model_env import WrappedModelEnv
cfg_path = './sample_output/CartPole-v1/loss=0.0002335651806788519-lag=4.00-2021-08-14-13-15-36/config.yaml'
model_path = './sample_output/CartPole-v1/los... | 29.037037 | 108 | 0.709184 |
d601de97a6ffd9f68c9eb7d019863b8a412710c4 | 1,447 | py | Python | tests/opytimizer/optimizers/test_ihs.py | macoldibelli/opytimizer | ca0574d520ecc17b1ac875bc6271d466c88d18ac | [
"MIT"
] | null | null | null | tests/opytimizer/optimizers/test_ihs.py | macoldibelli/opytimizer | ca0574d520ecc17b1ac875bc6271d466c88d18ac | [
"MIT"
] | null | null | null | tests/opytimizer/optimizers/test_ihs.py | macoldibelli/opytimizer | ca0574d520ecc17b1ac875bc6271d466c88d18ac | [
"MIT"
] | null | null | null | import sys
import numpy as np
import pytest
from opytimizer.core import function
from opytimizer.optimizers import ihs
from opytimizer.spaces import search
| 19.554054 | 72 | 0.615757 |
d60206cec0a5f383271617545d203b99f0b179aa | 14,440 | py | Python | dialogflow_v2beta1/proto/intent_pb2_grpc.py | gertventer1970/dialogflow-python-client-v2 | e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2 | [
"Apache-2.0"
] | 1 | 2020-10-14T07:43:19.000Z | 2020-10-14T07:43:19.000Z | dialogflow_v2beta1/proto/intent_pb2_grpc.py | everydaycodings/dialogflow-python-client-v2 | c1c925d94726f49e549870e087ad79ee491056e2 | [
"Apache-2.0"
] | null | null | null | dialogflow_v2beta1/proto/intent_pb2_grpc.py | everydaycodings/dialogflow-python-client-v2 | c1c925d94726f49e549870e087ad79ee491056e2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from dialogflow_v2beta1.proto import (
intent_pb2 as google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_intent__pb2,
)
from googl... | 40.448179 | 142 | 0.696122 |
d602616d1834b85919025d38d89d7171948156d1 | 2,067 | py | Python | images/pipelines.py | heranly/imageSpider | 2bf802e6401b737a24874a740d50c1f75fe985ce | [
"MIT"
] | 1 | 2020-04-23T11:52:14.000Z | 2020-04-23T11:52:14.000Z | images/pipelines.py | heranly/imageSpider | 2bf802e6401b737a24874a740d50c1f75fe985ce | [
"MIT"
] | null | null | null | images/pipelines.py | heranly/imageSpider | 2bf802e6401b737a24874a740d50c1f75fe985ce | [
"MIT"
] | 1 | 2020-06-09T03:32:48.000Z | 2020-06-09T03:32:48.000Z | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import hashlib
# from bitarray.test_bitarray import to_bytes
from scrapy.pipelines.images import ImagesPipeline
from scrapy.exc... | 39 | 100 | 0.641993 |
d6029c98ea0c42de189e1a9444390288eb1679e6 | 1,432 | py | Python | tests/fixtures/api.py | siilats/meltano | 404605c83f441c3fc2b729e26416c6caa8b0ed0b | [
"MIT"
] | 122 | 2021-06-21T17:30:29.000Z | 2022-03-25T06:21:38.000Z | tests/fixtures/api.py | siilats/meltano | 404605c83f441c3fc2b729e26416c6caa8b0ed0b | [
"MIT"
] | null | null | null | tests/fixtures/api.py | siilats/meltano | 404605c83f441c3fc2b729e26416c6caa8b0ed0b | [
"MIT"
] | 21 | 2021-06-22T10:08:15.000Z | 2022-03-18T08:57:02.000Z | from contextlib import contextmanager
from unittest import mock
import meltano.api.app
import pytest
from flask import request_started
from flask_security.utils import login_user, logout_user
from meltano.api.models import db as _db
from meltano.api.security.identity import create_dev_user
from meltano.core.migration_... | 22.730159 | 84 | 0.678073 |
d606af08fdc496e4fe99e4d2b023dc88e875f64d | 4,432 | py | Python | Web/digital/app/views.py | inishchith/offgrid | 90c0100bf06ab025184e60357dd77f83c2edcb45 | [
"MIT"
] | 3 | 2018-10-17T11:12:28.000Z | 2018-11-29T05:17:25.000Z | Web/digital/app/views.py | inishchith/offgrid | 90c0100bf06ab025184e60357dd77f83c2edcb45 | [
"MIT"
] | null | null | null | Web/digital/app/views.py | inishchith/offgrid | 90c0100bf06ab025184e60357dd77f83c2edcb45 | [
"MIT"
] | 5 | 2018-10-16T15:40:40.000Z | 2019-01-12T22:14:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render,redirect
from django.http import HttpResponse, HttpResponseRedirect
from . import queries
import requests
import googlemaps
from .config import *
# Create your views here.
# def adddonors(request):
# if(request.... | 34.092308 | 132 | 0.593637 |
d607865fe1f92b56986d3ae6847a22b22564a535 | 13,683 | py | Python | zeenode/zeenode/cogs/main.py | flowitoo/selfbot | 8de0c84391bbc08546a7a8b6c657438405da675c | [
"MIT"
] | 1 | 2021-04-26T21:32:14.000Z | 2021-04-26T21:32:14.000Z | zeenode/zeenode/cogs/main.py | flowitoo/selfbot | 8de0c84391bbc08546a7a8b6c657438405da675c | [
"MIT"
] | null | null | null | zeenode/zeenode/cogs/main.py | flowitoo/selfbot | 8de0c84391bbc08546a7a8b6c657438405da675c | [
"MIT"
] | null | null | null | import discord, requests, pyfiglet, datetime, aiohttp, urllib3, asyncio
import io
from discord.ext import commands as zeenode
from zeenode.load import token
from zeenode.config import prefix
bot = zeenode.Bot(command_prefix=prefix, self_bot=True)
bot.remove_command('help')
Output = "[ERROR] - "
| 66.746341 | 551 | 0.636337 |
d6082e04e4d0bf99e02a55271452f4fb2a318c3c | 419 | py | Python | util/math.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | 23 | 2020-10-13T18:10:32.000Z | 2022-03-02T04:28:42.000Z | util/math.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | 1 | 2021-07-20T02:11:54.000Z | 2021-09-24T02:33:27.000Z | util/math.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | null | null | null | import torch
| 20.95 | 43 | 0.594272 |
d608eeced9ea4fb133349f54be3a4852652eadaf | 828 | py | Python | Selenium/tests_homepage_information.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 5 | 2018-02-14T21:11:06.000Z | 2020-02-23T14:53:11.000Z | Selenium/tests_homepage_information.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 106 | 2018-02-09T00:31:05.000Z | 2018-03-29T07:28:34.000Z | Selenium/tests_homepage_information.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 6 | 2018-02-23T17:48:03.000Z | 2020-05-14T13:39:36.000Z | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from django.test import TestCase
| 39.428571 | 88 | 0.724638 |