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 |
|---|---|---|---|---|---|
app/auth/forms.py | karomag/microblog | 0 | 37776 | <filename>app/auth/forms.py
# -*- coding:utf-8 -*-
"""Forms auth."""
from flask_babel import _
from flask_babel import lazy_gettext as _l
from flask_wtf import FlaskForm
from wtforms import (
BooleanField,
PasswordField,
StringField,
SubmitField,
)
from wtforms.validators import (
DataRequired,
... | [
1,
529,
9507,
29958,
932,
29914,
5150,
29914,
9514,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
12605,
4817,
1213,
15945,
13,
13,
3166,
29784,
29918,
28727,
1053,
9... |
Software/__init__.py | justins0923/zephyrus-iaq | 1 | 49424 | Software/
Config/
GUI/
IAQ_GUI.py
HAT/
IAQ_DAC43608.py
IAQ_Mux.py
Sensors/
IAQ_Sensor.py
IAQ_MqGas.py
third_party/
bme680-python
IAQ_AnalogPortController.py
IAQ_Exceptions.py
IAQ_FileHandler.py
IAQ_Logger.py
| [
1,
18540,
29914,
13,
1678,
12782,
29914,
13,
1678,
14839,
29914,
13,
4706,
306,
29909,
29984,
29918,
29954,
3120,
29889,
2272,
13,
1678,
379,
1299,
29914,
13,
4706,
306,
29909,
29984,
29918,
29928,
2477,
29946,
29941,
29953,
29900,
29947,
... |
iceweather/stations.py | mideind/iceweather | 0 | 172290 | <gh_stars>0
"""
iceweather: Look up information about Icelandic weather (observations, forecasts,
human readable descriptive texts, etc.) using vedur.is xmlweather API.
Copyright (c) 2019-2021 <NAME>.
Original author: <NAME>
BSD 3-clause License (see License.txt).
"""
from typing import List, D... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
13,
1678,
14890,
705,
1624,
29901,
7419,
701,
2472,
1048,
306,
2242,
392,
293,
14826,
313,
26739,
800,
29892,
29821,
19416,
29892,
13,
1678,
5199,
19909,
29037,
573,
2... |
questions/53349623/main.py | sesu089/stackoverflow | 302 | 2893 | <gh_stars>100-1000
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
class Demo(QtWidgets.QWidget):
def __init__(self):
super(Demo, self).__init__()
self.button = QtWidgets.QPushButton()
self.label = QtWidgets.QLabel(alignment=QtCore.Qt.AlignCenter)
self.combo = QtWidgets.QCom... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
5215,
10876,
13,
3166,
10772,
17303,
29945,
1053,
14705,
9203,
29892,
14705,
28707,
29892,
14705,
8801,
29879,
13,
13,
13,
1990,
27819,
2989... |
pipe1.py | preethamsridhar/advancedPython | 1 | 1606712 | <reponame>preethamsridhar/advancedPython
# -*- coding: utf-8 -*-
"""
Created on Wed May 1 17:52:41 2019
@author: preet
"""
import os
def child(pipeout):
bottles = 99
while True:
bob = "bottle of beer"
otw = "on the wall"
take1 = "Take one down and pass it around"
store = "Go ... | [
1,
529,
276,
1112,
420,
29958,
1457,
621,
2232,
2429,
8222,
29914,
328,
16858,
11980,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
15050,
2610,
259,
29896,
29871,
29... |
official/benchmark/unet3d_benchmark.py | gitlost-murali/models | 2 | 25983 | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
1,
396,
365,
524,
408,
29901,
3017,
29941,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
450,
323,
6073,
17907,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
2... |
04 - IWAE/vae.py | wrongu/vae-tutorial | 5 | 1606667 | <reponame>wrongu/vae-tutorial<gh_stars>1-10
import keras.backend as K
from keras.engine import Model
class IWAE(object):
# YOUR CODE HERE
class VAE(IWAE):
# YOUR CODE HERE
| [
1,
529,
276,
1112,
420,
29958,
15866,
549,
29884,
29914,
1564,
29872,
29899,
12631,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
13023,
294,
29889,
27852,
408,
476,
13,
3166,
13023,
294,
29889,
10599,
1053,
... |
User/FN_model.py | NemoursResearch/FormantTracking | 2 | 181522 | <reponame>NemoursResearch/FormantTracking<filename>User/FN_model.py<gh_stars>1-10
#!/usr/bin/env python
# coding: utf-8
# # FormantNet Model Functions
# Functions used for defining, training, or using FormantNet models.
# In[ ]:
import tensorflow as tf
import numpy as np
import sys
import os
import glob
from FN_d... | [
1,
529,
276,
1112,
420,
29958,
29940,
331,
2470,
1666,
2842,
29914,
2500,
424,
17936,
292,
29966,
9507,
29958,
2659,
29914,
29943,
29940,
29918,
4299,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937... |
scripts/touchup_for_web.py | BennZoll/roboto | 3,933 | 30719 | <reponame>BennZoll/roboto<gh_stars>1000+
#!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/li... | [
1,
529,
276,
1112,
420,
29958,
29933,
2108,
29999,
3028,
29914,
13716,
3747,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
29937,
13,
29937,
14187,
1266,
2987... |
creator/migrations/0002_auto_20180122_0811.py | Chaitya62/E-Certificates | 3 | 81048 | <gh_stars>1-10
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-01-22 08:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('creator', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29900,
373,
29871,
29906,
... |
old/step2/itcal_matrix.py | NingAnMe/GFSSI | 1 | 99135 | <filename>old/step2/itcal_matrix.py
import glob
import math
import os
from datetime import datetime, timedelta
def cos(x):
return math.cos(math.radians(x))
def sin(x):
return math.sin(math.radians(x))
def isleap(y):
return (y % 4 == 0 and y % 100 != 0) or y % 400 == 0
def calDoy(y, m, d):
Doy = ... | [
1,
529,
9507,
29958,
1025,
29914,
10568,
29906,
29914,
277,
1052,
29918,
5344,
29889,
2272,
13,
5215,
13149,
13,
5215,
5844,
13,
5215,
2897,
13,
3166,
12865,
1053,
12865,
29892,
5335,
287,
2554,
13,
13,
13,
1753,
6776,
29898,
29916,
112... |
sporttech/settings/base.py | aseufert/sporttechiq | 0 | 166108 | """
Django settings for sporttech project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
# Build pa... | [
1,
9995,
13,
29928,
5364,
6055,
363,
7980,
11345,
2060,
29889,
13,
13,
24565,
491,
525,
14095,
29899,
6406,
1369,
4836,
29915,
773,
15337,
29871,
29906,
29889,
29900,
29889,
29947,
29889,
13,
13,
2831,
901,
2472,
373,
445,
934,
29892,
1... |
buoi12/bai6.py | Viet7501/viet1 | 0 | 125037 | def extract_characters(*file):
with open("file3.txt") as f:
while True:
c = f.read(1)
if not c:
break
print(c)
extract_characters('file3.txt') | [
1,
822,
6597,
29918,
3090,
21706,
10456,
1445,
1125,
30004,
13,
30004,
13,
1678,
411,
1722,
703,
1445,
29941,
29889,
3945,
1159,
408,
285,
29901,
30004,
13,
4706,
1550,
5852,
29901,
30004,
13,
9651,
274,
353,
285,
29889,
949,
29898,
298... |
feapder/network/user_pool/__init__.py | ibryang/feapder | 876 | 35711 | __all__ = [
"GuestUserPool",
"GuestUser",
"NormalUserPool",
"NormalUser",
"GoldUserPool",
"GoldUser",
"GoldUserStatus",
]
from .gold_user_pool import GoldUserPool, GoldUser, GoldUserStatus
from .guest_user_pool import GuestUserPool, GuestUser
from .normal_user_pool import NormalUserPool, No... | [
1,
4770,
497,
1649,
353,
518,
13,
1678,
376,
9485,
342,
2659,
11426,
613,
13,
1678,
376,
9485,
342,
2659,
613,
13,
1678,
376,
19077,
2659,
11426,
613,
13,
1678,
376,
19077,
2659,
613,
13,
1678,
376,
29954,
1025,
2659,
11426,
613,
13... |
material/admin/views.py | sesostris/django-material-admin | 0 | 120959 | <gh_stars>0
import datetime
from django.contrib import messages
from django.utils.translation import gettext_lazy as _
from django.views.generic import TemplateView
class ThemesView(TemplateView):
title = _('Theme selection')
themes = (
{'display': _('Default'), 'name': 'default'},
{'display'... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12865,
13,
13,
3166,
9557,
29889,
21570,
1053,
7191,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
679,
726,
29918,
433,
1537,
408,
903,
13,
3166,
9557,
29889,
7406,
298... |
js/matrixjs/matrix_compile.py | kennytilton/ConnectJS | 7 | 4903 | <gh_stars>1-10
#!/usr/bin/python2.4
import httplib, urllib, sys
# Define the parameters for the POST request and encode them in
# a URL-safe format.
params = urllib.urlencode([
#('js_code', sys.argv[1]),
('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Matrix/Cells.j... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29906,
29889,
29946,
13,
13,
5215,
1732,
1982,
29892,
3142,
1982,
29892,
10876,
13,
13,
29937,
22402,
278,
4128,
363,
27... |
tests/python/o.py | BenSouchet/sorbus | 0 | 1610422 | # Rouge Highlighter token test - Operator
test = (((0.2 * 10) + 0.1) - 6) / 10
| [
1,
396,
15915,
479,
5057,
29880,
14643,
5993,
1243,
448,
6607,
1061,
13,
1688,
353,
313,
3552,
29900,
29889,
29906,
334,
29871,
29896,
29900,
29897,
718,
29871,
29900,
29889,
29896,
29897,
448,
29871,
29953,
29897,
847,
29871,
29896,
29900,... |
setup.py | dsludwig/littlefs-python | 13 | 59943 | <reponame>dsludwig/littlefs-python<filename>setup.py
from os import path
from setuptools import setup, find_packages
from setuptools import Extension
from Cython.Build import cythonize
# Extension definition
EXTENSIONS = [
Extension("littlefs.lfs", ["src/littlefs/lfs.pyx", 'littlefs/lfs.c', 'littlefs/lfs_util.c'],... | [
1,
529,
276,
1112,
420,
29958,
29881,
2536,
566,
9192,
29914,
29880,
1992,
5847,
29899,
4691,
29966,
9507,
29958,
14669,
29889,
2272,
13,
3166,
2897,
1053,
2224,
13,
3166,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
3166,
... |
pymatgen/electronic_structure/tests/test_boltztrap.py | exenGT/pymatgen | 1 | 68880 | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import json
import os
import unittest
import warnings
from monty.os.path import which
from monty.serialization import loadfn
from pymatgen.electronic_structure.bandstructure import BandStructure
from pymatgen.electronic_str... | [
1,
396,
14187,
1266,
313,
29883,
29897,
349,
962,
271,
1885,
14650,
8583,
29889,
13,
29937,
6652,
7541,
1090,
278,
4958,
310,
278,
341,
1806,
19245,
29889,
13,
13,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
5215,
18116,... |
bin/focus_scan.py | desihub/desicmx | 3 | 928 | <gh_stars>1-10
#!/usr/bin/env python
import astropy.io.fits as fits
import numpy as np
import os
import matplotlib.pyplot as plt
import argparse
def _fname(expid, night,
basedir='/n/home/datasystems/users/ameisner/reduced/focus',
ccds=False):
fname = basedir + '/' + night + '/' + st... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
8717,
14441,
29889,
601,
29889,
29888,
1169,
408,
23994,
13,
5215,
12655,
408,
7442,
13,
5215,
2897,... |
ibmsecurity/isam/base/fips.py | zone-zero/ibmsecurity | 46 | 23646 | import logging
import ibmsecurity.utilities.tools
import time
logger = logging.getLogger(__name__)
requires_model = "Appliance"
def get(isamAppliance, check_mode=False, force=False):
"""
Retrieving the current FIPS Mode configuration
"""
return isamAppliance.invoke_get("Retrieving the current FIPS M... | [
1,
1053,
12183,
13,
5215,
474,
5838,
8926,
29889,
4422,
1907,
29889,
8504,
13,
5215,
931,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
276,
339,
2658,
29918,
4299,
353,
376,
2052,
13036,
29908,
13,
13... |
info/models.py | oychao1988/WebServer | 0 | 1611474 | <filename>info/models.py
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from info import constants
from . import db
class BaseModel(object):
"""模型基类,为每个模型补充创建时间与更新时间"""
create_time = db.Column(db.DateTime, default=datetime.now) # 记录的创建时间
update_ti... | [
1,
529,
9507,
29958,
3888,
29914,
9794,
29889,
2272,
13,
3166,
12865,
1053,
12865,
13,
3166,
23085,
13289,
29889,
8926,
1053,
5706,
29918,
5630,
29918,
8568,
29892,
1423,
29918,
5630,
29918,
8568,
13,
13,
3166,
5235,
1053,
17727,
13,
3166... |
tests/test_function.py | aroberge/nonstandard | 2 | 186050 | from .common import nonstandard
from .function_testfile import *
| [
1,
515,
869,
9435,
1053,
1661,
15770,
13,
3166,
869,
2220,
29918,
1688,
1445,
1053,
334,
13,
13,
2
] |
lassolver/utils/func.py | Ken529n/Lassolver | 0 | 104103 | import numpy as np
from scipy.stats import truncnorm, norm
def soft_threshold(r, gamma):
"""
soft-thresholding function
"""
return np.maximum(np.abs(r) - gamma, 0.0) * np.sign(r)
def df(r, gamma):
"""
divergence-free function
"""
eta = soft_threshold(r, gamma)
ret... | [
1,
1053,
12655,
408,
7442,
30004,
13,
3166,
4560,
2272,
29889,
16202,
1053,
21022,
12324,
29892,
6056,
30004,
13,
30004,
13,
30004,
13,
1753,
4964,
29918,
386,
12268,
29898,
29878,
29892,
330,
2735,
1125,
30004,
13,
1678,
9995,
30004,
13,... |
pyy1/.pycharm_helpers/python_stubs/-1550516950/termios.py | pyy1988/pyy_test1 | 0 | 173255 | <reponame>pyy1988/pyy_test1
# encoding: utf-8
# module termios
# from /usr/lib/python3.5/lib-dynload/termios.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
This module provides an interface to the Posix calls for tty I/O control.
For a complete description of these calls, see the Posix or Unix manual
pages. I... | [
1,
529,
276,
1112,
420,
29958,
2272,
29891,
29896,
29929,
29947,
29947,
29914,
2272,
29891,
29918,
1688,
29896,
13,
29937,
8025,
29901,
23616,
29899,
29947,
13,
29937,
3883,
1840,
2363,
13,
29937,
515,
847,
4855,
29914,
1982,
29914,
4691,
... |
praeteritum/settings.py | NoMariusz/Praeteritum | 3 | 107020 | <gh_stars>1-10
"""
Django settings for praeteritum project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
29928,
5364,
6055,
363,
7213,
1308,
277,
398,
2060,
29889,
13,
13,
24565,
491,
525,
14095,
29899,
6406,
1369,
4836,
29915,
773,
15337,
29871,
29941,... |
scripts/dataset_status.py | neurodata/boss-export | 0 | 184481 | #%%
import asyncio
from datetime import datetime
import aiofiles
import aiohttp
import pandas as pd
OPEN_DATA_BUCKET_URL = "https://open-neurodata.s3.amazonaws.com"
#%%
def return_url_dataset(coll, exp, ch):
return f"{OPEN_DATA_BUCKET_URL}/{coll}/{exp}/{ch}/info"
#%%
# read the data
df = pd.read_csv("scripts/... | [
1,
396,
7686,
13,
5215,
408,
948,
3934,
13,
3166,
12865,
1053,
12865,
13,
13,
5215,
263,
601,
5325,
13,
5215,
263,
601,
1124,
13,
5215,
11701,
408,
10518,
13,
13,
4590,
1430,
29918,
14573,
29918,
7838,
7077,
2544,
29918,
4219,
353,
... |
team1/sca_test.py | NCBI-Codeathons/RAPID-EVALUATION-OF-STATISTICAL-STRATEGIES-FOR-PREDICTING-INTERACTIONS-AND-INFORMATION-TRANSFER-BETW | 0 | 53858 | #!/bin/python
#sca_test.py
import matplotlib.pyplot as plt
import coevo2 as ce
import itertools as it
import numpy as np
import copy
import time
reload(ce)
names = ['glgA', 'glgC', 'cydA', 'cydB']
algPath = 'TestSet/eggNOG_aligns/slice_0.9/'
prots = ce.prots_from_scratch(names,path2alg=algPath)
ps = ce.ProtSet(prots... | [
1,
18787,
2109,
29914,
4691,
13,
29937,
29879,
1113,
29918,
1688,
29889,
2272,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
1302,
29872,
1365,
29906,
408,
2257,
13,
5215,
4256,
8504,
408,
372,
13,
5215,
12655,
408,
7442... |
plato_pylib/parseOther/__init__.py | RFogarty1/plato_pylib | 0 | 63814 | from . import parse_castep_files
| [
1,
515,
869,
1053,
6088,
29918,
29883,
4350,
29886,
29918,
5325,
13,
2
] |
custom_config.py | prise-3d/Thesis-NoiseDetection-rfe-attributes | 0 | 25717 | <gh_stars>0
from modules.config.attributes_config import *
# store all variables from global config
context_vars = vars()
# folders
logs_folder = 'logs'
backup_folder = 'backups'
## min_max_custom_folder = 'custom_norm'
## correlation_indices_folder ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
10585,
29889,
2917,
29889,
15697,
29918,
2917,
1053,
334,
13,
13,
29937,
3787,
599,
3651,
515,
5534,
2295,
13,
4703,
29918,
16908,
353,
24987,
580,
13,
13,
29937,
16495,
13,
20756... |
lib/dataset/lpw.py | Xiangyu-CAS/Yet-Another-reid-baseline | 33 | 94345 | # encoding: utf-8
import glob
import re
import os
import os.path as osp
from .base import BaseImageDataset
class LPW(BaseImageDataset):
"""
"""
dataset_dir = 'LPW/'
def __init__(self, root='', verbose=True, **kwargs):
super(LPW, self).__init__()
self.dataset_dir = osp.join(root, self... | [
1,
396,
8025,
29901,
23616,
29899,
29947,
13,
13,
5215,
13149,
13,
5215,
337,
13,
5215,
2897,
13,
5215,
2897,
29889,
2084,
408,
288,
1028,
13,
13,
3166,
869,
3188,
1053,
7399,
2940,
16390,
24541,
13,
13,
13,
1990,
23671,
29956,
29898,... |
cms/publications/models.py | dragon-dxw/nhs-ei.website | 0 | 50173 | <reponame>dragon-dxw/nhs-ei.website
from urllib.parse import urlparse
from cms.categories.models import Category, PublicationType, CategoryPage
from cms.publications.blocks import PublicationsBlocks
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db import models
from django.db.mod... | [
1,
529,
276,
1112,
420,
29958,
20515,
265,
29899,
8235,
29893,
29914,
29876,
9499,
29899,
10096,
29889,
22942,
13,
3166,
3142,
1982,
29889,
5510,
1053,
3142,
5510,
13,
13,
3166,
274,
1516,
29889,
20683,
29889,
9794,
1053,
17943,
29892,
52... |
examples/doctest_example.py | pynickle/python-cheatsheet-redefined | 11 | 135178 | """
file for doctest
"""
import math
def factorial(n):
result = 1
factor = 2
while factor <= n:
result *= factor
factor += 1
return result
| [
1,
9995,
13,
1445,
363,
437,
312,
342,
13,
15945,
29908,
13,
5215,
5844,
13,
13,
13,
1753,
7329,
616,
29898,
29876,
1125,
13,
1678,
1121,
353,
29871,
29896,
13,
1678,
7329,
353,
29871,
29906,
13,
1678,
1550,
7329,
5277,
302,
29901,
... |
stickmanZ/__main__.py | MichaelMcFarland98/cse210-project | 1 | 2130 | <filename>stickmanZ/__main__.py
from game.game_view import GameView
from game.menu_view import menu_view
from game import constants
import arcade
SCREEN_WIDTH = constants.SCREEN_WIDTH
SCREEN_HEIGHT = constants.SCREEN_HEIGHT
SCREEN_TITLE = constants.SCREEN_TITLE
window = arcade.Window(SCREEN_WIDTH, SCREEN_HEIGHT, SC... | [
1,
529,
9507,
29958,
303,
860,
1171,
29999,
29914,
1649,
3396,
26914,
2272,
13,
13,
3166,
3748,
29889,
11802,
29918,
1493,
1053,
8448,
1043,
13,
3166,
3748,
29889,
6510,
29918,
1493,
1053,
6143,
29918,
1493,
13,
3166,
3748,
1053,
17727,
... |
src/pyams_scheduler/zmi/interfaces.py | Py-AMS/pyams-scheduler | 0 | 87663 | #
# Copyright (c) 2015-2021 <NAME> <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE... | [
1,
396,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29945,
29899,
29906,
29900,
29906,
29896,
529,
5813,
29958,
529,
29873,
1579,
272,
562,
15531,
9238,
386,
279,
29889,
1212,
29958,
13,
29937,
2178,
26863,
2538,
... |
src/ros_deep_vision/umass_util.py | goolygu/ros-deep-vision | 9 | 58691 | from perception_msgs.msg import State
from geometry_msgs.msg import Point, Pose
def to_state_pose_msg_list(value_dict, filter_xyz_dict):
state_list = []
pose_list = []
for sig in value_dict:
state = State()
state.type = 'cnn'
state.name = str(sig)
state.value = value_dict[si... | [
1,
515,
639,
1441,
29918,
1516,
3174,
29889,
7645,
1053,
4306,
13,
3166,
16303,
29918,
1516,
3174,
29889,
7645,
1053,
8984,
29892,
349,
852,
13,
13,
1753,
304,
29918,
3859,
29918,
4220,
29918,
7645,
29918,
1761,
29898,
1767,
29918,
8977,
... |
nagios.15s.py | zessx/xbar-nagios | 0 | 184464 | <reponame>zessx/xbar-nagios<filename>nagios.15s.py
#! /usr/bin/env PYTHONIOENCODING=utf8 PYTHONUNBUFFERED=1 /usr/local/bin/python3
# <xbar.title>Nagios</xbar.title>
# <xbar.version>1.0</xbar.version>
# <xbar.author><NAME></xbar.author>
# <xbar.author.github>zessx</xbar.author.github>
# <xbar.desc>Monitor Nagios instan... | [
1,
529,
276,
1112,
420,
29958,
28790,
29916,
29914,
29916,
1646,
29899,
29876,
351,
2363,
29966,
9507,
29958,
29876,
351,
2363,
29889,
29896,
29945,
29879,
29889,
2272,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
349,
29979,
4690... |
lightautoml/transformers/numeric.py | Cybsloth/LightAutoML | 2 | 1613482 | """Numeric features transformers."""
from typing import Union
import numpy as np
from ..dataset.base import LAMLDataset
from ..dataset.np_pd_dataset import NumpyDataset
from ..dataset.np_pd_dataset import PandasDataset
from ..dataset.roles import CategoryRole
from ..dataset.roles import NumericRole
from .base import... | [
1,
9995,
29940,
25099,
5680,
4327,
414,
1213,
15945,
13,
13,
3166,
19229,
1053,
7761,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
6317,
24713,
29889,
3188,
1053,
17900,
1988,
16390,
24541,
13,
3166,
6317,
24713,
29889,
9302,
29918,
15... |
bleach__examples__remove_tags__clear_html/escape_protocols.py | DazEB2/SimplePyScripts | 117 | 33414 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/mozilla/bleach
# SOURCE: https://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols
# pip install bleach
import bleach
# List of allowed protocols
print('List of allowed protocols:', bleach.san... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
1649,
8921,
1649,
353,
525,
666,
18184,
1161,
29915,
13,
13,
13,
29937,
7791,
4574,
4741,
... |
Ankit Khandelwal_HW2/exercise 11/exercise 11c.py | ankit27kh/Computational-Physics-PH354 | 0 | 179095 | <reponame>ankit27kh/Computational-Physics-PH354<gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 10 20:31:35 2020
@author: <NAME>
"""
from math import *
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
stm = pd.read_csv("stm.txt", sep=' ', header=None)
xv = np.linspace(0, 473, 474)
y... | [
1,
529,
276,
1112,
420,
29958,
804,
277,
29906,
29955,
15339,
29914,
20606,
1288,
29899,
25847,
1199,
29899,
19689,
29941,
29945,
29946,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
... |
mcache/tests/common.py | frmengel/integrations-core | 0 | 127559 | <gh_stars>0
# (C) Datadog, Inc. 2010-2017
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
PORT = 11211
SERVICE_CHECK = 'memcache.can_connect'
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
313,
29907,
29897,
13373,
328,
468,
29892,
9266,
29889,
29871,
29906,
29900,
29896,
29900,
29899,
29906,
29900,
29896,
29955,
13,
29937,
2178,
10462,
21676,
13,
29937,
10413,
21144,
... |
smdebug/core/locations.py | aaronmarkham/sagemaker-debugger | 0 | 148855 | # Standard Library
import os
import re
from abc import ABC, abstractmethod
# Local
from .logger import get_logger
from .utils import get_immediate_subdirectories
logger = get_logger()
class TensorLocation:
def __init__(self, tname, mode, mode_step, event_file_name, start_idx, length, worker):
self.tenso... | [
1,
396,
10117,
9538,
13,
5215,
2897,
13,
5215,
337,
13,
3166,
25638,
1053,
16417,
29892,
9846,
5696,
13,
13,
29937,
9959,
13,
3166,
869,
21707,
1053,
679,
29918,
21707,
13,
3166,
869,
13239,
1053,
679,
29918,
326,
13847,
29918,
1491,
... |
setup.py | olorin/prettyqr | 2 | 146761 | """
prettyqr
https://github.com/olorin/prettyqr
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
desc = f.read()
setup(
name="prettyqr",
version="0.0.2... | [
1,
9995,
13,
1457,
4349,
29939,
29878,
13,
13,
991,
597,
3292,
29889,
510,
29914,
324,
272,
262,
29914,
1457,
4349,
29939,
29878,
13,
15945,
29908,
13,
13,
3166,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
3166,
775,
2... |
test/indexing_test.py | IceCube-SPNO/BoostNumpy | 6 | 190593 | #
# $Id$
#
# Copyright (C)
# 2014 - $Date$
# <NAME> <<EMAIL>>
# 2010-2012
# <NAME>, <NAME>
#
# This file implements tests for indexing functionalities of the
# boost::numpy::ndarray class.
#
# This file is distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or cop... | [
1,
396,
13,
29937,
395,
1204,
29938,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
13,
29937,
29871,
29906,
29900,
29896,
29946,
448,
395,
2539,
29938,
13,
29937,
268,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
29871,
... |
starfish/pipeline/filter/white_tophat.py | joshmoore/starfish | 0 | 38144 | import numpy as np
from ._base import FilterAlgorithmBase
class WhiteTophat(FilterAlgorithmBase):
"""
Performs "white top hat" filtering of an image to enhance spots. "White top hat filtering" finds spots that are both
smaller and brighter than their surroundings.
See Also
--------
https://e... | [
1,
1053,
12655,
408,
7442,
13,
13,
3166,
869,
29918,
3188,
1053,
19916,
22461,
4540,
5160,
13,
13,
13,
1990,
8037,
7031,
2455,
29898,
5072,
22461,
4540,
5160,
1125,
13,
1678,
9995,
13,
1678,
2431,
9514,
376,
10921,
2246,
3056,
29908,
... |
venv/lib/python3.8/site-packages/azureml/_model_management/_constants.py | amcclead7336/Enterprise_Data_Science_Final | 0 | 144786 | <reponame>amcclead7336/Enterprise_Data_Science_Final
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
MMS_WORKSPACE_API_VERSION = '2018-11-19'
MMS_ROUTE_API_VERSION = 'v1.0'
MMS_SYNC... | [
1,
529,
276,
1112,
420,
29958,
314,
617,
280,
328,
29955,
29941,
29941,
29953,
29914,
10399,
7734,
29918,
1469,
29918,
29903,
15277,
29918,
15790,
13,
29937,
448,
2683,
2683,
2683,
1378,
30004,
13,
29937,
14187,
1266,
313,
29883,
29897,
7... |
nezzle/graphics/__init__.py | dwgoon/nezzle | 2 | 118518 | <filename>nezzle/graphics/__init__.py<gh_stars>1-10
from nezzle.graphics.baseitem import MappableGraphicsItem
from nezzle.graphics.baseitem import PainterOptionItem
from nezzle.graphics.nodes.nodefactory import NodeClassFactory
from nezzle.graphics.nodes.basenode import BaseNode
from nezzle.graphics.nodes.ellipsenode i... | [
1,
529,
9507,
29958,
484,
5617,
280,
29914,
6420,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
452,
5617,
280,
29889,
6420,
29889,
3188,
667,
1053,
341,
932,
519,
17290,
2001... |
mbc1b/hdl/run.py | Gekkio/sm83-research | 8 | 185289 | <gh_stars>1-10
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>>
#
# SPDX-License-Identifier: MIT OR Apache-2.0
from vunit import VUnit
import toml
source_files = [
'cells/*.vhd',
'generated/*.vhd',
'mbc1b_tb.vhd',
]
ui = VUnit.from_argv()
ui.enable_location_preprocessing()
ui.enabl... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
10937,
29928,
29990,
29899,
2283,
11882,
1266,
1626,
29901,
29871,
29906,
29900,
29906,
29906,
... |
inqbus.lidar.components/src/inqbus/lidar/components/params.py | sandrarum/inqbus.lidar | 0 | 152970 | <reponame>sandrarum/inqbus.lidar
# Params change with every run of the application and will be changed by the UI
MEASUREMENT_ID = ''
COMMENT = 'preliminary data'
SONDE_NAME = '2015083012lin.txt'
OVL_FILES = ['15083000_607.dat']
POLLY_FILES = ['2015_05_01_Fri_DWD_00_03_31.nc']
| [
1,
529,
276,
1112,
420,
29958,
29879,
392,
13678,
398,
29914,
262,
29939,
8262,
29889,
29880,
333,
279,
13,
29937,
1459,
2232,
1735,
411,
1432,
1065,
310,
278,
2280,
322,
674,
367,
3939,
491,
278,
3740,
13,
13,
2303,
3289,
11499,
1378... |
src/pydap/responses/version.py | Juanlu001/pydap | 83 | 94532 | <reponame>Juanlu001/pydap<filename>src/pydap/responses/version.py
"""Response with information about pydap version."""
import sys
from six import text_type
from webob import Response
from json import dumps
from pkg_resources import iter_entry_points
from ..lib import __version__, __dap__
class VersionResponse(obje... | [
1,
529,
276,
1112,
420,
29958,
29967,
12323,
6092,
29900,
29900,
29896,
29914,
2272,
29881,
481,
29966,
9507,
29958,
4351,
29914,
2272,
29881,
481,
29914,
26679,
267,
29914,
3259,
29889,
2272,
13,
15945,
29908,
5103,
411,
2472,
1048,
282,
... |
neuroptica/settings.py | bendavidsteel/neuroptica | 161 | 184365 | import numba
import numpy as np
NP_COMPLEX = np.complex128
NUMBA_COMPLEX = numba.complex128
NP_FLOAT = np.float64
NUMBA_FLOAT = numba.float64
| [
1,
1053,
954,
2291,
13,
5215,
12655,
408,
7442,
13,
13,
25500,
29918,
21514,
1307,
29990,
353,
7442,
29889,
19676,
29896,
29906,
29947,
13,
13967,
5688,
29918,
21514,
1307,
29990,
353,
954,
2291,
29889,
19676,
29896,
29906,
29947,
13,
255... |
tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | 2 | 30391 | <filename>tests/micropython/heapalloc_exc_compressed.py
import micropython
# Tests both code paths for built-in exception raising.
# mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format)
# mp_obj_new_exception_msg (decompression can be deferred)
# NameError uses mp_obj_new_exception... | [
1,
529,
9507,
29958,
21150,
29914,
13076,
1336,
1656,
29914,
354,
481,
15956,
29918,
735,
29883,
29918,
510,
13120,
29889,
2272,
13,
5215,
20710,
1336,
1656,
13,
13,
29937,
4321,
29879,
1716,
775,
10898,
363,
4240,
29899,
262,
3682,
29263... |
Pregunta 6.py | gmagannaDevelop/ImagenesTercerParcial | 0 | 190143 | <reponame>gmagannaDevelop/ImagenesTercerParcial
#!/usr/bin/env python
# coding: utf-8
# # Pregunta 6
# (2 puntos) La imagen Ex3Preg6(a).tif muestra una imagen tomada con un microscopio de cultivo de bacterias identificadas por los círculos intensos:
#
# a. (0.5 puntos) Usando una técnica de umbralización global, seg... | [
1,
529,
276,
1112,
420,
29958,
29887,
11082,
9713,
21956,
29914,
1888,
5370,
267,
29911,
261,
2265,
2177,
1455,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
396,
349,... |
viz_funcs.py | cjsmith015/phytochemical-diversity-cannabis | 0 | 34960 | import numpy as np
import pandas as pd
import scipy.stats as scs
import itertools
from collections import defaultdict
import textwrap
import pingouin as pg
from statsmodels.stats.multicomp import pairwise_tukeyhsd
from sklearn.neighbors import NearestNeighbors
from sklearn.decomposition import PCA
from sklearn.cluster... | [
1,
1053,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
4560,
2272,
29889,
16202,
408,
885,
29879,
13,
5215,
4256,
8504,
13,
3166,
16250,
1053,
2322,
8977,
13,
5215,
1426,
6312,
13,
13,
5215,
24543,
283,
262,
408,
23822,
13,... |
QuestionTime/questions/api/permissions.py | pogginicolo98/QuestionTime | 0 | 170789 | from rest_framework import permissions
class IsAuthorOrReadOnly(permissions.BasePermission):
"""
* Everyone can use safe methods ('GET', 'HEAD', 'OPTIONS')
* Users can write data (create, update, ecc..) only for their own Question instances.
"""
def has_object_permission(self, request, view, obj)... | [
1,
515,
1791,
29918,
4468,
1053,
11239,
13,
13,
13,
1990,
1317,
13720,
2816,
6359,
11730,
29898,
17858,
6847,
29889,
5160,
27293,
1125,
13,
1678,
9995,
13,
1678,
334,
7569,
650,
508,
671,
9109,
3519,
6702,
7194,
742,
525,
23252,
742,
... |
app/api/data/service.py | nccr-itmo/FedotWeb | 1 | 39659 | from pathlib import Path
from typing import List, Optional, Tuple
from app.api.meta.service import task_type_from_id
from fedot.core.data.data import DataTypesEnum, InputData
from fedot.core.repository.tasks import Task, TaskParams, TsForecastingParams
from flask import current_app
from utils import project_root
defa... | [
1,
515,
2224,
1982,
1053,
10802,
13,
3166,
19229,
1053,
2391,
29892,
28379,
29892,
12603,
552,
13,
13,
3166,
623,
29889,
2754,
29889,
7299,
29889,
5509,
1053,
3414,
29918,
1853,
29918,
3166,
29918,
333,
13,
3166,
21242,
327,
29889,
3221,
... |
metasploit_gym/action/exploit.py | phreakAI/MetasploitGym | 6 | 36283 | <reponame>phreakAI/MetasploitGym
"""Exploits currently supported
Straightforward to add more following the basic model presented here
"""
from .action import Exploit
import time
def wait_for_job_completion(job_info, client):
if job_info is not None:
if "error" in job_info:
return
jo... | [
1,
529,
276,
1112,
420,
29958,
561,
276,
557,
23869,
29914,
10095,
4692,
417,
277,
29954,
962,
13,
15945,
29908,
9544,
417,
1169,
5279,
6969,
13,
259,
7357,
523,
11333,
304,
788,
901,
1494,
278,
6996,
1904,
9132,
1244,
13,
15945,
2990... |
docs/examples/container/rancher/search_containers.py | dupontz/libcloud | 1,435 | 46701 | <reponame>dupontz/libcloud<gh_stars>1000+
from libcloud.container.types import Provider
from libcloud.container.providers import get_driver
driver = get_driver(Provider.RANCHER)
connection = driver("MYRANCHERACCESSKEY", "MYRANCHERSECRETKEY",
host="172.30.22.1", port=8080, secure=False)
search_res... | [
1,
529,
276,
1112,
420,
29958,
20908,
609,
29920,
29914,
1982,
9274,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
3166,
4303,
9274,
29889,
7611,
29889,
8768,
1053,
1019,
5489,
13,
3166,
4303,
9274,
29889,
... |
simfile/_private/serializable.py | garcia/simfile | 22 | 22410 | <filename>simfile/_private/serializable.py<gh_stars>10-100
from abc import ABCMeta, abstractmethod
from io import StringIO
from typing import TextIO
class Serializable(metaclass=ABCMeta):
@abstractmethod
def serialize(self, file: TextIO) -> None:
"""
Write the object to provided text file obj... | [
1,
529,
9507,
29958,
3601,
1445,
19891,
9053,
29914,
15550,
13902,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
25638,
1053,
16417,
19346,
29892,
9846,
5696,
13,
3166,
12013,
1053,
... |
dotviewer/graphserver.py | nanjekyejoannah/pypy | 333 | 135382 | #! /usr/bin/env python
"""Graph server.
From the command-line it's easier to use sshgraphserver.py instead of this.
"""
from __future__ import print_function, absolute_import
import os, sys
PARENTDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# make dotviewer importable
sys.path.insert(0, PARENT... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
9527,
1923,
29889,
13,
13,
4591,
278,
1899,
29899,
1220,
372,
29915,
29879,
6775,
304,
671,
13927,
4262,
2974,
29889,
2272,
2012,
310,
445,
29889,
13,
15945,
29... |
pyresttest/test_resttest.py | LGordon2/pyresttest | 0 | 119279 | import json
import math
import string
import yaml
import resttest
import unittest
from resttest import *
class TestRestTest(unittest.TestCase):
""" Tests to test overall REST testing framework, how meta is that? """
def test_analyze_benchmark(self):
""" Test analyzing benchmarks to compute aggregates... | [
1,
1053,
4390,
13,
5215,
5844,
13,
5215,
1347,
13,
5215,
343,
8807,
13,
13,
5215,
1791,
1688,
13,
5215,
443,
27958,
13,
3166,
1791,
1688,
1053,
334,
13,
13,
1990,
4321,
15078,
3057,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
16... |
indra/tests/test_sparser.py | jmuhlich/indra | 0 | 9447 | <reponame>jmuhlich/indra
from indra import sparser
xml_str1 = '''
<article pmid="54321">
<interpretation>
<sentence-text>MEK1 phosphorylates ERK1</sentence-text>
<sem>
<ref category="phosphorylate">
<var name="agent">
<ref category="protein">
<var name="name">MP2K1_HUMAN</var>
... | [
1,
529,
276,
1112,
420,
29958,
29926,
2589,
29882,
1470,
29914,
513,
336,
13,
3166,
1399,
336,
1053,
805,
279,
643,
13,
13,
3134,
29918,
710,
29896,
353,
14550,
13,
29966,
7914,
282,
6563,
543,
29945,
29946,
29941,
29906,
29896,
1013,
... |
30.strings/16.replace.py | robinson-1985/python-zero-dnc | 0 | 35675 | # 15. replace() -> Altera determinado valor de uma string por outro. Troca uma string por outra.
texto = 'vou Treinar todo Dia Python'
print(texto.replace('vou','Vamos'))
print(texto.replace('Python','Algoritmos')) | [
1,
396,
29871,
29896,
29945,
29889,
5191,
580,
1599,
838,
10120,
11806,
912,
16497,
316,
3672,
1347,
1277,
714,
307,
29889,
8316,
1113,
3672,
1347,
1277,
714,
336,
29889,
13,
13,
726,
29877,
353,
525,
29894,
283,
6479,
18220,
10481,
228... |
test/test_fillgaps_lowpass_2d.py | JanisGailis/gridtools | 0 | 131580 | <filename>test/test_fillgaps_lowpass_2d.py
import unittest
import numpy as np
from numpy.testing import assert_almost_equal
import gridtools.gapfilling as gtg
GAP = np.nan
KERNEL = np.ones((3, 3), dtype=np.float64)
class FillgapsLowpass2d(unittest.TestCase):
def _test_fillgaps(self, src, desired_out, desired_... | [
1,
529,
9507,
29958,
1688,
29914,
1688,
29918,
5589,
29887,
2547,
29918,
677,
3364,
29918,
29906,
29881,
29889,
2272,
13,
5215,
443,
27958,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
12655,
29889,
13424,
1053,
4974,
29918,
284,
3242,
29918... |
incremental/pretrain.py | Zhen-Tan-dmml/GFCIL | 7 | 125929 | <filename>incremental/pretrain.py
from __future__ import division
from __future__ import print_function
import time
import argparse
import numpy as np
import os
import torch
import torch.optim as optim
from data_split import *
from models import *
# Training settings
parser = argparse.ArgumentParser()
parser.add_ar... | [
1,
529,
9507,
29958,
25629,
284,
29914,
1457,
14968,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
931,
13,
5215,
1852,
5510,
13,
5215,
12655,
408,
... |
scrape_mars.py | ekohn13/web-scraping-challenge | 0 | 109873 |
from splinter import Browser
from bs4 import BeautifulSoup
from time import sleep
import pandas as pd
import numpy as np
from iteration_utilities import unique_everseen
def init_browser():
executable_path = {"executable_path": "/usr/local/bin/chromedriver"}
return Browser("chrome", **executable_path, he... | [
1,
29871,
13,
13,
13,
3166,
8536,
1639,
1053,
27088,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
3166,
931,
1053,
8709,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
3166,
12541,
29918,
4422,
1907,
1053,
5412,
... |
toontown/town/MMStreet.py | LittleNed/toontown-stride | 3 | 156121 | from toontown.town import Street
class MMStreet(Street.Street):
pass | [
1,
515,
304,
609,
776,
29889,
27734,
1053,
7103,
13,
13,
1990,
28880,
855,
4521,
29898,
855,
4521,
29889,
855,
4521,
1125,
13,
1678,
1209,
2
] |
learning/bs/bs2.py | Nephrin/Tut | 2 | 35956 | <filename>learning/bs/bs2.py
def main():
with open("number.txt", "r") as file:
data = file.read()
data = data.split("\n")
x = [row.split("\t") for row in data[:5]]
print(function(x))
def function(x):
sum=0
for el in x[0:]:
sum += int(el[0])
return sum
if __name__=="__main__":
... | [
1,
529,
9507,
29958,
21891,
29914,
5824,
29914,
5824,
29906,
29889,
2272,
13,
1753,
1667,
7295,
30004,
13,
12,
2541,
1722,
703,
4537,
29889,
3945,
613,
376,
29878,
1159,
408,
934,
29901,
30004,
13,
12,
12,
1272,
353,
934,
29889,
949,
... |
simulation/device/simulated/air_conditioner/__init__.py | LBNL-ETA/LPDM | 2 | 33559 | <filename>simulation/device/simulated/air_conditioner/__init__.py
from air_conditioner import AirConditioner
| [
1,
529,
9507,
29958,
3601,
2785,
29914,
10141,
29914,
3601,
7964,
29914,
1466,
29918,
16122,
261,
29914,
1649,
2344,
26914,
2272,
13,
3166,
4799,
29918,
16122,
261,
1053,
5593,
25255,
261,
13,
2
] |
tests/autoUploadFile.py | brainelectronics/This-project-can-be-used-to-upload-files-of-a-specific-directory-to-a-server-or-OTA-capable-device-v | 1 | 127832 | <filename>tests/autoUploadFile.py
#!/usr/local/bin/python2
# -*- coding: UTF-8 -*-
#
"""
This script will search at the given path, defined in the
config.json file, for files with a specific patter.
This is also defined in the config.json file.
By using the SSH credits defined in the loginData.json file
the specified ... | [
1,
529,
9507,
29958,
21150,
29914,
6921,
17553,
2283,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
29906,
13,
29937,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
13,
... |
py3canvas/tests/shared_brand_configs.py | tylerclair/py3canvas | 0 | 12303 | <filename>py3canvas/tests/shared_brand_configs.py
"""SharedBrandConfigs API Tests for Version 1.0.
This is a testing template for the generated SharedBrandConfigsAPI Class.
"""
import unittest
import requests
import secrets
from py3canvas.apis.shared_brand_configs import SharedBrandConfigsAPI
from py3canvas.apis.share... | [
1,
529,
9507,
29958,
2272,
29941,
15257,
29914,
21150,
29914,
12366,
29918,
16472,
29918,
2917,
29879,
29889,
2272,
13,
15945,
29908,
21741,
29933,
9502,
3991,
29879,
3450,
4321,
29879,
363,
10079,
29871,
29896,
29889,
29900,
29889,
13,
13,
... |
Project1_Day1_Simple_Name_Generator/name_generator.py | ariv14/python_day1 | 0 | 122333 | <gh_stars>0
#1. Create a greeting for your program.
print("\nSimple Name Generator\n")
#2. Ask the user for the city that they grew up in.
#raw_input() for python v2 , input() for python v3
# Make sure the input cursor shows on a new line
raw_input("Press enter : ")
print("\nSimple Name Generator\n")
city = raw_input("... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29896,
29889,
6204,
263,
1395,
15133,
363,
596,
1824,
29889,
13,
2158,
14182,
29876,
15427,
4408,
3251,
1061,
29905,
29876,
1159,
13,
29937,
29906,
29889,
26579,
278,
1404,
363,
27... |
nifstd/nifstd_tools/ncbigene_slim.py | tmsincomb/pyontutils | 11 | 105660 | #!/usr/bin/env python3
"""
Build lightweight slims from curie lists.
Used for sources that don't have an owl ontology floating.
"""
#TODO consider using some of the code from scr_sync.py???
from pathlib import Path
import requests
from pyontutils.core import createOntology
from pyontutils.utils import chunk_li... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
13,
1678,
8878,
3578,
7915,
2243,
9893,
515,
3151,
347,
8857,
29889,
13,
1678,
501,
8485,
363,
8974,
393,
1016,
29915,
29873,
505,
385,
8152,
29880,
4625,
3002,
16... |
format_output_ios.py | eslimaf/poormans_localization | 0 | 1600149 | <filename>format_output_ios.py
#!/usr/bin/python3
import os
import errno
import plistlib
from utils import resource_path , Logger, LogLevel
OUTPUT_DIR = 'ios'
DIR_LPROJ = '.lproj'
EN_LANG = 'en'
FR_LANG = 'fr'
STRINGS_FILENAME = 'Localizable.strings'
TRANSLATABLE_FALSE = 'translatable_false'
EXCLUSION_ID = ''
class ... | [
1,
529,
9507,
29958,
4830,
29918,
4905,
29918,
2363,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29941,
13,
5215,
2897,
13,
5215,
4589,
1217,
13,
5215,
715,
391,
1982,
13,
3166,
3667,
29879,
1053,
6503,
29918,
2084,
1... |
tool/migrations/0014_alter_recruiter_level.py | borislavstoychev/RecrutmentTool | 0 | 194172 | # Generated by Django 3.2.6 on 2021-10-28 11:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tool', '0013_auto_20210917_1621'),
]
operations = [
migrations.AlterField(
model_name='recruiter',
name='level',
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29896,
29900,
29899,
29906,
29947,
29871,
29896,
29896,
29901,
29945,
29900,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
run_reranker.py | LibRerank-Community/Lierank | 46 | 122410 | import os
# from sklearn.metrics import log_loss, roc_auc_score
import time
from librerank.utils import *
from librerank.reranker import *
from librerank.rl_reranker import *
def eval(model, data, l2_reg, batch_size, isrank, metric_scope, _print=False):
preds = []
# labels = []
losses = []
data_size... | [
1,
1053,
2897,
13,
29937,
515,
2071,
19668,
29889,
2527,
10817,
1053,
1480,
29918,
6758,
29892,
696,
29883,
29918,
14766,
29918,
13628,
13,
5215,
931,
13,
13,
3166,
619,
1182,
261,
804,
29889,
13239,
1053,
334,
13,
3166,
619,
1182,
261,... |
tests/test_objects.py | pfackeldey/awkward-array | 0 | 1617036 | #!/usr/bin/env python
# Copyright (c) 2019, IRIS-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list o... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
29892,
23292,
3235,
29899,
9606,
29925,
13,
29937,
2178,
10462,
21676,
29889,
13,
29937,
29871,
13,
29937,
436... |
tests/test_encode.py | dveselov/beretta | 2 | 147381 | <reponame>dveselov/beretta
import re
import beretta
import unittest
import datetime
class EncodeTestCase(unittest.TestCase):
def test_encode_compressed(self):
bytes = beretta.encode((':call', 'Module', 'function', []) * 4, compressed=6)
self.assertTrue(bytes.startswith(b'\x83P'))
def test_encode_tuple(s... | [
1,
529,
276,
1112,
420,
29958,
29881,
1960,
295,
586,
29914,
495,
11300,
13,
5215,
337,
13,
5215,
7655,
11300,
13,
5215,
443,
27958,
13,
5215,
12865,
13,
13,
13,
1990,
1174,
401,
3057,
8259,
29898,
348,
27958,
29889,
3057,
8259,
1125,... |
Kinkajou/python/common/aliyun.py | app858216291-github/Kinkajou-shop | 0 | 174850 | <filename>Kinkajou/python/common/aliyun.py
# -*- coding: utf-8 -*-
import oss2,os
import datetime,random
from werkzeug.utils import secure_filename
from setting import Aliyun
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest
AccessKeyID = Aliyun.AccessKeyID
AccessKey... | [
1,
529,
9507,
29958,
29968,
682,
1175,
283,
29914,
4691,
29914,
9435,
29914,
2606,
29891,
348,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
5215,
288,
893,
29906,
29892,
359,
... |
python/motorModule.py | jhol0613/pacbot2018 | 0 | 59877 | <filename>python/motorModule.py
#!/usr/bin/env python3
import os
import robomodules as rm
from messages import *
import RPi.GPIO as GPIO
import time
import signal
import sys
ADDRESS = os.environ.get("BIND_ADDRESS","localhost")
PORT = os.environ.get("BIND_PORT", 11293)
FREQUENCY = 0
LEFT_PWM = 32
LEFT_1 = 36
LEFT_2... | [
1,
529,
9507,
29958,
4691,
29914,
14817,
272,
7355,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
2897,
13,
5215,
10832,
290,
397,
2540,
408,
20241,
13,
3166,
7191,
1053,
334,
13,
13,
5215,
... |
setup.py | zojabutenko/palmetto-py | 0 | 63779 | <gh_stars>0
from distutils.core import setup
setup(
name = 'palmettopy',
packages = ['palmettopy'], # this must be the same as the name above
version = 'v3.2',
description = 'Palmetto Python Interface',
author = '<NAME>',
author_email = '<EMAIL>',
url = 'https://github.com/earthquakesan/palmetto-py', # us... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
1320,
13239,
29889,
3221,
1053,
6230,
13,
14669,
29898,
13,
29871,
1024,
353,
525,
7830,
29885,
1803,
2270,
742,
13,
29871,
9741,
353,
6024,
7830,
29885,
1803,
2270,
7464,
396,
44... |
fluiddb/scripts/deployment.py | fluidinfo/fluiddb | 3 | 163689 | <gh_stars>1-10
from ConfigParser import RawConfigParser
from datetime import datetime
from getpass import getpass
import logging
import os
import time
import random
import crypt
from boto.ec2.connection import EC2Connection
from boto.exception import EC2ResponseError
from fabric.context_managers import cd, settings
fr... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
12782,
11726,
1053,
22038,
3991,
11726,
13,
3166,
12865,
1053,
12865,
13,
3166,
679,
3364,
1053,
679,
3364,
13,
5215,
12183,
13,
5215,
2897,
13,
5215,
931,
13... |
games/OthelloLogic.py | Matioz/AlphaZero | 1 | 1612502 | <filename>games/OthelloLogic.py
'''
Author: <NAME>
Date: Feb 8, 2008.
Board class.
Board data:
1=white, -1=black, 0=empty
first dim is column , 2nd is row:
pieces[1][7] is the square in column 2,
at the opposite end of the board in row 8.
Squares are stored and manipulated as (x,y) tuples.
x is the column... | [
1,
529,
9507,
29958,
29887,
1280,
29914,
29949,
386,
3156,
3403,
293,
29889,
2272,
13,
12008,
13,
13720,
29901,
529,
5813,
29958,
13,
2539,
29901,
26319,
29871,
29947,
29892,
29871,
29906,
29900,
29900,
29947,
29889,
13,
28397,
770,
29889,
... |
douban.movie_requests.py | willcod/requests_example | 0 | 34586 | <gh_stars>0
import requests, json
from bs4 import BeautifulSoup
hds=[{'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'},\
{'User-Agent':'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11'},\
{'User-Agent': 'Mozill... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
7274,
29892,
4390,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
13,
29882,
6289,
11759,
10998,
2659,
29899,
19661,
22099,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
... |
Clusters/GRAMS/programs.py | anywallsocket/Fancy | 1 | 129565 | <filename>Clusters/GRAMS/programs.py
#!/usr/bin/env python3
#Mini Library of useful functions -- most algorithms are in-place
import numpy as np
from scipy.stats import gaussian_kde
import matplotlib.pyplot as plt
from ase.db import connect
from amptorch import AtomsTrainer
from amptorch import AMPtorch
import torch
... | [
1,
529,
9507,
29958,
6821,
504,
414,
29914,
29954,
4717,
4345,
29914,
8860,
29879,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
29924,
2172,
9538,
310,
5407,
3168,
1192,
1556,
14009,
526,
297,
298... |
util/config/validators/test/test_validate_bitbucket_trigger.py | giuseppe/quay | 2,027 | 4082 | import pytest
from httmock import urlmatch, HTTMock
from util.config import URLSchemeAndHostname
from util.config.validator import ValidatorContext
from util.config.validators import ConfigValidationException
from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator
from test.fixtures i... | [
1,
1053,
11451,
1688,
13,
13,
3166,
1143,
17640,
1053,
3142,
4352,
29892,
3154,
29911,
18680,
13,
13,
3166,
3667,
29889,
2917,
1053,
3988,
4504,
2004,
2855,
8514,
978,
13,
3166,
3667,
29889,
2917,
29889,
3084,
1061,
1053,
15758,
1061,
2... |
Python 100 Days 100 Project /09_blind-auction/09_blind-auction.py | akhmadzaki/Programming | 1 | 81829 | <gh_stars>1-10
import os
logo = '''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
14569,
353,
14550,
13,
462,
308,
903,
14365,
1649,
13,
462,
308,
320,
308,
847,
13,
462,
3986,
1723,
7652,
22359,
29898,
13,
462,
3986,
891,
15945... |
webapps/website/urls.py | freewayz/django-starter | 2 | 178916 | <gh_stars>1-10
from django.conf.urls import url
from webapps.website import views
urlpatterns = [
url(r'^$', view=views.LandingPageView.as_view(), name="home")
] | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
1856,
13371,
29889,
22942,
1053,
8386,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
3142,
29898,
29878... |
scripts/release-notes.py | centerorbit/cockroach | 1 | 133279 | <reponame>centerorbit/cockroach<filename>scripts/release-notes.py
#! /usr/bin/env python3
#
# Show a compact release note summary of a range of Git commits.
#
# Example use: release-notes.py --help
#
# Note: the first commit in the range is excluded!
#
# Requires:
# - GitPython https://pypi.python.org/pypi/GitPython/... | [
1,
529,
276,
1112,
420,
29958,
5064,
272,
2966,
29914,
24956,
307,
496,
29966,
9507,
29958,
16713,
29914,
14096,
29899,
16953,
29889,
2272,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
13,
29937,
7704,
26... |
tests/elf/test_section_header.py | drazisil/dasm-python | 1 | 147010 | <filename>tests/elf/test_section_header.py
from dasm.elf.section_header import parse_section_header, get_sh_type
def test_parse_section_header():
bytes = (b'\x01\x02\x03\x04\x05\x02\x07\x03'
+ b'\x09\x0A\x0B\x0c\x0d\x0e\x0f'
+ b'\x10\x11\x12\x03\x00\x15\x15'
+ b'\x15\x15\x15... | [
1,
529,
9507,
29958,
21150,
29914,
761,
29914,
1688,
29918,
2042,
29918,
6672,
29889,
2272,
13,
3166,
1697,
29885,
29889,
761,
29889,
2042,
29918,
6672,
1053,
6088,
29918,
2042,
29918,
6672,
29892,
679,
29918,
845,
29918,
1853,
13,
13,
13... |
hexrd/distortion/distortionabc.py | glemaitre/hexrd | 27 | 6469 | import abc
class DistortionABC(metaclass=abc.ABCMeta):
maptype = None
@abc.abstractmethod
def apply(self, xy_in):
"""Apply distortion mapping"""
pass
@abc.abstractmethod
def apply_inverse(self, xy_in):
"""Apply inverse distortion mapping"""
pass
| [
1,
1053,
25638,
13,
13,
13,
1990,
6652,
441,
291,
19658,
29898,
2527,
562,
605,
29922,
10736,
29889,
19658,
19346,
1125,
13,
13,
1678,
611,
415,
668,
353,
6213,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3394,
29898,... |
util/rooms/roads.py | Polygon-MUD/mud_build | 0 | 50145 | <reponame>Polygon-MUD/mud_build
from django.contrib.auth.models import User
from adventure.models import Player, Room
p_dirt_path = Room(title="Dirt Path", description="Easy going path to a variety of adventures")
p_mushroom_road = Room(title="Mushroom Road", description="The road to meet Mario")
p_desert_path = Ro... | [
1,
529,
276,
1112,
420,
29958,
7713,
17125,
29899,
29924,
15789,
29914,
29885,
566,
29918,
4282,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
17623,
545,
29889,
9794,
1053,
14574,
29892,
25114,
13,
13,
13,... |
PiCN/Layers/ChunkLayer/Chunkifyer/test/test_SimpleContentChunkifyer.py | NikolaiRutz/PiCN | 0 | 53185 | """Test for Simple Content Chunkifyer"""
import unittest
from PiCN.Layers.ChunkLayer.Chunkifyer import SimpleContentChunkifyer
from PiCN.Packets import Content, Name
class test_SimpleContentChunkifyer(unittest.TestCase):
def setUp(self):
self.chunkifyer = SimpleContentChunkifyer()
def tearDown(sel... | [
1,
9995,
3057,
363,
12545,
10576,
678,
2960,
1598,
261,
15945,
29908,
13,
13,
5215,
443,
27958,
13,
13,
3166,
7362,
13778,
29889,
29931,
388,
414,
29889,
1451,
2960,
14420,
29889,
1451,
2960,
1598,
261,
1053,
12545,
3916,
1451,
2960,
15... |
wrappers/Python/sbmlsolver/__init__.py | gitter-badger/sbmlsolver | 0 | 18129 | <reponame>gitter-badger/sbmlsolver<gh_stars>0
"""
The LibRoadRunner SBML Simulation Engine, (c) 2009-2014 <NAME> and <NAME>
LibRoadRunner is an SBML JIT compiler and simulation engine with a variety of analysis
functions. LibRoadRunner is a self contained library which is designed to be integrated
into existing simula... | [
1,
529,
276,
1112,
420,
29958,
29887,
5171,
29899,
12313,
914,
29914,
20778,
828,
2929,
369,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
1576,
8153,
9588,
328,
16802,
317,
29933,
1988,
3439,
2785,
10863,
29892,
313... |
gpu_info/utils.py | cnstark/gputasker | 35 | 132562 | <gh_stars>10-100
import os
import subprocess
import json
import logging
from .models import GPUServer, GPUInfo
task_logger = logging.getLogger('django.task')
def ssh_execute(host, user, exec_cmd, port=22, private_key_path=None):
exec_cmd = exec_cmd.replace('\r\n', '\n').replace('$', '\\$')
if exec_cmd[-1] !... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
5215,
4390,
13,
5215,
12183,
13,
13,
3166,
869,
9794,
1053,
22796,
6004,
29892,
22796,
3401,
13,
13,
7662,
29918... |
official/resnet/cifar10_main.py | shawdm/experiments-tensorflow-models | 1 | 114834 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
450,
323,
6073,
17907,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
15... |
src/describe_variable/tools.py | MikeMajara/describe-variable | 1 | 1616765 | from difflib import ndiff
from .describer import Describer
START_INDENT = 0
DEFAULT_DEPTH = 0
DEFAULT_SPACES = 4
DEFAULT_PRINT_VALUES = True
DEFAULT_PRINT_COMPONENTS_MAX = 4
DEFAULT_PRINT_COMPONENTS_TYPE = True
def describe(v: any,
depth=DEFAULT_DEPTH,
spaces=DEFAULT_SPACES,
i... | [
1,
515,
2923,
1982,
1053,
29871,
299,
2593,
13,
3166,
869,
2783,
699,
495,
1053,
20355,
495,
13,
13,
25826,
29918,
22255,
3919,
353,
29871,
29900,
13,
13,
23397,
29918,
2287,
29925,
4690,
353,
29871,
29900,
13,
23397,
29918,
5550,
2477,... |
tests/api_client/test_json_parser.py | saxsys/flask-meetup-data-scraper | 1 | 193229 | <gh_stars>1-10
import time
from datetime import datetime
from time import sleep
import pytest
from meetup_search.meetup_api_client.exceptions import (
EventAlreadyExists,
InvalidResponse,
)
from meetup_search.meetup_api_client.json_parser import (
get_category_from_response,
get_event_from_response,
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
931,
13,
3166,
12865,
1053,
12865,
13,
3166,
931,
1053,
8709,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
5870,
786,
29918,
4478,
29889,
1004,
300,
786,
29918,
... |
jazzpos/admin.py | AhmadManzoor/jazzpos | 5 | 5244 | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django_tablib.admin import TablibAdmin
from jazzpos.models import Customer, Patient, Store, CustomerType, StoreSettings
from jazzpos.models import UserProfile
class CustomerAdmin(TablibAd... | [
1,
515,
9557,
29889,
21570,
1053,
4113,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
6406,
1053,
4911,
12754,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
13,
3166,
9557,
29918,
3891,
1982,
29889,
6406,
105... |
tscv.py | 0x0L/tscv | 3 | 125781 | <gh_stars>1-10
import numpy as np
class Sequencer(object):
def __init__(self, n, lookback=1, lookforward=1, delay=0, step=1, squeeze=True):
"""Build sequence-liked features and targets indices for timeseries
Idx / Time 0.......................................................n
1 ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12655,
408,
7442,
13,
13,
1990,
922,
339,
22687,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
302,
29892,
1106,
1627,
29922,
29896,
29892,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.