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 |
|---|---|---|---|---|---|
linkedin/__init__.py | ptwobrussell/python-linkedin | 6 | 88616 | <filename>linkedin/__init__.py
__version__ = '2.0'
VERSION = tuple(map(int, __version__.split('.')))
| [
1,
529,
9507,
29958,
2324,
287,
262,
29914,
1649,
2344,
26914,
2272,
13,
1649,
3259,
1649,
353,
525,
29906,
29889,
29900,
29915,
13,
16358,
353,
18761,
29898,
1958,
29898,
524,
29892,
4770,
3259,
26914,
5451,
877,
6169,
4961,
13,
2
] |
day15p1.py | minddrive/adventofcode2017 | 0 | 79774 | <gh_stars>0
#!/usr/bin/env python3
def next_nums():
A = 703
B = 516
for _ in range(40000000):
A *= 16807
A %= 2147483647
B *= 48271
B %= 2147483647
yield (A, B)
count = 0
for newA, newB in next_nums():
if newA % 65536 == newB % 65536:
count += 1
pri... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
13,
1753,
2446,
29918,
1949,
29879,
7295,
13,
1678,
319,
353,
29871,
29955,
29900,
29941,
13,
1678,
350,
353,
29871,
2... |
examples/optimization_applications/search_space_example.py | nevinadalal/Hyperactive | 4 | 59738 | <reponame>nevinadalal/Hyperactive<filename>examples/optimization_applications/search_space_example.py
"""
Hyperactive is very versatile, because it can handle not just numerical or
string variables in the search space, but also functions. If you want to
search for the best list, numpy array, dataframed or class you ca... | [
1,
529,
276,
1112,
420,
29958,
484,
3845,
27283,
284,
29914,
26322,
546,
4925,
29966,
9507,
29958,
19057,
29914,
20640,
2133,
29918,
932,
5795,
29914,
4478,
29918,
3493,
29918,
4773,
29889,
2272,
13,
15945,
29908,
13,
26322,
546,
4925,
33... |
code/improved method/SpatialColumnDetection.py | astrob3rry/spatial-data-profiling | 0 | 40300 | <filename>code/improved method/SpatialColumnDetection.py
import pandas as pd
import sys, os
import numpy as np
from snapy import MinHash, LSH
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import random
import re
import Settings as Settings
from pyspark.sql import SparkSession
spark = SparkSession.builder... | [
1,
529,
9507,
29958,
401,
29914,
326,
771,
1490,
1158,
29914,
29903,
5031,
616,
4409,
29928,
2650,
428,
29889,
2272,
13,
5215,
11701,
408,
10518,
13,
5215,
10876,
29892,
2897,
13,
5215,
12655,
408,
7442,
13,
3166,
15101,
29891,
1053,
30... |
openstates/openstates-master/openstates/de/legislators.py | Jgorsick/Advocacy_Angular | 0 | 6029 | import re
import lxml.html
from openstates.utils import LXMLMixin
from billy.scrape.legislators import LegislatorScraper, Legislator
class DELegislatorScraper(LegislatorScraper,LXMLMixin):
jurisdiction = 'de'
def scrape(self, chamber, term):
url = {
'upper': 'http://legis.delaware.gov/l... | [
1,
1053,
337,
13,
5215,
301,
3134,
29889,
1420,
13,
3166,
1722,
28631,
29889,
13239,
1053,
365,
9165,
29924,
861,
262,
13,
13,
3166,
289,
9403,
29889,
1557,
336,
412,
29889,
1397,
7497,
4097,
1053,
18991,
1061,
4421,
336,
546,
29892,
... |
tests/test_handler.py | CJSoldier/webssh | 13 | 4247 | <filename>tests/test_handler.py
import unittest
import paramiko
from tornado.httputil import HTTPServerRequest
from tests.utils import read_file, make_tests_data_path
from webssh.handler import MixinHandler, IndexHandler, InvalidValueError
class TestMixinHandler(unittest.TestCase):
def test_get_real_client_addr... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
13789,
29889,
2272,
13,
5215,
443,
27958,
13,
5215,
1828,
10349,
13,
13,
3166,
10146,
912,
29889,
691,
649,
309,
1053,
7331,
6004,
3089,
13,
3166,
6987,
29889,
13239,
1053,
1303,
29918,
14... |
chap3-3.py | mikidake/Ex3 | 0 | 27253 | <gh_stars>0
# Chapter3 Ex.3)
# Modification of 'Guess My Number'
# Guess My Number
#
# The computer picks a random number between 1 and 100
# The player tries to guess it and the computer lets
# the player know if the guess is too high, too low
# or right on the money
# The player can try to guess up to three... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
23040,
29941,
1222,
29889,
29941,
8443,
13,
29937,
3382,
2450,
310,
525,
9485,
404,
1619,
9681,
29915,
30004,
13,
30004,
13,
29937,
2088,
404,
1619,
9681,
30004,
13,
29937,
30004,
... |
tests/dce_models/test_dibem.py | michaelberks/madym_python | 0 | 146402 | '''
Test file for the dce_models sub-module
'''
import pytest
import os
import sys
import numpy as np
from tempfile import TemporaryDirectory
sys.path.insert(0,
os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'src')))
#---------------------------------------------------------------------------... | [
1,
14550,
13,
3057,
934,
363,
278,
270,
346,
29918,
9794,
1014,
29899,
5453,
13,
12008,
13,
5215,
11451,
1688,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
12655,
408,
7442,
13,
3166,
5694,
1445,
1053,
6789,
1971,
653,
9882,
13,
9675,
... |
hkl/user.py | NSLS-II/hklpy | 1 | 168409 | <filename>hkl/user.py
"""
Provide a simplified UI for hklpy diffractometer users.
The user must define a diffractometer instance, then
register that instance here calling `select_diffractometer(instance)`.
FUNCTIONS
.. autosummary::
~cahkl
~cahkl_table
~calc_UB
~list_samples
~new_sample
~or_... | [
1,
529,
9507,
29958,
29882,
6321,
29914,
1792,
29889,
2272,
13,
15945,
29908,
13,
1184,
29894,
680,
263,
20875,
3740,
363,
298,
6321,
2272,
2923,
1461,
8328,
4160,
29889,
13,
13,
1576,
1404,
1818,
4529,
263,
2923,
1461,
8328,
2777,
2989... |
Network_and_802.11/scapy/check_if_rogue_dhcp.py | hacky1997/My-Gray-Hacker-Resources | 14 | 128805 | <gh_stars>10-100
#!/usr/bin/env python
from scapy.all import *
import threading
from colorama import Back
from sys import argv
from time import sleep
global lock
lock = threading.Lock()
def BootpPacket():
fm, hw = get_if_raw_hwaddr(scapy.all.conf.iface)
ether=Ether(dst="ff:ff:ff:ff:ff:ff")
ip=IP(src="0.0... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
3166,
885,
27580,
29889,
497,
1053,
334,
13,
5215,
3244,
292,
13,
3166,
2927,
3304,
1053,
... |
logistic_regression/logistic_regression.py | suitnecniv/dota2 | 127 | 194928 | <filename>logistic_regression/logistic_regression.py
import numpy as np
import pickle, os
NUM_HEROES = 108
NUM_FEATURES = NUM_HEROES * 2
class D2LogisticRegression:
def __init__(self, model_root='logistic_regression'):
model_path = os.path.join(model_root, 'model.pkl')
with open(model_path, 'r') a... | [
1,
529,
9507,
29958,
1188,
4695,
29918,
276,
11476,
29914,
1188,
4695,
29918,
276,
11476,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
5215,
5839,
280,
29892,
2897,
13,
13,
13967,
29918,
4448,
29949,
2890,
353,
29871,
29896,
29900,
29947,... |
main/faq.py | vanessa-bell/hd-kiosk-v2 | 0 | 69045 | <gh_stars>0
import flask
import flask_wtf
import wtforms
import auth
import model
import util
from google.appengine.ext import ndb
from main import app
class FaqUpdateForm(flask_wtf.FlaskForm):
question = wtforms.TextAreaField('Question', [wtforms.validators.required()])
answer = wtforms.TextAreaField('Answer', ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
29784,
13,
5215,
29784,
29918,
29893,
13264,
13,
5215,
281,
29873,
9514,
13,
13,
5215,
4817,
13,
5215,
1904,
13,
5215,
3667,
13,
3166,
5386,
29889,
932,
10599,
29889,
1062,
1053,
... |
morsecodetoolkit/data/__init__.py | 1-800-BAD-CODE/MorseCodeToolkit | 2 | 95666 | <filename>morsecodetoolkit/data/__init__.py
from morsecodetoolkit.data.synthetic_dataset import SyntheticMorseDataset
__all__ = [
"SyntheticMorseDataset"
]
| [
1,
529,
9507,
29958,
12257,
3471,
397,
300,
1507,
7354,
29914,
1272,
29914,
1649,
2344,
26914,
2272,
13,
13,
3166,
3036,
3471,
397,
300,
1507,
7354,
29889,
1272,
29889,
19274,
386,
7492,
29918,
24713,
1053,
10829,
386,
7492,
28581,
344,
... |
my_studyguide/math1.py | worldwidekatie/study_guide | 0 | 135999 | <filename>my_studyguide/math1.py
class Math1():
def __init__(self):
self.my_num1 = 10
self.my_num2 = 20
def addition(self):
return self.my_num1 + self.my_num2
def subtraction(self):
return self.my_num1 - self.my_num2
class Math_Plus(Math1):
def __init__(self, my_n... | [
1,
529,
9507,
29958,
1357,
29918,
18082,
29891,
13075,
29914,
755,
29896,
29889,
2272,
13,
13,
13,
1990,
5792,
29896,
7295,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
1357,
29918,
1949,
29896,
353,
29871,
2... |
txnintegration/stats_utils.py | ajenie/sawtooth-validator | 4 | 1611745 | <filename>txnintegration/stats_utils.py
# Copyright 2016 Intel Corporation
#
# 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 requir... | [
1,
529,
9507,
29958,
7508,
29876,
27925,
29914,
16202,
29918,
13239,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29953,
18555,
15025,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906... |
25/02/getattr.py | pylangstudy/201707 | 0 | 100962 | <filename>25/02/getattr.py
# getattr(object, name[, default])
class C:
def A(self): pass
print(getattr(C, 'A'))
| [
1,
529,
9507,
29958,
29906,
29945,
29914,
29900,
29906,
29914,
657,
5552,
29889,
2272,
13,
29937,
679,
5552,
29898,
3318,
29892,
1024,
21939,
2322,
2314,
13,
1990,
315,
29901,
13,
1678,
822,
319,
29898,
1311,
1125,
1209,
13,
2158,
29898,
... |
handybelt/latex2img/__main__.py | charleskawczynski/handybelt | 0 | 101608 | <gh_stars>0
import argparse
import os
import subprocess
def main(**kwargs):
filename = kwargs['filename']
dpi = kwargs['dpi']
filename = filename.replace('/',os.sep) if '\\'==os.sep else filename.replace('\\',os.sep)
path = os.path.dirname(filename)
path = '.' if path=='' else path
p, ext = os.path.sp... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
1852,
5510,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
13,
1753,
1667,
29898,
1068,
19290,
1125,
13,
29871,
10422,
353,
9049,
5085,
1839,
9507,
2033,
13,
29871,
270,
1631,
418,
3... |
securitybot/loader.py | gyrospectre/securitybot | 3 | 125881 | import yaml
import logging
from importlib import import_module
from securitybot.auth.auth import BaseAuthClient
from securitybot.chat.chat import BaseChatClient
from securitybot.db.database import BaseDbClient
from securitybot.secretsmgmt.secretsmgmt import BaseSecretsClient
from securitybot.tasker import Tasker
... | [
1,
1053,
343,
8807,
13,
5215,
12183,
13,
13,
3166,
1053,
1982,
1053,
1053,
29918,
5453,
13,
13,
3166,
6993,
7451,
29889,
5150,
29889,
5150,
1053,
7399,
6444,
4032,
13,
13,
3166,
6993,
7451,
29889,
13496,
29889,
13496,
1053,
7399,
1451,
... |
project/test.py | Lucklyric/hydra-pytorch-lightning-seed | 4 | 157194 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : test.py
# Author: Alvin(<NAME> <<EMAIL>>
# Date : 02.05.2021
import json
import logging
import hydra
import pytorch_lightning as pl
import torch
from omegaconf import DictConfig, OmegaConf
log = logging.getLogger(__name__)
@hydra.main(config_path='config', ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3497,
29871,
584,
1243,
29889,
2272,
13,
29937,
13361,
29901,
838,
3845,
29898,
29966,
581... |
app/models.py | pitrho/motorsports-historic-data-api | 5 | 60144 | from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.dialects.postgresql import HSTORE
from sqlalchemy.ext.mutable import MutableDict
db = SQLAlchemy()
PersonType = db.Enum('driver', 'team-owner', 'crew-chief', 'vehicle-owner', 'team-principal',
'technical-chief', 'race-engineer', name='p... | [
1,
515,
29784,
29889,
1062,
29889,
2850,
284,
305,
6764,
1053,
3758,
2499,
305,
6764,
13,
3166,
4576,
284,
305,
6764,
29889,
15321,
781,
29879,
29889,
29272,
1053,
379,
1254,
29949,
1525,
13,
3166,
4576,
284,
305,
6764,
29889,
1062,
298... |
lib/harm_plot.py | pnlbwh/multi-shell-dMRIharmonization | 4 | 33402 | #!/usr/bin/env python
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pandas as pd
from conversion import read_imgs_masks
from os.path import isfile, basename
XERR=0.1
ELINEWIDTH=3
CAPSIZE=5
CAPTHICK=3
FMT='cD'
def harm_plot(ydata, labels, outPrefix, bshell_b):
'... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
13,
2922,
17357,
29889,
1509,
877,
29909,
1505,
1495,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
11701,
408,
10518,
13,
3166... |
sparse_decomposition/decomposition/decomposition.py | bdpedigo/sparse_matrix_analysis | 2 | 44909 | # Some of the implementation inspired by:
# REF: https://github.com/fchen365/epca
import time
from abc import abstractmethod
import numpy as np
from factor_analyzer import Rotator
from sklearn.base import BaseEstimator
from sklearn.preprocessing import StandardScaler
from sklearn.utils import check_array
from graspo... | [
1,
396,
3834,
310,
278,
5314,
20603,
491,
29901,
13,
29937,
5195,
29943,
29901,
2045,
597,
3292,
29889,
510,
29914,
29888,
2724,
29941,
29953,
29945,
29914,
1022,
1113,
13,
13,
5215,
931,
13,
3166,
25638,
1053,
9846,
5696,
13,
13,
5215,... |
PyUdemy/Day17/Start.py/quiz-game/main.py | JoseArtur/phyton-exercices | 0 | 161139 | <gh_stars>0
from question_model import Question
from data import question_data
from quiz_brain import QuizBrain
question_bank = []
for i in question_data:
question = Question(i["text"], i["answer"])
question_bank.append(question)
quiz = QuizBrain(question_bank)
while quiz.still_has_question() :
quiz.next_... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
1139,
29918,
4299,
1053,
894,
13,
3166,
848,
1053,
1139,
29918,
1272,
13,
3166,
439,
466,
29918,
2634,
262,
1053,
751,
466,
22097,
13,
12470,
29918,
9157,
353,
5159,
13,
1454,
4... |
tools/find-broken-edition-parm.py | ctheune/assembly-cms | 0 | 24023 | # Copyright (c) 2010 gocept gmbh & co. kg
# See also LICENSE.txt
import zope.traversing.api
stack = [root['summer10']]
while stack:
page = stack.pop()
for edition in page.editions:
for tag in edition.parameters:
if not ':' in tag:
print zope.traversing.api.getPath(edition)... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29900,
748,
1547,
330,
8337,
29882,
669,
1302,
29889,
12118,
13,
29937,
2823,
884,
365,
2965,
1430,
1660,
29889,
3945,
13,
13,
5215,
503,
2300,
29889,
3018,
874,
292,
2... |
src/extract_bcs_crops.py | pmh47/textured-mesh-gen | 30 | 113420 | <reponame>pmh47/textured-mesh-gen<filename>src/extract_bcs_crops.py
import os
import sys
from itertools import islice, count
from collections import deque
import skvideo.io
import cv2
from crop_extraction_common import *
from bcs_common import *
step = 10
median_count = 25 # should be odd; number of stepped-frames... | [
1,
529,
276,
1112,
420,
29958,
3358,
29882,
29946,
29955,
29914,
726,
2955,
29899,
4467,
29882,
29899,
1885,
29966,
9507,
29958,
4351,
29914,
21111,
29918,
29890,
2395,
29918,
24077,
567,
29889,
2272,
13,
13,
5215,
2897,
13,
5215,
10876,
... |
api/recomend/urls.py | JCTec/Recomender | 0 | 1617604 | from django.urls import path
from django.conf.urls import url
from .views import *
urlpatterns = [
path('questions/', QuestionAPI.as_view()),
path('answers/', AnswersAPI.as_view()),
]
| [
1,
515,
9557,
29889,
26045,
1053,
2224,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
869,
7406,
1053,
334,
13,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
2224,
877,
2619,
29914,
742,
894,
8787,
29889,
294,
299... |
acoustic_scene_classification/test.py | GT-KIM/specmix | 2 | 65361 | import numpy as np
import matplotlib.pyplot as plt
augment_method = "Specaugment"
d = np.load("result_{}/curve.npz".format(augment_method))
loss = d['loss']
acc = d['acc']
best_acc = d['best_acc']
print(best_acc)
plt.plot(loss)
plt.show()
plt.clf()
plt.plot(acc)
plt.show()
plt.clf() | [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
2987,
358,
29918,
5696,
353,
376,
10299,
2987,
358,
29908,
13,
13,
29881,
353,
7442,
29889,
1359,
703,
2914,
648,
6822,
2764,
345,
29889,
9302,
29920,
... |
pyhmy/rpc/request.py | difengJ/pyhmy | 37 | 12180 | import json
import requests
from .exceptions import (
RequestsError,
RequestsTimeoutError,
RPCError
)
_default_endpoint = 'http://localhost:9500'
_default_timeout = 30
def base_request(method, params=None, endpoint=_default_endpoint, timeout=_default_timeout) -> str:
"""
Basic RPC request
... | [
1,
1053,
4390,
13,
13,
5215,
7274,
13,
13,
3166,
869,
11739,
29879,
1053,
313,
13,
1678,
10729,
29879,
2392,
29892,
13,
1678,
10729,
29879,
10851,
2392,
29892,
13,
1678,
390,
9026,
2392,
13,
29897,
13,
13,
13,
29918,
4381,
29918,
2973... |
Solutions/gigasecond.py | matthijskrul/PythonExercism | 0 | 120728 | <reponame>matthijskrul/PythonExercism<filename>Solutions/gigasecond.py
import datetime
def add(moment):
return moment + datetime.timedelta(seconds=10**9)
| [
1,
529,
276,
1112,
420,
29958,
2922,
386,
823,
808,
29878,
352,
29914,
11980,
1252,
6269,
1608,
29966,
9507,
29958,
13296,
17925,
29914,
29887,
335,
559,
1116,
29889,
2272,
13,
5215,
12865,
13,
13,
13,
1753,
788,
29898,
29885,
2932,
112... |
lib/send_file.py | collinahn/file_name_changer | 1 | 150898 | import requests
import json
from requests.exceptions import (
ConnectionError,
Timeout,
HTTPError,
)
from lib.json_parser import TextParser
from lib.log_gongik import Logger
from .__PRIVATE import IP, PORT_API, DOWNLOAD_KEY
class LogFileSender(object):
def __init__(self, target_file_dir: str) -> None:... | [
1,
1053,
7274,
13,
5215,
4390,
13,
3166,
7274,
29889,
11739,
29879,
1053,
313,
13,
1678,
15160,
2392,
29892,
13,
1678,
5974,
449,
29892,
13,
1678,
7331,
2392,
29892,
13,
29897,
13,
13,
3166,
4303,
29889,
3126,
29918,
16680,
1053,
3992,
... |
temparature.py | Shrijan21/hacktoberfest2021-2 | 0 | 164989 | <reponame>Shrijan21/hacktoberfest2021-2
print("Choose from below options:")
print("1.Celsius to Fahrenheit.")
print("2.Fahrenheit to Celsius.")
o=int(input("option(1/2):"))
if(o==1):
c=float(input("Temperature in Celsius:"))
f=1.8*(c)+32.0
f=round(f,1) #temperature in fahrenheit precise to 1 decimal place
... | [
1,
529,
276,
1112,
420,
29958,
2713,
4927,
273,
29906,
29896,
29914,
29882,
547,
6264,
29613,
29906,
29900,
29906,
29896,
29899,
29906,
13,
2158,
703,
15954,
852,
515,
2400,
3987,
29901,
1159,
13,
2158,
703,
29896,
29889,
29907,
295,
1039... |
old_playground/minimal_induction.py | sterin/pyzz | 0 | 143713 | from pyzz import *
def not_equal( N, ws1, ws2 ):
return disjunction( N, ( w1 ^ w2 for w1, w2 in zip(ws1, ws2) ) )
def not_equal_states(U, i, j):
return not_equal( U.F, U[U.N.get_Flops(), i], U[U.N.get_Flops(), j] )
def unique(U):
return conjunction( U.F, ( not_equal_states(U, i, j) for i,j in i_lt_j(U.fr... | [
1,
515,
11451,
5617,
1053,
334,
13,
13,
1753,
451,
29918,
11745,
29898,
405,
29892,
16904,
29896,
29892,
16904,
29906,
29871,
1125,
13,
1678,
736,
766,
29926,
651,
29898,
405,
29892,
313,
281,
29896,
6228,
281,
29906,
363,
281,
29896,
2... |
valida/errors.py | hpcflow/valida | 0 | 1614863 | class RuleValidationFailure:
def __init__(
self,
rule,
):
pass
class DuplicateRule(Exception):
pass
class IncompatibleRules(Exception):
pass
class ValidationError(Exception):
pass
class InvalidCallable(Exception):
pass
class MalformedConditionLikeSpec(Exception)... | [
1,
770,
27308,
19448,
24155,
29901,
13,
1678,
822,
4770,
2344,
12035,
13,
4706,
1583,
29892,
13,
4706,
5751,
29892,
13,
268,
1125,
13,
4706,
1209,
13,
13,
13,
1990,
18733,
5926,
10740,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
13,
... |
jupyter/password.py | panchohumeres/state-of-open-data | 4 | 170265 | from notebook.auth import passwd
import os
PASSWORD=os.environ['PASSWORD']
with open('/tmp/sha1-psswd', 'w') as f:
f.write(passwd(PASSWORD)) | [
1,
515,
451,
19273,
29889,
5150,
1053,
1209,
9970,
13,
5215,
2897,
13,
13,
25711,
17013,
29922,
359,
29889,
21813,
1839,
25711,
17013,
2033,
13,
13,
2541,
1722,
11219,
7050,
29914,
17051,
29896,
29899,
567,
2774,
29881,
742,
525,
29893,
... |
modeling/src/load_data.py | alyildiz/covid_19_xray | 0 | 41043 | <reponame>alyildiz/covid_19_xray
from sklearn.model_selection import train_test_split
from src.utils import load_dataset
def get_data():
train_list_file, train_list_class = load_dataset(data_part="train")
test_x, test_y = load_dataset(data_part="test")
train_x, val_x, train_y, val_y = train_test_split(
... | [
1,
529,
276,
1112,
420,
29958,
14997,
789,
466,
29914,
24542,
333,
29918,
29896,
29929,
29918,
29916,
764,
13,
3166,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
7945,
29918,
1688,
29918,
5451,
13,
3166,
4765,
29889,
13239,
1053,
2254,
2... |
Exercicios - Mundo1/Ex023.py | BrianMath/ExerciciosPythonCeV | 0 | 57794 | # Ex. 023
num = str(input("Digite um número: ")) # .zfill(4) -> preenche com 0 até completar 4 casas
while len(num) < 4:
num = "0" + num
print("Unidade: ", num[3])
print("Dezena: ", num[2])
print("Centena: ", num[1])
print("Unidade de milhar: ", num[0])
| [
1,
396,
1222,
29889,
29871,
29900,
29906,
29941,
13,
13,
1949,
353,
851,
29898,
2080,
703,
14991,
568,
1922,
13831,
29901,
376,
876,
29871,
396,
869,
29920,
5589,
29898,
29946,
29897,
1599,
758,
264,
1173,
419,
29871,
29900,
16659,
3315,
... |
dotnet.py | rrezartbuzhala/ca-cloner | 0 | 111293 | import os
import sys
import shutil
import constants
from os import path
from helpers import read_config
app_name = sys.argv[1]
#Copying the template
try:
src = 'templates/'+ sys.argv[2]
except:
src = 'templates/' + read_config(constants.default_template)
dir_dest = read_config("DESTINATION_OUTPUT") + "\\... | [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
528,
4422,
13,
5215,
17727,
13,
3166,
2897,
1053,
2224,
13,
3166,
1371,
414,
1053,
1303,
29918,
2917,
13,
13,
932,
29918,
978,
353,
10876,
29889,
19218,
29961,
29896,
29962,
13,
13,
13,
29937,... |
buzzmobile/tools/image_const/image_const.py | gtagency/buzzmobile | 25 | 138176 | <gh_stars>10-100
#!/usr/bin/env python
"""image_const: node that continuously publishes a given image from file.
Publishes:
image_filename Image with topic name same as file name
"""
from __future__ import print_function
# TODO(irapha): remove this when #126 is fixed.
import sys
import rospy
import cv2
from cv_... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
3027,
29918,
3075,
29901,
2943,
393,
3133,
5794,
9805,
267,
263,
2183,
1967,
515,
... |
test/test_examples.py | VDBWRAIR/pyjip | 18 | 151065 | #!/usr/bin/env python
"""Test some of the examples pipelines and tools"""
import os
import jip
import unittest
import jip.tools
class BWAPipelineTest(unittest.TestCase):
def testPipelineStructure(self):
# load the pipeline
tool = jip.find("examples/bwa/pileup.jip")
assert tool is not None
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
3057,
777,
310,
278,
6455,
8450,
24210,
322,
8492,
15945,
29908,
13,
5215,
2897,
13,
5215,
432,
666,
13,
5215,
443,
27958,
13,
5215,
432,
666,
29889,
8504,
13,
13,
13,
... |
freecodecamp/brownie/brownie_simple/scripts/deploy.py | People-Help-People/contract-collection | 0 | 192094 | from brownie import accounts, config, SimpleStorage, network
import os
def get_account():
if network.show_active() =="developement":
account = accounts[0]
else:
# account = accounts.add(os.getenv("PRIVATE_KEY"))
account = accounts.add(config["wallets"]["from_key"])
... | [
1,
515,
3347,
2786,
1053,
15303,
29892,
2295,
29892,
12545,
10486,
29892,
3564,
30004,
13,
30004,
13,
5215,
2897,
30004,
13,
30004,
13,
30004,
13,
1753,
679,
29918,
10149,
7295,
1678,
6756,
13,
1678,
565,
3564,
29889,
4294,
29918,
4925,
... |
Data_Sending_raspberrypi/pl1.py | rsk97/Web-GIS-smart-irrigation | 0 | 94463 | <gh_stars>0
#/usr/bin/python
import serial
import requests
from selenium import webdriver
import urllib
mail = 0
def sendmail(SM1,SM2,WL):
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
fromaddr = "<EMAIL>"
toaddr = "<EMAIL>"
msg = MIMEMultipart()
msg['Fr... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29914,
4855,
29914,
2109,
29914,
4691,
13,
5215,
7797,
13,
5215,
7274,
13,
13,
3166,
18866,
1053,
1856,
9465,
13,
5215,
3142,
1982,
13,
13,
2549,
353,
29871,
29900,
13,
13,
13,... |
main.py | ARCJ137442/makeFolderTenser | 0 | 54508 | <gh_stars>0
'''
README:
本程序用于创建一系列的「索引文件夹」,
其相当于一个索引矩阵(可能是「张量」),其包含的值(本质上是集合,但一般是文件)使用一个特定的序列(等价于一个向量)进行访问;
原理/作用/用途:通过增大其他用户逐一检索文件夹之难度以「隐藏」部分文件夹或文件
待补
'''
import os
#此函数来源于网络
def mkdir(path):
# 引入模块
import os
# 去除首尾空格
path=path.strip()
# 去除尾部 \ 符号
path=path.rstrip("\\")
# 判断路径是否存在
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
16310,
2303,
29901,
13,
30346,
31101,
31463,
30406,
30909,
31441,
30886,
30287,
31185,
31025,
30210,
30481,
31836,
31674,
30333,
30631,
232,
167,
188,
30482,
30214,
13,
31149,
30... |
var/spack/repos/builtin/packages/ferret/package.py | padamson/spack | 2 | 74594 | <reponame>padamson/spack<filename>var/spack/repos/builtin/packages/ferret/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack import *
cla... | [
1,
529,
276,
1112,
420,
29958,
8305,
314,
1100,
29914,
1028,
547,
29966,
9507,
29958,
1707,
29914,
1028,
547,
29914,
276,
1066,
29914,
16145,
262,
29914,
8318,
29914,
571,
2267,
29914,
5113,
29889,
2272,
13,
29937,
14187,
1266,
29871,
299... |
style_transfer/layer.py | haonguyen1107/style_transfer | 0 | 159688 | import numpy as np
import tensorflow as tf
def upsample_nearest(inputs, scale):
shape = tf.shape(input=inputs)
n, h, w, c = shape[0], shape[1], shape[2], shape[3]
return tf.image.resize(inputs, tf.stack([h*scale, w*scale]), method=tf.image.ResizeMethod.NEAREST_NEIGHBOR) | [
1,
1053,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
13,
13,
1753,
24081,
981,
29918,
28502,
342,
29898,
2080,
29879,
29892,
6287,
1125,
13,
1678,
8267,
353,
15886,
29889,
12181,
29898,
2080,
29922,
2080,
29879,
29897,
13,
1678,
... |
src/visions/lib/relations/string_to_datetime.py | sweersr/visions | 0 | 36897 | import pandas as pd
from visions import visions_string, visions_datetime
from visions.core.model import TypeRelation
from visions.core.model.relations import InferenceRelation
from visions.utils.coercion import test_utils
def to_datetime_year_week(series):
"""Convert a series of the format YYYY/UU (year, week) t... | [
1,
1053,
11701,
408,
10518,
13,
3166,
1998,
1080,
1053,
1998,
1080,
29918,
1807,
29892,
1998,
1080,
29918,
12673,
13,
13,
3166,
1998,
1080,
29889,
3221,
29889,
4299,
1053,
5167,
9662,
362,
13,
3166,
1998,
1080,
29889,
3221,
29889,
4299,
... |
minder_lastreview.py | hodea/hodea-review-minder | 0 | 37407 | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 26 19:38:29 2018
@author: Daniel
"""
import argparse
import os
from minder_config import minder_cfg
from minder_database import minder_db
from minder_htmlreport import minder_report
import time
import hashlib
import uuid
class get_lastreview:
def... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
2598,
26319,
29871,
29906,
29953,
29871,
29896,
29929,
29901,
29941,
29947,
... |
networkx/classes/tests/test_filters.py | jmmcd/networkx | 3 | 134079 | import pytest
import networkx as nx
class TestFilterFactory(object):
def test_no_filter(self):
nf = nx.filters.no_filter
assert nf()
assert nf(1)
assert nf(2, 1)
def test_hide_nodes(self):
f = nx.classes.filters.hide_nodes([1, 2, 3])
assert not f(1)
ass... | [
1,
1053,
11451,
1688,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
13,
13,
1990,
4321,
5072,
5126,
29898,
3318,
1125,
13,
1678,
822,
1243,
29918,
1217,
29918,
4572,
29898,
1311,
1125,
13,
4706,
302,
29888,
353,
302,
29916,
29889,
26705,
... |
scripts/CNN_Unet_cluster0.py | kevinshen56714/NucleiTracker | 2 | 95103 | <gh_stars>1-10
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import cv2
import os
from os.path import join
import glob
import sys
import random
import warnings
from tqdm import tqdm
import itertools
from itertools import chain
from skimage.io import imread, imshow, imread_collectio... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
13850,
29906,
30004,
13,
5215,
289... |
test/login.py | hongren798911/haha | 0 | 26645 | <reponame>hongren798911/haha
num1 = 100
num2 = 200
num3 = 300
num4 = 400
num5 = 500
mum6 = 600
num7 = 700
num8 = 800
| [
1,
529,
276,
1112,
420,
29958,
29882,
549,
1267,
29955,
29929,
29947,
29929,
29896,
29896,
29914,
29882,
25613,
13,
1949,
29896,
353,
29871,
29896,
29900,
29900,
13,
1949,
29906,
353,
29871,
29906,
29900,
29900,
13,
1949,
29941,
353,
29871,... |
pytype/tests/py2/test_stdlib.py | souravbadami/pytype | 1 | 3896 | <reponame>souravbadami/pytype
"""Tests of selected stdlib functions."""
from pytype.tests import test_base
class StdlibTests(test_base.TargetPython27FeatureTest):
"""Tests for files in typeshed/stdlib."""
def testPosix(self):
ty = self.Infer("""
import posix
x = posix.urandom(10)
""")
se... | [
1,
529,
276,
1112,
420,
29958,
29879,
283,
5705,
12313,
4479,
29914,
2272,
1853,
13,
15945,
29908,
24376,
310,
4629,
3659,
1982,
3168,
1213,
15945,
13,
13,
3166,
11451,
1853,
29889,
21150,
1053,
1243,
29918,
3188,
13,
13,
13,
1990,
624,... |
server/test.py | marcosmuto/IBMCloudAppDevelopment_Capstone | 0 | 111519 | import requests
import json
from datetime import datetime
from requests.auth import HTTPBasicAuth
review = dict()
review["id"] = int(datetime.now().timestamp())
review["name"] = "<NAME>"
review["dealership"] = 1
review["review"] = "Good deal"
review["purchase"] = True
review["purchase_date"] = "02/16/2020"
review["car... | [
1,
1053,
7274,
13,
5215,
4390,
13,
3166,
12865,
1053,
12865,
13,
3166,
7274,
29889,
5150,
1053,
7331,
16616,
6444,
13,
13,
27828,
353,
9657,
580,
13,
27828,
3366,
333,
3108,
353,
938,
29898,
12673,
29889,
3707,
2141,
16394,
3101,
13,
... |
credit-bias/src/data/make_dataset.py | tteofili/benchmark-models | 0 | 127034 | # -*- coding: utf-8 -*-
import click
import colorlog
import logging
from pathlib import Path
from dotenv import find_dotenv, load_dotenv
import pandas as pd
import numpy as np
import os
handler = colorlog.StreamHandler()
handler.setFormatter(
colorlog.ColoredFormatter("%(log_color)s%(levelname)s:%(name)s:%(message... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2828,
13,
5215,
2927,
1188,
13,
5215,
12183,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
8329,
6272,
1053,
1284,
29918,
6333,
6272,
29892,
2254,
... |
Code/VB/demo.py | CaptainE/Non-negative-latent-space-models | 0 | 130024 | <gh_stars>0
import numpy as np
from scipy.stats import gamma,poisson
from gnmf import nmf_vb
import matplotlib.pyplot as plt
if __name__ == '__main__':
W=40
K=30
I=3
a_tm=np.ones((W,I))*10
b_tm=np.ones((W,I))
a_ve=np.ones((I,K))*0.1
b_ve=np.ones((I,K))
T = gamma.rvs(a_tm,b_tm)
V = gamma.rvs(a_ve... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
30004,
13,
3166,
4560,
2272,
29889,
16202,
1053,
330,
2735,
29892,
1129,
17387,
30004,
13,
3166,
330,
22882,
29888,
1053,
302,
29885,
29888,
29918,
24666,
30004,
1... |
second-sem/genPlotsBetweenCoverageAndFPKM.py | piyush-kansal/masters-project | 1 | 159694 | #!/usr/bin/env python
# Main script for generating plots between coverage and FPKM values
# <NAME>
import sys
import os
import subprocess
import csv
import rpy2.robjects as robjects
import pickle
# Validate number of i/p arguments
def validateNumberOfArguments():
if len(sys.argv) != 5:
print "Invalid nu... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
4241,
2471,
363,
14655,
24580,
1546,
23746,
322,
383,
21738,
29924,
1819,
13,
29937,
529,
5813,
29958,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
5215,
... |
nsst_translate_corpus.py | AlexanderJenke/nsst | 0 | 2672 | from argparse import ArgumentParser
from tqdm import tqdm
import NSST
from nsst_translate import best_transition_sequence
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument("--nsst_file", default="output/nsst_tss20_th4_nSt100_Q0.pkl", help="nsst file")
parser.add_argument("--src_lan... | [
1,
515,
1852,
5510,
1053,
23125,
11726,
13,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
13,
5215,
3865,
1254,
13,
3166,
17534,
303,
29918,
21652,
1053,
1900,
29918,
20543,
29918,
16506,
13,
13,
361,
4770,
978,
1649,
1275,
... |
src/example_package/additions.py | energyinpython/packaging_tutorial | 0 | 156466 | import numpy as np
# reverse = True: descending order (TOPSIS, CODAS), False: ascending order (VIKOR, SPOTIS)
def rank_preferences(pref, reverse = True):
"""
Rank alternatives according to MCDM preference function values.
Parameters
----------
pref : ndarray
vector with MCDM prefer... | [
1,
1053,
12655,
408,
7442,
13,
13,
29937,
11837,
353,
5852,
29901,
5153,
2548,
1797,
313,
29911,
4590,
29903,
3235,
29892,
4810,
29928,
3289,
511,
7700,
29901,
12066,
2548,
1797,
313,
18118,
29968,
1955,
29892,
10937,
2891,
3235,
29897,
1... |
cogandmem/writing.py | aemacdermid/cogandmem | 0 | 94858 | <gh_stars>0
"""
Functions for writing to files.
To the best of my knowledge, the functions in this module work. However, the
module can be improved. At present, it does not take advantage of Python's csv
module. Since data is usually written to csv files, this is a major oversight.
This module contains the following ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
6678,
29879,
363,
5007,
304,
2066,
29889,
13,
13,
1762,
278,
1900,
310,
590,
7134,
29892,
278,
3168,
297,
445,
3883,
664,
29889,
2398,
29892,
278,
13,
5453,
508,
367... |
interview-preparation-kit/minimum-time-required.py | gajubadge11/HackerRank-1 | 340 | 117103 | <filename>interview-preparation-kit/minimum-time-required.py
#!/bin/python3
import math
import os
import random
import re
import sys
from collections import Counter
def calculate_days(day, cnt):
res = 0
for el in cnt.items():
res += el[1] * (day // el[0])
return res
# Complete the minTime func... | [
1,
529,
9507,
29958,
1639,
1493,
29899,
1457,
862,
362,
29899,
7354,
29914,
1195,
12539,
29899,
2230,
29899,
12403,
29889,
2272,
13,
29937,
14708,
2109,
29914,
4691,
29941,
13,
13,
5215,
5844,
13,
5215,
2897,
13,
5215,
4036,
13,
5215,
3... |
tarea2c/mod/game_over.py | camilo-nb/CC3501-tareas | 0 | 29869 | <gh_stars>0
import os
from collections import deque
import numpy as np
from OpenGL.GL import *
import lib.basic_shapes as bs
import lib.easy_shaders as es
import lib.transformations as tr
class GameOver:
def __init__(self):
self.GPU = deque([
es.toGPUShape(bs.createTextureCube(os.path.join('m... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
3166,
16250,
1053,
316,
802,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
29508,
29889,
7239,
1053,
334,
13,
13,
5215,
4303,
29889,
16121,
29918,
845,
11603,
408,
24512,
... |
echr/steps/prepare_database.py | nlopuszynska/ECHR-OD_process | 20 | 85441 | import argparse
import json
import os
from os import listdir
from os.path import isfile
import shutil
from genson import SchemaBuilder
from enum import Enum
import copy
import flatdict
import pandas as pd
import numpy as np
from collections import OrderedDict
from functools import reduce # forward compatibility for Py... | [
1,
1053,
1852,
5510,
13,
5215,
4390,
13,
5215,
2897,
13,
3166,
2897,
1053,
1051,
3972,
13,
3166,
2897,
29889,
2084,
1053,
338,
1445,
13,
5215,
528,
4422,
13,
3166,
330,
25151,
1053,
1102,
2603,
5627,
13,
3166,
14115,
1053,
1174,
398,
... |
vathos/trainer/tpu_trainer.py | satyajitghana/ProjektDepth | 2 | 44250 | from .base_trainer import BaseTrainer
import torch
import os
class TPUTrainer(BaseTrainer):
r"""TPUTrainer: Trains the vathos model on TPU
"""
def __init__(self, *args, **kwargs):
super(TPUTrainer, self).__init__(*args, **kwargs)
import torch_xla
import torch_xla.core.xla_model ... | [
1,
515,
869,
3188,
29918,
3018,
4983,
1053,
7399,
5323,
4983,
13,
13,
5215,
4842,
305,
13,
5215,
2897,
13,
13,
13,
1990,
323,
12336,
336,
4983,
29898,
5160,
5323,
4983,
1125,
13,
1678,
364,
15945,
29908,
3557,
2692,
336,
4983,
29901,
... |
examples/linear_wake/analysis.py | SaVicente/hipace | 19 | 49538 | <gh_stars>10-100
#! /usr/bin/env python3
# This Python analysis script is part of the code Hipace
#
# It compares the transverse field By with the theoretical value, plots both
# the simulation result and the theory on the same plot, and asserts that the
# difference is small.
#
# To use it, run the simulation and exe... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
910,
5132,
7418,
2471,
338,
760,
310,
278,
775,
379,
666,
815,
13,
2993... |
flatlib/chart.py | D-Vaillant/flatlib | 196 | 72486 | <reponame>D-Vaillant/flatlib
"""
This file is part of flatlib - (C) FlatAngle
Author: <NAME> (<EMAIL>)
This module implements a class to represent an
astrology Chart. It provides methods to handle
the chart, as well as three relevant properties:
- objects: a list with the chart's obj... | [
1,
529,
276,
1112,
420,
29958,
29928,
29899,
29963,
29874,
453,
424,
29914,
20620,
1982,
13,
15945,
29908,
13,
1678,
910,
934,
338,
760,
310,
12151,
1982,
448,
313,
29907,
29897,
2379,
271,
19582,
13,
1678,
13361,
29901,
529,
5813,
2995... |
app/fedgraphnn/recsys_subgraph_link_pred/torch_subgraph_link_prediction.py | ray-ruisun/FedML | 0 | 75942 | <reponame>ray-ruisun/FedML
import fedml
from data.data_loader import *
from model.gcn_link import GCNLinkPred
from model.gat_link import GATLinkPred
from model.sage_link import SAGELinkPred
from trainer.fed_subgraph_lp_trainer import FedSubgraphLPTrainer
from fedml.simulation import SimulatorMPI
def load_data(args):... | [
1,
529,
276,
1112,
420,
29958,
764,
29899,
582,
275,
348,
29914,
29943,
287,
1988,
13,
5215,
21242,
828,
13,
3166,
848,
29889,
1272,
29918,
12657,
1053,
334,
13,
3166,
1904,
29889,
29887,
18038,
29918,
2324,
1053,
402,
13778,
6595,
2308... |
chapter_06/03_line_numbers.py | SergeHall/Tony-Gaddis-Python-4th | 2 | 44752 | <reponame>SergeHall/Tony-Gaddis-Python-4th
# 3. Номера строк. Напишите программу, которая запрашивает у пользователя
# имя файла. Программа должна вывести на экран содержимое файла, при этом
# каждая строка должна предваряться ее номером и двоеточием. Нумерация строк
# должна начинаться с 1. number_list.txt
def ma... | [
1,
529,
276,
1112,
420,
29958,
1748,
479,
29950,
497,
29914,
29911,
2592,
29899,
29954,
1202,
275,
29899,
11980,
29899,
29946,
386,
13,
29937,
259,
29941,
29889,
16571,
1488,
494,
2091,
16635,
29889,
2372,
1668,
1911,
730,
20796,
1805,
29... |
kde/cudakde.py | atfienberg/kde | 0 | 161768 | # pylint: disable=invalid-name
from __future__ import absolute_import, division
__license__ = """MIT License
Copyright (c) 2014-2019 <NAME> and <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the So... | [
1,
396,
282,
2904,
524,
29901,
11262,
29922,
20965,
29899,
978,
13,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
13,
13,
1649,
506,
1947,
1649,
353,
9995,
26349,
19245,
13,
13,
11882,
1266,
313,
29883,
... |
alipay/aop/api/domain/SsdataDataserviceRiskAudioVerifyModel.py | articuly/alipay-sdk-python-all | 0 | 196028 | <gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.constant.ParamConstants import *
class SsdataDataserviceRiskAudioVerifyModel(object):
def __init__(self):
self._audio_content = None
self._audio_type = None
self._checker = None
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2560,
3126,
408,
4390,
13,
13,
3166,
394,... |
bp_data.py | basf/bscience-backend | 1 | 192186 |
#from pprint import pprint
import json
from unidecode import unidecode
from flask import Blueprint, current_app, request, Response
from i_structures.struct_utils import detect_format, poscar_to_ase, optimade_to_ase, refine, get_formula
from i_structures.cif_utils import cif_to_ase
from i_data import Data_type
from ... | [
1,
29871,
13,
29937,
3166,
282,
2158,
1053,
282,
2158,
13,
5215,
4390,
13,
3166,
443,
680,
401,
1053,
443,
680,
401,
13,
13,
3166,
29784,
1053,
10924,
2158,
29892,
1857,
29918,
932,
29892,
2009,
29892,
13291,
13,
13,
3166,
474,
29918,... |
telluride_decoding/utils.py | RULCSoft/telluride_decoding | 8 | 1610821 | # Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
5087,
9266,
29889,
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,
... |
SectorGen.py | ShawnDriscoll/Traveller-RPG-SectorGen | 5 | 142849 | <reponame>ShawnDriscoll/Traveller-RPG-SectorGen
#
# Python 3.9.11 Sector Generator
#
########################################################
"""
SectorGen 0.4.0 Beta
-----------------------------------------------------------------------
This program generates sectors using rules from
Mongoose Traveller 2nd Editio... | [
1,
529,
276,
1112,
420,
29958,
29903,
2350,
1233,
29928,
3780,
22017,
29914,
5323,
29894,
4539,
29899,
29934,
16903,
29899,
29903,
3019,
15462,
13,
29937,
13,
29937,
259,
5132,
29871,
29941,
29889,
29929,
29889,
29896,
29896,
317,
3019,
325... |
welcome.py | MadhavVij/File-Uploader-Bluemix | 0 | 162931 | import base64
import json
import pymysql
import swiftclient
import os
from cloudant import Cloudant
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from flask import Flask, render_tem... | [
1,
1053,
2967,
29953,
29946,
30004,
13,
5215,
4390,
30004,
13,
30004,
13,
5215,
282,
962,
952,
1519,
30004,
13,
5215,
12086,
4645,
30004,
13,
5215,
2897,
30004,
13,
30004,
13,
3166,
9570,
424,
1053,
14293,
424,
30004,
13,
3166,
24941,
... |
graph_rl/envs/flatten_wrapper.py | nicoguertler/graphrl | 1 | 41443 | <filename>graph_rl/envs/flatten_wrapper.py
from gym import Wrapper
from ..spaces import space_from_gym_space
class FlattenWrapper(Wrapper):
"""Flattens observation and action space."""
def __init__(self, env):
super().__init__(env)
self._action_space = space_from_gym_space(env.action_space)
... | [
1,
529,
9507,
29958,
4262,
29918,
2096,
29914,
264,
4270,
29914,
1579,
8606,
29918,
17699,
29889,
2272,
13,
3166,
330,
962,
1053,
399,
6794,
13,
13,
3166,
6317,
22854,
1053,
2913,
29918,
3166,
29918,
29887,
962,
29918,
3493,
13,
13,
13,... |
publishconf.py | siongui/pali-chanting | 2 | 192935 | <reponame>siongui/pali-chanting<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
# no trail... | [
1,
529,
276,
1112,
420,
29958,
29879,
291,
23569,
29914,
29886,
2606,
29899,
13775,
292,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899... |
serving_patterns/src/app/apps/app_image.py | shibuiwilliam/ml-system-in-action | 10 | 1611156 | <gh_stars>1-10
import os
from fastapi import FastAPI
import logging
from src.configurations import PlatformConfigurations
from src.app.routers import health, predict_image
from src.app.configurations import APIConfigurations
logger = logging.getLogger(__name__)
logger.info(f"starts {APIConfigurations.title}:{APIConfi... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
3166,
5172,
2754,
1053,
23786,
8787,
13,
5215,
12183,
13,
13,
3166,
4765,
29889,
2917,
332,
800,
1053,
28096,
3991,
332,
800,
13,
3166,
4765,
29889,... |
hello.py | jinheebee/github_test | 0 | 57569 | <filename>hello.py<gh_stars>0
print("hello world")
a = 3
b = 4
c = a * b
print(c)
| [
1,
529,
9507,
29958,
12199,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
2158,
703,
12199,
3186,
1159,
13,
29874,
353,
29871,
29941,
13,
29890,
353,
29871,
29946,
13,
29883,
353,
263,
334,
289,
13,
2158,
29898,
29883,
... |
msg_capsgan.py | MahdiyarMM/MSG-CapsGAN | 5 | 156261 | <filename>msg_capsgan.py
#Image lib
import cv2
# math libraries
import numpy as np
import scipy.misc
# ml libraries
import tensorflow as tf
from keras import layers, models, optimizers
from keras import backend as K
from keras.utils import to_categorical
from keras.datasets import mnist, cifar10
from keras.layers imp... | [
1,
529,
9507,
29958,
7645,
29918,
29883,
2547,
6249,
29889,
2272,
13,
13,
13,
29937,
2940,
4303,
13,
5215,
13850,
29906,
13,
29937,
5844,
9562,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
29885,
10669,
13,
29937,
286,
29880... |
monolithic/order_transaction.py | liks79/sample-saga-with-step-functions | 3 | 31659 | <reponame>liks79/sample-saga-with-step-functions
"""
Database model for Monolithic application
~~~~~~~~~~~~~~~~~~~~~~~
:created date: Thursday, March 12, 2020
:description: Monolithic application implementation of simple order transaction scenario
:copyright: © 2020 written by sungshik (<EMAIL>)
... | [
1,
529,
276,
1112,
420,
29958,
492,
2039,
29955,
29929,
29914,
11249,
29899,
29879,
7781,
29899,
2541,
29899,
10568,
29899,
12171,
13,
15945,
29908,
13,
1678,
5470,
1904,
363,
2598,
324,
389,
293,
2280,
13,
1678,
3695,
26594,
26594,
14087... |
reaver/utils/experiment.py | XinyiYS/reaver | 0 | 1612175 | <filename>reaver/utils/experiment.py
import os
import gin
import json
from datetime import datetime as dt
class Experiment:
def __init__(self, results_dir, env_name, agent_name, name=None, restore=False, restore_mix=False, args=None):
if not name:
if restore:
experiments = [e f... | [
1,
529,
9507,
29958,
5638,
369,
29914,
13239,
29914,
735,
15362,
29889,
2272,
13,
5215,
2897,
13,
5215,
330,
262,
13,
5215,
4390,
13,
3166,
12865,
1053,
12865,
408,
11636,
13,
13,
13,
1990,
1222,
15362,
29901,
13,
1678,
822,
4770,
234... |
repository/spraytime_repo.py | kbj2060/plantpointNutrients-backend | 0 | 142950 | <reponame>kbj2060/plantpointNutrients-backend<gh_stars>0
from domain.entities.spraytime import SprayTime as eSprayTime
from repository.repo import BaseRepo
from repository import models
from controllers.app import session
class SprayTimeRepository(BaseRepo):
def __init__(self) -> None:
super().__init__()
... | [
1,
529,
276,
1112,
420,
29958,
21066,
29926,
29906,
29900,
29953,
29900,
29914,
24389,
3149,
29940,
329,
374,
1237,
29899,
27852,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
5354,
29889,
296,
1907,
29889,
1028,
764,
2230,
1053,
... |
tests/conf.py | xncbf/django-dynamodb-cache | 21 | 22252 | <gh_stars>10-100
from random import random
TABLE_NAME = f"test-django-dynamodb-cache-{random()}"
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
4036,
1053,
4036,
13,
13,
21009,
29918,
5813,
353,
285,
29908,
1688,
29899,
14095,
29899,
29881,
2926,
10396,
29899,
8173,
29899,
29912,
8172,
580,
... |
src/tests/test_workflow.py | marcusianlevine/compose-flow | 10 | 135910 | import shlex
from unittest import TestCase, mock
from compose_flow.commands import Workflow
from tests import BaseTestCase
TEST_PROJECT_NAME = "test_project_name"
@mock.patch("compose_flow.commands.subcommands.env.utils")
@mock.patch("compose_flow.commands.subcommands.env.get_backend")
class WorkflowTestCase(Base... | [
1,
1053,
528,
2506,
13,
13,
3166,
443,
27958,
1053,
4321,
8259,
29892,
11187,
13,
13,
3166,
27435,
29918,
1731,
29889,
26381,
1053,
5244,
1731,
13,
13,
3166,
6987,
1053,
7399,
3057,
8259,
13,
13,
18267,
29918,
8618,
17637,
29918,
5813,
... |
python/ceasarCipher.py | majid-T/snippets | 1 | 187621 | <reponame>majid-T/snippets
# Simplified Ceasar Cipher example works on alphabetic charachtors only.
# Numbers provide a small pre-image since we are ciphering on each word. So numbers are not
# accepted and instead of 1 you should type one to increese security
import tkinter as tk
# All alphabet chars in a list
chars... | [
1,
529,
276,
1112,
420,
29958,
655,
29926,
333,
29899,
29911,
29914,
29879,
1240,
27421,
13,
29937,
3439,
572,
2164,
7747,
294,
279,
11402,
8096,
1342,
1736,
373,
394,
561,
370,
7492,
1373,
5860,
943,
871,
29889,
13,
29937,
11848,
2596,... |
recipes/recipe_modules/cloudbuildhelper/__init__.py | NDevTK/chromium-infra | 0 | 193345 | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
DEPS = [
'recipe_engine/cipd',
'recipe_engine/commit_position',
'recipe_engine/context',
'recipe_engine/file'... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
450,
678,
456,
1974,
13189,
943,
29889,
2178,
10462,
21676,
29889,
13,
29937,
4803,
310,
445,
2752,
775,
338,
4095,
287,
491,
263,
350,
7230,
29899,
3293,
19405,
393,
508,
367,
13,... |
elpis/engines/common/input/clean_json.py | guillaume-wisniewski/elpis | 118 | 119213 | <gh_stars>100-1000
#!/usr/bin/python3
"""
Given a json file with transcript information these tools can perform
- manipulations including generating word lists or filtering output to
- exclude english/punctuation.
- Optionally provide the output json file name with -j
Usage: python3 clean_json.py [-h] [--i INFILE] [-... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29941,
13,
13,
15945,
29908,
13,
29954,
5428,
263,
4390,
934,
411,
1301,
924,
2472,
1438,
84... |
server.py | vitorpamplona/relayserver | 0 | 140114 | import socket # for connecting to the server
import _thread # to manage multiple clients
import json # to enconde and decode the data
host = '127.0.0.1'
port = 5000 # initiate port no above 1024
clients = {}
def server_program():
print('Starting Relay Server at ' + host + ':' + str(port)) # show in terminal
... | [
1,
1053,
9909,
396,
363,
16791,
304,
278,
1923,
13,
5215,
903,
7097,
396,
304,
10933,
2999,
13154,
13,
5215,
4390,
396,
304,
427,
15973,
322,
21822,
278,
848,
13,
13,
3069,
353,
525,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29... |
Algorithms/LCP/29/math1.py | M-Quadra/LeetCode-problems | 0 | 17971 | <reponame>M-Quadra/LeetCode-problems
class Solution:
def orchestraLayout(self, num: int, xPos: int, yPos: int) -> int:
a, b = (min(xPos, num-1-yPos), 1) if yPos >= xPos else (min(yPos, num-1-xPos), -1)
return (4*num*a - 4*a*a - 2*a + b*(xPos+yPos) + (b>>1&1)*4*(num-a-1))%9 + 1 | [
1,
529,
276,
1112,
420,
29958,
29924,
29899,
2182,
328,
336,
29914,
3226,
300,
3399,
29899,
17199,
29879,
13,
1990,
24380,
29901,
13,
1678,
822,
470,
15554,
3453,
29898,
1311,
29892,
954,
29901,
938,
29892,
921,
9135,
29901,
938,
29892,
... |
lecture_04/312_plan_motion_ros_artist.py | farzanehesk/COMPAS-II-FS2022 | 11 | 17499 | import math
import time
from compas_fab.backends import RosClient
from compas.artists import Artist
from compas.geometry import Frame
with RosClient("localhost") as client:
robot = client.load_robot(load_geometry=True)
group = robot.main_group_name
frame = Frame((0.4, 0.3, 0.05), (-1, 0, 0), (0, 1, 0))
... | [
1,
1053,
5844,
13,
5215,
931,
13,
13,
3166,
752,
294,
29918,
16582,
29889,
1627,
1975,
1053,
5678,
4032,
13,
13,
3166,
752,
294,
29889,
442,
2879,
1053,
3012,
391,
13,
3166,
752,
294,
29889,
19156,
1053,
12218,
13,
13,
2541,
5678,
4... |
pymath/vampire_numbers/vampire_numbers.py | JASTYN/pythonmaster | 3 | 82769 | def vampire_test(x, y):
product = x * y
if len(str(x) + str(y)) != len(str(product)):
return False
for i in str(x) + str(y):
if i in str(product):
return True
else:
return False
| [
1,
822,
325,
1160,
533,
29918,
1688,
29898,
29916,
29892,
343,
1125,
13,
1678,
3234,
353,
921,
334,
343,
13,
1678,
565,
7431,
29898,
710,
29898,
29916,
29897,
718,
851,
29898,
29891,
876,
2804,
7431,
29898,
710,
29898,
4704,
22164,
13,
... |
sandbox/decorator_use.py | olileger/sBeull | 0 | 1615107 | <gh_stars>0
from decorator_def import FuncDecoratorOne, FuncDecoratorListProperties, ClassDecoratorOne
class FuncDecoratorUse:
def __init__(_self_):
_self_.var1 = "test"
_self_.var2 = "abc"
_self_.var3 = 12345
@FuncDecoratorListProperties
def FunctionOne(_self_, v):
print(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
10200,
1061,
29918,
1753,
1053,
383,
4661,
6185,
272,
1061,
6716,
29892,
383,
4661,
6185,
272,
1061,
1293,
11857,
29892,
4134,
6185,
272,
1061,
6716,
13,
13,
1990,
383,
4661,
6185... |
pyglobi/config.py | nicholac/pyglobi | 0 | 92040 | <gh_stars>0
# -*- coding: utf-8 -*-
"""
pyglobi.config
~~~~~~~~~~~~
Configuration used by pyglobi
:copyright: (c) 2019 by <NAME>.
:license: MIT, see LICENSE for more details.
"""
# Base URL's
globi_neo_url = "https://neo4j.globalbioticinteractions.org/db/data/cypher"
eol_url = "https://eol.org/pages"
eol_geo_url = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
13,
2272,
23705,
29875,
29889,
2917,
13,
26594,
14087,
13,
8614,
1304,
491,
19484,
21... |
pset_4/tasks/stylize.py | GabrielBG010/PSET4 | 0 | 155053 | <reponame>GabrielBG010/PSET4<gh_stars>0
import os
import luigi
from luigi import ExternalTask, Parameter, Task, LocalTarget
from luigi.format import FileWrapper
from csci_utils.luigi.target import SuffixPreservingLocalTarget
from neural_style.neural_style import stylize
from pset_4.tasks.data import DownloadImage, Do... | [
1,
529,
276,
1112,
420,
29958,
29954,
370,
12836,
29933,
29954,
29900,
29896,
29900,
29914,
29925,
10490,
29946,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
13,
5215,
8092,
10091,
13,
3166,
8092,
10091,
1053,
3985,
5... |
movements.py | sxnnytripathi/GestureGaming | 0 | 105598 | <gh_stars>0
import numpy as np
import cv2
import time
import math
import imutils
from imutils.video import FileVideoStream, VideoStream
import keyboard
from pynput.keyboard import Key, Controller
# keyboard=Controller()
size_height = 600
size_width = 600
last = 0 # last extreme of steer
chng = 3 # chang... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
13850,
29906,
30004,
13,
5215,
931,
30004,
13,
5215,
5844,
30004,
13,
5215,
527,
13239,
30004,
13,
3166,
527,
13239,
29889,
9641,
1053,
3497,
15... |
tests/util/alert_server.py | grayfallstown/greendoge-blockchain | 44 | 64852 | <gh_stars>10-100
import argparse
import asyncio
import logging
from pathlib import Path
from typing import Any
from aiohttp import web
log = logging.getLogger(__name__)
class AlertServer:
shut_down: bool
shut_down_event: asyncio.Event
log: Any
app: Any
alert_file_path: Path
port: int
@s... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
1852,
5510,
13,
5215,
408,
948,
3934,
13,
5215,
12183,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
19229,
1053,
3139,
13,
13,
3166,
263,
601,
... |
streamkit/database/core/orm.py | glentner/streamkit | 2 | 117420 | # This program is free software: you can redistribute it and/or modify it under the
# terms of the Apache License (v2.0) as published by the Apache Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or... | [
1,
396,
910,
1824,
338,
3889,
7047,
29901,
366,
508,
2654,
391,
2666,
372,
322,
29914,
272,
6623,
372,
1090,
278,
13,
29937,
4958,
310,
278,
13380,
19245,
313,
29894,
29906,
29889,
29900,
29897,
408,
6369,
491,
278,
13380,
18540,
10606,... |
napari_plugin_engine/__init__.py | tlambert-forks/napari-plugin-engine | 6 | 75160 | <filename>napari_plugin_engine/__init__.py
try:
from ._version import version as __version__
except ImportError:
# broken installation, we don't even try
# unknown only works because we do poor mans version compare
__version__ = "unknown"
__all__ = [
"get_metadata",
"HookCaller",
"HookCallE... | [
1,
529,
9507,
29958,
8971,
1306,
29918,
8582,
29918,
10599,
29914,
1649,
2344,
26914,
2272,
13,
2202,
29901,
13,
1678,
515,
869,
29918,
3259,
1053,
1873,
408,
4770,
3259,
1649,
13,
19499,
16032,
2392,
29901,
13,
1678,
396,
9391,
11161,
... |
tests/test_tipc/bigru_crf/export_model.py | mukaiu/PaddleNLP | 0 | 83592 | # -*- coding: UTF-8 -*-
# Copyright (c) 2021 PaddlePaddle 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
#
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
13,
29937,
259,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
349,
22352,
29925,
22352,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
... |
test/test_bch.py | timoi-Lucypher/npCrypto | 0 | 139832 | <reponame>timoi-Lucypher/npCrypto
import numpy as np
from npcrypto.codes.bch import BCH
from npcrypto.codes.poly_gf2 import a2p, strip_zeros
def test_encode():
#http://www.comlab.hut.fi/studies/3410/slides_08_6_4.pdf
n = 7
m = 3
k = 3
t = 2
msg = np.array([1,0,1], dtype=np.uint8)
expected ... | [
1,
529,
276,
1112,
420,
29958,
29873,
4200,
29875,
29899,
24126,
1270,
8096,
29914,
9302,
29907,
17929,
13,
5215,
12655,
408,
7442,
13,
3166,
302,
6739,
17929,
29889,
18137,
29889,
29890,
305,
1053,
350,
3210,
13,
3166,
302,
6739,
17929,
... |
stest/pylibs/lazy_libs.py | hotswwkyo/stest | 0 | 128206 | <reponame>hotswwkyo/stest
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@Author: 思文伟
@Date: 2022/03/23
'''
class LazyLibs(object):
class Appium(object):
@property
def MobileBy(self):
from appium.webdriver.common.mobileby import MobileBy
return MobileBy
@prope... | [
1,
529,
276,
1112,
420,
29958,
29882,
1862,
1615,
3459,
29877,
29914,
303,
342,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
8025,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
12008,
13,
2999... |
reprounzip-qt/reprounzip_qt/qt_terminal.py | kyleam/reprozip | 0 | 69081 | <filename>reprounzip-qt/reprounzip_qt/qt_terminal.py
# Copyright (C) 2014-2017 New York University
# This file is part of ReproZip which is released under the Revised BSD License
# See file LICENSE for full license details.
from __future__ import division, print_function, unicode_literals
import cgi
import locale
fro... | [
1,
529,
9507,
29958,
276,
558,
1309,
7554,
29899,
17915,
29914,
276,
558,
1309,
7554,
29918,
17915,
29914,
17915,
29918,
8489,
979,
29889,
2272,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29946,
29899,
29906,
299... |
weather_alarm/main.py | Cs4r/weather_alarm | 0 | 23459 | <filename>weather_alarm/main.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import datetime
import os
from apscheduler.schedulers.blocking import BlockingScheduler
from weather_alarm.constants import *
from weather_alarm.forecaster import Forecaster
from weather_alarm.sender import NotificationSender
sender = Not... | [
1,
529,
9507,
29958,
705,
1624,
29918,
284,
2817,
29914,
3396,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.