content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
"""Placeholder/template for staging envs."""
[ 37811, 27271, 13829, 14, 28243, 329, 29475, 551, 14259, 526, 15931, 198 ]
3.75
12
from cognito.check import Check from cognito.table import Table import os import pytest import pandas as pd import numpy as np from os import path from sklearn import preprocessing
[ 6738, 8866, 10094, 13, 9122, 1330, 6822, 198, 6738, 8866, 10094, 13, 11487, 1330, 8655, 198, 11748, 28686, 198, 11748, 12972, 9288, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28686, 1330, 3108, ...
3.714286
49
from reportlab.lib.units import inch from reportlab.platypus import SimpleDocTemplate, Spacer from reportlab.rl_config import defaultPageSize from reportlab.lib.units import inch from reportlab.platypus.flowables import Flowable
[ 6738, 989, 23912, 13, 8019, 13, 41667, 1330, 11111, 198, 6738, 989, 23912, 13, 489, 265, 4464, 385, 1330, 17427, 23579, 30800, 11, 1338, 11736, 198, 6738, 989, 23912, 13, 45895, 62, 11250, 1330, 4277, 9876, 10699, 198, 6738, 989, 23912,...
3.650794
63
from app.bq_service import BigQueryService if __name__ == "__main__": bq_service = BigQueryService() bq_service.migrate_daily_bot_probabilities_table() print("MIGRATION SUCCESSFUL!")
[ 198, 198, 6738, 598, 13, 65, 80, 62, 15271, 1330, 4403, 20746, 16177, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 275, 80, 62, 15271, 796, 4403, 20746, 16177, 3419, 628, 220, 220, 220, 275,...
2.61039
77
from copy import deepcopy from dataclasses import asdict, dataclass from enum import IntEnum from colosseum.utils.random_vars import deterministic, get_dist try: from functools import cached_property except: from backports.cached_property import cached_property from typing import Any, Dict, List, Tuple, Type...
[ 6738, 4866, 1330, 2769, 30073, 198, 6738, 4818, 330, 28958, 1330, 355, 11600, 11, 4818, 330, 31172, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 6738, 951, 418, 325, 388, 13, 26791, 13, 25120, 62, 85, 945, 1330, 2206, 49228, 11,...
2.021252
3,435
#coding:utf-8 # # id: bugs.core_6266 # title: Deleting records from MON$ATTACHMENTS using ORDER BY clause doesn't close the corresponding attachments # decription: # Old title: Don't close attach while deleting record from MON$ATTACHMENTS using ORDER BY clause. # ...
[ 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, 21, 25540, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 42226, 889, 4406, 422, 25000, 3, ...
2.402746
1,311
from bs4 import BeautifulSoup import logging import pandas as pd import csv import re import requests from urllib.parse import urljoin logging.basicConfig(format="%(asctime)s %(levelname)s:%(message)s", level=logging.INFO)
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 269, 21370, 198, 11748, 302, 198, 11748, 7007, 198, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 198, 64...
2.910256
78
from test_plus.test import TestCase from ...administrative_units.factories import AdministrativeUnitFactory from ...cases.factories import CaseFactory from ...channels.factories import ChannelFactory from ...events.factories import EventFactory from ...features.factories import FeatureFactory, FeatureOptionFactory fro...
[ 6738, 1332, 62, 9541, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 2644, 39081, 13260, 62, 41667, 13, 22584, 1749, 1330, 30048, 26453, 22810, 198, 6738, 2644, 33964, 13, 22584, 1749, 1330, 8913, 22810, 198, 6738, 2644, 354, 8961, 13, 22...
4.30719
153
from typing import Any, List from ..actions.iaction import IAction from ..model.state import LennyBotState
[ 198, 198, 6738, 19720, 1330, 4377, 11, 7343, 198, 198, 6738, 11485, 4658, 13, 72, 2673, 1330, 314, 12502, 198, 6738, 11485, 19849, 13, 5219, 1330, 406, 11870, 20630, 9012, 628 ]
3.580645
31
# -*- coding: utf-8 -*- """ Lacework Container Registries API wrapper. """ import logging logger = logging.getLogger(__name__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 43, 330, 6433, 43101, 13811, 1678, 7824, 29908, 13, 198, 37811, 198, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672...
2.765957
47
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_seq2seq.ipynb (unless otherwise specified). __all__ = ['Encoder', 'NewDecoder', 'Seq2Seq'] # Cell from torch import nn from torch import optim import torch import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence # Ce...
[ 2, 47044, 7730, 1677, 1137, 11617, 0, 8410, 5626, 48483, 0, 9220, 284, 4370, 25, 299, 1443, 14, 486, 62, 41068, 17, 41068, 13, 541, 2047, 65, 357, 25252, 4306, 7368, 737, 198, 198, 834, 439, 834, 796, 37250, 27195, 12342, 3256, 705,...
2.982249
169
import json import re import responses from werkzeug.test import Client from werkzeug.wrappers import Response from satosa.proxy_server import make_app from satosa.satosa_config import SATOSAConfig
[ 11748, 33918, 198, 11748, 302, 198, 198, 11748, 9109, 198, 6738, 266, 9587, 2736, 1018, 13, 9288, 1330, 20985, 198, 6738, 266, 9587, 2736, 1018, 13, 29988, 11799, 1330, 18261, 198, 198, 6738, 3332, 8546, 13, 36436, 62, 15388, 1330, 787,...
3.40678
59
# Copyright 2022 Quantapix 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 applicable l...
[ 2, 15069, 33160, 16972, 499, 844, 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, 11846, 351, ...
3.747604
313
import argparse import glob import os import pickle from pathlib import Path import numpy as np from PIL import Image from tqdm import tqdm from src.align.align_trans import get_reference_facial_points, warp_and_crop_face # sys.path.append("../../") from src.align.detector import detect_faces if __name__ == "__main...
[ 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36...
2.16888
1,581
from srtvoiceext import extract if __name__ == '__main__': ext = extract('video.mkv', 'subtitles.srt', 'outdir')
[ 6738, 19677, 14981, 2942, 2302, 1330, 7925, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1070, 796, 7925, 10786, 15588, 13, 28015, 85, 3256, 705, 7266, 83, 30540, 13, 82, 17034, 3256, 705, 44...
2.659091
44
import collections
[ 11748, 17268 ]
9
2
# encoding: utf-8 import urwid import time, os, copy from rpg_game.utils import log, mod, distance from rpg_game.constants import * from urwid import raw_display SIZE = lambda scr=raw_display.Screen(): scr.get_cols_rows() MIN_HEADER_HEIGHT = 3 MAX_MENU_WIDTH = 48 FOOTER_HEIGHT = 4 PALETTE = [ ("line",...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 2956, 28029, 198, 11748, 640, 11, 28686, 11, 4866, 198, 6738, 374, 6024, 62, 6057, 13, 26791, 1330, 2604, 11, 953, 11, 5253, 198, 6738, 374, 6024, 62, 6057, 13, 9979, 1187, 1330, 16...
2.110953
2,803
from numpy import inf, nan from sklearn.linear_model import LinearRegression as Op from lale.docstrings import set_docstrings from lale.operators import make_operator _hyperparams_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "inherited docstring for LinearRegression Ord...
[ 6738, 299, 32152, 1330, 1167, 11, 15709, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234, 355, 8670, 198, 198, 6738, 300, 1000, 13, 15390, 37336, 1330, 900, 62, 15390, 37336, 198, 6738, 300, 1000, 13, 3575, 2024, ...
2.004511
2,217
import numpy as np from keras.applications.inception_v3 import InceptionV3 from keras.initializers import RandomNormal from keras.layers import (BatchNormalization, Conv2D, Conv2DTranspose, Conv3D, Cropping2D, Dense, Flatten, GlobalAveragePooling2D, Input, Lambda, Max...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 1324, 677, 602, 13, 924, 1159, 62, 85, 18, 1330, 554, 4516, 53, 18, 198, 6738, 41927, 292, 13, 36733, 11341, 1330, 14534, 26447, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 35...
2.072201
4,626
#!/bin/env python """Drop and create a new database with schema.""" from sqlalchemy_utils.functions import database_exists, create_database, drop_database from flunkybot.db import engine, base from flunkybot.models import * # noqa db_url = engine.url if database_exists(db_url): drop_database(db_url) create_datab...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 37811, 26932, 290, 2251, 257, 649, 6831, 351, 32815, 526, 15931, 198, 198, 6738, 44161, 282, 26599, 62, 26791, 13, 12543, 2733, 1330, 6831, 62, 1069, 1023, 11, 2251, 62, 48806, 11, 4268, 62, 4880...
3.063492
126
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from app import __version__ # get the dependencies and installs here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'requirements.txt')) as f: all_requirements = f.read().split('\n') set...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 6738, 598, 1330, 11593, 9641, 83...
2.222411
589
# # Python documentation build configuration file # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleable (module imports are okay, they're removed automatically). import sys, os, time sy...
[ 2, 198, 2, 11361, 10314, 1382, 8398, 2393, 198, 2, 198, 2, 770, 2393, 318, 2452, 7753, 3419, 67, 351, 262, 1459, 8619, 900, 284, 663, 7268, 26672, 13, 198, 2, 198, 2, 383, 10154, 286, 428, 2393, 389, 2298, 992, 11, 523, 836, 470...
2.821495
2,140
# Import the matplotlib module here. No other modules should be used. # Import plotting library import matplotlib.pyplot as plt #import.... from os import * # Import Numpy import numpy as np
[ 2, 17267, 262, 2603, 29487, 8019, 8265, 994, 13, 220, 1400, 584, 13103, 815, 307, 973, 13, 198, 2, 17267, 29353, 5888, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 2, 11748, 1106, 220, 198, 6738, 28686, 1330, 1...
3.316667
60
"""This script renames the forthcoming section in changelog files with the upcoming version and the current date""" from __future__ import print_function import argparse import datetime import docutils.core import os import re import sys from catkin_pkg.changelog import CHANGELOG_FILENAME, get_changelog_from_path fr...
[ 37811, 1212, 4226, 8851, 1047, 262, 21220, 2665, 287, 1488, 417, 519, 3696, 351, 262, 7865, 2196, 290, 262, 1459, 3128, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 4818, 8079...
3.573427
143
import os import unittest import torch import torch.distributed as dist from torch.multiprocessing import Process import torch.nn as nn from machina.optims import DistributedAdamW
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 17080, 6169, 355, 1233, 198, 6738, 28034, 13, 16680, 541, 305, 919, 278, 1330, 10854, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, ...
3.471698
53
""" Squeak model. W_Object W_SmallInteger W_MutableSmallInteger W_AbstractObjectWithIdentityHash W_AbstractFloat W_Float W_MutableFloat W_Character W_PointersObject W_AbstractObjectWithClassReference ...
[ 37811, 198, 50, 4188, 461, 2746, 13, 628, 220, 220, 220, 370, 62, 10267, 198, 220, 220, 220, 220, 220, 220, 220, 370, 62, 18712, 46541, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 62, 44, 18187, 18712, 46541, ...
2
435
# This code is referenced from # https://github.com/facebookresearch/astmt/ # # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # License: Attribution-NonCommercial 4.0 International import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.module import Modu...
[ 2, 770, 2438, 318, 20717, 422, 220, 198, 2, 3740, 1378, 12567, 13, 785, 14, 19024, 34033, 14, 459, 16762, 14, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 1439, 2489, 10395, 13, 198, ...
3.445545
101
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm import numpy as np import os import contorno from constantes import INTERVALOS, PASSOS, TAMANHO_BARRA, DELTA_T, DELTA_X z_temp = contorno.p_3 TAMANHO_BARRA = 2 x = np.linspace(0.0, TAMANHO_BARRA, INTERVALOS+1) y = np.lin...
[ 6738, 285, 489, 62, 25981, 74, 896, 13, 76, 29487, 18, 67, 1330, 12176, 274, 18, 35, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 12067, 198, 11748, 299, 32152, 355, 45941, 198, 1...
1.990361
415
# solution 1: # Solution 2 if __name__ == '__main__': # begin s = Solution() print(s.convert("PAYPALISHIRING", 3))
[ 2, 4610, 352, 25, 198, 198, 2, 28186, 362, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 2221, 198, 220, 220, 220, 264, 796, 28186, 3419, 198, 220, 220, 220, 3601, 7, 82, 13, 1102, ...
2.327273
55
# -*- coding: utf-8 -*- """ Created on Thu Feb 11 13:42:45 2021 @author: ASUS """ import pandas as pd df = pd.read_csv(r'D:\nlp\fake-news-data\train.csv') df = df.dropna() X = df.drop('label',axis = 1) y = df['label'] import tensorflow as tf from tensorflow.keras.layers import Embedding, Dense, LSTM from tensorflo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 3158, 1367, 1511, 25, 3682, 25, 2231, 33448, 198, 198, 31, 9800, 25, 38100, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, ...
2.624511
767
import sys from class_vis import prettyPicture from prep_terrain_data import makeTerrainData import matplotlib.pyplot as plt import copy import numpy as np import pylab as pl features_train, labels_train, features_test, labels_test = makeTerrainData() ########################## SVM ###################...
[ 11748, 25064, 201, 198, 6738, 1398, 62, 4703, 1330, 2495, 28070, 201, 198, 6738, 3143, 62, 353, 3201, 62, 7890, 1330, 787, 15156, 3201, 6601, 201, 198, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748...
3.25
252
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 2, 15069, 357, 66, 8, 33448, 220, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
3.637931
232
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import open from builtins import str from future import standard_library standard_library.install_aliases() try: from queue i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443,...
2.692929
495
import copy import itertools from functools import partial from typing import Any, Iterable, List, Optional, Set, Tuple, Type from isort.format import format_simplified from . import parse, sorting, wrap from .comments import add_to_line as with_comments from .identify import STATEMENT_DECLARATIONS from .settings imp...
[ 11748, 4866, 198, 11748, 340, 861, 10141, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 4377, 11, 40806, 540, 11, 7343, 11, 32233, 11, 5345, 11, 309, 29291, 11, 5994, 198, 198, 6738, 318, 419, 13, 18982, 1330, 5794...
2.083619
4,090
import datetime import io import json_tricks import logging import os from os.path import (abspath, basename, dirname, exists, expanduser, join, realpath, relpath, splitext) import re import shutil import sys from traits.api import (Any, Dict, Enum, HasTraits, Instance, List, Long, ...
[ 11748, 4818, 8079, 198, 11748, 33245, 198, 11748, 33918, 62, 83, 23706, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 357, 397, 2777, 776, 11, 1615, 12453, 11, 26672, 3672, 11, 7160, 11, 4292, 7220, 11, 198, ...
2.178849
1,286
"""This submodule contains a JSON reference translator.""" __author__ = 'tpn Tomsa' __copyright__ = 'Copyright 2021 tpn Tomsa' __license__ = 'MIT' __all__ = () import prance.util.url as _url def _reference_key(ref_url, item_path): """ Return a portion of the dereferenced URL. format - ref-url_obj-path...
[ 37811, 1212, 850, 21412, 4909, 257, 19449, 4941, 33417, 526, 15931, 198, 198, 834, 9800, 834, 796, 705, 83, 21999, 309, 3150, 64, 6, 198, 834, 22163, 4766, 834, 796, 705, 15269, 220, 33448, 256, 21999, 309, 3150, 64, 6, 198, 834, 43...
2.672316
177
from io import StringIO from unittest import TestCase from dropSQL.parser.streams import *
[ 6738, 33245, 1330, 10903, 9399, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 4268, 17861, 13, 48610, 13, 5532, 82, 1330, 1635, 628 ]
3.576923
26
import os import filecmp import unittest import numpy as np from openql import openql as ql from utils import file_compare curdir = os.path.dirname(os.path.realpath(__file__)) output_dir = os.path.join(curdir, 'test_output') # relates to https://github.com/QE-Lab/OpenQL/issues/171 # various runs of compiles ...
[ 11748, 28686, 198, 11748, 2393, 48991, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1280, 13976, 1330, 1280, 13976, 355, 10662, 75, 198, 6738, 3384, 4487, 1330, 2393, 62, 5589, 533, 198, 198, 66, 2799, 343, ...
2.123568
1,222
#!/usr/bin/python """Looks for sensor on the bus and changes it's address to the one specified on command line""" import argparse import minimalmodbus import serial from time import sleep parser = argparse.ArgumentParser() parser.add_argument('address', metavar='ADDR', type=int, choices=range(1, 248), help='An ad...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 41102, 329, 12694, 319, 262, 1323, 290, 2458, 340, 338, 2209, 284, 262, 530, 7368, 319, 3141, 1627, 37811, 220, 198, 198, 11748, 1822, 29572, 198, 198, 11748, 10926, 4666, 10885, ...
2.841346
416
# coding: utf-8 import os import pickle import shutil import tempfile import unittest import ray from ray import tune from ray.rllib import _register_all from ray.tune import Trainable from ray.tune.utils import validate_save_restore if __name__ == "__main__": import pytest import sys sys.exit(pytest.m...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 11748, 555, 715, 395, 198, 198, 11748, 26842, 198, 6738, 26842, 1330, 14009, 198, 6738, 26842, 13, 81, 297,...
2.834711
121
MANIFEST = { "hilt": { "h1": { "offsets": {"blade": 0, "button": {"x": (8, 9), "y": (110, 111)}}, "colours": { "primary": (216, 216, 216), # d8d8d8 "secondary": (141, 141, 141), # 8d8d8d "tertiary": (180, 97, 19), # b46113 ...
[ 10725, 5064, 6465, 796, 1391, 198, 220, 220, 220, 366, 71, 2326, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 71, 16, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8210, 1039, 1298, 19779...
1.746439
2,457
import numpy as np import pytest import theano import theano.tensor as tt # Don't import test classes otherwise they get tested as part of the file from tests import unittest_tools as utt from tests.gpuarray.config import mode_with_gpu, mode_without_gpu, test_ctx_name from tests.tensor.test_basic import ( TestAll...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 11748, 262, 5733, 198, 11748, 262, 5733, 13, 83, 22854, 355, 256, 83, 198, 198, 2, 2094, 470, 1330, 1332, 6097, 4306, 484, 651, 6789, 355, 636, 286, 262, 2393, 198, 6...
2.088622
1,749
# coding: spec from interactor.commander.store import store, load_commands from photons_app.mimic.event import Events from photons_app import helpers as hp from photons_canvas.points.simple_messages import Set64 from unittest import mock import pytest describe "Animation Commands": async it "can get i...
[ 2, 19617, 25, 1020, 198, 198, 6738, 9427, 273, 13, 9503, 4066, 13, 8095, 1330, 3650, 11, 3440, 62, 9503, 1746, 198, 198, 6738, 44378, 62, 1324, 13, 76, 320, 291, 13, 15596, 1330, 18715, 198, 6738, 44378, 62, 1324, 1330, 49385, 355, ...
2.108608
3,950
from pytube import YouTube
[ 6738, 12972, 29302, 1330, 7444, 198 ]
4.5
6
# Copyright 2015 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ 2, 15069, 1853, 4946, 8090, 47061, 5693, 11, 3457, 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, 13789, ...
2.539869
2,132
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from neuralcompression.functional import soft_round, soft_round_inverse
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, ...
3.926471
68
from easydict import EasyDict hopper_ppo_default_config = dict( env=dict( env_id='HopperMuJoCoEnv-v0', norm_obs=dict(use_norm=False, ), norm_reward=dict(use_norm=False, ), collector_env_num=8, evaluator_env_num=10, use_act_scale=True, n_evaluator_episode=10, ...
[ 6738, 2562, 11600, 1330, 16789, 35, 713, 198, 198, 8873, 2848, 62, 16634, 62, 12286, 62, 11250, 796, 8633, 7, 198, 220, 220, 220, 17365, 28, 11600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 17365, 62, 312, 11639, 28900, 2848, 33239...
1.872845
928
import json from cisco_sdwan_policy.BaseObject import BaseObject
[ 11748, 33918, 198, 198, 6738, 269, 4861, 62, 21282, 8149, 62, 30586, 13, 14881, 10267, 1330, 7308, 10267, 628 ]
3.526316
19
"""DNS docker object.""" import logging from ..const import ENV_TIME from ..coresys import CoreSysAttributes from .interface import DockerInterface _LOGGER: logging.Logger = logging.getLogger(__name__) DNS_DOCKER_NAME: str = "hassio_dns"
[ 37811, 35, 8035, 36253, 2134, 526, 15931, 198, 11748, 18931, 198, 198, 6738, 11485, 9979, 1330, 12964, 53, 62, 34694, 198, 6738, 11485, 66, 2850, 893, 1330, 7231, 44387, 29021, 198, 6738, 764, 39994, 1330, 25716, 39317, 198, 198, 62, 25...
3.025
80
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ 2, 220, 220, 220, 220, 15069, 13130, 11, 17356, 9075, 268, 11, 6920, 1462, 25, 5568, 13, 71, 323, 268, 31, 14816, 13, 785, 198, 2, 198, 2, 220, 220, 220, 220, 2142, 286, 366, 45, 5013, 4914, 1600, 281, 45780, 11361, 17050, 326, ...
2.501709
1,170
import sys from dagster import check from dagster.config.validate import validate_config_from_snap from dagster.core.host_representation import ExternalPipeline, PipelineSelector, RepositorySelector from dagster.core.workspace.context import BaseWorkspaceRequestContext from dagster.utils.error import serializable_erro...
[ 11748, 25064, 198, 198, 6738, 48924, 1706, 1330, 2198, 198, 6738, 48924, 1706, 13, 11250, 13, 12102, 378, 1330, 26571, 62, 11250, 62, 6738, 62, 45380, 198, 6738, 48924, 1706, 13, 7295, 13, 4774, 62, 15603, 341, 1330, 34579, 47, 541, 4...
3.632
125
import os from tempfile import TemporaryDirectory from quickbase_client.utils.pywriting_utils import BasicPyFileWriter from quickbase_client.utils.pywriting_utils import PyPackageWriter
[ 11748, 28686, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 198, 6738, 2068, 8692, 62, 16366, 13, 26791, 13, 9078, 16502, 62, 26791, 1330, 14392, 20519, 8979, 34379, 198, 6738, 2068, 8692, 62, 16366, 13, 26791, 13, 9078, 16502, 62, 2...
4.021277
47
""" Residual Networks (ResNet) """ # adapted from # https://github.com/fchollet/deep-learning-models/blob/master/resnet50.py import tensorflow as tf def identity_block( input_tensor, filters, stage, block, train_bn=False ): """ Builds an identity shortcut...
[ 37811, 198, 4965, 312, 723, 27862, 357, 4965, 7934, 8, 198, 37811, 198, 198, 2, 16573, 422, 220, 198, 2, 3740, 1378, 12567, 13, 785, 14, 69, 354, 349, 1616, 14, 22089, 12, 40684, 12, 27530, 14, 2436, 672, 14, 9866, 14, 411, 3262, ...
2.27125
3,200
from rds_log_cat.parser.parser import Parser, LineParserException
[ 6738, 374, 9310, 62, 6404, 62, 9246, 13, 48610, 13, 48610, 1330, 23042, 263, 11, 6910, 46677, 16922, 628 ]
3.526316
19
from functools import partial from corpustools.corpus.classes import Word from corpustools.symbolsim.edit_distance import edit_distance from corpustools.symbolsim.khorsi import khorsi from corpustools.symbolsim.phono_edit_distance import phono_edit_distance from corpustools.symbolsim.phono_align import Aligner from co...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 6738, 24614, 436, 10141, 13, 10215, 79, 385, 13, 37724, 1330, 9678, 198, 6738, 24614, 436, 10141, 13, 1837, 2022, 10220, 320, 13, 19312, 62, 30246, 1330, 4370, 62, 30246, 198, 6738, 24614, ...
2.344021
4,491
# Generated by Django 2.1.1 on 2018-11-06 17:19 from django.conf import settings from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 16, 319, 2864, 12, 1157, 12, 3312, 1596, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
3.052632
38
import gym import numpy as np from itertools import product import matplotlib.pyplot as plt def print_policy(Q, env): """ This is a helper function to print a nice policy from the Q function""" moves = [u'', u'',u'', u''] if not hasattr(env, 'desc'): env = env.env dims = env.desc.shape pol...
[ 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 4299, 3601, 62, 30586, 7, 48, 11, 17365, 2599, 198, 220, 220, 220, 37227...
1.925255
1,766
# Generated by Django 3.0.4 on 2020-07-14 11:00 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 19, 319, 12131, 12, 2998, 12, 1415, 1367, 25, 405, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
from .BaseRequest import BaseRequest
[ 6738, 764, 14881, 18453, 1330, 7308, 18453, 628 ]
4.75
8
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # License: MIT. See LICENSE import unittest import frappe from frappe.utils import set_request from frappe.website.serve import get_response test_dependencies = ["Blog Post"]
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 13130, 11, 39313, 27768, 21852, 290, 25767, 669, 198, 2, 13789, 25, 17168, 13, 4091, 38559, 24290, 198, 11748, 555, 715, 395, 198, 198, 11748, 53...
3.182927
82
import numpy as np from .VariableUnitTest import VariableUnitTest from gwlfe.MultiUse_Fxns.Runoff import AgRunoff
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 43015, 26453, 14402, 1330, 35748, 26453, 14402, 198, 6738, 308, 86, 1652, 68, 13, 29800, 11041, 62, 37, 87, 5907, 13, 10987, 2364, 1330, 2449, 10987, 2364, 628 ]
3.135135
37
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ 2, 406, 600, 355, 25, 21015, 18, 198, 2, 15069, 13130, 383, 309, 22854, 37535, 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...
3.786885
244
import oblate import numpy as np import pytest # TODO!
[ 11748, 909, 17660, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 2, 16926, 46, 0, 198 ]
2.8
20
# -*- coding: utf-8 -*- # @Filename : take_snapshot.py # @Date : 2019-07-15-13-44 # @Project: ITC-sniff-for-changes-in-directory # @Author: Piotr Wooszyn # @Website: http://itcave.eu # @Email: contact@itcave.eu # @License: MIT # @Copyright (C) 2019 ITGO Piotr Wooszyn # Generic imports import os import pickle import r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 35063, 1058, 1011, 62, 45380, 9442, 13, 9078, 198, 2, 2488, 10430, 1058, 13130, 12, 2998, 12, 1314, 12, 1485, 12, 2598, 198, 2, 2488, 16775, 25, 314, 4825, ...
2.583532
838
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ 2, 220, 220, 220, 220, 15069, 12131, 11, 17356, 9075, 268, 11, 6920, 1462, 25, 5568, 13, 71, 323, 268, 31, 14816, 13, 785, 198, 2, 198, 2, 220, 220, 220, 220, 2142, 286, 366, 45, 5013, 4914, 1600, 281, 45780, 11361, 17050, 326, ...
3.546835
395
import math import pytest import chainerx all_scalar_values = [ -2, 1, -1.5, 2.3, True, False, float('inf'), float('nan')] def test_init_invalid(): with pytest.raises(TypeError): chainerx.Scalar("1") # string, which is not a numeric
[ 11748, 10688, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 6333, 263, 87, 628, 198, 198, 439, 62, 1416, 282, 283, 62, 27160, 796, 685, 198, 220, 220, 220, 532, 17, 11, 352, 11, 532, 16, 13, 20, 11, 362, 13, 18, 11, 6407, 11, ...
2.366071
112
import sys import pygame from app_window import App_window from button import Button from snake import Snake from food import Food from settings import WIDTH, HEIGHT, FONT, BG_COL, QUIT_BUTTON_COLOUR, PLAY_BUTTON_COLOUR, BLACK, FPS, RED
[ 11748, 25064, 198, 11748, 12972, 6057, 198, 6738, 598, 62, 17497, 1330, 2034, 62, 17497, 198, 6738, 4936, 1330, 20969, 198, 6738, 17522, 1330, 16705, 198, 6738, 2057, 1330, 7318, 198, 6738, 6460, 1330, 370, 2389, 4221, 11, 11179, 9947, ...
3.352113
71
from pupa.utils import fix_bill_id from opencivicdata.legislative.models import (Bill, RelatedBill, BillAbstract, BillTitle, BillIdentifier, BillAction, BillActionRelatedEntity, BillSponsorship, BillSource, BillDocument, ...
[ 6738, 15552, 64, 13, 26791, 1330, 4259, 62, 35546, 62, 312, 198, 6738, 1280, 66, 16482, 7890, 13, 1455, 3044, 876, 13, 27530, 1330, 357, 17798, 11, 19809, 17798, 11, 3941, 23839, 11, 3941, 19160, 11, 198, 220, 220, 220, 220, 220, 22...
2.123348
227
from sklearn.metrics import f1_score,accuracy_score import numpy as np from utilities.tools import load_model import pandas as pd
[ 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 11, 4134, 23843, 62, 26675, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 20081, 13, 31391, 1330, 3440, 62, 19849, 198, 11748, 19798, 292, 355, 279, 67, 198 ]
3.333333
39
# coding=utf-8 import logging import traceback from os import makedirs from os.path import exists, join from textwrap import fill import matplotlib.patheffects as PathEffects import matplotlib.pyplot as plt import numpy as np import seaborn as sns from koino.plot import big_square, default_alpha from matplotlib import...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 18931, 198, 11748, 12854, 1891, 198, 6738, 28686, 1330, 285, 4335, 17062, 198, 6738, 28686, 13, 6978, 1330, 7160, 11, 4654, 198, 6738, 2420, 37150, 1330, 6070, 198, 198, 11748, 2603, 29487, 8019,...
2.171717
1,980
import typing nt = typing.NamedTuple("name", [("field", str)])
[ 11748, 19720, 198, 198, 429, 796, 19720, 13, 45, 2434, 51, 29291, 7203, 3672, 1600, 685, 7203, 3245, 1600, 965, 8, 12962 ]
2.863636
22
#!/usr/bin/env python # -*- coding: utf-8 -*- # import web import time from bson.objectid import ObjectId from config import setting import helper db = setting.db_web # url = ('/plat/index_news_remove')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 198, 11748, 3992, 198, 11748, 640, 198, 6738, 275, 1559, 13, 15252, 312, 1330, 9515, 7390, 198, 6738, 4566, 1...
2.679487
78
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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 b...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 35516, 5136, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 13789, 1776, 198, 2, 22...
3.645161
248
from CommonServerPython import * ''' IMPORTS ''' import re import requests # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBALS/PARAMS ''' VENDOR = 'Have I Been Pwned? V2' MAX_RETRY_ALLOWED = demisto.params().get('max_retry_time', -1) API_KEY = demisto.params().get('api_key') USE_SS...
[ 6738, 8070, 10697, 37906, 1330, 1635, 198, 198, 7061, 6, 30023, 33002, 705, 7061, 198, 198, 11748, 302, 198, 11748, 7007, 198, 198, 2, 31529, 31955, 14601, 198, 8897, 3558, 13, 43789, 13, 333, 297, 571, 18, 13, 40223, 62, 40539, 654, ...
2.618787
2,555
from moshmosh.extension import Extension from moshmosh.ast_compat import ast
[ 6738, 285, 3768, 76, 3768, 13, 2302, 3004, 1330, 27995, 198, 6738, 285, 3768, 76, 3768, 13, 459, 62, 5589, 265, 1330, 6468, 628 ]
3.25
24
import argparse import os import r2pipe import struct import mmap import base64 from shutil import copyfile import pprint pp = pprint.PrettyPrinter(indent=4) if __name__ == '__main__': main()
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 374, 17, 34360, 198, 11748, 2878, 198, 11748, 8085, 499, 198, 11748, 2779, 2414, 198, 6738, 4423, 346, 1330, 4866, 7753, 198, 11748, 279, 4798, 198, 381, 796, 279, 4798, 13, 35700, 6836...
2.927536
69
# Generated by Django 2.2.15 on 2021-01-29 20:20 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1314, 319, 33448, 12, 486, 12, 1959, 1160, 25, 1238, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.840909
44
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Julien Stroheker <juliens@microsoft.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_ve...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 25, 357, 66, 8, 1584, 11, 5979, 2013, 30183, 258, 6122, 1279, 73, 377, 10465, 31, 40485, 13, 785, 29, 198, ...
2.20679
1,620
import inspect import json import os import random import subprocess import time import requests import ast import paramiko import rancher from rancher import ApiError from lib.aws import AmazonWebServices DEFAULT_TIMEOUT = 120 DEFAULT_MULTI_CLUSTER_APP_TIMEOUT = 300 CATTLE_TEST_URL = os.environ.get('CATTLE_TEST_URL'...
[ 11748, 10104, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 7007, 198, 11748, 6468, 198, 11748, 5772, 12125, 198, 11748, 32205, 372, 198, 6738, 32205, 372, 1330, 5949, 72, 123...
2.32809
445
# Given a string containing just the characters '(', ')', '{', '}', '[' and ']', # determine if the input string is valid. # An input string is valid if: # Open brackets must be closed by the same type of brackets. # Open brackets must be closed in the correct order. # Note that an empty string is also considered val...
[ 2, 11259, 257, 4731, 7268, 655, 262, 3435, 29513, 3256, 705, 8, 3256, 705, 90, 3256, 705, 92, 3256, 705, 17816, 290, 705, 60, 3256, 220, 198, 2, 5004, 611, 262, 5128, 4731, 318, 4938, 13, 198, 198, 2, 1052, 5128, 4731, 318, 4938, ...
3.015385
195
from flask import current_app from sqlalchemy.exc import InterfaceError from sqlalchemy.exc import OperationalError try: from ibutsu_server.db.model import Result IS_CONNECTED = True except ImportError: IS_CONNECTED = False def get_health(token_info=None, user=None): """Get a health report :rty...
[ 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 26491, 12331, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 6564, 864, 12331, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 24283, 36567, 62, 15388, 13, ...
2.778502
614
"""Bindings for the Barnes Hut TSNE algorithm with fast nearest neighbors Refs: References [1] van der Maaten, L.J.P.; Hinton, G.E. Visualizing High-Dimensional Data Using t-SNE. Journal of Machine Learning Research 9:2579-2605, 2008. [2] van der Maaten, L.J.P. t-Distributed Stochastic Neighbor Embedding http://homepa...
[ 37811, 36180, 654, 329, 262, 21335, 32767, 26136, 12161, 11862, 351, 3049, 16936, 12020, 198, 198, 8134, 82, 25, 198, 19927, 198, 58, 16, 60, 5719, 4587, 6669, 36686, 11, 406, 13, 41, 13, 47, 15089, 367, 2371, 11, 402, 13, 36, 13, ...
2.772152
158
# contains any CRUD not related to strictly editing users info and courses info from .views import admin
[ 2, 4909, 597, 8740, 8322, 407, 3519, 284, 14084, 12857, 2985, 7508, 290, 10902, 7508, 198, 6738, 764, 33571, 1330, 13169, 198 ]
4.772727
22
r''' This module provides utilities to get the absolute filenames so that we can be sure that: - The case of a file will match the actual file in the filesystem (otherwise breakpoints won't be hit). - Providing means for the user to make path conversions when doing a remote debugging session in ...
[ 81, 7061, 6, 198, 220, 220, 220, 770, 8265, 3769, 20081, 284, 651, 262, 4112, 1226, 268, 1047, 523, 326, 356, 460, 307, 1654, 326, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 383, 1339, 286, 257, 2393, 481, 2872, 262, 4036, ...
2.6133
3,579
import os import socket from random import randint from src import Constants from src.Constants import Network from src.networking import NetworkPackets, Actions from src.networking.Client import Client from src.utils.DH_Encryption import Encryption from src.utils.Enum import Enum
[ 11748, 28686, 198, 11748, 17802, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 12351, 1330, 4757, 1187, 198, 6738, 12351, 13, 34184, 1187, 1330, 7311, 198, 6738, 12351, 13, 3262, 16090, 1330, 7311, 11869, 1039, 11, 24439, 198, 6738, ...
3.851351
74
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: resource_requirements.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 8271, 62, 8897, 18883, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, ...
2.767442
1,204
from __future__ import absolute_import, division, print_function import pytest import json import asyncio import stripe import urllib3 from stripe import six, util from async_stripe.http_client import TornadoAsyncHTTPClient pytestmark = pytest.mark.asyncio VALID_API_METHODS = ("get", "post", "delete") ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 12972, 9288, 198, 11748, 33918, 198, 11748, 30351, 952, 198, 198, 11748, 39858, 198, 11748, 2956, 297, 571, 18, 198, 6738, 39858, 1330, 2237,...
2.21097
948
"""\ Provides html file visualization of a json dataset """ import json import subprocess
[ 37811, 59, 198, 15946, 1460, 27711, 2393, 32704, 286, 257, 33918, 27039, 198, 37811, 198, 11748, 33918, 198, 11748, 850, 14681, 628 ]
4.136364
22
import sys from PyQt5 import QtGui from PyQt5.QtCore import QEvent, QPoint, Qt from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import (QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget) from sim2d_game_analyzer.fmdb_tab import FMDBTab if __name__ == "__...
[ 11748, 25064, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 8205, 72, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 9237, 11, 1195, 12727, 11, 33734, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1195, ...
2.254054
185
# pip install openpyxl # pip install cuid import os.path import json import datetime from openpyxl import load_workbook import cuid # https://github.com/necaris/cuid.py - create uuid's in the format that graphcool expects SOURCE_XLSX = "./data/CLP_combined.xlsx" EXTRACT_OUTPUT_DIR = "../server/extract" SCHOOL_TITL...
[ 2, 7347, 2721, 1280, 9078, 87, 75, 198, 2, 7347, 2721, 18912, 312, 198, 11748, 28686, 13, 6978, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 198, 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 198, 11748, 18912, 312, 220, ...
1.93928
2,388
import os import sys from lxml import html import pathlib import json import m3u8 from seleniumwire import webdriver from selenium.common.exceptions import TimeoutException, NoSuchElementException from selenium.webdriver.firefox.options import Options as FirefoxOptions IFRAME_CSS_SELECTOR = '.iframe-container>iframe'...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 300, 19875, 1330, 27711, 198, 11748, 3108, 8019, 198, 11748, 33918, 198, 11748, 285, 18, 84, 23, 198, 198, 6738, 384, 11925, 1505, 21809, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 11...
3.530612
98
VERSION = "1.4.0" DATE = "2016-Sept-21"
[ 43717, 796, 366, 16, 13, 19, 13, 15, 1, 198, 35, 6158, 796, 366, 5304, 12, 14635, 12, 2481, 1, 198 ]
1.904762
21
import pygame import shared
[ 11748, 12972, 6057, 201, 198, 11748, 4888, 201 ]
3.625
8
import sys import threading import logging import time logger = logging.getLogger("interchange.strategy.base")
[ 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 18931, 198, 11748, 640, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 3849, 3803, 13, 2536, 4338, 13, 8692, 4943, 628, 198 ]
3.454545
33
import torch import torchvision import matplotlib import matplotlib.pyplot as plt from PIL import Image from captum.attr import GuidedGradCam, GuidedBackprop from captum.attr import LayerActivation, LayerConductance, LayerGradCam from data_utils import * from image_utils import * from captum_utils import * import nump...
[ 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 3144, 388, 13, 35226, 1330, 1962, 1384, 42731, 21701, 11, ...
2.595096
2,855
from collections import namedtuple Genotype = namedtuple('Genotype', 'normal normal_concat reduce reduce_concat') PRIMITIVES = [ 'none', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5' ] CRBPRIMITIVES = [ 'max_pool_3x3...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 13746, 8690, 796, 3706, 83, 29291, 10786, 13746, 8690, 3256, 705, 11265, 3487, 62, 1102, 9246, 4646, 4646, 62, 1102, 9246, 11537, 198, 198, 4805, 3955, 2043, 42472, 796, 685, 198, 220, 220, ...
1.773161
2,094
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 12131, 3012, 11419, 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...
2.556847
1,979
from sympy.core.basic import Basic as sp_Basic
[ 6738, 10558, 88, 13, 7295, 13, 35487, 1330, 14392, 355, 599, 62, 26416, 628 ]
3.428571
14
from itertools import product import numpy as np import pytest from alibi_detect.utils.discretizer import Discretizer x = np.random.rand(10, 4) n_features = x.shape[1] feature_names = [str(_) for _ in range(n_features)] categorical_features = [[], [1, 3]] percentiles = [list(np.arange(25, 100, 25)), list(np.arange(10...
[ 6738, 340, 861, 10141, 1330, 1720, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 435, 27567, 62, 15255, 478, 13, 26791, 13, 15410, 1186, 7509, 1330, 8444, 1186, 7509, 198, 198, 87, 796, 45941, 13, 25120, 13, ...
2.753333
150
# -*- coding: utf-8 -*- """ Created on Mon Jun 14 11:49:43 2021 @author: Andres """ import sys,time import unittest from tinc import * if __name__ == '__main__': unittest.main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 7653, 1478, 1367, 25, 2920, 25, 3559, 33448, 198, 198, 31, 9800, 25, 843, 411, 198, 37811, 198, 198, 11748, 25064, 11, 2435, 198, 11748, ...
2.157895
95