content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import os from .kface import KFace from .ms1m import MS1M from .bin_datasets import BIN from .ijb import IJB
[ 11748, 28686, 198, 198, 6738, 764, 74, 2550, 1330, 509, 32388, 198, 6738, 764, 907, 16, 76, 1330, 6579, 16, 44, 198, 6738, 764, 8800, 62, 19608, 292, 1039, 1330, 347, 1268, 198, 6738, 764, 2926, 65, 1330, 314, 47858, 628 ]
2.707317
41
"""""" # Standard library modules. import abc # Third party modules. from django.core.mail import send_mail from django.template import Engine, Context # Local modules. from .models import RunState # Globals and constants variables.
[ 15931, 15931, 15931, 198, 198, 2, 8997, 5888, 13103, 13, 198, 11748, 450, 66, 198, 198, 2, 10467, 2151, 13103, 13, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 198, 6738, 42625, 14208, 13, 28243, 1330, 7117, 11, ...
3.567164
67
#!/usr/bin/env python2 import random import itertools import numpy import sys import json import copy def make_bins_ltpFR3(semArray): """ Creates four equal-width bins of WAS scores, identical to those used in ltpFR2. Then combine the middle two to give three bins: low similarity, medium similarity, and h...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 11748, 4738, 198, 11748, 340, 861, 10141, 198, 11748, 299, 32152, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 4866, 628, 198, 4299, 787, 62, 65, 1040, 62, 2528, 79, 10913, 18...
2.229114
7,529
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ 2, 15069, 13130, 383, 12549, 22362, 320, 1352, 46665, 13, 1439, 6923, 33876, 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, ...
3.092702
507
from pyais.messages import NMEAMessage message = NMEAMessage(b"!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode()) # or message = NMEAMessage.from_string("!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode())
[ 6738, 279, 3972, 271, 13, 37348, 1095, 1330, 399, 11682, 2390, 7589, 198, 198, 20500, 796, 399, 11682, 2390, 7589, 7, 65, 40484, 32, 3824, 23127, 11, 16, 11, 16, 9832, 33, 11, 1314, 44, 3134, 4851, 830, 38, 30, 3046, 65, 36, 63, ...
1.984375
128
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:02:33 2019 @author: sercangul """ if __name__ == '__main__': n = int(input()) result = maxConsecutiveOnes(n) print(result)
[ 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, 2892, 7653, 220, 513, 678, 25, 2999, 25, 2091, 13130, 198, 198, 31, 9800, 25, 1055, 66, ...
2.255319
94
import numpy as np from .problem import Problem from .algorithm_genetic import GeneralEvolutionaryAlgorithm from .individual import Individual from .operators import CustomGenerator, nondominated_truncate, RandomGenerator, UniformGenerator import time
[ 11748, 299, 32152, 355, 45941, 198, 6738, 764, 45573, 1330, 20647, 198, 6738, 764, 282, 42289, 62, 5235, 5139, 1330, 3611, 15200, 2122, 560, 2348, 42289, 198, 6738, 764, 43129, 1330, 18629, 198, 6738, 764, 3575, 2024, 1330, 8562, 8645, ...
4.216667
60
# -*- coding: utf-8 -*- """ APNS Proxy Server """ import time import zmq import simplejson as json READ_TIMEOUT = 1500 # msec FLUSH_TIMEOUT = 5000 # msec COMMAND_ASK_ADDRESS = b'\1' COMMAND_SEND = b'\2' COMMAND_FEEDBACK = b'\3' DEVICE_TOKEN_LENGTH = 64 JSON_ALERT_KEY_SET = set(['body', 'action_loc_key', 'loc_ke...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2969, 8035, 38027, 9652, 198, 37811, 198, 198, 11748, 640, 198, 198, 11748, 1976, 76, 80, 198, 11748, 2829, 17752, 355, 33918, 628, 198, 15675, 62, 34694, 12...
2.269231
156
import sys sys.path.insert(0, '..') import numpy import time import ConfigParser import topicmodel if __name__ == "__main__": t0 = time.time() main() t1 = time.time() print "finished" print "time=", t1 - t0
[ 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 492, 11537, 628, 198, 11748, 299, 32152, 198, 11748, 640, 198, 11748, 17056, 46677, 198, 11748, 7243, 19849, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1...
2.473118
93
#coding:utf-8 # # id: bugs.core_4318 # title: Regression: Predicates involving PSQL variables/parameters are not pushed inside the aggregation # decription: # tracker_id: CORE-4318 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, i...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 198, 2, 4686, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11316, 13, 7295, 62, 3559, 1507, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 3310, 2234, 25, 14322, 16856, 74...
2.038715
1,214
#Import the json library to parse JSON file to Python import json #Import list of punctuation characters from the string library from string import punctuation as p #This method checks if the given word is a profanity #This method calculates the degree of profanity for a list of strings
[ 2, 20939, 262, 33918, 5888, 284, 21136, 19449, 2393, 284, 11361, 198, 11748, 33918, 198, 198, 2, 20939, 1351, 286, 21025, 2288, 3435, 422, 262, 4731, 5888, 198, 6738, 4731, 1330, 21025, 2288, 355, 279, 198, 198, 2, 1212, 2446, 8794, 6...
4.461538
65
from setuptools import setup import os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() #NEWS = open(os.path.join(here, 'NEWS.txt')).read() rootdir = os.path.dirname(os.path.abspath(__file__)) exec(open(rootdir + '/cerridwen/version.py').read()) version = __VERS...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 28686, 198, 198, 1456, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 15675, 11682, 796, 1280, 7, 418, 13, 6978, 13, 22179,...
2.440242
661
import datetime from abc import ABC, abstractmethod import pajbot
[ 11748, 4818, 8079, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 11748, 279, 1228, 13645, 628, 628 ]
3.5
20
#! /usr/bin/python3 # Description: Data_Ghost, concealing data into spaces and tabs making it imperceptable to human eyes. # Author: Ajay Dyavathi # Github: Radical Ajay # USAGE: # ghoster = Ghost('data.txt') # ghoster.ghost('ghosted.txt') # ghoster.unghost('ghosted.txt', 'unghosted.txt')
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 2, 12489, 25, 6060, 62, 32001, 11, 8571, 4272, 1366, 656, 9029, 290, 22524, 1642, 340, 11071, 984, 540, 284, 1692, 2951, 13, 198, 2, 6434, 25, 22028, 323, 23524, 615, 44202, 198, 2,...
2.93
100
# Image classification using AWS Sagemaker and Linear Learner # Program set up and import libraries import numpy as np import pandas as pd import os from sagemaker import get_execution_role role = get_execution_role() bucket = 'chi-hackathon-skin-images' # Import Data import boto3 from sagemaker import get_execution...
[ 2, 7412, 17923, 1262, 30865, 25605, 32174, 290, 44800, 8010, 1008, 198, 2, 6118, 900, 510, 290, 1330, 12782, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 198, 6738, 45229, 32174, 1330...
3.023077
650
#!/usr/bin/env python # -*- coding: utf-8 -*- # copyright 2015 Hamilton Kibbe <ham@hamiltonkib.be> and Paulo Henrique Silva # <ph.silva@gmail.com> # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 6634, 1853, 11582, 509, 571, 1350, 1279, 2763, 31, 2763, 9044, 74, 571, 13, 1350, 29, 290, 34410, 6752, 33865...
2.474655
7,536
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-19 17:47 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 24, 319, 1584, 12, 2919, 12, 1129, 1596, 25, 2857, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.719298
57
from distutils.version import LooseVersion import difflib import os import numpy as np from .core import Array from ..async import get_sync if LooseVersion(np.__version__) >= '1.10.0': allclose = np.allclose else:
[ 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 11748, 814, 8019, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 7295, 1330, 15690, 198, 6738, 11485, 292, 13361, 1330, 651, 62, 27261, 198, 198, 361...
2.973333
75
# more specific selections for Python 3 (ASkr, 2/2018) from launchpad_py.launchpad import Launchpad from launchpad_py.launchpad import LaunchpadMk2 from launchpad_py.launchpad import LaunchpadPro from launchpad_py.launchpad import LaunchControlXL from launchpad_py.launchpad import LaunchKeyMini from launchpad_py.launch...
[ 2, 517, 2176, 28224, 329, 11361, 513, 357, 1921, 38584, 11, 362, 14, 7908, 8, 198, 6738, 4219, 15636, 62, 9078, 13, 35681, 15636, 1330, 21225, 15636, 198, 6738, 4219, 15636, 62, 9078, 13, 35681, 15636, 1330, 21225, 15636, 44, 74, 17, ...
3.592233
103
import base64 import math import re from io import BytesIO import matplotlib.cm import numpy as np import torch import torch.nn from PIL import Image # Compute edge magnitudes from scipy import ndimage # Demo Utilities
[ 11748, 2779, 2414, 201, 198, 11748, 10688, 201, 198, 11748, 302, 201, 198, 6738, 33245, 1330, 2750, 4879, 9399, 201, 198, 201, 198, 11748, 2603, 29487, 8019, 13, 11215, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28034, 20...
2.55
100
"""In programming, a factory is a function that returns an object. Functions are easy to understand because they have clear inputs and outputs. Most gdsfactory functions take some inputs and return a Component object. Some of these inputs parameters are also functions. - Component: Object with. - name. - refe...
[ 37811, 818, 8300, 11, 257, 8860, 318, 257, 2163, 326, 5860, 281, 2134, 13, 198, 198, 24629, 2733, 389, 2562, 284, 1833, 780, 484, 423, 1598, 17311, 290, 23862, 13, 198, 6943, 308, 9310, 69, 9548, 5499, 1011, 617, 17311, 290, 1441, 2...
2.627753
1,816
# -*- coding: utf-8 -*- # Code will only work with Django >= 1.5. See tests/config.py import re from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core import validators from django.contrib.auth.models import BaseUserManager from oscar.apps.customer.abstract_models impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 6127, 481, 691, 670, 351, 37770, 18189, 352, 13, 20, 13, 4091, 5254, 14, 11250, 13, 9078, 198, 11748, 302, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, ...
3.179245
106
import pickle import numpy as np INPUT_FILENAME = 'NP_WEIGHTS.pck' PRECISION = 100 # Open weights fc1_k, fc1_b, fc2_k, fc2_b = pickle.load( open(INPUT_FILENAME, 'rb')) # Round them fc1_k, fc1_b, fc2_k, fc2_b = fc1_k*PRECISION//1, fc1_b*PRECISION//1, fc2_k*PRECISION//1, fc2_b*PRECISION*PRECISION//1 fc1_k, fc1_b, f...
[ 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 198, 1268, 30076, 62, 46700, 1677, 10067, 796, 705, 22182, 62, 8845, 34874, 13, 79, 694, 6, 198, 47, 38827, 42446, 796, 1802, 198, 198, 2, 4946, 19590, 198, 16072, 16, 62, 7...
2.131124
1,388
import cv2 import numpy as np import random img = cv2.imread('../../Assets/Images/flower-white.jpeg', 1) imgInfo = img.shape height = imgInfo[0] width = imgInfo[1] cv2.imshow('img', img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgG = cv2.GaussianBlur(gray, (3, 3), 0) dst = cv2.Canny(img, 50, 50) cv2.imshow(...
[ 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 198, 9600, 796, 269, 85, 17, 13, 320, 961, 10786, 40720, 40720, 8021, 1039, 14, 29398, 14, 25547, 12, 11186, 13, 73, 22071, 3256, 352, 8, 198, 198, ...
2.09697
165
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time from avod.builders import optimizer_builder from avod.core import trainer_utils from avod.core import summary_utils slim = tf.contrib.slim def train(m...
[ 37811, 11242, 3213, 2746, 21997, 13, 198, 198, 1212, 2393, 3769, 257, 14276, 3047, 2446, 284, 4512, 257, 198, 11242, 3213, 17633, 13, 198, 37811, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, ...
2.285084
3,399
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _
[ 11748, 9874, 292, 979, 72, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, ...
3.395349
43
import os from tempfile import NamedTemporaryFile import boto3 from moto import mock_s3 import pandas as pd import pandavro as pdx import pickle import pytest
[ 11748, 28686, 198, 6738, 20218, 7753, 1330, 34441, 12966, 5551, 8979, 198, 198, 11748, 275, 2069, 18, 198, 6738, 285, 2069, 1330, 15290, 62, 82, 18, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 19798, 615, 305, 355, 279, 34350, 1...
3.12963
54
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-12-08 11:13 from __future__ import unicode_literals from django.db import migrations from company import helpers
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 940, 319, 1584, 12, 1065, 12, 2919, 1367, 25, 1485, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.887097
62
import pytest import asyncio from system.utils import * from random import randrange as rr import hashlib import time from datetime import datetime, timedelta, timezone from indy import payment import logging logger = logging.getLogger(__name__)
[ 11748, 12972, 9288, 198, 11748, 30351, 952, 198, 6738, 1080, 13, 26791, 1330, 1635, 198, 6738, 4738, 1330, 43720, 9521, 355, 374, 81, 198, 11748, 12234, 8019, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 1...
3.661765
68
import opensearchpy import curator import os import json import string import random import tempfile import click from click import testing as clicktest import time from . import CuratorTestCase from unittest.case import SkipTest from . import testvars as testvars import logging logger = logging.getLogger(__name__) ...
[ 11748, 1034, 1072, 998, 9078, 198, 11748, 46132, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 4731, 198, 11748, 4738, 198, 11748, 20218, 7753, 198, 11748, 3904, 198, 6738, 3904, 1330, 4856, 355, 3904, 9288, 198, 11748, 640, 198, 198,...
3.01087
184
import libhustpass.sbDes as sbDes import libhustpass.captcha as captcha import requests import re import random
[ 11748, 9195, 71, 436, 6603, 13, 36299, 5960, 355, 264, 65, 5960, 198, 11748, 9195, 71, 436, 6603, 13, 27144, 11693, 355, 48972, 198, 11748, 7007, 198, 11748, 302, 198, 11748, 4738, 628 ]
3.424242
33
import cv2 as cv import numpy as np img = cv.imread('./Images/sample-image.png') sorted_contours = sortedContoursByArea(img, larger_to_smaller=True) # print(areaFinder(contours)) print(areaFinder(sorted_contours)) for c in sorted_contours: cv.drawContours(img, c, -1, 244, 3) cv.imshow('img', img) cv.waitK...
[ 11748, 269, 85, 17, 355, 269, 85, 220, 198, 11748, 299, 32152, 355, 45941, 198, 9600, 796, 269, 85, 13, 320, 961, 7, 4458, 14, 29398, 14, 39873, 12, 9060, 13, 11134, 11537, 198, 82, 9741, 62, 3642, 4662, 796, 23243, 4264, 4662, 38...
2.383562
146
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import ( BaseMetric, sort_and_couple, RankingMetric )
[ 37811, 6719, 16005, 329, 12759, 526, 15931, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2872, 89, 2238, 13, 18392, 13, 8692, 62, 4164, 1173, 1330, 357, 198, 220, 220, 220, 7308, 9171, 1173, 11, 3297, 62, 392, 62, 66, 43846, ...
2.877551
49
from mung.torch_ext.eval import Loss from ltprg.model.seq import DataParameter, SequenceModelNoInput, SequenceModelInputToHidden, SequenceModelAttendedInput from ltprg.model.seq import VariableLengthNLLLoss # Expects config of the form: # { # data_parameter : { # seq : [SEQUENCE PARAMETER NAME] # inp...
[ 6738, 285, 2150, 13, 13165, 354, 62, 2302, 13, 18206, 1330, 22014, 201, 198, 6738, 300, 83, 1050, 70, 13, 19849, 13, 41068, 1330, 6060, 36301, 11, 45835, 17633, 2949, 20560, 11, 45835, 17633, 20560, 2514, 41691, 11, 45835, 17633, 8086, ...
2.422939
558
from shutil import move import piexif from PIL import Image def delete_metadata(full_path_to_img): """ This function used for remove metadata only from documents, if you send image 'as image' Telegram automatically removes all metadata at sending. This function removes all metadata via 'piexif' lib, save...
[ 6738, 4423, 346, 1330, 1445, 198, 198, 11748, 2508, 87, 361, 198, 6738, 350, 4146, 1330, 7412, 628, 198, 4299, 12233, 62, 38993, 7, 12853, 62, 6978, 62, 1462, 62, 9600, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163,...
3.138728
346
#py_unit_2.py import unittest if __name__=='__main__': unittest.main()
[ 2, 9078, 62, 20850, 62, 17, 13, 9078, 198, 11748, 555, 715, 395, 198, 197, 197, 198, 197, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 197, 403, 715, 395, 13, 12417, 3419 ]
2.054054
37
from .scheduled_task import ScheduledTask
[ 6738, 764, 1416, 704, 6309, 62, 35943, 1330, 27774, 6309, 25714 ]
3.727273
11
from sys import exit # ------------------------------------------------------------------------------ global dev_name global game_title dev_name = "" # enter your name in the quotes! game_title = "" # enter the game title in the quotes! # ------------------------------------------------------------------------------ ...
[ 6738, 25064, 1330, 8420, 198, 198, 2, 16529, 26171, 198, 20541, 1614, 62, 3672, 198, 20541, 983, 62, 7839, 198, 7959, 62, 3672, 796, 13538, 1303, 3802, 534, 1438, 287, 262, 13386, 0, 198, 6057, 62, 7839, 796, 13538, 1303, 3802, 262, ...
4.335
200
import os, zipfile # Zip files.
[ 11748, 28686, 11, 19974, 7753, 198, 198, 2, 38636, 3696, 13, 198 ]
2.75
12
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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 a...
[ 2, 15069, 7358, 12, 1238, 2481, 41992, 4912, 31703, 12052, 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, ...
3.714894
235
""" MNIST hello world """ import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # API """ MNIST """ sess = tf.InteractiveSession() # [batch_size, 784] x = tf.placeholder('float', shape=[None, 784]) y_ = ...
[ 37811, 198, 39764, 8808, 198, 31373, 995, 198, 37811, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 1069, 12629, 13, 83, 44917, 82, 13, 10295, 396, 1330, 5128, 62, 7890,...
1.822338
1,531
import pbge from game.content.plotutility import LMSkillsSelfIntro from game.content import backstory from pbge.plots import Plot from pbge.dialogue import Offer, ContextTag from game.ghdialogue import context import gears import game.content.gharchitecture import game.content.ghterrain import random from game import m...
[ 11748, 279, 65, 469, 198, 6738, 983, 13, 11299, 13, 29487, 315, 879, 1330, 406, 5653, 74, 2171, 24704, 5317, 305, 198, 6738, 983, 13, 11299, 1330, 37998, 198, 6738, 279, 65, 469, 13, 489, 1747, 1330, 28114, 198, 6738, 279, 65, 469, ...
3.173145
283
import json if __name__ == '__main__': jsonFile = '/data00/home/zhangrufeng1/projects/detectron2/projects/detr/datasets/mot/mot17/annotations/mot17_train_half.json' with open(jsonFile, 'r') as f: infos = json.load(f) count_dict = dict() for info in infos["images"]: if info["file_name"]...
[ 11748, 33918, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 33918, 8979, 796, 31051, 7890, 405, 14, 11195, 14, 23548, 648, 622, 69, 1516, 16, 14, 42068, 14, 15255, 478, 1313, 17, 14, 42068, ...
2.178645
487
# -*- coding: utf-8 -*- """Archivo principal para el echobot. Main File for the echobot""" from fbmq import Page from flask import Flask, request # Token generado por la pgina web. Generated token in the facebook web page PAGE_ACCESS_TOKEN = "COPY_HERE_YOUR_PAGE_ACCES_TOKEN" # Token generado por nosotros. Token genera...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 19895, 23593, 10033, 31215, 1288, 304, 354, 672, 313, 13, 8774, 9220, 329, 262, 304, 354, 672, 313, 37811, 198, 6738, 277, 20475, 80, 1330, 7873, 198, 6738, 42903...
2.914179
268
# -*- coding: utf-8 -*- from __future__ import print_function from matplotlib import pyplot as plt import matplotlib.image as mpimg import numpy as np import scipy.misc import random import os import imageio ############################# # global variables # ############################# root_dir = "/ho...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 9060, 355, 29...
2.525275
455
#!/usr/bin/env python import websocket import time try: import thread except ImportError: import _thread as thread runs = 100 if __name__ == "__main__": websocket.enableTrace(True) url = "ws://localhost:8082" ws = websocket.WebSocketApp(url, on_message = on_message, on_error...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 201, 198, 11748, 2639, 5459, 201, 198, 11748, 640, 201, 198, 201, 198, 28311, 25, 201, 198, 220, 220, 220, 1330, 4704, 201, 198, 16341, 17267, 12331, 25, 201, 198, 220, 220, 220...
2.288136
177
import pandas as pd import matplotlib.pyplot as plt import numpy as np import scipy.stats as stats import seaborn as sns from matplotlib import rcParams import statsmodels.api as sm from statsmodels.formula.api import ols df = pd.read_csv('kc_house_data.csv') # print(df.head()) # print(df.isnull().any()) # print(df.d...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 34242, 355, 9756, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 6738, ...
2.518919
370
# Dialogs for setting filter parameters. from PyQt5.QtWidgets import QLabel, QGridLayout, QPushButton, \ QLineEdit, QVBoxLayout, QHBoxLayout, QDialog, QComboBox, QWidget from PyQt5.QtCore import pyqtSignal
[ 2, 21269, 18463, 329, 4634, 8106, 10007, 13, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 33986, 11, 1195, 41339, 32517, 11, 1195, 49222, 21864, 11, 3467, 198, 197, 197, 9711, 500, 18378, 11, 1195, 53, ...
2.65
80
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy from .build import build, make_path from parlai.utils.misc import warn_once from parlai.core.teachers import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287,...
3.43
100
from math import ceil, sqrt from problem import Problem from utils.math import gcd
[ 6738, 10688, 1330, 2906, 346, 11, 19862, 17034, 198, 198, 6738, 1917, 1330, 20647, 198, 6738, 3384, 4487, 13, 11018, 1330, 308, 10210, 628 ]
3.541667
24
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 10:37:04 2021 @author: martin urbanec """ #calculates trajectory of small mass positioned close to L4 Lagrange point #creates gif as output import math import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation, PillowWriter ...
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2365, 1478, 838, 25, 2718, 25, 3023, 33448, 198, 198, 31, 9800, 25, 11277, 259, 7876, 721, 198, 37811, 198, 198, 2, 9948, 3129, 689...
1.855581
1,738
from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, sanitized_Request, )
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 33918, 198, 198, 6738, 764, 11321, 1330, 14151, 11627, 40450, 198, 6738, 11485, 26791, 1330, 357, 198, 220, 220, 220, 29677, 273, 12331, 11, 198, 220, 220, 220...
2.933333
60
# (c) Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import absolute_import, division, print_function import sys from os.path import join, ...
[ 2, 357, 66, 8, 6389, 13814, 30437, 11, 3457, 13, 1220, 2638, 1378, 18487, 13814, 13, 952, 198, 2, 1439, 6923, 33876, 198, 2, 198, 2, 1779, 64, 318, 9387, 739, 262, 2846, 286, 262, 347, 10305, 513, 12, 565, 682, 5964, 13, 198, 2,...
2.542218
1,966
#!/bin/env python3 from transformers import TFBertForTokenClassification from data_preparation.data_preparation_pos import MBERTTokenizer as MBERT_Tokenizer_pos import sys if __name__ == "__main__": if len(sys.argv) > 1: modelname = sys.argv[1] else: modelname = "ltgoslo/norbert" model = T...
[ 2, 48443, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 6121, 364, 1330, 24958, 33, 861, 1890, 30642, 9487, 2649, 198, 6738, 1366, 62, 3866, 1845, 341, 13, 7890, 62, 3866, 1845, 341, 62, 1930, 1330, 10771, 1137, 15751, 4233, 7509, 355, ...
2.572917
192
from oslo_serialization import jsonutils as json from nca47.api.controllers.v1 import base from nca47.common.i18n import _ from nca47.common.i18n import _LI, _LE from nca47.common.exception import Nca47Exception from oslo_log import log from nca47.api.controllers.v1 import tools from nca47.manager.central import Centra...
[ 6738, 28686, 5439, 62, 46911, 1634, 1330, 33918, 26791, 355, 33918, 198, 6738, 299, 6888, 2857, 13, 15042, 13, 3642, 36667, 13, 85, 16, 1330, 2779, 198, 6738, 299, 6888, 2857, 13, 11321, 13, 72, 1507, 77, 1330, 4808, 198, 6738, 299, ...
3.193182
176
import numpy as np import torch from torch import nn from torch.nn import functional as F
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 628, 628, 628, 628, 198 ]
3.5
28
from math import exp from random import seed from random import random seed(1) dataset = [[2.7810836,2.550537003,0], [1.465489372,2.362125076,0], [3.396561688,4.400293529,0], [1.38807019,1.850220317,0], [3.06407232,3.005305973,0], [7.627531214,2.759262235,1], [5.332441248,2.088626775,1], [6.92259...
[ 6738, 10688, 1330, 1033, 198, 6738, 4738, 1330, 9403, 198, 6738, 4738, 1330, 4738, 198, 220, 198, 220, 198, 220, 198, 220, 628, 220, 198, 220, 198, 220, 198, 198, 28826, 7, 16, 8, 198, 19608, 292, 316, 796, 16410, 17, 13, 3695, 15...
2.029316
307
"""\ Copyright (c) 2009 Paul J. Davis <paul.joseph.davis@gmail.com> This file is part of hypercouch which is released uner the MIT license. """ import time import unittest import couchdb COUCHURI = "http://127.0.0.1:5984/" TESTDB = "hyper_tests"
[ 37811, 59, 198, 15269, 357, 66, 8, 3717, 3362, 449, 13, 7802, 1279, 79, 2518, 13, 73, 577, 746, 13, 67, 23401, 31, 14816, 13, 785, 29, 198, 1212, 2393, 318, 636, 286, 8718, 66, 7673, 543, 318, 2716, 555, 263, 262, 17168, 5964, 1...
2.725275
91
from .sample_setup import * ctr = setup_control() eff = ColorMeanderEffect(ctr, "solid") eff.launch_rt() input() eff.stop_rt() ctr.turn_off()
[ 6738, 764, 39873, 62, 40406, 1330, 1635, 628, 198, 24087, 796, 9058, 62, 13716, 3419, 198, 14822, 796, 5315, 5308, 4066, 18610, 7, 24087, 11, 366, 39390, 4943, 198, 14822, 13, 35681, 62, 17034, 3419, 198, 15414, 3419, 198, 14822, 13, ...
2.716981
53
"""Torch NodeEmbedding.""" from datetime import timedelta import torch as th from ...backend import pytorch as F from ...utils import get_shared_mem_array, create_shared_mem_array _STORE = None def reset_trace(self): """Clean up the trace of the indices of embeddings used in the training step(s). ...
[ 37811, 15884, 354, 19081, 31567, 6048, 278, 526, 15931, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 28034, 355, 294, 198, 6738, 2644, 1891, 437, 1330, 12972, 13165, 354, 355, 376, 198, 6738, 2644, 26791, 1330, 651, 62, 28710, ...
2.767442
129
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import OrganizationMember, OrganizationMemberTeam, Team from sentry.testutils import TestCase, PermissionTestCase
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 198, 6738, 1908, 563, 13, 27530, 1330, 12275, 27608, 11, 12275, 27608, 15592, 11, 4816, 198, 6738, 1908, ...
4.018182
55
import abc import datetime import enum import logging import time import typing import aysncio import Layout as layouts from decimal import Decimal from pyserum.market import Market from pyserum.open_orders_account import OpenOrdersAccount from solana.account import Account from solana.publickey import PublicKey from...
[ 11748, 450, 66, 198, 11748, 4818, 8079, 198, 11748, 33829, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 19720, 198, 198, 11748, 257, 893, 10782, 952, 198, 11748, 47639, 355, 38489, 198, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, ...
2.296288
4,580
# Generated by Django 3.2.8 on 2021-11-29 05:47 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 1157, 12, 1959, 8870, 25, 2857, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# 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, software # distributed under the Li...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.630435
184
import unittest import os from pyxdsm.XDSM import XDSM, __file__ from numpy.distutils.exec_command import find_executable if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 6738, 12972, 24954, 5796, 13, 55, 5258, 44, 1330, 1395, 5258, 44, 11, 11593, 7753, 834, 198, 6738, 299, 32152, 13, 17080, 26791, 13, 18558, 62, 21812, 1330, 1064, 62, 18558, 18187, 628, 19...
2.6875
64
# -*- coding: utf-8 -*- from wecom_sdk.base.crypt import encrypt_msg, decrypt_msg
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 356, 785, 62, 21282, 74, 13, 8692, 13, 29609, 1330, 34117, 62, 19662, 11, 42797, 62, 19662, 198 ]
2.441176
34
import psycopg2 from decouple import config import pandas as pd import dbconnect cursor, connection = dbconnect.connect_to_db() sql = """ SELECT "table_name","column_name", "data_type", "table_schema" FROM INFORMATION_SCHEMA.COLUMNS WHERE "table_schema" = 'public' ORDER BY table_name """ df = pd.read_sql(sql, con=co...
[ 11748, 17331, 22163, 70, 17, 198, 6738, 875, 43846, 1330, 4566, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 20613, 8443, 198, 198, 66, 21471, 11, 4637, 796, 20613, 8443, 13, 8443, 62, 1462, 62, 9945, 3419, 198, 25410, 796, 37227...
2.830645
124
#!/usr/bin/env python # -*- coding: utf8 -*- import sys try: from cdecimal import Decimal except ImportError: # pragma: no cover from decimal import Decimal from agate import Table from agate.aggregations import Sum from agate.computations import Percent from agate.data_types import Number, Text from agate....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 269, 12501, 4402, 1330, 4280, 4402, 198, 16341, 17267, 123...
3.106195
113
import os os.makedirs(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'build')), exist_ok=True) from .chamfer_distance import ChamferDistance
[ 11748, 28686, 198, 418, 13, 76, 4335, 17062, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 492, 3256, 705, 11249, 11537, 828, 2152, 62, 482, 28...
2.644068
59
from functools import partial from impartial import impartial
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 6738, 32521, 1330, 32521, 628, 628, 628, 628, 628, 628, 198 ]
3.947368
19
''' Python script for uploading/downloading scripts for use with the game Screeps. http://support.screeps.com/hc/en-us/articles/203022612-Commiting-scripts-using-direct-API-access Usage: # # general help/usage # python3 manager.py --help # # retrieve all scripts from the game and store them...
[ 7061, 6, 198, 37906, 4226, 329, 33794, 14, 15002, 278, 14750, 329, 779, 351, 262, 983, 1446, 260, 25386, 13, 198, 198, 4023, 1378, 11284, 13, 1416, 260, 25386, 13, 785, 14, 71, 66, 14, 268, 12, 385, 14, 26845, 14, 1238, 1270, 2490...
2.673591
337
import logging from django.views.generic import TemplateView from ...models import Feedback from ..chat.chat_context_mixin import ChatContextMixin logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 198, 198, 6738, 2644, 27530, 1330, 37774, 198, 6738, 11485, 17006, 13, 17006, 62, 22866, 62, 19816, 259, 1330, 24101, 21947, 35608, 259, 198, 198, 6404, ...
3.54717
53
from typing import Optional import bisect from tangled_up_in_unicode.u14_0_0_data.prop_list_to_property import prop_list_to_property from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_start import blocks_to_block_start from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_end import blocks_to_block_end from ta...
[ 6738, 19720, 1330, 32233, 198, 198, 11748, 47457, 478, 198, 198, 6738, 41431, 62, 929, 62, 259, 62, 46903, 1098, 13, 84, 1415, 62, 15, 62, 15, 62, 7890, 13, 22930, 62, 4868, 62, 1462, 62, 26745, 1330, 2632, 62, 4868, 62, 1462, 62,...
2.395444
6,322
from PIL import Image from PIL import ImageDraw from PIL import ImageFont import sys import ST7735 # Create ST7735 LCD display class object and set pin numbers and display hardware information. disp = ST7735.ST7735( dc=24, cs=ST7735.BG_SPI_CS_BACK, rst=25, port=0, width=122, height=160, ro...
[ 6738, 350, 4146, 1330, 7412, 198, 6738, 350, 4146, 1330, 7412, 25302, 198, 6738, 350, 4146, 1330, 7412, 23252, 198, 11748, 25064, 198, 11748, 3563, 3324, 2327, 628, 198, 2, 13610, 3563, 3324, 2327, 23598, 3359, 1398, 2134, 290, 900, 675...
2.644914
521
import sqlite3 conn=sqlite3.connect('Survey.db') fo=open('insertcommand.txt') str=fo.readline() while str: str="INSERT INTO data VALUES"+str conn.execute(str) #print(str) str=fo.readline() conn.commit() conn.close() fo.close()
[ 11748, 44161, 578, 18, 198, 198, 37043, 28, 25410, 578, 18, 13, 8443, 10786, 14214, 3304, 13, 9945, 11537, 198, 198, 6513, 28, 9654, 10786, 28463, 21812, 13, 14116, 11537, 198, 2536, 28, 6513, 13, 961, 1370, 3419, 198, 4514, 965, 25, ...
2.378641
103
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: HeadlessExperimental (experimental) from __future__ import annotations from cdp.util import event_class, T_JSON_DICT from dataclasses impo...
[ 2, 8410, 5626, 48483, 12680, 45811, 0, 198, 2, 198, 2, 770, 2393, 318, 7560, 422, 262, 327, 6322, 20855, 13, 1002, 345, 761, 284, 787, 198, 2, 2458, 11, 4370, 262, 17301, 290, 43519, 477, 286, 262, 13103, 13, 198, 2, 198, 2, 327...
3.676768
99
import unittest from wvflib.geometry import Face if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 266, 85, 2704, 571, 13, 469, 15748, 1330, 15399, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.5
40
import pytest from detectem.core import Detector, Result, ResultCollection from detectem.plugin import Plugin, PluginCollection from detectem.settings import INDICATOR_TYPE, HINT_TYPE, MAIN_ENTRY, GENERIC_TYPE from detectem.plugins.helpers import meta_generator class TestResultCollection():
[ 11748, 12972, 9288, 198, 198, 6738, 4886, 368, 13, 7295, 1330, 4614, 9250, 11, 25414, 11, 25414, 36307, 198, 6738, 4886, 368, 13, 33803, 1330, 42636, 11, 42636, 36307, 198, 6738, 4886, 368, 13, 33692, 1330, 24413, 2149, 25633, 62, 25216...
3.654321
81
from django.dispatch.dispatcher import receiver from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.decorators import login_required from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, logout as aut...
[ 6738, 42625, 14208, 13, 6381, 17147, 13, 6381, 8071, 2044, 1330, 9733, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 11, 18941, 11, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12...
2.756944
1,152
# Copyright (c) 2022, momscode and Contributors # See license.txt # import frappe import unittest
[ 2, 15069, 357, 66, 8, 33160, 11, 1995, 1416, 1098, 290, 25767, 669, 198, 2, 4091, 5964, 13, 14116, 198, 198, 2, 1330, 5306, 27768, 198, 11748, 555, 715, 395, 198 ]
3.193548
31
"""Python APIs for STIX 2. .. autosummary:: :toctree: api confidence datastore environment equivalence exceptions markings parsing pattern_visitor patterns properties serialization utils v20 v21 versioning workbench """ # flake8: noqa DEFAULT_VERSION = '2.1' # De...
[ 37811, 37906, 23113, 329, 3563, 10426, 362, 13, 198, 198, 492, 44619, 388, 6874, 3712, 198, 220, 220, 1058, 1462, 310, 631, 25, 40391, 628, 220, 220, 6628, 198, 220, 220, 4818, 459, 382, 198, 220, 220, 2858, 198, 220, 220, 6854, 594...
3.184211
646
count = int(input()) title = 0 while count > 0: title += 1 if '666' in str(title): count -= 1 print(title)
[ 9127, 796, 493, 7, 15414, 28955, 198, 198, 7839, 796, 657, 198, 4514, 954, 1875, 657, 25, 198, 220, 220, 220, 3670, 15853, 352, 198, 220, 220, 220, 611, 705, 27310, 6, 287, 965, 7, 7839, 2599, 198, 220, 220, 220, 220, 220, 220, ...
2.272727
55
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : """IDNA Mapping Table from UTS46.""" __version__ = "11.0.0" uts46data = tuple( _seg_0() + _seg_1() + _seg_2() + _seg_3() + _seg_4() + _seg_5() + _seg_6() + _seg_7() + _seg_8...
[ 2, 770, 2393, 318, 6338, 7560, 416, 4899, 14, 312, 2616, 12, 7890, 201, 198, 2, 43907, 25, 900, 2393, 12685, 7656, 28, 40477, 12, 23, 1058, 201, 198, 201, 198, 37811, 2389, 4535, 337, 5912, 8655, 422, 471, 4694, 3510, 526, 15931, ...
1.483366
1,022
# -*- coding: utf-8 -*- import numpy as np import torch from torch import nn from kbcr.kernels import GaussianKernel from kbcr.smart import NeuralKB import pytest if __name__ == '__main__': pytest.main([__file__]) # test_smart_v1()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 198, 6738, 47823, 6098, 13, 74, 44930, 1330, 12822, 31562, 42, 7948, 19...
2.572917
96
import tkinter window=tkinter.Tk() window.title("YUN DAE HEE") window.geometry("640x400+100+100") window.resizable(True, True) image=tkinter.PhotoImage(file="opencv_frame_0.png") label=tkinter.Label(window, image=image) label.pack() window.mainloop()
[ 11748, 256, 74, 3849, 198, 198, 17497, 28, 30488, 3849, 13, 51, 74, 3419, 198, 17497, 13, 7839, 7203, 56, 4944, 360, 14242, 367, 6500, 4943, 198, 17497, 13, 469, 15748, 7203, 31102, 87, 7029, 10, 3064, 10, 3064, 4943, 198, 17497, 13...
2.591837
98
from django.urls import path, include from .views import main_view, PredictionView #router = routers.DefaultRouter(trailing_slash=False) #router.register('years', YearView, basename='years') #router.register('predict', PredictionView, basename='predict') urlpatterns = [ #path('api/', get_dummy_data), #path('...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 764, 33571, 1330, 1388, 62, 1177, 11, 46690, 7680, 198, 198, 2, 472, 353, 796, 41144, 13, 19463, 49, 39605, 7, 9535, 4386, 62, 6649, 1077, 28, 25101, 8, 198, 2, 47...
2.728972
214
from django.conf import settings from termcolor import colored #: Red color constant for :func:`.ievv_colorize`. COLOR_RED = 'red' #: Blue color constant for :func:`.ievv_colorize`. COLOR_BLUE = 'blue' #: Yellow color constant for :func:`.ievv_colorize`. COLOR_YELLOW = 'yellow' #: Grey color constant for :func:`.i...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 3381, 8043, 1330, 16396, 628, 198, 2, 25, 2297, 3124, 6937, 329, 1058, 20786, 25, 44646, 11203, 85, 62, 8043, 1096, 44646, 198, 46786, 62, 22083, 796, 705, 445, 6, 198, 198, 2, 2...
2.268328
682
# coding: utf-8 # In[1]: import baostock as bs import pandas as pd import numpy as np import talib as ta import matplotlib.pyplot as plt import KlineService import BaoStockUtil import math import datetime from scipy import integrate from RSI import DayRSI,WeekRSI,MonthRSI,SixtyMinRSI from concurrent.futures import...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 26605, 455, 735, 355, 275, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3305, 571, 355, 20486, 198,...
2.169399
366
# Copyright 2016 Orange # # 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, softw...
[ 2, 15069, 1584, 11942, 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, 198, 2, 921, 743, 7330, 257,...
2.355155
611
from kivy.properties import NumericProperty from gui.sensors.sensor import Sensor import config
[ 6738, 479, 452, 88, 13, 48310, 1330, 399, 39223, 21746, 198, 198, 6738, 11774, 13, 82, 641, 669, 13, 82, 22854, 1330, 35367, 198, 11748, 4566, 628 ]
3.62963
27
# import discord from discord.ext import commands from discord.ext.commands import Context from define import *
[ 2, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 30532, 198, 198, 6738, 8160, 1330, 1635 ]
4.035714
28
import cProfile import pstats import os # def do_cprofile(filename): """ Decorator for function profiling. """ return wrapper
[ 11748, 269, 37046, 198, 11748, 279, 34242, 198, 11748, 28686, 628, 198, 2, 220, 198, 4299, 466, 62, 66, 13317, 7, 34345, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4280, 273, 1352, 329, 2163, 31582, 13, 198, 220, 220, 220,...
2.88
50
# Copyright 2019 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
[ 2, 15069, 13130, 532, 14780, 6060, 5800, 3337, 357, 50, 5258, 34, 8, 198, 2, 317, 10413, 1022, 763, 293, 12280, 23873, 2350, 376, 7109, 1000, 390, 4689, 385, 21952, 357, 8905, 3697, 8, 290, 198, 2, 31022, 70, 641, 82, 46097, 5429, ...
3.641148
209
# -*- coding: utf-8 -*- from .converters import Converter, UnstructureStrategy __all__ = ('global_converter', 'unstructure', 'structure', 'structure_attrs_fromtuple', 'structure_attrs_fromdict', 'UnstructureStrategy') __author__ = 'Tin Tvrtkovi' __email__ = 'tinchester@gmail.com' global_conver...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 1102, 332, 1010, 1330, 35602, 353, 11, 791, 301, 5620, 13290, 4338, 198, 198, 834, 439, 834, 796, 19203, 20541, 62, 1102, 332, 353, 3256, 705, 403, 301, 562...
2.739683
315
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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/LICENS...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 34, 8, 12131, 13, 43208, 21852, 1766, 1539, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
2.135593
1,947
""" StarGAN v2 Copyright (c) 2020-present NAVER Corp. This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, US...
[ 37811, 198, 8248, 45028, 410, 17, 198, 15269, 357, 66, 8, 12131, 12, 25579, 11746, 5959, 11421, 13, 198, 198, 1212, 670, 318, 11971, 739, 262, 17404, 13815, 45336, 12, 15419, 48401, 198, 19, 13, 15, 4037, 13789, 13, 1675, 1570, 257, ...
3.437186
199
# Uses python3 import sys if __name__ == '__main__': # input = sys.stdin.read() a, b = map(int, input().split()) # print(lcm_naive(a, b)) print(lcm(a, b))
[ 2, 36965, 21015, 18, 198, 11748, 25064, 628, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 5128, 796, 25064, 13, 19282, 259, 13, 961, ...
2.043956
91
import random highscore = [] def not_in_range(guess_it): """This is to check that the numbers inputted by the user are in range, and will let the user know. If the numbers are in range then it passes. """ if guess_it < 1: print('I am not thinking of negative numbers!') elif guess_it > 10:...
[ 11748, 4738, 198, 198, 8929, 26675, 796, 17635, 628, 198, 4299, 407, 62, 259, 62, 9521, 7, 5162, 408, 62, 270, 2599, 198, 220, 220, 220, 37227, 1212, 318, 284, 2198, 326, 262, 3146, 5128, 1513, 416, 262, 2836, 389, 287, 2837, 11, ...
2.395127
944
#!/usr/bin/env python3 USER = r'server\user' PASSWORD = 'server_password' HOSTNAME = 'hostname.goes.here.com' DOMAIN = 'domain.goes.here.com' FROM_ADDR = 'emailyouwanttosendmessagesfrom@something.com'
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 29904, 796, 374, 338, 18497, 59, 7220, 6, 198, 47924, 54, 12532, 796, 705, 15388, 62, 28712, 6, 198, 39, 10892, 20608, 796, 705, 4774, 3672, 13, 2188, 274, 13, 1456, 13, 785, 6...
2.45122
82
#!/usr/bin/python3 # # MIT License # # Copyright (c) 2021 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 Software without restriction, including without limi...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 9128, 324, 3754, 89, 3433, 26691, 2724, 1279, 7959, 13, 1501, 316, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 2448, ...
3.443662
568