content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import os import logging import matplotlib matplotlib.use('Agg') import pylab as p import numpy as np import dolfin as df from finmag import Simulation as Sim from finmag.energies import Exchange, Demag from finmag.util.meshes import from_geofile, mesh_volume import pytest logger = logging.getLogger(name='finmag') M...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 11748, 279, 2645, 397, 355, 279, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 288, 4024, 259, 355, 47764, 198, ...
2.12996
1,008
from ..helpers import get_obj_and_params, all_from_objects from ...extensions.samplers import OverSampler SAMPLERS = { 'oversample': (OverSampler, ['default']), } all_obj_keys = all_from_objects(SAMPLERS)
[ 6738, 11485, 16794, 364, 1330, 651, 62, 26801, 62, 392, 62, 37266, 11, 477, 62, 6738, 62, 48205, 198, 6738, 2644, 2302, 5736, 13, 37687, 489, 364, 1330, 3827, 16305, 20053, 198, 198, 49302, 6489, 4877, 796, 1391, 198, 220, 220, 220, ...
2.813333
75
N, K = map(int, input().split()) ans = N for i in range(K): num_list = [int(n) for n in str(ans)] g1 = sorted(num_list, reverse=True) g1 = ''.join((str(g) for g in g1)) g2 = sorted(num_list, reverse=False) g2 = ''.join((str(g) for g in g2)) ans = int(g1) - int(g2) print(ans)
[ 45, 11, 509, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 504, 796, 399, 198, 1640, 1312, 287, 2837, 7, 42, 2599, 198, 220, 220, 220, 997, 62, 4868, 796, 685, 600, 7, 77, 8, 329, 299, 287, 965, 7, 504, 15437, 198, 22...
2.097902
143
# Python modules import time from datetime import timedelta def consistency(func, args, expected, n=10**4): """Analyze and report on the consistency of a function.""" print('\n[CONSISTENCY TEST] {0}'.format(func.__doc__.format(*args))) start = time.time() interval = start tally = 0 for i in r...
[ 2, 11361, 13103, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 28805, 12514, 628, 198, 4299, 15794, 7, 20786, 11, 26498, 11, 2938, 11, 299, 28, 940, 1174, 19, 2599, 198, 220, 220, 220, 37227, 37702, 2736, 290, 989, 319, 262, 15794, ...
2.325203
369
from itertools import permutations from collections import Counter import time print(time.time()) s=["dgajkhdjkjfkl","ahfjkh","jfskoj","hfakljfio","fjfjir","jiosj","jiojf","jriosj","jiorjf","jhhhhaskgasjdfljjriof"] t=10 while t>0: S=s[10-t] c=dict(Counter(S)) Cperm=list(permutations(c.values())) flag= False for i...
[ 6738, 340, 861, 10141, 1330, 9943, 32855, 198, 6738, 17268, 1330, 15034, 198, 11748, 640, 198, 4798, 7, 2435, 13, 2435, 28955, 198, 82, 28, 14692, 67, 70, 1228, 14636, 28241, 42421, 69, 41582, 2430, 993, 69, 73, 14636, 2430, 73, 9501,...
2
260
import configparser import os from typing import ByteString import requests from core.speaker import Speaker from core.texttospeech import TextToSpeechGenerator
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 198, 6738, 19720, 1330, 30589, 10100, 198, 198, 11748, 7007, 198, 198, 6738, 4755, 13, 4125, 3110, 1330, 14931, 198, 6738, 4755, 13, 5239, 83, 418, 431, 3055, 1330, 8255, 2514, 5248, 3055, 864...
3.837209
43
import pandas as pd import os import ssl # I'm getting SSL certificates issues when downloading files from MDIC. # The code below is a hack to get around this issue. try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context =...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 264, 6649, 220, 198, 198, 2, 314, 1101, 1972, 25952, 20835, 2428, 618, 22023, 3696, 422, 10670, 2149, 13, 198, 2, 383, 2438, 2174, 318, 257, 8156, 284, 651, 1088, 428, ...
2.919786
187
# Generated by Django 3.1.1 on 2020-10-02 01:11 from django.db import migrations, models import phonenumber_field.modelfields
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 940, 12, 2999, 5534, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 32896, 268, 4494, 62, 3245, 13, 19849, 25747, 628 ]
3.047619
42
from socket import socket, AF_INET, SOCK_STREAM, IPPROTO_TCP import struct import pickle if __name__ == "__main__": server = ServerSock(5500) while True: print(server.getMessage())
[ 6738, 17802, 1330, 17802, 11, 12341, 62, 1268, 2767, 11, 311, 11290, 62, 2257, 32235, 11, 6101, 4805, 26631, 62, 4825, 47, 198, 11748, 2878, 198, 11748, 2298, 293, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 361, 115...
2.322581
93
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import namedtuple import numpy as np import pandas as pd from .series import Series
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738...
3.020408
49
""" instructions: blah blah blah settings: tifa: enabled: True unit test by function (bool): Whether to test each function entirely before moving onto the next one, or to first check that all functions have been defined, and then checking their parameters, etc. Defaults to True....
[ 37811, 198, 259, 7249, 507, 25, 33367, 33367, 33367, 198, 198, 33692, 25, 198, 220, 220, 220, 256, 19215, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9343, 25, 6407, 198, 220, 220, 220, 4326, 1332, 416, 2163, 357, 30388, 2599, 10127...
2.220201
7,643
import enum from .ELF import ELF32, enums from .util import SegmentRegs, MissingOpcodeError from .CPU import CPU32 import logging logger = logging.getLogger(__name__)
[ 11748, 33829, 198, 198, 6738, 764, 37738, 1330, 17852, 37, 2624, 11, 551, 5700, 198, 6738, 764, 22602, 1330, 1001, 5154, 8081, 82, 11, 25639, 18257, 8189, 12331, 198, 6738, 764, 36037, 1330, 9135, 2624, 198, 198, 11748, 18931, 198, 6404...
2.934426
61
from termcolor import colored from ...utils.feedback import feedback from .constants import DEPLOYMENT_PREFIX, DEPLOYMENT_REGISTRY from .exceptions import EntityDoesNotExist, EntityExists from .operations import delete_parameter, get_parameter, set_parameter from .project import assert_project_exists from .utils impor...
[ 6738, 3381, 8043, 1330, 16396, 198, 198, 6738, 2644, 26791, 13, 12363, 1891, 1330, 7538, 198, 6738, 764, 9979, 1187, 1330, 5550, 6489, 21414, 10979, 62, 47, 31688, 10426, 11, 5550, 6489, 21414, 10979, 62, 31553, 1797, 40405, 198, 6738, ...
2.971193
243
import numpy as np from ..tools import batchGenerator # LOGISTIC REGRESSION # for (binary) categorical data
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 31391, 1330, 15458, 8645, 1352, 198, 198, 2, 41605, 8808, 2149, 4526, 10761, 47621, 198, 2, 329, 357, 39491, 8, 4253, 12409, 1366, 198 ]
3.40625
32
bits = '110' #print(str(valore)) print(turnBitsIntoInteger(bits)) ...
[ 9895, 796, 705, 11442, 6, 628, 198, 220, 220, 220, 198, 2, 4798, 7, 2536, 7, 2100, 382, 4008, 198, 198, 4798, 7, 15344, 33, 896, 5317, 78, 46541, 7, 9895, 4008, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, ...
2.009511
736
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 201, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 201, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 201, 198, 2, 16529, ...
3.673469
343
# coding: utf-8 from random import randint from urllib.parse import parse_qs import socket import sys import json import traceback import os import base64 import yaml import datetime import requests import re route = Route() def notFound(conn, request): if "/api" in request.header["path"]: notFound...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 21136, 62, 48382, 198, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 12854, 1891, 198, 11748, 2...
2.446558
1,787
from PyQt5.QtWidgets import QTabWidget from glia.widgets.editor import Editor
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 33349, 38300, 198, 198, 6738, 1278, 544, 13, 28029, 11407, 13, 35352, 1330, 12058, 628 ]
2.857143
28
""" Test Driven Development. """ import pytest
[ 37811, 6208, 5809, 574, 7712, 13, 37227, 198, 11748, 12972, 9288, 628, 628, 628, 628, 628, 628 ]
3.411765
17
#!/usr/bin/python # -*- coding: UTF-8 -*- # pylint: disable=E1601 """ 17/02/2018 Profesores: lvaro Snchez de Cruz / ??? - Se hace un repaso de lo que se imparti el da anterior. - Subprogramas o funciones: - Viene de la programacin estructurada. - Sintaxis: def nombreFuncion([parametro...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 279, 2645, 600, 25, 15560, 28, 36, 1433, 486, 198, 37811, 198, 1596, 14, 2999, 14, 7908, 198, 220, 220, 4415, 274, 2850, 2...
2.208696
575
import logging import requests import json import azure.functions as func dapr_url = "http://localhost:3500/v1.0"
[ 11748, 18931, 198, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 35560, 495, 13, 12543, 2733, 355, 25439, 198, 198, 67, 499, 81, 62, 6371, 796, 366, 4023, 1378, 36750, 25, 2327, 405, 14, 85, 16, 13, 15, 1, 198 ]
2.9
40
import os import json from logging import config name = os.path.splitext(__file__)[0] json_filename = os.path.join(os.path.dirname(__file__), f'{name}.json') with open(json_filename) as fh: config.dictConfig(json.load(fh))
[ 11748, 28686, 198, 11748, 33918, 198, 6738, 18931, 1330, 4566, 628, 198, 3672, 796, 28686, 13, 6978, 13, 22018, 578, 742, 7, 834, 7753, 834, 38381, 15, 60, 198, 17752, 62, 34345, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13...
2.241379
116
import responses from tamr_unify_client import Client from tamr_unify_client.auth import UsernamePasswordAuth
[ 11748, 9109, 198, 198, 6738, 21885, 81, 62, 403, 1958, 62, 16366, 1330, 20985, 198, 6738, 21885, 81, 62, 403, 1958, 62, 16366, 13, 18439, 1330, 50069, 35215, 30515, 628 ]
3.733333
30
import warnings warnings.simplefilter("ignore", category=FutureWarning) from skbio import TabularMSA from skbio.sequence import GrammaredSequence from io import StringIO, IOBase from shutil import copyfileobj import copy import numpy as np from pmaf.internal.io._seq import SequenceIO from pmaf.sequence._sequence._nucl...
[ 11748, 14601, 198, 198, 40539, 654, 13, 36439, 24455, 7203, 46430, 1600, 6536, 28, 29783, 20361, 8, 198, 6738, 1341, 65, 952, 1330, 16904, 934, 44, 4090, 198, 6738, 1341, 65, 952, 13, 43167, 1330, 20159, 76, 1144, 44015, 594, 198, 673...
3.69375
160
if __name__ == '__main__': a = ArvoreDerivacao('a') b = ArvoreDerivacao('b') A = ArvoreDerivacao('A', a) B = ArvoreDerivacao('B', b) S = ArvoreDerivacao('S', A, B) S.print_arvore()
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 257, 796, 943, 85, 382, 28532, 452, 330, 5488, 10786, 64, 11537, 198, 220, 220, 220, 275, 796, 943, 85, 382, 28532, 452, 330, 5488, 10786, 65, 11537,...
1.839286
112
import re import sys from operator import add from pyspark.sql import SparkSession if __name__ == "__main__": if len(sys.argv) != 3: print("Usage: pagerank <file> <iterations>", file=sys.stderr) sys.exit(-1) print("WARN: This is a naive implementation of PageRank and is given as an example...
[ 11748, 302, 198, 11748, 25064, 198, 6738, 10088, 1330, 751, 198, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 17732, 36044, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 175...
2.433915
401
from __future__ import absolute_import, unicode_literals from django.conf import settings from django.templatetags.static import static from django.utils.html import format_html from django.utils.module_loading import import_string from wagtail.core import hooks
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 11498, 489, 265, 316, 3775, 13, 12708, 1330, 9037, 198, 6738, 42625, 1420...
3.573333
75
# Copyright 2009-2010 Yelp # Copyright 2013 David Marin # Copyright 2014 Disco Project # # 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 # # Unles...
[ 2, 15069, 3717, 12, 10333, 44628, 198, 2, 15069, 2211, 3271, 36384, 198, 2, 15069, 1946, 19718, 4935, 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, ...
2.739837
861
""" restapi - base for calling rest resources Stackdriver Public API, Copyright Stackdriver 2014 Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF license...
[ 37811, 198, 2118, 15042, 532, 2779, 329, 4585, 1334, 4133, 198, 198, 25896, 26230, 5094, 7824, 11, 15069, 23881, 26230, 1946, 198, 198, 26656, 15385, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 273, 517, 18920, 5964, ...
4.003497
286
# -*- coding: utf-8 -*- """ Created on Wed Dec 11 15:05:41 2019 @author: jrodriguez119 """ import tkinter as tk from tkinter import ttk import crearcapas import perceptron_multicapa from threading import Thread import sys from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 4280, 1367, 1315, 25, 2713, 25, 3901, 13130, 201, 198, 201, 198, 31, 9800, 25, 474, 14892, 4359, 14870, 16315, 201, 198, 37811, ...
2.005917
3,211
from tests.graph_case import GraphTestCase
[ 6738, 5254, 13, 34960, 62, 7442, 1330, 29681, 14402, 20448, 628, 198 ]
3.75
12
import requests from ..base.test import BaseTestCase, AuthorizedTestCase import uuid import common
[ 11748, 7007, 201, 198, 6738, 11485, 8692, 13, 9288, 1330, 7308, 14402, 20448, 11, 6434, 1143, 14402, 20448, 201, 198, 11748, 334, 27112, 201, 198, 11748, 2219, 201 ]
3.642857
28
""" Define a command that should be run from a crontab. This one should check consistency of Meldungen: at most one Meldung per Aufgabe, per User. """ from django.core.management.base import BaseCommand, CommandError from django.core.management import call_command from django.utils import translation from django.conf...
[ 37811, 198, 7469, 500, 257, 3141, 326, 815, 307, 1057, 422, 257, 1067, 756, 397, 13, 198, 1212, 530, 815, 2198, 15794, 286, 2185, 335, 2150, 268, 25, 198, 265, 749, 530, 2185, 335, 2150, 583, 317, 3046, 70, 11231, 11, 583, 11787, ...
3.62406
133
# Generated by Django 2.1.15 on 2020-09-07 10:56 import app.models from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 1314, 319, 12131, 12, 2931, 12, 2998, 838, 25, 3980, 198, 198, 11748, 598, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.972973
37
# coding: utf-8 """ API's OpenData do Open Banking Brasil As API's descritas neste documento so referentes as API's da fase OpenData do Open Banking Brasil. # noqa: E501 OpenAPI spec version: 1.0.0-rc5.2 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/swagger-codegen.git...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 7824, 338, 4946, 6601, 466, 4946, 35385, 39452, 346, 628, 220, 220, 220, 1081, 7824, 338, 1715, 799, 292, 16343, 68, 3188, 78, 523, 6773, 429, 274, 355, 7824, 33...
2.535714
364
import sqlalchemy as sa from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql.functions import GenericFunction
[ 11748, 44161, 282, 26599, 355, 473, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 5589, 5329, 1330, 552, 2915, 198, 6738, 44161, 282, 26599, 13, 25410, 13, 12543, 2733, 1330, 42044, 22203, 628, 198 ]
3.647059
34
# 101050010 sm.warp(101050000, 7) sm.dispose()
[ 2, 8949, 2713, 37187, 198, 5796, 13, 86, 5117, 7, 8784, 2713, 2388, 11, 767, 8, 198, 5796, 13, 6381, 3455, 3419, 198 ]
2.043478
23
from suppy.utils.stats_constants import DIVERGENCE, TYPE from typing import Any, Dict from suppy.simulator.atomics.atomic import Atomic
[ 6738, 802, 88, 13, 26791, 13, 34242, 62, 9979, 1187, 1330, 360, 38757, 38, 18310, 11, 41876, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 6738, 802, 88, 13, 14323, 8927, 13, 265, 31994, 13, 47116, 1330, 28976, 198 ]
3.4
40
import logging from .lib.init_helper import init_logging, load_modules # Initialize logging format before loading all other modules logger = init_logging(logging.INFO) import argparse from .lib import pytorch as lib_pytorch from .lib.config import BenchmarkConfig from .lib.pytorch.benchmark import ( make_defaul...
[ 11748, 18931, 198, 198, 6738, 764, 8019, 13, 15003, 62, 2978, 525, 1330, 2315, 62, 6404, 2667, 11, 3440, 62, 18170, 198, 198, 2, 20768, 1096, 18931, 5794, 878, 11046, 477, 584, 13103, 198, 6404, 1362, 796, 2315, 62, 6404, 2667, 7, 6...
3.019108
157
from sqlalchemy import create_engine from sqlalchemy import Column, Integer, Boolean, String, DateTime, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import func import datetime import os im...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 41146, 11, 10903, 11, 7536, 7575, 11, 8708, 9218, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, ...
2.616134
719
# Need at least 20 # characters """ =============== Generate Images =============== This ipython notebook demonstrates how to generate an image dataset with rich ground truth from a virtual environment. """ #################### import time; print(time.strftime("The last update of this file: %Y-%m-%d %H:%M:%S", time.gm...
[ 2, 10664, 379, 1551, 1160, 1303, 3435, 198, 37811, 198, 25609, 18604, 198, 8645, 378, 5382, 198, 25609, 18604, 198, 198, 1212, 20966, 7535, 20922, 15687, 703, 284, 7716, 281, 2939, 27039, 351, 5527, 198, 2833, 3872, 422, 257, 7166, 2858...
3.117968
1,831
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-06 08:54 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 319, 1584, 12, 940, 12, 3312, 8487, 25, 4051, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, ...
2.8
55
""" Summary: Example use of the fmp package to update file paths in an .ief file and save the ief file under a new name. Author: Duncan Runnacles Created: 01 Apr 2016 Copyright: Duncan Runnacles 2016 TODO: Updates: """ import os from ship....
[ 37811, 198, 220, 220, 220, 21293, 25, 198, 220, 220, 220, 220, 220, 220, 220, 17934, 779, 286, 262, 277, 3149, 5301, 284, 4296, 2393, 13532, 287, 281, 764, 2086, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 290, 3613, 262, 220, 2...
2.488756
667
""" HTTPRequest.py Copyright 2010 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope that...
[ 37811, 198, 40717, 18453, 13, 9078, 198, 198, 15269, 3050, 843, 411, 371, 666, 6679, 198, 198, 1212, 2393, 318, 636, 286, 266, 18, 1878, 11, 2638, 1378, 86, 18, 1878, 13, 2398, 14, 764, 198, 198, 86, 18, 1878, 318, 1479, 3788, 26,...
3.356436
303
#!/usr/bin/env python from __future__ import print_function import sys, os from nbformat import v4 if __name__ == '__main__': with open(sys.argv[1], 'r') as nbfile: nb = v4.reads(nbfile.read()) print('Contents\n=======\n---') for cell in nb.cells: if cell['cell_type'] == 'markdown': ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 11, 28686, 198, 6738, 299, 65, 18982, 1330, 410, 19, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834,...
2.103571
280
from rest_framework import serializers
[ 6738, 1334, 62, 30604, 1330, 11389, 11341 ]
5.428571
7
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628, 198 ]
3
7
import pytest from persine import Persona from selenium import webdriver from selenium.webdriver.chrome.options import Options from unittest.mock import Mock
[ 11748, 12972, 9288, 198, 198, 6738, 2774, 500, 1330, 41581, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 46659, 13, 25811, 1330, 18634, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, ...
3.622222
45
import torch import numpy as np import cv2 import os import h5py from collections import defaultdict from mvn.models.triangulation import RANSACTriangulationNet, AlgebraicTriangulationNet, VolumetricTriangulationNet from mvn.models.loss import KeypointsMSELoss, KeypointsMSESmoothLoss, KeypointsMAELoss, KeypointsL2Loss...
[ 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 289, 20, 9078, 198, 6738, 17268, 1330, 4277, 11600, 220, 198, 6738, 285, 85, 77, 13, 27530, 13, 28461, 648, 1741, 1330, 371, 150...
2.282857
1,400
#!/usr/bin/env python """ TCP Linux sockets with netstat """ import re import sys import socket import lib_util import lib_common from lib_properties import pc from sources_types import addr as survol_addr # Many advantages compared to psutil: # The Python module psutil is not needed # psutil gives only sockets ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 4825, 47, 7020, 37037, 351, 2010, 14269, 198, 37811, 198, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 17802, 198, 11748, 9195, 62, 22602, 198, 11748, 9195, 62, 11321...
1.703078
1,657
# models.py # created by Sylvestre-Alvise Rebuffi [srebuffi@robots.ox.ac.uk] # Copyright The University of Oxford, 2017-2020 # This code is made available under the Apache v2.0 licence, see LICENSE.txt for details import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable ...
[ 2, 4981, 13, 9078, 198, 2, 2727, 416, 49481, 4223, 260, 12, 2348, 85, 786, 15652, 1648, 72, 685, 82, 34806, 1648, 72, 31, 22609, 1747, 13, 1140, 13, 330, 13, 2724, 60, 198, 2, 15069, 220, 383, 2059, 286, 13643, 11, 2177, 12, 423...
3.142012
169
#Condies Aninhadas #if -> elif -> elif -> else # pode usar quantos elif quiser #Aprovando Emprstimo casa = float(input('Qual o valor da casa: R$ ')) salario = float(input('Qual o valor do salrio: R$ ')) tempo = int(input('Quanto anos para pagar? ')) salario30 = salario * 0.30 prestacao = casa / (tempo * 12) if salario...
[ 2, 25559, 444, 1052, 259, 18108, 292, 198, 2, 361, 4613, 1288, 361, 4613, 1288, 361, 4613, 2073, 1303, 279, 1098, 514, 283, 5554, 418, 1288, 361, 627, 5847, 198, 198, 2, 32, 15234, 25440, 2295, 1050, 301, 25147, 198, 66, 15462, 796,...
2.273138
443
import discord import os import requests import asyncio import psycopg2 import logging from apscheduler.schedulers.asyncio import AsyncIOScheduler from discord.ext import commands logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt=f"%m/%d...
[ 11748, 36446, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 30351, 952, 198, 11748, 17331, 22163, 70, 17, 198, 11748, 18931, 198, 198, 6738, 257, 862, 1740, 18173, 13, 1416, 704, 377, 364, 13, 292, 13361, 952, 1330, 1081, 13361, 40, ...
2.547297
444
from gingerit.gingerit import GingerIt
[ 6738, 25072, 270, 13, 2667, 263, 270, 1330, 38682, 1026 ]
3.8
10
''' Escreva um programa que leia dois nmeros inteiros e compare- os, mostrando na tela uma mensagem: - O primeiro valor maior - O segundo valor maior - no existe valor maior, os dois so iguais ''' # Ler dois nmeros inteiros n1 = int(input('Informe o primeiro nmero: ')) n2 = int(input('Informe o...
[ 7061, 6, 198, 220, 220, 220, 16319, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 466, 271, 299, 647, 418, 493, 20295, 4951, 304, 8996, 12, 28686, 11, 749, 25192, 78, 12385, 256, 10304, 334, 2611, 285, 641, 363, 368, 25, 628, 220, 2...
2.111888
286
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
# -*- coding: utf-8 -*- { 'name': 'Open-Xchange Odoo', 'version': '1.0', 'category': 'Social Network', 'sequence': 2, 'summary': 'Discussions, Mailing Lists, News', 'description': """ Open-Xchange Integration ========================= This module is designed to be a standard open-xchange inbox i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 90, 198, 220, 220, 220, 705, 3672, 10354, 705, 11505, 12, 55, 3803, 10529, 2238, 3256, 198, 220, 220, 220, 705, 9641, 10354, 705, 16, 13, 15, 3256, 198, 220, 220, 22...
3.156863
357
import sys sys.path.append('src') from functions import * import numpy as np from numpy.testing import assert_allclose "-----------------------Full soliton--------------------------------------------" def pulse_propagations(ram, ss, nm, N_sol=1, cython = True, u = None): "SOLITON TEST. IF THIS FAILS GOD HELP YOU...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 10677, 11537, 198, 6738, 5499, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 439, 19836, 198, 198, 1, 19351, 6329, 13295, 1540, 37...
1.862015
2,551
import os import requests if __name__ == '__main__': url = 'https://jjdong5.com/get_file/4/1fa69b06c6276768e95cc0c04d85feec693488a588/13000/13287/13287_360p.m3u8' download(url)
[ 11748, 28686, 198, 11748, 7007, 198, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 19016, 796, 705, 5450, 1378, 41098, 67, 506, 20, 13, 785, 14, 1136, 62, 7753, 14, 19, 14, 16, 13331, 3388, ...
2.054945
91
from collections import defaultdict from time import sleep from absl import app from absl import flags import erdos.graph from erdos.op import Op from erdos.utils import frequency from erdos.message import Message from erdos.data_stream import DataStream from erdos.timestamp import Timestamp from erdos.message import...
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 2352, 75, 1330, 598, 198, 6738, 2352, 75, 1330, 9701, 198, 198, 11748, 1931, 37427, 13, 34960, 198, 6738, 1931, 37427, 13, 404, 1330, 8670, 198, 6738, 1931, 3...
2.78125
832
from django.http import HttpResponse from django_base_shop.models import ShippingTag from .models import ConcreteCart, ConcreteProduct
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 62, 8692, 62, 24643, 13, 27530, 1330, 24147, 24835, 198, 198, 6738, 764, 27530, 1330, 1482, 38669, 43476, 11, 1482, 38669, 15667, 628, 628, 628 ]
3.710526
38
# PYQT import sys #from ...TabPanel import TabPanel import sip from q3.ui.engine import qtw,qtc,qtg from ... import consts, prop, direction from ...ui import orientation, colors from ...moduletype import ModuleType from ...nodeiotype import NodeIoType from ...q3vector import Q3Vector from ...EventSignal import E...
[ 198, 2, 350, 56, 48, 51, 198, 198, 11748, 25064, 198, 2, 6738, 2644, 33349, 26639, 1330, 16904, 26639, 198, 198, 11748, 31145, 220, 198, 198, 6738, 10662, 18, 13, 9019, 13, 18392, 1330, 10662, 4246, 11, 80, 23047, 11, 80, 25297, 198...
3.230366
191
# import pandas, matplotlib, and seaborn import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns pd.set_option('display.width', 53) pd.set_option('display.max_columns', 5) pd.set_option('display.max_rows', 200) pd.options.display.float_format = '{:,.0f}'.format covidtotals = pd.read...
[ 2, 1330, 19798, 292, 11, 2603, 29487, 8019, 11, 290, 384, 397, 1211, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, ...
2.540541
999
import unittest import numpy as np from reamber.base import Bpm, Hit, Hold, Map, MapSet from reamber.base.lists import BpmList from reamber.base.lists.notes import HitList, HoldList # noinspection PyTypeChecker,DuplicatedCode if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 302, 7789, 13, 8692, 1330, 347, 4426, 11, 7286, 11, 9340, 11, 9347, 11, 9347, 7248, 198, 6738, 302, 7789, 13, 8692, 13, 20713, 1330, 347, 4426, 8053, 198...
2.90625
96
import re from util import * from operation import Operation, OperationResult
[ 11748, 302, 198, 6738, 7736, 1330, 1635, 198, 6738, 4905, 1330, 14680, 11, 14680, 23004, 628 ]
4.9375
16
# -*- coding: utf-8 -*- from index_matrix import Matrix __author__ = 'Patricio Lopez Juri'
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 6376, 62, 6759, 8609, 1330, 24936, 198, 198, 834, 9800, 834, 796, 705, 12130, 1173, 952, 22593, 449, 9900, 6, 628 ]
2.540541
37
from urllib.parse import parse_qs # query string my_values = parse_qs('red=5&blue=0&green=', keep_blank_values=True) # print(repr(my_values)) # print(my_values) # # >>> # {'red': ['5'], 'blue': ['0'], 'green': ['']} # blank # # get print('Red: ', my_values.get('red')) print('Green: ...
[ 6738, 2956, 297, 571, 13, 29572, 1330, 21136, 62, 48382, 198, 198, 2, 220, 12405, 4731, 198, 1820, 62, 27160, 796, 21136, 62, 48382, 10786, 445, 28, 20, 5, 17585, 28, 15, 5, 14809, 28, 3256, 198, 220, 220, 220, 220, 220, 220, 220,...
2.123853
436
from enum import Enum import pygame # Load sprites into pygame # Piece class Objects
[ 6738, 33829, 1330, 2039, 388, 198, 11748, 12972, 6057, 628, 628, 198, 2, 8778, 42866, 656, 12972, 6057, 628, 198, 2, 27053, 1398, 35832, 198 ]
3.64
25
from micropython import schedule _subscribers = {}
[ 6738, 12314, 1773, 7535, 1330, 7269, 198, 198, 62, 7266, 40075, 364, 796, 23884, 628, 628 ]
3.4375
16
import boto3 import logging import os from datetime import datetime log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def get_env_var_value(env_var): '''Get the value of an environment variable :param env_var: the environment variable :returns: the environment variable's value, None if env var is n...
[ 11748, 275, 2069, 18, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 6404, 13, 2617, 4971, 7, 6404, 2667, 13, 30531, ...
2.742658
2,009
# Library Imports from itertools import islice import csv # Local Module Imports import config
[ 2, 10074, 1846, 3742, 198, 6738, 340, 861, 10141, 1330, 318, 75, 501, 220, 198, 11748, 269, 21370, 198, 198, 2, 10714, 19937, 1846, 3742, 198, 11748, 4566, 198 ]
3.344828
29
""" Class to control the execution of the optimization session """ import shutil import configparser import glob import os import subprocess import sys from pathlib import Path from antares_xpansion.input_checker import check_candidates_file from antares_xpansion.input_checker import check_settings_file from ant...
[ 37811, 198, 220, 220, 220, 5016, 284, 1630, 262, 9706, 286, 262, 23989, 6246, 198, 37811, 198, 198, 11748, 4423, 346, 198, 11748, 4566, 48610, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 198, 67...
3.571429
105
from tweepy import StreamListener import json, time, sys
[ 6738, 4184, 538, 88, 1330, 13860, 33252, 198, 11748, 33918, 11, 640, 11, 25064, 628 ]
3.866667
15
''' N = int(input('Digite um NMERO: ')) tot = 0 for c in range(1, n+1): if n%c == 0: print('\033[33m', end=' ') tot+=1 else: print('\033[31m', end=' ') print('{}'.format(c), end=' ') print('\n\033[mO numero {} foi divisivel {} vezes'.format(n, tot)) if tot == 2: print('E POR ISSO...
[ 7061, 6, 198, 45, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 28692, 34812, 25, 705, 4008, 198, 83, 313, 796, 657, 198, 1640, 269, 287, 2837, 7, 16, 11, 299, 10, 16, 2599, 198, 220, 220, 220, 611, 299, 4, 66, 6624, 657, 25, ...
1.943005
193
from django.shortcuts import render # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198 ]
3.705882
17
# -*- coding: utf-8 -*- import qclib.tag_times
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 10662, 565, 571, 13, 12985, 62, 22355, 628, 220, 220, 220, 220 ]
1.925926
27
import socket address = ('127.0.0.1', 31500) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # s = socket.socket() s.bind(address) s.listen(5) ss, addr = s.accept() print 'got connected from',addr ss.send('hihi') ra = ss.recv(512) print ra ss.close() s.close()
[ 11748, 17802, 220, 220, 201, 198, 220, 220, 201, 198, 21975, 796, 19203, 16799, 13, 15, 13, 15, 13, 16, 3256, 32647, 405, 8, 220, 220, 201, 198, 82, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 17802, 13, 50, 1...
1.968944
161
# what is the first number to have 5000 different ways to sum with prime numbers? import math import timeit start = timeit.default_timer() print "Answer: %s" % euler_77() stop = timeit.default_timer() print "Time: %f" % (stop - start)
[ 2, 644, 318, 262, 717, 1271, 284, 423, 23336, 1180, 2842, 284, 2160, 351, 6994, 3146, 30, 220, 198, 198, 11748, 10688, 198, 11748, 640, 270, 628, 198, 9688, 796, 640, 270, 13, 12286, 62, 45016, 3419, 198, 198, 4798, 366, 33706, 25, ...
3.116883
77
from package.query_db import query from package.lambda_exception import LambdaException
[ 6738, 5301, 13, 22766, 62, 9945, 1330, 12405, 198, 6738, 5301, 13, 50033, 62, 1069, 4516, 1330, 21114, 6814, 16922, 198 ]
4.190476
21
# Title: Swap Nodes in Pairs # Link: https://leetcode.com/problems/swap-nodes-in-pairs def solution(): head = ListNode(1, ListNode(2, ListNode(3, ListNode(4)))) problem = Problem() return problem.swap_pairs(head) if __name__ == '__main__': main()
[ 2, 11851, 25, 48408, 399, 4147, 287, 350, 3468, 198, 2, 7502, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 2032, 499, 12, 77, 4147, 12, 259, 12, 79, 3468, 628, 198, 4299, 4610, 33529, 198, 220, 220, 220, 1182, 7...
2.495327
107
import numpy as np import cv2 import imageio import tensorflow as tf import json import csv import os import sys sys.path.append("object_detection") sys.path.append("object_detection/deep_sort") sys.path.append("action_detection") import argparse import object_detection.object_detector as obj import action_detection...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 2939, 952, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 33918, 198, 11748, 269, 21370, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33...
2.812155
181
import os import unittest from pathlib import Path import pytest from paramak import SweepMixedShape if __name__ == "__main__": unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 5772, 461, 1330, 42818, 44, 2966, 33383, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, ...
2.942308
52
from boto3.s3.transfer import S3Transfer import boto3 import glob import os files = glob.glob("*.bak") for file in files: print(file) uploaded = upload_to_aws(file, 'newki-backup', file) os.remove(file)
[ 6738, 275, 2069, 18, 13, 82, 18, 13, 39437, 1330, 311, 18, 43260, 198, 11748, 275, 2069, 18, 198, 11748, 15095, 198, 11748, 28686, 198, 220, 220, 220, 220, 198, 16624, 796, 15095, 13, 4743, 672, 7203, 24620, 65, 461, 4943, 198, 1640...
2.455556
90
import numpy as np from deepnet.nnet import RNN from deepnet.solver import sgd_rnn def text_to_inputs(path): """ Converts the given text into X and y vectors X : contains the index of all the characters in the text vocab y : y[i] contains the index of next character for X[i] in the text vocab """ ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2769, 3262, 13, 77, 3262, 1330, 371, 6144, 198, 6738, 2769, 3262, 13, 82, 14375, 1330, 264, 21287, 62, 81, 20471, 628, 198, 4299, 2420, 62, 1462, 62, 15414, 82, 7, 6978, 2599, 198, 220, 220,...
2.057851
484
from __future__ import print_function from __future__ import division from . import _C import torch from fuzzytorch.utils import TDictHolder, tensor_to_numpy, minibatch_dict_collate import numpy as np from fuzzytools.progress_bars import ProgressBar, ProgressBarMulti import fuzzytools.files as files import fuzzytools....
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 764, 1330, 4808, 34, 198, 198, 11748, 28034, 198, 6738, 34669, 13165, 354, 13, 26791, 1330, 13320, 713, 39, 19892, 11, 11192, 273, 62, ...
4.251121
223
# if __name__ == "__main__": test_dic = {'a': 1, 'b': 2, 'c': {'a': 1, 'b': {'b': 4}}} r1 = getItemByKey(test_dic, 'b') r2 = getItemByKeyInMyMethod(test_dic, 'b') print(r1, r2, sep='\n')
[ 2, 220, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1332, 62, 67, 291, 796, 1391, 6, 64, 10354, 352, 11, 705, 65, 10354, 362, 11, 705, 66, 10354, 1391, 6, 64, 10354, 352, 11, 705, 65, ...
1.839286
112
#!/usr/bin/env python # -*- coding: utf-8 -*- from tacit import tac_slices for chunk in tac_slices('data/ordered.list', 2): print repr(chunk)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 40787, 1330, 26142, 62, 82, 677, 274, 198, 198, 1640, 16058, 287, 26142, 62, 82, 677, 274, 10786, 7890, 14...
2.387097
62
import numpy as np import pandas as pd import json from datetime import datetime import psycopg2 import functools import requests ############################################################## ## https://www.exrx.net/Calculators/WalkRunMETs ## https://www.cdc.gov/growthcharts/clinical_charts.htm ## https://help.fitbit...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 17331, 22163, 70, 17, 198, 11748, 1257, 310, 10141, 198, 11748, 7007, 198, 198, 29113, 14468, 7...
2.37234
940
from django.conf import settings CONTENT_AREAS = getattr(settings, 'PAGELET_CONTENT_AREAS', ( ('main', 'Main'), )) CONTENT_AREA_DEFAULT = getattr(settings, 'PAGELET_CONTENT_AREA_DEFAULT', 'main') CONTENT_TYPES = getattr(settings, 'PAGELET_CONTENT_TYPES', ( ('html', 'HTML', (), {},), ('markdown'...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 628, 198, 37815, 3525, 62, 12203, 1921, 796, 651, 35226, 7, 33692, 11, 705, 4537, 8264, 28882, 62, 37815, 3525, 62, 12203, 1921, 3256, 357, 198, 220, 220, 220, 19203, 12417, 3256, 705, 13383, ...
2.403202
687
import logging import numpy as np from scipy import stats from collections import OrderedDict from alphad3m.metalearning.resource_builder import load_metalearningdb from alphad3m.metalearning.dataset_similarity import get_similar_datasets from alphad3m.primitive_loader import load_primitives_by_name, load_primitives_by...
[ 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 9756, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 435, 746, 324, 18, 76, 13, 28469, 451, 768, 13, 31092, 62, 38272, 1330, 3440, 62, 28469, ...
2.883871
155
from deap import base, creator, tools import random """ individuallist10 """ # ****************************Types******************************** # def create(name, base, **kargs): # Creates a new class named *name* inheriting from *base* # A negative weight element corresponds to the minimization of # the associated o...
[ 6738, 390, 499, 1330, 2779, 11, 13172, 11, 4899, 198, 11748, 4738, 198, 37811, 198, 521, 1699, 84, 439, 396, 940, 198, 37811, 198, 198, 2, 220, 8412, 46068, 31431, 17174, 198, 2, 825, 2251, 7, 3672, 11, 2779, 11, 12429, 74, 22046, ...
2.91914
977
from collections import deque import random import numpy as np
[ 6738, 17268, 1330, 390, 4188, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941 ]
4.428571
14
# Standard library imports from pprint import pprint import unittest # Local application imports from context import entities from entities import creatures from entities import items from entities import currency from entities import slots if __name__ == '__main__': unittest.main() # runner = unittest.T...
[ 2, 8997, 5888, 17944, 220, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 11748, 555, 715, 395, 198, 198, 2, 10714, 3586, 17944, 198, 6738, 4732, 1330, 12066, 198, 6738, 12066, 1330, 8109, 198, 6738, 12066, 1330, 3709, 198, 6738, 12066, ...
3.646465
99
import collections import re from typing import Iterator, TextIO from .constants import TILE_END, TILE_START, TILE_WARNING
[ 11748, 17268, 198, 11748, 302, 198, 198, 6738, 19720, 1330, 40806, 1352, 11, 8255, 9399, 198, 198, 6738, 764, 9979, 1187, 1330, 31598, 2538, 62, 10619, 11, 31598, 2538, 62, 2257, 7227, 11, 31598, 2538, 62, 31502, 628, 628, 198 ]
3.225
40
import binascii from pwn import * port = 1234 server = '127.0.0.1' sleep(1) for i in range(10000): r = remote(server, port) send(r,i) r.close()
[ 11748, 9874, 292, 979, 72, 198, 6738, 279, 675, 1330, 1635, 198, 634, 796, 1105, 2682, 198, 15388, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, 42832, 7, 16, 8, 198, 1640, 1312, 287, 2837, 7, 49388, 2599, 198, 220, 220, 220,...
2.180556
72
from djoser.serializers import UserCreateSerializer from .models import CustomUser
[ 6738, 42625, 13416, 13, 46911, 11341, 1330, 11787, 16447, 32634, 7509, 198, 6738, 764, 27530, 1330, 8562, 12982, 628 ]
4.421053
19
name = "flask_slack_template"
[ 3672, 796, 366, 2704, 2093, 62, 6649, 441, 62, 28243, 1, 198 ]
2.5
12
from typing import Dict from time import time_ns from bus import Bus from instructions.generic_instructions import Instruction from rom import ROM from status import Status import instructions.instructions as i_file import instructions.jump_instructions as j_file import instructions.load_instructions as l_file import ...
[ 6738, 19720, 1330, 360, 713, 198, 6738, 640, 1330, 640, 62, 5907, 198, 6738, 1323, 1330, 5869, 198, 6738, 7729, 13, 41357, 62, 259, 7249, 507, 1330, 46486, 198, 6738, 9267, 1330, 21224, 198, 6738, 3722, 1330, 12678, 198, 198, 11748, 7...
3.899371
159
#!/usr/bin/env python import datetime import os import subprocess import re import urllib2 import math #################################################################### ## TODO: Replace this function by another one, which simply reads all lines from a file #########################################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 2956, 297, 571, 17, 198, 11748, 10688, 628, 198, 29113, 29113, 4242, 198, 2235, 16926, 46,...
3.2
390
import os import sys import hash_utils if __name__ == '__main__': with open('index.php', 'w') as outfile: StartIndexPhp() for f in os.listdir('.'): if f == 'index.php' or f.find( '?' ) != -1 or f.find( 'System Volume Information' ) != -1 or f.find( 'RECYCLER' ) != -1: ...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 12234, 62, 26791, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 351, 1280, 10786, 9630, 13, 10121, 3256, 705, 86, 11537, 3...
1.786885
427