content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from numpy import ndarray from dataclasses import dataclass @dataclass class ESKFStaticParams(): """Dataclass containing static parameter for the drone and IMU lever_arm (ndarray[3]): GPS position relative to imu (in body frame) accm_correction (ndarray[3,3]): accelerometer correction matrix gyro_cor...
[ 6738, 299, 32152, 1330, 299, 67, 18747, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172, 198, 4871, 13380, 42, 37, 45442, 10044, 4105, 33529, 198, 220, 220, 220, 37227, 27354, 330, 31172, 7268, 9037,...
2.71124
516
# Copyright 2020–2021 Cirq on IQM developers # # 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...
[ 2, 15069, 12131, 1906, 1238, 2481, 21239, 80, 319, 18248, 44, 6505, 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.251115
3,811
# Generated by Django 3.1.4 on 2021-12-10 04:49 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 1065, 12, 940, 8702, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
arr = [1, 3, 6, 3, 2, 3, 6, 8, 9, 5] n = len(arr) print(minJumps(arr, 0, n-1))
[ 220, 201, 198, 201, 198, 3258, 796, 685, 16, 11, 513, 11, 718, 11, 513, 11, 362, 11, 513, 11, 718, 11, 807, 11, 860, 11, 642, 60, 201, 198, 77, 796, 18896, 7, 3258, 8, 201, 198, 4798, 7, 1084, 41, 8142, 7, 3258, 11, 657, 1...
1.492537
67
from ._inheritance import *
[ 6738, 47540, 259, 372, 42942, 1330, 1635, 198 ]
3.5
8
from __future__ import absolute_import import psutil
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 26692, 22602, 198 ]
4.076923
13
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : jackeroo # @Time : 2019/11/10 # @File : Cabinet.py # @Contact : jackeroo@qq.com # @Software : PyCharm # @Desc : 机柜登记类 from sqlalchemy import Column, String from sqlalchemy.dialects.mssql import TINYINT from app.extensions.BaseModel import B...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 220, 220, 1058, 220, 474, 10735, 2238, 198, 2, 2488, 7575, 220, 220, 220, 220, 1058, 220, 13130, 14, ...
2.214765
149
import pytest
[ 11748, 12972, 9288, 628, 628 ]
3.4
5
#!coding:utf8 #author:yqq #date:2020/5/29 0029 14:56 #description: import os import random import time #加密 if __name__ == '__main__': main()
[ 2, 0, 66, 7656, 25, 40477, 23, 201, 198, 201, 198, 2, 9800, 25, 88, 38227, 201, 198, 2, 4475, 25, 42334, 14, 20, 14, 1959, 3571, 1959, 1478, 25, 3980, 201, 198, 2, 11213, 25, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, ...
1.861702
94
from fastapi import APIRouter import sys from app.core import config router = APIRouter() @router.get("/")
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 11748, 25064, 198, 198, 6738, 598, 13, 7295, 1330, 4566, 198, 198, 472, 353, 796, 3486, 4663, 39605, 3419, 628, 198, 31, 472, 353, 13, 1136, 7203, 14, 4943, 198 ]
2.921053
38
import datetime import json import requests import pytest import urllib.request from tests.utilities.settings import get_test_data, setup_access_data @pytest.mark.incremental @pytest.mark.parametrize('login_session', setup_access_data('OUT_OF_PROVINCE', ['BCEID', 'STAFF']), indirect=True, scope='class') @pytest.mark...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 12972, 9288, 198, 11748, 2956, 297, 571, 13, 25927, 198, 198, 6738, 5254, 13, 315, 2410, 13, 33692, 1330, 651, 62, 9288, 62, 7890, 11, 9058, 62, 15526, 62, 7890, 628,...
2.991379
116
from .stopping import EarlyStopping
[ 6738, 764, 301, 33307, 1330, 12556, 1273, 33307, 198 ]
4
9
import gym import copy
[ 11748, 11550, 198, 11748, 4866, 628 ]
4
6
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 12131, 43208, 21852, 1766, 1539, 12052, 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...
3.94
200
import os import json import requests
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 7007 ]
4.625
8
''' Problem Task: Given a censored string and a string of the censored vowels, return the original uncensored string. Problem Link: https://edabit.com/challenge/ehyZvt6AJF4rKFfXT '''
[ 7061, 6, 198, 220, 220, 220, 20647, 15941, 25, 11259, 257, 43847, 4731, 290, 257, 4731, 286, 262, 43847, 23268, 1424, 11, 1441, 262, 2656, 4591, 641, 1850, 4731, 13, 198, 220, 220, 220, 20647, 7502, 25, 3740, 1378, 276, 29968, 13, 7...
2.938462
65
"""empty message Revision ID: 920329927dc6 Revises: fca98f434287 Create Date: 2021-10-03 22:32:34.070105 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "920329927dc6" down_revision = "fca98f434287" branch_lab...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 860, 22416, 22579, 1983, 17896, 21, 198, 18009, 2696, 25, 277, 6888, 4089, 69, 47101, 27800, 198, 16447, 7536, 25, 33448, 12, 940, 12, 3070, 2534, 25, 2624, 25, 2682, 13, 2998, 486,...
2.72093
129
# from django.contrib.admin.util import lookup_field, quote, lookup_needs_distinct, get_fields_from_path from django.db import models from django.db.models import Q from django.db.models.fields import FieldDoesNotExist, BooleanField from django.utils.functional import cached_property from iadmin.filters import FieldCel...
[ 2, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 28482, 13, 22602, 1330, 35847, 62, 3245, 11, 9577, 11, 35847, 62, 50032, 62, 17080, 4612, 11, 651, 62, 25747, 62, 6738, 62, 6978, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 673...
3.013158
228
"""This module contains the application class, which handles the window and controls game ticks.""" from .app import App
[ 37811, 1212, 8265, 4909, 262, 3586, 1398, 11, 543, 17105, 262, 4324, 290, 6973, 983, 36066, 526, 15931, 198, 198, 6738, 764, 1324, 1330, 2034, 198 ]
4.692308
26
"""Add Vide Grenier models to admin interface.""" from django.contrib import admin from .models import Reservation admin.site.register(Reservation)
[ 37811, 4550, 42551, 19674, 959, 4981, 284, 13169, 7071, 526, 15931, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 1874, 13208, 198, 198, 28482, 13, 15654, 13, 30238, 7, 4965, 13208, 8, 198 ]
3.75
40
"""linInterpolate(): [(0, 0, 0), (2, 2, 0)] # at these positions, [(0.2,0,0), (0,0,0.2)] # these are the specified vectors """ from vedo import * positions = [(0, 0, 0), (2, 2, 0)] # at these positions, directions = [(0.2,0,0), (0,0,0.2)] # these are the specified vectors # now use linInterpolate to interpolate li...
[ 37811, 2815, 9492, 16104, 378, 33529, 198, 58, 7, 15, 11, 657, 11, 657, 828, 357, 17, 11, 362, 11, 657, 15437, 1303, 379, 777, 6116, 11, 198, 58, 7, 15, 13, 17, 11, 15, 11, 15, 828, 357, 15, 11, 15, 11, 15, 13, 17, 15437, ...
2.43254
252
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 33160, 1058, 33, 6532, 12, 22405, 12, 12041, 25, 19935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743,...
2.581944
720
import os import unittest import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * import logging import slicer import SimpleITK as sitk global sitkUtils import sitkUtils import numpy import subprocess # # BrainKeyCreatorExtension # class BrainKeyCreatorExtension(ScriptedLoadableModul...
[ 11748, 28686, 201, 198, 11748, 555, 715, 395, 201, 198, 11748, 410, 30488, 11, 10662, 83, 11, 269, 30488, 11, 14369, 263, 201, 198, 6738, 14369, 263, 13, 7391, 276, 8912, 540, 26796, 1330, 1635, 201, 198, 11748, 18931, 201, 198, 11748...
2.847158
4,750
from textwrap import dedent from nanoemoji.features import generate_fea, DEFAULT_GSUB_FEATURE_TAG import pytest @pytest.mark.parametrize("feature_tag", (DEFAULT_GSUB_FEATURE_TAG, "rlig"))
[ 6738, 2420, 37150, 1330, 4648, 298, 198, 6738, 38706, 368, 31370, 13, 40890, 1330, 7716, 62, 5036, 64, 11, 5550, 38865, 62, 14313, 10526, 62, 15112, 40086, 62, 42197, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17...
2.835821
67
# -*- coding: utf-8 -*- # Copyright 2018 Objectif Libre # # 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2864, 9515, 361, 44384, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, ...
3.130435
391
import os import sys import md5 import imp import traceback import settings
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 45243, 20, 198, 11748, 848, 198, 11748, 12854, 1891, 198, 198, 11748, 6460, 628, 628 ]
3.636364
22
""" Handles all commands for information """ import discord from discord.ext import commands from bot.database import DBConnector from bot import utils
[ 37811, 198, 12885, 829, 477, 9729, 329, 1321, 198, 37811, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 10214, 13, 48806, 1330, 360, 2749, 261, 1606, 273, 198, 6738, 10214, 1330, 3384, 4487, 628, 198 ]
3.875
40
import queue import threading import time import unittest from typing import Union from blatann.event_args import PasskeyDisplayEventArgs, PasskeyEntryEventArgs, SecurityProcess from blatann.gap import SecurityStatus, SecurityLevel, IoCapabilities, PairingPolicy, SecurityParameters from blatann.peer import C...
[ 11748, 16834, 201, 198, 11748, 4704, 278, 201, 198, 11748, 640, 201, 198, 11748, 555, 715, 395, 201, 198, 6738, 19720, 1330, 4479, 201, 198, 201, 198, 6738, 21451, 1236, 13, 15596, 62, 22046, 1330, 6251, 2539, 23114, 9237, 42035, 11, ...
3.61236
178
""" ================= This model is a Fully Convolutional Network for predicting the walkable surfaces using a single 3 channel image. ================= """ import torch import torch.nn as nn import pdb from torchvision.models import resnet18 as torchvision_resnet18 from extensions.weighted_binary_cross_entropy impor...
[ 37811, 198, 4770, 28, 198, 1212, 2746, 318, 257, 40234, 34872, 2122, 282, 7311, 329, 25539, 262, 2513, 540, 16649, 1262, 257, 2060, 513, 6518, 2939, 13, 198, 4770, 28, 198, 37811, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, ...
2.455679
722
"""Shared functions and methods utilized by the pattoo installation.""" # Standard imports import sys import subprocess import traceback def run_script(cli_string, die=True, verbose=True): """Run the cli_string UNIX CLI command and record output. Args: cli_string: String of command to run die...
[ 37811, 2484, 1144, 5499, 290, 5050, 21487, 416, 262, 279, 1078, 2238, 9988, 526, 15931, 198, 2, 8997, 17944, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 12854, 1891, 628, 198, 4299, 1057, 62, 12048, 7, 44506, 62, 8841, 11, ...
2.250674
1,113
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING import collections from astroid import nodes from pylint.constants import MSG_STATE_SCOPE_MODULE, WarningScope class FileState: """Hold internal state s...
[ 2, 49962, 739, 262, 38644, 25, 3740, 1378, 2503, 13, 41791, 13, 2398, 14, 677, 4541, 14, 727, 12, 677, 4541, 14, 70, 489, 12, 17, 13, 15, 13, 6494, 201, 198, 2, 1114, 3307, 25, 3740, 1378, 12567, 13, 785, 14, 20519, 34, 48, 32...
2.061224
2,303
import unittest import solution if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 4610, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.59375
32
from src.setupUi.Review import * from PyQt5.QtSql import *
[ 6738, 12351, 13, 40406, 52, 72, 13, 14832, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 50, 13976, 1330, 1635, 198 ]
2.458333
24
from fastapi import FastAPI app = FastAPI() @app.get("/") # define endpoint @app.get("/square") # define another endpoint
[ 6738, 3049, 15042, 1330, 12549, 17614, 198, 198, 1324, 796, 12549, 17614, 3419, 628, 198, 31, 1324, 13, 1136, 7203, 14, 4943, 1303, 8160, 36123, 628, 198, 31, 1324, 13, 1136, 7203, 14, 23415, 4943, 1303, 8160, 1194, 36123, 198 ]
3.175
40
# import aws_cdk # from aws_cdk import aws_codedeploy as codedeploy import boto3 client = boto3.client('codedeploy')
[ 2, 1330, 3253, 82, 62, 10210, 74, 198, 2, 422, 3253, 82, 62, 10210, 74, 1330, 3253, 82, 62, 40976, 68, 1420, 355, 30817, 68, 1420, 198, 198, 11748, 275, 2069, 18, 198, 198, 16366, 796, 275, 2069, 18, 13, 16366, 10786, 40976, 68, ...
2.541667
48
# *-* coding: utf-8 *-* from enum import IntEnum from rest_framework import serializers from rest_framework.validators import UniqueValidator from .base import ContainCreatorModelSerializer from sys_app.models import SYSMenu class MenuSerializer(ContainCreatorModelSerializer): """ 菜单序列化 """ alwaysS...
[ 2, 1635, 12, 9, 19617, 25, 3384, 69, 12, 23, 1635, 12, 9, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 12102, 2024, 1330, 30015, 47139, 1352, 198, 6738...
3.056962
158
# webdriver.py #%% packages import requests from bs4 import BeautifulSoup from time import sleep import json import pandas as pd import pickle # webdriver start-up from selenium import webdriver from selenium.webdriver.chrome.options import Options driver = webdriver.Chrome() #%% obtain links to all slider pages #...
[ 2, 3992, 26230, 13, 9078, 198, 2, 16626, 10392, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 640, 1330, 3993, 198, 11748, 33918, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2298, 293, 198, 198, ...
2.895712
1,026
import torch import torch.utils.data as data import torchvision.transforms as transforms import random from PIL import Image import numpy as np import preprocess
[ 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 11748, 4738, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 662, 14681, ...
3.952381
42
"""Compatibility functions. """ __author__ = 'vovanec@gmail.com' try: # pragma: no cover from supervisor.compat import httplib except ImportError: # pragma: no cover import httplib try: # pragma: no cover from supervisor.compat import xmlrpclib except ImportError: # pragma: no cover import xmlrpc...
[ 37811, 7293, 25901, 5499, 13, 198, 37811, 198, 198, 834, 9800, 834, 796, 705, 85, 22590, 721, 31, 14816, 13, 785, 6, 198, 198, 28311, 25, 220, 1303, 23864, 2611, 25, 645, 3002, 198, 220, 220, 220, 422, 21277, 13, 5589, 265, 1330, ...
2.817391
115
from django.contrib.auth.models import User from ..models import Activity def create_user(handle, with_profile=False): """Helper to create Users""" email = '%s@%s.com' % (handle, handle) user = User.objects.create_user(handle, email, handle) if with_profile: profile = user.get_profile() ...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 6738, 11485, 27530, 1330, 24641, 628, 198, 4299, 2251, 62, 7220, 7, 28144, 11, 351, 62, 13317, 28, 25101, 2599, 198, 220, 220, 220, 37227, 47429, 284, 225...
2.710345
145
import datetime from tests import BaseTestCase from redash import models from factories import dashboard_factory, query_factory, data_source_factory, query_result_factory from redash.utils import gen_query_hash
[ 11748, 4818, 8079, 198, 6738, 5254, 1330, 7308, 14402, 20448, 198, 6738, 2266, 1077, 1330, 4981, 198, 6738, 17590, 1330, 30415, 62, 69, 9548, 11, 12405, 62, 69, 9548, 11, 1366, 62, 10459, 62, 69, 9548, 11, 12405, 62, 20274, 62, 69, ...
3.736842
57
# -*-coding: utf-8 -*- """ @Author : panjq @E-mail : pan_jinquan@163.com @Date : 2021-07-28 11:32:42 """ import os import numpy as np import torch from sklearn.metrics import accuracy_score from .eval_tools.metrics import AverageMeter, accuracy from ..callbacks import callbacks from .eval_tools import cla...
[ 2, 532, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 2488, 13838, 1058, 3425, 73, 80, 198, 220, 220, 220, 2488, 36, 12, 4529, 1058, 3425, 62, 18594, 421, 272, 31, 24136, 13, 785, 198, 220,...
2.848485
132
""" Segmented Regression Estimators. """ # Author: Steven Lillywhite # License: BSD 3 clause import numpy as np from segreg.model import one_bkpt_segreg from segreg.model import two_bkpt_segreg from segreg.model import segreg_util from segreg.model.estimator import Estimator class OneBkptSegRegEstimator(Estimator)...
[ 37811, 198, 41030, 12061, 3310, 2234, 10062, 320, 2024, 13, 198, 37811, 198, 198, 2, 6434, 25, 8239, 35134, 11186, 198, 2, 13789, 25, 347, 10305, 513, 13444, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 32301, 13, 19849, 1...
2.234215
3,817
# /* megatest texts, C-ified */ # // Copyright 2010 Kurt Hackenberg & William S. Yerazunis, each individually # // with full rights to relicense. # // # // This collection contains texts in the public domain; the copyright # // is not on the texts themselves but on their use as test texts for # // the LGPLed CRM...
[ 2, 11900, 17243, 265, 395, 13399, 11, 327, 12, 1431, 9466, 198, 198, 2, 3373, 15069, 3050, 20642, 18281, 23140, 1222, 3977, 311, 13, 575, 263, 1031, 403, 271, 11, 1123, 17033, 198, 2, 3373, 351, 1336, 2489, 284, 26341, 1072, 13, 198...
2.820425
38,129
from builtins import * import warnings import numpy as np from tqdm import tqdm from scipy.interpolate import interp1d from blendz import Configuration from blendz.fluxes import Templates from blendz.fluxes import Filters
[ 6738, 3170, 1040, 1330, 1635, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 987, 79, 16, 67, 198, 6738, 13516, 89, 1330, ...
3.363636
66
# -*- coding: utf-8 -*- ''' File name: code\goldbachs_other_conjecture\sol_46.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #46 :: Goldbach's other conjecture # # For more information see: # https://projecteuler.net/problem=46 # Proble...
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 220, 220, 220, 9220, 1438, 25, 2438, 59, 24267, 19496, 82, 62, 847, 62, 1102, 752, 495, 59, 34453, 62, 3510, 13, 9078, 198, 220, 220, 220, 6434, ...
2.924901
253
from google.protobuf.text_format import PrintMessage from math import sqrt from proto.py import distribution_pb2 from proto.py import mixing_prior_pb2 from proto.py import hierarchy_prior_pb2 # Run this from root with python -m python.generate_asciipb def identity_list(dim): """Returns the list of entries of a dim-...
[ 6738, 23645, 13, 11235, 672, 3046, 13, 5239, 62, 18982, 1330, 12578, 12837, 198, 6738, 10688, 1330, 19862, 17034, 198, 6738, 44876, 13, 9078, 1330, 6082, 62, 40842, 17, 198, 6738, 44876, 13, 9078, 1330, 17090, 62, 3448, 273, 62, 40842, ...
2.189133
2,411
################### Error URLs ##################### # For imageGen.py not_enough_info = 'http://i.imgur.com/2BZk32a.jpg' improperly_formatted_tag = 'http://i.imgur.com/HvFX82m.jpg' # For memeAPI.py meme_not_supported = 'http://i.imgur.com/6VoMZqm.jpg' couldnt_create_meme = 'http://i.imgur.com/bkW1HEV.jpg' too_many_li...
[ 14468, 21017, 13047, 32336, 1303, 14468, 4242, 198, 198, 2, 1114, 2939, 13746, 13, 9078, 198, 1662, 62, 48229, 62, 10951, 796, 705, 4023, 1378, 72, 13, 19791, 13, 785, 14, 17, 33, 57, 74, 2624, 64, 13, 9479, 6, 198, 32077, 525, 30...
2.266094
233
""" jans.pycloudlib.persistence.couchbase ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains various helpers related to Couchbase persistence. """ import contextlib import json import logging import os from datetime import datetime from functools import partial from typing import NoReturn from tempfile import...
[ 37811, 198, 73, 504, 13, 9078, 17721, 8019, 13, 19276, 13274, 13, 66, 7673, 8692, 198, 27156, 27156, 8728, 93, 198, 198, 1212, 8265, 4909, 2972, 49385, 3519, 284, 48225, 8692, 30802, 13, 198, 37811, 198, 198, 11748, 4732, 8019, 198, 1...
2.346118
8,630
''' Created on Apr 15, 2018 @author: ywz ''' import os import argparse import tensorflow as tf from config import DEMO from task import Task from dpg import DPG if __name__ == "__main__": main()
[ 7061, 6, 198, 41972, 319, 2758, 1315, 11, 2864, 198, 198, 31, 9800, 25, 331, 86, 89, 198, 7061, 6, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 4566, 1330, 40101, 46, 198, 6738, 4...
2.6375
80
from arm.logicnode.arm_nodes import * class GetDistanceNode(ArmLogicTreeNode): """Returns the euclidian distance between the two given objects. @see For distance between two locations, use the `Distance` operator in the *[`Vector Math`](#vector-math)* node.""" bl_idname = 'LNGetDistanceNode' b...
[ 6738, 3211, 13, 6404, 291, 17440, 13, 1670, 62, 77, 4147, 1330, 1635, 198, 198, 4871, 3497, 45767, 19667, 7, 26560, 11187, 291, 27660, 19667, 2599, 198, 220, 220, 220, 37227, 35561, 262, 304, 36616, 19825, 5253, 1022, 262, 734, 1813, ...
2.943548
124
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 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.550055
909
""" Generate a whole list of actual motor speeds corresponding to each of the demanded 'motor speed commands' at the input by interpolation. """ import numpy as np if __name__ == '__main__': motor_num = 1 # Enter which motor to produce the graph for! filename = "motor_" + motor_num + "_speed_test_results.txt" ...
[ 37811, 198, 8645, 378, 257, 2187, 1351, 286, 4036, 5584, 12055, 11188, 284, 1123, 286, 262, 198, 9536, 12249, 705, 76, 20965, 2866, 9729, 6, 379, 262, 5128, 416, 39555, 341, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 198...
2.320401
799
# =================================== # This class keeps track of the order # of values of a dynamic list # =================================== import numpy as np # ======= # Setters # ======= # ======= # Getters # ======= # Return the best value # Return the worst value # Ret...
[ 2, 46111, 855, 198, 2, 770, 1398, 7622, 2610, 286, 262, 1502, 198, 2, 286, 3815, 286, 257, 8925, 1351, 198, 2, 46111, 855, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 220, 220, 220, 1303, 29335, 855, 198, 220, 220, 220, 130...
3.323529
170
#!/usr/bin/env Python3 import PySimpleGUI as sg from myconfigparser import load_unit_data, Section, UnitParser from objecteditor.controller import newselector, newworker, newproduction, newunit from objecteditor.controller import newtower, newhero from objecteditor.controller import newdecobuilder, newdecoration, new...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 11361, 18, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 198, 6738, 616, 11250, 48610, 1330, 3440, 62, 20850, 62, 7890, 11, 7275, 11, 11801, 46677, 628, 198, 6738, 29811, 2072, 13, 36500, 1330, 64...
2.381432
894
import os import subprocess import time import sys #this script toggles the current audiosource rawSources = subprocess.getoutput("pactl list short sinks") currentSink = subprocess.getoutput("pactl get-default-sink") sinks = rawSources.split("\n") sinkIds = [] for sink in sinks: sinkIds.append(sink[0:1]) cu...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 25064, 198, 220, 220, 198, 2, 5661, 4226, 284, 32723, 262, 1459, 2709, 4267, 1668, 220, 198, 1831, 21188, 220, 796, 220, 850, 14681, 13, 1136, 22915, 7203, 79, 529, 75...
2.598456
259
import pytest @pytest.mark.skip @pytest.mark.skip
[ 11748, 12972, 9288, 628, 628, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 628, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 198 ]
2.434783
23
from backend.utils import get_std_preprocessor, get_all_images from backend.clf import std_clf import torch import os import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--in_path', default='images', type=str, ...
[ 6738, 30203, 13, 26791, 1330, 651, 62, 19282, 62, 3866, 41341, 11, 651, 62, 439, 62, 17566, 198, 6738, 30203, 13, 565, 69, 1330, 14367, 62, 565, 69, 198, 11748, 28034, 198, 11748, 28686, 198, 11748, 1822, 29572, 628, 198, 361, 11593, ...
1.880866
554
#Myles Crouther #Lateetud - Problem 2 #Variables hasNum = [] hasDate = [] talksAboutMoney = [] figures = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ",", " "] array = [] dates = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] #Firs...
[ 2, 3666, 829, 3864, 44262, 198, 2, 26302, 316, 463, 532, 20647, 362, 198, 198, 2, 23907, 2977, 198, 10134, 33111, 796, 17635, 198, 10134, 10430, 796, 17635, 198, 83, 23833, 8585, 26788, 796, 17635, 198, 5647, 942, 796, 14631, 15, 1600...
2.260234
1,026
"""Two dimensional binary indexed tree, supports point updates and range sum queries. For example can be used query sum of values on M x N area in matrix. Uses 1-based indexing so for all the operations that take index as argument 1 is the minimum value. It should also be noted that when BIT is generated the first row ...
[ 37811, 7571, 38517, 13934, 41497, 5509, 11, 6971, 966, 5992, 290, 2837, 2160, 198, 421, 10640, 13, 1114, 1672, 460, 307, 973, 12405, 2160, 286, 3815, 319, 337, 2124, 399, 1989, 287, 17593, 13, 198, 5842, 274, 352, 12, 3106, 6376, 278,...
2.301565
1,406
# # 1603. Design Parking System # # Q: https://leetcode.com/problems/design-parking-system/ # A: https://leetcode.com/problems/design-parking-system/discuss/876790/Javascript-Python3-C%2B%2B-Concise-solutions #
[ 2, 198, 2, 1467, 3070, 13, 8495, 29259, 4482, 198, 2, 198, 2, 1195, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 26124, 12, 20928, 278, 12, 10057, 14, 198, 2, 317, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, ...
2.511905
84
"""Auto-generated file, do not edit by hand. VI metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_VI = PhoneMetadata(id='VI', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='[58]\\d{9}|(?:34|90)0\\d{7}', possible_le...
[ 37811, 27722, 12, 27568, 2393, 11, 466, 407, 4370, 416, 1021, 13, 13889, 20150, 37811, 198, 6738, 11485, 746, 261, 19261, 14706, 1330, 7913, 26227, 11, 14484, 15057, 24564, 11, 14484, 9171, 14706, 198, 198, 11909, 11651, 62, 47123, 2885, ...
2.09697
825
#!/usr/env python3 from os import listdir from os.path import isfile from os.path import join import json import logging import tfquery.tfstate as tfstate from tfquery.sql_handler import SQLHandler
[ 2, 48443, 14629, 14, 24330, 21015, 18, 198, 6738, 28686, 1330, 1351, 15908, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 11748, 33918, 198, 11748, 18931, 628, 198, 11748, 48700, 22766, 13, 27...
3.5
58
import numpy as np import xarray as xr from xarray import DataArray from xrspatial.utils import ngjit from typing import Optional # TODO: change parameters to take agg instead of height / width @ngjit def bump(width: int, height: int, count: Optional[int] = None, height_func=None, spread: int = 1) -> x...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 6738, 2124, 18747, 1330, 6060, 19182, 198, 198, 6738, 2124, 81, 2777, 34961, 13, 26791, 1330, 23370, 45051, 198, 198, 6738, 19720, 1330, 32233, 198, 198, 2...
2.224827
1,877
import json from django.contrib.auth.models import Permission from django.test import override_settings from django_graphene_starter.schema import schema from graphene_django.utils.testing import GraphQLTestCase from graphql_relay import to_global_id from mixer.backend.django import mixer from ..models import Article...
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 2448, 3411, 198, 6738, 42625, 14208, 13, 9288, 1330, 20957, 62, 33692, 198, 6738, 42625, 14208, 62, 70, 2416, 29473, 62, 12339, 13, 15952, 2611, 1330...
2.175182
822
from django.conf.urls.defaults import patterns, url from enroll.views import SignUpView, VerifyAccountView, VerifyPasswordResetView, \ LoginView, LogoutView, PasswordResetView, \ ChangeEmailView, VerifyEmailChangeView from django.views.decorators.csrf import csrf_prote...
[ 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 7572, 11, 19016, 198, 6738, 14627, 13, 33571, 1330, 5865, 4933, 7680, 11, 49899, 30116, 7680, 11, 49899, 35215, 4965, 316, 7680, 11, 3467, 198, 220, 220, 220, 220,...
2.551402
428
# coding=utf-8 import pytest from copy import deepcopy from django.test import TestCase, Client from django.urls import reverse from django.conf import settings from molo.core.models import ( SiteSettings, Site, Languages, SiteLanguageRelation, SectionIndexPage) from molo.forms.models import ( MoloFormPa...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 12972, 9288, 198, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20985, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, ...
3.174157
178
import copy import datetime import os import time import unittest import numpy import cf #--- End: class if __name__ == '__main__': print('Run date:', datetime.datetime.utcnow()) cf.environment() print() unittest.main(verbosity=2)
[ 11748, 4866, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 640, 220, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 198, 198, 11748, 30218, 628, 628, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 6329, ...
2.485981
107
#------------------------------------------------------------------------------- # Name: Layer.py # Purpose: Green Scale Tool Layer Module (Class for "Layers") # # Author: Holly Tina Ferguson # # Created: 15/09/2013 # Copyright: (c) Holly Tina Ferguson 2013 # Licence: The University of...
[ 2, 10097, 24305, 201, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 34398, 13, 9078, 201, 198, 2, 32039, 25, 220, 220, 220, 220, 3469, 21589, 16984, 34398, 19937, 357, 9487, 329, 366, 43, 6962, 4943, 201, 198, 2, 201, 198, ...
3.853659
123
import pandas as pd # Build cars DataFrame names = ['United States', 'Australia', 'Japan', 'India', 'Russia', 'Morocco', 'Egypt'] dr = [True, False, False, False, True, True, True] cpc = [809, 731, 588, 18, 200, 70, 45] cars_dict = { 'country':names, 'drives_right':dr, 'cars_per_cap':cpc } cars = pd.DataFrame(...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 2, 10934, 5006, 6060, 19778, 201, 198, 14933, 796, 37250, 17013, 1829, 3256, 705, 27429, 3256, 705, 16504, 3256, 705, 21569, 3256, 705, 16347, 3256, 705, 20044, 420, 1073, 3256, 705, ...
2.464789
213
HALL_NAMES = ( ("Mini Audi", ("Mini Audi")), ("AG-01", ("AG-01")), ("AG-02", ("AG-02")) )
[ 39, 7036, 62, 45, 29559, 796, 357, 198, 220, 220, 220, 5855, 39234, 26686, 1600, 5855, 39234, 26686, 4943, 828, 198, 220, 220, 220, 5855, 4760, 12, 486, 1600, 5855, 4760, 12, 486, 4943, 828, 198, 220, 220, 220, 5855, 4760, 12, 2999,...
1.980392
51
import numpy as np import cv2
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 628 ]
2.818182
11
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from fastapi.staticfiles import StaticFiles from api import router from database import schema from database.database import engine schema.Base.metadata.create_all(bind=engine) app = FastAPI() origins = ["http://localhost:3000"] app.add...
[ 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, 6738, 3049, 15042, 13, 12708, 16624, 1330, 36125, 25876, 198, 198, 6738, 40391, 1330, 20264, 198, 6738, 6831...
3
195
import random from unittest import mock from django import forms from django.core.exceptions import ImproperlyConfigured from django.db import models from django.forms import ValidationError from django.forms.widgets import Textarea from django.test import TestCase from django.test.utils import isolate_apps, override_...
[ 11748, 4738, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 12205, 525, 306, 16934, 1522, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 67...
4.080882
136
#from ipywidgets import widgets #from IPython.display import display #from ipywidgets import interact MyTrie = Trie() wordList = [ "ant", "anthology", "antagonist", "antonym", "fun", "function", "factory", "trie", "trigger", "trigonometry", "tripod" ] for word in wordList: MyTrie.insert(...
[ 2, 6738, 20966, 88, 28029, 11407, 1330, 40803, 201, 198, 2, 6738, 6101, 7535, 13, 13812, 1330, 3359, 201, 198, 2, 6738, 20966, 88, 28029, 11407, 1330, 9427, 201, 198, 201, 198, 201, 198, 201, 198, 3666, 51, 5034, 796, 309, 5034, 341...
3.01555
836
#!/usr/bin/env python from distutils.core import setup import setuptools setup(name='datastore-orm', version='0.0.8', description='datastore-orm wraps google-cloud-datastore in a lightweight ORM and helps you easily migrate away from NDB', author='Chaitanya Nettem', author_email='chaitanya@kub...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 11748, 900, 37623, 10141, 198, 198, 40406, 7, 3672, 11639, 19608, 459, 382, 12, 579, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639,...
2.572193
187
""" This module handles ESP32 alarms. """ class ESP32BaseAlarm(): ''' The base ESP Alarm Class ''' alarm_to_string = { 0: "Alarm name", } def __init__(self, number): ''' Constructor arguments: - the number obtained from the ESP ''' self...
[ 37811, 198, 1212, 8265, 17105, 9428, 2624, 36302, 13, 198, 37811, 198, 198, 4871, 9428, 2624, 14881, 2348, 1670, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 383, 2779, 9428, 978, 1670, 5016, 198, 220, 220, 220, 705, 7061...
2.154843
1,466
from collections import Iterable
[ 6738, 17268, 1330, 40806, 540, 628, 628 ]
5.142857
7
import scipy.io.wavfile import struct import numpy FSample, samples = scipy.io.wavfile.read('1.wav') for sample in samples: (L,R) =struct.unpack('>HH', sample) print(hex(L),hex(R)) s = serial.Serial('COM4', baudrate=2000000) FSample, samples = scipy.io.wavfile.read('1.wav') for sample in samples: (L,R) ...
[ 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 198, 11748, 2878, 198, 11748, 299, 32152, 198, 198, 10652, 1403, 11, 8405, 796, 629, 541, 88, 13, 952, 13, 45137, 7753, 13, 961, 10786, 16, 13, 45137, 11537, 198, 198, 1640, 6291, 287, ...
2.413223
363
from runningStat import runningStat
[ 6738, 2491, 17126, 1330, 2491, 17126, 198 ]
5.142857
7
# Python - 3.6.0 Test.assert_equals(final_grade(100, 12), 100) Test.assert_equals(final_grade(99, 0), 100) Test.assert_equals(final_grade(10, 15), 100) Test.assert_equals(final_grade(85, 5), 90) Test.assert_equals(final_grade(55, 3), 75) Test.assert_equals(final_grade(55, 0), 0) Test.assert_equals(final_grade(20, 2), ...
[ 2, 11361, 532, 513, 13, 21, 13, 15, 198, 198, 14402, 13, 30493, 62, 4853, 874, 7, 20311, 62, 9526, 7, 3064, 11, 1105, 828, 1802, 8, 198, 14402, 13, 30493, 62, 4853, 874, 7, 20311, 62, 9526, 7, 2079, 11, 657, 828, 1802, 8, 198,...
2.375
136
# search query search_query = 'site:linkedin.com/in/ AND "java developer" AND "Tunisia"' # file were scraped profile information will be stored file_name = 'results_file.csv' # login credentials linkedin_username = 'amiraouertani88@gmail.com' linkedin_password = 'azerty@azerty'
[ 2, 2989, 12405, 198, 12947, 62, 22766, 796, 705, 15654, 25, 25614, 259, 13, 785, 14, 259, 14, 5357, 366, 12355, 8517, 1, 5357, 366, 51, 403, 271, 544, 30543, 628, 198, 2, 2393, 547, 15881, 276, 7034, 1321, 481, 307, 8574, 198, 775...
3.122222
90
""" backend/about/views.py Views for the about page - progteam_desc - meeting_info - officer_info """ from django.http import JsonResponse from .models import MeetingInfo, OfficerInfo, ProgteamDesc def meeting_info(request): """backend.about.urls: /about/meeting-info Meeting Information TODO: We're retu...
[ 37811, 198, 1891, 437, 14, 10755, 14, 33571, 13, 9078, 198, 198, 7680, 82, 329, 262, 546, 2443, 198, 12, 1172, 15097, 62, 20147, 198, 12, 3249, 62, 10951, 198, 12, 3818, 62, 10951, 198, 37811, 198, 6738, 42625, 14208, 13, 4023, 1330...
2.497771
673
import markdown2 import os
[ 11748, 1317, 2902, 17, 198, 11748, 28686, 198 ]
3.375
8
import cv2 from qt_core import *
[ 11748, 269, 85, 17, 198, 6738, 10662, 83, 62, 7295, 1330, 1635, 628, 198 ]
2.5
14
import logging import click from simple_rest_client.resource import Resource from okta_admin_utils.api import get_default_actions, OktaAPIClient
[ 11748, 18931, 198, 198, 11748, 3904, 198, 198, 6738, 2829, 62, 2118, 62, 16366, 13, 31092, 1330, 20857, 198, 198, 6738, 12876, 8326, 62, 28482, 62, 26791, 13, 15042, 1330, 651, 62, 12286, 62, 4658, 11, 6762, 8326, 2969, 2149, 75, 1153...
3.409091
44
#!/usr/bin/env python3 # # Copyright 2015 Doug Hellmann. """Example use of ConfigParser module. """ # end_pymotw_header from configparser import ConfigParser import os filename = "multiline.ini" config = ConfigParser() config.read([filename]) message = config["example"]["message"] print(message)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 1853, 15115, 5783, 9038, 13, 198, 37811, 16281, 779, 286, 17056, 46677, 8265, 13, 198, 37811, 198, 198, 2, 886, 62, 79, 4948, 313, 86, 62, 25677, 198, 6738, 4...
3.202128
94
x= int(input("Input the number:")) print(find_prime(x))
[ 198, 198, 87, 28, 493, 7, 15414, 7203, 20560, 262, 1271, 11097, 4008, 198, 4798, 7, 19796, 62, 35505, 7, 87, 4008, 198 ]
2.521739
23
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.AttributeInfo import AttributeInfo from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Datatypes.ComplexField import ComplexField from OTLMOW.OTLModel.Datatypes.KlAlgGemeente import KlAlgGemeente from OTLMOW.OTLModel.Datatypes.KlAlgProvi...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 440, 14990, 44, 3913, 13, 2394, 43, 17633, 13, 14881, 9487, 274, 13, 33682, 12360, 1330, 3460, 4163, 12360, 198, 6738, 440, 14990, 44, 3913, 13, 2394, 43, 17633, 13, 14881, 9487, 274, 13, 2394...
2.6
410
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 23 00:16:43 2019 @author: aman """ #%% import random #%% formation of army of user 2 i.e. computer #consists of atleast 1 member #%% formation of army of user1----------METHOD1 #%% toss to select the first turn #%% #%% fucntion to sta...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2365, 2242, 3571, 25, 1433, 25, 3559, 13130, 198, 198, 31, 9800, 25, 716, 272, 198,...
2.415948
464
p1 = float (input("Um numero:") p2 = float (input("Outro numero:") soma = (p1 + p2) *2 print(soma)
[ 628, 198, 79, 16, 796, 12178, 357, 15414, 7203, 37280, 997, 3529, 25, 4943, 198, 79, 17, 796, 12178, 357, 15414, 7203, 7975, 305, 997, 3529, 25, 4943, 198, 82, 6086, 796, 357, 79, 16, 1343, 279, 17, 8, 1635, 17, 198, 4798, 7, 82...
2.125
48
from pcf import PCF, Attribute new_color = None if __name__ == "__main__": from sys import argv src = argv[1] dest = argv[2] new_color = [int(argv[3]), int(argv[4]), int(argv[5]), 255] main(src, dest)
[ 6738, 279, 12993, 1330, 4217, 37, 11, 3460, 4163, 198, 198, 3605, 62, 8043, 796, 6045, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 422, 25064, 1330, 1822, 85, 198, 220, 220, 220, 12351, 796...
2.186275
102
tables = [ { "table_name": "volume", "fields": [ { "name": "traffic_study_count_id", "type": "PRIMARY KEY TEXT", "description": "", }, {"name": "row_id", "type": "TEXT", "description": ""}, {"name": "data...
[ 83, 2977, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11487, 62, 3672, 1298, 366, 29048, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 25747, 1298, 685, 198, 220, 220, 220, 220, 220, 220, ...
2.057196
542
import argparse from operator import itemgetter import sys
[ 11748, 1822, 29572, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 11748, 25064, 628, 628, 628, 628 ]
3.882353
17
import math import logging import torch from torch import Tensor from torch import nn import torch.nn.functional as F from typing import Optional, List, Tuple from .utils import locate_candidate_layer, locate_linear_layer __all__ = ['CAM', 'ScoreCAM', 'SSCAM', 'ISCAM'] class _CAM: """Implements a class activati...
[ 11748, 10688, 198, 11748, 18931, 198, 11748, 28034, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 19720, 1330, 32233, 11, 7343, 11, 309, 29291, 198, 19...
2.394271
6,389
""" List of phonetic symbols used in Annotation Changes to Mandarin: (@) --> 1 (&) --> 2 (a) --> 3 *diphthongs* sp --> - *silence* --> | *no annotation* Joseph Coffey Infant Language Acquisition Lab P...
[ 37811, 7343, 286, 32896, 5139, 14354, 973, 287, 1052, 38983, 220, 628, 220, 220, 220, 19179, 284, 41621, 25, 4275, 8, 14610, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.705562
917
from django.test import TestCase from .models import ResourceType, Book, Blog, Website, Meetup, Developer from django.urls import reverse from django.contrib.auth.models import User import datetime from .forms import WebsiteForm, MeetupForm, DeveloperForm, BookForm, BlogForm # Testing Models: # Test Resource...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 201, 198, 6738, 764, 27530, 1330, 20857, 6030, 11, 4897, 11, 14001, 11, 15887, 11, 21167, 929, 11, 23836, 201, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 201, 198, 6738, 42625, ...
2.768116
345
from yapylib.helpers.tree_util import get_level
[ 6738, 331, 499, 2645, 571, 13, 16794, 364, 13, 21048, 62, 22602, 1330, 651, 62, 5715, 628 ]
2.882353
17
constants.physical_constants["hartree-hertz relationship"]
[ 9979, 1187, 13, 42854, 62, 9979, 1187, 14692, 18647, 631, 12, 372, 22877, 2776, 8973 ]
3.866667
15
# Stimulate OR bit operator using Perceptron neural function # Bias = 0 and Weight = 1 print('ORBitwiseOperation: 0,0', ORBitwiseOperation(0, 0, 0)) print('ORBitwiseOperation: 0,1', ORBitwiseOperation(0, 1, 0)) print('ORBitwiseOperation: 1,0', ORBitwiseOperation(1, 0, 0)) print('ORBitwiseOperation: 1,1', ORBitwiseOpe...
[ 198, 2, 41669, 5039, 6375, 1643, 10088, 1262, 2448, 984, 1313, 17019, 2163, 198, 198, 2, 347, 4448, 796, 657, 290, 14331, 796, 352, 198, 4798, 10786, 1581, 13128, 3083, 32180, 25, 657, 11, 15, 3256, 6375, 13128, 3083, 32180, 7, 15, ...
2.888889
117