max_stars_repo_path stringlengths 4 237 | max_stars_repo_name stringlengths 6 117 | max_stars_count int64 0 95.2k | id stringlengths 1 7 | content stringlengths 12 593k | input_ids listlengths 7 549k |
|---|---|---|---|---|---|
chexpert/ema.py | PJansson/Chexpert | 0 | 198403 | <reponame>PJansson/Chexpert
# Credits: https://github.com/Alibaba-MIIL/ASL
from copy import deepcopy
import torch
from torch import nn
class ModelEMA(nn.Module):
def __init__(self, model, decay=0.9995, device=None):
super().__init__()
self.module = deepcopy(model)
self.module.eval()
... | [
1,
529,
276,
1112,
420,
29958,
29925,
29967,
550,
1100,
29914,
29907,
20970,
10700,
13,
29937,
24596,
1169,
29901,
2045,
597,
3292,
29889,
510,
29914,
29909,
1982,
5363,
29899,
29924,
2687,
29931,
29914,
3289,
29931,
13,
13,
3166,
3509,
1... |
custom_components/kweather_air365/__init__.py | KuddLim/KWeatherAir365 | 0 | 99408 | <filename>custom_components/kweather_air365/__init__.py
"""KWeather Air365 Sensor""" | [
1,
529,
9507,
29958,
6341,
29918,
14036,
29914,
29895,
705,
1624,
29918,
1466,
29941,
29953,
29945,
29914,
1649,
2344,
26914,
2272,
13,
15945,
29908,
29968,
4806,
1624,
5593,
29941,
29953,
29945,
317,
6073,
15945,
29908,
2
] |
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 3 | 28346 | import os
STATIC_FOLDERS = (
'{{cookiecutter.repo_name}}/common/static',
'{{cookiecutter.repo_name}}/users/static',
)
# Muffin Plugins
PLUGINS = (
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
)
# Plugins configurations
SESSION_SECRET = 'SecretHere'
SESSION_LOGIN_URL = '/users/signin/'
JI... | [
1,
1053,
2897,
13,
13,
17816,
2965,
29918,
29943,
5607,
8032,
29903,
353,
313,
13,
1678,
525,
6224,
15108,
21199,
6463,
29889,
20095,
29918,
978,
930,
29914,
9435,
29914,
7959,
742,
13,
1678,
525,
6224,
15108,
21199,
6463,
29889,
20095,
... |
tracker.py | AImotion-Autonomous-Vehicles/AirSimTracking | 0 | 47263 | from .coordinates import Coordinates
from typing import List
import csv
import pandas as pd
class Tracker:
@staticmethod
def load(csv_path: str):
airsim_results = pd.read_csv(csv_path, encoding='utf-8')
tracker = Tracker()
for index, row in airsim_results.iterrows():
coord... | [
1,
515,
869,
1111,
24266,
1053,
3189,
24266,
13,
3166,
19229,
1053,
2391,
13,
5215,
11799,
13,
5215,
11701,
408,
10518,
13,
13,
1990,
3201,
4937,
29901,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
2254,
29898,
7638,
29918,
2084,
299... |
MCTS.py | alexandre-lavoie/MCTS | 0 | 179405 | import random
from typing import Generic, TypeVar
State = TypeVar('State')
Action = TypeVar('Action')
class Monte_Carlo_Tree(Generic[State]):
class Node(Generic[State, Action]):
def __init__(self, state: State, action: Action=None, parent=None):
self.score = 0
self.state = state
... | [
1,
1053,
4036,
13,
3166,
19229,
1053,
3251,
293,
29892,
5167,
9037,
13,
13,
2792,
353,
5167,
9037,
877,
2792,
1495,
13,
4276,
353,
5167,
9037,
877,
4276,
1495,
13,
13,
1990,
11240,
29918,
8179,
417,
29918,
9643,
29898,
15809,
29961,
2... |
U8-optics.py | mahnooranjum/Clustering_MachineLearning | 0 | 67578 | <gh_stars>0
##############################################################################
# <NAME>
# References:
# Official Documentation
##############################################################################
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import panda... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
13,
29937,
1678,
529,
5813,
29958,
13,
29937,
1678,
28318,
29901,
13,
29937,
4706,
10564,
10854,
362,
13,
13383,
13383,
13383,
13383,
7346,
4... |
tests/test_temporary_package.py | Thom1729/package_util | 0 | 52961 | from unittest import TestCase
from sublime_lib import ResourcePath
from package_util import TemporaryPackage
class TestTemporaryPackage(TestCase):
def test_temporary_package_name(self):
expected_resource_path = ResourcePath('Packages/TemporaryPackageTest')
expected_file_path = expected_resource_... | [
1,
515,
443,
27958,
1053,
4321,
8259,
13,
13,
3166,
1014,
28046,
29918,
1982,
1053,
18981,
2605,
13,
3166,
3577,
29918,
4422,
1053,
6789,
1971,
653,
14459,
13,
13,
13,
1990,
4321,
5776,
1971,
653,
14459,
29898,
3057,
8259,
1125,
13,
1... |
tests/common.py | joshuagl/in-toto | 1 | 130245 | #!/usr/bin/env python
"""
<Program Name>
common.py
<Author>
<NAME> <<EMAIL>>
<Started>
Feb 6, 2018
<Copyright>
See LICENSE for licensing information.
<Purpose>
Common code for in-toto unittests, import like so:
`import tests.common`
Tests importing this module, should be run from the project root, e.... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
13,
29966,
9283,
4408,
29958,
13,
29871,
3619,
29889,
2272,
13,
13,
29966,
13720,
29958,
13,
29871,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
13,
29966,
4763,
287,
2... |
brownies/LANL/toACE/energyAngular.py | brown170/fudge | 14 | 1605028 | # <<BEGIN-copyright>>
# Copyright 2021, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
"""
This module adds the method toACE to the classes in the fudge.productData.distributions.energyAngularMC module.
"""
from... | [
1,
396,
3532,
29933,
17958,
29899,
8552,
1266,
6778,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
29892,
19520,
22469,
5514,
3086,
14223,
29892,
365,
12182,
29889,
13,
29937,
2823,
278,
2246,
29899,
5563,
315,
4590,
29979,
227... |
chat/user.py | gdw439/python | 1 | 97341 | <gh_stars>1-10
import sys
import time
import socket
import pymysql
import threading
import PyQt5.QtCore
import PyQt5.QtGui
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
#addr = ('172.16.17.32', 3300)
addr = ('127.0.0.1', 3300)
class Login(QDialog):
# 登录窗口
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10876,
30004,
13,
5215,
931,
30004,
13,
5215,
9909,
30004,
13,
5215,
282,
962,
952,
1519,
30004,
13,
5215,
3244,
292,
30004,
13,
5215,
10772,
17303,
29945,
29... |
samples/smoketest/smoke_test_async.py | lmcarreiro/azure-sdk-for-python | 0 | 135312 | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import asyncio
from key_vault_secrets_async import KeyVaultSecrets
from key_vault_keys_async import KeyVaultKeys
from key_vault_certificates_async import KeyVaultCertifi... | [
1,
396,
448,
2683,
2683,
5634,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
1806,
19245,
29889,
13,
29937,
448,
2683,
2683,
5634,
13,
5215,
408,
948,
3934,
13,
3166,
1820,
29918... |
knn2cat.py | carlosking19/python_library | 0 | 63498 | <gh_stars>0
#!/usr/bin/env python
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from sklearn.cluster import KMeans, SpectralClustering
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import silhouette_samples, silhouette_score
from sklearn.decomposition import P... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
12655,
408,
7442,
30004,
13... |
hw/hw09/tests/multiples_3.py | AnthonyNg404/61A | 0 | 67248 | test = {
'name': 'multiples_3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
scm> (car multiples-of-three)
3
scm> (list? (cdr multiples-of-three)) ; Check to make sure variable contains a stream
#f
scm> (list? (cdr (cdr-stream m... | [
1,
1243,
353,
426,
13,
29871,
525,
978,
2396,
525,
9910,
2701,
29918,
29941,
742,
13,
29871,
525,
9748,
2396,
29871,
29896,
29892,
13,
29871,
525,
2146,
3246,
2396,
518,
13,
1678,
426,
13,
418,
525,
11436,
2396,
518,
13,
4706,
426,
... |
in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 1 | 12865 | #!/usr/bin/env python
# coding: utf-8
# <a id='top'></a>
#
#
# # $\texttt{GiRaFFEfood}$: Initial data for $\texttt{GiRaFFE}$
#
# ## Aligned Rotator
#
# $$\label{top}$$
#
# This module provides another initial data option for $\texttt{GiRaFFE}$. This is a flat-spacetime test with initial data $$A_{\phi} = \frac{\mu \va... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
529,
29874,
1178,
2433,
3332,
29915,
2565,
29874,
29958,
13,
29937,
13,
29937,
13,
29937,
396,
779,
16266,
29912,
26074,
29934,
2... |
farm/__init__.py | ViktorAlm/FARM | 2 | 68126 | import logging
import torch.multiprocessing as mp
logging.basicConfig(
format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
datefmt="%m/%d/%Y %H:%M:%S",
level=logging.INFO,
)
# reduce verbosity from transformers library
logging.getLogger('transformers.configuration_utils').setLevel(logging.WA... | [
1,
1053,
12183,
13,
13,
5215,
4842,
305,
29889,
18056,
307,
985,
292,
408,
22326,
13,
13,
21027,
29889,
16121,
3991,
29898,
13,
1678,
3402,
543,
29995,
29898,
294,
312,
603,
29897,
29879,
448,
1273,
29898,
5563,
978,
29897,
29879,
448,
... |
misago/misago/users/migrations/0003_bans_version_tracker.py | vascoalramos/misago-deployment | 2 | 1604943 | <filename>misago/misago/users/migrations/0003_bans_version_tracker.py<gh_stars>1-10
from django.db import migrations
class Migration(migrations.Migration):
"""Migration superseded by 0016"""
dependencies = [
("misago_users", "0002_users_settings"),
("misago_core", "0001_initial"),
]
... | [
1,
529,
9507,
29958,
26737,
4425,
29914,
26737,
4425,
29914,
7193,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29941,
29918,
29890,
550,
29918,
3259,
29918,
3018,
4937,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
2989... |
notebooks/sports/interactive.py | callysto/lesson-plans | 2 | 123756 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 30 2021
@author: TinaL5, adapted from lisacao, <NAME>.
"""
# libraries
import random
################################ TEXT ENCODING
def soccer(text): # blocked out grey with emoji
rvr = "\033[1;35m ⚽️ : \033[1;0m" + text + "\033[1;0m"
ret... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
323,
434,
1085,
29871,
29941,
29900,
29871,
29906,
29900,
29906,
29... |
stocks/__init__.py | xBlynd/FlameCogs | 0 | 99092 | <filename>stocks/__init__.py
from .stocks import Stocks
def setup(bot):
bot.add_cog(Stocks(bot))
| [
1,
529,
9507,
29958,
17712,
29879,
29914,
1649,
2344,
26914,
2272,
13,
3166,
869,
17712,
29879,
1053,
6639,
4684,
13,
13,
1753,
6230,
29898,
7451,
1125,
13,
12,
7451,
29889,
1202,
29918,
29883,
468,
29898,
20754,
4684,
29898,
7451,
876,
... |
models/tot_metrics.py | GU-DataLab/fairness-and-missing-values | 0 | 114270 | <gh_stars>0
# pred is the list of predicted labels, sensitive is the list of labels for sensitive attribute
# unprotected_vals is the label for unprotected group. e.g. 1 means unprivilege, 0 means privilege
# positive_pred is the favorable result in prediction task. e.g. get approved for a loan
def DIbinary(pred,sensit... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
4450,
338,
278,
1051,
310,
25383,
11073,
29892,
20502,
338,
278,
1051,
310,
11073,
363,
20502,
5352,
13,
29937,
443,
24681,
29918,
791,
29879,
338,
278,
3858,
363,
443,
24681,
23... |
ceilometer/notifier.py | aristanetworks/ceilometer | 2 | 70387 | <reponame>aristanetworks/ceilometer
#
# Copyright 2013 eNovance
#
# Author: <NAME> <<EMAIL>>
#
# 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.... | [
1,
529,
276,
1112,
420,
29958,
279,
9777,
2647,
29879,
29914,
27696,
8328,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29941,
321,
25363,
749,
13,
29937,
13,
29937,
13361,
29901,
529,
5813,
29958,
3532,
26862,
6227,
677... |
mongomail/main.py | terrabitz/MongoMail | 0 | 41314 | """
This file is for initializing the uWSGI application. It defines a post-fork command in
order to avoid an issue in uWSGI that prevents MongoEngine from lazily creating
mongo connections
"""
from uwsgidecorators import postfork
from mongomail.rest_app import app, db, connection
@postfork
def init_db():
db.init... | [
1,
9995,
13,
4013,
934,
338,
363,
2847,
5281,
278,
318,
7811,
29954,
29902,
2280,
29889,
739,
17645,
263,
1400,
29899,
29888,
548,
1899,
297,
13,
2098,
304,
4772,
385,
2228,
297,
318,
7811,
29954,
29902,
393,
28057,
18294,
12412,
515,
... |
opt.py | ArmandB/RITnet | 0 | 40678 | from pprint import pprint
import argparse
def parse_args():
parser = argparse.ArgumentParser()
# Data input settings
parser.add_argument('--dataset', type=str, default='Semantic_Segmentation_Dataset/', help='name of dataset')
# Optimization: General
parser.add_argument('--bs', type=int, default = ... | [
1,
515,
282,
2158,
1053,
282,
2158,
13,
5215,
1852,
5510,
13,
13,
1753,
6088,
29918,
5085,
7295,
13,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
1678,
396,
3630,
1881,
6055,
13,
1678,
13812,
29889,
1202,
29918,
235... |
common/inputs/custom_reader.py | bhneo/FMRouting | 0 | 102134 | import os
import tensorflow_datasets as tfds
import tensorflow as tf
import numpy as np
from common.inputs.data_input import DataInfo
bxs_m2 = [[1, 1], [1, -1], [-1, 1], [-1, -1]]
def parse_multi_mnist1(serialized_example):
""" Data parsing function.
"""
features = tf.io.parse_single_example(serialized... | [
1,
1053,
2897,
13,
5215,
26110,
29918,
14538,
1691,
408,
15886,
6289,
13,
5215,
26110,
408,
15886,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
3619,
29889,
2080,
29879,
29889,
1272,
29918,
2080,
1053,
3630,
3401,
13,
13,
13,
29890,
10351,... |
tests/test_add_option_backtrace.py | ponponon/loguru | 11,391 | 13505 | <reponame>ponponon/loguru<gh_stars>1000+
from loguru import logger
# See "test_catch_exceptions.py" for extended testing
def test_backtrace(writer):
logger.add(writer, format="{message}", backtrace=True)
try:
1 / 0
except Exception:
logger.exception("")
result_with = writer.read().str... | [
1,
529,
276,
1112,
420,
29958,
1112,
1112,
265,
29914,
1188,
20144,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
3166,
1480,
20144,
1053,
17927,
13,
13,
29937,
2823,
376,
1688,
29918,
12510,
29918,
11739,
... |
trump_net/spec/persons.py | iandennismiller/trump-net | 0 | 1613410 | # -*- coding: utf-8 -*-
# trump-net (c) <NAME>
from situation import Person
donald_trump = Person.create(name="<NAME>")
donald_trump_jr = Person.create(name="<NAME>, Jr.")
fred_trump = Person.create(name="<NAME>")
fred_trump_jr = Person.create(name="<NAME>ump, Jr.")
ivana_trump = Person.create(name="<NAME>")
ivanka_... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
534,
3427,
29899,
1212,
313,
29883,
29897,
529,
5813,
29958,
13,
13,
3166,
6434,
1053,
5196,
13,
13,
13,
9176,
2741,
29918,
509,
3427,
353,
5196... |
interview/leet/445_Add_Two_Numbers_II_stack.py | eroicaleo/LearningPython | 1 | 182305 | #!/usr/bin/env python3
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
from linklist import *
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
21940,
363,
1809,
368,
29899,
2324,
287,
1051,
29889,
13,
29937,
770,
2391,
4247,
29898,
3318,
1125,
13,
29937,
268,
822,
4770,
2344,
12035,
1311,
29892,
921,
1125,
1... |
veniq/patterns/classic_setter/classic_setter.py | lyriccoder/veniq | 23 | 169510 | from typing import List
from veniq.ast_framework import ASTNodeType, AST
from veniq.ast_framework.ast_node import ASTNode
class ClassicSetter:
"""
The method's name starts with set. There are attributes
assigning in the method. Also, asserts are ignored.
"""
suitable_nodes: List[ASTNodeType] = [
... | [
1,
515,
19229,
1053,
2391,
13,
3166,
6003,
29875,
29939,
29889,
579,
29918,
4468,
1053,
319,
1254,
4247,
1542,
29892,
319,
1254,
13,
3166,
6003,
29875,
29939,
29889,
579,
29918,
4468,
29889,
579,
29918,
3177,
1053,
319,
1254,
4247,
13,
... |
BOJ2559.py | INYEONGKIM/BOJ | 2 | 91821 | n,k=map(int,input().split());a=[int(i) for i in input().split()];m=sum(a[:k]);s=m
for i in range(k,n):
s+=(a[i]-a[i-k])
if s>m:m=s
print(m)
| [
1,
302,
29892,
29895,
29922,
1958,
29898,
524,
29892,
2080,
2141,
5451,
3310,
29874,
11759,
524,
29898,
29875,
29897,
363,
474,
297,
1881,
2141,
5451,
580,
1385,
29885,
29922,
2083,
29898,
29874,
7503,
29895,
5691,
29879,
29922,
29885,
13,
... |
test/test_cartesian.py | hwazni/discopy | 205 | 117 | from pytest import raises
from discopy.cartesian import *
def test_Box_repr():
f = Box('f', 1, 2, lambda x: (x, x))
assert "Box('f', 1, 2" in repr(f)
def test_Function_str():
f = Function(2, 1, lambda x, y: x + y)
assert 'Function(dom=2, cod=1,' in str(f)
def test_Function_call():
f = Swap(2, ... | [
1,
515,
11451,
1688,
1053,
1153,
4637,
13,
3166,
2313,
2270,
29889,
13823,
18970,
1053,
334,
13,
13,
13,
1753,
1243,
29918,
3313,
29918,
276,
558,
7295,
13,
1678,
285,
353,
11773,
877,
29888,
742,
29871,
29896,
29892,
29871,
29906,
2989... |
src/Testing/ZopeTestCase/__init__.py | tseaver/Zope-RFA | 2 | 13378 | <filename>src/Testing/ZopeTestCase/__init__.py
##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this ... | [
1,
529,
9507,
29958,
4351,
29914,
3057,
292,
29914,
29999,
2300,
3057,
8259,
29914,
1649,
2344,
26914,
2272,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29900,... |
custom_components/waste_collection_schedule/waste_collection_schedule/wizard/stadtreinigung_hamburg.py | UBS-P/hacs_waste_collection_schedule | 142 | 13112 | #!/usr/bin/env python3
from html.parser import HTMLParser
import inquirer
import requests
# Parser for HTML input
class InputParser(HTMLParser):
def __init__(self, input_name):
super().__init__()
self._input_name = input_name
self._value = None
@property
def value(self):
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
3472,
29889,
16680,
1053,
4544,
11726,
13,
13,
5215,
25501,
381,
261,
13,
5215,
7274,
13,
13,
13,
29937,
1459,
643,
363,
4544,
1881,
13,
1990,
10567,
11726,
29898,
7... |
lib/tagnews/crimetype/tag.py | jherzberg/article-tagging | 44 | 158495 | <filename>lib/tagnews/crimetype/tag.py<gh_stars>10-100
import os
import pickle
import glob
import time
import pandas as pd
# not used explicitly, but this needs to be imported like this
# for unpickling to work.
from ..utils.model_helpers import LemmaTokenizer # noqa
"""
Contains the CrimeTags class that allows taggi... | [
1,
529,
9507,
29958,
1982,
29914,
4039,
15753,
29914,
29883,
5632,
300,
668,
29914,
4039,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
13,
5215,
5839,
280,
13,
5215,
13149,
... |
FeiZhai/feizhaipro/apps/news/migrations/0007_auto_20181031_1327.py | FSen0/FeiZhai | 0 | 192520 | # Generated by Django 2.0.6 on 2018-10-31 05:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0006_auto_20181030_0943'),
]
operations = [
migrations.RemoveField(
model_name='comment',
name='create_time',
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29900,
29889,
29953,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29896,
29900,
29899,
29941,
29896,
29871,
29900,
29945,
29901,
29906,
29955,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
Differential Equation Parameter Estimate/testrun1/fitting_post_processing.py | etjoa003/incipy | 0 | 71620 | import param_estimate as pe
import matplotlib.pyplot as plt
import numpy as np
import time
import pickle
filename = 'fitting_data'
save_data_series = [1,2,3]
for j in save_data_series:
pkl_file = open(filename+'_'+str(j)+'.par', 'rb')
SAVE_DATA = None
SAVE_DATA = pickle.load(pkl_file)
pkl_file.close()
fig = pl... | [
1,
1053,
1828,
29918,
342,
6490,
408,
1236,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
5215,
5839,
280,
13,
13,
9507,
353,
525,
29888,
5367,
29918,
1272,
29915,
13,
7620,
29918,
1272... |
SmallTool/Web/UDPClient.py | ASC8384/- | 8 | 141354 | from socket import *
import time
serverName = '127.0.0.1'
serverPort = 12345
clientSocket = socket(AF_INET, SOCK_DGRAM)
now = 0
while(1):
message = input('Input lowercase sentence>\n')
message = message.encode('utf-8')
clientSocket.sendto(message, (serverName, serverPort))
modifiedMessage, serverAddre... | [
1,
515,
9909,
1053,
334,
13,
5215,
931,
13,
13,
2974,
1170,
353,
525,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29915,
13,
2974,
2290,
353,
29871,
29896,
29906,
29941,
29946,
29945,
13,
4645,
11373,
353,
9909,
29898,
... |
config.py | weingxing/Netease-View | 2 | 1604426 | headers = {
'host': 'music.163.com',
'Referer': 'http://music.163.com/search/',
'User-Agent':
('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
' (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36')
}
# 浏览器抓包
cookies = {
'iuqxldmzr': '32',
'_ntes_nnid': '47a31c044... | [
1,
9066,
353,
426,
13,
1678,
525,
3069,
2396,
525,
23596,
29889,
29896,
29953,
29941,
29889,
510,
742,
13,
1678,
525,
1123,
571,
261,
2396,
525,
1124,
597,
23596,
29889,
29896,
29953,
29941,
29889,
510,
29914,
4478,
29914,
742,
13,
1678... |
tests/pyexp_tests.py | nguyentu1602/pyexp | 0 | 162242 | from nose.tools import *
import pyexp
def setup():
print("Setup.")
def teardown():
print("Tear down.")
def test_basic():
print("Ran.")
| [
1,
515,
26414,
29889,
8504,
1053,
334,
13,
5215,
11451,
4548,
13,
13,
1753,
6230,
7295,
13,
1678,
1596,
703,
26947,
23157,
13,
13,
1753,
734,
538,
776,
7295,
13,
1678,
1596,
703,
29911,
799,
1623,
23157,
13,
13,
1753,
1243,
29918,
1... |
tests/benchmarks/benchmark_indiv.py | qanastek/EasyMCDM | 4 | 162262 | <gh_stars>1-10
import time
import matplotlib.pyplot as plt
from EasyMCDM.models.Electre import Electre
from EasyMCDM.models.Promethee import Promethee
from EasyMCDM.models.Pareto import Pareto
from EasyMCDM.models.WeightedSum import WeightedSum
from EasyMCDM.models.Irmo import Irmo
data = {}
indexes = [ 0, 1, 2, 3, 4... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
931,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
3166,
382,
8995,
29924,
6530,
29924,
29889,
9794,
29889,
29923,
781,
276,
1053,
10513,
276,
13,
3... |
yezdi/parser/parser.py | ragsagar/yezdi | 1 | 3887 | from yezdi.lexer.token import TokenType
from yezdi.parser.ast import Program, Statement, Participant, Title, LineStatement
class Parser:
def __init__(self, lexer):
self.lexer = lexer
self.current_token = None
self.peek_token = None
self.next_token()
self.next_token()
... | [
1,
515,
343,
6096,
6051,
29889,
2506,
261,
29889,
6979,
1053,
25159,
1542,
13,
3166,
343,
6096,
6051,
29889,
16680,
29889,
579,
1053,
7835,
29892,
6666,
882,
29892,
3455,
12654,
424,
29892,
18527,
29892,
7407,
14473,
13,
13,
13,
1990,
1... |
fetch_data.py | Kartones/pcgw-game-engines | 0 | 111471 | import csv
from datetime import datetime
import json
from operator import itemgetter
from typing import cast, Dict, List, Tuple
from urllib.parse import quote_plus
import requests
class FetchPCGWData:
USER_AGENT = "PCGW-Game-Engines/0.2 (https://github.com/kartones/pcgw-game-engines)"
CSV_SEPARATOR = ","
... | [
1,
1053,
11799,
13,
3166,
12865,
1053,
12865,
13,
5215,
4390,
13,
3166,
5455,
1053,
2944,
657,
357,
13,
3166,
19229,
1053,
4320,
29892,
360,
919,
29892,
2391,
29892,
12603,
552,
13,
3166,
3142,
1982,
29889,
5510,
1053,
14978,
29918,
112... |
core/migrations/0008_auto_20200212_1114.py | StateArchivesOfNorthCarolina/ratom_server | 1 | 74311 | <gh_stars>1-10
# Generated by Django 2.2.10 on 2020-02-12 16:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20200206_0844'),
]
operations = [
migrations.RenameField(
model_name='historicalmessageaudit',
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
29889,
29896,
29900,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29906,
29899,
29896,
29906,
29871,
29... |
notebooks/tests/test_requirements.py | jagin/opencv-notebooks | 6 | 98659 | import cv2
import matplotlib
import jupyter
def test_opencv_version():
assert cv2.__version__ == '3.4.5'
def test_matplotlib_version():
assert matplotlib.__version__ == '3.0.2'
def test_jupyter_version():
assert jupyter.__version__ == '1.0.0' | [
1,
1053,
13850,
29906,
13,
5215,
22889,
13,
5215,
432,
786,
25547,
13,
13,
1753,
1243,
29918,
3150,
11023,
29918,
3259,
7295,
13,
1678,
4974,
13850,
29906,
17255,
3259,
1649,
1275,
525,
29941,
29889,
29946,
29889,
29945,
29915,
13,
13,
... |
tests/classes/simple_wordbook.py | Jesse-Yung/jsonclasses | 50 | 79153 | <filename>tests/classes/simple_wordbook.py
from __future__ import annotations
from typing import Optional
from jsonclasses import jsonclass, types
@jsonclass
class SimpleWordbook:
name: Optional[str]
words: list[str] = types.nonnull.listof(str)
| [
1,
529,
9507,
29958,
21150,
29914,
13203,
29914,
12857,
29918,
1742,
2909,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
3166,
19229,
1053,
28379,
13,
3166,
4390,
13203,
1053,
4390,
1990,
29892,
4072,
13,
13,
13,
29992,... |
thinc/shims/__init__.py | justindujardin/thinc | 0 | 192770 | <filename>thinc/shims/__init__.py<gh_stars>0
from .shim import Shim
from .pytorch import PyTorchShim
from .tensorflow import keras_model_fns, TensorFlowShim, maybe_handshake_model
from .mxnet import MXNetShim
| [
1,
529,
9507,
29958,
386,
3742,
29914,
845,
9893,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
845,
326,
1053,
1383,
326,
13,
3166,
869,
2272,
7345,
305,
1053,
10772,
29911,
25350,
2713,
3... |
opendatatools/hedgefund/simu_agent.py | jjcc/OpenData | 1,179 | 44821 | from opendatatools.common import RestAgent, md5
from progressbar import ProgressBar
import json
import pandas as pd
import io
import hashlib
import time
index_map = {
'Barclay_Hedge_Fund_Index' : 'ghsndx',
'Convertible_Arbitrage_Index' : 'ghsca',
'Distressed_Securities_Index' : 'ghsds',
'Emerg... | [
1,
515,
1015,
355,
271,
1219,
3775,
29889,
9435,
1053,
11654,
19661,
29892,
22821,
29945,
13,
3166,
6728,
1646,
1053,
20018,
4297,
13,
5215,
4390,
13,
5215,
11701,
408,
10518,
13,
5215,
12013,
13,
5215,
6608,
1982,
13,
5215,
931,
13,
... |
glue-codes/kitefast/preprocessor/src/main_set.py | OpenFAST/KiteFAST | 6 | 184957 | <reponame>OpenFAST/KiteFAST
#
# Copyright 2018 National Renewable Energy Laboratory
#
# 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
#
# Unle... | [
1,
529,
276,
1112,
420,
29958,
6585,
4519,
1254,
29914,
29968,
568,
4519,
1254,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29947,
3086,
7493,
809,
519,
24836,
16715,
7606,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,... |
code/reset.py | e4rthdog/raspberrypi-msfs-panel | 0 | 92087 | from pyky040 import pyky040
from gpiozero import *
from time import sleep
from RPLCD.i2c import CharLCD
lcd=CharLCD(i2c_expander='PCF8574', address=0x27, port=1,
cols=16, rows=2, dotsize=8,
charmap='A02',
auto_linebreaks=True,
backlight_enabled=True)
gled1=LED(21... | [
1,
515,
11451,
3459,
29900,
29946,
29900,
1053,
11451,
3459,
29900,
29946,
29900,
13,
3166,
330,
16168,
9171,
1053,
334,
13,
3166,
931,
1053,
8709,
13,
3166,
390,
7390,
6530,
29889,
29875,
29906,
29883,
1053,
2896,
29931,
6530,
13,
13,
... |
SRTTimeShifter.py | Colin-Fredericks/hx-xml | 1 | 98615 | import sys
import os
import argparse
import re
from glob import glob
instructions = """
To use:
python3 SRTTimeShifter.py filename seconds (options)
Takes the given subtitle file or files, in SRT format,
and shifts the times in each by the given number of seconds.
For time, use decimals, not frames (e.g. 2.5 seconds... | [
1,
1053,
10876,
13,
5215,
2897,
13,
5215,
1852,
5510,
13,
5215,
337,
13,
3166,
13149,
1053,
13149,
13,
13,
2611,
582,
1953,
353,
9995,
13,
1762,
671,
29901,
13,
4691,
29941,
317,
13079,
2481,
2713,
361,
357,
29889,
2272,
10422,
6923,
... |
vignettes/brute-force-interaction.py | koaning/sushigo | 3 | 92220 | import sushigo
import itertools as it
import random
POSSIBLE_CARDS = list(set([str(_) for _ in sushigo.deck.StandardDeck()]))
class CustomPlayer(sushigo.player.Player):
def __init__(self, order, name=None):
super(CustomPlayer, self).__init__()
self.name = 'custom-player'
if name:
... | [
1,
1053,
269,
1878,
5973,
13,
5215,
4256,
8504,
408,
372,
13,
5215,
4036,
13,
13,
13152,
1799,
8979,
1307,
29918,
29907,
1718,
8452,
353,
1051,
29898,
842,
4197,
710,
7373,
29897,
363,
903,
297,
269,
1878,
5973,
29889,
16565,
29889,
1... |
spikeforest2/experimental/__init__.py | michaeljohnclancy/spikeforest2 | 26 | 55205 | from ._sort import sort | [
1,
515,
869,
29918,
6605,
1053,
2656,
2
] |
logger.py | vjdw/piper | 0 | 188451 | <reponame>vjdw/piper
class Logger:
def __init__(self, filepath):
self.filepath = filepath
def write(self, msg):
with open(self.filepath, "a") as logfile:
logfile.write("{}\n".format(msg))
| [
1,
529,
276,
1112,
420,
29958,
29894,
26012,
29893,
29914,
1631,
546,
13,
1990,
28468,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
934,
2084,
1125,
13,
4706,
1583,
29889,
1445,
2084,
353,
934,
2084,
13,
13,
1678,
822,
2436,
... |
mesostat/visualization/mpl_timescale_bar.py | HelmchenLabSoftware/mesostat-dev | 0 | 105081 | <gh_stars>0
import numpy as np
from matplotlib.patches import Rectangle
from mesostat.visualization.mpl_colors import base_colors_rgb
def add_timescale_bar(fig, tNames, tPosts, tNow, colorscheme='tableau', colorNow='red', fontsize=14):
"""
:param fig: Existing figure. May have multiple subplots (int... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
13,
3166,
22889,
29889,
5041,
267,
1053,
22914,
2521,
13,
13,
3166,
4883,
520,
271,
29889,
20119,
2133,
29889,
29885,
572,
29918,
27703,
1053,
2967,
29918,
27703,
... |
data/compute_budget.py | minorchange/co2_monitor_hd | 0 | 100009 | import os, sys
import datetime
from dateutil.relativedelta import relativedelta
from data.read_data import read_budget
def get_remaining_paris_budget(df):
assert "co2_kt_total" in df.columns
budget_start_year, budget_start_value_kt = read_budget()
s_total = df["co2_kt_total"].dropna()
s_measured_s... | [
1,
1053,
2897,
29892,
10876,
13,
5215,
12865,
13,
3166,
2635,
4422,
29889,
2674,
1926,
287,
2554,
1053,
14215,
287,
2554,
13,
3166,
848,
29889,
949,
29918,
1272,
1053,
1303,
29918,
15841,
657,
13,
13,
13,
1753,
679,
29918,
1745,
17225,
... |
loris/requests/meta_request.py | jpstroop/loris-redux | 7 | 81833 | #
# This helps us not have to pass so many things (caches, resolvers,
# transcoders...) around by letting us set class properties on the IIIFRequest
# at startup. Here's a basic example of how this pattern works:
#
# >>> class MyMeta(type): # Note we subclass type, not object
# ... _something = None
# ... def _... | [
1,
396,
13,
29937,
910,
6911,
502,
451,
505,
304,
1209,
577,
1784,
2712,
313,
29883,
14520,
29892,
3770,
874,
29892,
13,
29937,
1301,
19284,
414,
11410,
2820,
491,
27697,
502,
731,
770,
4426,
373,
278,
4786,
29943,
3089,
13,
29937,
47... |
src/core/ServerBase.py | PyDO-Team/PyDO-Old | 1 | 149670 | import sys
from direct.showbase.ShowBase import ShowBase
from direct.directnotify import DirectNotifyGlobal
from panda3d.core import UniqueIdAllocator
from src.util.LogManager import LogManager
from src.dclass.DCManager import DCManager
from src.core.ConnectionManager import ConnectionManager
from src.message.MessageM... | [
1,
1053,
10876,
13,
3166,
1513,
29889,
4294,
3188,
29889,
8964,
5160,
1053,
7704,
5160,
13,
3166,
1513,
29889,
11851,
25140,
1053,
8797,
3664,
1598,
12756,
13,
3166,
282,
5863,
29941,
29881,
29889,
3221,
1053,
853,
1387,
1204,
2499,
2029,... |
source/db/Entry.py | RobinSatterthwaite/BirdTable | 0 | 92285 |
from typing import Any
import pyodbc as odbc
from .Property import Property
class Entry(object):
def __init__(self, table_name: str):
self._delete = False
self._tableName = table_name
self._primaryKey = Property("pk")
self.properties = [self._primaryKey]
@property
def primaryKey(self) -> int:
return... | [
1,
29871,
13,
3166,
19229,
1053,
3139,
13,
5215,
11451,
10396,
29883,
408,
2413,
12328,
13,
13,
3166,
869,
4854,
1053,
9079,
13,
13,
13,
1990,
28236,
29898,
3318,
1125,
13,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
1591,
29918,
97... |
mrq/redishelpers.py | fredstro/mrq | 745 | 100624 | from future.builtins import range
from .utils import memoize
from . import context
def redis_key(name, *args):
prefix = context.get_current_config()["redis_prefix"]
if name == "known_subqueues":
return "%s:ksq:%s" % (prefix, args[0].root_id)
elif name == "queue":
return "%s:q:%s" % (prefix, args[0].id)... | [
1,
515,
5434,
29889,
16145,
1144,
1053,
3464,
13,
3166,
869,
13239,
1053,
2626,
29877,
675,
13,
3166,
869,
1053,
3030,
13,
13,
13,
1753,
29825,
29918,
1989,
29898,
978,
29892,
334,
5085,
1125,
13,
29871,
10944,
353,
3030,
29889,
657,
... |
Torneo/apps/equipo/migrations/0001_initial.py | Estuardiaz2611/Djangotuto2 | 0 | 125078 | <reponame>Estuardiaz2611/Djangotuto2
# Generated by Django 2.2.6 on 2019-10-02 17:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('liga', '0001_initial'),
]
operations = [
migration... | [
1,
529,
276,
1112,
420,
29958,
12787,
29884,
538,
423,
29920,
29906,
29953,
29896,
29896,
29914,
29928,
29926,
574,
327,
3066,
29906,
13,
29937,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
29889,
29953,
373,
29871,
29906,
29900,
2989... |
xero_python/finance/models/problem_type.py | dupski/xero-python | 0 | 171205 | <gh_stars>0
# coding: utf-8
"""
Xero Finance API
The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. # noqa: E501
Contact: <EMAIL>
Generated by: https://openapi-generat... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
1060,
1489,
4231,
749,
3450,
13,
13,
1678,
450,
4231,
749,
3450,
338,
263,
4333,
310,
1095,
9748,
607,
20330,
... |
scripts/printer.py | WIGGITYWHAT/Island_MST | 0 | 88976 | <gh_stars>0
"""Define a function that prints a progress bar of percent p completion."""
import sys
def print_progress(a, b):
"""Print a progress bar with %p finished."""
p = float(a) / b
toolbar_len = 50
num_done = int(toolbar_len*p)
num_remain = toolbar_len - num_done
sys.stdout.flush()
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
3206,
457,
263,
740,
393,
14677,
263,
6728,
2594,
310,
10151,
282,
13285,
1213,
15945,
13,
5215,
10876,
13,
13,
13,
1753,
1596,
29918,
18035,
29898,
29874,
29892,
289,
112... |
code/src/main.py | ChaofWang/AWSRN | 162 | 35359 | <filename>code/src/main.py<gh_stars>100-1000
import torch
import utility
import data
import model
import loss
from option import args
from trainer import Trainer
def print_network(net):
num_params = 0
for param in net.parameters():
num_params += param.numel()
print(net)
print('Total number of ... | [
1,
529,
9507,
29958,
401,
29914,
4351,
29914,
3396,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
5215,
4842,
305,
13,
13,
5215,
19725,
13,
5215,
848,
13,
5215,
1904,
13,
... |
tests/test_cif_io.py | dkratzert/FinalCif | 13 | 142169 | import unittest
from pathlib import Path
from cif.cif_file_io import CifContainer
from tests.test_utils import current_file_path
class CifFileCRCTestCase(unittest.TestCase):
def setUp(self) -> None:
current_file_path()
self.cif = CifContainer(Path('tests/examples/1979688.cif'))
def test_calc... | [
1,
1053,
443,
27958,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
3166,
274,
361,
29889,
29883,
361,
29918,
1445,
29918,
601,
1053,
315,
361,
7895,
13,
3166,
6987,
29889,
1688,
29918,
13239,
1053,
1857,
29918,
1445,
29918,
2084,
13,
13,
... |
mvt/datasets/detection2ds/__init__.py | JackMing1986/MultipleVsiualTasks | 2 | 196826 | <reponame>JackMing1986/MultipleVsiualTasks
from .det_base import DetBaseDataset
from .voc import VOCDataset
from .coco import CocoDataset
from .det_retail import DetRetailDataset
from .det_retail_one import DetRetailOneDataset
__all__ = [
"DetBaseDataset",
"VOCDataset",
"CocoDataset",
"DetRetailDatase... | [
1,
529,
276,
1112,
420,
29958,
27006,
29924,
292,
29896,
29929,
29947,
29953,
29914,
15329,
552,
29963,
1039,
950,
26249,
13,
3166,
869,
4801,
29918,
3188,
1053,
5953,
5160,
16390,
24541,
13,
3166,
869,
29894,
542,
1053,
478,
29949,
6530,... |
config.py | Maziar110/nostratheus | 1 | 180036 | # This dictionary is to define metrics that we should extract data from and then
# their exposed name as predicted metric
metrics = {
'actual_metric_name1': 'actual_metric_name1_predict',
'actual_metric_name2': 'actual_metric_name2_predict'
}
#
prom_url = 'http://localhost/'
expose_port = 8000
# interval in ... | [
1,
396,
910,
8600,
338,
304,
4529,
21556,
393,
591,
881,
6597,
848,
515,
322,
769,
13,
29937,
1678,
1009,
19884,
1024,
408,
25383,
12714,
13,
2527,
10817,
353,
426,
13,
1678,
525,
19304,
29918,
16414,
29918,
978,
29896,
2396,
525,
193... |
train/train.py | sjtu-tcloud/Tiny-OFA | 0 | 38863 | <reponame>sjtu-tcloud/Tiny-OFA
import argparse
import torch.distributed as dist
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
import test # import test.py to get mAP after each epoch
from models import *
from utils.dataset import *
from utils.utils import *
from mymodel import *
wdir ... | [
1,
529,
276,
1112,
420,
29958,
29879,
29926,
9161,
29899,
29873,
9274,
29914,
29911,
4901,
29899,
29949,
4519,
13,
5215,
1852,
5510,
13,
13,
5215,
4842,
305,
29889,
5721,
7541,
408,
1320,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13... |
app/models/dbmodel.py | hashtrip/api | 1 | 77269 | from datetime import datetime
from typing import Optional
from pydantic import BaseModel, Field
from bson import ObjectId
from .util import ObjID
class DateTimeModelMixin(BaseModel):
created_at: Optional[datetime] = Field(None, alias="createdAt")
updated_at: Optional[datetime] = Field(None, alias="updatedAt"... | [
1,
515,
12865,
1053,
12865,
13,
3166,
19229,
1053,
28379,
13,
13,
3166,
282,
2941,
7716,
1053,
7399,
3195,
29892,
8989,
13,
3166,
289,
1100,
1053,
4669,
1204,
13,
3166,
869,
4422,
1053,
4250,
29926,
1367,
13,
13,
13,
1990,
12315,
3195... |
validate.py | saravanabalagi/vae_collection | 0 | 128473 | <gh_stars>0
from experiment import VAEXperiment
import argparse
import yaml
from utils import get_model_module
import torch
import torch.backends.cudnn as cudnn
import pytorch_lightning as pl
from pytorch_lightning.loggers import TestTubeLogger
import numpy as np
import os
parser = argparse.ArgumentParser()
parser.a... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
7639,
1053,
478,
29909,
5746,
15362,
13,
5215,
1852,
5510,
13,
5215,
343,
8807,
13,
3166,
3667,
29879,
1053,
679,
29918,
4299,
29918,
5453,
13,
13,
5215,
4842,
305,
13,
5215,
48... |
post/api/views.py | agiledesign2/drf-blog-post | 0 | 96961 | <gh_stars>0
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404
from rest_framework import generics, permissions
from rest_framework import viewsets
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import rever... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
679,
29918,
3318,
29918,
272,
29918,
29946,
29900,
29946,
13,
3166,
1791,
... |
tests/test_line.py | themiwi/ggplot | 1,133 | 118617 | <gh_stars>1000+
from ggplot import *
import pandas as pd
import numpy as np
import random
x = np.arange(100)
random.shuffle(x)
df = pd.DataFrame({
'x': x,
'y': np.arange(100)
})
print ggplot(df, aes(x='x', y='y')) + geom_line()
print ggplot(df, aes(x='x', y='y')) + geom_path()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
3166,
25662,
1053,
334,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
4036,
13,
13,
29916,
353,
7442,
29889,
279,
927,
29898,
29896,
299... |
modules/templates/WACOP/config.py | mswdresden/AsylumEden | 1 | 22018 | # -*- coding: utf-8 -*-
from collections import OrderedDict
from gluon import current
from gluon.storage import Storage
def config(settings):
"""
Template for WA-COP + CAD Cloud Integration
"""
T = current.T
# =========================================================================
# S... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
13,
3166,
3144,
29884,
265,
1053,
1857,
13,
3166,
3144,
29884,
265,
29889,
12925,
1053,
26162,
13,
13,
175... |
SNACC_Mapper/trend_node.py | emariwileslee/SNACC | 0 | 97369 | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 7 09:58:55 2021
@author: emari
"""
import numpy as np
import pandas as pd
class node():
def __init__(self):
self.parent_node = ""
self.child_connections = [np.array([],dtype=object),np.array([],dtype=object),np.array([],dtype=object),np.array([],dty... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
15050,
319,
558,
259,
29955,
29871,
29900,
29929,
29901,
29945,
29947,
29901,
29945,
29945,
29871,
29906,
29900,
29906,
29896,
... |
test users/tcp_service_test.py | Tapawingo/FreeTakServer | 27 | 124667 | import unittest
from test import support
import socket
import test_data
import time
from lxml import etree
import uuid
import asyncio
from common_testing_tools import TCPClient
class TCPServiceTests(unittest.TestCase):
def setUp(self):
""" setup method to establish two sockets.
this method is run ... | [
1,
1053,
443,
27958,
13,
3166,
1243,
1053,
2304,
13,
5215,
9909,
13,
5215,
1243,
29918,
1272,
13,
5215,
931,
13,
3166,
301,
3134,
1053,
634,
929,
13,
5215,
318,
5416,
13,
5215,
408,
948,
3934,
13,
3166,
3619,
29918,
13424,
29918,
85... |
program/tests/integration_tests_output/graph/graph.py | alienbri/audaces-perps | 0 | 20814 | <filename>program/tests/integration_tests_output/graph/graph.py
import yaml
import matplotlib.pyplot as plt
import math
from jsonmerge import merge
from datetime import datetime
import plotly as ply
import pandas as pd
import plotly.express as px
TRANSFORM = False
PLOT_MEMORY = True
NB_INSTRUCTIONS = 1000
f_value_pro... | [
1,
529,
9507,
29958,
8860,
29914,
21150,
29914,
27925,
29918,
21150,
29918,
4905,
29914,
4262,
29914,
4262,
29889,
2272,
13,
5215,
343,
8807,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
5844,
13,
3166,
4390,
14634,
1053,
103... |
larc/templates/common.py | lowlandresearch/larc | 0 | 58341 | <gh_stars>0
import re
from pathlib import Path
import calendar
import jinja2
import toolz.curried as _
from .. import common as __
from .. import logging
from .. import images
from .. import markdown
log = logging.new_log(__name__)
@_.curry
def find_files(start, filename):
start_path = Path(start).resolve()
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
337,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
17684,
13,
13,
5215,
432,
262,
1764,
29906,
13,
5215,
5780,
29920,
29889,
2764,
1255,
408,
903,
13,
13,
3166,
6317,
1053,
3619,... |
models/ACT/__init__.py | for-ai/ACT | 18 | 149687 | <reponame>for-ai/ACT
__all__ = ["act"]
from .act import *
| [
1,
529,
276,
1112,
420,
29958,
1454,
29899,
1794,
29914,
17923,
13,
1649,
497,
1649,
353,
6796,
627,
3108,
13,
13,
3166,
869,
627,
1053,
334,
13,
2
] |
setup.py | Willd14469/cj8-patient-panthers | 1 | 17420 | import sys
from setuptools import setup
required_packages = ["boombox", "Pillow", "PyYAML", "rich"]
win_packages = ["keyboard"]
unix_packages = ["pynput"]
WIN = "win32"
LINUX = "linux"
MACOS = "darwin"
if sys.platform == WIN:
required_packages += win_packages
elif sys.platform in (LINUX, MACOS):
required_pa... | [
1,
1053,
10876,
13,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
12403,
29918,
8318,
353,
6796,
833,
290,
1884,
613,
376,
29925,
453,
340,
613,
376,
19737,
29979,
23956,
613,
376,
4018,
3108,
13,
13,
5080,
29918,
8318,
353,
6796,
... |
src/dataset.py | hrkz/SubgridTransportNN | 5 | 183141 | <filename>src/dataset.py
import torch
import numpy as np
import h5py
import matplotlib
import matplotlib.pyplot as plt
import glob
plt.rcParams.update({'mathtext.fontset':'cm'})
class SubgridDataset(torch.utils.data.Dataset):
def __init__(self, device, path, samples, size, x, y, established=0):
self.device =... | [
1,
529,
9507,
29958,
4351,
29914,
24713,
29889,
2272,
13,
5215,
4842,
305,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
298,
29945,
2272,
13,
13,
5215,
22889,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
5215,
13149,
13,
13,
... |
tf_quant_finance/volatility/black_scholes.py | 0xflotus/tf-quant-finance | 2 | 156770 | # Copyright 2019 Google LLC
#
# 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 in writing, ... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
5087,
365,
12182,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
... |
tests/test_index_db.py | tos-kamiya/d2vg | 3 | 1611616 | <filename>tests/test_index_db.py
from typing import *
import unittest
import contextlib
from itertools import zip_longest
import os
import tempfile
import numpy as np
from d2vg import index_db
@contextlib.contextmanager
def back_to_curdir():
curdir = os.getcwd()
try:
yield
finally:
os.... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
2248,
29918,
2585,
29889,
2272,
13,
3166,
19229,
1053,
334,
13,
13,
5215,
443,
27958,
13,
13,
5215,
3030,
1982,
13,
3166,
4256,
8504,
1053,
14319,
29918,
5426,
342,
13,
5215,
2897,
13,
5... |
pyz3r/exceptions.py | mgius/pyz3r | 0 | 37416 | <filename>pyz3r/exceptions.py
class alttprException(Exception):
pass
class alttprFailedToRetrieve(Exception):
pass
class alttprFailedToGenerate(Exception):
pass
| [
1,
529,
9507,
29958,
2272,
29920,
29941,
29878,
29914,
11739,
29879,
29889,
2272,
13,
1990,
394,
698,
558,
2451,
29898,
2451,
1125,
30004,
13,
1678,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
394,
698,
558,
17776,
1762,
8015,
29878,
2... |
tests/core_symbol.py | cubetrain/CubeTrain | 0 | 46385 | <gh_stars>0
CORE_SYMBOL='SEAT'
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3217,
1525,
29918,
14816,
9486,
5607,
2433,
1660,
1299,
29915,
30004,
13,
2
] |
dog.py | AmjadNoor/ReconDog | 1 | 62436 | <gh_stars>1-10
#!/usr/bin/env python3
import sys
import requests
import argparse
from core.hq import hq
from core.extractor import extractor
from core.colors import white, green, end, red, yellow, run
parser = argparse.ArgumentParser()
parser.add_argument('-t', help='target', dest='target')
parser.add_argument('-c', ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
10876,
13,
5215,
7274,
13,
5215,
1852,
5510,
13,
13,
3166,
7136,
29889,
29882,
29939,
1053,
298,
... |
examples/plugin_log_task_usage/setup.py | kinow/miniwdl | 2 | 122223 | <reponame>kinow/miniwdl
from setuptools import setup
setup(
name='miniwdl_log_task_usage',
version='0.0.1',
description='miniwdl task plugin to log container cpu+mem usage',
author='<NAME>',
py_modules=["miniwdl_log_task_usage"],
python_requires='>=3.6',
setup_requires=['reentry'],
reen... | [
1,
529,
276,
1112,
420,
29958,
9089,
340,
29914,
1195,
9429,
11671,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
1195,
9429,
11671,
29918,
1188,
29918,
7662,
29918,
21125,
742,
13,
1678,
1873,
2433... |
tests/test_machine.py | learnitall/foremanlite | 0 | 131900 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Test components of foremanlite.machine
The tests in here are pretty basic and non-exhaustive.
Could use more work to get truly full coverage.
"""
import re
import typing as t
import pytest
from hypothesis import given
from hypothesis import strategies as st
from for... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
3057,
7117,
310,
363,
11422,
29880,
568,
29889,
23523,
13,
13,
1576,
6987,
29... |
solutions/solution165.py | Satily/leetcode_python_solution | 3 | 174011 | from itertools import zip_longest
class Solution:
def compareVersion(self, version1: str, version2: str) -> int:
for v1n, v2n in zip_longest(map(int, version1.split('.')), map(int, version2.split('.')), fillvalue=0):
if v1n > v2n:
return 1
elif v1n < v2n:
... | [
1,
515,
4256,
8504,
1053,
14319,
29918,
5426,
342,
30004,
13,
30004,
13,
30004,
13,
1990,
24380,
29901,
30004,
13,
1678,
822,
7252,
6594,
29898,
1311,
29892,
1873,
29896,
29901,
851,
29892,
1873,
29906,
29901,
851,
29897,
1599,
938,
29901... |
bzl/opam.bzl | obazl/orocksdb | 0 | 54666 | PACKAGES = {
"ctypes": ["0.17.1", ["ctypes.foreign"]],
"ctypes-foreign": ["0.4.0"], # WARNING: requires libffi-dev
}
opam = struct(
version = "2.0",
switches = {
"mina-0.1.0": struct(
default = True,
compiler = "4.07.1",
packages = PACKAGES
),
... | [
1,
349,
11375,
10461,
29903,
353,
426,
13,
1678,
376,
312,
7384,
1115,
6796,
29900,
29889,
29896,
29955,
29889,
29896,
613,
6796,
312,
7384,
29889,
1079,
647,
3108,
1402,
13,
1678,
376,
312,
7384,
29899,
1079,
647,
1115,
6796,
29900,
29... |
question_bank/find-majority-element-lcci/find-majority-element-lcci.py | yatengLG/leetcode-python | 9 | 126055 | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:48 ms, 在所有 Python3 提交中击败了83.86% 的用户
内存消耗:14.8 MB, 在所有 Python3 提交中击败了62.52%
解题思路:
对拼消耗,摩尔投票
时间复杂度为 O(N),空间复杂度为 O(1)
不同数字一一对拼消耗,如果有剩余,则存在主要元素(人数最多,且,人数在一半以上)
具体实现见代码注释
"""
class Solution:
def majorityElement(self, nums: List[int]) -> int:
n = ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
13720,
29871,
584,
365,
29954,
13,
13,
15945,
29908,
13,
233,
140,
170,
30448,
30406,
30594,
30383,
29946,
29947,
10887,
29892,
29871,
30505,
... |
Happy vs Sad Face Classification/happy_vs_sad.py | DhruvAwasthi/ModelsCollection | 2 | 170353 | <reponame>DhruvAwasthi/ModelsCollection
#!/usr/bin/env python
# coding: utf-8
# Below is code with a link to a happy or sad dataset which contains 80 images, 40 happy and 40 sad.
# Create a convolutional neural network that trains to 100% accuracy on these images, which cancels training upon hitting training accurac... | [
1,
529,
276,
1112,
420,
29958,
29928,
29882,
582,
29894,
29909,
11102,
386,
29875,
29914,
23785,
7196,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
13866,
338,
775,
4... |
ncbi/patric_add_taxonomy.py | johned0/EdwardsLab | 0 | 29416 | """
Add the taxonomy to the patric metadata file
"""
import os
import sys
import argparse
from taxon import get_taxonomy_db, get_taxonomy
c = get_taxonomy_db()
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Append taxonomy to the patric metadata file. This adds it at column 67")
par... | [
1,
9995,
13,
2528,
278,
8818,
21926,
304,
278,
2373,
2200,
15562,
934,
13,
15945,
29908,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
1852,
5510,
13,
3166,
8818,
265,
1053,
679,
29918,
20725,
21926,
29918,
2585,
29892,
679,
29918,
2... |
test/unittests/chemical/building_blocks/aminoacids.py | Alexhuszagh/XLDiscoverer | 0 | 31328 | <filename>test/unittests/chemical/building_blocks/aminoacids.py
'''
Unittests/Chemical/Building_Blocks/aminoacids
_____________________________________________
Unit tests for aminoacid lookups.
:copyright: (c) 2015 The Regents of the University of California.
:license: GNU GPL, see licenses/GNU GP... | [
1,
529,
9507,
29958,
1688,
29914,
348,
986,
9197,
29914,
14969,
936,
29914,
25237,
29918,
1271,
29879,
29914,
314,
1789,
562,
4841,
29889,
2272,
13,
12008,
13,
1678,
853,
986,
9197,
29914,
1451,
331,
936,
29914,
8893,
292,
29918,
7445,
... |
students/K33402/Beresnev_Andrey/practical2.1/django_project_beresnev/project_first_app/urls.py | agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021 | 4 | 58521 | from django.urls import path
from . import views
urlpatterns = [
path('owner/<int:owner_id>', views.index),
]
| [
1,
515,
9557,
29889,
26045,
1053,
2224,
13,
3166,
869,
1053,
8386,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
2224,
877,
20348,
29914,
29966,
524,
29901,
20348,
29918,
333,
29958,
742,
8386,
29889,
2248,
511,
13,
29962,
13,
2
] |
pyroomacoustics/experimental/tests/test_deconvolution.py | HemaZ/pyroomacoustics | 1 | 12796 | <filename>pyroomacoustics/experimental/tests/test_deconvolution.py<gh_stars>1-10
from unittest import TestCase
import numpy as np
from scipy.signal import fftconvolve
import pyroomacoustics as pra
# fix seed for repeatability
np.random.seed(0)
h_len = 30
x_len = 1000
SNR = 1000. # decibels
h_lp = np.fft.irfft(np.... | [
1,
529,
9507,
29958,
2272,
8345,
562,
18291,
1199,
29914,
735,
27910,
29914,
21150,
29914,
1688,
29918,
311,
535,
4068,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
3166,
443,
27958,
1053,
4321,
... |
src/django_perf_rec/settings.py | adamchainz/django-perf-rec | 147 | 28167 | import sys
from typing import Any
from django.conf import settings
if sys.version_info >= (3, 8):
from typing import Literal
ModeType = Literal["once", "none", "all"]
else:
ModeType = str
class Settings:
defaults = {"HIDE_COLUMNS": True, "MODE": "once"}
def get_setting(self, key: str) -> Any:... | [
1,
1053,
10876,
13,
3166,
19229,
1053,
3139,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
13,
361,
10876,
29889,
3259,
29918,
3888,
6736,
313,
29941,
29892,
29871,
29947,
1125,
13,
1678,
515,
19229,
1053,
5449,
284,
13,
13,
1678,
... |
build/lib/ruleset/ripper.py | ts01174755/wittgenstein | 64 | 147060 | <filename>build/lib/ruleset/ripper.py
"""
Implementation of the RIPPERk algorithm for growing classification rulesets.
See https://www.let.rug.nl/nerbonne/teach/learning/cohen95fast.pdf
"""
# Author: <NAME> <<EMAIL>>
# License: MIT
import pandas as pd
import copy
import math
import warnings
from ruleset import base
... | [
1,
529,
9507,
29958,
4282,
29914,
1982,
29914,
19238,
300,
29914,
374,
2496,
29889,
2272,
13,
15945,
29908,
13,
1888,
14607,
310,
278,
390,
5690,
13171,
29895,
5687,
363,
15678,
12965,
6865,
1691,
29889,
13,
13393,
2045,
597,
1636,
29889,... |
cmdb/dao.py | bopopescu/dbsupport | 2 | 105045 | # -*- coding: UTF-8 -*-
import pymysql
pymysql.install_as_MySQLdb()
import MySQLdb
from django.db import connection
class cmdbDao(object):
def getDbInstanceList(self, search_key, offset, limit):
cursor = connection.cursor()
if search_key == "" or search_key is None:
sql = "select c... | [
1,
396,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
29871,
13,
13,
5215,
282,
962,
952,
1519,
13,
29886,
962,
952,
1519,
29889,
6252,
29918,
294,
29918,
3421,
4176,
2585,
580,
13,
13,
5215,
9254,
2585,
13,
... |
EX 11/GUI.py | Fallinqqq/ITP-100-01-Course-Projects | 0 | 172810 | <filename>EX 11/GUI.py
linz = '---' * 30
# This is the Procedual way of creating a GUI
'''import tkinter
def main():
#creates the main window
main_window = tkinter.Tk()
# Enters the Tkinter main loop
tkinter.mainloop()
# Calls the main function
main()
print(linz)'''
linz = '---' * 30
# This is the M... | [
1,
529,
9507,
29958,
5746,
29871,
29896,
29896,
29914,
29954,
3120,
29889,
2272,
13,
1915,
29920,
353,
525,
5634,
29915,
334,
29871,
29941,
29900,
13,
29937,
910,
338,
278,
1019,
1133,
950,
982,
310,
4969,
263,
14839,
13,
12008,
5215,
1... |
TTBenchmark/check_benchmark.py | yuqil725/benchmark_lib | 0 | 8856 | def check_difference():
pass
def update_benchmark():
pass
| [
1,
822,
1423,
29918,
29881,
17678,
7295,
13,
1678,
1209,
13,
13,
13,
1753,
2767,
29918,
1785,
16580,
7295,
13,
1678,
1209,
13,
2
] |
grortir/externals/__init__.py | wojtekPi/grortir | 0 | 72849 | <filename>grortir/externals/__init__.py<gh_stars>0
"""Package contains modified external modules."""
# pylint: skip-file
| [
1,
529,
9507,
29958,
629,
441,
381,
29914,
735,
725,
1338,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
14459,
3743,
9120,
7029,
10585,
1213,
15945,
13,
29937,
282,
2904,
524,
29901,
1438... |
onmt/modules/Samplers.py | d-ataman/lmm | 9 | 159604 | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence as pack
from torch.nn.utils.rnn import pad_packed_sequence as unpack
import onmt
from onmt.Utils import aeq
import torch.distributi... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
8542,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
383,
13,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053... |
aibox/utils.py | Aakash-kaushik/aibox | 0 | 83293 | # from https://gist.github.com/yashbonde/62df9d16858a43775c22a6af00a8d707
import os
import io
from PIL import Image
def fetch(url):
# efficient loading of URLS
import os, tempfile, hashlib, requests
fp = os.path.join(tempfile.gettempdir(), hashlib.md5(url.encode("utf-8")).hexdigest())
if os.path.isf... | [
1,
396,
515,
2045,
597,
29887,
391,
29889,
3292,
29889,
510,
29914,
29891,
1161,
6718,
311,
29914,
29953,
29906,
2176,
29929,
29881,
29896,
29953,
29947,
29945,
29947,
29874,
29946,
29941,
29955,
29955,
29945,
29883,
29906,
29906,
29874,
2995... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.