content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from random import shuffle import random import math import string import sys import os import string import pdb eng_punctuation = string.punctuation + '\xe2\x80\x9c' + '\xe2\x80\x9d' hindi_punctuation = ['\xe0\xa5\xa4'] #danda # words like don't are split into don ' t # This version doesn't do anything about punct...
[ 6738, 4738, 1330, 36273, 198, 11748, 4738, 198, 11748, 10688, 198, 11748, 4731, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4731, 198, 11748, 279, 9945, 198, 198, 1516, 62, 79, 16260, 2288, 796, 4731, 13, 79, 16260, 2288, 1343, 70...
2.329808
1,513
# Solution A # Solution B
[ 2, 28186, 317, 628, 198, 2, 28186, 347, 198 ]
3.111111
9
import asyncio import logging import socket logger = logging.getLogger(__name__) all_endpoints = [] def reset_pypeman_endpoints(): """ clears book keeping of all endpoints Can be useful for unit testing. """ all_endpoints.clear() from pypeman.helpers import lazyload # noqa: E402 wrap = l...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 17802, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 439, 62, 437, 13033, 796, 17635, 628, 198, 4299, 13259, 62, 79, 4464, 8463, 62, 437, 1...
2.620879
182
import networkx as nx import matplotlib.pyplot as plt G_fb = nx.read_edgelist("facebook_combined.txt", create_using = nx.Graph(), nodetype=int) print(nx.info(G_fb)) # if need drawing ps = nx.spring_layout(G_fb) nx.draw(G_fb, ps, with_labels = False, node_size = 5) plt.show() # ps = nx.spring_layout(G_fb) # betCent =...
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 38, 62, 21855, 796, 299, 87, 13, 961, 62, 276, 25280, 396, 7203, 19024, 62, 24011, 1389, 13, 14116, 1600, 2251, 62, 3500, 796, ...
2.190939
309
from pyqtgraph.Qt import QtGui, QtCore import numpy as np import pyqtgraph as pg import random # Create the main application instance pg.setConfigOption('background', 'w') app = pg.mkQApp() view = pg.PlotWidget() view.resize(800, 600) view.setWindowTitle('Scatter plot using pyqtgraph with PyQT5') view.setAspectLocked...
[ 6738, 12972, 80, 25297, 1470, 13, 48, 83, 1330, 33734, 8205, 72, 11, 33734, 14055, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 80, 25297, 1470, 355, 23241, 198, 11748, 4738, 198, 198, 2, 13610, 262, 1388, 3586, 4554, 198, 6...
2.604113
389
#!/usr/bin/env python __author__ = 'Tony Beltramelli - www.tonybeltramelli.com' import tensorflow as tf sess = tf.Session(config=tf.ConfigProto(log_device_placement=True)) import sys from classes.dataset.Generator import * from classes.model.pix2code import * if __name__ == "__main__": argv = sys.argv[1:] ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 834, 9800, 834, 796, 705, 29387, 16734, 28073, 15516, 532, 7324, 13, 1122, 88, 37976, 28073, 15516, 13, 785, 6, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 82, 408, 796, 48700...
2.5
342
# Copyright 2017 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. """Create function which removes the specified device policies from ChromeDeviceSettingsProto. This function is primarily intended to be used for the impleme...
[ 2, 15069, 2177, 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, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 37811...
3.140575
313
import math import os import shutil import torch from collections import OrderedDict
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 11748, 28034, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 628, 628, 198 ]
3.75
24
import json from logging import getLogger import attr from sqlalchemy import Text, TypeDecorator, create_engine from sqlalchemy.orm import sessionmaker logger = getLogger(__name__) @attr.s(auto_attribs=True)
[ 11748, 33918, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 198, 11748, 708, 81, 198, 6738, 44161, 282, 26599, 1330, 8255, 11, 5994, 10707, 273, 1352, 11, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, ...
3.042857
70
# This modules contains definitions used in Exercise Files from typing import Any def print_with_title( output: Any, title: str = '', linebreaks_before: int = 2, linebreaks_after: int = 2, put_stars_after: bool = True, ) -> None: """ Print linebreak-padded output with a...
[ 2, 770, 13103, 4909, 17336, 973, 287, 32900, 13283, 198, 6738, 19720, 1330, 4377, 628, 198, 4299, 3601, 62, 4480, 62, 7839, 7, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 25, 4377, 11, 198, 220, 220, 220, 220, 220, 220, 220, 367...
2.367273
275
'''MobileNetV3 in PyTorch. See the paper "Inverted Residuals and Linear Bottlenecks: Mobile Networks for Classification, Detection and Segmentation" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init import os import sys sys.path.append(".") from meta_ut...
[ 7061, 6, 17066, 7934, 53, 18, 287, 9485, 15884, 354, 13, 198, 198, 6214, 262, 3348, 366, 818, 13658, 1874, 312, 723, 82, 290, 44800, 14835, 11925, 721, 591, 25, 198, 17066, 27862, 329, 40984, 11, 46254, 290, 1001, 5154, 341, 1, 329,...
2.743655
394
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 4...
2.580569
2,110
""" This package is used to simulate RPi.GPIO library during development or if GPIO are not available. """
[ 37811, 198, 1212, 5301, 318, 973, 284, 29308, 25812, 72, 13, 16960, 9399, 5888, 1141, 2478, 393, 611, 50143, 389, 407, 1695, 13, 198, 37811 ]
4.24
25
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 18 15:34:25 2018 @author: philld """ import requests import json import re specfile="../../docs/spec/src/info_openapi.json" #docsfile="../../docs/input/web_api.cm" docsfile="/home/philld/reps/dhis2-docs/src/commonmark/en/content/developer/web-api...
[ 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, 41972, 319, 3300, 2758, 1248, 1315, 25, 2682, 25, 1495, 2864, 198, 198, 31, 9800, 25, 872, 359, 67, ...
2.417625
261
from __future__ import print_function from __future__ import absolute_import from __future__ import division import rhinoscriptsyntax as rs from compas_rhino.geometry import RhinoCurve __all__ = [ 'RhinoCurve' ]
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 9529, 11996, 6519, 1837, 41641, 355, 44608, 198, 6738, 552, 292, 62, 17179, 2...
3.235294
68
from rest_framework import serializers from .models import CaseDetail class CaseDetailSerializer(serializers.ModelSerializer): """CaseDetailSerializer use the CaseDetail Model"""
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 764, 27530, 1330, 8913, 11242, 603, 628, 198, 4871, 8913, 11242, 603, 32634, 7509, 7, 46911, 11341, 13, 17633, 32634, 7509, 2599, 628, 220, 220, 220, 37227, 20448, 11242, 603, 3...
3.74
50
from __future__ import unicode_literals from requests import auth
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 7007, 1330, 6284, 628, 628 ]
3.888889
18
from pyrocko import moment_tensor as mtm magnitude = 5.4 exp = mtm.magnitude_to_moment(magnitude) # convert the mag to moment in [Nm] # init pyrocko moment tensor m = mtm.MomentTensor( mnn = 0.04*exp, mee = 0.6*exp, mdd = -0.63*exp, mne = 0.04*exp, mnd = 0.5*exp, med = 0.21*exp) print(m) #...
[ 6738, 12972, 10823, 78, 1330, 2589, 62, 83, 22854, 355, 285, 17209, 198, 198, 76, 4660, 3984, 796, 642, 13, 19, 198, 198, 11201, 796, 285, 17209, 13, 76, 4660, 3984, 62, 1462, 62, 32542, 298, 7, 76, 4660, 3984, 8, 220, 1303, 10385...
2.066265
166
# -*- coding: utf-8 -*- """Falcon app used for testing.""" # standard library import logging from typing import Any # third-party import falcon # first-party from falcon_provider_logger.middleware import LoggerMiddleware class LoggerCustomLoggerResource: """Logger middleware testing resource.""" log = None...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 41129, 1102, 598, 973, 329, 4856, 526, 15931, 198, 2, 3210, 5888, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 198, 198, 2, 2368, 12, 10608, 198, 11748, 24215...
2.3821
581
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Poshan Didi! """ import logging import logging.handlers import beneficiary_bot import nurse_bot from telegram.ext import Updater, CommandHandler, MessageHandler, Filters from simple_settings import settings from registration import registration_conversation # Enable...
[ 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, 47, 3768, 272, 7731, 72, 0, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 19...
2.62129
1,550
''' Policy and intrinsic reward models. ''' import numpy as np import tensorflow as tf from curiosity.models.model_building_blocks import ConvNetwithBypasses from curiosity.models import explicit_future_prediction_base as fp_base from curiosity.models import jerk_models import distutils.version use_tf1 = distutils.ve...
[ 7061, 6, 198, 36727, 290, 28327, 6721, 4981, 13, 198, 7061, 6, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 20136, 13, 27530, 13, 19849, 62, 16894, 62, 27372, 1330, 34872, 7934, 4480, ...
1.873996
4,730
print("part1包被导入了~")
[ 4798, 7203, 3911, 16, 44293, 227, 164, 95, 104, 43380, 120, 17739, 98, 12859, 228, 93, 4943 ]
1.176471
17
from dictdiffer import diff from sqlalchemy import Column, Integer, String from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.ext.declarative import declarative_base Base = declarative_base()
[ 6738, 8633, 26069, 263, 1330, 814, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 198, 6738, 44161, 282, 26599, 13, 38969, 478, 82, 13, 7353, 34239, 13976, 1330, 19449, 33, 198, 6738, 44161, 282, 26599, 13, 2302, 13, ...
3.409836
61
import komand from .schema import DecodeInput, DecodeOutput import base64
[ 11748, 479, 296, 392, 198, 6738, 764, 15952, 2611, 1330, 4280, 1098, 20560, 11, 4280, 1098, 26410, 198, 11748, 2779, 2414, 628 ]
3.409091
22
import os import shutil import json import time import cv2 import numpy as np import PIL if __name__ == '__main__' : erode_all(True)
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 33918, 198, 11748, 640, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 350, 4146, 220, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 6, 105...
2.622642
53
import sys import unittest import re from operator import itemgetter import argparse import traceback # print arg if __name__=='__main__': codes = [] for line in sys.stdin: codes.append(line.strip()) print(part_one(codes)) print(part_two(codes))
[ 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 302, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 11748, 1822, 29572, 198, 11748, 12854, 1891, 628, 198, 2, 220, 220, 220, 3601, 1822, 198, 198, 361, 11593, 3672, 834, 855, 6, 834,...
2.628571
105
from collections import defaultdict # name list obtained from: https://www.ssa.gov/oact/babynames/decades/century.html # accessed on Nov 6th, 2018 if __name__ == '__main__': lex = PronounLexicon() all_words = lex.all_words() in_file_path = "data/CBTest/data/cbt_train.txt" all_lens = [] all_gaps = ...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 2, 1438, 1351, 6492, 422, 25, 3740, 1378, 2503, 13, 824, 64, 13, 9567, 14, 78, 529, 14, 65, 397, 2047, 1047, 14, 12501, 2367, 14, 14792, 13, 6494, 198, 2, 17535, 319, 5267, 718, 400, 11, ...
2.124783
577
# Generated by Django 3.2.2 on 2021-06-29 09:49 import django.core.validators from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 17, 319, 33448, 12, 3312, 12, 1959, 7769, 25, 2920, 198, 198, 11748, 42625, 14208, 13, 7295, 13, 12102, 2024, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.95122
41
# Autogenerated file. from .client import ButtonClient # type: ignore
[ 2, 5231, 519, 877, 515, 2393, 13, 198, 6738, 764, 16366, 1330, 20969, 11792, 1303, 2099, 25, 8856, 198 ]
3.684211
19
import yaml import os from pathlib import Path from django.conf import settings from django.core.management.base import BaseCommand from apps.findings import models
[ 11748, 331, 43695, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 6725, 13, 19796, 654, 1330, ...
3.952381
42
import sys from django.test import TestCase error_while_importing = None try: from easymode import * from easymode.admin import * from easymode.admin.forms import * from easymode.admin.models import * from easymode.debug import * from easymode.i18n import * from easymode.i18n.admin import ...
[ 11748, 25064, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 18224, 62, 4514, 62, 11748, 278, 796, 6045, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 2562, 14171, 1330, 1635, 198, 220, 220, 220, 422, 2562, 14171, 13,...
2.875312
401
from collections import Counter
[ 6738, 17268, 1330, 15034, 198 ]
6.4
5
from starlette.requests import Request from typing import List, Optional from viewmodels.shared.viewmodel import ViewModelBase from services import episode_service from data.episode import Episode
[ 6738, 3491, 21348, 13, 8897, 3558, 1330, 19390, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 1570, 27530, 13, 28710, 13, 1177, 19849, 1330, 3582, 17633, 14881, 198, 198, 6738, 2594, 1330, 4471, 62, 15271, 198, 6738, 1366, 13...
4.369565
46
#!/usr/bin/env python3 """ Wal Steam ======================================== oooo oooo . `888 .8P' .o8 888 d8' .ooooo. .o888oo .oooo. 88888[ d88' `88b 888 `P )88b 888`88b. 888 888 888 .oP"888 888 `88b. 888 888 888 . d8( 888 o888o o888o `Y8bod8P' ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 21902, 9094, 198, 198, 10052, 2559, 198, 13321, 220, 220, 220, 267, 34160, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 63, 28011, ...
2.213861
1,515
import requests def fetch(*, url, headers): """ Send a GET request and return response as Python object """ response = requests.get(url, headers=headers) return response.json()
[ 11748, 7007, 628, 198, 4299, 21207, 7, 25666, 19016, 11, 24697, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16290, 257, 17151, 2581, 290, 1441, 2882, 355, 11361, 2134, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2882, 796,...
3.225806
62
import torch from shapely.geometry import Polygon
[ 11748, 28034, 198, 198, 6738, 5485, 306, 13, 469, 15748, 1330, 12280, 14520, 628, 628, 628, 628 ]
3.411765
17
# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 Blue Cheetah Analog Design Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 15069, 13130, 4518, 2580, 316, 993, 50088, 8495, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
3.046784
342
#!/usr/bin/env python3 import argparse import re import sys import requests
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 7007, 198 ]
3.304348
23
#!/usr/bin/env python3 """ Ensure that every security group tagged with “AllowCloudFlareIngress” has permissions for every public CloudFlare netblock """ import sys import boto3 import requests from botocore.exceptions import ClientError EC2_CLIENT = boto3.client("ec2") CLOUDFLARE_IPV4 = requests.get("https://www.c...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 4834, 19532, 326, 790, 2324, 1448, 30509, 351, 564, 250, 35265, 18839, 7414, 533, 27682, 601, 447, 251, 468, 198, 525, 8481, 329, 790, 1171, 10130, 7414, 533, 2010, 996...
2.828829
222
from piccolo.apps.migrations.auto import MigrationManager from piccolo.columns.base import OnDelete, OnUpdate from piccolo.columns.defaults.timestamp import TimestampNow from piccolo.table import Table ID = "2020-10-04T21:27:16" VERSION = "0.13.4"
[ 6738, 8301, 45745, 13, 18211, 13, 76, 3692, 602, 13, 23736, 1330, 36991, 13511, 198, 6738, 8301, 45745, 13, 28665, 82, 13, 8692, 1330, 1550, 38727, 11, 1550, 10260, 198, 6738, 8301, 45745, 13, 28665, 82, 13, 12286, 82, 13, 16514, 2782...
3.048193
83
# -*- coding: utf-8 -*- from math import ceil from .SolarMonth import SolarMonth class SolarSeason: """ 阳历季度 """ MONTH_COUNT = 3 @staticmethod @staticmethod def getIndex(self): """ 获取当月是第几季度 :return: 季度序号,从1开始 """ return int(ceil(self.__month * ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 10688, 1330, 2906, 346, 198, 198, 6738, 764, 38825, 31948, 1330, 12347, 31948, 628, 198, 4871, 12347, 18960, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 162...
1.634615
884
# Generated by Django 2.0.5 on 2018-10-24 19:02 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 2864, 12, 940, 12, 1731, 678, 25, 2999, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- line endings: unix -*- __author__ = 'quixadhal' import os import sys import time import sysutils import log_system import db_system logger = log_system.init_logging() sys.path.append(os.getcwd()) if __name__ == '__main__': logger.boot('System booting.') snapshot = sysutils.ResourceSn...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 1627, 38168, 25, 555, 844, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 421, 844, 324, 14201, 6, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 25064...
2.781711
339
import pandas as pa import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import Imputer,LabelEncoder,OneHotEncoder from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.model_selection import cross_val_score #%% datset=pa.read_cs...
[ 11748, 19798, 292, 355, 14187, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 220, 220, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1846, 10549, 11, 33986, 27195, 12342, 11, 3198, 21...
2.534979
243
#!/usr/bin/env python import numpy as np if __name__ == "__main__": import sys data = load_data(sys.argv[1]) print("data: %s, %s" % (data, str(data.shape)))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 299, 32152, 355, 45941, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 1366, 796, 3440, 62, 7890, ...
2.293333
75
# flake8: noqa from catalyst_rl.dl import AlchemyRunner
[ 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 31357, 62, 45895, 13, 25404, 1330, 43987, 49493, 198 ]
3.111111
18
# -*- coding: utf-8 -*- """Python interface to GnuCash documents""" from . import metadata __version__ = metadata.version __author__ = metadata.authors[0] __license__ = metadata.license __copyright__ = metadata.copyright from ._common import ( GncNoActiveSession, GnucashException, GncValidationError, GncImbal...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 37906, 7071, 284, 18509, 84, 35361, 4963, 37811, 198, 6738, 764, 1330, 20150, 198, 198, 834, 9641, 834, 796, 20150, 13, 9641, 198, 834, 9800, 834, 796, 20150, 13,...
3.139344
244
from datetime import datetime import numpy as np import time from pyrealtime.layer import ThreadLayer, TransformMixin, ProducerMixin, EncoderMixin
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 198, 6738, 12972, 5305, 2435, 13, 29289, 1330, 14122, 49925, 11, 26981, 35608, 259, 11, 30436, 35608, 259, 11, 14711, 12342, 35608, 259, ...
3.619048
42
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 20 12:17:30 2021 @author: jorge """
[ 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, 41972, 319, 7031, 5267, 1160, 1105, 25, 1558, 25, 1270, 33448, 198, 198, 31, 9800, 25, 474, 3643, 198...
2.276596
47
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2019 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 2235, 198, 2, 10551, 79, 532, 15069, 357, 34, 8, 327, 16412, 11, 13130, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 20101, 34, 8267, 12, 33, 59...
2.327105
3,479
n = int(input()) F = [0]*(n+1) F[0], F[1] = 0, 1 for i in range(2, n+1): F[i] = F[i-1] + F[i-2] print(F[n])
[ 77, 796, 493, 7, 15414, 28955, 198, 37, 796, 685, 15, 60, 9, 7, 77, 10, 16, 8, 198, 37, 58, 15, 4357, 376, 58, 16, 60, 796, 657, 11, 352, 198, 198, 1640, 1312, 287, 2837, 7, 17, 11, 299, 10, 16, 2599, 198, 220, 220, 220, ...
1.527027
74
from typing import List, Optional import numpy as np import torch import torch.nn as nn from gluonts.core.component import validated from gluonts.dataset.field_names import FieldName from gluonts.torch.util import copy_parameters from gluonts.torch.model.predictor import PyTorchPredictor from gluonts.model.predictor ...
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 1278, 84, 756, 82, 13, 7295, 13, 42895, 1330, 31031, 198, 6738, 1278, 84, 756,...
2.99187
246
import numpy as np from scipy.io import loadmat import os
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 952, 1330, 3440, 6759, 198, 11748, 28686 ]
3.166667
18
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v4.proto.resources import income_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2 from google.ads.google_ads.v4.proto.services import income_range_view_ser...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 6738, 23645, 13, 5643, 13, 13297, 62, 5643, 13, 85, 19, 13, 1676, 1462, 13, 37540, 1330, 3739, 62, 9521, ...
2.947467
533
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import wagtail.images.models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 266, 363, 13199, 13, 17566, 1...
2.956522
46
''' Make two dictionaries: phr2sg_id and sg_id2phr phr2sg_id["nice work']==6152 phr2sg_id["nicely done']==6152 phr2sg_id["nice going']==6152 sg_id2phr[6152]=="Well done." ''' import json, os import operator import pickle from hparams import hp import re from tqdm import tqdm if __name__ == "__main__": print("D...
[ 7061, 6, 198, 12050, 734, 48589, 3166, 25, 7607, 17, 45213, 62, 312, 290, 264, 70, 62, 312, 17, 746, 81, 198, 198, 746, 81, 17, 45213, 62, 312, 14692, 44460, 670, 20520, 855, 21, 17827, 198, 746, 81, 17, 45213, 62, 312, 14692, 4...
1.809721
967
"""Tareas de Celery.""" # Django from django.conf import settings from django.template.loader import render_to_string from django.utils import timezone from django.core.mail import EmailMultiAlternatives # Utilities import jwt from datetime import timedelta # Celery from celery.decorators import task, periodic_task ...
[ 37811, 51, 533, 292, 390, 15248, 1924, 526, 15931, 198, 2, 37770, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 6738, 42625, 14208, 13, 26791, 1330, ...
2.545101
1,541
#!/usr/bin/env python # -*- coding: utf-8 -*- # Balanced Brackets # # Write a function that accepts a string consisting entiring of brackets # (`[](){}`) and returns whether it is balanced. Every "opening" bracket must # be followed by a closing bracket of the same type. There can also be nested # brackets, which...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 38984, 1709, 25180, 198, 2, 198, 2, 220, 19430, 257, 2163, 326, 18178, 257, 4731, 17747, 920, 3428, 286,...
2.647368
190
from django import forms from django.conf import settings from django.core import validators from django.db import models from django.utils import six, timezone from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ import django from .base import aes_pad_key, armor, dearm...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 1330, 4938, 2024, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 2237, 11, 640, ...
2.853175
252
import os import click from .constants import VALID_CONFIG_DIR_FILE_EXTENSIONS from .utils import get_config_dir @click.command( name="ls", short_help="List configured sessions in :meth:`tmuxp.cli.utils.get_config_dir`.", )
[ 11748, 28686, 198, 198, 11748, 3904, 198, 198, 6738, 764, 9979, 1187, 1330, 26173, 2389, 62, 10943, 16254, 62, 34720, 62, 25664, 62, 13918, 16938, 11053, 198, 6738, 764, 26791, 1330, 651, 62, 11250, 62, 15908, 628, 198, 31, 12976, 13, ...
2.744186
86
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.examplePlugin, name='examplePlugin'), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 628, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 5009, 13, 20688, 37233, 11, 1438, 11639, 20688, 37233, 3380...
2.911111
45
# -*- coding: utf-8 -*- """ Test resemblance of HM and RS trees Created on Sun Jun 14 00:33:52 2015 @author: hoseung """ # Load HM from astropy.io import fits from astropy.table import Table import tree wdir = '/home/hoseung/Work/data/AGN2/' data = fits.getdata(wdir + "halo/TMtree.fits", 1) hmt = Table(data) #%% i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14402, 28204, 286, 25904, 290, 19340, 7150, 198, 198, 41972, 319, 3825, 7653, 1478, 3571, 25, 2091, 25, 4309, 1853, 198, 198, 31, 9800, 25, 31489, 2150, 198,...
2.013038
767
from builtins import setattr, getattr from fractions import Fraction import math from multiprocessing import Process, Manager from warnings import warn, showwarning try: from sympy import * import numpy as np from scipy.stats import norm, beta, gamma, expon from scipy.linalg import pascal from scip...
[ 6738, 3170, 1040, 1330, 900, 35226, 11, 651, 35226, 198, 6738, 49876, 1330, 376, 7861, 198, 11748, 10688, 198, 6738, 18540, 305, 919, 278, 1330, 10854, 11, 9142, 198, 6738, 14601, 1330, 9828, 11, 905, 43917, 198, 198, 28311, 25, 198, ...
2.102615
21,225
import os import numpy as np import cv2 from module.lightCNN_model_in_numpy import LightCNN9_in_numpy def get_net(path): ''' be used to get class net :param para: :return: ''' print('Loading network...') cfg = np.load(path, allow_pickle=True) cfg = cfg.item() net = LightCNN9_in_num...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 6738, 8265, 13, 2971, 18474, 62, 19849, 62, 259, 62, 77, 32152, 1330, 4401, 18474, 24, 62, 259, 62, 77, 32152, 198, 198, 4299, 651, 62, 3262, 7, ...
2.299401
167
class ChildNodeIterator: '''Iterates over a Humon node's children.''' def __next__(self): '''Iterate.''' if self.idx < self.node.numChildren: res = self.node.getChild(self.idx) self.idx += 1 return res raise StopIteration
[ 4871, 5932, 19667, 37787, 25, 198, 220, 220, 220, 705, 7061, 29993, 689, 625, 257, 11054, 261, 10139, 338, 1751, 2637, 7061, 628, 628, 220, 220, 220, 825, 11593, 19545, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705,...
2.092857
140
''' Code of testing ''' import argparse import logging import os import sys import csv import time import torch import numpy as np import pandas as pd import torch.nn as nn from tqdm import tqdm from pycm import * import matplotlib import matplotlib.pyplot as plt from dataset import BasicDataset_OUT from torch.utils.d...
[ 198, 7061, 6, 198, 10669, 286, 4856, 198, 7061, 6, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11...
2.032505
2,615
from googlesearch import search query = "fastapi" for i in search(query, tld="co.in", num=10, stop=10, pause=2): print(i)
[ 6738, 467, 519, 829, 3679, 1330, 2989, 220, 198, 198, 22766, 796, 366, 7217, 15042, 1, 198, 198, 1640, 1312, 287, 2989, 7, 22766, 11, 256, 335, 2625, 1073, 13, 259, 1600, 997, 28, 940, 11, 2245, 28, 940, 11, 14985, 28, 17, 2599, ...
2.461538
52
# Created on 5/21/20 # Author: Ari Liloia and Michael Wehar
[ 2, 15622, 319, 642, 14, 2481, 14, 1238, 198, 2, 6434, 25, 6069, 16342, 78, 544, 290, 3899, 775, 9869, 198 ]
2.857143
21
# -*- coding: utf-8 -*- """ Created on Sun Jan 17 04:01:48 2021 @author: Adham """ from .Model import model import numpy as np import pickle
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 2365, 1596, 8702, 25, 486, 25, 2780, 33448, 198, 198, 31, 9800, 25, 1215, 2763, 198, 37811, 198, 6738, 764, 17633, 1330, 2746, 220, 198, ...
2.679245
53
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628 ]
3.333333
6
from pulp import * if __name__ == "main": main()
[ 6738, 38341, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 366, 12417, 1298, 198, 220, 220, 220, 1388, 3419 ]
2.65
20
import unittest import os import tempfile from nose.tools import \ assert_equal from bento import PackageDescription from bento.core.package import file_list, static_representation from bento.core.meta import PackageMetadata from bento.core.pkg_objects import DataFiles from bento.core.node import Node
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 198, 6738, 9686, 13, 31391, 1330, 3467, 198, 220, 220, 220, 6818, 62, 40496, 198, 198, 6738, 17157, 78, 1330, 15717, 11828, 198, 6738, 17157, 78, 13, 7295, 13, 264...
3.551724
87
import pandas as pd import math from sklearn.ensemble import RandomForestRegressor trainInput = pd.read_excel("FPL_Season_Data_Only_Inputs_Shuffled2.xlsx") trainInput = trainInput.drop(trainInput.columns[0], axis=1) trainOutput = pd.read_excel("FPL_Season_Data_Only_Outputs_Shuffled2.xlsx") trainOutput = trainOu...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 10688, 201, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 14534, 34605, 8081, 44292, 201, 198, 201, 198, 27432, 20560, 796, 279, 67, 13, 961, 62, 1069, 5276, 7203, 5837, 43, 62, 18960...
2.571185
1,173
import re import os from numpy.lib.function_base import insert from utils import * if __name__ =='__main__': pass #load_adfa_Attack_files("./ADFA-LD/Attack_Data_Master/")
[ 11748, 302, 198, 11748, 28686, 198, 198, 6738, 299, 32152, 13, 8019, 13, 8818, 62, 8692, 1330, 7550, 198, 6738, 3384, 4487, 1330, 1635, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 6, 834, 12417, 834, 10354, 198, 220, ...
2.48
75
import sublime, sublime_plugin import json import os import platform import subprocess if platform.system() == 'Darwin': os_name = 'osx' elif platform.system() == 'Windows': os_name = 'windows' else: os_name = 'linux' # /usr/local/lib/node_modules/lebab/bin/index.js BIN_PATH = os.path.join( sublime....
[ 11748, 41674, 11, 41674, 62, 33803, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 3859, 198, 11748, 850, 14681, 198, 198, 361, 3859, 13, 10057, 3419, 6624, 705, 32708, 5404, 10354, 198, 220, 220, 220, 28686, 62, 3672, 796, 705, 418,...
2.518293
164
import io import os from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) # Package meta-data. NAME = 'chantilly' DESCRIPTION = 'Deployment tool for online machine learning models' LONG_DESCRIPTION_CONTENT_TYPE = 'text/markdown' URL = 'https://github.com/creme-ml/chantilly' EMA...
[ 11748, 33245, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 1456, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 2, 15717...
2.252183
916
import warnings from marshmallow.warnings import ChangedInMarshmallow3Warning from argschema import ArgSchema from argschema.fields import ( InputDir, InputFile, Float, Int, OutputFile, Str, Boolean) warnings.simplefilter( action='ignore', category=ChangedInMarshmallow3Warning)
[ 11748, 14601, 198, 6738, 22397, 42725, 13, 40539, 654, 1330, 32068, 818, 41984, 42725, 18, 20361, 198, 6738, 1822, 15952, 2611, 1330, 20559, 27054, 2611, 198, 6738, 1822, 15952, 2611, 13, 25747, 1330, 357, 198, 220, 220, 220, 220, 220, ...
3
104
import os basedir = os.path.abspath(os.path.dirname(__file__))
[ 11748, 28686, 198, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 628, 198 ]
2.357143
28
import tensorflow as tf import numpy as np
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.307692
13
from django.shortcuts import render, redirect from django.urls import reverse from django.http import JsonResponse from django.conf import settings from django.contrib import messages from django.core.mail import EmailMessage from django.template.loader import render_to_string from hknweb.events.views.aggregate_displa...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, ...
3.289683
252
# -*- coding: utf-8 -*- __author__ = 'Marcin Usielski' __copyright__ = 'Copyright (C) 2020, Nokia' __email__ = 'marcin.usielski@nokia.com' import time from moler.events.unix.ping_no_response import PingNoResponse from moler.util.moler_test import MolerTest import datetime
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 22697, 259, 4021, 72, 1424, 4106, 6, 198, 834, 22163, 4766, 834, 796, 705, 15269, 357, 34, 8, 12131, 11, 26182, 6, 198, 834, 12888, 83...
2.647619
105
""" Test that the 'gui' displays long lines/names correctly without overruns. """ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import PExpectTest
[ 37811, 198, 14402, 326, 262, 705, 48317, 6, 11298, 890, 3951, 14, 14933, 9380, 1231, 33713, 82, 13, 198, 37811, 198, 198, 11748, 32660, 9945, 198, 6738, 32660, 67, 1443, 84, 578, 13, 9288, 13, 12501, 273, 2024, 1330, 1635, 198, 6738, ...
2.986667
75
import torch from torch.utils.data.sampler import Sampler from collections import defaultdict import numpy as np class MPerClassSampler(Sampler): """ Give m samples per class. Args: labels (np.ndarray): Ground truth of datasets m (int): M samples per class ...
[ 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 13, 37687, 20053, 1330, 3409, 20053, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 299, 32152, 355, 45941, 220, 198, 198, 4871, 4904, 263, 9487, 16305, 20053, 7, 16305, 20053, 2599, ...
2.448485
165
class Request(object): """ create a instance of Request """
[ 4871, 19390, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2251, 257, 4554, 286, 19390, 198, 220, 220, 220, 37227 ]
2.958333
24
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 198 ]
3.625
32
""" A collection of common mathematical functions written for high performance with the help of numpy and numba. """ import numpy as np from math import sin as msin from math import cos as mcos from numba import jit @jit def dist(p, q): """ Compute distance between two 3D vectors p: array Cartesi...
[ 37811, 198, 32, 4947, 286, 2219, 18069, 5499, 3194, 329, 1029, 2854, 351, 198, 1169, 1037, 286, 299, 32152, 290, 997, 7012, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 7813, 355, 13845, 259, 198, 6738, ...
2.136724
2,399
from pymc import deterministic, stochastic, MvNormal, Normal, Lognormal, Uniform, \ MCMC import pymc import numpy as np from pysb.examples.robertson import model from pysb.integrate import odesolve, Solver from matplotlib import pyplot as plt # Generate the synthetic data seed = 2 random = np.random.R...
[ 6738, 279, 4948, 66, 1330, 2206, 49228, 11, 3995, 354, 3477, 11, 337, 85, 26447, 11, 14435, 11, 406, 2360, 6636, 11, 35712, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13122, 9655...
2.213995
1,229
from .PBXResolver import * from .PBX_Base_Phase import * from .PBX_Constants import * from ...Helpers import logging_helper from ...Helpers import xcrun_helper from ...Helpers import path_helper
[ 6738, 764, 49079, 55, 4965, 14375, 1330, 1635, 198, 6738, 764, 49079, 55, 62, 14881, 62, 35645, 1330, 1635, 198, 6738, 764, 49079, 55, 62, 34184, 1187, 1330, 1635, 198, 6738, 2644, 12621, 19276, 1330, 18931, 62, 2978, 525, 198, 6738, ...
3.180328
61
''' 3. Faça um Programa que peça dois números e imprima a soma. ''' num1 = int(input('Insira o primeiro número: ')) num2 = int(input('Insira o segundo número: ')) print(num1+num2)
[ 7061, 6, 198, 18, 13, 18350, 50041, 23781, 6118, 64, 8358, 613, 50041, 466, 271, 299, 21356, 647, 418, 304, 848, 3036, 64, 257, 3870, 64, 13, 198, 7061, 6, 198, 22510, 16, 796, 493, 7, 15414, 10786, 20376, 8704, 267, 6994, 7058, 2...
2.207317
82
#!/usr/bin/python # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287...
2.650034
2,946
""" Datos de entrada edad del paciente = edad = int sexo del paciente = sexo_paciente = int Datos de salida Resultado positivo o negativo acerca de si el paciente tiene anemia = resultado = str """ # Entradas edad_paciente=int(input("Inserte la edad del paciente en su equivalente de años a meses ")) sexo_paciente=s...
[ 37811, 198, 27354, 418, 390, 24481, 4763, 198, 276, 324, 1619, 23503, 1153, 68, 220, 796, 1225, 324, 796, 493, 198, 8044, 78, 1619, 23503, 1153, 68, 796, 1714, 78, 62, 33587, 1153, 68, 796, 493, 628, 198, 27354, 418, 390, 3664, 3755...
2.332953
877
from collections import namedtuple from repositories.lines import LineORM import cv2 import logging from function_factory import FunctionFactory from api import models import time logger = logging.getLogger(__name__) _Line=namedtuple('_Line', 'name last_change nodes') lines: list[_Line] = [_Line(name='asd', last_chan...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 38072, 13, 6615, 1330, 6910, 1581, 44, 198, 11748, 269, 85, 17, 198, 11748, 18931, 198, 6738, 2163, 62, 69, 9548, 1330, 15553, 22810, 198, 6738, 40391, 1330, 4981, 198, 11748, 640, 198, 1...
3.298077
104
import taichi as ti import numpy as np m_fluid_color = ti.Vector(list(np.random.rand(3) * 0.7 + 0.3)) m_dye_decay = 0.99 m_f_gravity = ti.Vector([0.0, -9.8])
[ 11748, 20486, 16590, 355, 46668, 198, 11748, 299, 32152, 355, 45941, 198, 198, 76, 62, 35522, 312, 62, 8043, 796, 46668, 13, 38469, 7, 4868, 7, 37659, 13, 25120, 13, 25192, 7, 18, 8, 1635, 657, 13, 22, 1343, 657, 13, 18, 4008, 198...
2.092105
76
import os import math import torch from torch import optim from models import BaseVAE from models.types_ import * from utils import data_loader import pytorch_lightning as pl from torchvision import transforms import torchvision.utils as vutils from torchvision.datasets import CelebA from torch.utils.data import DataLo...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 28034, 198, 6738, 28034, 1330, 6436, 198, 6738, 4981, 1330, 7308, 11731, 36, 198, 6738, 4981, 13, 19199, 62, 1330, 1635, 198, 6738, 3384, 4487, 1330, 1366, 62, 29356, 198, 11748, 12972, 13165, ...
1.778978
1,018
# coding=utf-8 """A district is the voter population of a constituency or geographical area.""" import itertools as itls import math as m import random as rd from .utils import generate_voter_groups, sort_dict_desc, make_table from .candidate import Candidate from .party import Party from .voter_group import VoterGro...
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 32, 4783, 318, 262, 10765, 3265, 286, 257, 28280, 393, 27465, 1989, 526, 15931, 628, 198, 11748, 340, 861, 10141, 355, 340, 7278, 198, 11748, 10688, 355, 285, 198, 11748, 4738, 355, 374, 67, ...
3.789474
95
from queue import Queue from urllib.parse import urlparse from threading import Thread import requests import threading import re import os from requests import get from requests import post from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureReques...
[ 6738, 16834, 1330, 4670, 518, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 7007, 198, 11748, 4704, 278, 198, 11748, 302, 198, 11748, 28686, 198, 6738, 7007, 1330, 651, 198, 673...
3.544643
112
from typing import Dict from .contributions import Contributions class ScheduledContributions(Contributions): # pylint: disable=too-few-public-methods """Contributions which occur at specific years in the life of the portfolio. :param scheduled_contributions: contributions by year relative to inception of ...
[ 6738, 19720, 1330, 360, 713, 198, 198, 6738, 764, 3642, 2455, 507, 1330, 49152, 628, 198, 4871, 27774, 6309, 37146, 507, 7, 37146, 507, 2599, 220, 1303, 279, 2645, 600, 25, 15560, 28, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 198, ...
3.930233
86
from __future__ import absolute_import import os from tenant_schemas_celery.app import CeleryApp from django.conf import settings from celery.schedules import crontab # set the default Django settings module for the 'celery' program. if os.path.isfile(os.path.join(os.path.abspath('.'), 'sgk', 'settings', 'local.py'))...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 28686, 198, 6738, 18285, 62, 1416, 4411, 292, 62, 7015, 88, 13, 1324, 1330, 15248, 1924, 4677, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 18725, 1924, 13, ...
2.769912
339
# Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
[ 2, 15069, 33448, 41992, 4912, 31703, 15302, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351...
2.558511
2,632
from django.db import models BANDEIRA_CHOICES = ( ('Visa', 'Visa'), ('Master', 'Master'), ('Hipercard', 'Hipercard'), ('Hiper', 'Hiper'), ('American Express', 'American Express'), ('Elo', 'Elo'), ('Diners Club', 'Diners Club'), ('American Express', 'Ameri...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 33, 6981, 36, 40, 3861, 62, 44899, 34444, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 19203, 53, 9160, 3256, 705, 53, 9160, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 1...
2.119403
201