content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" Handles most general questions (including math!) Requires: - WolframAlpha API key Usage Examples: - "How tall is Mount Everest?" - "What is the derivative of y = 2x?" """ import wolframalpha from orion.classes.module import Module from orion.classes.task import ActiveTask from orion i...
[ 37811, 201, 198, 12885, 829, 749, 2276, 2683, 357, 8201, 10688, 8133, 201, 198, 201, 198, 39618, 25, 201, 198, 220, 220, 220, 532, 8662, 859, 38077, 7824, 1994, 201, 198, 201, 198, 28350, 21066, 25, 201, 198, 220, 220, 220, 532, 366...
2.892086
139
from polymatch import PolymorphicMatcher
[ 6738, 7514, 15699, 1330, 12280, 24503, 291, 19044, 2044, 628, 198 ]
3.909091
11
""" Django settings for project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os # Debug #DEBUG = False DEBUG = True TEMPLATE_DEBUG = DEBUG INFORMIX_DEBUG = "debug" ADMINS = ( ('', ''), ) MANAGERS = ADMINS SECRET_KEY = '' ALLOWED_HOSTS = [] LANGUAGE_CODE = 'en-us' TIME_ZONE...
[ 37811, 198, 35, 73, 14208, 6460, 329, 1628, 13, 198, 37811, 198, 198, 2, 10934, 13532, 2641, 262, 1628, 588, 428, 25, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 2644, 8, 198, 11748, 28686, 198, 198, 2, 31687, 198, 2,...
2.038077
3,204
__author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '12/9/2020 4:18 PM' from abc import abstractmethod if __name__ == '__main__': ss = Factory().produce() pc = PCFactory().produce() laptop = LAPTOPFactory().produce() pc.info() laptop.info() ss.info()
[ 834, 9800, 834, 796, 705, 34451, 10998, 6, 198, 834, 12888, 834, 796, 705, 1525, 648, 24, 4869, 31, 16241, 13, 15532, 6, 198, 834, 4475, 834, 796, 705, 1065, 14, 24, 14, 42334, 604, 25, 1507, 3122, 6, 198, 198, 6738, 450, 66, 13...
2.416
125
import uuid from typing import AsyncGenerator import pytest from sqlalchemy import exc from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine from sqlalchemy.orm import sessionmaker from sqlmodel import Session, SQLModel, create_engine from fastapi_users_db_sqlmodel import ( NotSetOAuthAccountTableE...
[ 11748, 334, 27112, 198, 6738, 19720, 1330, 1081, 13361, 8645, 1352, 198, 198, 11748, 12972, 9288, 198, 6738, 44161, 282, 26599, 1330, 2859, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 292, 13361, 952, 1330, 1081, 13361, 36044, 11, 2251, ...
2.926554
177
#! /usr/bin/env python3 import os from os import path root_dir = path.dirname(path.realpath(__file__)) local_reg_dir = path.join(root_dir, 'registry') os.makedirs(local_reg_dir, exist_ok=True) vk_files = [ 'registry/vk.xml', 'registry/reg.py', 'registry/generator.py' ] copy_reg(path.join(root_dir, 'Vulkan-Headers'),...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 6738, 28686, 1330, 3108, 198, 198, 15763, 62, 15908, 796, 3108, 13, 15908, 3672, 7, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 12001, 62, 2301,...
2.398551
138
import numpy as np import pandas as pd import scipy.stats as st #from medical_ML import Experiment import matplotlib.pyplot as plt import xgboost as xgb from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.dummy import DummyClassifier from sklearn.tree import DecisionTreeClassif...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 629, 541, 88, 13, 34242, 355, 336, 198, 198, 2, 6738, 3315, 62, 5805, 1330, 29544, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 1...
2.18203
857
import json import logging import re import susepubliccloudinfoclient.infoserverrequests as ifsrequest import yaml import sys RELEASE_DATE = re.compile('^.*-v(\d{8})-*.*') def get_caasp_release_version(): """Return the version from os-release""" os_release = open('/etc/os-release', 'r').readlines() for e...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 424, 325, 11377, 17721, 10745, 38679, 1153, 13, 10745, 13416, 332, 8897, 3558, 355, 611, 82, 25927, 198, 11748, 331, 43695, 198, 11748, 25064, 198, 198, 2200, 22781, 62, 35, ...
2.502062
1,697
# Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers # # This file is part of bitcoin-blockchain-parser. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of bitcoin-blockchain-parser, including this file, may be copied, # modif...
[ 2, 15069, 357, 34, 8, 1853, 12, 5304, 383, 8550, 12, 9967, 7983, 12, 48610, 6505, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 8550, 12, 9967, 7983, 12, 48610, 13, 198, 2, 198, 2, 632, 318, 2426, 284, 262, 5964, 2846, 287, 262, 3...
3.857143
140
''' DNA++ (c) DNA++ 2017 All rights reserved. @author: neilswainston '''
[ 7061, 6, 198, 28886, 4880, 357, 66, 8, 7446, 4880, 2177, 198, 198, 3237, 2489, 10395, 13, 198, 198, 31, 9800, 25, 497, 346, 2032, 391, 3743, 198, 7061, 6, 198 ]
2.419355
31
import os import pandas as pd import pytest from user_similarity_model.config.core import DATASET_DIR, config
[ 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 198, 6738, 2836, 62, 38610, 414, 62, 19849, 13, 11250, 13, 7295, 1330, 360, 1404, 1921, 2767, 62, 34720, 11, 4566, 628 ]
3.054054
37
from django.apps import AppConfig import logging logger = logging.getLogger(__name__)
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.259259
27
import filer import tests
[ 11748, 1226, 263, 198, 11748, 5254, 198 ]
3.714286
7
""" ============ Pass Network ============ This example shows how to plot passes between players in a set formation. """ import pandas as pd from mplsoccer.pitch import Pitch from matplotlib.colors import to_rgba import numpy as np from mplsoccer.statsbomb import read_event, EVENT_SLUG ##############################...
[ 37811, 198, 25609, 198, 14478, 7311, 198, 25609, 198, 198, 1212, 1672, 2523, 703, 284, 7110, 8318, 1022, 1938, 287, 257, 900, 9978, 13, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 285, 489, 35634, 2189, 13, 79, ...
2.791551
2,888
__all__ = ['Factory'] import jsfiddle_build import jsfiddle_github import jsfiddle_generator import jsfiddle_readme_generator import getdirs import getfiles import os import popd import yaml class Factory: """attrs: `path`. methods: `detox()`, `init()`, `build()`, `readme()`, `update_resources()`""" path...
[ 834, 439, 834, 796, 37250, 22810, 20520, 628, 198, 11748, 474, 28202, 2509, 62, 11249, 198, 11748, 474, 28202, 2509, 62, 12567, 198, 11748, 474, 28202, 2509, 62, 8612, 1352, 198, 11748, 474, 28202, 2509, 62, 961, 1326, 62, 8612, 1352, ...
2.877193
114
import logging import os from datetime import datetime from inspect import signature, Parameter from pathlib import Path from pprint import pprint from textwrap import dedent from typing import Optional, Union import fire import tensorflow as tf from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, Te...
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 10104, 1330, 9877, 11, 25139, 2357, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 2420, 37150, 1330, 4648, 298, ...
3.218623
247
# Copyright 2020 The Flax Authors. # # 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 wri...
[ 2, 15069, 12131, 383, 1610, 897, 46665, 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, 13, 198, 2,...
3.085981
535
# -*- coding: utf-8 -*- from django.utils import translation from django.db.models import ObjectDoesNotExist from pybb import util from pybb.signals import user_saved
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 11059, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 12972, 11848, 1330, 7736, 198...
3.035714
56
from enum import Enum
[ 6738, 33829, 1330, 2039, 388 ]
4.2
5
import fileinput counts = {} for line in fileinput.input(): line = line.strip() p1, p2 = line.split('>') p1 = p1[:-2] x1, y1 = p1.split(',') x1 = int(x1) y1 = int(y1) p2 = p2[1:] x2, y2 = p2.split(',') x2 = int(x2) y2 = int(y2) if x1 == x2: dx = 0 elif x1 > x2:...
[ 11748, 2393, 15414, 198, 198, 9127, 82, 796, 23884, 198, 1640, 1627, 287, 2393, 15414, 13, 15414, 33529, 198, 220, 220, 220, 1627, 796, 1627, 13, 36311, 3419, 198, 220, 220, 220, 279, 16, 11, 279, 17, 796, 1627, 13, 35312, 10786, 29...
1.630979
439
import logging from web3 import Web3 import sys import time import meditation.meditation as meditation if __name__ == "__main__": log_format = '%(asctime)s|%(name)s|%(levelname)s: %(message)s' logger = logging.getLogger("DFK-meditation") logger.setLevel(logging.DEBUG) logging.basicConfig(level=loggin...
[ 11748, 18931, 198, 6738, 3992, 18, 1330, 5313, 18, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 16901, 13, 1150, 3780, 355, 16901, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2604, 62, 189...
2.511521
651
import time
[ 11748, 640, 628 ]
4.333333
3
''' Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # tornado import tornado.ioloop # std lib import logging import time import weakref import functools # coweb from .base import BotWrapperBase log = logging.getLogger('coweb.bot')
[ 7061, 6, 198, 15269, 357, 66, 8, 383, 2141, 7639, 5693, 2813, 13, 1439, 6923, 33876, 13, 198, 15269, 357, 66, 8, 19764, 10501, 3648, 11, 2813, 13, 1439, 6923, 33876, 13, 198, 7061, 6, 198, 2, 33718, 198, 11748, 33718, 13, 1669, 11...
3.391304
92
import pygame import random pygame.init() clock = pygame.time.Clock() fps = 60 #game window bottom_panel = 150 screen_width = 800 screen_height = 400 + bottom_panel screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption('Battle') #define game variables current_fighter = 1 total...
[ 11748, 12972, 6057, 198, 11748, 4738, 198, 198, 9078, 6057, 13, 15003, 3419, 198, 198, 15750, 796, 12972, 6057, 13, 2435, 13, 44758, 3419, 198, 29647, 796, 3126, 198, 198, 2, 6057, 4324, 198, 22487, 62, 35330, 796, 6640, 198, 9612, 62...
2.66388
1,196
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] soma = col3 = maior = 0 for l in range(0, 3): for c in range(0, 3): matriz[l][c] = int(input(f'[{l}][{c}]: ')) for l in range(0, 3): for c in range(0, 3): print(f'[{matriz[l][c]:^5}]', end='') if matriz[l][c] % 2 == 0: soma += matriz...
[ 6759, 47847, 796, 16410, 15, 11, 657, 11, 657, 4357, 685, 15, 11, 657, 11, 657, 4357, 685, 15, 11, 657, 11, 657, 11907, 198, 82, 6086, 796, 951, 18, 796, 17266, 1504, 796, 657, 198, 1640, 300, 287, 2837, 7, 15, 11, 513, 2599, ...
1.856734
349
import onvif import os import asyncio import urllib.parse from onvif import ONVIFCamera from pytapo import Tapo from .const import ENABLE_MOTION_SENSOR, DOMAIN, LOGGER, CLOUD_PASSWORD from homeassistant.const import CONF_IP_ADDRESS, CONF_USERNAME, CONF_PASSWORD from homeassistant.components.onvif.event import EventMana...
[ 11748, 319, 85, 361, 198, 11748, 28686, 198, 11748, 30351, 952, 198, 11748, 2956, 297, 571, 13, 29572, 198, 6738, 319, 85, 361, 1330, 6177, 12861, 4851, 18144, 198, 6738, 12972, 83, 41817, 1330, 16880, 78, 198, 6738, 764, 9979, 1330, ...
2.932886
149
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Name: test_uidattr # Purpose: Test driver for module 'uidattr' # # Author: Michael Amrhein (michael@adrhinum.de) # # Copyright: (c) 2018 Michael Amrhein # -------------------...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 10541, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 27112, 35226, 198, 2, 32039, 25...
2.948148
270
import requests import time from bs4 import BeautifulSoup
[ 11748, 7007, 198, 11748, 640, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.551724
29
import uuid from abc import ABC, abstractmethod from collections import defaultdict from typing import Union from boto3.dynamodb.conditions import Attr as BotoAttr from boto3.dynamodb.conditions import Key as BotoKey from awstin.dynamodb.utils import from_decimal, to_decimal NOT_SET = NotSet() def size_query(...
[ 11748, 334, 27112, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 275, 2069, 18, 13, 67, 4989, 375, 65, 13, 17561, 1756, 1330, 3460, 81, 355, 347, ...
3.013029
307
from .supervise import *
[ 6738, 764, 16668, 85, 786, 1330, 1635, 198 ]
3.125
8
import torch import torch.nn as nn from torch.nn.parameter import Parameter from torch.nn.utils.rnn import pad_packed_sequence as unpack from torch.nn.utils.rnn import pack_padded_sequence as pack from .my_optim import weight_norm as WN # TODO: use system func to bind ~ RNN_MAP = {'lstm': nn.LSTM, 'gru': nn.GR...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 6738, 28034, 13, 20471, 13, 17143, 2357, 1330, 25139, 2357, 201, 198, 6738, 28034, 13, 20471, 13, 26791, 13, 81, 20471, 1330, 14841, 62, 34860, 62, 43167, 355, 5...
2.817204
186
#!//anaconda/envs/py36/bin/python # # File name: kmc_pld.py # Date: 2018/08/03 09:07 # Author: Lukas Vlcek # # Description: # import numpy as np from collections import Counter
[ 2, 0, 1003, 272, 330, 13533, 14, 268, 14259, 14, 9078, 2623, 14, 8800, 14, 29412, 198, 2, 198, 2, 9220, 1438, 25, 220, 220, 10571, 66, 62, 79, 335, 13, 9078, 198, 2, 7536, 25, 220, 220, 220, 220, 220, 220, 220, 2864, 14, 2919,...
2.204545
88
# -*- coding: utf-8 -*- # Copyright (C) 2006-2007 Sren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 4793, 12, 12726, 311, 918, 13876, 70, 11, 3427, 9344, 7732, 198, 2, 198, 2, 770, 5888, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, ...
3.645669
254
import os os.environ['CUDA_VISIBLE_DEVICES'] = '2' import torch torch.rand(10) import torch.nn as nn import torch.nn.functional as F import glob from tqdm import tqdm, trange print(torch.cuda.is_available()) print(torch.cuda.get_device_name()) print(torch.cuda.current_device()) device = torch.device('cuda' if torch.cu...
[ 11748, 28686, 198, 418, 13, 268, 2268, 17816, 43633, 5631, 62, 29817, 34563, 62, 39345, 34444, 20520, 796, 705, 17, 6, 198, 11748, 28034, 198, 13165, 354, 13, 25192, 7, 940, 8, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, ...
2.269105
3,062
"""Mock responses for recommendations.""" SEARCH_REQ = { "criteria": { "policy_type": ['reputation_override'], "status": ['NEW', 'REJECTED', 'ACCEPTED'], "hashes": ['111', '222'] }, "rows": 50, "sort": [ { "field": "impact_score", "order": "DESC" ...
[ 37811, 44, 735, 9109, 329, 10763, 526, 15931, 198, 198, 5188, 31315, 62, 2200, 48, 796, 1391, 198, 220, 220, 220, 366, 22213, 5142, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 30586, 62, 4906, 1298, 37250, 260, 1996, 34...
1.692444
3,375
# Copyright 2015 Carnegie Mellon University # # Author: Han Chen <hanc@andrew.cmu.edu> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
[ 2, 15069, 1853, 33976, 49808, 2059, 198, 2, 198, 2, 6434, 25, 9530, 12555, 1279, 71, 1192, 31, 392, 1809, 13, 11215, 84, 13, 15532, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
2.603175
819
from typing import Optional, Callable import requests from requests.auth import AuthBase from requests.exceptions import RequestException
[ 6738, 19720, 1330, 32233, 11, 4889, 540, 198, 198, 11748, 7007, 198, 6738, 7007, 13, 18439, 1330, 26828, 14881, 198, 6738, 7007, 13, 1069, 11755, 1330, 19390, 16922, 628, 198 ]
4.7
30
import os import shutil from .ZipFileManager import ZipFileManager from .DiskFileManager import DiskFileManager from .Directory import Directory import string printable = set(string.printable) - set("\x0b\x0c") def file_tree(target, replace=False): """Open a connection to a file tree which can be either a dis...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 6738, 764, 41729, 8979, 13511, 1330, 38636, 8979, 13511, 198, 6738, 764, 40961, 8979, 13511, 1330, 31664, 8979, 13511, 198, 6738, 764, 43055, 1330, 27387, 198, 198, 11748, 4731, 198, 198, 479...
3.085648
432
import sys import socket import time ip = '127.0.0.1' port = 9001 if (len(sys.argv)>1): ip = sys.argv[1] if (len(sys.argv)>2): port = int(sys.argv[2]) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((ip,port)) sock.send('bip\n\r') data = sock.recv(80) print data sock.send('TTS[it-IT...
[ 11748, 25064, 198, 11748, 17802, 198, 11748, 640, 198, 198, 541, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, 634, 796, 860, 8298, 198, 198, 361, 357, 11925, 7, 17597, 13, 853, 85, 8, 29, 16, 2599, 198, 220, 220, 220, 20966,...
2.128814
295
from abc import ABC, abstractmethod from typing import List from .common import ( AtCell, BasicMessage, GroupMessage, FriendMessage, MsgCellType, MessageType, PlainCell, ) from ..utils import is_str_blank, str_contains if __name__ == "__main__": msg_matcher = JustAtMeMsg(123)...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 19720, 1330, 7343, 198, 6738, 764, 11321, 1330, 357, 198, 220, 220, 220, 1629, 28780, 11, 198, 220, 220, 220, 14392, 12837, 11, 198, 220, 220, 220, 4912, 12837, 11, 198, 220, 2...
2.247525
303
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from django.contrib.auth.models import Group from django.utils.translation import ugettext_lazy as _ from main.models import UserInfo, User, Child, Volunteer, Donor, Letter, Need, PurchaseForInstitute, PurchaseForNeed, ...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 355, 37770, 12982, 46787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 6...
3.263415
205
import tdl import time import hunting.constants as c
[ 11748, 256, 25404, 198, 11748, 640, 198, 11748, 10988, 13, 9979, 1187, 355, 269, 628 ]
3.6
15
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198 ]
3.444444
9
""" Module for Pytorch dataset representations """ import torch from torch.utils.data import Dataset
[ 37811, 198, 26796, 329, 9485, 13165, 354, 27039, 24612, 198, 37811, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198 ]
3.777778
27
from zenslackchat.zendesk_base_webhook import BaseWebHook from zenslackchat.zendesk_email_to_slack import email_from_zendesk from zenslackchat.zendesk_comments_to_slack import comments_from_zendesk
[ 6738, 1976, 641, 75, 441, 17006, 13, 89, 437, 274, 74, 62, 8692, 62, 12384, 25480, 1330, 7308, 13908, 39, 566, 198, 6738, 1976, 641, 75, 441, 17006, 13, 89, 437, 274, 74, 62, 12888, 62, 1462, 62, 6649, 441, 1330, 3053, 62, 6738, ...
2.531646
79
# Import modules import groupdocs_merger_cloud from Common import Common # This example demonstrates how to move document page to a new position
[ 2, 17267, 13103, 198, 11748, 1448, 31628, 62, 647, 1362, 62, 17721, 198, 6738, 8070, 1330, 8070, 198, 198, 2, 770, 1672, 15687, 703, 284, 1445, 3188, 2443, 284, 257, 649, 2292 ]
4.53125
32
y_pred=ml.predict(x_test) print(y_pred) from sklearn.metrics import r2_score r2_score(y_test,y_pred) pred_y_df=pd.DataFrame({'Actual Value':y_test,'Predicted Value':y_pred, 'Difference': y_test-y_pred}) pred_y_df[0:20]
[ 88, 62, 28764, 28, 4029, 13, 79, 17407, 7, 87, 62, 9288, 8, 198, 4798, 7, 88, 62, 28764, 8, 198, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 374, 17, 62, 26675, 198, 81, 17, 62, 26675, 7, 88, 62, 9288, 11, 88, 62, 28764, ...
2.21
100
# -*- coding: utf-8 -*- """ This module offers util functions to be called and used in other modules """ from datetime import datetime import os import json import pickle import string import random import numpy as np import pandas as pd from matplotlib import pyplot as plt import seaborn as sns from sklearn impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 770, 8265, 4394, 7736, 5499, 284, 307, 1444, 290, 973, 198, 220, 220, 220, 287, 584, 13103, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, ...
2.467316
2,157
import asyncio import discord from discord.ext import commands import re import sqlite3 from urllib.parse import quote as uriquote import html CURR = ["AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "P...
[ 11748, 30351, 952, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 302, 198, 11748, 44161, 578, 18, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 355, 2956, 1557, 1258, 198, 11748, 27711, 628, 198, 34, 31302, ...
2
206
from SG_GetFeatureMatrix import * from SG_VectorY import * featureMatrix = featureMatrixFromReviews() Y = getYVector()
[ 6738, 26147, 62, 3855, 38816, 46912, 1330, 1635, 198, 6738, 26147, 62, 38469, 56, 1330, 1635, 198, 198, 30053, 46912, 796, 3895, 46912, 4863, 14832, 82, 3419, 198, 56, 796, 651, 56, 38469, 3419 ]
3.5
34
# Generated by Django 3.1.4 on 2021-01-17 19:12 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 486, 12, 1558, 678, 25, 1065, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 1420...
3.019231
52
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2013 dotCloud, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 2, 198, 2, 15069, 357, 66, 8, 2211, 16605, 18839, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, ...
3.35474
327
import unittest import unittest.mock as mock import asyncio import pyx.http as http
[ 11748, 555, 715, 395, 198, 11748, 555, 715, 395, 13, 76, 735, 355, 15290, 198, 11748, 30351, 952, 198, 11748, 12972, 87, 13, 4023, 355, 2638, 628, 628, 628, 628, 198 ]
2.967742
31
# -*- coding: utf-8 -*- # Copyright 2013 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os import unittest from splinter import Browser from .fake_webapp import EXAMPLE_APP from .base import WebDriverTests from selen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 2211, 4328, 3849, 7035, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 198, 2, 5964, 326, ...
2.567757
428
import os import json from File.file import File os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' if __name__ == "__main__": main()
[ 11748, 28686, 198, 198, 11748, 33918, 198, 198, 6738, 9220, 13, 7753, 1330, 9220, 198, 198, 418, 13, 268, 2268, 17816, 10234, 62, 8697, 47, 62, 23678, 62, 25294, 62, 2538, 18697, 20520, 796, 705, 18, 6, 628, 628, 198, 361, 11593, 36...
2.368421
57
import struct import numpy as np import pytest import miniglm
[ 11748, 2878, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 11748, 949, 38686, 76, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
2.727273
33
# -*- coding: utf-8 -*- from flask import Blueprint, redirect from flaskbb.utils.helpers import render_template from .forms import AddForm, DeleteForm from .models import MyPost from flaskbb.extensions import db news = Blueprint("news", __name__, template_folder="templates")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42903, 1330, 39932, 11, 18941, 198, 6738, 42903, 11848, 13, 26791, 13, 16794, 364, 1330, 8543, 62, 28243, 198, 198, 6738, 764, 23914, 1330, 3060, 8479, 11, 23520, ...
3.45122
82
from stix_shifter_utils.stix_translation.src.json_to_stix import json_to_stix_translator from stix_shifter_utils.stix_translation.src.utils.transformer_utils import get_module_transformers from stix_shifter_modules.aws_athena.entry_point import EntryPoint import unittest MODULE = "aws_athena" entry_point = EntryPoint(...
[ 6738, 336, 844, 62, 1477, 18171, 62, 26791, 13, 301, 844, 62, 41519, 13, 10677, 13, 17752, 62, 1462, 62, 301, 844, 1330, 33918, 62, 1462, 62, 301, 844, 62, 7645, 41880, 198, 6738, 336, 844, 62, 1477, 18171, 62, 26791, 13, 301, 844...
1.832345
9,275
#!/usr/bin/python # -*- coding: utf-8 -*- #file: 03 login.py #@author: Gorit #@contact: gorit@qq.com #@time: 2020/1/20 12:44 import requests from lxml import etree # obj = lMonKey()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 7753, 25, 7643, 17594, 13, 9078, 198, 2, 31, 9800, 25, 19097, 270, 198, 2, 31, 32057, 25, 30344, 270, 31, 38227, 13, ...
2.214286
84
#!/usr/bin/python # -*- coding: utf-8 -*- # This file was created using the DirectGUI Designer from direct.gui import DirectGuiGlobals as DGG from direct.gui.DirectFrame import DirectFrame from direct.gui.DirectLabel import DirectLabel from direct.gui.DirectButton import DirectButton from direct.gui.DirectOptionMenu...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 373, 2727, 1262, 262, 4128, 40156, 31716, 198, 198, 6738, 1277, 13, 48317, 1330, 4128, 8205, 72, 9861, 67...
3.006944
144
from . import FROM_FEED_PUBLISHED_TODAY, STRINGIFY
[ 6738, 764, 1330, 16034, 62, 15112, 1961, 62, 5105, 9148, 18422, 1961, 62, 51, 3727, 4792, 11, 19269, 2751, 5064, 56, 628, 198 ]
2.304348
23
# Advent of Code 2020 # Day 21 # Author: irobin591 import os import doctest import re re_entry = re.compile(r'^([a-z ]+) \(contains ([a-z, ]*)\)$') with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file: input_data = input_file.read().strip().split('\n') def part1(input_data): "...
[ 2, 33732, 286, 6127, 12131, 198, 2, 3596, 2310, 198, 2, 6434, 25, 1312, 305, 8800, 48952, 198, 198, 11748, 28686, 198, 11748, 10412, 395, 198, 11748, 302, 198, 198, 260, 62, 13000, 796, 302, 13, 5589, 576, 7, 81, 6, 61, 26933, 64,...
2.254858
1,338
""" Test that escaping characters for HTML is disabled. """ import os, subprocess
[ 37811, 198, 14402, 326, 25071, 3435, 329, 11532, 318, 10058, 13, 198, 37811, 198, 11748, 28686, 11, 850, 14681, 198 ]
4.1
20
from flask import Flask, jsonify, request from w3lib.html import get_base_url import extruct import requests app = Flask(__name__)
[ 6738, 42903, 1330, 46947, 11, 33918, 1958, 11, 2581, 198, 6738, 266, 18, 8019, 13, 6494, 1330, 651, 62, 8692, 62, 6371, 198, 11748, 1070, 1356, 198, 11748, 7007, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628 ]
3.325
40
""" A simple Python DAG using the Taskflow API. """ import logging import time from datetime import datetime from airflow import DAG from airflow.decorators import task log = logging.getLogger(__name__) with DAG( dag_id='simple_python_taskflow_api', schedule_interval=None, start_date=datetime(2021, 1, 1)...
[ 37811, 198, 32, 2829, 11361, 360, 4760, 1262, 262, 15941, 11125, 7824, 13, 198, 37811, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 45771, 1330, 360, 4760, 198, 6738, 45771, 13, 12501, 273...
2.724138
174
from . import model import numpy as np from scipy import special, stats
[ 6738, 764, 1330, 2746, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 2041, 11, 9756, 198 ]
3.6
20
#Contains the functions needed to process both chords and regularized beards # proc_chords is used for chords #proc_beard_regularize for generating beards #proc_pdf saves pdfs of a variable below cloud base #Both have a large overlap, but I split them in two to keep the one script from getting to confusing. import nu...
[ 2, 4264, 1299, 262, 5499, 2622, 284, 1429, 1111, 34211, 290, 3218, 1143, 307, 1371, 198, 2, 13834, 62, 354, 3669, 318, 973, 329, 34211, 198, 2, 36942, 62, 39433, 62, 16338, 1096, 329, 15453, 307, 1371, 198, 2, 36942, 62, 12315, 1603...
3.615764
609
"""D. mel housekeeping genes based on tau. Uses the intersection of w1118 and orgR to create a list of D. mel housekeeping genes. """ import os from functools import partial import pandas as pd from larval_gonad.io import pickle_load, pickle_dump if __name__ == "__main__": if os.getenv("SNAKE_DEBUG", False):...
[ 37811, 35, 13, 7758, 2156, 19934, 10812, 1912, 319, 256, 559, 13, 198, 198, 5842, 274, 262, 16246, 286, 266, 1157, 1507, 290, 8745, 49, 284, 2251, 257, 1351, 286, 198, 35, 13, 7758, 2156, 19934, 10812, 13, 198, 37811, 198, 11748, 28...
1.996132
517
""" Api Key validation """ from typing import Optional from fastapi.security.api_key import APIKeyHeader from fastapi import HTTPException, Security, Depends from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_400_BAD_REQUEST, HTTP_403_FORBIDDEN from server.core.security import verify_key from server.db.mongodb ...
[ 37811, 198, 32, 14415, 7383, 21201, 198, 37811, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 3049, 15042, 13, 12961, 13, 15042, 62, 2539, 1330, 7824, 9218, 39681, 198, 6738, 3049, 15042, 1330, 14626, 16922, 11, 4765, 11, 2129, 2412, 1...
3.112245
196
#!/usr/bin/env python # This is a slightly modified version of ChromiumOS' splitconfig # https://chromium.googlesource.com/chromiumos/third_party/kernel/+/stabilize-5899.B-chromeos-3.14/chromeos/scripts/splitconfig """See this page for more details: http://dev.chromium.org/chromium-os/how-tos-and-troubleshooting/kern...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 770, 318, 257, 4622, 9518, 2196, 286, 18255, 1505, 2640, 6, 6626, 11250, 198, 2, 3740, 1378, 28663, 1505, 13, 2188, 519, 829, 1668, 13, 785, 14, 28663, 1505, 418, 14, 17089, ...
2.506
500
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
5.354167
96
#!/usr/bin/env python ''' Notes: - Weak implies weakly supervised learning (4 classes) - Strong implies strongly (fully) superversied learning (10 classes) - frame number is set to 22ms (default); that is the "sweet spot" based on dsp literature - sampling rate is 16kHz (for the MFCC of each track) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 16130, 25, 198, 220, 220, 220, 532, 28788, 15565, 4939, 306, 28679, 4673, 357, 19, 6097, 8, 198, 220, 220, 220, 532, 13535, 15565, 7634, 357, 2759, 8, 2208, 690, ...
2.572043
930
# # Blowfish encrypt - Encrypt selected region with Blowfish # # Copyright (c) 2019, Nobutaka Mantani # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code...
[ 2, 201, 198, 2, 26588, 11084, 34117, 532, 14711, 6012, 6163, 3814, 351, 26588, 11084, 201, 198, 2, 201, 198, 2, 15069, 357, 66, 8, 13130, 11, 8140, 315, 8130, 36987, 3216, 201, 198, 2, 1439, 2489, 10395, 13, 201, 198, 2, 201, 198,...
2.520723
2,268
# Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
[ 2, 15069, 357, 34, 8, 4793, 11, 4343, 11, 3717, 12, 9804, 399, 6351, 388, 11, 3457, 13, 198, 2, 198, 2, 2448, 3411, 284, 779, 11, 4866, 11, 13096, 11, 290, 14983, 428, 3788, 290, 663, 198, 2, 10314, 329, 597, 4007, 351, 393, 1...
3.396887
257
__version = '0.1.0' __all__ = ['MultiStreamSelect', 'hexify'] __author__ = 'Natnael Getahun (connect@ngetahun.me)' __name__ = 'multistream' from .multistream import MultiStreamSelect from .utils import hexify
[ 834, 9641, 796, 705, 15, 13, 16, 13, 15, 6, 198, 834, 439, 834, 796, 37250, 29800, 12124, 17563, 3256, 705, 33095, 1958, 20520, 198, 834, 9800, 834, 796, 705, 47849, 2616, 417, 3497, 993, 403, 357, 8443, 31, 782, 316, 993, 403, 13...
2.8
75
"""---------------------------------------------------------------------------------* * Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, * * Sergio Losilla, Elias Toivanen, Jonas Juselius * * ...
[ 198, 37811, 10097, 1783, 12, 9, 198, 1635, 220, 220, 220, 15069, 357, 66, 8, 3050, 12, 7908, 3362, 72, 3250, 5116, 268, 11, 412, 417, 271, 4294, 6081, 11, 31164, 12, 39, 6413, 33591, 11, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.247534
1,115
# -*- coding: utf-8 -*- import pytest from pathlib_mate.pathlib2 import Path if __name__ == "__main__": import os basename = os.path.basename(__file__) pytest.main([basename, "-s", "--tb=native"])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 12972, 9288, 198, 6738, 3108, 8019, 62, 9830, 13, 6978, 8019, 17, 1330, 10644, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, ...
2.351648
91
#!/usr/bin/env python3 """ Usage:: usage: auth.py [-h] [{google,apple,github,jwt}] [jwt] Login to your comma account positional arguments: {google,apple,github,jwt} jwt optional arguments: -h, --help show this help message and exit Examples:: ./auth.py # Log in with google accou...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 28350, 3712, 628, 220, 8748, 25, 6284, 13, 9078, 25915, 71, 60, 685, 90, 13297, 11, 18040, 11, 12567, 11, 73, 46569, 92, 60, 685, 73, 46569, 60, 628, 220, 23093, 28...
2.556041
1,374
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' Create a Baselight folder with current date and time stamp. You must refresh the Job Manager after running the script. Copyright (c) 2020 Igor Rianovi, Igor [at] hdhead.com, www.metafide.com ''' import flapi from getflapi import getflapi from datetime import datetime...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 16447, 257, 6455, 49984, 9483, 351, 1459, 3128, 290, 640, 17977, 13, 198, 1639, 1276, 14976, 262...
2.671642
201
__doc__ = """ CallBacks ----------- Provides the callBack interface to collect data over time (see `callback_functions.py`). """ from elastica.callback_functions import CallBackBaseClass
[ 834, 15390, 834, 796, 37227, 198, 14134, 33, 4595, 198, 32284, 198, 198, 15946, 1460, 262, 869, 7282, 7071, 284, 2824, 1366, 625, 640, 357, 3826, 4600, 47423, 62, 12543, 2733, 13, 9078, 63, 737, 198, 37811, 198, 198, 6738, 27468, 64, ...
3.537037
54
# Copyright 2016 - Nokia # # 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, sof...
[ 2, 15069, 1584, 532, 26182, 198, 2, 198, 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,...
3.6
240
#! /usr/bin/env python3 """Parse through the simulated sequencing group specific kmer counts.""" import argparse as ap from collections import OrderedDict import glob import gzip import os import sys import time import numpy as np import multiprocessing as mp SAMPLES = OrderedDict() KMERS = {} HAMMING = OrderedDict() ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 10044, 325, 832, 262, 28590, 32841, 1448, 2176, 479, 647, 9853, 526, 15931, 198, 11748, 1822, 29572, 355, 2471, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 1...
1.90555
7,369
from marshmallow.exceptions import ValidationError __all__ = ('ValidationError', 'ObjectDoesNotExist', 'CommunicationError')
[ 6738, 22397, 42725, 13, 1069, 11755, 1330, 3254, 24765, 12331, 628, 628, 198, 834, 439, 834, 796, 19203, 7762, 24765, 12331, 3256, 705, 10267, 13921, 3673, 3109, 396, 3256, 705, 30813, 3299, 12331, 11537, 198 ]
3.685714
35
from django.contrib import admin from .models import Songs admin.site.register(Songs) # Register your models here.
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 31772, 198, 198, 28482, 13, 15654, 13, 30238, 7, 50, 28079, 8, 198, 198, 2, 17296, 534, 4981, 994, 13, 198 ]
3.441176
34
# Draw image time series for one or more plots from jicbioimage.core.image import Image import dtoolcore import click from translate_labels import rack_plot_to_image_plot from image_utils import join_horizontally, join_vertically if __name__ == '__main__': main()
[ 2, 15315, 2939, 640, 2168, 329, 530, 393, 517, 21528, 198, 198, 6738, 474, 291, 65, 952, 9060, 13, 7295, 13, 9060, 1330, 7412, 198, 198, 11748, 288, 25981, 7295, 198, 198, 11748, 3904, 198, 198, 6738, 15772, 62, 23912, 1424, 1330, 1...
3.16092
87
from pytpp.properties.response_objects.dataclasses import system_status from pytpp.tools.helpers.date_converter import from_date_string
[ 6738, 12972, 83, 381, 13, 48310, 13, 26209, 62, 48205, 13, 19608, 330, 28958, 1330, 1080, 62, 13376, 198, 6738, 12972, 83, 381, 13, 31391, 13, 16794, 364, 13, 4475, 62, 1102, 332, 353, 1330, 422, 62, 4475, 62, 8841, 628 ]
3.341463
41
from typing import Optional import pytorch_lightning as pl import torch from omegaconf import OmegaConf from torch.utils.data import DataLoader, random_split from transformers import T5Tokenizer from src.data.PaperDataset import PaperDataset if __name__ == "__main__": dm = ArvixDataModule()
[ 6738, 19720, 1330, 32233, 198, 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 11748, 28034, 198, 6738, 267, 28917, 7807, 69, 1330, 19839, 18546, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 11, 4738, 62, 35312...
3.236559
93
# -*- coding: utf-8 -*- import os import sys import time import subprocess import wx import ConfigParser from wx.lib.mixins.listctrl import getListCtrlSelection from wx.lib.pubsub import pub from gui.RootGUI import RootGUI from StepsDialog import StepsDialog from PlotFrame import PlotFuncFrame, PlotCorrFrame import i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 850, 14681, 198, 11748, 266, 87, 198, 11748, 17056, 46677, 198, 6738, 266, 87, 13, 8019, 13, 19816, 10...
3.320388
103
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-06 10:07 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_prices.models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 20, 319, 2177, 12, 2999, 12, 3312, 838, 25, 2998, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.906977
86
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import TestRailAPIBase
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.275281
178
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/transaction.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goo...
[ 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, 44876, 14, 7645, 2673, 13, 1676, 1462, 198, 37811, 8645, 515, 8435, 11876,...
2.335532
17,432
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2177, 3012, 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, 13, 198, 2, 921, 743, ...
3.816667
180
from llvmlite import ir import xml.etree.ElementTree as et int32 = ir.IntType(32) int64 = ir.IntType(64) int1 = ir.IntType(1) void_type = ir.VoidType() function_names = [] registers, functions, uniques, extracts = {}, {}, {}, {} internal_functions = {} memory = {} flags = ["ZF", "CF", "OF", "SF"] pointers = ["RSP", "R...
[ 6738, 32660, 85, 4029, 578, 1330, 4173, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 2123, 198, 198, 600, 2624, 796, 4173, 13, 5317, 6030, 7, 2624, 8, 198, 600, 2414, 796, 4173, 13, 5317, 6030, 7, 2414, 8, 198, 600, 16,...
2.569536
151
#/usr/bin/env python # -*- Coding: UTF-8 -*- # # WPSeku: Wordpress Security Scanner # # @url: https://github.com/m4ll0k/WPSeku # @author: Momo Outaadi (M4ll0k) import re from lib import wphttp from lib import wpprint
[ 2, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 327, 7656, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 198, 2, 370, 3705, 988, 84, 25, 9678, 8439, 4765, 20937, 1008, 198, 2, 198, 2, 2488, 6371, 25, 3740, 1378, 12567, ...
2.294737
95
from tw2.jit.widgets.chart import (AreaChart, BarChart, PieChart) from tw2.jit.widgets.graph import (ForceDirectedGraph, RadialGraph) from tw2.jit.widgets.tree import (SpaceTree, HyperTree, Sunburst, Icicle, TreeMap) from tw2.jit.widgets.ajax import AjaxRadialGraph from tw2.jit.widget...
[ 198, 6738, 665, 17, 13, 45051, 13, 28029, 11407, 13, 40926, 1330, 357, 30547, 45488, 11, 2409, 45488, 11, 21690, 45488, 8, 198, 6738, 665, 17, 13, 45051, 13, 28029, 11407, 13, 34960, 1330, 357, 10292, 13470, 276, 37065, 11, 5325, 498,...
2.464789
142
import json, requests, os, shlex, asyncio, uuid, shutil from typing import Tuple from pyrogram import Client, filters from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery # Configs API_HASH = os.environ['API_HASH'] APP_ID = int(os.environ['APP_ID']) BOT_TOKEN = os.environ['BOT_T...
[ 11748, 33918, 11, 7007, 11, 28686, 11, 427, 2588, 11, 30351, 952, 11, 334, 27112, 11, 4423, 346, 201, 198, 6738, 19720, 1330, 309, 29291, 201, 198, 6738, 12972, 39529, 1330, 20985, 11, 16628, 201, 198, 6738, 12972, 39529, 13, 19199, 1...
2.358407
452
import wx import wx.adv import random import util import config import time import datetime import threading import requests import json from functools import partial
[ 11748, 266, 87, 198, 11748, 266, 87, 13, 32225, 198, 11748, 4738, 198, 11748, 7736, 198, 11748, 4566, 198, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 4704, 278, 198, 198, 11748, 7007, 198, 11748, 33918, 628, 198, 6738, 1257, ...
3.680851
47
"""High-level search API. This module implements application-specific search semantics on top of App Engine's search API. There are two chief operations: querying for entities, and managing entities in the search facility. Add and remove Card entities in the search facility: insert_cards([models.Card]) delete_ca...
[ 37811, 11922, 12, 5715, 2989, 7824, 13, 198, 198, 1212, 8265, 23986, 3586, 12, 11423, 2989, 33815, 319, 1353, 286, 198, 4677, 7117, 338, 2989, 7824, 13, 1318, 389, 734, 4039, 4560, 25, 42517, 1112, 329, 198, 298, 871, 11, 290, 11149, ...
2.994236
1,041
import copy import sys PLAYER1, PLAYER2, EMPTY, BLOCKED = [0, 1, 2, 3] S_PLAYER1, S_PLAYER2, S_EMPTY, S_BLOCKED, = ['0', '1', '.', 'x'] CHARTABLE = [(PLAYER1, S_PLAYER1), (PLAYER2, S_PLAYER2), (EMPTY, S_EMPTY), (BLOCKED, S_BLOCKED)] DIRS = [ ((-1, 0), "up"), ((1, 0), "down"), ((0, 1), "right"), ((0, ...
[ 11748, 4866, 198, 11748, 25064, 198, 198, 31519, 1137, 16, 11, 28180, 1137, 17, 11, 38144, 9936, 11, 9878, 11290, 1961, 796, 685, 15, 11, 352, 11, 362, 11, 513, 60, 198, 50, 62, 31519, 1137, 16, 11, 311, 62, 31519, 1137, 17, 11, ...
2.027322
183
import sys sys.setrecursionlimit(10000) T = int(input()) for _ in range(T): M, N, K = map(int, input().split()) board = [[0] * M for _ in range(N)] for _ in range(K): c, r = map(int, input().split()) board[r][c] = 1 visit = [[False] * M for _ in range(N)] cnt = 0 for...
[ 11748, 25064, 201, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 49388, 8, 201, 198, 201, 198, 51, 796, 493, 7, 15414, 28955, 201, 198, 1640, 4808, 287, 2837, 7, 51, 2599, 201, 198, 220, 220, 220, 337, 11, 399, 11, 509, 796, 3975, ...
1.757576
330