content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import pandas as pd import numpy as np file1 = '../data/FV2.xlsx' x1 = pd.ExcelFile(file1) feature = x1.parse('Sheet1') print(feature.shape) file2 = '../data/AP_SSRI_PD_PAIN.xlsx' x2 = pd.ExcelFile(file2) cohort1 = x2.parse('Sheet1') print(cohort1.shape) cohort1 = cohort1.drop(['CLASSIFICATION'], axis=1) cohort1 = coh...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 7753, 16, 796, 705, 40720, 7890, 14, 37, 53, 17, 13, 87, 7278, 87, 6, 198, 87, 16, 796, 279, 67, 13, 3109, 5276, 8979, 7, 7753, 16, 8, 198, 30053, 796, ...
2.12987
770
import torch
[ 11748, 28034, 628 ]
4.666667
3
#! /usr/bin/env python """ Implementation of the GirvanNewman algorithm for finding the best modularity in a network """ import copy import random import networkx as nx from .base import modularity from .base import largest_connected # def get_protected_edges(G, similar_sets): # protected_edges = [] # for ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 3546, 32851, 286, 262, 23837, 10438, 3791, 805, 11862, 198, 1640, 4917, 262, 1266, 26507, 414, 287, 257, 3127, 198, 37811, 198, 11748, 4866, 198, 11748, 4738, 198, 11748, ...
2.348739
238
# Generated by Django 3.2.8 on 2021-11-28 20:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 1157, 12, 2078, 1160, 25, 2075, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198 ]
3.166667
6
import logging from datetime import datetime, timezone from pprint import pformat from typing import Union import discord from redbot.core import checks, commands from redbot.core.config import Config from redbot.core.i18n import Translator, cog_i18n, set_contextual_locales_from_guild from redbot.core.utils import Asy...
[ 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 6738, 279, 4798, 1330, 279, 18982, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 36446, 198, 6738, 2266, 13645, 13, 7295, 1330, 8794, 11, 9729, 198, 6738, 2266...
2.429656
3,689
try: import tkinter as tk # for Python 3 except: import Tkinter as tk # for Python 2.7 import time # Initializing some global variables # Initial time range for work time (standard 25 min) workingTime = 10 # 25 * 60 # Short break time (5 min) shortBreakTime = 5 # 5 * 60 # Long break time (15 m...
[ 28311, 25, 201, 198, 220, 220, 220, 1330, 256, 74, 3849, 355, 256, 74, 220, 1303, 329, 11361, 513, 201, 198, 16341, 25, 201, 198, 220, 220, 220, 1330, 309, 74, 3849, 355, 256, 74, 220, 1303, 329, 11361, 362, 13, 22, 201, 198, 20...
2.549505
202
# Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with the # Li...
[ 2, 15069, 357, 66, 8, 2177, 11, 1578, 1829, 5070, 11, 355, 7997, 416, 262, 198, 2, 22998, 286, 262, 2351, 15781, 261, 2306, 873, 290, 4687, 8694, 13, 198, 2, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 383, 35167, 20963, 3859...
4.019048
210
from django import forms from apps.confidencechronograms.models import Cliente, Funcionario
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 6725, 13, 39745, 11413, 26836, 13, 27530, 1330, 20985, 68, 11, 11138, 66, 295, 4982, 198 ]
3.875
24
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat May 5 02:18:38 2018 @author: avanetten Adapted from: https://github.com/SpaceNetChallenge/RoadDetector/tree/master/albu-solution """ import time import cv2 cv2.setNumThreads(0) cv2.ocl.setUseOpenCL(False) import os import numpy as np #import shutil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 1737, 220, 642, 7816, 25, 1507, 25, 2548, 2864, 198, 198, 31, 9800, 25, 1196, 272, ...
2.531887
2,305
import sys import os import torch import torch.distributed as dist import torch.nn as nn import warnings import torch.distributed import numpy as np import random import faulthandler import torch.multiprocessing as mp import time import scipy.misc from models.networks import MvsFlow from torch import optim import argpa...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 28034, 198, 11748, 28034, 13, 17080, 6169, 355, 1233, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 14601, 198, 11748, 28034, 13, 17080, 6169, 198, 11748, 299, 32152, 355, 45941, 198,...
2.723958
1,536
from typing import TYPE_CHECKING, Iterable, Optional from ..discount import DiscountInfo from ..plugins.manager import get_plugins_manager if TYPE_CHECKING: from prices import TaxedMoney from .models import Checkout, CheckoutLine def checkout_shipping_price( *, checkout: "Checkout", lines: Itera...
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 40806, 540, 11, 32233, 198, 198, 6738, 11485, 15410, 608, 1330, 43474, 12360, 198, 6738, 11485, 37390, 13, 37153, 1330, 651, 62, 37390, 62, 37153, 198, 198, 361, 41876, 62, 50084, 2751, 25,...
3.008389
596
""" pydagman: A package for creating DAGman files ..moduleauthor:: Branden Timm <branden.timm@gmail.com> Classes: Dagfile: Represents a DAGman file Job: Represents a DAGman Condor job """
[ 37811, 198, 79, 5173, 363, 805, 25, 317, 5301, 329, 4441, 360, 4760, 805, 3696, 198, 492, 21412, 9800, 3712, 13512, 268, 5045, 76, 1279, 17938, 268, 13, 83, 8608, 31, 14816, 13, 785, 29, 198, 9487, 274, 25, 198, 35, 363, 7753, 25,...
2.876923
65
#!/usr/bin/env python # # Copyright 2018 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. """Creates a script that runs a CrOS VM test by delegating to build/chromeos/test_runner.py. """ import argparse import os import sy...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 2864, 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.61809
398
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Functions to rebin light curves and frequency spectra.""" import numpy as np from astropy import log from .io import get_file_type from .io import save_lcurve, save_pds from .io import HEN_FILE_EXTENSION, get_file_extension def rebin_file(filename, r...
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 37811, 24629, 2733, 284, 3405, 259, 1657, 23759, 290, 8373, 5444, 430, 526, 15931, 198, 198, 11748, 299, 32152, 355, 45941, 198, ...
2.473204
877
""" Make a textured floor, a lamp post, and load a mesh of a car make copies of the car, rotate and move them in a loop. """ from __future__ import division, print_function from vtkplotter import Plotter, Plane, Text, datadir vp = Plotter(interactive=0, axes=0) vp += Plane(pos=(4, 0, -0.45), sx=12).texture("metalfloo...
[ 37811, 198, 12050, 257, 2420, 1522, 4314, 11, 257, 20450, 1281, 11, 290, 3440, 257, 19609, 286, 257, 1097, 198, 15883, 9088, 286, 262, 1097, 11, 23064, 290, 1445, 606, 287, 257, 9052, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330...
2.442529
348
#!/usr/bin/python from pathlib import Path import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from bgcArgo import sprof, profiles sns.set(context='paper', style='whitegrid', palette='colorblind') sage_path = Path('/Users/gordonc/Documents/data/Argo/sage/') sage_files = lis...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 1174...
2.207349
381
# https://www.hackerrank.com/challenges/count-luck/problem # Count the number of intersections in the correct path of a maze countLuck(['.X.X......X', '.X*.X.XXX.X', '.XX.X.XM...', '......XXXX.'], 3)
[ 2, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 9127, 12, 46708, 14, 45573, 198, 198, 2, 2764, 262, 1271, 286, 42085, 287, 262, 3376, 3108, 286, 257, 31237, 628, 198, 9127, 35498, 26933, 4458, 55, 13, 55, ...
2.859155
71
from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtXml import * from moviedata import * class SaxMovieHandler(QXmlDefaultHandler): """docstring for SaxMovieHandler"""
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, ...
2.583333
84
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 2321, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, ...
3.035616
730
# Generated by Django 2.1.7 on 2019-03-03 09:18 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 3070, 12, 3070, 7769, 25, 1507, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 628, 198 ]
1.75
16
# coding=utf-8 import sys import raven import raven.breadcrumbs from mockito import ANY, mock, verify, verifyStubbedInvocationsAreUsed, when from elib.sentry import Sentry, SentryContext class DummyContext(SentryContext): """ Dummy testing context """ string = 'string' integer = 1
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 25064, 198, 198, 11748, 37735, 198, 11748, 37735, 13, 29573, 6098, 18146, 198, 6738, 15290, 10094, 1330, 15529, 11, 15290, 11, 11767, 11, 11767, 1273, 549, 3077, 818, 18893, 602, 8491, 38052...
2.909091
110
from whistlepy.client.api.base import BaseWhistleAPI
[ 6738, 16121, 9078, 13, 16366, 13, 15042, 13, 8692, 1330, 7308, 1199, 12535, 17614, 628 ]
3.6
15
"""Closing the Rendering Window Press q: Control returns to terminal, window will not close but become unresponsive""" from vtkplotter import Text, Paraboloid, Hyperboloid, Plotter, show mesh = Paraboloid() vp1 = show(mesh, Text2D(__doc__), title='First Plotter instance') # Now press 'q' to exit the window interact...
[ 37811, 2601, 2752, 262, 28703, 1586, 26580, 198, 198, 13800, 10662, 25, 198, 15988, 5860, 284, 12094, 11, 198, 17497, 481, 407, 1969, 475, 1716, 555, 39772, 37811, 198, 6738, 410, 30488, 29487, 353, 1330, 8255, 11, 2547, 28426, 1868, 11...
3.636605
377
""" Given an xform definition, storageutility generates dynamic data tables. Given an xml instance, storeagutility populates the data tables. Basically, storageutility abstracts away all interaction with the database, and it only knows about the data structures in xformdef.py """ import re import os import sys impor...
[ 37811, 11259, 281, 2124, 687, 6770, 11, 6143, 315, 879, 18616, 8925, 1366, 8893, 13, 198, 15056, 281, 35555, 4554, 11, 3650, 363, 315, 879, 1461, 15968, 262, 1366, 8893, 13, 198, 198, 31524, 11, 6143, 315, 879, 12531, 82, 1497, 477, ...
2.324264
8,012
# # 1684. Count the Number of Consistent Strings # # Q: https://leetcode.com/problems/count-the-number-of-consistent-strings/ # A: https://leetcode.com/problems/count-the-number-of-consistent-strings/discuss/969513/Kt-Js-Py3-Cpp-1-Liners # from typing import List # 1-liner # verbose
[ 2, 198, 2, 1467, 5705, 13, 2764, 262, 7913, 286, 3515, 7609, 4285, 654, 198, 2, 198, 2, 1195, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 9127, 12, 1169, 12, 17618, 12, 1659, 12, 5936, 7609, 12, 37336, 14, 198,...
2.517544
114
#!/usr/bin/env python3 # # import os import time from redis import Redis from flask import Flask from flask import make_response from flask import render_template from flask import request from flask import Response from datetime import datetime import requests appcontainer = Flask(__name__) vals = gen() app_versi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 2266, 271, 1330, 2297, 271, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 787, 62, 26209, 198, 6738, 42903, 1330,...
2.991667
240
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ Loki module for color Input: inputSTR str, utterance str, args str[], resultDICT dict Output: resultDICT dict """ DEBUG_color = True userDefinedDICT = {"粉": ["藥粉", "粉末", "粉狀"], "液體": ["液狀物",...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 31771, 8265, 329, 3124, 628, 220, 220, 220, 23412, 25, 198, 220, 220, 220, 220, 220,...
1.389286
280
# -*- coding: utf-8 -*- import json import boto3 import requests from api.rdb.config import is_test, is_production from api.rdb.utils.apigateway import get_api_url from api.rdb.utils.service_framework import STATUS_OK, STATUS_NOT_FOUND from ..conftest import get_secure_event from ..utilities import invoke # noinsp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33918, 198, 198, 11748, 275, 2069, 18, 198, 11748, 7007, 198, 198, 6738, 40391, 13, 4372, 65, 13, 11250, 1330, 318, 62, 9288, 11, 318, 62, 25493, 198, 6738...
2.939655
116
""" Python script to create graphs of the benchmark """ from collections import OrderedDict import matplotlib.pyplot as plt BENCHMARK_NODE = OrderedDict() with open('results/cmp_nodes.txt') as node_method_file: ROWS = node_method_file.readlines() i = 0 for ROW in ROWS: i += 1 ROW = ROW.spl...
[ 37811, 198, 37906, 4226, 284, 2251, 28770, 286, 262, 18335, 198, 37811, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 33, 1677, 3398, 44, 14175, 62, 45, 1682...
2.063599
739
from flask import Blueprint from flask_restful import Api from .resources import ImageAiResource from .sentences import SentenceResource, SentenceItemResource bp = Blueprint("restapi", __name__, url_prefix="/api/v1") api = Api(bp)
[ 6738, 42903, 1330, 39932, 198, 6738, 42903, 62, 2118, 913, 1330, 5949, 72, 198, 198, 6738, 764, 37540, 1330, 7412, 32, 72, 26198, 198, 6738, 764, 34086, 3007, 1330, 11352, 594, 26198, 11, 11352, 594, 7449, 26198, 198, 198, 46583, 796, ...
3.441176
68
# -*- coding: utf-8 -*- import sys from argh.decorators import arg from lain_cli.utils import lain_yaml from lain_sdk.mydocker import copy_files_from_image @arg('-r', '--results', nargs='*', type=str) def test(results=[]): """ Build test image and run test scripts defined in lain.yaml """ passed, t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 198, 6738, 610, 456, 13, 12501, 273, 2024, 1330, 1822, 198, 198, 6738, 300, 391, 62, 44506, 13, 26791, 1330, 300, 391, 62, 88, 43695, 198, 6738, 300...
2.384977
213
import glob, os from operators.code_analyzer.constants.context import CONTEXT_MAP from operators.code_analyzer.utils.common import get_intersection, flatten, unpack, findall_regex
[ 11748, 15095, 11, 28686, 198, 198, 6738, 12879, 13, 8189, 62, 38200, 9107, 13, 9979, 1187, 13, 22866, 1330, 22904, 13918, 62, 33767, 198, 6738, 12879, 13, 8189, 62, 38200, 9107, 13, 26791, 13, 11321, 1330, 651, 62, 3849, 5458, 11, 271...
3.363636
55
# https://github.com/andrewliao11/gail-tf # import lib.tf_util as U import tensorflow as tf import numpy as np import lib.layer as layer # ================================================================ # Flat vectors # ================================================================ # ==========================...
[ 2, 3740, 1378, 12567, 13, 785, 14, 392, 1809, 75, 13481, 1157, 14, 70, 603, 12, 27110, 198, 2, 1330, 9195, 13, 27110, 62, 22602, 355, 471, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 1174...
4.50641
156
import json import math import datetime from django.shortcuts import render, redirect, render_to_response, get_object_or_404 from django.contrib.auth.decorators import login_required from django.http import HttpResponse, JsonResponse, Http404 from django.template import RequestContext from django.utils import timezone...
[ 11748, 33918, 198, 11748, 10688, 198, 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 11, 8543, 62, 1462, 62, 26209, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 42625, 14208, 13, 3642, ...
3.478947
190
# Generated by Django 2.2 on 2019-06-11 02:04 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 13130, 12, 3312, 12, 1157, 7816, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.892857
28
""" ============================ Drawing a rectangle on a map ============================ This example will demonstrate how to draw a rectangle on a map using :meth:`~sunpy.map.GenericMap.draw_quadrangle`. """ import matplotlib.pyplot as plt import astropy.units as u from astropy.coordinates import SkyCoord import ...
[ 37811, 198, 4770, 25609, 198, 25302, 278, 257, 35991, 319, 257, 3975, 198, 4770, 25609, 198, 198, 1212, 1672, 481, 10176, 703, 284, 3197, 257, 35991, 319, 257, 3975, 1262, 1058, 76, 2788, 25, 63, 93, 19155, 9078, 13, 8899, 13, 46189, ...
3.065041
984
import boto3 import base64 import uuid import sys if __name__ == '__main__': master_key = sys.argv[1] tableName = sys.argv[2] kms_client = boto3.client("kms") dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(tableName) store_key(table, master_key)
[ 11748, 275, 2069, 18, 198, 11748, 2779, 2414, 198, 11748, 334, 27112, 198, 11748, 25064, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4958, 62, 2539, 796, 25064, 13, 853, 85, 58, 16, 60, 19...
2.344262
122
import zeit.cms.interfaces import zeit.content.cp.interfaces import zeit.content.cp.testing
[ 11748, 41271, 270, 13, 46406, 13, 3849, 32186, 198, 11748, 41271, 270, 13, 11299, 13, 13155, 13, 3849, 32186, 198, 11748, 41271, 270, 13, 11299, 13, 13155, 13, 33407, 628 ]
3.1
30
from abc import ABC from typing import List from avalanche.evaluation.metric_results import MetricValue from avalanche.training.plugins import PluggableStrategy from avalanche.training.strategy_callbacks import StrategyCallbacks class StrategyLogger(StrategyCallbacks[None], ABC): """ The base class for the ...
[ 6738, 450, 66, 1330, 9738, 198, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 44128, 13, 18206, 2288, 13, 4164, 1173, 62, 43420, 1330, 3395, 1173, 11395, 198, 6738, 44128, 13, 34409, 13, 37390, 1330, 1345, 6837, 540, 13290, 4338, 198, ...
3.323293
498
from django import forms from pretalx.submission.models import Resource
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 2181, 282, 87, 13, 7266, 3411, 13, 27530, 1330, 20857, 628 ]
3.894737
19
from glob import glob from pathlib import Path from saturnv.ui.managers import AbstractBaseManager
[ 6738, 15095, 1330, 15095, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 3332, 700, 85, 13, 9019, 13, 805, 10321, 1330, 27741, 14881, 13511, 628, 198 ]
3.777778
27
#!/bin/env python """Main program to convert Markdown files to different possible output formats.""" import datetime import json import logging import os import pathlib import pprint from typing import cast, List from xml.etree.ElementTree import ElementTree from cli import parse_cli_arguments from converter import ...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 198, 37811, 13383, 1430, 284, 10385, 2940, 2902, 3696, 284, 1180, 1744, 5072, 17519, 526, 15931, 198, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 3108...
2.835596
1,989
from collections import Counter
[ 6738, 17268, 1330, 15034, 628 ]
6.6
5
import nfft import numpy as np import pylab as pl %matplotlib inline Mp1, Mt, Mp2 = 20, 21, 20 N = 3 nfsoft_plan = nfft.nfsoft.plan(Mp1*Mt*Mp2, N) p1 = 2*np.pi*np.linspace(-0.5,0.5,Mp1,endpoint=False) t = 2*np.pi*np.linspace(0+0.00001,0.5-0.00001,Mt,endpoint=True) p2 = 2*np.pi*np.linspace(-0.5,0.5,Mp2,endpoint=False...
[ 11748, 299, 487, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 2645, 397, 355, 458, 198, 4, 6759, 29487, 8019, 26098, 198, 198, 28861, 16, 11, 18632, 11, 337, 79, 17, 796, 1160, 11, 2310, 11, 1160, 198, 45, 796, 513, 19...
1.78239
795
import argparse import os import json import yaml import traceback from tqdm import tqdm from glob import glob import run_predict as rt from cst_transform.data.vocab_utils import MultiIndexer # Handling file index for SVComp -------------------------------- # ---------------------------------------------------...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 331, 43695, 198, 11748, 12854, 1891, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 15095, 1330, 15095, 198, 198, 11748, 1057, 62, 79, 17407, 355, 3...
2.258985
946
# -*- encoding: utf-8 -*- """Group all concurrency objects and routines we use. Intended to easy a potential future change in the concurrency model (i.e. threads VS processes) """ # TODO(Nicolas Despres): Completely wrap the Queue and Task classes for proper # abstraction. import threading as _concurrency import q...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 13247, 477, 1673, 13382, 5563, 290, 31878, 356, 779, 13, 198, 198, 5317, 1631, 284, 2562, 257, 2785, 2003, 1487, 287, 262, 1673, 13382, 2746, 357, 72, 13, 68, 1...
2.536404
673
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt # Loads the episode lengths from the csv files into a dictionary and return the dictionary # def exponential_avg(rewardsList, alpha): # AverageRewardsList = [rewardsList[0]] # o_n_minus_1 = 0 # for i in range(1, len(rewardsL...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 8778, 82, 262, 4471, 20428, 422, 262, 269, 21370, 3696, 656, 257, 22155...
2.356792
1,833
from fractions import Fraction from functools import reduce def main(): """ Entry point """ # We consider fractions with two digits in num and denom, less than one curious = [] for numerator in range(10, 100): for denominator in range(numerator + 1, 100): nums = numerator //...
[ 6738, 49876, 1330, 376, 7861, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 21617, 966, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 775, 2074, 49876, 351,...
2.243119
436
""" File representing the FastNJ, Local Hill-Climbing and Top-hits heuristics. All relevant classes or functions will be defined here, with possible references to utility functions i.e. distances. References to page numbers in this code are referring to the paper or its supplementary material: [1] Price at al. FastTre...
[ 37811, 198, 8979, 10200, 262, 12549, 41074, 11, 10714, 3327, 12, 34, 2475, 4623, 290, 5849, 12, 71, 896, 339, 333, 3969, 13, 198, 3237, 5981, 6097, 393, 5499, 481, 307, 5447, 994, 11, 351, 1744, 10288, 284, 10361, 5499, 1312, 13, 68...
2.303081
7,173
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2019 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 628, 198, 198, 15269, 357, 66, 8, 13130, 28289, 290, 14, 273, 663, 29116, 13, 198, 198, 1212, 3788, 318, 11971...
2.575069
6,201
# Generated by Django 3.2.4 on 2021-07-04 06:55 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 2998, 12, 3023, 9130, 25, 2816, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import numpy as np import os import sys import glob import uproot as ur import matplotlib.pyplot as plt import time import seaborn as sns import tensorflow as tf from graph_nets import utils_np from graph_nets import utils_tf from graph_nets.graphs import GraphsTuple import sonnet as snt import argparse import yaml imp...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 15095, 198, 11748, 510, 15763, 355, 2956, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 640, 198, 11748, 384, 397, 1211, 355, 3...
3.296296
108
#! /usr/bin/env python import sys, os url = 'http://127.0.0.1:8000/?cheat=%s' % sys.argv[1] g = os.popen('lynx -source %r' % url, 'r') g.read() g.close()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 11, 28686, 198, 198, 6371, 796, 705, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 33942, 20924, 46799, 28, 4, 82, 6, 4064, 25064, 13, 853, 85, 58, 16, 60, ...
2.025974
77
from collections import defaultdict import importlib _surfaces = { None: { "cairo": "blackrenderer.backends.cairo.CairoPixelSurface", "coregraphics": "blackrenderer.backends.coregraphics.CoreGraphicsPixelSurface", "skia": "blackrenderer.backends.skia.SkiaPixelSurface", "svg": "blac...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 1330, 8019, 628, 198, 62, 11793, 32186, 796, 1391, 198, 220, 220, 220, 6045, 25, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 66, 18131, 1298, 366, 13424, 10920, 11882, 13, 1891, 2412,...
2.281659
458
# -*- encoding=utf-8 -*- # Time: O(n) # Space: O(n) # 907 # Given an array of integers A, find the sum of min(B), # where B ranges over every (contiguous) subarray of A. # # Since the answer may be large, return the answer modulo 10^9 + 7. # # Example 1: # # Input: [3,1,2,4] # Output: 17 # Explanation: Subarrays are ...
[ 2, 532, 9, 12, 21004, 28, 40477, 12, 23, 532, 9, 12, 198, 2, 3862, 25, 220, 440, 7, 77, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 198, 198, 2, 860, 2998, 198, 2, 11259, 281, 7177, 286, 37014, 317, 11, 1064, 262, 2160, 286, 949, ...
2.602105
1,425
import numpy as np def hamiltonian(ang_freq, B_0, end_time, num_steps): ''' Generates hamiltonian at all time steps ''' H_0 = np.zeros((num_steps, 2, 2)) H_0[:, 1, 1].fill(2*np.pi*177*10**6) H_int = np.zeros((num_steps, 2, 2)) H_int[:, 0, 1] = B_0*2*np.pi*10**6*np.cos(2*np.pi*ang_freq*np....
[ 11748, 299, 32152, 355, 45941, 628, 198, 4299, 8891, 9044, 666, 7, 648, 62, 19503, 80, 11, 347, 62, 15, 11, 886, 62, 2435, 11, 997, 62, 20214, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 2980, 689, 8891, 9044, 666, ...
2.057903
639
from visual import * from datetime import datetime #ring #arrow #sphere original_hour = vector(0, 5, 0) original_minute = vector(0, 8, 0) original_second = vector(0, 10, 0) clock_face = ring(pos = (0, 0, 0), axis = (0, 0, 1), thickness = 0.5, radius = 10, color = color.white) top_label = label(pos = (0, 10, 0), text =...
[ 6738, 5874, 1330, 1635, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2, 1806, 198, 2, 6018, 198, 2, 2777, 1456, 198, 14986, 62, 9769, 796, 15879, 7, 15, 11, 642, 11, 657, 8, 198, 14986, 62, 11374, 796, 15879, 7, 15, 11, 80...
2.400911
439
import unittest from google.appengine.ext import testbed, ndb from mock import patch from src.commons.big_query.copy_job_async.copy_job.copy_job_request \ import CopyJobRequest from src.commons.big_query.copy_job_async.copy_job_result \ import CopyJobResult from src.commons.big_query.copy_job_async.result_che...
[ 11748, 555, 715, 395, 198, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 1332, 3077, 11, 299, 9945, 198, 6738, 15290, 1330, 8529, 198, 198, 6738, 12351, 13, 9503, 684, 13, 14261, 62, 22766, 13, 30073, 62, 21858, 62, 292, 13361, ...
2.927632
304
""" Implements the gnomAD annotation using the gnomAD VCF. """ from __future__ import absolute_import from collections import OrderedDict import pysam from aliquotmaf.converters.builder import get_builder from .annotator import Annotator GNOMAD_SRC_TO_MAF = OrderedDict( AF_non_cancer_eas="gnomAD_non_cancer_EA...
[ 37811, 198, 3546, 1154, 902, 262, 19967, 296, 2885, 23025, 1262, 262, 19967, 296, 2885, 569, 22495, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, ...
2.18239
477
from django.views.generic import TemplateView, RedirectView from django.contrib.auth import login, logout, authenticate from django.shortcuts import render from main.permissions import *
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 11, 2297, 1060, 7680, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 17594, 11, 2604, 448, 11, 8323, 5344, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198...
3.711538
52
a = 50 print('\033[32m_\033[m' * a) print(f'\033[1;32m{"SISTEMA DE CONTAGEM ADAPTAVEL":=^{a}}\033[m') print('\033[32m-\033[m' * a) from time import sleep '''print('-='*16) print('\033[1;34mContagem de 1 ate 10 de 1 em 1:\033[m') for c in range(1, 11): print(f'\033[35m{c}', end=' ') #sleep(0.5) print('\033[3...
[ 64, 796, 2026, 198, 4798, 10786, 59, 44427, 58, 2624, 76, 62, 59, 44427, 58, 76, 6, 1635, 257, 8, 198, 4798, 7, 69, 6, 59, 44427, 58, 16, 26, 2624, 76, 4895, 50, 8808, 27630, 5550, 22904, 4760, 3620, 5984, 2969, 5603, 18697, 129...
1.946565
393
from flask import Flask, render_template, request from flask_restful import Resource, Api, reqparse import pandas as pd import ast import requests app = Flask(__name__) api = Api(app) api.add_resource(Citas, '/citas') # usar method tipo DELETE @app.route('/', methods=['GET', 'POST']) @app.route('/mostrarcitas...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 5949, 72, 11, 43089, 29572, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 6468, 198, 11748, 7007, 628, 198, 1324, 796, 4694...
2.734266
143
from sys import stdout, stdin m = 1000000007 dic = {0: (0, 1)} t = int(stdin.readline()) for tc in range(t): L, R = map(int, stdin.readline().split()) stdout.write("%d\n" % ((fib(R + 2)[0] - fib(L + 1)[0]) % m))
[ 6738, 25064, 1330, 14367, 448, 11, 14367, 259, 198, 198, 76, 796, 1802, 10535, 22, 198, 67, 291, 796, 1391, 15, 25, 357, 15, 11, 352, 38165, 628, 198, 198, 83, 796, 493, 7, 19282, 259, 13, 961, 1370, 28955, 198, 1640, 37096, 287, ...
2.113208
106
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # modulo_letra.py # # Copyright 2021 # Autor: Guilherme Silveira Mendes # ############################ # Código fonte em Python 3 ############################ #Todas funções abaixo fazem e retornam os padrões pedidos
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 198, 2, 953, 43348, 62, 1616, 430, 13, 9078, 198, 2, 198, 2, 15069, 33448, 198, 2, 5231, 273, 25, 196...
2.417391
115
""" General Setup and Imports """ get_ipython().run_line_magic('matplotlib', 'tk') import matplotlib.pyplot as plt from bluesky import RunEngine from bluesky.callbacks.best_effort import BestEffortCallback from bluesky.plans import * from bluesky.preprocessors import run_wrapper from bluesky.utils import install_nb_kic...
[ 37811, 198, 12218, 31122, 290, 1846, 3742, 198, 37811, 198, 1136, 62, 541, 7535, 22446, 5143, 62, 1370, 62, 32707, 10786, 6759, 29487, 8019, 3256, 705, 30488, 11537, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 673...
2.370276
3,149
# -*- coding: utf-8 -*- """ Created on Thu Feb 28 20:36:35 2019 @author: cristiano_001325 """ '''Interessa isso aqui para o arduino''' import serial from tkinter import * from tkinter import messagebox window = Tk() window.title("Programa pa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 3158, 2579, 1160, 25, 2623, 25, 2327, 13130, 201, 198, 201, 198, 31, 9800, 25, 1067, 396, 10115, 62, 405, 1485, 1495, 201, 198...
1.867495
966
# Generated by Django 3.2.11 on 2022-02-01 20:57 from django.conf import settings import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import uuid
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 1157, 319, 33160, 12, 2999, 12, 486, 1160, 25, 3553, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 198, 6738, 426...
3.058824
68
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ My idea is to have a comparable lib to numpy.add, .sum, etc. But it will work regardless of whether the x1, x2, ... are numpy or TablArray. Created on Sun May 17 18:17:59 2020 @author: chris """ import functools import numpy as np from .. import misc def _cast_ot...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 3666, 2126, 318, 284, 423, 257, 13975, 9195, 284, 299, 32152, 13, 2860, 11, 764, 16345, 11, 3503, 13,...
2.361053
1,900
import hashlib import time import weakref # use the math_data decorator to take any function and convert its output to # traced data # def math_data # decorator # convert any data to trace data with the data function # TODO def __coerce__(self, y) # TODO(buckbaskin): implement coerce with more data types ...
[ 11748, 12234, 8019, 198, 11748, 640, 198, 11748, 4939, 5420, 198, 198, 2, 779, 262, 10688, 62, 7890, 11705, 1352, 284, 1011, 597, 2163, 290, 10385, 663, 5072, 284, 220, 198, 2, 23246, 1366, 198, 2, 825, 10688, 62, 7890, 1303, 11705, ...
2.679487
546
import pathlib import sys from configparser import ConfigParser from xml.etree import ElementTree as et CONFIG_PATH: pathlib.Path = pathlib.Path(__file__).parent.parent.parent / "setup.cfg" COVERAGE_XML = pathlib.Path("./zdevelop/tests/_reports/cobertura.xml") def load_cfg() -> ConfigParser: """ loads libra...
[ 11748, 3108, 8019, 198, 11748, 25064, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 355, 2123, 628, 198, 10943, 16254, 62, 34219, 25, 3108, 8019, 13, 15235, 796, 3108, 8019, 13, 15235, 7...
2.57381
420
import sys print(2)
[ 198, 11748, 25064, 198, 4798, 7, 17, 8, 198 ]
2.333333
9
# # # File: eto.py # # import datetime from common_tools.redis_support_py3.construct_data_handlers_py3 import Generate_Handlers from common_tools.system_error_log_py3 import System_Error_Logging from common_tools.Pattern_tools_py3.builders.common_directors_py3 import construct_all_handlers from common_tools.file_ser...
[ 2, 198, 2, 198, 2, 9220, 25, 304, 1462, 13, 9078, 198, 2, 198, 2, 198, 198, 11748, 4818, 8079, 198, 6738, 2219, 62, 31391, 13, 445, 271, 62, 11284, 62, 9078, 18, 13, 41571, 62, 7890, 62, 4993, 8116, 62, 9078, 18, 1330, 2980, 3...
2.298217
617
# Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You may # obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 198, 2, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 198, 2, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
2.852506
1,756
"""Usage example for the function `abstract.get_input`. To be run after `continuous.py`, in same session. For example, within an `ipython` interactive session in this directory: run ../continuous.py run -i test_get_input.py """ from __future__ import print_function from tulip.abstract import get_input, find_discrete...
[ 37811, 28350, 1672, 329, 262, 2163, 4600, 397, 8709, 13, 1136, 62, 15414, 44646, 198, 198, 2514, 307, 1057, 706, 4600, 18487, 5623, 13, 9078, 47671, 287, 976, 6246, 13, 198, 1890, 1672, 11, 1626, 281, 4600, 541, 7535, 63, 14333, 6246,...
2.689737
419
import socketserver import sqlite3 import time conn = sqlite3.connect("Messages.db") c = conn.cursor() '''Handles connections and returns a data to clients.''' if __name__ == "__main__": host, port = "192.168.100.10", 5479 with socketserver.TCPServer((host, port), TCPhandler) as server: server.serv...
[ 11748, 37037, 18497, 198, 11748, 44161, 578, 18, 198, 11748, 640, 198, 198, 37043, 796, 44161, 578, 18, 13, 8443, 7203, 36479, 1095, 13, 9945, 4943, 198, 66, 796, 48260, 13, 66, 21471, 3419, 198, 198, 7061, 6, 12885, 829, 8787, 290, ...
2.752066
121
cities = [ 'Abie', 'Adams', 'Ainsworth', 'Albion', 'Alda', 'Alexandria', 'Allen', 'Alliance', 'Alma', 'Alvo', 'Amelia', 'Ames', 'Amherst', 'Angora', 'Anselmo', 'Ansley', 'Arapahoe', 'Arcadia', 'Archer', 'Arlington', 'Arnold', 'Arthu...
[ 66, 871, 796, 685, 198, 220, 220, 220, 705, 4826, 494, 3256, 198, 220, 220, 220, 705, 47462, 3256, 198, 220, 220, 220, 705, 32, 1040, 9268, 3256, 198, 220, 220, 220, 705, 2348, 65, 295, 3256, 198, 220, 220, 220, 705, 32, 18986, ...
1.824484
4,558
import collections import json import numbers from unitmeasure import dimension from unitmeasure.unit import Unit
[ 11748, 17268, 198, 11748, 33918, 198, 11748, 3146, 198, 198, 6738, 4326, 1326, 5015, 1330, 15793, 198, 6738, 4326, 1326, 5015, 13, 20850, 1330, 11801, 628 ]
4.461538
26
import functools import logging import os.path import re import textwrap from typing import AnyStr, Callable, List, Match, Optional, Union import pexpect from .app import App from .log import PexpectProcess from .unity import UNITY_SUMMARY_LINE_REGEX, TestSuite from .utils import to_bytes, to_list, to_str class Dut...
[ 11748, 1257, 310, 10141, 198, 11748, 18931, 198, 11748, 28686, 13, 6978, 198, 11748, 302, 198, 11748, 2420, 37150, 198, 6738, 19720, 1330, 4377, 13290, 11, 4889, 540, 11, 7343, 11, 13225, 11, 32233, 11, 4479, 198, 198, 11748, 613, 87, ...
2.242566
1,715
import torch class LogCoshError: """ Computes Logarithm of the hyperbolic cosine of the prediction error. Args: y_true: Tensor of Ground truth values. y_pred: Tensor of Predicted values. Returns: Tensor of Logcosh error """
[ 11748, 28034, 628, 198, 4871, 5972, 34, 3768, 12331, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3082, 1769, 5972, 283, 342, 76, 286, 262, 8718, 65, 4160, 8615, 500, 286, 262, 17724, 4049, 13, 628, 220, 220, 220, 943, 14542, ...
2.495413
109
from __future__ import with_statement from fabric.api import * import requests import pprint import boto import json """ Some defaults """ env.s3_bucket = 'minnpost.data' env.project_name = 'minnpost-cron' def s3_bucket(bucket): """ Select bucket """ env.s3_bucket = bucket def cache_google_spreadsheet_t...
[ 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 6738, 9664, 13, 15042, 1330, 1635, 198, 11748, 7007, 198, 11748, 279, 4798, 198, 11748, 275, 2069, 198, 11748, 33918, 628, 198, 37811, 198, 4366, 26235, 198, 37811, 198, 24330, 13, 82,...
2.51341
522
N = int(input()) r = float("inf") for i in range(1, N): A = i B = N - i a = 0 b = 0 while A >= 1: a += A % 10 A /= 10 while B >= 1: b += B % 10 B /= 10 if a + b <= r: r = a + b print(int(r))
[ 45, 796, 493, 7, 15414, 28955, 198, 81, 796, 12178, 7203, 10745, 4943, 198, 1640, 1312, 287, 2837, 7, 16, 11, 399, 2599, 198, 220, 220, 220, 317, 796, 1312, 198, 220, 220, 220, 347, 796, 399, 532, 1312, 198, 220, 220, 220, 257, ...
1.707792
154
from django.urls import path from . import views urlpatterns = [ path("", views.feed, name="feed"), path("post", views.post, name="post") ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7203, 1600, 5009, 13, 12363, 11, 1438, 2625, 12363, 12340, 198, 220, 220, 220, 3108, 7203, ...
2.727273
55
frase = str(input("Informe algo entre 1 a 10 caracteres: ")) print(fraseprincipal())
[ 8310, 589, 796, 965, 7, 15414, 7203, 818, 687, 68, 435, 2188, 920, 260, 352, 257, 838, 1097, 529, 68, 411, 25, 366, 4008, 201, 198, 201, 198, 4798, 7, 8310, 292, 538, 81, 1939, 8521, 28955 ]
2.351351
37
# encoding: utf-8 from parse import * from tabula import read_pdf from pdfrw import PdfReader, PdfWriter from pandas import to_numeric, concat from zipfile import ZipFile, ZIP_DEFLATED import os main()
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 6738, 21136, 1330, 1635, 198, 6738, 7400, 4712, 1330, 1100, 62, 12315, 198, 6738, 37124, 31653, 1330, 350, 7568, 33634, 11, 350, 7568, 34379, 198, 6738, 19798, 292, 1330, 284, 62, 77, 39223, 11, ...
3.044118
68
import bayes.NB as nb import numpy as np import random nb = nb.GaussNB() data = generate_dataset(1000) train_list, test_list = nb.split_data(data, weight=0.8) # print("Using %s rows for training and %s rows for testing" % (len(train_list), len(test_list))) group = nb.group_by_class(data, -1) # designating the last...
[ 11748, 15489, 274, 13, 32819, 355, 299, 65, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 628, 628, 198, 46803, 796, 299, 65, 13, 35389, 1046, 32819, 3419, 198, 7890, 796, 7716, 62, 19608, 292, 316, 7, 12825, 8, 198, 27432, ...
2.613636
220
from PyWeChatSpy import WeChatSpy from PyWeChatSpy.command import * from PyWeChatSpy.proto import spy_pb2 from lxml import etree import time import logging import os import shutil from queue import Queue import json import random from apscheduler.schedulers.background import BackgroundScheduler import re import uuid ...
[ 6738, 9485, 1135, 30820, 4561, 88, 1330, 775, 30820, 4561, 88, 198, 6738, 9485, 1135, 30820, 4561, 88, 13, 21812, 1330, 1635, 198, 6738, 9485, 1135, 30820, 4561, 88, 13, 1676, 1462, 1330, 13997, 62, 40842, 17, 198, 198, 6738, 300, 198...
2.196859
955
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema from .NotAvailable import NotAvailable from .Sellable import Sellable from .OrderCommitted import OrderCommitted from .Damaged import Damaged
[ 37811, 37148, 32329, 526, 15931, 198, 198, 6738, 22397, 42725, 1330, 7032, 11, 10011, 2611, 198, 6738, 22397, 42725, 13, 12102, 378, 1330, 1881, 5189, 198, 6738, 11485, 268, 5700, 1330, 1635, 198, 6738, 11485, 27530, 13, 14881, 27054, 261...
3.595506
89
# simulator for synthesizing SHA ILA without child-instructions. from mmio import mmiodev, NOP, RD, WR import sha as SHAFunc
[ 2, 35375, 329, 24983, 2890, 25630, 314, 13534, 1231, 1200, 12, 259, 7249, 507, 13, 198, 198, 6738, 8085, 952, 1330, 8085, 72, 1098, 85, 11, 399, 3185, 11, 31475, 11, 11342, 198, 11748, 427, 64, 355, 6006, 8579, 19524, 628 ]
3.097561
41
from airflow import DAG from datetime import datetime, timedelta from airflow.providers.postgres.operators.postgres import PostgresOperator from airflow.providers.mysql.operators.mysql import MySqlOperator from airflow.providers.postgres.hooks.postgres import PostgresHook from airflow.providers.mysql.hooks.mysql import...
[ 6738, 45771, 1330, 360, 4760, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 45771, 13, 15234, 4157, 13, 7353, 34239, 13, 3575, 2024, 13, 7353, 34239, 1330, 2947, 34239, 18843, 1352, 198, 6738, 45771, 13, 15234, 4...
2.344642
4,834
# BSD 3-Clause License # # Copyright (c) 2021., Redis Labs Modules # All rights reserved. # import os import redis from redisbench_admin.run.metrics import collect_redis_metrics from redistimeseries.client import Client from redisbench_admin.run_remote.run_remote import export_redis_metrics
[ 2, 220, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 33448, 1539, 2297, 271, 23500, 3401, 5028, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 198, 11748, 28686, 198, 198, 11748, 2266, 271, 198, 6738...
3.104167
96
# -*- coding: utf8 -*- import telebot import os print("Coded and designed by Krylov Vladimir") bot = telebot.TeleBot('your token here') keyboard1 = telebot.types.ReplyKeyboardMarkup() keyboard1.row('Загрузить файл', 'О проекте', 'Просмотр файлов', 'О компьютере') @bot.message_handler(commands=['start']) @bo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 201, 198, 11748, 5735, 13645, 201, 198, 11748, 28686, 201, 198, 201, 198, 4798, 7203, 34, 9043, 290, 3562, 416, 41662, 27086, 14840, 4943, 201, 198, 201, 198, 13645, 796, 5735, 1...
2.021505
186
from .bias_calculation import * from .utils import *
[ 6738, 764, 65, 4448, 62, 9948, 14902, 1330, 1635, 198, 6738, 764, 26791, 1330, 1635 ]
3.466667
15
#!/usr/bin/env python # coding=utf-8 ''' @Author: wjm @Date: 2020-06-05 11:36:25 @LastEditTime: 2020-06-07 09:23:40 @Description: path_size = 96, batch_size = 32, epoch = 1000, L1, the RCAB block is the same as RCAN. ''' import os import torch.nn as nn import torch.optim as optim from model.base_net import * from torch...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 7061, 6, 198, 31, 13838, 25, 266, 73, 76, 198, 31, 10430, 25, 12131, 12, 3312, 12, 2713, 1367, 25, 2623, 25, 1495, 198, 31, 5956, 18378, 7575, 2...
2.867925
159
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
[ 2, 15069, 2177, 12, 7908, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 198, 2, 743, 407, 779, ...
2.652452
1,407
from legacy.crawler import crawler import os url = "https://www.lookingglasscyber.com" output_dir = os.path.join('.', 'data', 'lookingglasscyber') headers = { 'Accept':'application/json, text/javascript, */*; q=0.01', 'Accept-Encoding':'*', 'Accept-Language':'zh-CN,zh;q=0.8', 'Connectio...
[ 6738, 10655, 13, 66, 39464, 1330, 27784, 1754, 198, 11748, 28686, 198, 198, 6371, 796, 366, 5450, 1378, 2503, 13, 11534, 20721, 948, 527, 13, 785, 1, 198, 22915, 62, 15908, 796, 28686, 13, 6978, 13, 22179, 10786, 2637, 11, 705, 7890, ...
2.202346
341
__version__ = (5, 4, 114)
[ 834, 9641, 834, 796, 357, 20, 11, 604, 11, 17342, 8, 628 ]
2.25
12
from nose.tools import eq_ from ..protection import Protection from ..timestamp import Timestamp from ..unavailable import Unavailable
[ 6738, 9686, 13, 31391, 1330, 37430, 62, 198, 198, 6738, 11485, 42846, 1330, 9985, 198, 6738, 11485, 16514, 27823, 1330, 5045, 27823, 198, 6738, 11485, 403, 15182, 1330, 791, 15182, 628, 220, 220, 220, 220, 628 ]
3.972222
36
from . import robot_model from . import urdf_model from . import urdf_joint from . import urdf_link
[ 6738, 764, 1330, 9379, 62, 19849, 198, 6738, 764, 1330, 220, 2799, 69, 62, 19849, 198, 6738, 764, 1330, 220, 2799, 69, 62, 73, 1563, 198, 6738, 764, 1330, 220, 2799, 69, 62, 8726 ]
2.911765
34