content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import asyncio import json import os import pty import shutil import sys import tty import termios import time import threading import tornado.iostream from tornado.ioloop import IOLoop from tornado.websocket import websocket_connect ioloop = tornado.ioloop.IOLoop.instance() SSH_LOGIN = "root" SSH_PASSWORD = "algor...
[ 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 279, 774, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 256, 774, 198, 11748, 3381, 4267, 198, 11748, 640, 198, 11748, 4704, 278, 198, 198, 11748, 33718, 13, 7...
2.602484
161
import abc import logging from typing import Any, Dict, List, Optional from homeassistant.components.water_heater import WaterHeaterEntity from homeassistant.const import ( TEMP_FAHRENHEIT, TEMP_CELSIUS ) from gehomesdk import ErdCode, ErdMeasurementUnits from ...const import DOMAIN from .ge_erd_entity import ...
[ 11748, 450, 66, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 7050, 62, 258, 729, 1330, 5638, 1544, 729, 32398, 198, 6738, 1363, 562, 10167, ...
3.016393
122
import json from scrapy.item import BaseItem from scrapy.http import Request from scrapy.exceptions import ContractFail from scrapy.contracts import Contract # contracts
[ 11748, 33918, 198, 198, 6738, 15881, 88, 13, 9186, 1330, 7308, 7449, 198, 6738, 15881, 88, 13, 4023, 1330, 19390, 198, 6738, 15881, 88, 13, 1069, 11755, 1330, 17453, 39044, 198, 198, 6738, 15881, 88, 13, 28484, 82, 1330, 17453, 628, 1...
3.847826
46
from keras import backend as K import tensorflow as tf import numpy as np custom_dice_coef = custom_dice_coefficient custom_dice_loss = custom_dice_coefficient_loss dice_coef = dice_coefficient dice_coef_loss = dice_coefficient_loss weighted_crossentropy = weighted_crossentropy_pixelwise predicted_count =...
[ 6738, 41927, 292, 1330, 30203, 355, 509, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 628, 628, 628, 628, 628, 628, 198, 23144, 62, 67, 501, 62, 1073, 891, 796, 2183, 62, 67, 501, 62, 1073, 16814, 1...
2.964286
168
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.exceptions import DropItem from hashlib import md5 from scrapy import log from twisted.enterprise import adbapi fro...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 534, 2378, 31108, 994, 198, 2, 198, 2, 2094, 470, 6044, 284, 751, 534, 11523, 284, 262, 7283, 3620, 62, 47, 4061, 3698, 1268, 1546, 4634, 198, 2, ...
3.083333
120
import click import pickle import numpy as np from collections import defaultdict from utils import reset_seeds, get_dataset, load_embeddings from mlp_multilabel_wrapper import PowersetKerasWrapper, MultiOutputKerasWrapper from mlp_utils import CrossLabelDependencyLoss if __name__ == '__main__': run()
[ 11748, 3904, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 3384, 4487, 1330, 13259, 62, 325, 5379, 11, 651, 62, 19608, 292, 316, 11, 3440, 62, 20521, 67, 654, 198, 6738, 259...
3.12
100
#!/usr/bin/env python # encoding: utf-8 """ evaluate.py Created by Shuailong on 2016-12-2. Evaluate model accuracy on test set. """ from __future__ import print_function from time import time from keras.models import load_model import os from utils import true_accuracy from dataset import get_data from train imp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 49786, 13, 9078, 198, 198, 41972, 416, 32344, 603, 506, 319, 1584, 12, 1065, 12, 17, 13, 198, 198, 36, 2100, 4985, 2746, 9922,...
3.058394
137
#!/usr/bin/env python # Copyright (c) 2013, Digium, Inc. # Copyright (c) 2014-2016, Yelp, Inc. import os from setuptools import setup import bravado setup( name="bravado", # cloudlock version, no twisted dependency version=bravado.version + "cl", license="BSD 3-Clause License", description="Lib...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 2211, 11, 7367, 1505, 11, 3457, 13, 198, 2, 15069, 357, 66, 8, 1946, 12, 5304, 11, 44628, 11, 3457, 13, 198, 198, 11748, 28686, 198, 198, 6738, 900, 37623, ...
2.367159
542
# Copyright 2013 - Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ 2, 15069, 2211, 532, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921...
3.539855
276
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-08-02 07:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 16, 319, 2864, 12, 2919, 12, 2999, 8753, 25, 3365, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
from agility.usc.enumeration import uscSerialMode, ChannelMode, HomeMode from agility.usc.reader import BytecodeReader
[ 6738, 33546, 13, 16241, 13, 268, 6975, 341, 1330, 514, 66, 32634, 19076, 11, 11102, 19076, 11, 5995, 19076, 198, 6738, 33546, 13, 16241, 13, 46862, 1330, 30589, 8189, 33634, 628, 198 ]
3.78125
32
from .dbApiInterface import DbApiTableInterface from .dbApiTableInterface import DbApiTableInterface from .cacheInterface import CacheInterface from .loggerInterface import LoggerInterface from .envReaderInterface import EnvReaderInterface from .driverInterface import DriverInterface from .jobsInterface import JobsInte...
[ 6738, 764, 9945, 32, 14415, 39317, 1330, 360, 65, 32, 14415, 10962, 39317, 198, 6738, 764, 9945, 32, 14415, 10962, 39317, 1330, 360, 65, 32, 14415, 10962, 39317, 198, 6738, 764, 23870, 39317, 1330, 34088, 39317, 198, 6738, 764, 6404, 13...
4.576923
104
import sys import csv import os sys.path.append('../../') import h_lib import h_lib_noSeqSearch in_strFastaFilename = '{!s}/data/protein/18mix/18mix_db_plus_contaminants_20081209.fasta'.format(os.environ.get('HOME')) in_strPeptideFilename = '{!s}/data/protein/18mix/18_mixtures_peptide_identification.txt'.format(os.en...
[ 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 40720, 11537, 198, 11748, 289, 62, 8019, 198, 11748, 289, 62, 8019, 62, 3919, 4653, 80, 18243, 198, 198, 259, 62, 2536, 22968, ...
2.473568
454
# for normalization we need to have the maxima of x and y values with the help of which # we can normalise the given values import csv filename = "values.csv" fields = [] rows = [] with open(filename,'r') as csvfile: reader = csv.reader(csvfile) fields = next(reader) for row in reader: ...
[ 2, 329, 3487, 1634, 356, 761, 284, 423, 262, 3509, 8083, 286, 2124, 290, 331, 3815, 351, 262, 1037, 286, 543, 220, 201, 198, 2, 356, 460, 3487, 786, 262, 1813, 3815, 201, 198, 11748, 269, 21370, 201, 198, 34345, 796, 366, 27160, 1...
2.473498
283
from pygdp import _execute_request from pygdp import _get_geotype from owslib.util import log def submitFeatureWeightedGridStatistics(geoType, dataSetURI, varID, startTime, endTime, attribute, value, gmlIDs, verbose, coverage, delim, stat, grpby, timeStep, summAttr, weighted, WF...
[ 6738, 12972, 21287, 79, 1330, 4808, 41049, 62, 25927, 198, 6738, 12972, 21287, 79, 1330, 4808, 1136, 62, 469, 8690, 198, 6738, 12334, 6649, 571, 13, 22602, 1330, 2604, 198, 198, 4299, 9199, 38816, 25844, 276, 41339, 48346, 7, 469, 78, ...
2.047703
1,698
import sys import socket conn = socket.create_connection(('0.0.0.0', 8080)) msgs = [ # 0 Keep-Alive, Transfer-Encoding chunked 'GET / HTTP/1.1\r\nConnection: Keep-Alive\r\n\r\n', # 1,2,3 Close, EOF "encoding" 'GET / HTTP/1.1\r\n\r\n', 'GET / HTTP/1.1\r\nConnection: close\r\n\r\n', 'GET / HTTP/...
[ 11748, 25064, 198, 11748, 17802, 198, 198, 37043, 796, 17802, 13, 17953, 62, 38659, 7, 10786, 15, 13, 15, 13, 15, 13, 15, 3256, 4019, 1795, 4008, 198, 907, 14542, 796, 685, 198, 220, 220, 220, 1303, 657, 9175, 12, 2348, 425, 11, 2...
1.864139
633
# -*- coding: utf-8 -*- from odoo import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 16298, 2238, 1330, 4981, 628 ]
2.380952
21
#WIZARD BOT IS LIVE import calendar import discord as dc from discord.ext.commands import Bot from discord.ext import commands from functools import partial import asyncio as aio import time from random import randint from datetime import datetime from discord.ext import commands from guildconfig import GuildConfig f...
[ 2, 54, 14887, 9795, 347, 2394, 3180, 28323, 198, 198, 11748, 11845, 198, 11748, 36446, 355, 30736, 220, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 18579, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 1257, 310, 10141, 1330, ...
2.468813
497
""" Django settings for TusPachangas project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ import django import dj_database_url # Build paths inside the project li...
[ 37811, 198, 35, 73, 14208, 6460, 329, 46233, 47, 620, 648, 292, 1628, 13, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4852, 873, 14,...
2.371795
1,170
# Copyright 2017 The TensorFlow Authors. 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, 2177, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
3.695946
296
import time import pyautogui import win32gui
[ 11748, 640, 198, 11748, 12972, 2306, 519, 9019, 198, 11748, 1592, 2624, 48317, 198 ]
3.214286
14
# # Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) # # SPDX-License-Identifier: BSD-2-Clause # import re import graph_refine.syntax as syntax import graph_refine.problem as problem import graph_refine.stack_logic as stack_logic from graph_refine.syntax import true_term, false_term, mk_not from graph_refine.check i...
[ 2, 198, 2, 15069, 12131, 11, 6060, 5333, 11, 9429, 43708, 357, 6242, 45, 6073, 718, 5774, 15136, 18395, 8, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 12, 2601, 682, 198, 2, 198, 198, 11748, 30...
3.048309
207
# Copyright (c) 2010-2017 Samuel Abels # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
[ 2, 15069, 357, 66, 8, 3050, 12, 5539, 17100, 2275, 1424, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 2542...
3.548469
392
BIG_CONSTANT = "YES" print(group_by([1, 2, 3, 4, 5, 6], lambda x: "even" if x % 2 == 0 else "odd"))
[ 3483, 38, 62, 10943, 2257, 8643, 796, 366, 43335, 1, 628, 198, 198, 4798, 7, 8094, 62, 1525, 26933, 16, 11, 362, 11, 513, 11, 604, 11, 642, 11, 718, 4357, 37456, 2124, 25, 366, 10197, 1, 611, 2124, 4064, 362, 6624, 657, 2073, 36...
2.145833
48
# Copyright 2019 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ 2, 15069, 13130, 13860, 50, 1039, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2,...
3.523132
281
import os # Use this as a package level setup
[ 11748, 28686, 628, 198, 2, 5765, 428, 355, 257, 5301, 1241, 9058, 198 ]
3.692308
13
# -*- coding: utf-8 -*- from gi.repository.GdkPixbuf import Pixbuf from os import makedirs if __name__ == "__main__": main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 308, 72, 13, 260, 1930, 37765, 13, 38, 34388, 47, 844, 29325, 1330, 21642, 29325, 198, 198, 6738, 28686, 1330, 285, 4335, 17062, 628, 198, 198, 361, 11593, 3672, ...
2.293103
58
# Generated by Django 3.2.8 on 2021-11-21 12:01 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 1157, 12, 2481, 1105, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from typing import Optional import pandas as pd from ruptures import Binseg from ruptures.base import BaseCost from sklearn.linear_model import LinearRegression from etna.transforms.base import PerSegmentWrapper from etna.transforms.decomposition.change_points_trend import BaseEstimator from etna.transforms.decomposi...
[ 6738, 19720, 1330, 32233, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 31580, 942, 1330, 20828, 325, 70, 198, 6738, 31580, 942, 13, 8692, 1330, 7308, 13729, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234,...
3.55303
132
import xarray as xr import pytest import warnings import argopy from argopy import IndexFetcher as ArgoIndexFetcher from argopy.errors import InvalidFetcherAccessPoint, InvalidFetcher, ErddapServerError, DataNotFound from . import ( AVAILABLE_INDEX_SOURCES, requires_fetcher_index, requires_connected_erddap...
[ 11748, 2124, 18747, 355, 2124, 81, 198, 11748, 12972, 9288, 198, 11748, 14601, 198, 198, 11748, 1822, 11081, 198, 6738, 1822, 11081, 1330, 12901, 37, 316, 2044, 355, 943, 2188, 15732, 37, 316, 2044, 198, 6738, 1822, 11081, 13, 48277, 13...
2.861111
144
import voluptuous as vol from homeassistant.config_entries import ConfigFlow from homeassistant.const import CONF_HOST, CONF_NAME from .acthor import test_connection from .const import DEVICE_NAME, DOMAIN
[ 11748, 2322, 37623, 5623, 355, 2322, 198, 6738, 1363, 562, 10167, 13, 11250, 62, 298, 1678, 1330, 17056, 37535, 198, 6738, 1363, 562, 10167, 13, 9979, 1330, 7102, 37, 62, 39, 10892, 11, 7102, 37, 62, 20608, 198, 198, 6738, 764, 529, ...
3.45
60
NOTES = { 'notes': [ {'date': '2014-05-22T00:00:00Z', 'note': 'Second Note'}, {'date': '2014-05-21T14:02:45Z', 'note': 'First Note'} ] } SUBJECT = { "subject": ['HB1-3840', 'H'] } OWNER = { "owner": "Owner" } EDITORIAL = { "editor_group": "editorgroup", "editor": "associate" }...
[ 11929, 1546, 796, 1391, 198, 220, 220, 220, 705, 17815, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 6, 4475, 10354, 705, 4967, 12, 2713, 12, 1828, 51, 405, 25, 405, 25, 405, 57, 3256, 705, 11295, 10354, 705, 12211, 5...
1.913978
186
""" docnado.py A rapid documentation tool that will blow you away. """ import os import re import sys import csv import glob import time import signal import shutil import urllib import base64 import hashlib import argparse import tempfile import datetime import threading import traceback import subprocess import pl...
[ 37811, 2205, 77, 4533, 13, 9078, 198, 198, 32, 5801, 10314, 2891, 326, 481, 6611, 345, 1497, 13, 198, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 15095, 198, 11748, 640, ...
2.347627
13,339
from decimal import Decimal as D from django.core import exceptions from django.test import TestCase from oscar.test import factories from oscar.test.basket import add_product, add_products from django_redis import get_redis_connection from oscarbluelight.offer.models import ( Range, Benefit, BluelightCount...
[ 6738, 32465, 1330, 4280, 4402, 355, 360, 198, 6738, 42625, 14208, 13, 7295, 1330, 13269, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 267, 13034, 13, 9288, 1330, 17590, 198, 6738, 267, 13034, 13, 9288, 13, 65, 11715,...
3.214815
135
# Moving around directories with pushd & popd # You can save directries to go back to later. These can be built up in a stack. #pushd i/like/icecream # current stack: ~temp/i/like/icecream #pushd i/like # current stack: ~temp/i/like ~temp/i/like/icecream #popd # PS ~temp/i/like #popd # PS ~temp/i/like/icecre...
[ 2, 26768, 1088, 29196, 351, 4574, 67, 1222, 1461, 67, 201, 198, 201, 198, 2, 921, 460, 3613, 1277, 1678, 284, 467, 736, 284, 1568, 13, 2312, 460, 307, 3170, 510, 287, 257, 8931, 13, 201, 198, 2, 14689, 67, 1312, 14, 2339, 14, 50...
2.919463
149
# -*- coding: utf-8 -*- import json from nose.tools import eq_, ok_ from rest_framework.exceptions import ParseError from django.contrib.auth.models import AnonymousUser from django.test.client import RequestFactory from django.test.utils import override_settings import mkt from mkt.constants.applications import DEV...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 9686, 13, 31391, 1330, 37430, 62, 11, 12876, 62, 198, 6738, 1334, 62, 30604, 13, 1069, 11755, 1330, 2547, 325, 12331, 198, 198, 6738, 42625...
2.647799
318
# MIT License # # Copyright (c) 2019 Johan Brichau # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
[ 2, 17168, 13789, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 13130, 16053, 272, 1709, 488, 559, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 29...
3.299043
418
# Generated by Django 3.1.6 on 2021-02-12 19:43 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2999, 12, 1065, 678, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import nox SOURCE_FILES = ( "setup.py", "noxfile.py", "elastic_workplace_search/", "tests/", )
[ 11748, 645, 87, 628, 198, 47690, 62, 46700, 1546, 796, 357, 198, 220, 220, 220, 366, 40406, 13, 9078, 1600, 198, 220, 220, 220, 366, 35420, 7753, 13, 9078, 1600, 198, 220, 220, 220, 366, 417, 3477, 62, 1818, 5372, 62, 12947, 14, 1...
2.071429
56
# !/usr/bin/env python import rospy import numpy as np from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, SpawnModelResponse from copy import deepcopy from tf.transformations import quaternion_from_euler sdf_cube = """<?xml version="1.0" ?> <sdf version="1.4"> <model name="MODELNAME"> <static>0</static...
[ 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 308, 1031, 1765, 78, 62, 907, 14542, 13, 27891, 85, 1330, 36356, 17633, 11, 36356, 17633, 18453, 11, ...
1.531626
9,138
from output.models.ms_data.regex.re_l32_xsd.re_l32 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
[ 6738, 5072, 13, 27530, 13, 907, 62, 7890, 13, 260, 25636, 13, 260, 62, 75, 2624, 62, 87, 21282, 13, 260, 62, 75, 2624, 1330, 357, 198, 220, 220, 220, 797, 25636, 11, 198, 220, 220, 220, 14432, 11, 198, 8, 198, 198, 834, 439, 8...
1.833333
66
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2864, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330...
3.83908
174
import math test_cases = int(input()) numbers = [] for test_case in range(test_cases): numbers.append(int(input())) for n in numbers: if is_prime_number(n): print('Prime') else: print('Not prime')
[ 11748, 10688, 628, 198, 198, 9288, 62, 33964, 796, 493, 7, 15414, 28955, 198, 77, 17024, 796, 17635, 198, 1640, 1332, 62, 7442, 287, 2837, 7, 9288, 62, 33964, 2599, 198, 220, 220, 220, 3146, 13, 33295, 7, 600, 7, 15414, 3419, 4008, ...
2.410526
95
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Minimal example of the CEFBrowser widget use. Here you don't have any controls (back / forth / reload) or whatsoever. Just a kivy app displaying the chromium-webview. In this example we demonstrate how the cache path of CEF can be set. """ import os from kivy.app im...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 9452, 4402, 1672, 286, 262, 18671, 26001, 808, 2655, 26295, 779, 13, 3423, 345, 836, 470, 423, 597, 6973,...
3.012987
154
#!/usr/bin/python3 # If F(a) is any function that can be defined as composition of bitwise XORs, ANDs and left shifts # Then the dynac system x_(n+1) = F(x_n) is Turing complete # Proof by simulation (rule110) a = 1 while a: print(bin(a)) a = a ^ (a << 1) ^ (a & (a << 1)) ^ (a & (a << 1) & (a << 2))
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 1002, 376, 7, 64, 8, 318, 597, 2163, 326, 460, 307, 5447, 355, 11742, 286, 1643, 3083, 1395, 1581, 82, 11, 5357, 82, 290, 1364, 15381, 198, 2, 3244, 262, 37860, 330, 1080, 2...
2.456693
127
from abc import ( abstractmethod, ) from typing import ( Any, Callable, cast, FrozenSet, Generic, Type, TypeVar, ) from cancel_token import ( CancelToken, ) from p2p.exceptions import ( PeerConnectionLost, ) from p2p.kademlia import Node from p2p.peer import ( BasePeer, ...
[ 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 12531, 24396, 11, 198, 8, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4377, 11, 198, 220, 220, 220, 4889, 540, 11, 198, 220, 220, 220, 3350, 11, 198, 220, 220, 220, 23673, 7248, ...
2.487578
322
""" Test to verify performance of PVC creation and deletion for RBD, CephFS and RBD-Thick interfaces """ import time import logging import datetime import pytest import ocs_ci.ocs.exceptions as ex import threading import statistics from concurrent.futures import ThreadPoolExecutor from uuid import uuid4 from ocs_ci.fr...
[ 37811, 198, 14402, 284, 11767, 2854, 286, 46377, 6282, 290, 39948, 198, 1640, 371, 14529, 11, 327, 27446, 10652, 290, 371, 14529, 12, 817, 624, 20314, 198, 37811, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 11748, 1...
3.199029
206
#!/usr/bin/python3 from jinja2 import Environment, FileSystemLoader results = [ dict( description="Noodles and Company steak Stromboli", comment="", size="small", cals=530, carbs=50, fat=25, protein=27, score=30), dict( description="Stea...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 474, 259, 6592, 17, 1330, 9344, 11, 9220, 11964, 17401, 198, 198, 43420, 796, 685, 198, 220, 220, 220, 8633, 7, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 45, 702,...
2.036778
571
from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from payments.models import Invoice, RazorpayKeys from payments.razorpay.razorpay_payments import RazorpayPayments from payments.models import Payment, Order import json
[ 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 33571, 13, 12501, 273, 2024, 13, 6359, 41871, 1330, 269, 27891, 69, 62, 42679, 198, 198, 6738, 7524, 13, 27530, 1330, 10001, 2942, 11, 36065, 15577, 4072...
3.540541
74
import configparser import os import sys from time import localtime, strftime, mktime import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from net import Net from geo_helper import store_image_bounds from image_helper import CLASSES from image_helper import save_image f...
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 640, 1330, 1957, 2435, 11, 965, 31387, 11, 33480, 2435, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 19...
4.777251
211
import tkinter as tk from tkinter import filedialog import csv import matplotlib.pyplot as plt root = tk.Tk(screenName=':0.0') root.withdraw() file_path = filedialog.askopenfilename() lastIndex = len(file_path.split('/')) - 1 v0 = [0, 0, 0] x0 = [0, 0, 0] fToA = 1 error = 0.28 errorZ = 3 t = [] time...
[ 11748, 256, 74, 3849, 355, 256, 74, 201, 198, 6738, 256, 74, 3849, 1330, 5717, 498, 519, 201, 198, 11748, 269, 21370, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 15763, 796, 256, 74, 13, ...
2.035547
1,491
# Generated by Django 2.2.3 on 2019-07-15 19:24 from django.db import migrations, models def backpopulate_incomplete_profiles(apps, schema): """Backpopulate users who don't have a profile record""" User = apps.get_model("users", "User") Profile = apps.get_model("users", "Profile") for user in User.o...
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 18, 319, 13130, 12, 2998, 12, 1314, 678, 25, 1731, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628, 198, 4299, 736, 12924, 5039, 62, 259, 20751, 62, 5577, 2915, 7,...
2.662687
335
from __future__ import division import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import sys import os import time # # TORCH INSTALLATION: refer to https://pytorch.org/get-started/locally/ # cls() ################...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 2306, 519, 6335, 355, 1960, 519, 6335, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034,...
1.699638
19,623
""" OSR (LOTFP) stat generator. """ import random def d(num_sides): """ Represents rolling a die of size 'num_sides'. Returns random number from that size die """ return random.randint(1, num_sides) def xdy(num_dice, num_sides): """ represents rolling num_dice of size num_sides. Re...
[ 198, 198, 37811, 220, 198, 2640, 49, 357, 43, 2394, 5837, 8, 1185, 17301, 13, 220, 198, 37811, 198, 198, 11748, 4738, 198, 198, 4299, 288, 7, 22510, 62, 82, 1460, 2599, 198, 220, 220, 220, 37227, 220, 198, 220, 220, 220, 1432, 662...
2.270213
470
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.alert
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 33448, 1766, 956, 414, 3457, 13, 198, 198, 11748, 763, 956, 414, 62, 27604, 62, 21282, 74, 13, 27530, 13, 44598, 628, 198 ]
2.615385
39
import os import sys import copy import collections import nltk import nltk.tokenize sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) import pagerank ''' textrank.py ----------- This module implements TextRank, an unsupervised keyword significance scoring algorithm. TextRank builds a...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4866, 198, 11748, 17268, 198, 198, 11748, 299, 2528, 74, 198, 11748, 299, 2528, 74, 13, 30001, 1096, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 22179, 7, 418, 1...
3.193449
977
import logging import os import random import string import time import unittest import neurolib.utils.paths as paths import neurolib.utils.pypetUtils as pu import numpy as np import pytest import xarray as xr from neurolib.models.aln import ALNModel from neurolib.models.fhn import FHNModel from neurolib.models.multim...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 640, 198, 11748, 555, 715, 395, 198, 198, 11748, 7669, 8019, 13, 26791, 13, 6978, 82, 355, 13532, 198, 11748, 7669, 8019, 13, 26791, 13, 79, 4464, 316, 1...
3.187023
262
# -*- coding: utf-8 -*- ''' Module offering 2 functions, encode() and decode(), to transcode between IRCv3.2 tags and python dictionaries. ''' import re import random import string _escapes = ( ("\\", "\\\\"), (";", r"\:"), (" ", r"\s"), ("\r", r"\r"), ("\n", r"\n"), ) # make the possibility of...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 26796, 6011, 362, 5499, 11, 37773, 3419, 290, 36899, 22784, 284, 1007, 8189, 1022, 198, 49060, 85, 18, 13, 17, 15940, 290, 21015, 48589, 3166, 13, 198, 7...
2.328938
1,441
from django import forms from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm # from .models import RegionModel # from .models import SERVICE_CHOICES, REGION_CHOICES from django.contrib.auth import authenticate # from django.contrib.auth.forms import UserCreationForm, UserChangeForm # from .models i...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 30275, 4965, 316, 8479, 11, 5345, 35215, 8479, 198, 2, 422, 764, 27530, 1330, 17718, 17633, 198, 2, 422, 764, 27530, 1330, 47453, 62, ...
2.149218
831
# newly added libraries import copy import wandb import time import math import csv import shutil from tqdm import tqdm import torch import numpy as np import pandas as pd from client import Client from config import * import scheduler as sch
[ 2, 8308, 2087, 12782, 198, 11748, 4866, 198, 11748, 11569, 65, 198, 11748, 640, 198, 11748, 10688, 198, 11748, 269, 21370, 198, 11748, 4423, 346, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 11748, 28034, 198, 11748, 299, ...
3.588235
68
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import cv2 import matplotlib.pyplot as plt import numpy as np from progress.bar import Bar import torch import pickle import motmetrics as mm from lib.opts import opts from lib.logger im...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 269, 85, 17, 198, 11748, 2603, 29487...
2.483283
658
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import shutil import subprocess import tempfile from pathlib import Path from threading import Lock from typing import Iterable,...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.151403
1,889
__author__ = "Daniel Winklehner" __doc__ = "Find out if a number is a power of two" def power_of_two(number): """ Function that checks if the input value (data) is a power of 2 (i.e. 2, 4, 8, 16, 32, ...) """ res = 0 while res == 0: res = number % 2 number /= 2.0 prin...
[ 834, 9800, 834, 796, 366, 19962, 370, 19894, 22277, 1, 198, 834, 15390, 834, 796, 366, 16742, 503, 611, 257, 1271, 318, 257, 1176, 286, 734, 1, 628, 198, 4299, 1176, 62, 1659, 62, 11545, 7, 17618, 2599, 198, 220, 220, 220, 37227, ...
2.300518
193
from viewdom import html, render, use_context, Context expected = '<h1>My Todos</h1><ul><li>Item: first</li></ul>' # start-after title = 'My Todos' todos = ['first'] result = render(html(''' <{Context} prefix="Item: "> <h1>{title}</h1> <{TodoList} todos={todos} /> <//> ''')) # '<h1>My Todos</h...
[ 6738, 1570, 3438, 1330, 27711, 11, 8543, 11, 779, 62, 22866, 11, 30532, 198, 198, 40319, 796, 705, 27, 71, 16, 29, 3666, 309, 375, 418, 3556, 71, 16, 6927, 377, 6927, 4528, 29, 7449, 25, 717, 3556, 4528, 12240, 377, 29, 6, 198, ...
2.10119
168
from django.views.generic import DetailView, ListView, TemplateView from .models import Books
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 42585, 7680, 11, 7343, 7680, 11, 37350, 7680, 198, 198, 6738, 764, 27530, 1330, 13661 ]
4.086957
23
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .evaluator import DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset from .testing import print_csv_format, verify_results from .hico_evaluation import HICOEvaluator from .swig_evaluation import SWIGEvaluator # from .d...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 6738, 764, 18206, 84, 1352, 1330, 16092, 292, 316, 36, 2100, 84, 1352, 11, 16092, 292, 316, 36, 2100, 84, 2024, 11, 32278, 62, 22866, 11, 32278...
3.064286
140
import datetime as dt from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.core.exceptions import ValidationError from users.models import CustomUser def validate_year(value): """ . """ if value > dt.datetime.now().year: rais...
[ 11748, 4818, 8079, 355, 288, 83, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 1855, 11395, 47139, 1352, 11, 5436, 11395, 47139, 1352, 198, 6738, 42625, 14208, 13, 7295, 13...
2.652778
144
### ### This file was automatically generated ### from archinfo.arch import register_arch, Endness, Register from .common import ArchPcode register_arch(['powerpc:le:32:quicc'], 32, Endness.LE, ArchPcode_PowerPC_LE_32_QUICC)
[ 21017, 198, 21017, 770, 2393, 373, 6338, 7560, 198, 21017, 198, 198, 6738, 3934, 10951, 13, 998, 1330, 7881, 62, 998, 11, 5268, 1108, 11, 17296, 198, 198, 6738, 764, 11321, 1330, 5579, 47, 8189, 628, 198, 30238, 62, 998, 7, 17816, 6...
3.013158
76
# -*- coding: utf-8 -*- import json import pdb import os from os.path import join as pj import networkx as nx import pandas as pd from networkx.readwrite.json_graph import node_link_data def plot_graph(self): """ Plot the transmission graph of the simulation. TODO: Draw arrows and have a directed grap...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33918, 198, 11748, 279, 9945, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 355, 279, 73, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 19798,...
2.216717
1,998
# auto_telnet.py - remote control via telnet import os, sys, string, telnetlib from getpass import getpass if __name__ == '__main__': basename = os.path.splitext(os.path.basename(sys.argv[0]))[0] logname = os.environ.get("LOGNAME", os.environ.get("USERNAME")) host = 'localhost' import getopt optlis...
[ 2, 8295, 62, 37524, 3262, 13, 9078, 532, 6569, 1630, 2884, 13632, 3262, 198, 11748, 28686, 11, 25064, 11, 4731, 11, 13632, 3262, 8019, 198, 6738, 651, 6603, 1330, 651, 6603, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834,...
2.051237
566
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 7 09:46:10 2018 @author: sungkyun FFTNet model using 2x1 dil-conv """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # Models with Preset (for convenience) ''' dim_input: dimension of input (256 for 8-bit mu-...
[ 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, 2892, 1737, 220, 767, 7769, 25, 3510, 25, 940, 2864, 198, 198, 31, 9800, 25, 23568, 2584,...
2.66756
373
""" Copy - copy fields into other (possibly new) fields configuration: on: list of 'alert', 'revoke', 'report', 'reset' (optional: def 'alert' only) cp: ( (in,out), ... ) Field names take the form of dir1/dir2/dir3, which in the payload will be data[dir1][dir2][dir3] """ import logging from snewpdag.dag import N...
[ 37811, 198, 29881, 532, 4866, 7032, 656, 584, 357, 39363, 649, 8, 7032, 198, 198, 11250, 3924, 25, 198, 220, 319, 25, 1351, 286, 705, 44598, 3256, 705, 18218, 2088, 3256, 705, 13116, 3256, 705, 42503, 6, 357, 25968, 25, 825, 705, 44...
2.927928
111
''' houses each team member's link to personal GitHub io or website or blog space RJProctor ''' # Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app ...
[ 7061, 6, 220, 198, 20089, 1123, 1074, 2888, 338, 198, 8726, 284, 2614, 21722, 33245, 393, 198, 732, 12485, 393, 4130, 2272, 198, 49, 41, 2964, 2715, 198, 7061, 6, 198, 2, 1846, 3742, 422, 513, 4372, 2151, 12782, 198, 11748, 14470, 1...
1.926017
811
from importlib import _bootstrap from . import util import collections import imp import sys import unittest if __name__ == '__main__': test_main()
[ 6738, 1330, 8019, 1330, 4808, 18769, 26418, 198, 6738, 764, 1330, 7736, 198, 198, 11748, 17268, 198, 11748, 848, 198, 11748, 25064, 198, 11748, 555, 715, 395, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198,...
3.204082
49
import os from glob import iglob from concurrent.futures import ThreadPoolExecutor
[ 11748, 28686, 198, 6738, 15095, 1330, 220, 38686, 672, 198, 6738, 24580, 13, 69, 315, 942, 1330, 14122, 27201, 23002, 38409, 628, 628 ]
3.73913
23
#!/usr/bin/env python from livereload import Server, shell server = Server() server.watch('*.rst', shell('make html')) server.serve()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 6738, 2107, 260, 2220, 1330, 9652, 11, 7582, 201, 198, 201, 198, 15388, 796, 9652, 3419, 201, 198, 15388, 13, 8340, 10786, 24620, 81, 301, 3256, 7582, 10786, 15883, 27711, 6, 4008...
2.764706
51
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/5 21:04 # @author :Mo # @function :file of path import os import pathlib import sys # path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) path_root = path_root.replace('\\', '/') path_top = str(pathlib.Path(os...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 201, 198, 2, 5145, 14, 14629, 14, 8800, 14, 29412, 201, 198, 2, 2488, 2435, 220, 220, 220, 220, 1058, 23344, 14, 21, 14, 20, 2310, 25, 3023, 201, 198, 2, 2488, 9800, 220, ...
2.425759
1,219
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Created by Roberto Preste import pytest import asyncio from pandas.testing import assert_frame_equal from apyhgnc import apyhgnc # apyhgnc.info # apyhgnc.fetch # apyhgnc.search
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 15622, 416, 32076, 24158, 68, 198, 11748, 12972, 9288, 198, 11748, 30351, 952, 198, 6738, 19798, 292, 13, 33407, 1330, ...
2.459184
98
import os.path import argparse from xml.etree import ElementTree as ET if __name__ == "__main__": main()
[ 11748, 28686, 13, 6978, 198, 11748, 1822, 29572, 198, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 355, 12152, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.804878
41
libro = Libro("HyP", "JK") libro1 = Libro("La Isla M", "JCortazar") libro2 = Libro("El tunel", "Sabato") biblio = Biblioteca() biblio.agregar_libro(libro) biblio.agregar_libro(libro1) biblio.agregar_libro(libro2) print(biblio.contiene_libro("HyP", "JK")) print(biblio.sacar_libro("HyP", "JK")) print(biblio.contiene_lib...
[ 198, 8019, 305, 796, 7980, 305, 7203, 21217, 47, 1600, 366, 41, 42, 4943, 198, 8019, 305, 16, 796, 7980, 305, 7203, 14772, 1148, 5031, 337, 1600, 366, 34382, 419, 29413, 4943, 198, 8019, 305, 17, 796, 7980, 305, 7203, 9527, 6278, 41...
2.011976
167
# -*- coding: utf-8 -*- import unittest from xml.etree import ElementTree as ET from parser_tool import tokenizer from parser_tool import htmlgenerator
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 355, 12152, 198, 198, 6738, 30751, 62, 25981, 1330, 11241, 7509, 198, 6738, 30751, 62, 25981, 1...
3.208333
48
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.core.files import File
[ 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, 4981, 11, 15720, 602, 198, 6738, 42625, 14208, 13, 7295, 13, 16...
3.021277
47
load("//tools/bzl:maven_jar.bzl", "maven_jar")
[ 2220, 7203, 1003, 31391, 14, 65, 48274, 25, 2611, 574, 62, 9491, 13, 65, 48274, 1600, 366, 2611, 574, 62, 9491, 4943, 198 ]
2.043478
23
# Este programa muestra la suma de dos variables, de tipo int y float print("Este programa muestra la suma de dos variables, de tipo int y float") print("Tambin muestra que la variable que realiza la operacin es de tipo float") numero1 = 7 numero2 = 3.1416 sumadeambos = numero1 + numero2 print("El resultado de ...
[ 2, 412, 4169, 1430, 64, 38779, 395, 430, 8591, 2160, 64, 390, 23430, 9633, 11, 390, 8171, 78, 493, 331, 12178, 201, 198, 201, 198, 4798, 7203, 36, 4169, 1430, 64, 38779, 395, 430, 8591, 2160, 64, 390, 23430, 9633, 11, 390, 8171, 7...
2.709877
162
# -*- coding: utf-8 -*- from sklearn import preprocessing from torch.autograd import Variable from models_gat import GAT import os import torch import numpy as np import argparse import pickle import sklearn.metrics as metrics import cross_val import time import random torch.manual_seed(0) np.random.seed(0) random.s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1341, 35720, 1330, 662, 36948, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 4981, 62, 41268, 1330, 402, 1404, 198, 198, 11748, 28686, 198, 11748, ...
2.235147
4,797
import copy import numbers import struct from ._common import * from ._exif import * TIFF_HEADER_LENGTH = 8 def dump(exif_dict_original): """ py:function:: piexif.load(data) Return exif as bytes. :param dict exif: Exif data({"0th":dict, "Exif":dict, "GPS":dict, "Interop":dict, "1st":dict, "thumbn...
[ 11748, 4866, 198, 11748, 3146, 198, 11748, 2878, 198, 198, 6738, 47540, 11321, 1330, 1635, 198, 6738, 47540, 1069, 361, 1330, 1635, 628, 198, 51, 29267, 62, 37682, 1137, 62, 43, 49494, 796, 807, 628, 198, 4299, 10285, 7, 1069, 361, 62...
1.952814
2,861
import pygame import random from pygame import * pygame.init() width, height = 740, 500 screen = pygame.display.set_mode((width, height)) player = [pygame.transform.scale(pygame.image.load("Resources/Balljump-1(2).png"), (100,100)), pygame.t...
[ 11748, 12972, 6057, 198, 11748, 4738, 198, 198, 6738, 12972, 6057, 1330, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 198, 220, 220, 220, 220, 2...
2.300485
1,238
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from typing import Any, Dict from datadog_checks.base.stubs.aggregator import AggregatorStub from datadog_checks.datadog_cluster_agent import DatadogClusterAgentCheck from datadog_checks.dev.utils import ...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 33448, 12, 25579, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 357, 3826, 38559, 24290, 8, 198, 6738, 19720, 1330, 4377, 11, 360, 713,...
2.506452
620
import pylab import numpy import sys if (len(sys.argv) < 2): fn = raw_input("Please enter data file to be plotted\n") else: fn = sys.argv[1] data = np.loadtxt(fn) # if the first line contains crap use skiprows=1 #data = np.loadtxt(fn, skiprows=1) fig = pylab.figure() ax = fig.add_subplot(111) # if you wan...
[ 11748, 279, 2645, 397, 198, 11748, 299, 32152, 198, 11748, 25064, 198, 198, 361, 357, 11925, 7, 17597, 13, 853, 85, 8, 1279, 362, 2599, 198, 220, 220, 220, 24714, 796, 8246, 62, 15414, 7203, 5492, 3802, 1366, 2393, 284, 307, 37515, ...
2.236074
377
from __future__ import division from lib import env_config from lib.senior_env import BetterEnvironment from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import LinearAnnealedPolicy, BoltzmannQPolicy, EpsGreedyQPolicy from rl.memory import SequentialMemory from lib import models impor...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 9195, 1330, 17365, 62, 11250, 198, 6738, 9195, 13, 6248, 1504, 62, 24330, 1330, 11625, 31441, 198, 6738, 41927, 292, 13, 40085, 11341, 1330, 7244, 198, 6738, 374, 75, 13, 49638, 13, ...
2.924612
902
# I'm just the one that executes the instructions! import sys, math, json, operator, time import mcpi.minecraft as minecraft from PIL import Image as pillow from blockid import get_block import mcpi.block as block import functions as pymc from tqdm import tqdm import tkinter as tk # Functions # Main code mc = minecra...
[ 2, 314, 1101, 655, 262, 530, 326, 42985, 262, 7729, 0, 198, 11748, 25064, 11, 10688, 11, 33918, 11, 10088, 11, 640, 198, 11748, 285, 13155, 72, 13, 17761, 355, 6164, 3323, 198, 6738, 350, 4146, 1330, 7412, 355, 28774, 198, 6738, 251...
2.329787
752
#!/usr/bin/python import optparse import os import re import sys import cairo from gaphas.painter import Context, ItemPainter from gaphas.view import View import gaphor.UML as UML from gaphor.application import Application from gaphor.storage import storage def pkg2dir(package): """ Return directory path f...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 2172, 29572, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 198, 11748, 1275, 7058, 198, 6738, 308, 6570, 292, 13, 35436, 353, 1330, 30532, 11, 9097, 38490, 353, 198, ...
2.841176
170
# -*- coding: utf-8 -*- """ Created on Fri Apr 08 11:33:01 2016 @author: Leander Kotzur """ import tsib
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 8487, 1367, 25, 2091, 25, 486, 1584, 198, 198, 31, 9800, 25, 1004, 4066, 21702, 89, 333, 198, 37811, 628, 198, 11748, 40379, 571, ...
2.4
45
from abc import ABC, abstractmethod from collections import defaultdict from collections.abc import Sequence from functools import partial from itertools import product import numpy as np from pycompss.api.api import compss_wait_on from scipy.stats import rankdata from sklearn import clone from sklearn.model_selection...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 17268, 13, 39305, 1330, 45835, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 198, 11748, 299, 32152, 3...
3.641026
156
import os from django.test import TestCase from mock import patch from ui.views import parse_search_results FIXTURES_ROOT = os.path.join(os.path.dirname(__file__), 'fixtures') FX = lambda *relpath: os.path.join(FIXTURES_ROOT, *relpath)
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 15290, 1330, 8529, 198, 198, 6738, 334, 72, 13, 33571, 1330, 21136, 62, 12947, 62, 43420, 628, 198, 47084, 51, 29514, 62, 13252, 2394, 796, 28686, 13, ...
2.811765
85
""" Copyright (C) 2021 Clariteia SL This file is part of minos framework. Minos framework can not be copied and/or distributed without the express permission of Clariteia SL. """ from typing import ( Any, Type, )
[ 37811, 198, 15269, 357, 34, 8, 33448, 15420, 578, 544, 12419, 198, 198, 1212, 2393, 318, 636, 286, 949, 418, 9355, 13, 198, 198, 9452, 418, 9355, 460, 407, 307, 18984, 290, 14, 273, 9387, 1231, 262, 4911, 7170, 286, 15420, 578, 544,...
3.141026
78
""" Extensions for pylearn2 training algorithms. Those are either reimplemented to suit the execution model of this package, or new ones for recording metrics. """ import os import cPickle as pkl import numpy as np from pylearn2.train_extensions import TrainExtension from .abcs import Buildable
[ 37811, 198, 11627, 5736, 329, 279, 2349, 1501, 17, 3047, 16113, 13, 5845, 389, 2035, 21123, 1154, 12061, 284, 198, 6063, 262, 9706, 2746, 286, 428, 5301, 11, 393, 649, 3392, 329, 8296, 20731, 13, 198, 37811, 628, 198, 11748, 28686, 19...
3.642857
84
import asyncio from io import BytesIO import logging import os import random import time from typing import List from urllib.parse import urlparse import aiohttp from aiohttp import ClientSession, TCPConnector import requests from requests import Response from tqdm import tqdm from nogi import REQUEST_HEADERS from no...
[ 11748, 30351, 952, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 19720, 1330, 7343, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 11748,...
3.021459
233
from Jumpscale import j import signal from .. import templates DNSMASQ = "/bin/dnsmasq --conf-file=/etc/dnsmasq.conf -d"
[ 6738, 449, 8142, 38765, 1330, 474, 198, 11748, 6737, 198, 6738, 11485, 1330, 24019, 198, 198, 35, 8035, 31180, 48, 796, 12813, 8800, 14, 67, 5907, 5356, 80, 1377, 10414, 12, 7753, 33223, 14784, 14, 67, 5907, 5356, 80, 13, 10414, 532, ...
2.733333
45
hensu_int = 17 # hensu_float = 1.7 #() hensu_str = "HelloWorld" # hensu_bool = True # hensu_list = [] # hensu_tuple = () # hensu_dict = {} # print(type(hensu_int)) print(type(hensu_float)) print(type(hensu_str)) print(type(hensu_bool)) print(type(hensu_list)) print(type(hensu_tuple)) print(type(hensu_dict))
[ 831, 2385, 62, 600, 796, 1596, 1303, 198, 831, 2385, 62, 22468, 796, 352, 13, 22, 1303, 3419, 198, 831, 2385, 62, 2536, 796, 366, 15496, 10603, 1, 1303, 198, 831, 2385, 62, 30388, 796, 6407, 1303, 198, 831, 2385, 62, 4868, 796, 17...
2.296296
135