content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import discord from discord.ext import commands from omdb_api import * from tmdb_api import *
[ 11748, 36446, 201, 198, 6738, 36446, 13, 2302, 1330, 9729, 201, 198, 6738, 267, 9132, 65, 62, 15042, 1330, 1635, 201, 198, 6738, 256, 9132, 65, 62, 15042, 1330, 1635, 201, 198, 201, 198, 201, 198 ]
2.833333
36
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
[ 37811, 198, 220, 220, 220, 36579, 2969, 3792, 628, 220, 220, 220, 36579, 23113, 362, 13, 15, 318, 257, 3716, 290, 13097, 6884, 7679, 326, 25330, 7106, 6945, 262, 2478, 286, 597, 29724, 290, 36579, 3519, 5479, 13, 7221, 1143, 1088, 306...
3.579277
1,438
""" RANdom CHoice baseline (RANCH): random image from the target class """ import random import numpy as np import tensorflow_datasets as tfds from tqdm import tqdm # output_pattern = '/home/ec2-user/gan_submission_1/mnist/mnist_v2/ranch_baselines_%d' # tfds_name = 'mnist' # target_size = [28, 28, 1] # num_class = 1...
[ 37811, 198, 49, 1565, 3438, 5870, 2942, 14805, 357, 49, 1565, 3398, 2599, 4738, 2939, 422, 262, 2496, 1398, 198, 37811, 198, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 62, 19608, 292, 1039, 355,...
2.287654
810
import sqlite3, os con = sqlite3.connect('database.sqlite') im = con.cursor() tablo = """CREATE TABLE IF NOT EXISTS writes(day, topic, texti)""" deger = """INSERT INTO writes VALUES('oneDay', 'nmap', 'nmaple ilgili bisiler')""" im.execute(tablo) im.execute(deger) con.commit() im.execute("""SELECT * FROM writes""") ...
[ 11748, 44161, 578, 18, 11, 28686, 198, 198, 1102, 796, 44161, 578, 18, 13, 8443, 10786, 48806, 13, 25410, 578, 11537, 198, 320, 796, 369, 13, 66, 21471, 3419, 198, 198, 8658, 5439, 796, 37227, 43387, 6158, 43679, 16876, 5626, 7788, 17...
2.659259
135
import cv2 import numpy as np from basicsr.metrics.metric_util import reorder_image, to_y_channel def calculate_psnr(img1, img2, crop_border, input_order='HWC', test_y_channel=False): """Calculate PSNR (Peak Signal-to-Noise Ratio). ...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 19165, 81, 13, 4164, 10466, 13, 4164, 1173, 62, 22602, 1330, 302, 2875, 62, 9060, 11, 284, 62, 88, 62, 17620, 628, 198, 4299, 15284, 62, 862, 48624, 7, 9600, ...
2.145004
2,262
import os import numpy as np import torch from tqdm import tqdm from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils from skimage import io, transform from utils.Config import opt from skimage import exposure import matplotlib.pylab as plt from utils import array_tool as at from sk...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 6738, 28034, 10178, 1330, 31408, 1...
2.395193
4,036
import json import os.path as p from collections import defaultdict import pandas as pd from datasets import load_dataset from datasets import concatenate_datasets from datasets import Sequence, Value, Features, Dataset, DatasetDict from utils.tools import get_args f = Features( { "answers": Sequence( ...
[ 11748, 33918, 198, 11748, 28686, 13, 6978, 355, 279, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 40522, 1330, 3440, 62, 19608, 292, 316, 198, 6738, 40522, 1330, 1673, 36686, 378, 62, 19608,...
2.093661
1,751
import os import shutil import pyembroidery import test_fractals
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 12972, 368, 7957, 1304, 88, 198, 11748, 1332, 62, 69, 974, 874, 198 ]
3.095238
21
# Train the selected neural network model on spectrograms for birds and a few other classes. # Train the selected neural network model on spectrograms for birds and a few other classes. # To see command-line arguments, run the script with -h argument. import argparse import math import matplotlib.pyplot as plt import ...
[ 2, 16835, 262, 6163, 17019, 3127, 2746, 319, 5444, 3828, 9474, 329, 10087, 290, 257, 1178, 584, 6097, 13, 198, 2, 16835, 262, 6163, 17019, 3127, 2746, 319, 5444, 3828, 9474, 329, 10087, 290, 257, 1178, 584, 6097, 13, 198, 2, 1675, 7...
2.714286
1,813
from __future__ import division from numpy import ascontiguousarray, copy, ones, var from numpy_sugar.linalg import economic_qs from glimix_core.glmm import GLMMExpFam def estimate(pheno, lik, K, covs=None, verbose=True): r"""Estimate the so-called narrow-sense heritability. It supports Normal, Bernoulli, ...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 299, 32152, 1330, 355, 3642, 29709, 18747, 11, 4866, 11, 3392, 11, 1401, 198, 6738, 299, 32152, 62, 82, 35652, 13, 75, 1292, 70, 1330, 3034, 62, 48382, 198, 198, 6738, 16323, 844, ...
2.29352
787
import argparse, importlib, sys import pyrat from pyrat import name, version, logger # This returns a function to be called by a subparser below # We assume in the tool's submodule there's a function called 'start(args)' # That takes over the execution of the program. if __name__ == '__main__': # create the t...
[ 11748, 1822, 29572, 11, 1330, 8019, 11, 25064, 198, 198, 11748, 279, 2417, 265, 198, 6738, 279, 2417, 265, 1330, 1438, 11, 2196, 11, 49706, 628, 198, 2, 770, 5860, 257, 2163, 284, 307, 1444, 416, 257, 22718, 28198, 2174, 198, 2, 775...
2.731992
944
from .objectview import to_json, from_json
[ 6738, 764, 15252, 1177, 1330, 284, 62, 17752, 11, 422, 62, 17752, 628, 198 ]
3.214286
14
#!/usr/bin/env python3 """Longest Collatz sequence. The following iterative sequence is defined for the set of positive integers: n n/2 (n is even) n 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 40 20 10 5 16 8 4 2 1 It can be seen that this seque...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 37811, 14617, 395, 7778, 27906, 8379, 13, 198, 198, 464, 1708, 11629, 876, 8379, 318, 5447, 198, 1640, 262, 900, 286, 3967, 37014, 25, 198, 198, 77, 220, 299, 14, 17, 357, ...
2.645889
754
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.284685
555
from weldx.asdf.util import dataclass_serialization_class from weldx.measurement import SignalSource __all__ = ["SignalSource", "SignalSourceConverter"] SignalSourceConverter = dataclass_serialization_class( class_type=SignalSource, class_name="measurement/source", version="0.1.0" )
[ 6738, 26650, 87, 13, 292, 7568, 13, 22602, 1330, 4818, 330, 31172, 62, 46911, 1634, 62, 4871, 198, 6738, 26650, 87, 13, 1326, 5015, 434, 1330, 26484, 7416, 198, 198, 834, 439, 834, 796, 14631, 11712, 282, 7416, 1600, 366, 11712, 282, ...
2.969388
98
""" GraphSense API GraphSense API # noqa: E501 The version of the OpenAPI document: 0.5.1 Generated by: https://openapi-generator.tech """ import unittest import graphsense from graphsense.api.entities_api import EntitiesApi # noqa: E501 if __name__ == '__main__': unittest.main()
[ 37811, 198, 220, 220, 220, 29681, 41166, 7824, 628, 220, 220, 220, 29681, 41166, 7824, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 383, 2196, 286, 262, 4946, 17614, 3188, 25, 657, 13, 20, 13, 16, 198, 220, 220, 220, ...
2.681034
116
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import os import unittest import pure_interface
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, ...
3.204082
49
from dataclasses import dataclass from bindings.wfs.get_capabilities_type_2 import GetCapabilitiesType2 __NAMESPACE__ = "http://www.opengis.net/wfs/2.0"
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 34111, 13, 86, 9501, 13, 1136, 62, 11128, 5738, 62, 4906, 62, 17, 1330, 3497, 15610, 5738, 6030, 17, 198, 198, 834, 45, 29559, 47, 11598, 834, 796, 366, 4023, 1378, 2503, 13...
2.719298
57
""" This module is to define how TimeStamp model is represented in the Admin site It also registers the model to be shown in the admin site .. seealso:: :class:`..models.TimeStamp` """ from django.contrib import admin from .models import TimeStamp admin.site.register(TimeStamp,TimeStampAdmin) # Registers the ...
[ 37811, 198, 1212, 8265, 318, 284, 8160, 703, 3862, 1273, 696, 2746, 318, 7997, 287, 262, 32053, 2524, 198, 1026, 635, 28441, 262, 2746, 284, 307, 3402, 287, 262, 13169, 2524, 220, 198, 198, 492, 766, 14508, 3712, 1058, 4871, 25, 63, ...
3.527778
108
from setuptools import setup, find_packages setup( name='izeni-django-accounts', version='1.1.2a', namespace_packages=['izeni', 'izeni.django'], packages=find_packages(), include_package_data=True, author='Izeni, Inc.', author_email='django-accounts@izeni.com', description=open('README....
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 33977, 72, 12, 28241, 14208, 12, 23317, 82, 3256, 198, 220, 220, 220, 2196, 11639, 16, 13, 16, 13, 17, 64, 3256, 198, 2...
2.189024
328
# Copyright (c) Ville de Montreal. All rights reserved. # Licensed under the MIT license. # See LICENSE file in the project root for full license information. import os import json import torch import argparse import datetime from utils.factories import ModelFactory, OptimizerFactory, TrainerFactory if __name__ == "...
[ 2, 15069, 357, 66, 8, 569, 8270, 390, 12871, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 2, 4091, 38559, 24290, 2393, 287, 262, 1628, 6808, 329, 1336, 5964, 1321, 13, 198, 198, 11748, 28686, 198, 11748,...
2.4775
1,200
""" Generate the wavelength templates for SOAR Goodman""" import os from pypeit.core.wavecal import templates from IPython import embed if __name__ == '__main__': soar_goodman_400(overwrite=True)
[ 37811, 2980, 378, 262, 28400, 24019, 329, 12809, 1503, 33318, 37811, 198, 11748, 28686, 198, 198, 6738, 279, 2981, 270, 13, 7295, 13, 19204, 9948, 1330, 24019, 198, 198, 6738, 6101, 7535, 1330, 11525, 628, 198, 361, 11593, 3672, 834, 66...
3.274194
62
from simple_playgrounds.entities.agents.sensors.sensor import * from simple_playgrounds.entities.agents.sensors.semantic_sensors import * from collections import defaultdict from pymunk.vec2d import Vec2d import math #@SensorGenerator.register('lidar')
[ 6738, 2829, 62, 1759, 40520, 13, 298, 871, 13, 49638, 13, 82, 641, 669, 13, 82, 22854, 1330, 1635, 198, 6738, 2829, 62, 1759, 40520, 13, 298, 871, 13, 49638, 13, 82, 641, 669, 13, 43616, 5109, 62, 82, 641, 669, 1330, 1635, 198, ...
3.1875
80
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
#!/bin/python import sys, os, re, subprocess, math import argparse import psutil from pysam import pysam from Bio import SeqIO import numpy as np import numpy.random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt #import seaborn as sns import pandas as pd import scipy.stats from scipy.stats imp...
[ 2, 48443, 8800, 14, 29412, 198, 11748, 25064, 11, 28686, 11, 302, 11, 850, 14681, 11, 10688, 198, 11748, 1822, 29572, 198, 11748, 26692, 22602, 198, 6738, 279, 893, 321, 1330, 279, 893, 321, 198, 6738, 16024, 1330, 1001, 80, 9399, 198...
2.731744
1,342
# -*- coding: utf-8 from django.http import JsonResponse, HttpResponse # from commons.settings import ARCHON_HOST
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 11, 367, 29281, 31077, 198, 198, 2, 422, 36523, 13, 33692, 1330, 5923, 3398, 1340, 62, 39, 10892, 628 ]
2.925
40
import unittest from algorithm import NQueens
[ 11748, 555, 715, 395, 198, 198, 6738, 11862, 1330, 399, 15681, 641, 628 ]
3.692308
13
import functools from dataclasses import dataclass from itertools import combinations import click import syntropy_sdk as sdk from syntropy_sdk import utils from syntropynac.exceptions import ConfigureNetworkError from syntropynac.fields import ALLOWED_PEER_TYPES, ConfigFields, PeerState, PeerType def resolve_ag...
[ 11748, 1257, 310, 10141, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 198, 11748, 3904, 198, 11748, 7419, 28338, 62, 21282, 74, 355, 264, 34388, 198, 6738, 7419, 28338, 62, 21282, 74...
2.189368
7,393
"""This module contains the implementation of the cluster node interface.""" import datetime from typing import Optional, Any, Callable import bitmath import fabric.operations import fabric.tasks import fabric.decorators from fabric.exceptions import CommandTimeout from fabric.state import env from idact.core.retry ...
[ 37811, 1212, 8265, 4909, 262, 7822, 286, 262, 13946, 10139, 7071, 526, 15931, 198, 198, 11748, 4818, 8079, 198, 6738, 19720, 1330, 32233, 11, 4377, 11, 4889, 540, 198, 198, 11748, 1643, 11018, 198, 11748, 9664, 13, 3575, 602, 198, 11748...
3.140511
548
"""create table for hierarchy of accounts Revision ID: 17fb1559a5cd Revises: 3b7de32aebed Create Date: 2015-09-16 14:20:30.972593 """ # revision identifiers, used by Alembic. revision = '17fb1559a5cd' down_revision = '3b7de32aebed' branch_labels = None depends_on = None from alembic import op, context import sqlalc...
[ 37811, 17953, 3084, 329, 18911, 286, 5504, 198, 198, 18009, 1166, 4522, 25, 1596, 21855, 1314, 3270, 64, 20, 10210, 198, 18009, 2696, 25, 513, 65, 22, 2934, 2624, 64, 1765, 276, 198, 16447, 7536, 25, 1853, 12, 2931, 12, 1433, 1478, ...
2.601563
128
from __future__ import unicode_literals, division, absolute_import import os from tests import FlexGetBase
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 7297, 11, 4112, 62, 11748, 198, 11748, 28686, 198, 6738, 5254, 1330, 26719, 3855, 14881, 628 ]
4
27
""" Problem 1 of Chapter 8 in CtCi Triple Step: A child is running up a staircase with N steps and can hop either 1 step, 2 steps, or 3 steps at a time. Return the number of possible ways exist this can be done. General idea of the solution: At any step N, the child must necessarily come from the steps N-3, N-2 or N-1...
[ 37811, 198, 40781, 352, 286, 7006, 807, 287, 43166, 34, 72, 198, 14824, 1154, 5012, 25, 317, 1200, 318, 2491, 510, 257, 27656, 351, 399, 4831, 290, 460, 1725, 2035, 198, 16, 2239, 11, 362, 4831, 11, 393, 513, 4831, 379, 257, 640, ...
2.5
756
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') from Docker import Docker j.tools.docker = Docker()
[ 6738, 15903, 29990, 1330, 474, 198, 73, 13, 8692, 13, 29356, 13, 15883, 10493, 7, 73, 11, 705, 31391, 11537, 198, 6738, 25716, 1330, 25716, 198, 73, 13, 31391, 13, 45986, 796, 25716, 3419, 628 ]
3.342857
35
#!/usr/bin/env python2 import sys import socket import datetime import math import time from time import sleep # The c binary for controlling the stepper motor is loaded via ctypes from ctypes import * stepper_lib = cdll.LoadLibrary('./stepper.so') # buffer containing the incomplete commands recvBuffer = str() # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 198, 11748, 25064, 198, 11748, 17802, 198, 11748, 4818, 8079, 198, 11748, 10688, 198, 11748, 640, 198, 6738, 640, 1330, 3993, 198, 198, 2, 383, 269, 13934, 329, 12755, 262, 2876, 2...
3.352941
170
import os import math import sys from typing import List, Tuple # for kaggle-environments from abn.game_ext import GameExtended from abn.jobs import Task, Job, JobBoard from abn.actions import Actions from lux.game_map import Position, Cell, RESOURCE_TYPES from lux.game_objects import City from lux.game_constants impo...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 25064, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 2, 329, 479, 9460, 293, 12, 268, 12103, 198, 6738, 450, 77, 13, 6057, 62, 2302, 1330, 3776, 11627, 1631, 198, 6738, 450, 77, ...
2.775449
334
from copy import copy from tkinter import * from tkinter import ttk from src import app_data from src.CharData.augment import Cyberware from src.Tabs.notebook_tab import NotebookTab from src.statblock_modifier import StatMod from src.utils import treeview_get, recursive_treeview_fill, calculate_attributes, get_variabl...
[ 6738, 4866, 1330, 4866, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, 198, 6738, 12351, 1330, 598, 62, 7890, 198, 6738, 12351, 13, 12441, 6601, 13, 559, 5154, 1330, 15101, 1574, 198, 6738, 1235...
2.187947
979
from datadog import initialize, statsd import time import random import os options = { 'statsd_host':os.environ['DD_AGENT_HOST'], 'statsd_port':8125 } initialize(**options) i = 0 while(1): i += 1 r = random.randint(0, 1000) statsd.gauge('mymetric',r , tags=["environment:dev"]) time.sleep(int(os.envi...
[ 6738, 4818, 324, 519, 1330, 41216, 11, 9756, 67, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 28686, 198, 198, 25811, 796, 1391, 198, 220, 220, 220, 705, 34242, 67, 62, 4774, 10354, 418, 13, 268, 2268, 17816, 16458, 62, 4760, 3525, ...
2.442029
138
n = [0,0,0,0,0,0,0,0,0,0] t = [0,0,0,0,0,0,0,0,0,0] c=0 while(c<10): n[c]=input("Digite o nome") t[c]=input("Digite o telefone") c+=1 const="" while(const!="fim"): cons=input("Digite nome a consultar") if(n[c]==const): print(f"TEl: {t[c]}") c+=1
[ 77, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 60, 198, 83, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 60, 198, 66, 28, 15, 198,...
1.64881
168
#!/usr/bin/env python3 """A flask server for Robojam""" import json import time from io import StringIO import pandas as pd import tensorflow as tf import robojam from tensorflow.compat.v1.keras import backend as K from flask import Flask, request from flask_cors import CORS # Start server. tf.compat.v1.logging.set_v...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 32, 42903, 4382, 329, 3851, 13210, 321, 37811, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 33245, 1330, 10903, 9399, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 11192...
1.85817
4,174
from datetime import datetime import os import re import subprocess from . import app, celery, db from .database import Job
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 850, 14681, 198, 198, 6738, 764, 1330, 598, 11, 18725, 1924, 11, 20613, 198, 6738, 764, 48806, 1330, 15768, 628, 198 ]
3.628571
35
from setuptools import setup setup( name="python-sdk-example", version="0.1", description="The dispatch model loader - lambda part.", url="https://github.com/garethrylance/python-sdk-example", author="Gareth Rylance", author_email="gareth@rylance.me.uk", packages=["example_sdk"], instal...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 29412, 12, 21282, 74, 12, 20688, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 1600, 198, 220, 220, 220, 6764, 2625, 464, 27965, 2746, 4021...
2.679426
209
### IMPORTS import json import glob import string import random import spacy from spacy.lang.en.stop_words import STOP_WORDS import markovify ### CONSTANTS/GLOBALS/LAMBDAS SYMBOLS_TO_RM = tuple(list(string.punctuation) + ['\xad']) NUMBERS_TO_RM = tuple(string.digits) spacy.prefer_gpu() NLP_ENGINE = spacy.load("en_c...
[ 21017, 30023, 33002, 198, 11748, 33918, 220, 198, 11748, 15095, 198, 11748, 4731, 198, 11748, 4738, 198, 198, 11748, 599, 1590, 198, 6738, 599, 1590, 13, 17204, 13, 268, 13, 11338, 62, 10879, 1330, 44934, 62, 45359, 5258, 198, 11748, 13...
2.325318
707
#/********************************************************************************** # Copyright (c) 2021 Joseph Reeves and Cayden Codel, Carnegie Mellon University # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), t...
[ 2, 14, 17174, 17174, 8412, 1174, 198, 2, 15069, 357, 66, 8, 33448, 7212, 41533, 290, 28335, 6559, 18720, 417, 11, 33976, 49808, 2059, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727,...
2.414852
2,572
import pathlib import pytest from betel import app_page_scraper from betel import betel_errors from betel import utils ICON_HTML = """ <img src="%s" class="T75of sHb2Xb"> """ CATEGORY_HTML = """ <a itemprop="genre">Example</a> """ FILTERED_CATEGORY_HTML = """ <a itemprop="genre">Filtered</a> """ SIMPLE_HTML = """ <...
[ 11748, 3108, 8019, 198, 11748, 12972, 9288, 198, 6738, 731, 417, 1330, 598, 62, 7700, 62, 1416, 38545, 198, 6738, 731, 417, 1330, 731, 417, 62, 48277, 198, 6738, 731, 417, 1330, 3384, 4487, 198, 198, 2149, 1340, 62, 28656, 796, 37227,...
2.333333
387
#!/usr/bin/python3 """add.py""" from sys import argv import datetime import sqlite3 import pathlib PATH = pathlib.Path.cwd() HELP_TEXT = ''' Usage: add.py [-h] directory -h, --help bring up this help message directory directory with certs to add ''' def add_certs(cert_dir: str) -> None: """...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 2860, 13, 9078, 37811, 198, 198, 6738, 25064, 1330, 1822, 85, 198, 11748, 4818, 8079, 198, 11748, 44161, 578, 18, 198, 11748, 3108, 8019, 198, 198, 34219, 796, 3108, 8019, 13, 1523...
2.143629
1,295
# -*- coding: utf-8 -*- """ Created with IntelliJ IDEA. Description: User: jinhuichen Date: 3/28/2018 4:17 PM Description: """ from mrq.dashboard.app import main if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 220, 198, 37811, 198, 15622, 351, 2558, 23225, 41, 4522, 16412, 13, 198, 12489, 25, 198, 11787, 25, 474, 259, 13415, 41437, 198, 7536, 25, 513, 14, 2078, 14, 7908, 604, 25,...
2.488095
84
#!/usr/bin/env python3 if __name__ == '__main__': s = input() for f in (reverse_words, reverse_words_ext): print(f(s))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 264, 796, 5128, 3419, 198, 220, 220, 220, 329, 277, 287, 357, 50188, 62, 10879, 11, 9575, ...
2.206349
63
import requests
[ 11748, 7007, 628 ]
5.666667
3
""" Python Curve Generator @Guilherme Trevisan - github.com/TrevisanGMW/gt-tools - 2020-01-02 1.1 - 2020-01-03 Minor patch adjustments to the script 1.2 - 2020-06-07 Fixed random window widthHeight issue. Updated naming convention to make it clearer. (PEP8) Added length checker for selection befor...
[ 37811, 201, 198, 11361, 46300, 35986, 201, 198, 2488, 8205, 346, 372, 1326, 4700, 4703, 272, 532, 33084, 13, 785, 14, 31055, 4703, 272, 38, 14326, 14, 13655, 12, 31391, 532, 12131, 12, 486, 12, 2999, 201, 198, 220, 201, 198, 352, 13...
2.883019
530
import pygame from config import Config from core.ui import Table, Button from core.scene import Scene from core.manager import SceneManager from core.scene.preload import Preload
[ 11748, 12972, 6057, 198, 198, 6738, 4566, 1330, 17056, 198, 6738, 4755, 13, 9019, 1330, 8655, 11, 20969, 198, 6738, 4755, 13, 29734, 1330, 28315, 198, 6738, 4755, 13, 37153, 1330, 28315, 13511, 198, 6738, 4755, 13, 29734, 13, 3866, 2220...
4.090909
44
from __future__ import absolute_import from __future__ import print_function from __future__ import division from mwptoolkit.module.Encoder import graph_based_encoder,rnn_encoder,transformer_encoder
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 285, 86, 457, 970, 15813, 13, 21412, 13, 27195, 12342, 1330, 4823, 62, 3106, 62, ...
3.6
55
# Copyright 2010 Alon Zakai ('kripken'). All rights reserved. # This file is part of Syntensity/the Intensity Engine, an open source project. See COPYING.txt for licensing. from intensity.signals import client_connect, client_disconnect from intensity.base import quit client_connect.connect(add, weak=False) ...
[ 198, 2, 15069, 3050, 978, 261, 32605, 1872, 19203, 74, 5528, 3464, 27691, 1439, 2489, 10395, 13, 198, 2, 770, 2393, 318, 636, 286, 26375, 6377, 14, 1169, 2558, 6377, 7117, 11, 281, 1280, 2723, 1628, 13, 4091, 27975, 45761, 13, 14116, ...
3.435185
108
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.0" __maintainer__ = "Ricardo Ribeiro" __email__ = "ricardojvr@gmail.com" __status__ = "Development" import time from datetime import datetime, ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 220, 220, 220, 220, 220, 796, 366, 49, 291, 13109, 23133, 68, 7058, 1, 198, 834, 66, 20696, 834, 220,...
2.208054
149
""" Created by vcokltfre at 2020-07-08 """ import json import logging import time from datetime import datetime import discord from discord.ext import commands from discord.ext.commands import has_any_role
[ 37811, 198, 41972, 416, 410, 66, 482, 2528, 19503, 379, 12131, 12, 2998, 12, 2919, 198, 37811, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 36446, 198, 6738, 36446, 13,...
3.483333
60
import inspect import logging from collections import OrderedDict from functools import wraps from typing import TYPE_CHECKING, Any, Callable, Optional, Type, Union, cast, overload from django.core.paginator import InvalidPage, Page, Paginator from django.db.models import QuerySet from django.http import HttpRequest f...
[ 11748, 10104, 198, 11748, 18931, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 4889, 540, 11, 32233, 11, 5994, 11, 4479, 11, 3350, ...
2.707469
964
# !/usr/bin/python3 from tkinter import * top = Tk() top.geometry("400x250") name = Label(top, text = "Name").place(x = 30,y = 50) email = Label(top, text = "Email").place(x = 30, y = 90) password = Label(top, text = "Password").place(x = 30, y = 130) sbmitbtn = Button(top, text = "Submit",act...
[ 2, 5145, 14, 14629, 14, 8800, 14, 29412, 18, 220, 220, 198, 220, 220, 198, 6738, 256, 74, 3849, 1330, 1635, 220, 220, 198, 220, 220, 198, 4852, 796, 309, 74, 3419, 220, 220, 198, 220, 220, 198, 4852, 13, 469, 15748, 7203, 7029, ...
2.279167
240
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 22:16 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 21, 319, 1584, 12, 3312, 12, 3312, 2534, 25, 1433, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.719298
57
from django.urls import path from toys.views import (toy_list_view, toy_detail_view, toy_sql_view, toy_raw_sql_view, toy_aggregate_view) app_name = "toys" urlpatterns = [ path("toys/", toy_list_view, name="toys_list"), path("toys_sql/", toy_sql_view, name="toys_sql_list"), path("to...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 14958, 13, 33571, 1330, 357, 83, 726, 62, 4868, 62, 1177, 11, 13373, 62, 49170, 62, 1177, 11, 13373, 62, 25410, 62, 1177, 11, 13373, 62, 1831, 62, 25410, 62, 1177, 11, 198, ...
2.197368
228
'''This script goes along the blog post "Building powerful image classification models using very little data" from blog.keras.io. It uses data that can be downloaded at: https://www.kaggle.com/c/dogs-vs-cats/data In our setup, we: - created a data/ folder - created train/ and validation/ subfolders inside data/ - crea...
[ 7061, 6, 1212, 4226, 2925, 1863, 262, 4130, 1281, 198, 1, 25954, 3665, 2939, 17923, 4981, 1262, 845, 1310, 1366, 1, 198, 6738, 4130, 13, 6122, 292, 13, 952, 13, 198, 1026, 3544, 1366, 326, 460, 307, 15680, 379, 25, 198, 5450, 1378, ...
2.665713
2,097
""" TODO: Once I finish the d zero and high paper, I will port the code here. TODO: also put the epochs training, for the ml vs maml paper with synthetic data. """
[ 37811, 198, 51, 3727, 46, 25, 4874, 314, 5461, 262, 288, 6632, 290, 1029, 3348, 11, 314, 481, 2493, 262, 2438, 994, 13, 198, 51, 3727, 46, 25, 635, 1234, 262, 36835, 82, 3047, 11, 329, 262, 25962, 3691, 285, 43695, 3348, 351, 1851...
3.395833
48
from setuptools import setup from os import path # read the contents of your README file curr_dir = path.abspath(path.dirname(__file__)) with open(path.join(curr_dir, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="kedro-light", version="0.1", description="A lightweight...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 28686, 1330, 3108, 628, 198, 2, 1100, 262, 10154, 286, 534, 20832, 11682, 2393, 198, 22019, 81, 62, 15908, 796, 3108, 13, 397, 2777, 776, 7, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4...
2.671815
259
import random from flask import Flask, request, render_template, jsonify app = Flask(__name__) data_list = [] with open('data.txt', 'r') as data_file: data_list = data_file.readlines() if __name__ == "__main__": app.run(host='0.0.0.0')
[ 11748, 4738, 201, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 8543, 62, 28243, 11, 33918, 1958, 201, 198, 201, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 201, 198, 201, 198, 7890, 62, 4868, 796, 17635, 201, 198, 4480, 1280, 10786...
2.433962
106
# -*- coding: utf-8 -*- """Plotting.py for notebook 05_Preliminary_comparison_of_simulations_AGN_fraction_with_data This python file contains all the functions used for plotting graphs and maps in the 2nd notebook (.ipynb) of the repository: 05. Preliminary comparison of the MM between simulation and data Script writ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 43328, 889, 13, 9078, 329, 20922, 8870, 62, 47, 2411, 38429, 62, 785, 1845, 1653, 62, 1659, 62, 14323, 5768, 62, 4760, 45, 62, 69, 7861, 62, 4480, 62, 7890, 1...
2.185083
4,733
"""Small lightweight utilities used frequently in GOATOOLS.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" def extract_kwargs(args, exp_keys, exp_elems): """Return user-specified keyword args in a dictionary and a set (for True/False ite...
[ 37811, 18712, 18700, 20081, 973, 6777, 287, 10351, 1404, 31559, 50, 526, 15931, 198, 198, 834, 22163, 4766, 834, 796, 366, 15269, 357, 34, 8, 1584, 12, 7908, 11, 29854, 14770, 404, 69, 37975, 11, 367, 18816, 11, 1439, 2489, 10395, 526...
2.604348
690
description = 'Monitors the status of the Forwarder' devices = dict( KafkaForwarder=device( 'nicos_ess.devices.forwarder.EpicsKafkaForwarder', description='Monitors the status of the Forwarder', statustopic='UTGARD_forwarderStatus', brokers=['172.30.242.20:9092']), )
[ 11213, 796, 705, 9069, 6742, 262, 3722, 286, 262, 19530, 263, 6, 198, 198, 42034, 796, 8633, 7, 198, 220, 220, 220, 46906, 39746, 263, 28, 25202, 7, 198, 220, 220, 220, 220, 220, 220, 220, 705, 6988, 418, 62, 408, 13, 42034, 13, ...
2.512195
123
from argparse import ArgumentParser import logging from .config import Config import sys
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 11748, 18931, 198, 6738, 764, 11250, 1330, 17056, 198, 11748, 25064, 628 ]
4.736842
19
""" Methods for building Cognoma mutation classifiers Usage - Import only """ import pandas as pd from sklearn.metrics import roc_curve, roc_auc_score import plotnine as gg def get_model_coefficients(classifier, feature_set, covariate_names): """ Extract the feature names and associate them with the coeffi...
[ 37811, 198, 46202, 329, 2615, 26543, 6086, 15148, 1398, 13350, 198, 198, 28350, 532, 17267, 691, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 686, 66, 62, 22019, 303, 11, 686, 6...
2.571513
1,692
from subprocess import run cmds = [ "3-way-merge", "ci", "help", "push", "stash", "add", "clean", "hook", "rebuild", "status", "addremove", "clone", "http", "reconstruct", "sync", "alerts", "close", "import", "redo", "tag", "all", ...
[ 6738, 850, 14681, 1330, 1057, 198, 198, 28758, 82, 796, 685, 198, 220, 220, 220, 366, 18, 12, 1014, 12, 647, 469, 1600, 198, 220, 220, 220, 366, 979, 1600, 198, 220, 220, 220, 366, 16794, 1600, 198, 220, 220, 220, 366, 14689, 1600...
1.818182
957
_msvc_copts = ["/std:c++17"] _clang_cl_copts = ["/std:c++17"] _gcc_copts = ["-std=c++17"] copts = select({ "@bazel_tools//tools/cpp:msvc": _msvc_copts, "@bazel_tools//tools/cpp:clang-cl": _clang_cl_copts, "//conditions:default": _gcc_copts, })
[ 62, 907, 28435, 62, 22163, 912, 796, 14631, 14, 19282, 25, 66, 4880, 1558, 8973, 198, 62, 565, 648, 62, 565, 62, 22163, 912, 796, 14631, 14, 19282, 25, 66, 4880, 1558, 8973, 198, 62, 70, 535, 62, 22163, 912, 796, 14631, 12, 19282,...
1.992248
129
import logging import sys from trillian import TrillianLog from print_helper import Print from pprint import pprint if __name__ == '__main__': main(sys.argv)
[ 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 491, 37896, 1330, 833, 37896, 11187, 198, 6738, 3601, 62, 2978, 525, 1330, 12578, 198, 6738, 279, 4798, 1330, 279, 4798, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, ...
3.074074
54
""" Units module URLs """ from django.conf.urls import url, include from django.urls import path from rest_framework import routers from .viewsets import UnitSystemViewset, UnitViewset, \ ConvertView, CustomUnitViewSet from geocurrency.calculations.viewsets import ValidateViewSet, CalculationView app_name = 'uni...
[ 37811, 198, 3118, 896, 8265, 32336, 198, 37811, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, ...
2.635542
332
from tabular import *
[ 6738, 7400, 934, 1330, 1635, 198 ]
3.666667
6
from django.contrib import admin from django.urls import include, path from rest_framework import routers from .shifts.views import ShiftView from .workers.views import WorkerView router = routers.DefaultRouter() router.register("workers", WorkerView) router.register("shifts", ShiftView) urlpatterns = [ path("ad...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, 764, 1477, 19265, 13, 33571, 1330, 15576, 7680, 198, 6738, 764, 22896,...
3.165289
121
from __future__ import division import numpy as np from scipy import integrate __all__ = ['area', 'simple']
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 19386, 198, 198, 834, 439, 834, 796, 37250, 20337, 3256, 705, 36439, 20520, 198, 220, 220, 220, 220, 628 ]
3.108108
37
# **************************************************************************** # # # # ::: :::::::: # # randominette.py :+: :+: :+: ...
[ 2, 41906, 17174, 46068, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.567976
662
# -*- coding: utf-8 -*- """This module provides a way to initialize components for processing pipeline. Init functions are stored into a dictionary which can be used by `Pipeline` to load components on demand. """ from .pipeline import Byte2html, Html2text, Html2image, Html2meta, Text2title def build_factories(): ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 1212, 8265, 3769, 257, 835, 284, 41216, 6805, 329, 7587, 198, 79, 541, 4470, 13, 198, 198, 31768, 5499, 389, 8574, 656, 257, 22155, 543, 460, 307, 973, 416, 460...
2.862595
262
def sampler(self, z, y=None): '''generate iamge given z''' with tf.variable_scope("generator") as scope: # we hope the weights defined in generator to be reused scope.reuse_variables() if not self.y_dim: s_h, s_w = self.output_height, self.output_width s_h2, s_w2 = conv_ou...
[ 198, 220, 825, 6072, 20053, 7, 944, 11, 1976, 11, 331, 28, 14202, 2599, 198, 220, 220, 220, 705, 7061, 8612, 378, 1312, 321, 469, 1813, 1976, 7061, 6, 628, 220, 220, 220, 351, 48700, 13, 45286, 62, 29982, 7203, 8612, 1352, 4943, 3...
1.765865
2,080
## how we measure the similarity between two lists w/ IC per each node ## we have a DAG strucutre ## goal is for each Gene !! output a 'semantic distance' # based on https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2756558/ [but different] # with this two equal nodes will have distance '0' # maximum distance is -2log(1/...
[ 2235, 703, 356, 3953, 262, 26789, 1022, 734, 8341, 266, 14, 12460, 583, 1123, 10139, 198, 2235, 356, 423, 257, 360, 4760, 2874, 8968, 260, 198, 2235, 3061, 318, 329, 1123, 13005, 37867, 5072, 257, 705, 43616, 5109, 5253, 6, 198, 2, ...
2.909091
154
import tfgraph
[ 11748, 48700, 34960, 628, 628 ]
3.6
5
# -*- coding: utf-8 -*- """ :mod:`haystack.outputs` -- classes that create an output ============================================================================== """ from haystack import utils
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 25, 4666, 25, 63, 71, 323, 25558, 13, 22915, 82, 63, 1377, 6097, 326, 2251, 281, 5072, 198, 23926, 25609, 855, 198, 198, 37811, 198, 198, 6738, 27678,...
3.96
50
#!/usr/bin/python3 import sys # f=open("reduce3.csv","w+") di={} for y in sys.stdin: Record=list(map(str,y.split(","))) if(len(Record)>3): Record=[Record[0]+","+Record[1],Record[2],Record[3]] s=int(Record[2][:-1]) if (Record[0],Record[1]) not in di: di[(Record[0],Record[1])]=[s,1] else: di[(Record[0],Record[...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 25064, 198, 2, 277, 28, 9654, 7203, 445, 7234, 18, 13, 40664, 2430, 86, 10, 4943, 198, 10989, 34758, 92, 198, 1640, 331, 287, 25064, 13, 19282, 259, 25, 198, 197, 23739, 28, 48...
1.823699
346
# Copyright 2017-present, Bill & Melinda Gates Foundation # # 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 ...
[ 2, 15069, 2177, 12, 25579, 11, 3941, 1222, 5616, 22261, 15953, 5693, 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.45424
2,382
from setuptools import setup, find_packages with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name="neureca", version="0.0.1", description="A framework for building conversational recommender systems", long_description=long_description, long_description_content_...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 21004, 2625, 40477, 12, 23, 4943, 355, 277, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 13, 961, 3419, 198, 19...
2.126235
911
### # Thread rlock test. # # License - MIT. ### import time from threading import Thread, RLock # thread_test2 - Thread test2 function. # } # thread_test1 - Thread test1 function. # } # Main function. # } # Program entry. if '__main__' == __name__: main()
[ 21017, 198, 2, 14122, 374, 5354, 1332, 13, 198, 2, 220, 198, 2, 13789, 532, 17168, 13, 198, 21017, 198, 198, 11748, 640, 198, 6738, 4704, 278, 1330, 14122, 11, 371, 25392, 628, 198, 2, 4704, 62, 9288, 17, 532, 14122, 1332, 17, 216...
2.765306
98
import shutil import tempfile from indigo.bingo import Bingo from tests import TestIndigoBase
[ 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 198, 6738, 773, 14031, 13, 4623, 78, 1330, 21631, 78, 198, 198, 6738, 5254, 1330, 6208, 5497, 14031, 14881, 628 ]
3.464286
28
# Copyright 2008-2018 Univa Corporation # # 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...
[ 2, 15069, 3648, 12, 7908, 791, 12151, 10501, 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.585253
217
from power_sizing import calculate_power_luminance from power_sizing import calculate_number_and_power_of_tugs from conductor_sizing import conduction_capacity from conductor_sizing import minimum_section from conductor_sizing import voltage_drop from conductor_sizing import harmonic_rate from neutral_sizing import get...
[ 6738, 1176, 62, 82, 2890, 1330, 15284, 62, 6477, 62, 75, 7230, 590, 198, 6738, 1176, 62, 82, 2890, 1330, 15284, 62, 17618, 62, 392, 62, 6477, 62, 1659, 62, 83, 10339, 198, 6738, 39206, 62, 82, 2890, 1330, 369, 11124, 62, 42404, 19...
3.092896
732
# Generated by Django 3.1.6 on 2021-05-15 11:46 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2713, 12, 1314, 1367, 25, 3510, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#! /usr/bin/env python # -*- coding: utf-8 -*- # # >> # python-eventide, 2020 # LiveViewTech # << from uuid import UUID, uuid4 from datetime import datetime from operator import attrgetter from functools import total_ordering from dataclasses import ( field, asdict, fields, dataclass, _process_...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 9609, 198, 2, 220, 220, 21015, 12, 15596, 485, 11, 12131, 198, 2, 220, 220, 7547, 7680, 17760, 198, ...
2.878049
697
#!/usr/bin/env python3.6 # -*- coding: utf8 -*- ''' ELQuent.minifier E-mail code minifier Mateusz Dbrowski github.com/MateuszDabrowski linkedin.com/in/mateusz-dabrowski-marketing/ ''' import os import re import sys import json import pyperclip from colorama import Fore, Style, init # ELQuent imports import utils.ap...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 3698, 4507, 298, 13, 1084, 7483, 198, 36, 12, 4529, 2438, 949, 7483, 198, 198, 44, 378, ...
2.190725
4,981
############################################################################ # Theme setup html_theme = 'invitae' html_theme_path = ['themes'] if html_theme == 'sphinx_rtd_theme': import sphinx_rtd_theme html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] elif html_theme == 'bootstrap': import sphi...
[ 29113, 29113, 7804, 4242, 198, 2, 26729, 9058, 198, 198, 6494, 62, 43810, 796, 705, 16340, 270, 3609, 6, 198, 198, 6494, 62, 43810, 62, 6978, 796, 37250, 1169, 6880, 20520, 198, 361, 27711, 62, 43810, 6624, 705, 82, 746, 28413, 62, ...
2.955128
780
li = leiaInt('Digite um nmero inteiro: ') lr = leiaFloat('Digite um nmero real: ') print(f'\033[1;3;34mO valor inteiro foi {li} e o real foi {lr}.\033[0;0;0m')
[ 198, 4528, 796, 443, 544, 5317, 10786, 19511, 578, 23781, 299, 647, 78, 493, 68, 7058, 25, 705, 8, 198, 14050, 796, 443, 544, 43879, 10786, 19511, 578, 23781, 299, 647, 78, 1103, 25, 705, 8, 198, 198, 4798, 7, 69, 6, 59, 44427, ...
2.0125
80
import json import logging import retrying import sdk_cmd LOG = logging.getLogger(__name__) def wait_for_brokers(client: str, brokers: list): """ Run bootstrap on the specified client to resolve the list of brokers """ LOG.info("Running bootstrap to wait for DNS resolution") bootstrap_cmd = ['/o...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 1005, 14992, 198, 198, 11748, 264, 34388, 62, 28758, 198, 198, 25294, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4299, 4043, 62, 1640, 62, 7957, 15949, 7, 16366, 25,...
2.498856
437
#! /usr/bin/env python3 import prime description = ''' Prime pair sets Problem 60 The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and concatenating them in any order the result will always be prime. For example, taking 7 and 109, both 7109 and 1097 are prime. The sum of these four primes...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 6994, 198, 198, 11213, 796, 705, 7061, 198, 26405, 5166, 5621, 198, 40781, 3126, 198, 464, 778, 999, 513, 11, 767, 11, 16003, 11, 290, 718, 4790, 11, 389, 2407, 1...
3.420455
176
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "multilanguage_frappe_website" app_title = "Multilanguage Frappe Website" app_publisher = "DFP developmentforpeople" app_description = "Multilanguage Frappe Framework website example" app_icon = "octicon...
[ 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, 6738, 764, 1330, 11593, 9641, 834, 355, 598, 62, 9641, 198, 198, 1324, 62, 3672, 796, 366, 16680, 346, ...
2.80912
1,886
# -*- coding: utf-8 -*- from renormalizer.mps.tdh.propagation import unitary_propagation
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 8851, 6636, 7509, 13, 76, 862, 13, 8671, 71, 13, 22930, 363, 341, 1330, 4326, 560, 62, 22930, 363, 341, 198 ]
2.432432
37
from items.Item import Item
[ 6738, 3709, 13, 7449, 1330, 9097 ]
4.5
6
## train_models.py -- train the neural network models for attacking ## ## Copyright (C) 2016, Nicholas Carlini <nicholas@carlini.com>. ## ## This program is licenced under the BSD 2-Clause licence, ## contained in the LICENCE file in this directory. ## Modified for the needs of MagNet. import os import argparse impor...
[ 2235, 4512, 62, 27530, 13, 9078, 1377, 4512, 262, 17019, 3127, 4981, 329, 9274, 198, 2235, 198, 2235, 15069, 357, 34, 8, 1584, 11, 20320, 1879, 2815, 72, 1279, 77, 488, 12456, 31, 7718, 2815, 72, 13, 785, 28401, 198, 2235, 198, 2235...
2.441989
4,706
import datetime import re import time import urllib from urllib import robotparser from urllib.request import urlparse from downloader import Downloader DEFAULT_DELAY = 5 DEFAULT_DEPTH = -1 DEFAULT_URL = -1 DEFAULT_AGENT = 'wswp' DEFAULT_RETRY = 1 DEFAULT_TIMEOUT = 60 DEFAULT_IGNORE_ROBOTS = False def link_crawler...
[ 11748, 4818, 8079, 198, 11748, 302, 198, 11748, 640, 198, 11748, 2956, 297, 571, 198, 6738, 2956, 297, 571, 1330, 9379, 48610, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 29572, 198, 198, 6738, 4321, 263, 1330, 10472, 263, 628, ...
2.45405
1,284
#Array.diff.py OKS function array_diff(a, b) { return a.filter(function(x) { return b,index(x) == -1; }); } #solution 2 for array,diff function array_diff(a, b) { return a.filter(e => !b.includes(e)); } function array_diff(a, b) { return a.filter(e => !b.includes(e)); } #Bouncing Balls ok ...
[ 2, 19182, 13, 26069, 13, 9078, 7477, 50, 220, 201, 198, 8818, 7177, 62, 26069, 7, 64, 11, 275, 8, 1391, 201, 198, 197, 7783, 257, 13, 24455, 7, 8818, 7, 87, 8, 1391, 1441, 275, 11, 9630, 7, 87, 8, 6624, 532, 16, 26, 14980, 2...
2.116773
942