content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" Django settings for api project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ import os from url...
[ 37811, 198, 35, 73, 14208, 6460, 329, 40391, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 352, 13, 23, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, ...
2.273659
4,195
# -*- coding: utf-8 -*- """Unit test package for gblackboard."""
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 26453, 1332, 5301, 329, 308, 13424, 3526, 526, 15931, 198 ]
2.538462
26
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import fibcapi_pb2 as fibcapi__pb2 import fibcapis_pb2 as fibcapis__pb2 def add_FIBCApApiServicer_to_server(servicer, server): rpc_method_handlers = { 'Monitor': grpc.unary_stream_rpc_method_handler( servicer.Monito...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 11748, 12900, 11128, 72, 62, 40842, 17, 355, 12900, 11128, 72, 834, 40842, 17, 198, 11748, 12900, 11128, 27...
2.181008
3,928
from cymbology.identifiers.sedol import Sedol from cymbology.identifiers.cusip import Cusip, cusip_from_isin from cymbology.identifiers.isin import Isin __all__ = ('Sedol', 'Cusip', 'cusip_from_isin', 'Isin')
[ 6738, 3075, 2022, 1435, 13, 738, 13350, 13, 36622, 349, 1330, 22710, 349, 198, 6738, 3075, 2022, 1435, 13, 738, 13350, 13, 9042, 541, 1330, 327, 385, 541, 11, 269, 385, 541, 62, 6738, 62, 45763, 198, 6738, 3075, 2022, 1435, 13, 738,...
2.692308
78
from marshmallow import Schema, fields from marshmallow.validate import Range, Length from sqlalchemy import Column, Integer, Boolean, DateTime from ..db import Base from ..shared.models import StringTypes # ---- Error-report
[ 6738, 22397, 42725, 1330, 10011, 2611, 11, 7032, 198, 6738, 22397, 42725, 13, 12102, 378, 1330, 13667, 11, 22313, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 41146, 11, 7536, 7575, 198, 198, 6738, 11485, 9945, 1330, 7308, ...
3.982759
58
#!/bin/python3 import math import os import random import re import sys # # Complete the 'findSubstring' function below. # # The function is expected to return a STRING. # The function accepts following parameters: # 1. STRING s # 2. INTEGER k #
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 628, 198, 198, 2, 198, 2, 13248, 262, 705, 19796, 7004, 8841, 6, 2163, 2174, 13, 198, 2, 198, 2, 383, ...
3.035294
85
COLLECTION = 'productos'
[ 25154, 16779, 2849, 796, 705, 11167, 418, 6 ]
3
8
"""Evaluation metrics.""" import numpy as np from sklearn.metrics import matthews_corrcoef # noqa from sklearn.metrics import recall_score # noqa from sklearn.metrics import cohen_kappa_score from sklearn.metrics import r2_score # noqa from sklearn.metrics import mean_squared_error from sklearn.metrics import mean_...
[ 37811, 36, 2100, 2288, 20731, 526, 15931, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 23963, 40645, 62, 10215, 81, 1073, 891, 220, 1303, 645, 20402, 198, 6738, 1341, 35720, 13, 4164, 10466, 13...
2.900709
1,551
from __future__ import absolute_import import operator from collections import deque import functools from abc import ( ABCMeta, abstractmethod ) import rlp_cython as rlp import time import math from uuid import UUID from typing import ( # noqa: F401 Any, Optional, Callable, cast, Dict, ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 10088, 198, 6738, 17268, 1330, 390, 4188, 198, 198, 11748, 1257, 310, 10141, 198, 198, 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 9738, 48526, 11, 198, 220, 220, 220, 1253...
2.34894
16,275
""" This module includes functions related to the regions API endpoint. """ from django.http import JsonResponse from ...cms.models import Region from ...cms.constants import region_status from ..decorators import json_response def transform_region(region): """ Function to create a JSON from a single region ...
[ 37811, 198, 1212, 8265, 3407, 5499, 3519, 284, 262, 7652, 7824, 36123, 13, 198, 37811, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 198, 6738, 2644, 46406, 13, 27530, 1330, 17718, 198, 6738, 2644, 46406, 13, 9979, 118...
2.757475
602
import copy import os from cli.src.Config import Config from cli.src.helpers.build_io import (get_ansible_path, get_ansible_path_for_build, get_ansible_vault_path) from cli.src.helpers.data_loader import (load_all_schema_objs_from_directory, ...
[ 11748, 4866, 198, 11748, 28686, 198, 198, 6738, 537, 72, 13, 10677, 13, 16934, 1330, 17056, 198, 6738, 537, 72, 13, 10677, 13, 16794, 364, 13, 11249, 62, 952, 1330, 357, 1136, 62, 504, 856, 62, 6978, 11, 198, 220, 220, 220, 220, 2...
2.094872
390
from unittest import TestCase from snail import snail
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 47374, 1330, 47374, 628 ]
4
14
# Copyright 2021 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 agreed to in writing, ...
[ 2, 15069, 33448, 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, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.199367
316
import pytest from plenum.server.view_change.view_changer import ViewChanger from stp_core.common.log import getlogger from plenum.test.pool_transactions.helper import start_not_added_node, add_started_node logger = getlogger() def test_no_instance_change_on_primary_disconnection_for_not_ready_node( loope...
[ 11748, 12972, 9288, 198, 198, 6738, 458, 44709, 13, 15388, 13, 1177, 62, 3803, 13, 1177, 62, 354, 2564, 1330, 3582, 1925, 2564, 198, 198, 6738, 336, 79, 62, 7295, 13, 11321, 13, 6404, 1330, 651, 6404, 1362, 198, 6738, 458, 44709, 13...
2.452891
934
from abc import ABC, abstractclassmethod from model.response import ResponseModel
[ 6738, 450, 66, 1330, 9738, 11, 12531, 4871, 24396, 198, 198, 6738, 2746, 13, 26209, 1330, 18261, 17633, 628, 198 ]
4.25
20
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
[ 37811, 198, 15269, 357, 66, 8, 12131, 327, 26631, 4339, 22196, 16284, 11, 3457, 13, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 428, 3788, 290, 3917, 198, 22897, 341, 3696, ...
3.950867
346
import math from typing import List def jump_search(array: List[int], value: int) -> int: """ Performs a jump search on a list of integers. :param array: is the array to search. :param value: is the value to search. :return: the index of the value, or -1 if it doesn't exist.' """ if len(ar...
[ 11748, 10688, 198, 6738, 19720, 1330, 7343, 628, 198, 4299, 4391, 62, 12947, 7, 18747, 25, 7343, 58, 600, 4357, 1988, 25, 493, 8, 4613, 493, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2448, 23914, 257, 4391, 2989, 319, 257, ...
2.799337
603
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. from __future__ import annotations from dataclasses import dataclass from enum import IntEnum from typing import List, Optional, TYPE_CHECKING from ...utils.api_object import APIObject from ...utils.types import MISSING...
[ 2, 15069, 350, 1939, 263, 33448, 12, 34695, 198, 2, 6462, 17168, 13789, 460, 307, 1043, 287, 4600, 43, 2149, 24290, 63, 379, 262, 1628, 6808, 13, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, ...
3.508333
120
from django.views.generic import \ UpdateView as BaseUpdateView
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 3467, 198, 220, 220, 220, 10133, 7680, 355, 7308, 10260, 7680, 628, 198 ]
3.333333
21
import torch import lib.modeling.resnet as resnet import lib.modeling.semseg_heads as snet import torch.nn as nn import torch.optim as optim import utils.resnet_weights_helper as resnet_utils from torch.autograd import Variable from roi_data.loader import RoiDataLoader, MinibatchSampler, collate_minibatch, collate_mini...
[ 11748, 28034, 198, 11748, 9195, 13, 4666, 10809, 13, 411, 3262, 355, 581, 3262, 198, 11748, 9195, 13, 4666, 10809, 13, 43616, 325, 70, 62, 16600, 355, 3013, 316, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085...
2.5
672
import json from regenesis.queries import get_cubes, get_all_dimensions, get_dimensions from pprint import pprint if __name__ == '__main__': with open('model.json', 'wb') as fh: model = generate_model() json.dump(model, fh, indent=2)
[ 11748, 33918, 198, 6738, 842, 268, 9339, 13, 421, 10640, 1330, 651, 62, 66, 29080, 11, 651, 62, 439, 62, 27740, 5736, 11, 651, 62, 27740, 5736, 198, 6738, 279, 4798, 1330, 279, 4798, 628, 628, 220, 220, 220, 220, 198, 198, 361, 11...
2.490566
106
"""Test Evil Genius Labs light.""" from unittest.mock import patch import pytest from homeassistant.components.light import ( ATTR_COLOR_MODE, ATTR_SUPPORTED_COLOR_MODES, ColorMode, LightEntityFeature, ) from homeassistant.const import ATTR_SUPPORTED_FEATURES
[ 37811, 14402, 10461, 32562, 23500, 1657, 526, 15931, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 2971, 1330, 357, 198, 220, 220, 220, 5161, 544...
2.82
100
import platform import shutil import tempfile import warnings from pathlib import Path import requests from tqdm import tqdm DOCKER_VERSION = "20.10.5" BUILDX_VERSION = "0.5.1" CACHE_DIR = Path.home() / ".cache" / "python-on-whales" TEMPLATE_CLI = ( "https://download.docker.com/{os}/static/stable/{arch}/docker-...
[ 11748, 3859, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 11748, 14601, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 7007, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 35, 11290, 1137, 62, 43717, 796, 366, ...
2.6
175
import boto3 import json import os import logging from contextlib import closing from boto3.dynamodb.conditions import Key, Attr from botocore.exceptions import ClientError from random import shuffle import time import pyqrcode import png __BUCKET_NAME__ = "project-cerebro" dynamo = boto3.client('dynamodb') logg...
[ 11748, 275, 2069, 18, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 18931, 198, 198, 6738, 4732, 8019, 1330, 9605, 198, 198, 6738, 275, 2069, 18, 13, 67, 4989, 375, 65, 13, 17561, 1756, 1330, 7383, 11, 3460, 81, 198, 6738, 10214, ...
2.454039
718
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: test drawing module # Created: 11.09.2010 # Copyright (C) 2010, Manfred Moitzi # License: GPLv3 from __future__ import unicode_literals import os import unittest from io import StringIO from svgwrite.drawing import Drawing...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 66, 7656, 25, 40477, 12, 23, 201, 198, 2, 6434, 25, 220, 6941, 32054, 1377, 27, 5908, 32054, 31, 70, 36802, 13, 265, 29, 201, 198, 2, 32039, 25, 1332, 8263, 8265, 201, 19...
2.601266
158
from django.shortcuts import render from django.utils.translation import ugettext as _ # pylint: disable=unused-argument
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 355, 4808, 628, 198, 2, 279, 2645, 600, 25, 15560, 28, 403, 1484, 12, 49140, 198 ]
3.416667
36
from typing import NamedTuple from django.contrib.auth.models import AbstractUser from django.db import models from msg.models import Msg
[ 6738, 19720, 1330, 34441, 51, 29291, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 31456, 13, 27530, 1330, 6997, 70, 628 ]
3.615385
39
matrix = [list(map(int, input().split())) for _ in range(6)] max_sum = None for i in range(4): for j in range(4): s = sum(matrix[i][j:j+3]) + matrix[i+1][j+1] + sum(matrix[i+2][j:j+3]) if max_sum is None or s > max_sum: max_sum = s print(max_sum)
[ 6759, 8609, 796, 685, 4868, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 329, 4808, 287, 2837, 7, 21, 15437, 198, 9806, 62, 16345, 796, 6045, 198, 1640, 1312, 287, 2837, 7, 19, 2599, 198, 220, 220, 220, 329, 474, 287, 2837...
1.944444
144
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
[ 2, 406, 600, 355, 25, 21015, 17, 11, 21015, 18, 198, 2, 15069, 13130, 3012, 11419, 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, ...
2.89979
1,906
from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Q_ARG, QAbstractItemModel, QFileInfo, qFuzzyCompare, QMetaObject, QModelIndex, QObject, Qt, QThread, QTime, QUrl) from PyQt5.QtGui import QColor, qGray, QImage, QPainter, QPalette from PyQt5.QtMultimedia import (QAbstractVideoBuffer, QMediaContent, ...
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 357, 9078, 39568, 11712, 282, 11, 12972, 39568, 38963, 11, 1195, 62, 1503, 38, 11, 1195, 23839, 7449, 17633, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 8979, 12360, 11, 10662, ...
2.447368
342
#!/usr/bin/env python """Test checkpoint-like periodic snapshots. We test that there are that many folders and that the currentStep changes. """ import mirheo as mir u = mir.Mirheo(nranks=(1, 1, 1), domain=(4, 6, 8), debug_level=3, log_filename='log', no_splash=True, checkpoint_every=1...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 14402, 26954, 12, 2339, 27458, 47787, 13, 198, 198, 1135, 1332, 326, 612, 389, 326, 867, 24512, 290, 326, 262, 1459, 8600, 2458, 13, 198, 37811, 198, 198, 11748, 5720, 258,...
2.50813
492
#!/usr/bin/python # # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Loads a set of web pages several times on a device, and extracts the predictor database. """ import argparse import logging import os...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 1584, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 10...
2.809069
838
from abc import ABC, abstractmethod from typing import Optional from xml import dom import numpy as np import pandas as pd from .utils import get_factors_rev def setup_domain(cfg): domain_x, domain_y = cfg["domain"]["x"], (round(cfg["domain"]["y"] * cfg["domain"]["urban_ratio"])) plot_footprint, plo...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 19720, 1330, 32233, 198, 6738, 35555, 1330, 2401, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 764, 26791, 1330, 651, 62, 22584, ...
2.230906
563
#!/usr/bin/env python3 # -*- config: utf-8 -*- from tkinter import * from random import random root = Tk() root['bg'] = 'white' root.title('crown') img = PhotoImage(file='crown.png') bt1 = Button(image=img, command=on_click) bt1.place(relx=0.5, rely=0.5, anchor=CENTER) root.mainloop()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 4566, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 4738, 1330, 4738, 628, 198, 198, 15763, 796, 309, 74, 3419, 198, ...
2.373984
123
from openpyxl import Workbook
[ 6738, 1280, 9078, 87, 75, 1330, 5521, 2070, 628 ]
3.444444
9
import subprocess import sys import unittest import pathlib from torch.testing._internal.common_utils import TestCase, run_tests, IS_LINUX, IS_IN_CI REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent try: # Just in case PyTorch was not built in 'develop' mode sys.path.append(str(REPO_ROOT)) from...
[ 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 3108, 8019, 198, 198, 6738, 28034, 13, 33407, 13557, 32538, 13, 11321, 62, 26791, 1330, 6208, 20448, 11, 1057, 62, 41989, 11, 3180, 62, 34509, 31235, 11, 3180,...
2.442308
416
from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.template import Template, TemplateSyntaxError, TemplateDoesNotExist from django.utils.encoding import force_str def validate_email_with_name(value): """ Validate email address. Both "Recipient...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 26571, 62, 12888, 198, 6738, 42625, 14208, 13, 28243, 1330, 37350, 11, 37350, 13940, 41641, 12331, 11, 3735...
2.724551
501
# Input DOI / URL import re import sys # Pyperclip is not built-in, check and download if needed try: import pyperclip except (ImportError, ModuleNotFoundError): print('Pyperclip module not found. Please download it.') sys.exit(0) # Regex for links link_regex = re.compile(r'''( http[s]?:// (?:[a-...
[ 2, 23412, 40722, 1220, 10289, 198, 198, 11748, 302, 198, 11748, 25064, 198, 198, 2, 9485, 525, 15036, 318, 407, 3170, 12, 259, 11, 2198, 290, 4321, 611, 2622, 198, 28311, 25, 198, 220, 220, 220, 1330, 12972, 525, 15036, 198, 16341, ...
2.221359
515
import argparse import csv import os import torch import tqdm from torch import distributed from torch.utils import data from torchvision import datasets from torchvision import transforms from nets import nn from utils import util data_dir = os.path.join('..', 'Dataset', 'IMAGENET') if __name__ == '__main__...
[ 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 198, 11748, 28034, 198, 11748, 256, 80, 36020, 198, 6738, 28034, 1330, 9387, 198, 6738, 28034, 13, 26791, 1330, 1366, 198, 6738, 28034, 10178, 1330, 40522, 198, 6738, 280...
3.242718
103
import numpy as np from time import time from cgbind.atoms import get_atomic_number from cgbind.log import logger from cgbind.constants import Constants from cgbind.exceptions import CgbindCritical def get_esp_cube_lines(charges, atoms): """ From a list of charges and a set of xyzs create the electrostatic po...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 640, 1330, 640, 198, 6738, 269, 70, 21653, 13, 265, 3150, 1330, 651, 62, 47116, 62, 17618, 198, 6738, 269, 70, 21653, 13, 6404, 1330, 49706, 198, 6738, 269, 70, 21653, 13, 9979, 1187, 1330, ...
2.292162
1,263
import os import sys import logging import time import argparse import numpy as np from collections import OrderedDict import scripts.options as option import utils.util as util from data.util import bgr2ycbcr from data import create_dataset, create_dataloader from models import create_model # options parser = argpar...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 14750, 13, 25811, 355, 3038, 198, 11748, 3384...
2.052578
2,948
# coding:utf-8 import time import matplotlib.pyplot as plt import numpy as np import sklearn import sklearn.datasets import sklearn.linear_model import matplotlib matplotlib.rcParams['figure.figsize'] = (10.0, 8.0) np.random.seed(0) X, y = sklearn.datasets.make_moons(200, noise=0.20) plt.scatter(X[:,0], X[:,1], s=40...
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 11748, 640, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 198, 11748, 1341, 35720, 13, 19608, 292, 1039, 198, 11748, 1...
2.944798
471
#!/usr/bin/env python # coding=utf-8 from manage import db import app.domain.model db.create_all()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 6687, 1330, 20613, 198, 11748, 598, 13, 27830, 13, 19849, 198, 198, 9945, 13, 17953, 62, 439, 3419, 198 ]
2.72973
37
import asyncio import json from aiodocker import Docker, DockerError from jupyterhub.tests.utils import api_request
[ 11748, 30351, 952, 198, 11748, 33918, 198, 198, 6738, 257, 2101, 12721, 1330, 25716, 11, 25716, 12331, 198, 6738, 474, 929, 88, 353, 40140, 13, 41989, 13, 26791, 1330, 40391, 62, 25927, 628, 628 ]
3.529412
34
from api import db from uuid import uuid4 from ariadne import MutationType from api.models import Post from api.store import queues mutation = MutationType()
[ 198, 6738, 40391, 1330, 20613, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 6738, 257, 21244, 710, 1330, 337, 7094, 6030, 198, 198, 6738, 40391, 13, 27530, 1330, 2947, 198, 6738, 40391, 13, 8095, 1330, 43359, 198, 76, 7094, 796, ...
3.533333
45
from async_sched.client import quit_server as module_quit from async_sched.client import request_schedules as module_request from async_sched.client import run_command as module_run from async_sched.client import schedule_command as module_schedule from async_sched.client import stop_schedule as module_stop from async_...
[ 6738, 30351, 62, 1416, 704, 13, 16366, 1330, 11238, 62, 15388, 355, 8265, 62, 47391, 198, 6738, 30351, 62, 1416, 704, 13, 16366, 1330, 2581, 62, 1416, 704, 5028, 355, 8265, 62, 25927, 198, 6738, 30351, 62, 1416, 704, 13, 16366, 1330, ...
2.898551
414
import abc from typing import TypeVar, Generic, List, Dict T = TypeVar('T')
[ 11748, 450, 66, 198, 6738, 19720, 1330, 5994, 19852, 11, 42044, 11, 7343, 11, 360, 713, 198, 198, 51, 796, 5994, 19852, 10786, 51, 11537, 628 ]
3
26
from pathlib import Path import pytest import git import json from conftest import TEST_DIR
[ 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 12972, 9288, 198, 11748, 17606, 198, 11748, 33918, 198, 198, 6738, 369, 701, 395, 1330, 43001, 62, 34720, 628, 198 ]
3.428571
28
# Copyright 2015 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 1853, 43208, 21852, 1766, 1539, 12052, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 2...
3.486726
339
from setuptools import setup setup( name="greek-utils", version="0.2", description="various utilities for processing Ancient Greek", license="MIT", url="http://github.com/jtauber/greek-utils", author="James Tauber", author_email="jtauber@jtauber.com", packages=["greekutils"], classi...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 70, 10316, 12, 26791, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 17, 1600, 198, 220, 220, 220, 6764, 2625, 7785, 699, 20081, 329, 7587, 1340...
2.585366
287
""" tweet stuff in intervals """ import time import datetime import twitter from markov_chains import german_text from config import config_no, config_yes MAX_TWEET_LENGTH = 280 greeting = ' Sehr geehrte/r Anstragssteller/in.' ending = ' MfG' num_tweets = 3 # if __name__ == '__main__': # main()
[ 37811, 198, 83, 7277, 3404, 287, 20016, 198, 37811, 198, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 198, 11748, 17044, 198, 198, 6738, 1317, 709, 62, 38861, 1330, 308, 2224, 62, 5239, 198, 6738, 4566, 1330, 4566, 62, 3919, 11, 4566...
2.618644
118
from selenium.webdriver import Firefox from selenium.webdriver.firefox.options import Options import getpass import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from utils import *
[ 6738, 384, 11925, 1505, 13, 12384, 26230, 1330, 16802, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 6495, 12792, 13, 25811, 1330, 18634, 198, 11748, 651, 6603, 198, 11748, 640, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11...
3.575342
73
pessoas = {'nomes': "Rafael","sexo":"macho alfa","idade":19} print(f"o {pessoas['nomes']} que se considera um {pessoas['sexo']} possui {pessoas['idade']}") print(pessoas.keys()) print(pessoas.values()) print(pessoas.items()) for c in pessoas.keys(): print(c) for c in pessoas.values(): print(c) for c, j in pe...
[ 79, 408, 78, 292, 796, 1391, 6, 77, 2586, 10354, 366, 49, 1878, 3010, 2430, 8044, 78, 2404, 76, 43703, 435, 13331, 2430, 312, 671, 1298, 1129, 92, 198, 4798, 7, 69, 1, 78, 1391, 79, 408, 78, 292, 17816, 77, 2586, 20520, 92, 8358...
2.059701
536
# RSA Key Generator 2. # http://inventwithpython.com/hacking (BSD Licensed) 3. 4. import random, sys, os, rabinMiller, cryptomath The program imports the rabinMiller and cryptomath modules that we created in the last chapter, along with a few others. Chapter 24 Public Key Cryptography and the RSA Cipher 387 ...
[ 2, 42319, 7383, 35986, 198, 220, 362, 13, 1303, 2638, 1378, 259, 1151, 4480, 29412, 13, 785, 14, 71, 5430, 357, 21800, 49962, 8, 220, 513, 13, 220, 220, 604, 13, 1330, 4738, 11, 25064, 11, 28686, 11, 374, 6014, 33253, 11, 8194, 29...
3.393939
99
config = { "Luminosity": 1000, "InputDirectory": "results", "Histograms" : { "WtMass" : {}, "etmiss" : {}, "lep_n" : {}, "lep_pt" : {}, "lep_eta" : {}, "lep_E" : {}, "lep_phi" : {"y_margin" : 0.6}, "lep_...
[ 11250, 796, 1391, 198, 1, 43, 7230, 16579, 1298, 8576, 11, 198, 1, 20560, 43055, 1298, 366, 43420, 1600, 198, 198, 1, 13749, 26836, 1, 1058, 1391, 198, 220, 220, 220, 366, 54, 83, 20273, 1, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.489724
1,703
# coding=utf-8 from ..logger import log_debug from ..utils import parent_map, replace_node, is_prefixed_var, get_used_vars
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11485, 6404, 1362, 1330, 2604, 62, 24442, 198, 6738, 11485, 26791, 1330, 2560, 62, 8899, 11, 6330, 62, 17440, 11, 318, 62, 3866, 34021, 62, 7785, 11, 651, 62, 1484, 62, 85, 945, 628, 198 ]
2.906977
43
""" Determine the number of bits required to convert integer A to integer B Example Given n = 31, m = 14,return 2 (31)10=(11111)2 (14)10=(01110)2 """ __author__ = 'Danyang' if __name__=="__main__": assert Solution().bitSwapRequired(1, -1)==31 assert Solution().bitSwapRequired(31, 14)==2
[ 37811, 198, 35, 2357, 3810, 262, 1271, 286, 10340, 2672, 284, 10385, 18253, 317, 284, 18253, 347, 198, 198, 16281, 198, 15056, 299, 796, 3261, 11, 285, 796, 1478, 11, 7783, 362, 198, 198, 7, 3132, 8, 940, 16193, 1157, 16243, 8, 17, ...
2.603448
116
from pyLMS7002M import * print("Searching for QSpark...") try: QSpark = QSpark() except: print("QSpark not found") exit(1) print("\QSpark info:") QSpark.printInfo() # print the QSpark board info # QSpark.LMS7002_Reset() # reset the LMS7002M lms700...
[ 6738, 12972, 43, 5653, 9879, 17, 44, 1330, 1635, 198, 198, 4798, 7203, 18243, 278, 329, 1195, 4561, 668, 9313, 8, 198, 28311, 25, 198, 220, 220, 220, 1195, 4561, 668, 796, 1195, 4561, 668, 3419, 198, 16341, 25, 198, 220, 220, 220, ...
1.811377
334
from django.conf import settings from netaddr import mac_unix, mac_eui48 import importlib import warnings from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('django-macaddress') except DistributionNotFound: __version__ = 'Please install this projec...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 2010, 29851, 1330, 8352, 62, 403, 844, 11, 8352, 62, 68, 9019, 2780, 198, 198, 11748, 1330, 8019, 198, 11748, 14601, 628, 198, 6738, 279, 10025, 62, 37540, 1330, 651, 62, 1708...
3.272
125
import time from textmagic.test import ONE_TEST_NUMBER from textmagic.test import THREE_TEST_NUMBERS from textmagic.test import TextMagicTestsBase from textmagic.test import LiveUnsafeTests
[ 11748, 640, 198, 198, 6738, 2420, 32707, 13, 9288, 1330, 16329, 62, 51, 6465, 62, 41359, 13246, 198, 6738, 2420, 32707, 13, 9288, 1330, 48697, 62, 51, 6465, 62, 41359, 33, 4877, 198, 198, 6738, 2420, 32707, 13, 9288, 1330, 8255, 22975...
3.305085
59
from django.db import models from utils.models import BaseModel from users.models import User, Address from goods.models import GoodsSKU # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 3384, 4487, 13, 27530, 1330, 7308, 17633, 198, 6738, 2985, 13, 27530, 1330, 11787, 11, 17917, 198, 6738, 7017, 13, 27530, 1330, 38360, 18831, 52, 198, 198, 2, 13610, 534, 4981, 994, ...
3.755556
45
from collections import defaultdict, Counter import os import gzip import json import pickle from json.decoder import JSONDecodeError import logging from typing import Dict import pdb from event import util from event.arguments.prepare.slot_processor import get_simple_dep, is_propbank_dep logger = logging.getLogger(_...
[ 6738, 17268, 1330, 4277, 11600, 11, 15034, 198, 11748, 28686, 198, 11748, 308, 13344, 198, 11748, 33918, 198, 11748, 2298, 293, 198, 6738, 33918, 13, 12501, 12342, 1330, 19449, 10707, 1098, 12331, 198, 11748, 18931, 198, 6738, 19720, 1330, ...
2.039441
3,651
#!/usr/bin/python import random count = 20 test_set = [] while count: a = random.randrange(3,20) b = random.randrange(3,20) if a > b and a - b > 1: if (b, a-b) not in test_set: test_set.append((b, a-b)) count -= 1 elif b > a and b - a > 1: if (a, b-a) not in te...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 4738, 198, 198, 9127, 796, 1160, 198, 198, 9288, 62, 2617, 796, 17635, 198, 4514, 954, 25, 198, 220, 220, 220, 257, 796, 4738, 13, 25192, 9521, 7, 18, 11, 1238, 8, 198, 220, ...
1.81749
263
from enum import Enum from functools import reduce from math import ceil from typing import Optional, Tuple from autovirt import utils from autovirt.exception import AutovirtError from autovirt.structs import UnitEquipment, RepairOffer logger = utils.get_logger() # maximum allowed equipment price PRICE_MAX = 100000 ...
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 10688, 1330, 2906, 346, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 198, 198, 6738, 1960, 709, 2265, 1330, 3384, 4487, 198, 6738, 1960, 709, 2265, 13, ...
2.972743
587
#!/usr/bin/env python3 import re with open("input.txt") as f: content = f.read().strip() print(ulen(content))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 302, 628, 198, 4480, 1280, 7203, 15414, 13, 14116, 4943, 355, 277, 25, 198, 220, 220, 220, 2695, 796, 277, 13, 961, 22446, 36311, 3419, 198, 198, 4798, 7, 377, 268, ...
2.510638
47
# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import math import numpy as np import pytest import sympy import cirq import cirq.contrib.quimb as ccq import cirq.testing from cirq import value
[ 2, 279, 2645, 600, 25, 15560, 28, 36460, 12, 273, 12, 23108, 87, 7609, 12, 22163, 4766, 12, 42138, 198, 11748, 340, 861, 10141, 198, 11748, 10688, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, 10558, 88...
2.824176
91
import os from pathlib import Path from typing import Any, Dict from determined.common import util MASTER_SCHEME = "http" MASTER_IP = "localhost" MASTER_PORT = "8080" DET_VERSION = None DEFAULT_MAX_WAIT_SECS = 1800 MAX_TASK_SCHEDULED_SECS = 30 MAX_TRIAL_BUILD_SECS = 90 DEFAULT_TF1_CPU_IMAGE = "determinedai/environm...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 6738, 5295, 13, 11321, 1330, 7736, 198, 198, 31180, 5781, 62, 50, 3398, 3620, 36, 796, 366, 4023, 1, 198, 31180, 5781, 62, 4061, ...
2.085455
550
from django.contrib.contenttypes.models import ContentType from rest_framework import serializers, exceptions from greenbudget.lib.rest_framework_utils.fields import ModelChoiceField from greenbudget.lib.rest_framework_utils.serializers import ( EnhancedModelSerializer) from greenbudget.app.budget.models import B...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 11, 13269, 198, 198, 6738, 4077, 37315, 13, 8019, 13, 2118, 62, 30604, 62, 26791, 13, 25747, 1330, 9104, ...
3.303398
412
import contextlib import logging import typing from typing import Any, Dict, Tuple import attr from dbnd._core.configuration import get_dbnd_project_config from dbnd._core.constants import ( RESULT_PARAM, DbndTargetOperationStatus, DbndTargetOperationType, TaskRunState, ) from dbnd._core.current impo...
[ 11748, 4732, 8019, 198, 11748, 18931, 198, 11748, 19720, 198, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 309, 29291, 198, 198, 11748, 708, 81, 198, 198, 6738, 20613, 358, 13557, 7295, 13, 11250, 3924, 1330, 651, 62, 9945, 358, 62...
2.241578
2,256
import os import logging from json import loads, dumps from datetime import timedelta from argparse import ArgumentParser from redis import Redis from flask import Response, Flask, request app = Flask(__name__) log = logging.getLogger(__name__) parser = ArgumentParser() parser.add_argument("-a", "--address", ...
[ 11748, 28686, 198, 11748, 18931, 198, 6738, 33918, 1330, 15989, 11, 45514, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 6738, 2266, 271, 1330, 2297, 271, 198, 6738, 42903, 1330, 18261, 1...
2.199058
849
""" spider Chromecmd cd Chrome chrome.exe --remote-debugging-port=9222 http://127.0.0.1:9222/json json spider settings # ROBOTSTXT_OBEY = False # parse # COOKIES_ENABLED = True # Request cookies # USER_AGENT = # DOWNLOADER_MIDDLEWARES user agent """ import re import json import datetime import sc...
[ 37811, 198, 19230, 220, 18255, 721, 9132, 220, 198, 10210, 220, 13282, 220, 220, 198, 46659, 13, 13499, 1377, 47960, 12, 24442, 2667, 12, 634, 28, 24, 23148, 198, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 24, 23148, 14, 17752, ...
2.924324
185
import nose import angr import logging l = logging.getLogger("angr.tests.test_bindiff") import os test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests') # todo make a better test if __name__ == "__main__": logging.getLogger("angr.analyses.bindiff").setLevel(lo...
[ 11748, 9686, 198, 11748, 281, 2164, 198, 198, 11748, 18931, 198, 75, 796, 18931, 13, 1136, 11187, 1362, 7203, 648, 81, 13, 41989, 13, 9288, 62, 21653, 733, 4943, 198, 198, 11748, 28686, 198, 9288, 62, 24886, 796, 28686, 13, 6978, 13, ...
2.385027
187
from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent # def handle_uploaded_file(f): # with open('screenshot.png', 'wb') as destination: # # for chunk in f.chunks(): # # destination.write(chunk) # destination.write(f) with open( BASE_DIR/'media'/'Greater_coat...
[ 6738, 3108, 8019, 1330, 10644, 628, 198, 33, 11159, 62, 34720, 796, 10644, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000, 13, 8000, 198, 2, 825, 5412, 62, 25850, 276, 62, 7753, 7, 69, 2599, 198, 2, 220, 220, 220, 220, 351, 1280, ...
2.345291
223
#!/usr/bin/env python3 # # Copyright 2018 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 2864, 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,...
2.862705
488
r""" Piezo-elasticity problem - linear elastic material with piezoelectric effects. Find :math:`\ul{u}`, :math:`\phi` such that: .. math:: - \omega^2 \int_{Y} \rho\ \ul{v} \cdot \ul{u} + \int_{Y} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) - \int_{Y_2} g_{kij}\ e_{ij}(\ul{v}) \nabla_k \phi = 0 \;, \qu...
[ 81, 37811, 198, 48223, 10872, 12, 417, 3477, 414, 1917, 532, 14174, 27468, 2587, 351, 2508, 89, 2577, 801, 1173, 198, 34435, 13, 198, 198, 16742, 1058, 11018, 25, 63, 59, 377, 90, 84, 92, 47671, 1058, 11018, 25, 63, 59, 34846, 63, ...
1.964356
2,525
# Desempacotamento de parametros em funcoes # somando valores de uma tupla # Programa principal print('Resultado: {}\n' .format(soma(1, 2))) print('Resultado: {}\n' .format(soma(1, 2, 3, 4, 5, 6, 7, 8, 9)))
[ 2, 2935, 368, 33587, 313, 3263, 78, 390, 5772, 316, 4951, 795, 1257, 1073, 274, 198, 2, 3870, 25440, 1188, 2850, 390, 334, 2611, 12777, 489, 64, 628, 198, 2, 6118, 64, 10033, 198, 4798, 10786, 23004, 4533, 25, 23884, 59, 77, 6, 76...
2.375
88
import pandas from keras.models import Sequential from keras.layers import Dense from keras.wrappers.scikit_learn import KerasClassifier from keras.utils import np_utils from sklearn.model_selection import cross_val_score from sklearn.model_selection import KFold from sklearn.preprocessing import LabelEncoder from skle...
[ 11748, 19798, 292, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 198, 6738, 41927, 292, 13, 29988, 11799, 13, 36216, 15813, 62, 35720, 1330, 17337, 292, 9487, 7483, 198, 6738,...
2.641213
956
from django.core.urlresolvers import reverse from sentry.models import Project from sentry.testutils import APITestCase
[ 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 1908, 563, 13, 27530, 1330, 4935, 198, 6738, 1908, 563, 13, 9288, 26791, 1330, 3486, 2043, 395, 20448, 628, 628 ]
3.617647
34
# encoding: utf-8 """Unit-test suite for `pptx.table` module.""" import pytest from pptx.dml.fill import FillFormat from pptx.dml.border import BorderFormat from pptx.enum.text import MSO_ANCHOR from pptx.oxml.ns import qn from pptx.oxml.table import CT_Table, CT_TableCell, TcRange from pptx.shapes.graphfrm import G...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 26453, 12, 9288, 18389, 329, 4600, 381, 17602, 13, 11487, 63, 8265, 526, 15931, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 457, 87, 13, 67, 4029, 13, 20797, 1330, 27845, 26227...
2.633858
254
import numpy as np from imread import imread from . import file_path
[ 11748, 299, 32152, 355, 45941, 198, 6738, 545, 961, 1330, 545, 961, 198, 6738, 764, 1330, 2393, 62, 6978, 198 ]
3.45
20
from serial import Serial from tqdm import tqdm import binascii import hashlib import struct import time import sys import os if __name__ == "__main__": main()
[ 6738, 11389, 1330, 23283, 201, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 201, 198, 11748, 9874, 292, 979, 72, 201, 198, 11748, 12234, 8019, 201, 198, 11748, 2878, 201, 198, 11748, 640, 201, 198, 11748, 25064, 201, 198, 11748, 2...
2.707692
65
# -*- coding: utf-8 -*- import unittest from avro import avro_builder from avro import schema if __name__ == '__main__': unittest.main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 198, 6738, 1196, 305, 1330, 1196, 305, 62, 38272, 198, 6738, 1196, 305, 1330, 32815, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 1...
2.5
58
import random # use a unit square
[ 11748, 4738, 198, 198, 2, 779, 257, 4326, 6616, 198 ]
3.5
10
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2019 Damien P. George # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 262, 4527, 37906, 1628, 11, 2638, 1378, 9383, 1773, 7535, 13, 2398, 14, 198, 2, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2,...
2.166598
2,413
from PyQt4 import QtGui from ui_mant_libros_new import NewLibrosWindow from ui_mant_libros_edit import EditLibrosWindow from ui_mant_libros_id_edit import GetIdEditWindow # Debug only import inspect if __name__ == '__main__': import sys app = QtGui.QApplication(sys.argv) mainWin = MenuLibros() main...
[ 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72, 198, 6738, 334, 72, 62, 76, 415, 62, 8019, 4951, 62, 3605, 1330, 968, 25835, 4951, 27703, 198, 6738, 334, 72, 62, 76, 415, 62, 8019, 4951, 62, 19312, 1330, 5312, 25835, 4951, 27703, 1...
2.55
140
import argparse import re import holdem_calc.holdem_functions as holdem_functions # Wrapper class which holds the arguments for library calls # Mocks actual argparse object # Parses arguments passed to holdem_calc as a library call def parse_lib_args(args): error_check_arguments(args) # Parse hole cards an...
[ 11748, 1822, 29572, 198, 11748, 302, 198, 11748, 1745, 368, 62, 9948, 66, 13, 2946, 368, 62, 12543, 2733, 355, 1745, 368, 62, 12543, 2733, 628, 198, 2, 27323, 2848, 1398, 543, 6622, 262, 7159, 329, 5888, 3848, 198, 2, 337, 3320, 403...
3.246875
320
from flask import render_template, request, session, redirect from qbay.models import * from datetime import date from qbay import app def authenticate(inner_function): """ :param inner_function: any python function that accepts a user object Wrap any python function and check the current session to see ...
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 2581, 11, 6246, 11, 18941, 198, 6738, 10662, 24406, 13, 27530, 1330, 1635, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 10662, 24406, 1330, 598, 628, 198, 4299, 8323, 5344, 7, 5083, 62, 88...
3.345
200
from datetime import timedelta from django.utils.timezone import now from preferences import preferences from rest_framework import fields, serializers from bikesharing.models import Bike, Station, VehicleType from cykel.serializers import EnumFieldSerializer
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 2435, 11340, 1330, 783, 198, 6738, 15387, 1330, 15387, 198, 6738, 1334, 62, 30604, 1330, 7032, 11, 11389, 11341, 198, 198, 6738, 275, 1134, 5069, 1723, 1...
4.060606
66
import logging import re from anime_downloader.extractors.base_extractor import BaseExtractor from anime_downloader.sites import helpers logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 302, 198, 6738, 11984, 62, 15002, 263, 13, 2302, 974, 669, 13, 8692, 62, 2302, 40450, 1330, 7308, 11627, 40450, 198, 6738, 11984, 62, 15002, 263, 13, 49315, 1330, 49385, 198, 198, 6404, 1362, 796, 18931, 13, ...
3.5
50
import time import os from django.shortcuts import render, redirect from django.http import JsonResponse from django.views import View from django.conf import settings from .forms import File_uploadForm from .models import File_upload, SummaryRes from sim_v1.textsummary import TEXTSummary summary_document_dir = os....
[ 11748, 640, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 6738, 42625, 14208, 13, ...
2.765873
252
""" Websocket based API for Home Assistant. For more details about this component, please refer to the documentation at https://developers.home-assistant.io/docs/external_api_websocket.html """ from homeassistant.core import callback from homeassistant.loader import bind_hass from . import commands, connection, const...
[ 37811, 198, 1135, 1443, 5459, 1912, 7824, 329, 5995, 15286, 13, 198, 198, 1890, 517, 3307, 546, 428, 7515, 11, 3387, 3522, 284, 262, 10314, 379, 198, 5450, 1378, 16244, 364, 13, 11195, 12, 562, 10167, 13, 952, 14, 31628, 14, 22615, ...
3.183801
321
# # Created on Tue Dec 21 2021 # # Copyright (c) 2021 Lenders Cooperative, a division of Summit Technology Group, Inc. # """ Django settings for test_app project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ ...
[ 2, 198, 2, 15622, 319, 30030, 4280, 2310, 33448, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 406, 7338, 43457, 11, 257, 7297, 286, 20014, 8987, 4912, 11, 3457, 13, 198, 2, 198, 37811, 198, 35, 73, 14208, 6460, 329, 1332, 62, 1324, ...
2.374219
1,761
# Copyright 2020 Province of British Columbia # # 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 agre...
[ 2, 15069, 220, 12131, 22783, 286, 3517, 9309, 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.671177
3,695
""" Module to contain Pywork decorators """ __author__ = 'sergey kharnam' import re import time import itertools import logging log = logging.getLogger(__name__)
[ 37811, 198, 26796, 284, 3994, 9485, 1818, 11705, 2024, 198, 37811, 198, 198, 834, 9800, 834, 796, 705, 2655, 39608, 44081, 1501, 321, 6, 198, 198, 11748, 302, 198, 11748, 640, 198, 11748, 340, 861, 10141, 198, 198, 11748, 18931, 198, ...
3.055556
54
from __future__ import unicode_literals import pytest from django.test import TestCase from rest_framework import status from rest_framework.authentication import BasicAuthentication from rest_framework.decorators import ( action, api_view, authentication_classes, detail_route, list_route, parser_classes, per...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 41299, 3299, 13...
2.783582
804
## -*- coding: utf-8 -*- #(C) 2018 Muthiah Annamalai # This file is part of Open-Tamil project # You may use or distribute this file under terms of MIT license import codecs import json import tamil import sys import os #e.g. python morse_encode.py CURRDIR = os.path.dirname(os.path.realpath(__file__)) if __name__ =...
[ 2235, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 7, 34, 8, 2864, 337, 1071, 9520, 5506, 321, 282, 1872, 198, 2, 770, 2393, 318, 636, 286, 4946, 12, 42061, 346, 1628, 198, 2, 921, 743, 779, 393, 14983, 428, ...
2.580645
155
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = n...
[ 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 198, 2, 1398, 7343, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1306, 28, 14202, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, ...
2.018182
165
""" Warning - this will reset all components back to a blank state before running the simulation Runs node1, electrumx1 and electrumsv1 and loads the default wallet on the daemon (so that newly submitted blocks will be synchronized by ElectrumSV reorged txid: 'a1fa9460ca105c1396cd338f7fa202bf79a9d244d730e91e19f6302a0...
[ 37811, 198, 20361, 532, 428, 481, 13259, 477, 6805, 736, 284, 257, 9178, 1181, 878, 2491, 262, 18640, 198, 198, 10987, 82, 10139, 16, 11, 1742, 6582, 87, 16, 290, 30880, 5700, 85, 16, 290, 15989, 262, 4277, 13008, 319, 262, 33386, 3...
3.069672
244
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # 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 ...
[ 2, 15069, 357, 66, 8, 12131, 11, 14236, 952, 5921, 265, 382, 11, 20059, 4992, 5136, 2031, 402, 2022, 39, 11, 290, 198, 2, 20671, 2059, 286, 360, 1670, 38863, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 29...
2.456753
2,347
# pyRasp # Copyright (c) Tonino Tarsi 2020. Licensed under MIT. # requirement : # Python 3 # pip install pyyaml # pip install request # pip install f90nml from downloadGFSA import downloadGFSA from prepare_wps import prepare_wps from ungrib import ungrib from metgrid import metgrid from prepare_wrf import prepare_w...
[ 2, 12972, 49, 5126, 220, 198, 2, 15069, 357, 66, 8, 16859, 2879, 309, 945, 72, 12131, 13, 49962, 739, 17168, 13, 198, 198, 2, 9079, 1058, 198, 2, 11361, 513, 220, 198, 2, 7347, 2721, 12972, 88, 43695, 198, 2, 7347, 2721, 2581, 1...
2.987261
157