content stringlengths 1 1.05M | input_ids listlengths 1 883k | ratio_char_token float64 1 22.9 | token_count int64 1 883k |
|---|---|---|---|
from typing import Any, Dict
def deep_update(dest: Dict[Any, Any], other: Dict[Any, Any]) -> None:
"""Update `dest` with the key/value pairs from `other`.
Returns `None`. Note that we modify `dest` in place.
Unlike the built-in `dict.Update`, `deep_update` recurses into sub-dictionaries.
This effect... | [
6738,
19720,
1330,
4377,
11,
360,
713,
628,
198,
4299,
2769,
62,
19119,
7,
16520,
25,
360,
713,
58,
7149,
11,
4377,
4357,
584,
25,
360,
713,
58,
7149,
11,
4377,
12962,
4613,
6045,
25,
198,
220,
220,
220,
37227,
10260,
4600,
16520,
... | 2.575964 | 441 |
# runs ApiLogicServer basic web app:
# python ui/basic_web_app/run.py
# Export PYTHONPATH, to enable python ui/basic_web_app/run.py
import os, sys, logging
from pathlib import Path
logger = logging.getLogger()
current_path = Path(os.path.abspath(os.path.dirname(__file__)))
current_path = current_path.parent.absolute... | [
2,
4539,
5949,
72,
11187,
291,
10697,
4096,
3992,
598,
25,
198,
2,
21015,
334,
72,
14,
35487,
62,
12384,
62,
1324,
14,
5143,
13,
9078,
198,
198,
2,
36472,
350,
56,
4221,
1340,
34219,
11,
284,
7139,
21015,
334,
72,
14,
35487,
62,
... | 2.532311 | 913 |
from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_length_1_xsd.nistschema_sv_iv_list_non_positive_integer_length_1 import NistschemaSvIvListNonPositiveIntegerLength1
__all__ = [
"NistschemaSvIvListNonPositiveIntegerLength1",
]
| [
6738,
5072,
13,
27530,
13,
77,
396,
62,
7890,
13,
4868,
62,
35339,
13,
13159,
62,
24561,
62,
41433,
13,
15952,
2611,
62,
39098,
13,
77,
1023,
2395,
2611,
62,
21370,
62,
452,
62,
4868,
62,
13159,
62,
24561,
62,
41433,
62,
13664,
62... | 2.631579 | 114 |
from .main import CBot
__version__ = '0.1.0'
__author__ = 'Felix Wang'
__email__ = 'felix2@foxmail.com'
__url__ = 'https://github.com/wangyitao/cbot'
__all__ = (
'CBot',
)
| [
6738,
764,
12417,
1330,
10078,
313,
201,
198,
201,
198,
834,
9641,
834,
796,
705,
15,
13,
16,
13,
15,
6,
201,
198,
834,
9800,
834,
796,
705,
42493,
844,
15233,
6,
201,
198,
834,
12888,
834,
796,
705,
69,
417,
844,
17,
31,
12792,... | 2 | 95 |
#!/usr/bin/python3
"""
Infer service.
It pick up single frame from frame queue and do inference. The result will be
published to stream broker like below.
+---------------------+ +---------------+ +-----------------------+
| Frame Queue (redis) | => | Infer Service | => | Stream broker (redis) |
+--------... | [
2,
48443,
14629,
14,
8800,
14,
29412,
18,
198,
37811,
198,
818,
2232,
2139,
13,
198,
198,
1026,
2298,
510,
2060,
5739,
422,
5739,
16834,
290,
466,
32278,
13,
383,
1255,
481,
307,
198,
30271,
284,
4269,
20426,
588,
2174,
13,
628,
220... | 2.545064 | 699 |
# Python copya,copyb
import os
from pathlib import Path
import shutil
src_path=Path('a/test')
dst_path=Path('b/test')
with open(src_path,'w') as src_file:
src_file.write('abcd\n1234')
shutil.copy(src_path,dst_path)
print(os.stat(src_path))
print(os.stat(dst_path)) | [
2,
11361,
2243,
3972,
11,
30073,
65,
198,
198,
11748,
28686,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
4423,
346,
198,
198,
10677,
62,
6978,
28,
15235,
10786,
64,
14,
9288,
11537,
198,
67,
301,
62,
6978,
28,
15235,
10786,
65,
... | 2.313559 | 118 |
from vanirio.module.interface.base import Base
| [
6738,
5719,
343,
952,
13,
21412,
13,
39994,
13,
8692,
1330,
7308,
628,
198
] | 3.5 | 14 |
import numpy as np
from PIL import Image
| [
11748,
299,
32152,
355,
45941,
198,
6738,
350,
4146,
1330,
7412,
628,
628
] | 3.384615 | 13 |
import zmq
import json
"""
Class used by the Client entity to communicate to the Server.
The communication channel should be configured using the three ports:
- com_port: Used to receive broadcast messages from the Server entity.
- set_port: Used to send messages/request data to the Server entity.
- res_port: Used t... | [
11748,
1976,
76,
80,
198,
11748,
33918,
198,
198,
37811,
198,
9487,
973,
416,
262,
20985,
9312,
284,
10996,
284,
262,
9652,
13,
198,
198,
464,
6946,
6518,
815,
307,
17839,
1262,
262,
1115,
14090,
25,
198,
12,
401,
62,
634,
25,
16718... | 2.982143 | 168 |
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import numpy as np
import tensorflow as tf
| [
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
11192,
273,
11125,
355,
48700,
628
] | 3.948718 | 39 |
from __future__ import unicode_literals
import os
import random
import contextlib
import shutil
import pytest
import tempfile
from pathlib import Path
import pathlib
from ...gold import GoldParse
from ...pipeline import EntityRecognizer
from ...language import Language
try:
unicode
except NameError:
unicode ... | [
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
11748,
28686,
198,
11748,
4738,
198,
11748,
4732,
8019,
198,
11748,
4423,
346,
198,
11748,
12972,
9288,
198,
11748,
20218,
7753,
198,
6738,
3108,
8019,
1330,
10644,
628,
198... | 3.476636 | 107 |
try:
from ._version import __version__
except(ImportError):
pass
from . import instruments
from . import sources
from . import sky
from . import utils
from . import telescopes
from . import detectors
from . import filters
__all__ = ['instruments', 'sources', 'sky', 'utils', 'telescopes', 'detectors', 'filters... | [
28311,
25,
198,
220,
220,
220,
422,
47540,
9641,
1330,
11593,
9641,
834,
198,
16341,
7,
20939,
12331,
2599,
198,
220,
220,
220,
1208,
198,
198,
6738,
764,
1330,
12834,
198,
6738,
764,
1330,
4237,
198,
6738,
764,
1330,
6766,
198,
6738,... | 3.329897 | 97 |
from unittest import TestCase
import sys
sys.path.append("./PathTracking/lqr_speed_steer_control/")
from PathTracking.lqr_speed_steer_control import lqr_speed_steer_control as m
print(__file__)
| [
6738,
555,
715,
395,
1330,
6208,
20448,
198,
198,
11748,
25064,
198,
17597,
13,
6978,
13,
33295,
7,
1911,
14,
15235,
2898,
5430,
14,
75,
80,
81,
62,
12287,
62,
4169,
263,
62,
13716,
14,
4943,
198,
198,
6738,
10644,
2898,
5430,
13,
... | 2.64 | 75 |
#lists, tuplas, strings -> sequencias -> iteraveis
nome = 'nome qualquer'
print('comportamento esperado de um valor iteravel')
print('o valor vai sempre estar la para ser exibido novamente')
for l in nome:
print(l)
print(nome)
print(10 * '=====')
iterador = iter(nome)
try: # quando mostrado x valor de um itera... | [
2,
20713,
11,
12777,
489,
292,
11,
13042,
4613,
4726,
268,
979,
292,
4613,
11629,
1015,
271,
198,
77,
462,
796,
705,
77,
462,
4140,
10819,
6,
198,
4798,
10786,
785,
634,
3263,
78,
1658,
525,
4533,
390,
23781,
1188,
273,
340,
8607,
... | 2.419355 | 341 |
import dropbox
try:
from secrets_dict import DROPBOX_APP
except ImportError:
# Not running locally
print("Couldn't get DROPBOX_APP from file, trying environment **********")
from os import environ
try:
DROPBOX_APP = environ['DROPBOX_APP']
except KeyError:
# Not in environment
... | [
11748,
4268,
3524,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
13141,
62,
11600,
1330,
10560,
3185,
39758,
62,
24805,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
1303,
1892,
2491,
15726,
198,
220,
220,
220,
3601,
7203,
23722,
... | 2.683871 | 155 |
import random
import unittest
from hearthbreaker.agents.basic_agents import DoNothingBot
from tests.agents.testing_agents import SelfSpellTestingAgent, EnemySpellTestingAgent, MinionPlayingAgent, \
EnemyMinionSpellTestingAgent, SpellTestingAgent
from hearthbreaker.constants import CHARACTER_CLASS
from hearthbreake... | [
11748,
4738,
198,
11748,
555,
715,
395,
198,
198,
6738,
3285,
400,
25766,
13,
49638,
13,
35487,
62,
49638,
1330,
2141,
18465,
20630,
198,
6738,
5254,
13,
49638,
13,
33407,
62,
49638,
1330,
12189,
31221,
44154,
36772,
11,
21785,
31221,
4... | 3.829457 | 129 |
from django.contrib import admin
from.models import Job
admin.site.register(Job)
# Register your models here.
| [
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
13,
27530,
1330,
15768,
198,
198,
28482,
13,
15654,
13,
30238,
7,
33308,
8,
198,
2,
17296,
534,
4981,
994,
13,
198
] | 3.46875 | 32 |
from sklearn.neighbors import KNeighborsClassifier
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
x , y = make_classification(n_samples=1000,n_features=40,random_state=42) #
x_train, x_test ,y_train ,y_test = train_test_split(x,y,random_state=42) #
knn =... | [
6738,
1341,
35720,
13,
710,
394,
32289,
1330,
509,
46445,
32289,
9487,
7483,
198,
6738,
1341,
35720,
13,
19608,
292,
1039,
1330,
787,
62,
4871,
2649,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,
628,
... | 2.415 | 200 |
from egg.resources.console import *
from egg.resources.server import *
from egg.resources.structures import *
from egg.resources.auth import *
from egg.resources.constants import *
from egg.resources.extensions import *
from egg.resources.help import *
from egg.resources.modules import *
from egg.resources.parser impor... | [
6738,
5935,
13,
37540,
13,
41947,
1330,
1635,
198,
6738,
5935,
13,
37540,
13,
15388,
1330,
1635,
198,
6738,
5935,
13,
37540,
13,
7249,
942,
1330,
1635,
198,
6738,
5935,
13,
37540,
13,
18439,
1330,
1635,
198,
6738,
5935,
13,
37540,
13,... | 3.585185 | 135 |
from jinja2 import Template
articles_template = Template("""{{ index }}. {{ title }}
\tAuthor: {{ author }}
\tPublished on: {{ publication_date }}
\tSource: {{ url }}
""")
| [
6738,
474,
259,
6592,
17,
1330,
37350,
628,
198,
26845,
62,
28243,
796,
37350,
7203,
15931,
27007,
6376,
1782,
27422,
22935,
3670,
34949,
198,
59,
83,
13838,
25,
22935,
1772,
34949,
198,
59,
83,
24492,
319,
25,
22935,
9207,
62,
4475,
... | 3.222222 | 54 |
"""
Defines exceptions used in the context of this module "algorithm"
"""
| [
37811,
198,
7469,
1127,
13269,
973,
287,
262,
4732,
286,
428,
8265,
366,
282,
42289,
1,
198,
37811,
198
] | 3.894737 | 19 |
from sqlalchemy.ext.declarative import declarative_base
from flask import Flask
from flask import jsonify
from flask_marshmallow import Marshmallow
Base = declarative_base()
app = Flask(__name__)
ma = Marshmallow(app)
| [
6738,
44161,
282,
26599,
13,
2302,
13,
32446,
283,
876,
1330,
2377,
283,
876,
62,
8692,
198,
6738,
42903,
1330,
46947,
198,
6738,
42903,
1330,
33918,
1958,
198,
6738,
42903,
62,
76,
5406,
42725,
1330,
9786,
42725,
198,
14881,
796,
2377,... | 3.384615 | 65 |
import tensorflow as tf
import numpy as np
import pandas as pd
from MACD_RSI import init_train_data
start_date = '2018-11-20'
end_date = '2019-03-01'
stock_list = ['603000', '002230', '300492', '601688']
df = pd.DataFrame(stock_list, columns=['stock'])
train_acc = []
for stock in stock_list:
data, label = init_tra... | [
11748,
11192,
273,
11125,
355,
48700,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
20582,
35,
62,
6998,
40,
1330,
2315,
62,
27432,
62,
7890,
198,
198,
9688,
62,
4475,
796,
705,
7908,
12,
1157,
... | 2.600962 | 208 |
""" Threshold-based transformers """
from typing import Dict, Iterable, Union
from ..changemap.changemap import ChangeMap
from ..utils.arrays import flatten, shape_of_array
from .base import ColumnHandlingTransformer
| [
37811,
536,
10126,
12,
3106,
6121,
364,
37227,
198,
198,
6738,
19720,
1330,
360,
713,
11,
40806,
540,
11,
4479,
198,
6738,
11485,
354,
648,
368,
499,
13,
354,
648,
368,
499,
1330,
9794,
13912,
198,
6738,
11485,
26791,
13,
3258,
592,
... | 3.532258 | 62 |
line = input()
(a, b, c) = [int(i) for i in line.split(' ')]
greatest1 = (a + b + abs(a - b)) / 2
greatest2 = int((greatest1 + c + abs(greatest1 - c)) / 2)
print('{} eh o maior'.format(greatest2))
| [
1370,
796,
5128,
3419,
198,
7,
64,
11,
275,
11,
269,
8,
796,
685,
600,
7,
72,
8,
329,
1312,
287,
1627,
13,
35312,
10786,
705,
15437,
198,
18223,
395,
16,
796,
357,
64,
1343,
275,
1343,
2352,
7,
64,
532,
275,
4008,
1220,
362,
1... | 2.290698 | 86 |
import argparse
from pathlib import Path
import random
| [
11748,
1822,
29572,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
4738,
628,
198
] | 4.071429 | 14 |
#Author Shubham Nagaria. ShubhamLabs.
#Coder.
#subhamnagaria@gmail.com
import tkinter
from tkinter import *
from tkinter import Tk, scrolledtext, filedialog, messagebox
root = Tk(className=" TextEditor-ShubhamLabs") #name your texteditor in quotes
textPad = scrolledtext.ScrolledText(root, width=100, ... | [
2,
13838,
911,
549,
2763,
15196,
10312,
13,
911,
549,
2763,
43,
8937,
13,
201,
198,
2,
34,
12342,
13,
201,
198,
2,
7266,
2763,
77,
363,
10312,
31,
14816,
13,
785,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
201,
198,
11748... | 2.621333 | 375 |
from ...schemas import ICON_EVENT
from ...skosmos import get_collection_members
from ..base import BaseSchema
from ..general import get_contributors_field, get_date_range_time_range_location_group_field, get_url_field
from ..utils import years_from_date_range_time_range_location_group_field
ICON = ICON_EVENT
TYPES = ... | [
6738,
2644,
1416,
4411,
292,
1330,
314,
10943,
62,
20114,
3525,
198,
6738,
2644,
8135,
418,
16785,
1330,
651,
62,
43681,
62,
30814,
198,
6738,
11485,
8692,
1330,
7308,
27054,
2611,
198,
6738,
11485,
24622,
1330,
651,
62,
3642,
2455,
669... | 3.07971 | 138 |
from instabot import Bot
import os
import shutil
import time
# Dado un tweet (str) e imaxe (str '*.jpeg'), publica o contido en instagram
# ...
| [
6738,
916,
397,
313,
1330,
18579,
198,
11748,
28686,
198,
11748,
4423,
346,
198,
11748,
640,
198,
198,
2,
360,
4533,
555,
6126,
357,
2536,
8,
304,
545,
38231,
357,
2536,
705,
24620,
73,
22071,
33809,
1171,
64,
267,
542,
17305,
551,
... | 2.960784 | 51 |
import time
import logging
from functools import wraps
logging.basicConfig(level=logging.INFO,
format='[%(asctime)s] [%(levelname)s] %(message)s')
| [
11748,
640,
198,
11748,
18931,
198,
6738,
1257,
310,
10141,
1330,
27521,
198,
198,
6404,
2667,
13,
35487,
16934,
7,
5715,
28,
6404,
2667,
13,
10778,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,... | 2.310811 | 74 |
"""cssedit: PyQt specific stuff
"""
import sys
import os
import PyQt5.QtWidgets as qtw
import PyQt5.QtGui as gui
import PyQt5.QtCore as core
from .cssedit import parse_log_line, get_definition_from_file
| [
37811,
25471,
19312,
25,
9485,
48,
83,
2176,
3404,
198,
37811,
198,
11748,
25064,
198,
11748,
28686,
198,
11748,
9485,
48,
83,
20,
13,
48,
83,
54,
312,
11407,
355,
10662,
4246,
198,
11748,
9485,
48,
83,
20,
13,
48,
83,
8205,
72,
3... | 2.6125 | 80 |
from django.utils.crypto import get_random_string
from cashbook.tests.test_functional import CashbookTestCase
from disbursements.templatetags.disbursements import format_sortcode
| [
6738,
42625,
14208,
13,
26791,
13,
29609,
78,
1330,
651,
62,
25120,
62,
8841,
198,
198,
6738,
5003,
2070,
13,
41989,
13,
9288,
62,
45124,
1330,
16210,
2070,
14402,
20448,
198,
6738,
595,
21780,
902,
13,
11498,
489,
265,
316,
3775,
13,... | 3.54902 | 51 |
# Copyright 2017 QuantRocket - 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 applicable law or ... | [
2,
15069,
2177,
16972,
50218,
532,
1439,
6923,
33876,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,... | 3.053857 | 687 |
import copy
from flask import g
from app.comm.TableModule import TableModule
from app.comm.SqlExecute import SqlExecute
from app.unit_config import default_result, default_limit_size, depth_post_map
| [
11748,
4866,
198,
6738,
42903,
1330,
308,
198,
6738,
598,
13,
9503,
13,
10962,
26796,
1330,
8655,
26796,
198,
6738,
598,
13,
9503,
13,
50,
13976,
23002,
1133,
1330,
311,
13976,
23002,
1133,
198,
6738,
598,
13,
20850,
62,
11250,
1330,
... | 3.491228 | 57 |
"""No identified need to test plotting functionality."""
| [
37811,
2949,
5174,
761,
284,
1332,
29353,
11244,
526,
15931,
198
] | 5.181818 | 11 |
'''MobileNetV2 in PyTorch.
See the paper "Inverted Residuals and Linear Bottlenecks:
Mobile Networks for Classification, Detection and Segmentation" for more details.
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from se import SEConv2d, SELinear
THRESHOLD = 4e-3
__all__ = ['SEMaskMobileNet... | [
7061,
6,
17066,
7934,
53,
17,
287,
9485,
15884,
354,
13,
198,
198,
6214,
262,
3348,
366,
818,
13658,
1874,
312,
723,
82,
290,
44800,
14835,
11925,
721,
591,
25,
198,
17066,
27862,
329,
40984,
11,
46254,
290,
1001,
5154,
341,
1,
329,... | 2.296226 | 530 |
import requests
if __name__ == "__main__":
main() | [
201,
198,
11748,
7007,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
201,
198,
220,
220,
220,
1388,
3419
] | 2.030303 | 33 |
import frappe, re
from frappe import _
from frappe.utils import cstr
from erpnext.regional.india import states, state_numbers
from erpnext.controllers.taxes_and_totals import get_itemised_tax, get_itemised_taxable_amount
# don't remove this function it is used in tests
def test_method():
'''test function'''
return '... | [
11748,
5306,
27768,
11,
302,
198,
6738,
5306,
27768,
1330,
4808,
198,
6738,
5306,
27768,
13,
26791,
1330,
269,
2536,
198,
6738,
1931,
79,
19545,
13,
2301,
1538,
13,
521,
544,
1330,
2585,
11,
1181,
62,
77,
17024,
198,
6738,
1931,
79,
... | 3.102804 | 107 |
import numpy
import pytest
import cupy
from cupy import cublas
from cupy import testing
from cupy.testing import _attr
| [
11748,
299,
32152,
198,
11748,
12972,
9288,
198,
198,
11748,
6508,
88,
198,
6738,
6508,
88,
1330,
13617,
21921,
198,
6738,
6508,
88,
1330,
4856,
198,
6738,
6508,
88,
13,
33407,
1330,
4808,
35226,
628,
628,
628,
628,
198
] | 3.282051 | 39 |
import re
import csv
# Unpaywall citing, cited list based on mag ids
unpaywall_citing_cited_file = open('AdditionalOutputs/unpaywallmag_references.tsv', 'w')
fieldnames = ['citing_mag_id', 'cited_mag_id']
writer = csv.DictWriter(unpaywall_citing_cited_file, delimiter="\t", fieldnames=fieldnames)
citation_pattern = r... | [
11748,
302,
198,
11748,
269,
21370,
198,
198,
2,
791,
15577,
11930,
12988,
11,
9181,
1351,
1912,
319,
2153,
220,
2340,
220,
198,
403,
15577,
11930,
62,
66,
1780,
62,
66,
863,
62,
7753,
796,
1280,
10786,
17699,
26410,
82,
14,
403,
15... | 2.442907 | 289 |
import FWCore.ParameterSet.Config as cms
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltMinBiasHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltMinBiasHI.HLTPaths = ["HLT_PAL1MinimumBiasHF_OR_SinglePixelTrack_ForSkim_v*"]
hltMinBiasHI.throw = False
hltMinBiasHI.andOr = True
# s... | [
11748,
48849,
14055,
13,
36301,
7248,
13,
16934,
355,
269,
907,
198,
198,
2,
367,
27734,
5391,
84,
261,
7616,
198,
11748,
38312,
48344,
13,
6581,
51,
10379,
1010,
13,
71,
2528,
11922,
4971,
62,
66,
12463,
198,
71,
2528,
9452,
33,
44... | 2.565836 | 281 |
import datetime
from calendar import monthrange
import calendar
import numpy as np
#######
#For generate origin repayment schedule date and days columns
#######
start_day = 1
start_month = 1
start_year = 2012
num_installment = 12
installment_time_period = 'months'
change_col_idx = 1
change_row_idx = 2
change_val = 10... | [
11748,
4818,
8079,
198,
6738,
11845,
1330,
1227,
9521,
198,
11748,
11845,
198,
11748,
299,
32152,
355,
45941,
198,
4242,
21017,
198,
2,
1890,
7716,
8159,
36411,
7269,
3128,
290,
1528,
15180,
198,
4242,
21017,
198,
198,
9688,
62,
820,
79... | 2.564254 | 677 |
from __future__ import print_function
import argparse
import json
from boto.mturk.price import Price
from boto.mturk.question import HTMLQuestion
from boto.mturk.connection import MTurkRequestError
import os
import simpleamt
import sys
import inspect
DEBUG = printPlus
# Motorbike 20-40
# Dog 40-70
# Person 40-70
M... | [
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
11748,
1822,
29572,
198,
11748,
33918,
198,
6738,
275,
2069,
13,
16762,
333,
74,
13,
20888,
1330,
7886,
198,
6738,
275,
2069,
13,
16762,
333,
74,
13,
25652,
1330,
11532,
24361,
198,
... | 2.225866 | 1,616 |
from maya import cmds
from maya.api import OpenMaya
from maya.api import OpenMayaAnim
from functools import partial
from skinning.utils import api
from skinning.vendor import apiundo
def get_cluster_fn(node):
"""
Loop over an objects history and return the skin cluster api node that
is part dependency gr... | [
6738,
743,
64,
1330,
23991,
82,
198,
6738,
743,
64,
13,
15042,
1330,
4946,
6747,
64,
198,
6738,
743,
64,
13,
15042,
1330,
4946,
6747,
64,
35320,
198,
6738,
1257,
310,
10141,
1330,
13027,
198,
198,
6738,
4168,
768,
13,
26791,
1330,
4... | 2.859691 | 841 |
import re
REGEX = {
"name": r"name is (?P<name>[A-Z][A-Za-z]+ [A-Z][A-Za-z]+)",
"age": r" (?P<age>[0-9]{2}) years",
"date": r"on (?P<date>[0-9]{2}-[0-9]{2}-[0-9]{4})."
}
db = []
while True:
line = input()
if "make migrations" == line:
break
if line[len(line) - 1] != '.':
con... | [
11748,
302,
198,
198,
31553,
6369,
796,
1391,
198,
220,
220,
220,
366,
3672,
1298,
374,
1,
3672,
318,
357,
30,
47,
27,
3672,
36937,
32,
12,
57,
7131,
32,
12,
57,
64,
12,
89,
48688,
685,
32,
12,
57,
7131,
32,
12,
57,
64,
12,
... | 2.015504 | 516 |
"""
NOTE on google sheets format:
The google sheets document must have the following:
Columns A and B from cell 2 down are all the sample details
Column A is the name of the detail and Column B is the value of the detail
Columns B and onwards can be anything but there must be three speicifc... | [
37811,
198,
220,
220,
220,
24550,
319,
23645,
15747,
5794,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
383,
23645,
15747,
3188,
1276,
423,
262,
1708,
25,
198,
220,
220,
220,
29201,
82,
317,
290,
347,
422,
... | 3.456989 | 186 |
import json
import base64
import boto3
import uuid
import traceback
| [
11748,
33918,
198,
11748,
2779,
2414,
198,
11748,
275,
2069,
18,
198,
11748,
334,
27112,
198,
11748,
12854,
1891,
628,
198
] | 3.333333 | 21 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 28 22:41:26 2017
@author: lamahamadeh
"""
'''
Case Study about Language Processing
'''
#counting words
#---------------
text = "This is a test text. We're keping this text short to keep things manageable." #test text
#Using loops
#-----------
d... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
41972,
319,
30030,
3158,
2579,
2534,
25,
3901,
25,
2075,
2177,
198,
198,
31,
9800,
25,
30592,
993,
32... | 3.221295 | 2,038 |
from dataclasses import dataclass
from bindings.csw.brief_record_type import BriefRecordType
__NAMESPACE__ = "http://www.opengis.net/cat/csw/2.0.2"
| [
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
198,
6738,
34111,
13,
66,
2032,
13,
65,
3796,
62,
22105,
62,
4906,
1330,
22821,
23739,
6030,
198,
198,
834,
45,
29559,
47,
11598,
834,
796,
366,
4023,
1378,
2503,
13,
404,
1516,
271,
1... | 2.631579 | 57 |
# -*- coding: utf-8 -*-
'''check and clean and export as .csv
- 150602 pike aTimeLogger2 date into .csv
- 150601 make handlog export all date into *_all.csv
- 150525 make handlog wxport 2types files
'''
import os
import sys
import fnmatch
def _load_atl(flines,fname):
"""load and pick time log from aTimeLogge... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
7061,
6,
9122,
290,
3424,
290,
10784,
355,
764,
40664,
198,
12,
6640,
31418,
279,
522,
257,
7575,
11187,
1362,
17,
3128,
656,
764,
40664,
198,
12,
6640,
41706,
787,
10... | 1.723526 | 1,577 |
import asyncio
import aiormq
| [
11748,
30351,
952,
198,
11748,
257,
72,
579,
80,
628
] | 3 | 10 |
"""Embeds for Timezone Legends discord bot."""
import time
import discord
from dateutil.parser import parse # pip install python-dateutil
from pytz import timezone
from datetime import datetime
"""
embed = discord.Embed(colour=discord.Colour(0x5c0708), description="Listing all Events that matched your request (**if ... | [
37811,
31567,
5379,
329,
3862,
11340,
14270,
36446,
10214,
526,
15931,
198,
11748,
640,
198,
11748,
36446,
198,
6738,
3128,
22602,
13,
48610,
1330,
21136,
1303,
7347,
2721,
21015,
12,
4475,
22602,
198,
6738,
12972,
22877,
1330,
640,
11340,
... | 2.791789 | 682 |
import hashlib
import shutil
import requests
import os
from config import constants
| [
11748,
12234,
8019,
198,
11748,
4423,
346,
198,
11748,
7007,
198,
11748,
28686,
198,
6738,
4566,
1330,
38491,
628,
628,
198
] | 4.190476 | 21 |
import time, os
import tomtomSearch
from flask_bootstrap import Bootstrap
from flask import Flask, render_template, request, redirect, flash, session, jsonify, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.val... | [
11748,
640,
11,
28686,
201,
198,
11748,
16667,
39532,
18243,
201,
198,
6738,
42903,
62,
18769,
26418,
1330,
18892,
26418,
201,
198,
6738,
42903,
1330,
46947,
11,
8543,
62,
28243,
11,
2581,
11,
18941,
11,
7644,
11,
6246,
11,
33918,
1958,... | 2.643032 | 409 |
# Copyright 2016-2021, Pulumi 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 required by applicable law or agreed t... | [
2,
15069,
1584,
12,
1238,
2481,
11,
21624,
12994,
10501,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
1... | 3.669091 | 275 |
# generate data from bag images
from PIL import Image
from pathlib import Path
import os, glob # manipulate file or directory
import numpy as np
if __name__ == '__main__':
DA = DataArrangement()
X_not_traking, Y_not_traking, X_traking, Y_traking = DA.load_data()
| [
2,
7716,
1366,
422,
6131,
4263,
198,
198,
6738,
350,
4146,
1330,
7412,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
28686,
11,
15095,
220,
1303,
18510,
2393,
393,
8619,
198,
11748,
299,
32152,
355,
45941,
628,
198,
198,
361,
11593,
... | 2.905263 | 95 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# flask_restapi import
from flask_restapi.views import APIMethodView
from .models import Book
from .forms import BookForm
| [
2,
0,
1220,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
42903,
62,
2118,
15042,
1330,
198,
6738,
42903,
62,
2118,
15042,
13,
33571,
1330,
3486,
3955,
316,
2065,
76... | 2.898305 | 59 |
# -*- coding:utf-8 -*-
from django.db import models
from account.models import User
# from cmdb.types import get_instance
from cmdb.models import Model
| [
2,
532,
9,
12,
19617,
25,
40477,
12,
23,
532,
9,
12,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
198,
6738,
1848,
13,
27530,
1330,
11787,
198,
2,
422,
23991,
65,
13,
19199,
1330,
651,
62,
39098,
198,
6738,
23991,
65,
13,
... | 3.208333 | 48 |
import math
G = [[(2,0)],
[(0,20), (3,20)],
[(4,-60)],
[(5,-60)],
[]]
win = True
distance, _ = Bellman_ford(G)
for i in distance:
if i <= -100:
win=False
print("winnable" if win else "hopeless")
| [
11748,
10688,
198,
198,
38,
796,
16410,
7,
17,
11,
15,
8,
4357,
198,
220,
220,
220,
220,
47527,
15,
11,
1238,
828,
357,
18,
11,
1238,
8,
4357,
198,
220,
220,
220,
220,
47527,
19,
12095,
1899,
8,
4357,
198,
220,
220,
220,
220,
... | 1.933333 | 120 |
from django.contrib import messages
from dfirtrack_config.models import SystemExporterMarkdownConfigModel
from dfirtrack_main.logger.default_logger import warning_logger
import os
def check_config(request):
""" check variables in config """
# get config model
model = SystemExporterMarkdownConfigModel.obje... | [
6738,
42625,
14208,
13,
3642,
822,
1330,
6218,
198,
6738,
47764,
343,
11659,
62,
11250,
13,
27530,
1330,
4482,
3109,
26634,
9704,
2902,
16934,
17633,
198,
6738,
47764,
343,
11659,
62,
12417,
13,
6404,
1362,
13,
12286,
62,
6404,
1362,
13... | 2.7888 | 625 |
# -*- coding: utf8 -*-
from header_factions import *
####################################################################################################################
# Each faction record contains the following fields:
# 1) Faction id: used for referencing factions in other files.
# The prefix fac_ is automa... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
23,
532,
9,
12,
198,
6738,
13639,
62,
69,
4658,
1330,
1635,
198,
198,
29113,
29113,
29113,
14468,
4242,
198,
2,
220,
5501,
17710,
1700,
4909,
262,
1708,
7032,
25,
198,
2,
220,
352,
8,
41552,
4... | 2.117313 | 20,927 |
#MAIN PROGRAM STARTS HERE:
num = int(input('Enter the number of rows and columns for the square: '))
for x in range(0, num):
i = x + 1
for y in range(0, num):
print ('{} '.format(i), end='')
i += num
print() | [
2,
5673,
1268,
46805,
25424,
4694,
15698,
25,
198,
22510,
796,
493,
7,
15414,
10786,
17469,
262,
1271,
286,
15274,
290,
15180,
329,
262,
6616,
25,
705,
4008,
198,
198,
1640,
2124,
287,
2837,
7,
15,
11,
997,
2599,
198,
220,
220,
220,... | 2.383838 | 99 |
import pickle
import torch
import torch.nn as nn
from torchtext.data import Field
from common.paths import ROOT_RELATIVE_DIR, MODEL_PATH
from models.bert_layer import BERTLayer
from probability.tables import TransitionTable
from utility.model_parameter import Configuration, ModelParameter
| [
11748,
2298,
293,
198,
198,
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
6738,
28034,
5239,
13,
7890,
1330,
7663,
198,
198,
6738,
2219,
13,
6978,
82,
1330,
15107,
2394,
62,
16448,
37045,
62,
34720,
11,
19164,
3698,
6... | 3.75641 | 78 |
import sys
import math
from time import gmtime, strftime
sys.dont_write_bytecode = True
def readInput(Plookup, warehouses, orders, drones):
if(len(sys.argv)==1):
nRow, nCol, nD, T, L = list(map(int, input().split()))
P = int(input())
Plookup.extend(list(map(int, input().split())))
... | [
11748,
25064,
198,
11748,
10688,
198,
6738,
640,
1330,
308,
76,
2435,
11,
965,
31387,
198,
17597,
13,
67,
756,
62,
13564,
62,
26327,
8189,
796,
6407,
628,
198,
4299,
1100,
20560,
7,
3646,
566,
929,
11,
43675,
11,
6266,
11,
15382,
25... | 2.014937 | 1,339 |
from flask import Flask
from flask_restful import Api
from saml2 import saml, samlp
from saml2.config import IdPConfig
from saml2.mdstore import MetadataStore
from saml2.server import Server
from app.config import config
from app.database import db
from app.resources.idp_config import IdpConfigResource
from app.resour... | [
6738,
42903,
1330,
46947,
198,
6738,
42903,
62,
2118,
913,
1330,
5949,
72,
198,
6738,
6072,
75,
17,
1330,
6072,
75,
11,
6072,
34431,
198,
6738,
6072,
75,
17,
13,
11250,
1330,
5121,
47,
16934,
198,
6738,
6072,
75,
17,
13,
9132,
8095,... | 3.546392 | 194 |
import os
os.mkdir("3D")
os.chdir("3D")
print("Configuring 3D...")
print("Fetching Intro...")
os.system("wget https://raw.githubusercontent.com/mrobraven/majestic-pi/master/majestic-pi/intro.mp4")
print("Fetching 3D Feature...")
os.system("wget https://raw.githubusercontent.com/mrobraven/majestic-pi/master/majestic-pi/... | [
11748,
28686,
198,
418,
13,
28015,
15908,
7203,
18,
35,
4943,
198,
418,
13,
354,
15908,
7203,
18,
35,
4943,
198,
4798,
7203,
16934,
870,
513,
35,
9313,
8,
198,
4798,
7203,
37,
7569,
278,
37219,
9313,
8,
198,
418,
13,
10057,
7203,
... | 2.317999 | 2,239 |
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or mo... | [
2,
198,
2,
28373,
2393,
329,
262,
45368,
28413,
10314,
27098,
13,
198,
2,
198,
2,
770,
2393,
857,
691,
3994,
257,
6356,
286,
262,
749,
2219,
3689,
13,
1114,
257,
198,
2,
1336,
1351,
766,
262,
10314,
25,
198,
2,
2638,
1378,
2503,
... | 3.122559 | 2,970 |
import datetime
import typing
import localization
from configurator import Config
def get_restriction_time(string: str) -> typing.Optional[int]:
"""
Get user restriction time in seconds
:param string: string to check for multiplier. The last symbol should be one of:
"m" for minutes, "h" for hours... | [
11748,
4818,
8079,
198,
11748,
19720,
198,
11748,
42842,
198,
6738,
4566,
333,
1352,
1330,
17056,
628,
198,
4299,
651,
62,
2118,
46214,
62,
2435,
7,
8841,
25,
965,
8,
4613,
19720,
13,
30719,
58,
600,
5974,
198,
220,
220,
220,
37227,
... | 2.694981 | 777 |
import numpy as np
from syft.frameworks.torch.differential_privacy import pate
| [
11748,
299,
32152,
355,
45941,
198,
6738,
827,
701,
13,
19298,
19653,
13,
13165,
354,
13,
39799,
498,
62,
13776,
1590,
1330,
279,
378,
628
] | 3.2 | 25 |
#Programa ejemplo para usar funcin
#funcion sin parametros
imprimir_mensaje()
#funcion con parametros
valorA= "Hola mundo"
valorB= "Funcin con parametros"
imprimir_mensaje_param(valorA, valorB)
| [
2,
15167,
64,
304,
73,
18856,
78,
31215,
514,
283,
1257,
17879,
220,
198,
198,
2,
20786,
295,
7813,
5772,
316,
4951,
198,
198,
320,
1050,
13057,
62,
45535,
1228,
68,
3419,
220,
220,
220,
220,
198,
198,
2,
20786,
295,
369,
5772,
31... | 2.255556 | 90 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
#
# 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
#
# ... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
15069,
357,
34,
8,
12131,
9072,
2351,
288,
6,
36,
83,
8401,
1338,
34961,
274,
357,
34,
37379,
8,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
1062... | 2.358939 | 1,432 |
from cStringIO import StringIO
import inspect
import textwrap
import pytest
from twisted.internet import defer, task
from theseus._tracer import Function, Tracer
def test_function_of_frame():
"""
Function.of_frame examines a frame's code for its filename and code name.
"""
frame = FakeFrame(FakeC... | [
6738,
269,
10100,
9399,
1330,
10903,
9399,
198,
11748,
10104,
198,
11748,
2420,
37150,
198,
198,
11748,
12972,
9288,
198,
6738,
19074,
13,
37675,
1330,
29135,
11,
4876,
198,
198,
6738,
777,
385,
13557,
2213,
11736,
1330,
15553,
11,
833,
... | 2.491571 | 2,610 |
from quickkart_api import app
from quickkart_api.models import Users
from flask_jwt import JWT, jwt_required, current_identity
from flask import abort
jwt = JWT(app,authenticate,identity) | [
6738,
2068,
74,
433,
62,
15042,
1330,
598,
198,
6738,
2068,
74,
433,
62,
15042,
13,
27530,
1330,
18987,
198,
6738,
42903,
62,
73,
46569,
1330,
449,
39386,
11,
474,
46569,
62,
35827,
11,
1459,
62,
738,
414,
198,
6738,
42903,
1330,
15... | 3.186441 | 59 |
# -*- coding: utf-8 -*-
import sys, os
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinxcontrib.seometatwi... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
25064,
11,
28686,
198,
198,
2,
1002,
534,
10314,
2476,
257,
10926,
45368,
28413,
2196,
11,
1181,
340,
994,
13,
198,
2,
50032,
62,
82,
746,
28413,
796,
705,... | 3.27112 | 509 |
from omnia_timeseries.api import TimeseriesAPI, TimeseriesEnvironment | [
6738,
22284,
544,
62,
22355,
10640,
13,
15042,
1330,
3782,
10640,
17614,
11,
3782,
10640,
31441
] | 4.3125 | 16 |
from dimagi.utils.couch import CriticalSection
from corehq.apps.receiverwrapper.util import submit_form_locally
def form_requires_input(form):
"""
Returns True if the form has at least one question that requires input
"""
for question in form.get_questions([]):
if question["tag"] not in ("tri... | [
6738,
5391,
18013,
13,
26791,
13,
66,
7673,
1330,
17684,
16375,
198,
198,
6738,
4755,
71,
80,
13,
18211,
13,
260,
39729,
48553,
13,
22602,
1330,
9199,
62,
687,
62,
17946,
453,
628,
198,
4299,
1296,
62,
47911,
62,
15414,
7,
687,
2599... | 2.93985 | 133 |
import numpy as np
from scipy.integrate import simps
| [
11748,
299,
32152,
355,
45941,
198,
6738,
629,
541,
88,
13,
18908,
4873,
1330,
985,
862,
628,
198
] | 3.055556 | 18 |
#!/usr/bin/env python -OO
# encoding: utf-8
###########
# ORP - Open Robotics Platform
#
# Copyright (c) 2010 John Harrison, William Woodall
#
# 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 Softwa... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
532,
6684,
198,
2,
21004,
25,
3384,
69,
12,
23,
198,
198,
7804,
21017,
198,
2,
6375,
47,
532,
4946,
47061,
19193,
198,
2,
220,
198,
2,
15069,
357,
66,
8,
3050,
1757,
17281,
11,
3977,
... | 2.896337 | 1,447 |
import inspect
import sys
from uma import message
from rrtest.check import Error, get_protocol_response
from rrtest import Unknown
from oictest import check
__author__ = 'roland'
CLASS_CACHE = {}
| [
11748,
10104,
198,
11748,
25064,
198,
6738,
334,
2611,
1330,
3275,
198,
6738,
374,
81,
9288,
13,
9122,
1330,
13047,
11,
651,
62,
11235,
4668,
62,
26209,
198,
6738,
374,
81,
9288,
1330,
16185,
198,
6738,
267,
713,
395,
1330,
2198,
198,... | 3.225806 | 62 |
import os
import cv2
import glob
import logging
import numpy as np
from pathlib import Path
import torch
from torch.autograd import Variable
import torch.distributed as dist
def generate_alphabets(alphabet_path):
"""
:param alphabet_path: .
:return: .
"""
with open(alphabet_path, 'r', enco... | [
11748,
28686,
198,
11748,
269,
85,
17,
198,
11748,
15095,
198,
11748,
18931,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
3108,
8019,
1330,
10644,
198,
198,
11748,
28034,
198,
6738,
28034,
13,
2306,
519,
6335,
1330,
35748,
198,
11748,
... | 2.270525 | 2,972 |
#!/usr/bin/env python
from smoothie.plugins.interfaces import run as interfaces
from smoothie.plugins.list_networks import run as list_networks
from smoothie.plugins.target_network import run as target_network
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
6738,
7209,
494,
13,
37390,
13,
3849,
32186,
1330,
1057,
355,
20314,
198,
6738,
7209,
494,
13,
37390,
13,
4868,
62,
3262,
5225,
1330,
1057,
355,
1351,
62,
3262,
5225,
198,
6738,
... | 3.701754 | 57 |
import asyncio
import threading
import time
import pytest
from aiohttp import ClientSession
from mmpy_bot import Settings
from mmpy_bot.threadpool import ThreadPool
from mmpy_bot.webhook_server import NoResponse, WebHookServer
| [
11748,
30351,
952,
198,
11748,
4704,
278,
198,
11748,
640,
198,
198,
11748,
12972,
9288,
198,
6738,
257,
952,
4023,
1330,
20985,
36044,
198,
198,
6738,
285,
3149,
88,
62,
13645,
1330,
16163,
198,
6738,
285,
3149,
88,
62,
13645,
13,
16... | 3.397059 | 68 |
import urllib.request
import json
import pprint
url = 'http://localhost:18080/kabusapi/ranking' #?type=1&ExchangeDivision=ALL
params = { 'type': 15 } #type - 1:2: 3: 4: 5:TICK 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
params['ExchangeDivision'] = 'S' #ExchangeDivision - ALL:T: T1: T2: TM: JQ:JASDAQ M: FK: S:
req = urllib.re... | [
11748,
2956,
297,
571,
13,
25927,
198,
11748,
33918,
198,
11748,
279,
4798,
198,
198,
6371,
796,
705,
4023,
1378,
36750,
25,
15259,
1795,
14,
74,
46844,
15042,
14,
28405,
6,
1303,
30,
4906,
28,
16,
5,
3109,
3803,
24095,
1166,
28,
70... | 2.270677 | 399 |
from flask import Blueprint, jsonify, make_response
from flask.views import MethodView
from sfa_api import spec, json
from sfa_api.schema import ZoneListSchema
from sfa_api.utils.storage import get_storage
from sfa_api.utils.request_handling import validate_latitude_longitude
spec.components.parameter(
'zone... | [
6738,
42903,
1330,
39932,
11,
33918,
1958,
11,
787,
62,
26209,
198,
6738,
42903,
13,
33571,
1330,
11789,
7680,
628,
198,
6738,
264,
13331,
62,
15042,
1330,
1020,
11,
33918,
198,
6738,
264,
13331,
62,
15042,
13,
15952,
2611,
1330,
13035,... | 2.309091 | 605 |
from random import randint
n = (randint(1, 9), randint(1, 9), randint(1, 9), randint(1, 9), randint(1, 9))
print('Os nmeros sorteados foram: ', end='')
for c in n:
print(c, end=' ')
print(f'\nO maior valor sorteado foi: {max(n)}')
print(f'O menor valor sorteado foi: {min(n)}')
| [
6738,
4738,
1330,
43720,
600,
198,
77,
796,
357,
25192,
600,
7,
16,
11,
860,
828,
43720,
600,
7,
16,
11,
860,
828,
43720,
600,
7,
16,
11,
860,
828,
43720,
600,
7,
16,
11,
860,
828,
43720,
600,
7,
16,
11,
860,
4008,
198,
4798,
... | 2.220472 | 127 |
import requests
from localstack.http import Response, Router
from localstack.http.adapters import RouterListener
from localstack.utils.testutil import proxy_server
| [
11748,
7007,
198,
198,
6738,
1957,
25558,
13,
4023,
1330,
18261,
11,
48538,
198,
6738,
1957,
25558,
13,
4023,
13,
324,
12126,
1330,
48538,
33252,
198,
6738,
1957,
25558,
13,
26791,
13,
9288,
22602,
1330,
15741,
62,
15388,
628
] | 4.25641 | 39 |
from cx_Freeze import setup, Executable
import sys
base = None
if sys.platform == "win32":
base = "Win32GUI"
executables = [Executable("Archer.py", base=base, icon="favicon.ico")]
setup(name="Archer",
version="1.0.0",
options={"build_exe": {"packages": ["tkinter", "mysql", "PIL", "time",... | [
6738,
43213,
62,
11146,
2736,
1330,
9058,
11,
8393,
18187,
201,
198,
11748,
25064,
201,
198,
201,
198,
8692,
796,
6045,
201,
198,
201,
198,
361,
25064,
13,
24254,
6624,
366,
5404,
2624,
1298,
201,
198,
220,
220,
220,
2779,
796,
366,
... | 2.432331 | 266 |
# bung 11 - Aufgabe 1
# Mitarbeiter-Kartei
# Bereitgestellt von M. Drews im Wintersemester 2021/22
# Funktionen
# Programmablauf
print("\n")
trenner(120)
print("Mitarbeiter-Kartei")
trenner(120)
trenner(120)
ma_kartei = []
programm = True
while programm:
print("Was mchten Sie tun?")
gueltige_eingabe = Fa... | [
2,
43974,
1367,
532,
317,
3046,
70,
11231,
352,
198,
2,
337,
7940,
1350,
2676,
12,
42,
433,
20295,
198,
2,
37951,
270,
3495,
695,
83,
18042,
337,
13,
18624,
82,
545,
10633,
325,
6880,
353,
33448,
14,
1828,
198,
198,
2,
37299,
5378... | 1.749553 | 559 |
import maya.api.OpenMaya as om
from . import asciitreemixin, asciiattribute, asciiplug
from .collections import hashtable, weakreflist, notifylist
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
def namespaceChanged(self, oldNamespace, newNamespace):
"""... | [
11748,
743,
64,
13,
15042,
13,
11505,
6747,
64,
355,
39030,
198,
198,
6738,
764,
1330,
355,
979,
270,
260,
368,
844,
259,
11,
355,
979,
72,
42348,
11,
355,
979,
72,
16875,
198,
6738,
764,
4033,
26448,
1330,
20267,
540,
11,
4939,
2... | 2.255094 | 5,300 |
"""
(c) Copyright 2015-2016 Hewlett-Packard Enterprise Company L.P.
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... | [
37811,
198,
7,
66,
8,
15069,
1853,
12,
5304,
30446,
15503,
12,
11869,
446,
14973,
5834,
406,
13,
47,
13,
198,
198,
26656,
15385,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
5832,
743,
407,
779,... | 3.763819 | 199 |
"""
moviepy.video.fx.all is deprecated.
Use the fx method directly from the clip instance (e.g. ``clip.resize(...)``)
or import the function from moviepy.video.fx instead.
"""
import warnings
from moviepy.video.fx import * # noqa F401,F403
warnings.warn(f"\nMoviePy: {__doc__}", UserWarning)
| [
37811,
198,
41364,
9078,
13,
15588,
13,
21373,
13,
439,
318,
39224,
13,
198,
198,
11041,
262,
277,
87,
2446,
3264,
422,
262,
10651,
4554,
357,
68,
13,
70,
13,
7559,
15036,
13,
411,
1096,
7,
23029,
15506,
8,
198,
273,
1330,
262,
21... | 2.911765 | 102 |
from .resource import *
from .dist_manager import *
from ...utils import get_cpu_count, get_gpu_count
| [
6738,
764,
31092,
1330,
1635,
198,
6738,
764,
17080,
62,
37153,
1330,
1635,
198,
6738,
2644,
26791,
1330,
651,
62,
36166,
62,
9127,
11,
651,
62,
46999,
62,
9127,
198
] | 3.4 | 30 |
print "This line will be printed."
x = "rachel"
if x == "rachel":
print "Rachel"
print "Hello, World!"
| [
4798,
366,
1212,
1627,
481,
307,
10398,
526,
198,
198,
87,
796,
366,
81,
9636,
1,
198,
361,
2124,
6624,
366,
81,
9636,
1298,
198,
220,
220,
220,
3601,
366,
44045,
1,
198,
198,
4798,
366,
15496,
11,
2159,
2474,
198
] | 2.658537 | 41 |
# pyonms.py
from dao import api, alarms, events, nodes
| [
2,
12972,
261,
907,
13,
9078,
198,
198,
6738,
288,
5488,
1330,
40391,
11,
36302,
11,
2995,
11,
13760,
628
] | 2.85 | 20 |
"""
Utility functions for Neural network
"""
import pandas as pd
from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
from sklearn.preprocessing import StandardScaler
from keras.layers import Dense, BatchNormalization, Input, LeakyReLU, Dropout
from keras.models import Model, load_model
from ke... | [
37811,
198,
18274,
879,
5499,
329,
47986,
3127,
198,
37811,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
41927,
292,
13,
13345,
10146,
1330,
12556,
1273,
33307,
11,
44048,
35972,
2202,
3646,
378,
559,
11,
9104,
9787,
4122,
198,
6738... | 3.545455 | 99 |
"""=============================================================
~/fn_portal/fn_portal/tests/api/test_FN026.py
Created: 26 May 2021 18:01:30
DESCRIPTION:
This file contains a number of unit tests that verify that the api
endpoint for FN026 objects works as expected:
+ the fn026 list returns all of the spaces... | [
37811,
10052,
4770,
25609,
28,
198,
93,
14,
22184,
62,
634,
282,
14,
22184,
62,
634,
282,
14,
41989,
14,
15042,
14,
9288,
62,
43221,
45987,
13,
9078,
198,
15622,
25,
2608,
1737,
33448,
1248,
25,
486,
25,
1270,
628,
22196,
40165,
25,... | 3.604082 | 245 |
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | [
2,
15069,
6186,
13,
785,
11,
3457,
13,
393,
663,
29116,
13,
1439,
6923,
33876,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
11074,
921,
198,
2,
743,
407,
779,
428,
2393,
2845,
... | 3.644231 | 208 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement # Required in 2.5
import subprocess
import os
import fnmatch
import gzip
import re
import commands
import getopt
import sys
import signal
import resource
import time
import struct
import random
from random import choice
from subproces... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
6738,
11593,
37443,
834,
1330,
351,
62,
26090,
220,
1303,
20906,
287,
362,
13,
20,
198,
11748,
850,
14681,
198,
... | 2.156709 | 1,908 |
"""
*******************************************************
* Copyright (C) 2017 MindsDB Inc. <copyright@mindsdb.com>
*
* This file is part of MindsDB Server.
*
* MindsDB Server can not be copied and/or distributed without the express
* permission of MindsDB Inc
**************************************************... | [
37811,
198,
17174,
8412,
2466,
8162,
198,
1635,
15069,
357,
34,
8,
2177,
10175,
82,
11012,
3457,
13,
1279,
22163,
4766,
31,
10155,
82,
9945,
13,
785,
29,
198,
1635,
198,
1635,
770,
2393,
318,
636,
286,
10175,
82,
11012,
9652,
13,
19... | 3.683871 | 155 |
import pygame
from random import randint
from time import sleep
import data
SCREEN_SIZE = 700
STAGE_SIZE = 175 # 175 is largest size without bezels for 700 x 700 window
sizeof_rect = int(SCREEN_SIZE / STAGE_SIZE)
bezel = int((SCREEN_SIZE - (STAGE_SIZE * sizeof_rect)) / 2)
directions = []
for x i... | [
11748,
12972,
6057,
201,
198,
6738,
4738,
1330,
43720,
600,
201,
198,
6738,
640,
1330,
3993,
201,
198,
201,
198,
11748,
1366,
201,
198,
201,
198,
6173,
2200,
1677,
62,
33489,
796,
13037,
201,
198,
2257,
11879,
62,
33489,
796,
19038,
2... | 2.2 | 665 |