content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from __future__ import unicode_literals from django.db import migrations, models
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.608696
23
# 018 - Faa um programa que leia um ngulo qualquer e mostre na tela o valor do seno, cosseno e tangente desse ngulo. ''' from math import sin, cos, tan ang = float(input('Digite um ngulo: ')) sen = sin(ang) cos = cos(ang) tan = tan(ang) print('ngulo de {}: \n Seno = {:.2f} \n Cosseno = {:.2f} \n Tangente = {:.2f}'.f...
[ 2, 5534, 23, 532, 376, 7252, 23781, 1430, 64, 8358, 443, 544, 23781, 23370, 43348, 4140, 10819, 304, 749, 260, 12385, 256, 10304, 267, 1188, 273, 466, 3308, 78, 11, 269, 793, 23397, 304, 13875, 21872, 748, 325, 23370, 43348, 13, 198, ...
2.441913
439
import torch from torch import nn import torchvision import torch.nn.functional as F import time import os
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 10178, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 640, 198, 11748, 28686 ]
3.925926
27
import math result = [1] * 4355 list = [] flag = '' Sigma = ['A', 'C', 'T'] f = open('./cresci_text/finalTest1.txt', 'r', encoding='UTF-8') for line in f: list.append(line[line.find(' ', 2) + 1: -1]) f.close() for substring in Sigma: tryy(substring) for i in result: print(i)
[ 11748, 10688, 198, 198, 20274, 796, 685, 16, 60, 1635, 604, 28567, 198, 4868, 796, 17635, 198, 32109, 796, 10148, 628, 198, 198, 50, 13495, 796, 37250, 32, 3256, 705, 34, 3256, 705, 51, 20520, 198, 198, 69, 796, 1280, 7, 4458, 14, ...
2.231343
134
import random from pyautonifty.constants import DRAWING_SIZE, YELLOW, BLACK, MAGENTA, BLUE from pyautonifty.pos import Pos from pyautonifty.drawing import Drawing from pyautonifty.renderer import Renderer if __name__ == "__main__": example_drawing = smiley_face(Drawing()) output_data = example_drawing.to_n...
[ 11748, 4738, 198, 198, 6738, 12972, 2306, 261, 24905, 13, 9979, 1187, 1330, 360, 20530, 2751, 62, 33489, 11, 575, 23304, 3913, 11, 31963, 11, 28263, 3525, 32, 11, 9878, 8924, 198, 6738, 12972, 2306, 261, 24905, 13, 1930, 1330, 18574, ...
2.403941
406
import json import yaml from jsonschema import validate from cumulusci.utils.yaml import cumulusci_yml
[ 11748, 33918, 198, 198, 11748, 331, 43695, 198, 6738, 44804, 684, 2395, 2611, 1330, 26571, 198, 198, 6738, 10973, 23515, 979, 13, 26791, 13, 88, 43695, 1330, 10973, 23515, 979, 62, 88, 4029, 628 ]
3.117647
34
# -*- coding: utf-8 -*- # Copyright (c) 2019-2020 Christiaan Frans Rademan <chris@fwiw.co.za>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 13130, 12, 42334, 1951, 544, 272, 1305, 504, 5325, 8463, 1279, 354, 2442, 31, 44482, 14246, 13, 1073, 13, 4496, 28401, 198, 2, 1439, 2489, 10395,...
3.404762
546
#! /usr/bin/env python3 "A script to perform the linear regression and create the plot." # Python program to # demonstrate merging of # two files # Creating a list of filenames filenames = ['A.591-search-immune-dmel-FlyBase_IDs.txt', 'B.432_search-defense-dmel-FlyBase_IDs.txt'] # Open file3 in write mode with open(...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 1, 32, 4226, 284, 1620, 262, 14174, 20683, 290, 2251, 262, 7110, 526, 198, 198, 2, 11361, 1430, 284, 198, 2, 10176, 35981, 286, 198, 2, 734, 3696, 198, 198, 2, 30481, ...
2.505085
295
all=['load']
[ 439, 28, 17816, 2220, 20520, 198 ]
2.166667
6
# encoding: utf-8 import os import pydoc import inspect import PySide import vs import sfm import sfmApp class SFMAttribute(object): def list_attrs(o): current_attribute = o.FirstAttribute() attributes = [] while current_attribute is not None: attributes.append(SFMAttribute(current_attribute)) ...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 28686, 198, 11748, 279, 5173, 420, 198, 11748, 10104, 198, 198, 11748, 9485, 24819, 198, 11748, 3691, 198, 11748, 264, 38353, 198, 11748, 264, 38353, 4677, 628, 198, 4871, 14362, 5673, ...
2.449048
893
# Generated by Django 2.2 on 2021-09-14 07:38 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 33448, 12, 2931, 12, 1415, 8753, 25, 2548, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
# graphs.py # TODO: Import zeta function here or assume that the calling/loading program puts it into our global scope for us?
[ 2, 28770, 13, 9078, 198, 198, 2, 16926, 46, 25, 17267, 1976, 17167, 2163, 994, 393, 7048, 326, 262, 4585, 14, 25138, 1430, 7584, 340, 656, 674, 3298, 8354, 329, 514, 30 ]
3.96875
32
import pandas as pd import numpy as np from sklearn.linear_model import LogisticRegression from lightgbm import LGBMRegressor
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 5972, 2569, 8081, 2234, 198, 6738, 1657, 70, 20475, 1330, 406, 4579, 44, 8081, 44292, 628, 198 ]
3.368421
38
"""257. Binary Tree Paths""" # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right
[ 37811, 28676, 13, 45755, 12200, 10644, 82, 37811, 198, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 7, 15252, 2599, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, ...
2.371134
97
"""A tasks package, used to support different tasks that the bot can execute. Essentialy, one can define any kind of operation that the bot can perform over a type of input data (audio, text, video and voice). """
[ 37811, 32, 8861, 5301, 11, 973, 284, 1104, 1180, 8861, 326, 262, 10214, 460, 12260, 13, 198, 29508, 1843, 88, 11, 530, 460, 8160, 597, 1611, 286, 4905, 326, 262, 10214, 460, 1620, 625, 257, 2099, 198, 1659, 5128, 1366, 357, 24051, 1...
4.176471
51
# -*- coding: utf-8 -*- """ @Datetime: 2018/10/23 @Author: Zhang Yafei """ from django.forms import ModelForm, forms from crm import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 31, 27354, 8079, 25, 2864, 14, 940, 14, 1954, 198, 31, 13838, 25, 19439, 575, 8635, 72, 198, 37811, 198, 6738, 42625, 14208, 13, 23914, 1330, 9104, 84...
2.6
55
import uuid from django.core.files.base import ContentFile from django.core.files.storage import default_storage from django.db.models import Q from BiSheServer import settings from api.model_json import queryset_to_json from user.models import UsersPerfer, UsersDetail, UserTag # api # # def modify_u...
[ 11748, 334, 27112, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 8692, 1330, 14041, 8979, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330, 4277, 62, 35350, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198,...
2.01049
572
#!/usr/bin/env python #-*- coding: utf-8 -*- """ lib.py """ from string import printable as printable_chrs from collections import namedtuple from requests import get as re_get from datetime import datetime # Define constants API_URL = "http://dailydota2.com/match-api" Match = namedtuple("Match", ["timediff", "seri...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 8019, 13, 9078, 198, 37811, 198, 198, 6738, 4731, 1330, 3601, 540, 355, 3601, 540, 62, 354, 3808, 198...
2.49766
641
import sys if len(sys.argv) <= 1: print("python vv_hash.py property_name") exit(0) propertyName = sys.argv[1] if len(propertyName) == 0: print("empty element name") exit(0) hashCode = 0 for i in range(0, len(propertyName)): hashCode = (31 * hashCode + ord(propertyName[i])) & 0xFFFFFFFF if has...
[ 11748, 25064, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 19841, 352, 25, 198, 220, 220, 220, 3601, 7203, 29412, 410, 85, 62, 17831, 13, 9078, 3119, 62, 3672, 4943, 198, 220, 220, 220, 8420, 7, 15, 8, 198, 198, 26745, 5376, ...
2.410405
173
"""Test COUNTER JR1 journal report (TSV)"""
[ 37811, 14402, 31404, 5781, 32598, 16, 3989, 989, 357, 4694, 53, 8, 37811, 628, 198 ]
3.066667
15
from app import create_app, db from flask_migrate import Migrate from app.models import User, Posts from flask_script import Manager,Server app = create_app() # manager = Manager(app) # manager.add_command('server', Server) # #Creating migration instance # migrate = Migrate(app, db) # manager.add_command('db',Migrate...
[ 6738, 598, 1330, 2251, 62, 1324, 11, 20613, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 12043, 198, 6738, 42903, 62, 12048, 1330, 9142, 11, 10697, 198, 198, 1324, 796, 2251, 62, 1324,...
2.961957
184
# # . path_admin_schedules_grade_1 = '/schedules?grade=1&school=true&' path_admin_schedules_grade_2 = '/schedules?grade=2&school=true&' path_admin_schedules_grade_3 = '/schedules?grade=3&school=true&' path_admin_schedules_grade_4 = '/schedules?grade=4&school=true&' path_admin_schedules_grade_5 = '/schedules?...
[ 2, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 764, 220, 198, 6978, 62, 28482, 62, 1416, 704, 5028, 62, 9526, 62, 16, 796, 31051, 1416, 704, 5028, 30, 9526, 28, 16, 5, 14347, 28, 7942, 5, 6, 198, 6978, 62, 28482,...
2.355091
766
from .loader import * from .swagger import *
[ 6738, 764, 29356, 1330, 1635, 198, 6738, 764, 2032, 7928, 1330, 1635, 628 ]
3.538462
13
with open("input/input07.txt") as f: content = f.read().splitlines() positions = list(map(lambda x: int(x), content[0].split(","))) max_pos = max(positions) min_pos = min(positions) possible_pos = range(min_pos, max_pos + 1) fuel_costs1 = [] for align_pos in possible_pos: fuel_costs1.append(sum([abs(pos - al...
[ 4480, 1280, 7203, 15414, 14, 15414, 2998, 13, 14116, 4943, 355, 277, 25, 198, 220, 220, 220, 2695, 796, 277, 13, 961, 22446, 35312, 6615, 3419, 198, 198, 1930, 1756, 796, 1351, 7, 8899, 7, 50033, 2124, 25, 493, 7, 87, 828, 2695, 5...
2.720339
354
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2018 PocketBudgetTracker. All rights reserved. Author: Andrey Shelest (khadsl1305@gmail.com) 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15269, 220, 2864, 27290, 33, 29427, 35694, 13, 1439, 2489, 10395, 13, 198, 13838, 25, 843, 4364, 15325, 395...
3.269231
312
""" Copyright (C) 2018-2019 Intel 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 wri...
[ 37811, 198, 15269, 357, 34, 8, 2864, 12, 23344, 8180, 10501, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789,...
3.878049
164
import os import time import unittest import bitcoin.rpc import grpc import lnd_grpc.lnd_grpc as py_rpc import lnd_grpc.protos.rpc_pb2 as rpc_pb2 # from google.protobuf.internal.containers import RepeatedCompositeFieldContainer ####################### # Configure variables # ####################### CWD = os.getcwd...
[ 11748, 28686, 198, 11748, 640, 198, 11748, 555, 715, 395, 198, 198, 11748, 8550, 13, 81, 14751, 198, 11748, 1036, 14751, 198, 198, 11748, 300, 358, 62, 2164, 14751, 13, 75, 358, 62, 2164, 14751, 355, 12972, 62, 81, 14751, 198, 11748, ...
2.322981
483
# Copyright 2018 TVB-HPC contributors # # 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, 220, 220, 220, 220, 15069, 2864, 3195, 33, 12, 39, 5662, 20420, 198, 2, 198, 2, 220, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 220, 345, 743, 40...
3.252475
202
# # 20. Valid Parentheses # # Q: https://leetcode.com/problems/valid-parentheses/ # A: https://leetcode.com/problems/valid-parentheses/discuss/9214/Kt-Js-Py3-Cpp-Stack #
[ 2, 198, 2, 1160, 13, 48951, 16774, 39815, 198, 2, 198, 2, 1195, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 12102, 12, 8000, 39815, 14, 198, 2, 317, 25, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14,...
2.394366
71
import common lines = common.read_file('2016/23/data.txt').splitlines() # part 1 eggs = 7 # part 2 eggs = 12 registers = dict(a=eggs, b=0, c=0, d=0) instructions = [x.split(' ') for x in lines] i = 0 while i < len(instructions) and i >= 0: print(registers) instr = instructions[i] code = instr[0] if...
[ 11748, 2219, 198, 198, 6615, 796, 2219, 13, 961, 62, 7753, 10786, 5304, 14, 1954, 14, 7890, 13, 14116, 27691, 35312, 6615, 3419, 198, 198, 2, 636, 352, 198, 33856, 82, 796, 767, 198, 2, 636, 362, 198, 33856, 82, 796, 1105, 198, 19...
1.738544
742
""" This module contains functions that are imported and called by the server whenever it changes its running status. At the point these functions are run, all applicable hooks on individual objects have already been executed. The main purpose of this is module is to have a safe place to initialize eventual custom modu...
[ 37811, 198, 1212, 8265, 4909, 5499, 326, 389, 17392, 290, 1444, 416, 262, 198, 15388, 8797, 340, 2458, 663, 2491, 3722, 13, 1629, 262, 966, 777, 198, 12543, 2733, 389, 1057, 11, 477, 9723, 26569, 319, 1981, 5563, 423, 198, 282, 1493, ...
3.484716
229
from django.urls import path from . import views urlpatterns = [ path('register/student/', views.StudentCreate.as_view(), name='student-register'), path('register/prof/', views.ProfCreate.as_view(), name='prof-register'), path('remove/student/<pk>/', views.StudentRemove.as_view(), name='student-remov...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 201, 198, 6738, 764, 1330, 5009, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 201, 198, 220, 220, 220, 3108, 10786, 30238, 14, 50139, 14, 3256, 5009, 13, 38778, 16447, 13, 292, 62, 117...
2.826389
144
import sys from dataclasses import dataclass from io import StringIO from pathlib import Path from typing import Any import numpy as np from sklearn.model_selection import StratifiedKFold from utils.logger import logger from .artifacts import ExperimentArtifacts INPUT_COLUMNS = [ "Time", "V1", "V2", "V3", "V4", ...
[ 11748, 25064, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13,...
2.408451
213
# 4.Crie uma lista que v de 1 at 100. list = [ cont for cont in range(1,101)] print(list)
[ 2, 604, 13, 34, 5034, 334, 2611, 1351, 64, 8358, 410, 390, 352, 379, 1802, 13, 198, 198, 4868, 796, 685, 542, 329, 542, 287, 2837, 7, 16, 11, 8784, 15437, 198, 4798, 7, 4868, 8 ]
2.5
36
"""Fig. 3 from Heitzig & Hiller (2020) Degrees of individual and groupwise backward and forward responsibility in extensive-form games with ambiguity, and their application to social choice problems. ArXiv:2007.07352 drsc_fig3: v1: i dont_hesitatew3: lives hesitatev2: i try_after_alldelayed_try ...
[ 37811, 14989, 13, 513, 422, 679, 4224, 328, 1222, 3327, 263, 357, 42334, 8, 25905, 6037, 286, 1981, 290, 1448, 3083, 220, 198, 1891, 904, 290, 2651, 5798, 287, 7667, 12, 687, 1830, 351, 33985, 11, 220, 198, 392, 511, 3586, 284, 1919...
2.27242
591
fib(30)
[ 198, 69, 571, 7, 1270, 8, 198 ]
1.285714
7
from dataclasses import dataclass from bindings.csw.code_type_1 import CodeType1 __NAMESPACE__ = "http://www.opengis.net/ows"
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 34111, 13, 66, 2032, 13, 8189, 62, 4906, 62, 16, 1330, 6127, 6030, 16, 198, 198, 834, 45, 29559, 47, 11598, 834, 796, 366, 4023, 1378, 2503, 13, 404, 1516, 271, 13, 3262, ...
2.723404
47
from .image_generator import *
[ 6738, 764, 9060, 62, 8612, 1352, 1330, 1635, 198 ]
3.444444
9
import warnings import urllib warnings.filterwarnings("ignore", category=UserWarning) from fuzzywuzzy import fuzz from bs4 import BeautifulSoup from discogstagger.crawler import WebCrawler
[ 11748, 14601, 198, 11748, 2956, 297, 571, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 1600, 6536, 28, 12982, 20361, 8, 198, 198, 6738, 34669, 86, 4715, 88, 1330, 26080, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 673...
3.537037
54
""" Just some text transformation functions related to our conditions-related workarounds """ # Borrowed from parliament. Altered with normalization for lowercase. def translate_condition_key_data_types(condition_str): """ The docs use different type names, so this standardizes them. Example: The conditio...
[ 37811, 198, 5703, 617, 2420, 13389, 5499, 3519, 284, 674, 198, 17561, 1756, 12, 5363, 670, 283, 3733, 198, 37811, 628, 198, 2, 347, 6254, 276, 422, 8540, 13, 978, 4400, 351, 3487, 1634, 329, 2793, 7442, 13, 198, 4299, 15772, 62, 314...
2.991903
494
# -*- coding: utf-8 -*- import sys import re from .input import Input from ..exceptions import NoSuchOption, BadOptionUsage, TooManyArguments
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 302, 198, 198, 6738, 764, 15414, 1330, 23412, 198, 6738, 11485, 1069, 11755, 1330, 1400, 16678, 19722, 11, 7772, 19722, 28350, 11, 14190, 70...
3.152174
46
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from bs4 import BeautifulSoup as bs # your credentials email = "email@example.com" password = "password" # the sender's email FROM = "email@example.com" # the receiver's email TO = "to@example.com" # the subject of th...
[ 11748, 895, 83, 489, 571, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486...
3.089385
358
# flake8: noqa from .base import Base from .item import Item, ItemCreateModel, ItemModel from .user import User, UserCreateModel, UserModel
[ 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 764, 8692, 1330, 7308, 198, 6738, 764, 9186, 1330, 9097, 11, 9097, 16447, 17633, 11, 9097, 17633, 198, 6738, 764, 7220, 1330, 11787, 11, 11787, 16447, 17633, 11, 11787, 17633, 198 ]
3.5
40
#!/usr/bin/python3 # direwatch """ Craig Lamparter KM6LYW, 2021, MIT License modified by W4MHI February 2022 - see the init_display.py module for display settings - see https://www.delftstack.com/howto/python/get-ip-address-python/ for the ip address """ import sys import argparse import time from netifaces import...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 19958, 8340, 198, 198, 37811, 198, 40441, 28607, 2571, 46646, 21, 11319, 54, 11, 220, 33448, 11, 17168, 13789, 198, 198, 41771, 416, 370, 19, 44, 25374, 3945, 33160, 198, 12, 76...
2.590361
1,162
from __future__ import division import hashlib import logging import os import re __all__ = [ 'is_unsplitable', 'get_root_of_unsplitable', 'Pieces', ] UNSPLITABLE_FILE_EXTENSIONS = [ set(['.rar', '.sfv']), set(['.mp3', '.sfv']), set(['.vob', '.ifo']), ] logger = logging.getLogger(__name__) ...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 302, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 271, 62, 13271, 489, 4674, 3256, 198, 220, 220, 220,...
2.215989
713
gs2 = gridspec.GridSpec(3, 1) for ss in gs2: ax = fig.add_subplot(ss) example_plot(ax) ax.set_title("") ax.set_xlabel("") ax.set_xlabel("x-label", fontsize=12) gs2.tight_layout(fig, rect=[0.5, 0, 1, 1], h_pad=0.5)
[ 14542, 17, 796, 50000, 43106, 13, 41339, 22882, 7, 18, 11, 352, 8, 198, 198, 1640, 37786, 287, 308, 82, 17, 25, 198, 220, 220, 220, 7877, 796, 2336, 13, 2860, 62, 7266, 29487, 7, 824, 8, 198, 220, 220, 220, 1672, 62, 29487, 7, ...
1.94958
119
from __future__ import print_function, division import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils import random import model from torch.autograd import...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 11748, 28686, 198, 11748, 28034, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 9060, 1330, 33245, 11, 6121, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 294...
3.772727
88
from argparse import ArgumentParser from datetime import datetime from os import path, listdir, getcwd, chdir import subprocess from dateutil.parser import parse as dt_parse from ruamel.yaml import YAML if __name__ == '__main__': parser = ArgumentParser(description='Transform the FlashReads posts to Jekyll...
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 28686, 1330, 3108, 11, 1351, 15908, 11, 651, 66, 16993, 11, 442, 15908, 198, 11748, 850, 14681, 198, 198, 6738, 3128, 22602, 13, 48610, 1330, 211...
3.226619
278
"""Copyright (c) 2018 Great Ormond Street Hospital for Children NHS Foundation Trust & Birmingham Women's and Children's NHS Foundation Trust 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 withou...
[ 37811, 15269, 357, 66, 8, 2864, 3878, 1471, 6327, 3530, 9256, 329, 8990, 18183, 5693, 198, 33814, 1222, 18899, 6926, 338, 290, 8990, 338, 18183, 5693, 9870, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 10...
3.9437
373
import pygame import lib.common as common # initializing module pygame.init()
[ 11748, 12972, 6057, 198, 198, 11748, 9195, 13, 11321, 355, 2219, 198, 198, 2, 4238, 2890, 8265, 198, 9078, 6057, 13, 15003, 3419, 198 ]
3.333333
24
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Social Network Analysis module group project 2020', author='Dean Power', license='', )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 10677, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, 43789, 22784, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15,...
3
77
from __future__ import annotations from jigu.core import AccAddress, Coins from jigu.util.serdes import JsonDeserializable, JsonSerializable from jigu.util.validation import Schemas as S from jigu.util.validation import validate_acc_address __all__ = ["Input", "Output"]
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 474, 328, 84, 13, 7295, 1330, 6366, 20231, 11, 30108, 198, 6738, 474, 328, 84, 13, 22602, 13, 2655, 8906, 1330, 449, 1559, 5960, 48499, 13821, 11, 449, 1559, 32634, 13821, 198, 673...
3.209302
86
""" A package dedicated to a memory related components, interfaces and utilities. """
[ 37811, 198, 32, 5301, 7256, 284, 257, 4088, 3519, 6805, 11, 20314, 290, 20081, 13, 198, 37811 ]
5
17
""" Vertical Order Traversal On Binary Tree """ from collections import defaultdict def vertical_order(root): """ vertical order traversal of binary tree """ hd_map = defaultdict(list) horizontal_dist = 0 preorder(root, horizontal_dist, hd_map) for key, value in hd_map.items(): print(f...
[ 37811, 38937, 8284, 4759, 690, 282, 1550, 45755, 12200, 198, 37811, 198, 198, 6738, 17268, 1330, 4277, 11600, 628, 628, 198, 4299, 11723, 62, 2875, 7, 15763, 2599, 198, 220, 220, 220, 37227, 11723, 1502, 33038, 282, 286, 13934, 5509, 22...
2.53169
284
import torchvision.transforms as transforms import torch import torchvision __author__ = "Dublin City University" __copyright__ = "Copyright 2019, Dublin City University" __credits__ = ["Gideon Maillette de Buy Wenniger"] __license__ = "Dublin City University Software License (enclosed)"
[ 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 198, 834, 9800, 834, 796, 366, 37590, 2815, 2254, 2059, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 13130, 11, 18220, 2254, 2059, 1,...
3.818182
77
import cProfile import functools import logging import pstats import sys import six _logger = logging.getLogger(__name__) _logger.setLevel(logging.DEBUG) _stream_handler = logging.StreamHandler(sys.stdout) _stream_handler.setLevel(logging.DEBUG) _logger.addHandler(_stream_handler)
[ 11748, 269, 37046, 198, 11748, 1257, 310, 10141, 198, 11748, 18931, 198, 11748, 279, 34242, 198, 11748, 25064, 198, 198, 11748, 2237, 628, 198, 62, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 62, 6404, 13...
3.042553
94
import helper_funcs.spline import helper_funcs.plotter import helper_funcs.grid
[ 11748, 31904, 62, 12543, 6359, 13, 22018, 500, 198, 11748, 31904, 62, 12543, 6359, 13, 29487, 353, 198, 11748, 31904, 62, 12543, 6359, 13, 25928 ]
3.16
25
import os import sys from urllib.parse import urlencode from flask import Flask, Response, abort, request, stream_with_context, jsonify from flask_restx import Api, Resource, fields, reqparse import requests from qwc_services_core.api import CaseInsensitiveArgument from qwc_services_core.app import app_nocache from q...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 198, 6738, 42903, 1330, 46947, 11, 18261, 11, 15614, 11, 2581, 11, 4269, 62, 4480, 62, 22866, 11, 33918, 1958, 198, 6738, 42903, 62, ...
2.731041
1,134
from matplotlib import pyplot as plt # data speding from Federal Government Plan planes = ['Transferncia para sade', 'FPE e FPM', 'Assistncia Social', 'Suspenso de dvidas da Unio', 'Renegociao com bancos'] spend = [8, 16, 2, 12.6, 9.3] plt.axis("equal") plt.pie(spend, labels=planes, autopct=...
[ 201, 198, 201, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 201, 198, 201, 198, 2, 1366, 599, 8228, 422, 5618, 5070, 5224, 201, 198, 22587, 796, 37250, 8291, 69, 1142, 33743, 31215, 264, 671, 3256, 705, 5837, 36, ...
2.257143
175
import unittest from nexusmaker import CognateParser
[ 11748, 555, 715, 395, 198, 198, 6738, 45770, 10297, 1330, 26543, 378, 46677, 198 ]
3.857143
14
from django.contrib import admin from django.urls import path from . import views from django.conf.urls import url urlpatterns = [ path('',views.home,name='home'), path('register/',views.register,name='register'), path('login/',views.Login,name='login'), path('logout/', views.logout_view, name='logou...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 628, 198, 6371, 33279, 82, 796, 685, 198, 22...
2.824104
307
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ 2, 15069, 357, 66, 8, 12131, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845...
3.082305
729
def normalize(values, gammas): """Adjust a list of brightness values according to a list of gamma values. Given a list of light brightness values from 0.0 to 1.0, adjust the value according to the corresponding maximum brightness in the gamma list. For example:: >>> gammas = [0.3, 1.0] ...
[ 4299, 3487, 1096, 7, 27160, 11, 9106, 5356, 2599, 198, 220, 220, 220, 37227, 39668, 257, 1351, 286, 22204, 3815, 1864, 284, 257, 1351, 286, 34236, 3815, 13, 628, 220, 220, 220, 11259, 257, 1351, 286, 1657, 22204, 3815, 422, 657, 13, ...
2.335689
283
import sys import cv2 # it is necessary to use cv2 library import numpy as np # https://docs.opencv.org/4.5.2/d4/dc6/tutorial_py_template_matching.html if( __name__ == '__main__' ): if( len(sys.argv) >= 3 ): main( sys.argv[1], sys.argv[2] ) else: print( 'usage: python '+sys.argv[0]+' input_fi...
[ 11748, 25064, 198, 198, 11748, 269, 85, 17, 1303, 340, 318, 3306, 284, 779, 269, 85, 17, 5888, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 3740, 1378, 31628, 13, 9654, 33967, 13, 2398, 14, 19, 13, 20, 13, 17, 14, 67, 19, 14...
2.251613
155
n = int(input()) s = input() bcnt = [0]*n wcnt = [0]*n result = 2 * 10 ** 5 # if s[0] == "#": bcnt[0] = 1 if s[n-1] == ".": wcnt[n-1] = 1 for i in range(1,n): bcnt[i] = bcnt[i-1] if s[i] == "#": bcnt[i] += 1 for i in range(n-2,-1,-1): wcnt[i] = wcnt[i+1] if s[i] == "...
[ 77, 796, 493, 7, 15414, 28955, 201, 198, 82, 796, 5128, 3419, 201, 198, 15630, 429, 796, 685, 15, 60, 9, 77, 201, 198, 86, 66, 429, 796, 685, 15, 60, 9, 77, 201, 198, 20274, 796, 362, 1635, 838, 12429, 642, 201, 198, 201, 198,...
1.631068
309
#!/usr/bin/env python3 """Script for Tkinter GUI chat client.""" from socket import AF_INET, socket, SOCK_STREAM from threading import Thread import tkinter from tkinter import filedialog, Tk import os import time def private_receive(pmsg_list, pclient_socket): """Handles receiving of messages.""" # pmsg_list...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 7391, 329, 309, 74, 3849, 25757, 8537, 5456, 526, 15931, 198, 6738, 17802, 1330, 12341, 62, 1268, 2767, 11, 17802, 11, 311, 11290, 62, 2257, 32235, 198, 6738, 4704, 278, 133...
2.179409
2,302
import wexpect import time import sys import os here = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, here) from long_printer import puskas_wiki print(wexpect.__version__) # With quotes (C:\Program Files\Python37\python.exe needs quotes) python_executable = '"' + sys.executable + '" ' ...
[ 11748, 356, 87, 806, 201, 198, 11748, 640, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 201, 198, 1456, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 201, 198, 1...
2.241758
182
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 26 10:17:51 2020 description : Sampling methods from sir space to data space author : bveitch version : 1.0 project : EpidPy (epidemic modelling in python) Usage: Data fitting in least squares fit Also acts on labels for data ...
[ 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, 19480, 7653, 2608, 838, 25, 1558, 25, 4349, 12131, 198, 198, 11213, 1058, 3409, 11347, 5050...
1.974533
589
""" API to sanitation session. Sanitation session allows having a state within a single sanitation process. One important thing stored to the session is a secret key which is generated to a new random value for each sanitation session, but it stays constant during the whole sanitation process. Its value is never reve...
[ 37811, 198, 17614, 284, 39958, 6246, 13, 198, 198, 15017, 3780, 6246, 3578, 1719, 257, 1181, 1626, 257, 2060, 39958, 198, 14681, 13, 198, 198, 3198, 1593, 1517, 8574, 284, 262, 6246, 318, 257, 3200, 1994, 543, 318, 198, 27568, 284, 25...
2.967721
1,549
import pyb print("Test Timers") t1 = pyb.Timer(1) t2 = pyb.Timer(2) t1.interval(2000,callb) t2.timeout(5000,callbTimeout) t1.freq(1) print("f t1:"+str(t1.freq())) t1.period(204000000) t1.prescaler(3) print("period t1:"+str(t1.period())) print("presc t1:"+str(t1.prescaler())) t1.counter(0) print("counter t1:"+str(...
[ 11748, 12972, 65, 198, 198, 4798, 7203, 14402, 5045, 364, 4943, 198, 198, 83, 16, 796, 12972, 65, 13, 48801, 7, 16, 8, 198, 83, 17, 796, 12972, 65, 13, 48801, 7, 17, 8, 198, 198, 83, 16, 13, 3849, 2100, 7, 11024, 11, 13345, 65...
1.990991
222
import json import os import tempfile import unittest from unittest.mock import patch from waterfalls import Viewer, viewer if __name__ == "__main__": unittest.main()
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 1660, 23348, 1330, 3582, 263, 11, 19091, 628, 198, 198, 361, 11593, 3672, 834, 662...
3.017241
58
from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit import PromptSession,prompt,print_formatted_text from reflect.style import * import os from prompt_toolkit.shortcuts import clear from prompt_toolkit.formatted_text import FormattedText
[ 6738, 6152, 62, 25981, 15813, 13, 2539, 62, 30786, 1330, 7383, 36180, 654, 198, 6738, 6152, 62, 25981, 15813, 1330, 45965, 36044, 11, 16963, 457, 11, 4798, 62, 687, 16898, 62, 5239, 198, 6738, 4079, 13, 7635, 1330, 1635, 198, 11748, 2...
3.676056
71
from matrix import Matrix as CMatrix from py_matrix import PyMatrix if __name__ == '__main__': main()
[ 6738, 17593, 1330, 24936, 355, 16477, 265, 8609, 198, 6738, 12972, 62, 6759, 8609, 1330, 9485, 46912, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.972222
36
import datetime import json from django.conf import settings from django.http import HttpResponse from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView from horizon import exceptions, tables from horizon_telemetry.forms import DateForm from horizon_telemetry.utils.influ...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, ...
2.035422
367
from unittest import TestCase from util.boyer_moore_search import z_array from util.boyer_moore_search import boyer_moore, BoyerMoore __author__ = 'Yifei'
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 7736, 13, 7081, 263, 62, 5908, 382, 62, 12947, 1330, 1976, 62, 18747, 198, 6738, 7736, 13, 7081, 263, 62, 5908, 382, 62, 12947, 1330, 2933, 263, 62, 5908, 382, 11, 6387, 263, 40049,...
2.854545
55
from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.shortcuts import render, redirect # Create your views here.
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 11, 17594, 11, 2604, 448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, ...
3.661017
59
import random nouns = ["", "", "", "", ""] adverbs = ["", "", "", "", ""] adjectives = ["", "", "", "", ""] print(get_jokes(6)) print(get_jokes_adv(2,False)) print(nouns, adverbs, adjectives) #,
[ 11748, 4738, 198, 198, 77, 977, 82, 796, 14631, 1600, 366, 1600, 366, 1600, 366, 1600, 366, 8973, 198, 324, 46211, 796, 14631, 1600, 366, 1600, 366, 1600, 366, 1600, 366, 8973, 198, 324, 752, 1083, 796, 14631, 1600, 366, 1600, 366, ...
2.195652
92
# # Dates and Times in Python: Dates & Time # Python Techdegree # # Created by Dulio Denis on 12/24/18. # Copyright (c) 2018 ddApps. All rights reserved. # ------------------------------------------------ # Challenge 4: strftime & strptime # ------------------------------------------------ # Challenge Task 1 of 2...
[ 2, 198, 2, 220, 44712, 290, 3782, 287, 11361, 25, 44712, 1222, 3862, 198, 2, 220, 11361, 9634, 16863, 198, 2, 198, 2, 220, 15622, 416, 42148, 952, 33089, 319, 1105, 14, 1731, 14, 1507, 13, 198, 2, 220, 15069, 357, 66, 8, 2864, 4...
3.23588
301
from google.appengine.ext import ndb
[ 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198 ]
3.363636
11
# Generated by Django 2.1.4 on 2019-11-18 11:00 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 19, 319, 13130, 12, 1157, 12, 1507, 1367, 25, 405, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
#!/usr/bin/python from __future__ import division from __future__ import with_statement import matplotlib from matplotlib import rcParams from matplotlib import pyplot from mpl_toolkits.axes_grid1 import make_axes_locatable from mpl_toolkits.mplot3d import Axes3D from PIL import Image #import Image from pylab import * ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 11748, 2603, 29487, 8019, 198, 6738, 2603, 29487, 8019, 1330, 48321, 10044, 4105, 198, 6738, 2603, ...
2.560922
911
from hata import Client MELON : Client #@MELON.commands.from_class #class prefix: # pass #@MELON.commands.from_class #class slowmode: # pass #@MELON.commands.from_class #class logs: # pass #@MELON.commands.from_class #class warn: # pass #@MELON.commands.from_class #class mute: # pass #@MELON.comma...
[ 6738, 289, 1045, 1330, 20985, 198, 198, 44, 3698, 1340, 1058, 20985, 198, 198, 2, 31, 44, 3698, 1340, 13, 9503, 1746, 13, 6738, 62, 4871, 198, 2, 4871, 21231, 25, 198, 2, 220, 220, 220, 1208, 198, 198, 2, 31, 44, 3698, 1340, 13,...
2.151515
264
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ Implementation of linting support over LSP. """ import json import pathlib import sys from typing import Dict, Sequence, Union # Ensure that will can import LSP libraries, and other bundled linter libraries sys.path.appe...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 37811, 198, 3546, 32851, 286, 300, 600, 278, 1104, 625, 406, 4303, 13, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 310...
2.331713
1,851
from .webapi import WebAPI
[ 6738, 764, 12384, 15042, 1330, 5313, 17614, 198 ]
3.375
8
from pybloom import BloomFilter if __name__ == '__main__': total_items = 9585058 error = 0.01 bf = BloomFilter(capacity=total_items, error_rate=error) for i in range(total_items): bf.add(i) cf = 0 ct = 0 for i in range(total_items, 2*total_items): if i in bf: c...
[ 6738, 12972, 2436, 4207, 1330, 11891, 22417, 220, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2472, 62, 23814, 796, 860, 3365, 1120, 3365, 198, 220, 220, 220, 4049, 796, 657, 13, 486, 198, ...
2.048544
206
# Generated by Django 2.1.7 on 2019-10-31 16:30 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 940, 12, 3132, 1467, 25, 1270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from .cmdline import CmdUtils
[ 6738, 764, 28758, 1370, 1330, 327, 9132, 18274, 4487, 628, 198 ]
2.909091
11
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-24 18:24 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, 1157, 13, 20, 319, 2177, 12, 1157, 12, 1731, 1248, 25, 1731, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
#!/usr/bin/env python3 PKG = 'test_harmoni_speaker' # Common Imports import unittest, rospy, rospkg, roslib, sys #from unittest.mock import Mock, patch # Specific Imports from actionlib_msgs.msg import GoalStatus from harmoni_common_msgs.msg import harmoniAction, harmoniFeedback, harmoniResult from harmoni_common_lib...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 40492, 38, 796, 705, 9288, 62, 29155, 14651, 62, 4125, 3110, 6, 198, 2, 8070, 1846, 3742, 198, 11748, 555, 715, 395, 11, 686, 2777, 88, 11, 686, 2777, 10025, 11, 686, 6649...
3.023669
169
""" An utility class for initializing different explainer objects. """ from torch import nn import numpy as np from captum.attr import DeepLift, IntegratedGradients, ShapleyValueSampling, LayerGradCam, Saliency from captum.attr._utils.attribution import LayerAttribution
[ 37811, 198, 2025, 10361, 1398, 329, 4238, 2890, 1180, 4727, 263, 5563, 13, 198, 37811, 198, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3144, 388, 13, 35226, 1330, 10766, 43, 2135, 11, 35432, 42731, ...
3.84507
71
from django.shortcuts import render from . import forms from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate,login,logout # Create your views here. def registro...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 1330, 5107, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, ...
2.375912
822
from django.conf import settings from django.contrib import admin from geotrek.common.admin import MergeActionMixin from geotrek.outdoor.models import Practice, SiteType if 'modeltranslation' in settings.INSTALLED_APPS: from modeltranslation.admin import TranslationAdmin else: TranslationAdmin = admin.ModelAdm...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4903, 313, 37818, 13, 11321, 13, 28482, 1330, 39407, 12502, 35608, 259, 198, 6738, 4903, 313, 37818, 13, 448, 9424, 13, 27530, 13...
3.457447
94
from __future__ import print_function import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from apiclient.http import MediaFileUpload import gdown def gdrive...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 13, 6978, 198, 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 198, 6738, 23645, 62, 18439, 62, 12162, 1071, 8019, 13, 11125, 1330, 2262, 4262, 4677, 37535, ...
2.416495
1,455
import pytest from pathlib import Path
[ 11748, 12972, 9288, 198, 6738, 3108, 8019, 1330, 10644, 628, 198 ]
3.727273
11
# @TODO(aaronhma): UPDATE # @TODO(aaronhma): UPDATE
[ 220, 220, 220, 1303, 2488, 51, 3727, 46, 7, 64, 8045, 21720, 2599, 35717, 198, 220, 220, 220, 1303, 2488, 51, 3727, 46, 7, 64, 8045, 21720, 2599, 35717 ]
2.034483
29
import os, logging from foresight.environment.git.git_helper import GitHelper from foresight.environment.git.git_env_info_provider import GitEnvironmentInfoProvider from foresight.environment.github.github_environment_info_provider import GithubEnvironmentInfoProvider from foresight.environment.gitlab.gitlab_environmen...
[ 11748, 28686, 11, 18931, 198, 6738, 1674, 18627, 13, 38986, 13, 18300, 13, 18300, 62, 2978, 525, 1330, 15151, 47429, 198, 6738, 1674, 18627, 13, 38986, 13, 18300, 13, 18300, 62, 24330, 62, 10951, 62, 15234, 1304, 1330, 15151, 31441, 123...
4.052632
266
import math import os import random import re import sys if __name__ == '__main__': n = int(input()) arr = list(map(int, input().rstrip().split())) plusMinus(arr)
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 28955, 628, 220, 220, 220, 5240, 7...
2.656716
67
#!/usr/bin/env python3 """Start the godoc server and open the docs in a browser window. This uses the 'open' command to open a web browser. """ import argparse import http import http.client import subprocess import time def is_ready(host, port): """Check if the web server returns an OK status.""" conn = h...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 10434, 262, 5770, 420, 4382, 290, 1280, 262, 34165, 287, 257, 6444, 4324, 13, 198, 198, 1212, 3544, 262, 705, 9654, 6, 3141, 284, 1280, 257, 3992, 6444, 13, 198, 198, 3781...
2.687739
522
import glob import os import random import re import sys import numpy as np import bio import config # # experiment to see what position does with one mutation # what is the effect of position? # # # experiment to see what position does with one mutation # what is the effect of position? # # # what is the mappi...
[ 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 13401, 198, 11748, 4566, 198, 198, 2, 220, 198, 2, 6306, 284, 766, 644, 2292, 857, 3...
2.766234
385
"""Extend user table Revision ID: e3dda7be6a95 Revises: Create Date: 2021-06-07 11:43:45.144088 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "e3dda7be6a95" down_revision = None branch_labels = None depends_on = None
[ 37811, 11627, 437, 2836, 3084, 198, 198, 18009, 1166, 4522, 25, 304, 18, 1860, 64, 22, 1350, 21, 64, 3865, 198, 18009, 2696, 25, 220, 198, 16447, 7536, 25, 33448, 12, 3312, 12, 2998, 1367, 25, 3559, 25, 2231, 13, 1415, 1821, 3459, ...
2.531532
111