content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
[ 2, 15069, 2864, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 1639, 743, 733...
4.027933
179
import numpy as np import imageio from evaluation.eval_utils import to_img_padded, format_img, init_evaluation main()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2939, 952, 198, 198, 6738, 12660, 13, 18206, 62, 26791, 1330, 284, 62, 9600, 62, 79, 29373, 11, 5794, 62, 9600, 11, 2315, 62, 18206, 2288, 628, 628, 198, 12417, 3419, 198 ]
3.153846
39
# # HttpServer.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # Server to implement the http part of the oneM2M Mcx communication interface. # from __future__ import annotations import logging, sys, traceback, urllib3 from copy import deepcopy from typing ...
[ 2, 198, 2, 197, 43481, 10697, 13, 9078, 198, 2, 198, 2, 197, 7, 66, 8, 12131, 416, 33728, 41828, 198, 2, 197, 34156, 25, 347, 10305, 513, 12, 2601, 682, 13789, 13, 4091, 262, 38559, 24290, 2393, 329, 2252, 3307, 13, 198, 2, 198,...
3.918848
382
""" Tests for the sprockets.mixins.statsd package """ import mock import socket try: import unittest2 as unittest except ImportError: import unittest from tornado import httputil from tornado import web from sprockets.mixins import statsd as statsd
[ 37811, 198, 51, 3558, 329, 262, 599, 10823, 1039, 13, 19816, 1040, 13, 34242, 67, 5301, 198, 198, 37811, 198, 11748, 15290, 198, 11748, 17802, 198, 28311, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 17, 355, 555, 715, 395, 198, 163...
3.117647
85
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os from base import BaseObject from base import CryptoBase from base import FileIO from datadb2.core.dmo import BaseDB2Client def cendant(self) -> BaseDB2Client: """ :return: """ return self._connect(self._values(self._config...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 628, 198, 11748, 28686, 198, 198, 6738, 2779, 1330, 7308, 10267, 198, 6738, 2779, 1330, 36579, 14881, 198, 6738, 2779, 1330, 9220...
2.417112
187
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Deep Clustering modeller class """ from .. import torch_imported if torch_imported: import torch import torch.nn as nn import numpy as np
[ 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, 29744, 1012, 436, 1586, 953, 12368, 1398, 198, 37811, 198, 198, 6738, 11485, 1330, 28034, 62, 320, 9213, 19...
2.653333
75
""" 67 - Faa um programa que mostre a tabuada de vrios nmeros, um de cada vez, para cada valor digitado pelo usurio. O programa ser interrompido quando o nmero solicitado for negativo. """ while True: n = int(input('Informe um nmero para ver sua tabuada: ')) if n < 0: break print('-' * 13) for ...
[ 37811, 8275, 532, 376, 7252, 23781, 1430, 64, 8358, 749, 260, 257, 7400, 84, 4763, 390, 410, 380, 418, 299, 647, 418, 11, 23781, 390, 269, 4763, 1569, 89, 11, 31215, 269, 4763, 1188, 273, 16839, 4533, 16176, 78, 198, 385, 333, 952, ...
2.26738
187
from django.shortcuts import render from django.http import HttpResponse from .models import Image,Category,Location # def delete_image(request, pk): # gallery = get_object_or_404(Cat, pk=pk) # if request.method == 'POST': # gallery.delete() # return redire...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 220, 1330, 367, 29281, 31077, 198, 6738, 764, 27530, 1330, 7412, 11, 27313, 11, 14749, 628, 628, 198, 198, 2, 825, 12233, 62, 9060, 7, 25927, 11, 279...
2.301075
186
from typing import Dict from StructNoSQL import TableDataModel, BaseField, MapModel
[ 6738, 19720, 1330, 360, 713, 198, 6738, 32112, 2949, 17861, 1330, 8655, 6601, 17633, 11, 7308, 15878, 11, 9347, 17633, 628 ]
4.047619
21
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ 2, 46424, 347, 43312, 38644, 38559, 24290, 9878, 11290, 46424, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 220, 13096, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 1378...
3.007429
673
# Generated by Django 2.2.5 on 2019-12-14 15:11 import django.utils.timezone from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 1065, 12, 1415, 1315, 25, 1157, 198, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.926829
41
# -*- coding=utf-8 -*- import pygame from bf_form import BFForm from bf_button import BFButton from globals import LanguageConfigParser, LanguageLib
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 11748, 12972, 6057, 198, 6738, 275, 69, 62, 687, 1330, 347, 5777, 579, 198, 6738, 275, 69, 62, 16539, 1330, 41646, 21864, 198, 6738, 15095, 874, 1330, 15417, 16934, 46677, ...
3.166667
48
# -*- coding: utf-8 -*- """ Created on Thu Oct 4 14:09:44 2018 @author: VeNoMzZxHD """ import tkinter from tkinter.filedialog import askopenfilename from collections import Counter import re import string #Returns string of text file def readFile(): ''' tkinter.Tk().withdraw() inputfilename = askopenfil...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2556, 220, 604, 1478, 25, 2931, 25, 2598, 2864, 198, 198, 31, 9800, 25, 8016, 2949, 44, 89, 57, 87, 10227, 198, 37811, 198, 198, 11748, ...
2.817629
329
#!/usr/bin/env python # **************************************** # ############# # IMPORTS # ############# # standard python packages import ConfigParser, copy, inspect, logging, os, sys from Node import Node if not os.path.abspath( __file__ + "/../../../lib/iapyx/src" ) in sys.path : sys.path.append( os.path.ab...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 41906, 4557, 1303, 198, 198, 7804, 4242, 2, 198, 2, 220, 30023, 33002, 220, 1303, 198, 7804, 4242, 2, 198, 2, 3210, 21015, 10392, 198, 11748, 17056, 46677, 11, 4866, 11, 1010...
3.14
150
from freezegame.sprite import Sprite
[ 6738, 1479, 89, 1533, 480, 13, 34975, 578, 1330, 33132, 628 ]
3.454545
11
from django.db import models from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel from wagtail.core.blocks import StructBlock, CharBlock from wagtail.core.fields import StreamField from wagtail.core.models import Page from wagtail.images.edit_handlers import ImageChooserPanel from wagtailmarkdown.block...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 266, 363, 13199, 13, 28482, 13, 19312, 62, 4993, 8116, 1330, 7663, 26639, 11, 13860, 15878, 26639, 198, 198, 6738, 266, 363, 13199, 13, 7295, 13, 27372, 1330, 32112, 12235, 11, 3178, ...
3.671875
128
from utility.sweetie import serve serve()
[ 6738, 10361, 13, 34751, 494, 1330, 4691, 201, 198, 201, 198, 2655, 303, 3419 ]
3.142857
14
from dataclasses import dataclass, field from enum import Enum from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-atomic-ID-enumeration-5-NS"
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 32233, 198, 198, 834, 45, 29559, 47, 11598, 834, 796, 366, 45, 1797, 4694, 2395, 2611, 12, 50, 53, 12, 3824, 12, 47...
2.803571
56
#!/usr/bin/env python3 # pylint: disable=no-self-use """Test unit.""" import unittest if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 944, 12, 1904, 198, 37811, 14402, 4326, 526, 15931, 198, 198, 11748, 555, 715, 395, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, ...
2.362069
58
''' this file creates the objects used to access the scrobbling service api No actual creds should be stored here! This module will be imported and used by the main code ''' import os import sys import pylast try: API_KEY = os.environ["LASTFM_API_KEY"] API_SECRET = os.environ["LASTFM_API_SECRET"] ex...
[ 7061, 6, 428, 2393, 8075, 262, 5563, 973, 284, 1895, 262, 629, 22609, 11108, 2139, 40391, 628, 220, 220, 220, 1400, 4036, 2600, 82, 815, 307, 8574, 994, 0, 198, 220, 220, 220, 770, 8265, 481, 307, 17392, 290, 973, 416, 262, 1388, ...
2.602767
506
import os import urwid from .globalBase import * from .urwidHelper import * from .tool import * #import dc from .myutil import *
[ 201, 198, 11748, 28686, 201, 198, 11748, 2956, 28029, 201, 198, 201, 198, 6738, 764, 20541, 14881, 1330, 1635, 201, 198, 201, 198, 6738, 764, 333, 28029, 47429, 1330, 1635, 201, 198, 6738, 764, 25981, 1330, 1635, 201, 198, 201, 198, 2...
2.607143
56
# runs t-tests over the null hypothesis # avg_gini if (priority == "newer") == avg_gini if (priority == "more active") import csv import numpy as np from scipy.stats import ttest_ind from scipy.special import stdtr def readCsvFile(fileName): ''' (string) => list of dicts Read the file called fileName a...
[ 2, 4539, 256, 12, 41989, 625, 262, 9242, 14078, 220, 198, 2, 42781, 62, 1655, 72, 611, 357, 49336, 6624, 366, 3605, 263, 4943, 6624, 42781, 62, 1655, 72, 611, 357, 49336, 6624, 366, 3549, 4075, 4943, 198, 198, 11748, 269, 21370, 198...
1.960538
4,384
''' Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]nums[i]). Return the running sum of nums. '''
[ 7061, 6, 198, 15056, 281, 7177, 997, 82, 13, 775, 8160, 257, 2491, 2160, 286, 281, 7177, 355, 2491, 13065, 58, 72, 60, 796, 2160, 7, 77, 5700, 58, 15, 60, 77, 5700, 58, 72, 35944, 198, 198, 13615, 262, 2491, 2160, 286, 997, 82, ...
2.78
50
# -*- coding: utf-8 -*- import imported import foo.bar print(imported.__doc__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 17392, 198, 11748, 22944, 13, 5657, 198, 198, 4798, 7, 320, 9213, 13, 834, 15390, 834, 8, 198 ]
2.382353
34
# Copyright 2014 Alistair Muldal <alistair.muldal@pharm.ox.ac.uk> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # Th...
[ 2, 15069, 1946, 978, 396, 958, 8252, 335, 282, 1279, 49845, 958, 13, 30300, 335, 282, 31, 746, 1670, 13, 1140, 13, 330, 13, 2724, 29, 198, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, ...
2.477927
3,126
#!/usr/bin/env python3 # by affggh # Apcache 2.0 import os import sys import shutil import zipfile import subprocess import platform import requests if os.name == 'nt': import tkinter as tk if os.name == 'posix': from mttkinter import mtTkinter as tk # While Load some need thread funcion on Linux it will...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 220, 416, 1527, 70, 456, 198, 2, 5949, 23870, 362, 13, 15, 220, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4423, 346, 198, 11748, 19974, 7753, 198, 11748, 850, 14681, 1...
2.839552
268
from .helpers import * from .decorators import *
[ 6738, 764, 16794, 364, 1330, 1635, 198, 6738, 764, 12501, 273, 2024, 1330, 1635, 198 ]
3.266667
15
import sys sys.path.append("..") from gym_snake.envs.node import Node from gym_snake.envs.snake_env import action_to_vector from gym_snake.envs.snake_env import SnakeAction from gym_snake.envs.snake_env import SnakeCellState from gym_snake.envs.snake_env import rotate_action_clockwise from gym_snake.envs.snake...
[ 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 201, 198, 201, 198, 6738, 11550, 62, 16184, 539, 13, 268, 14259, 13, 17440, 1330, 19081, 201, 198, 6738, 11550, 62, 16184, 539, 13, 268, 14259, 13, 16184, 539, 62, ...
2.634286
175
import discord from discord.ext import commands import asyncio import logging import sys import requests import datetime from bs4 import BeautifulSoup from util import * from wowapi import WowApi, WowApiException, WowApiConfigException from killpoints import KillPoints from math import ceil base_wow_progress = "http:/...
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 7007, 198, 11748, 4818, 8079, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 7736, 1330, 1635, 1...
2.283626
1,710
# -*- coding: utf-8 -*- """Module for reading and parsing values from Fingrid APIs.""" # Copyright (c) TUT Tampere University of Technology 2015-2018. # This software has been developed in Procem-project funded by Business Finland. # This code is licensed under the MIT license. # See the LICENSE.txt in the project roo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26796, 329, 3555, 290, 32096, 3815, 422, 376, 278, 6058, 23113, 526, 15931, 198, 198, 2, 15069, 357, 66, 8, 309, 3843, 11552, 431, 260, 2059, 286, 8987, 1853, 1...
3.134454
238
# script to generate an overview file of all measurentoverview files import os import sys
[ 2, 4226, 284, 7716, 281, 16700, 2393, 286, 477, 3953, 429, 2502, 1177, 3696, 198, 198, 11748, 28686, 198, 11748, 25064, 198 ]
4.136364
22
#!/usr/bin/env python3 import pytest import autosnapgene as snap
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 12972, 9288, 198, 11748, 44619, 77, 499, 70, 1734, 355, 11495, 198 ]
2.75
24
from typing import Set, List from inspectable import Inspectable from interactable import Interactable from items import Batteries, Hammer from usable import Usable
[ 6738, 19720, 1330, 5345, 11, 7343, 198, 198, 6738, 10104, 540, 1330, 20904, 540, 198, 6738, 9427, 540, 1330, 4225, 529, 540, 198, 6738, 3709, 1330, 347, 1436, 444, 11, 18278, 198, 6738, 24284, 1330, 4021, 540, 628 ]
4.394737
38
print("aprendiendo git") a=12 print("ya qued") print("actualizacion 1") print("catualizacion 2")
[ 4798, 7203, 499, 10920, 72, 31110, 17606, 4943, 198, 64, 28, 1065, 198, 4798, 7203, 3972, 627, 276, 4943, 198, 4798, 7203, 50039, 528, 49443, 352, 4943, 198, 4798, 7203, 9246, 723, 528, 49443, 362, 4943 ]
2.666667
36
import argparse from pathlib import Path if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--frames-path", type=str) parser.add_argument("--output-path", type=str) args = parser.parse_args() frame_paths = [p for p in Path(args.frames_path).iterdir()] with open(...
[ 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, ...
2.475936
187
import _thread import sqlalchemy from app.document import bp from flask_login import login_required, current_user from flask import render_template, redirect, url_for, request, send_file, flash, jsonify from flask import current_app from app.document.general import create_document, check_and_remove_document, save_image...
[ 11748, 4808, 16663, 198, 11748, 44161, 282, 26599, 198, 6738, 598, 13, 22897, 1330, 275, 79, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 35827, 11, 1459, 62, 7220, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1...
2.670837
1,279
""" This module defines a packet structure (composed of: canari, payload, payload_size, and eventually an extra payload). You'll find a 'pack' functions allowing you to create a packet from a payload (btyes object) you want to send, and an 'unpack' function that can extract a payload from a packet (as a bytes object to...
[ 37811, 198, 1212, 8265, 15738, 257, 19638, 4645, 198, 7, 5589, 1335, 286, 25, 460, 2743, 11, 21437, 11, 21437, 62, 7857, 11, 290, 4191, 281, 3131, 21437, 737, 198, 1639, 1183, 1064, 257, 705, 8002, 6, 5499, 5086, 345, 284, 2251, 257...
2.365041
2,071
""" API interfaces for swagger operations. """ from typing import ( Any, Iterable, Mapping, Tuple, ) from marshmallow import Schema from marshmallow.fields import Field from microcosm_flask.swagger.parameters import Parameters from microcosm_flask.swagger.schemas import Schemas def build_schema(sch...
[ 37811, 198, 17614, 20314, 329, 1509, 7928, 4560, 13, 198, 198, 37811, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4377, 11, 198, 220, 220, 220, 40806, 540, 11, 198, 220, 220, 220, 337, 5912, 11, 198, 220, 220, 220, 309, 29291, ...
2.822165
388
import sys import struct if(len(sys.argv) != 5): print("Usage: python converter.py <num_pixels_x> <num_pixels_y> <input file> <output file>\n") else: num_pixels_x = int(sys.argv[1]) num_pixels_y = int(sys.argv[2]) print(num_pixels_x) has_alpha_channel = False infile = open(sys.argv[3], "rb") ...
[ 11748, 25064, 198, 11748, 2878, 198, 198, 361, 7, 11925, 7, 17597, 13, 853, 85, 8, 14512, 642, 2599, 198, 220, 220, 220, 3601, 7203, 28350, 25, 21015, 38394, 13, 9078, 1279, 22510, 62, 79, 14810, 62, 87, 29, 1279, 22510, 62, 79, 1...
2.009375
640
# import require package import os upload_dir = './uploads' remove_content(upload_dir) images_dir = './static/images' remove_content(images_dir)
[ 2, 1330, 2421, 5301, 198, 11748, 28686, 628, 198, 198, 25850, 62, 15908, 796, 705, 19571, 39920, 6, 198, 28956, 62, 11299, 7, 25850, 62, 15908, 8, 198, 198, 17566, 62, 15908, 796, 705, 19571, 12708, 14, 17566, 6, 198, 28956, 62, 112...
3.040816
49
""" Fit step for gross alignment and scale. """ from opencmiss.utils.zinc.field import assignFieldParameters, createFieldsDisplacementGradients from opencmiss.utils.zinc.general import ChangeManager from opencmiss.zinc.field import Field, FieldFindMeshLocation from opencmiss.zinc.optimisation import Optimisation from ...
[ 37811, 198, 31805, 2239, 329, 10319, 19114, 290, 5046, 13, 198, 37811, 198, 198, 6738, 1280, 66, 3927, 13, 26791, 13, 89, 1939, 13, 3245, 1330, 8333, 15878, 48944, 11, 2251, 15878, 82, 7279, 489, 5592, 42731, 2334, 198, 6738, 1280, 66...
3.578947
114
from abc import ABCMeta, abstractmethod from typing import Any
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 19720, 1330, 4377, 628 ]
4.266667
15
import numpy as np import matplotlib.pyplot as plt import pandas as pd blue = (0, 0, 1.0) green = (0, 0.8, 0) red = (1.0, 0, 0) red_alpha = (1.0, 0, 0, 0.001) gray = (0.7, 0.7, 0.7) results = [[],[], ["RandomForestRegressor-K=1",3.527128,2.820386,0.706743,0.063868,0.009973,0.286104,0.420639], ["RandomForestRegressor-...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 17585, 796, 357, 15, 11, 657, 11, 352, 13, 15, 8, 198, 14809, 796, 357, 15, 11, 657, 13, ...
1.955805
1,516
#!/usr/bin/python # Created by: Jose G. Fernandez Trincado # Date: 2013 June 28 # Program: This program correct the imagen .fit (Science) by Syntethic Flat # 1 m Reflector telescope, National Astronomical Observatory of Venezuela # Mode f/5, 21 arcmin x 21 arcmin # Project: Omega Centauri, Tidal Tails. # The program ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15622, 416, 25, 5264, 402, 13, 39692, 833, 1939, 4533, 198, 2, 7536, 25, 2211, 2795, 2579, 198, 2, 6118, 25, 770, 1430, 3376, 262, 3590, 268, 764, 11147, 357, 26959, 8, 416, 26375...
2.501866
1,072
from typing import TYPE_CHECKING from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.sql import func from abing.db.base_class import Base if TYPE_CHECKING: from .arm import Arm # noqa: F401
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 41146, 11, 7536, 7575, 11, 8708, 9218, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 6738, 44161, 282, 26599,...
3.385542
83
mlevel = 1 elevel = 1 mclass_bonus_a = 20 eclass_bonus_a = 0 mclass_bonus_b = 60 eclass_bonus_b = 0 mclass_power = 3 eclass_power = 2 print(damage_exp()) print(defeat_exp()) print(defeat_exp(2)) print(kill_exp())
[ 76, 5715, 796, 352, 198, 68, 5715, 796, 352, 198, 76, 4871, 62, 4189, 385, 62, 64, 796, 1160, 198, 68, 4871, 62, 4189, 385, 62, 64, 796, 657, 198, 76, 4871, 62, 4189, 385, 62, 65, 796, 3126, 198, 68, 4871, 62, 4189, 385, 62, ...
2.206186
97
import requests import json from pymongo import MongoClient, collection client = MongoClient("mongodb://localhost:27017") database = client["temp"] states_districts = database["states_districts"] states_districts.remove({}) headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537....
[ 11748, 7007, 198, 11748, 33918, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 11, 4947, 198, 16366, 796, 42591, 11792, 7203, 31059, 375, 65, 1378, 36750, 25, 1983, 29326, 4943, 198, 48806, 796, 5456, 14692, 29510, 8973, 198, 27219, 62,...
2.563353
513
import tensorflow as tf
[ 11748, 11192, 273, 11125, 355, 48700, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198 ]
1.85
20
import numpy as np # import matplotlib.pyplot as plt # import pylab import re import itertools import json import collections import multiprocessing as mp import random import sys #sys.path.append("./src/") #from proto import io as protoio #from utils.multiprocessor_cpu import MultiProcessorCPU ''' some general pre/p...
[ 11748, 299, 32152, 355, 45941, 198, 2, 1330, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 2, 1330, 279, 2645, 397, 198, 11748, 302, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 17268, 198, 11748, 18540, 305, 9...
2.38351
4,524
# print("Hello World!") # sum = 2 + 2 # print(sum) # for i in range(10,-10,-1): # if i % 2 == 0: # print(i) # else: # pass # while(1): # val = input("Enter ") # print(val)
[ 2, 3601, 7203, 15496, 2159, 2474, 8, 198, 2, 2160, 796, 362, 1343, 362, 198, 2, 3601, 7, 16345, 8, 198, 198, 2, 329, 1312, 287, 2837, 7, 940, 12095, 940, 12095, 16, 2599, 198, 2, 220, 220, 220, 220, 611, 1312, 4064, 362, 6624, ...
1.864865
111
# -*- coding: utf-8 -*- """User views.""" from flask import Blueprint, render_template, jsonify from flask_login import login_required from super_nft.extensions import csrf_protect datasprint_bp = Blueprint("datasprint", __name__, url_prefix="/datasprint", static_folder="../static")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 12982, 5009, 526, 15931, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 33918, 1958, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 35827, 198, 6738, 2208, ...
3.202247
89
''' Escreva um programa que pergunte o salrio de um funcionrio e calcule o valor do seu aumento. Para salrios superiores a R$1.250,00, calcule um aumento de 10% Para os inferiores ou iguais, o aumento de 15%. ''' salario = float(input('Digite o salrio: R$ ')) if salario < 0: print('Valor invlido!') else: if ...
[ 7061, 6, 198, 47051, 260, 6862, 23781, 1430, 64, 8358, 583, 70, 6311, 267, 3664, 27250, 390, 23781, 25439, 295, 27250, 304, 2386, 23172, 267, 1188, 273, 466, 384, 84, 198, 64, 1713, 78, 13, 198, 47, 3301, 3664, 380, 418, 2208, 72, ...
2.279661
236
cores = {'vermelho': '\033[31m', 'azul': '\033[34m', 'amarelo': '\033[33m', 'branco': '\033[30m', 'roxo': '\033[35m', 'verde': '\033[32m', 'ciano': '\033[36m', 'limpa': '\033[m', 'preto e branco': '\033[7;30;m'} pintar = str(input('Deseja pintar...
[ 198, 198, 66, 2850, 796, 1391, 6, 332, 17694, 8873, 10354, 705, 59, 44427, 58, 3132, 76, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1031, 377, 10354, 705, 59, 44427, 58, 2682, 76, 3256, 198, 220, 220, 220, 220, 220, ...
1.865132
304
# Listing_20-2.py # Copyright Warren & Csrter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Adding an event handler for the button import sys from PyQt4 import QtCore, QtGui, uic form_class = uic.loadUiType("...
[ 2, 7343, 278, 62, 1238, 12, 17, 13, 9078, 201, 198, 2, 15069, 11328, 1222, 327, 27891, 353, 3837, 68, 11, 2211, 201, 198, 2, 28728, 739, 17168, 5964, 220, 220, 2638, 1378, 2503, 13, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 2781, ...
2.77907
172
from serial_comminication import * from utils.decorators import Override __author__ = 'Danyang'
[ 6738, 11389, 62, 785, 1084, 3299, 1330, 1635, 198, 6738, 3384, 4487, 13, 12501, 273, 2024, 1330, 3827, 13154, 198, 198, 834, 9800, 834, 796, 705, 35, 1092, 648, 6, 628, 198 ]
3.09375
32
from typing import Dict from botocore.paginate import Paginator
[ 6738, 19720, 1330, 360, 713, 198, 6738, 10214, 420, 382, 13, 79, 363, 4559, 1330, 31525, 20900, 628, 198 ]
3.473684
19
# Best : O(n + k) # Avg : O(n + k) # Worst O(n + k) # Space worst : O(k) - CAN GET VERY BIG BIG # k - range of values in array # Take every number in arr then add += 1 to index of that number in temporary arrays, then # for every index in temporary arrays add to final_arr that amount of that index number of # how bi...
[ 2, 6705, 1058, 440, 7, 77, 1343, 479, 8, 198, 2, 33455, 1058, 440, 7, 77, 1343, 479, 8, 198, 2, 33443, 440, 7, 77, 1343, 479, 8, 198, 2, 4687, 5290, 1058, 440, 7, 74, 8, 532, 15628, 17151, 29550, 26746, 26746, 198, 198, 2, 4...
3.047319
317
import os import random import re import numpy as np np.set_printoptions(precision=3, suppress=True) import sys; sys.path.append("../../..") from job_table import JobTable
[ 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 198, 11748, 299, 32152, 355, 45941, 198, 37659, 13, 2617, 62, 4798, 25811, 7, 3866, 16005, 28, 18, 11, 18175, 28, 17821, 8, 198, 198, 11748, 25064, 26, 25064, 13, 6978, 13, 33295, ...
3.125
56
""" Move Zeroes - https://leetcode.com/problems/move-zeroes/ Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array. Example 1: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] ...
[ 37811, 198, 198, 21774, 37028, 3028, 532, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 21084, 12, 9107, 3028, 14, 198, 220, 198, 15056, 281, 18253, 7177, 997, 82, 11, 1445, 477, 657, 338, 284, 262, 886, 286, 340, 981, ...
2.755435
184
from django.contrib.auth import login as django_login from django.contrib.auth import logout as django_logout from django.http import HttpResponseRedirect from django.shortcuts import resolve_url from django.conf import settings from .backends import StormpathIdSiteBackend ID_SITE_STATUS_AUTHENTICATED = 'AUTHENTICAT...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 17594, 355, 42625, 14208, 62, 38235, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 2604, 448, 355, 42625, 14208, 62, 6404, 448, 198, 6738, 42625, 14208, 13, 4023, 1330, 367,...
2.705426
258
# https://leetcode.com/problems/perfect-squares/description/ # dp alg, time complexity: O(n^2)
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 25833, 12, 16485, 3565, 14, 11213, 14, 198, 2, 288, 79, 435, 70, 11, 640, 13357, 25, 440, 7, 77, 61, 17, 8, 628 ]
2.666667
36
# Programa para sorteio from tkinter import * '''import PySimpleGUI as sg''' ''' #Layout layout = [ [sg.Text('Nome:'), sg.Input()], [sg.Button('OK')] ] #Janela janela = sg.Window('Janela teste', layout) #Interao eventos, valores = janela.Read() #Mensagem print(f'Ol {valores[0]}, obrigado por usar PySimpleGUI...
[ 2, 6118, 64, 31215, 3297, 68, 952, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 7061, 6, 11748, 9485, 26437, 40156, 355, 264, 70, 7061, 6, 198, 7061, 6, 198, 2, 32517, 198, 39786, 796, 685, 198, 220, 220, 220, 685, 45213, 13, 8206, ...
2.367384
558
""" @author: magician @file: __init__.py.py @date: 2020/9/7 """ from flask import Flask from flask_tutorial.flask_sqlite3.flask_sqlite3 import SQLite3 app = Flask(__name__) app.config.from_pyfile('the-config.cfg') db = SQLite3(app)
[ 37811, 198, 31, 9800, 25, 42055, 198, 31, 7753, 25, 220, 220, 11593, 15003, 834, 13, 9078, 13, 9078, 198, 31, 4475, 25, 220, 220, 12131, 14, 24, 14, 22, 198, 37811, 198, 6738, 42903, 1330, 46947, 198, 198, 6738, 42903, 62, 83, 449...
2.438776
98
"""Transformando um string de numeros, em uma lista com conjunto de numeros separads por \n""" matrix = "1 2 3 4\n4 5 6 5\n7 8 9 6\n8 7 6 7" print(matrix) matrix = matrix.split("\n") print(matrix) matrix2 = [] for n in range(len(matrix)): matrix[n] = matrix[n].split() matrix[n] = list(map(int, matrix[n])) # E...
[ 37811, 41762, 25440, 23781, 4731, 390, 5470, 418, 11, 795, 334, 2611, 1351, 64, 198, 785, 11644, 403, 1462, 390, 5470, 418, 2880, 5643, 16964, 3467, 77, 37811, 198, 198, 6759, 8609, 796, 366, 16, 362, 513, 604, 59, 77, 19, 642, 718,...
2.4
215
from A_1_Add_columns_participant_info_multiprocessing_new import * from A_2_Merge_new_logs import * from B_1_Add_columns_user_performance_multiprocessing_new import * from B_2_Merge_new_logs_with_user_groups import * from C_1_Post_processing_log_new import * from C_2_Merge_new_logs_post_processed import * from D_1_Reca...
[ 6738, 317, 62, 16, 62, 4550, 62, 28665, 82, 62, 48013, 415, 62, 10951, 62, 16680, 541, 305, 919, 278, 62, 3605, 1330, 1635, 198, 6738, 317, 62, 17, 62, 13102, 469, 62, 3605, 62, 6404, 82, 1330, 1635, 198, 6738, 347, 62, 16, 62, ...
2.509709
206
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='xl-helper', version='1.0.5', description='XL Deploy helper', long_description='This tool helps with installation and upgrade of XL Deploy and plugins', author='Mike Kotsur', author_email='mkotsur@xebialabs.com', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 87, 75, 12, 2978, 525, 3256, 198, 220, 220, 220, 2196, 11639, 16, ...
2.627193
228
# -*- coding: utf-8 -*- from collections import defaultdict from PyPDF2 import PdfFileReader from PyPDF2.pdf import PageObject, ContentStream, TextStringObject, u_, i, b_ PageObject.extractText_with_separator = extractText_with_separator KEYWORDS = ["procesos electorales"] def find_in_pdf(pdf_path, keywords): ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 9485, 20456, 17, 1330, 350, 7568, 8979, 33634, 198, 6738, 9485, 20456, 17, 13, 12315, 1330, 7873, 10267, 11, 14041, 12124, ...
2.673709
426
from setuptools import setup, find_packages setup( name = "django-netpromoterscore", version = '0.0.2', description = "Model, Tests, and API for collecting promoter score from users.", author = "Austin Brennan", author_email = "ab@epantry.com", url = "https://github.com/epantry/django-netpromo...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 366, 28241, 14208, 12, 3262, 16963, 26008, 7295, 1600, 198, 220, 220, 220, 2196, 796, 705, 15, 13, 15, 13, 17, 3256, 198, ...
2.91716
169
import flask
[ 11748, 42903, 628, 198 ]
3.75
4
from pynemo.core.base.abstract.property import Property
[ 6738, 279, 2047, 41903, 13, 7295, 13, 8692, 13, 397, 8709, 13, 26745, 1330, 14161, 628 ]
3.5625
16
import logging import sys from pathlib import Path import time from folio_uuid.folio_namespaces import FOLIONamespaces
[ 11748, 18931, 198, 11748, 25064, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 640, 198, 198, 6738, 5955, 952, 62, 12303, 312, 13, 13652, 62, 14933, 43076, 1330, 376, 3535, 2849, 1047, 43076, 628, 628 ]
3.514286
35
# 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, soft...
[ 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.728111
217
from django.test import TestCase from ladder.models import Player, Result, League, Season from django.db.models import Avg
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 18002, 13, 27530, 1330, 7853, 11, 25414, 11, 4041, 11, 7369, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 33455, 628 ]
3.875
32
"""Google OpenID Connect identity provider.""" from uuid import UUID from fastapi import Depends, status, Request from pydantic import BaseModel from .base import IdPRouter, oauth from ..http import get_edgedb_pool from ..models import IdPClient, Identity as BaseIdentity, Href, User from ..orm import ExtendedComputa...
[ 37811, 11708, 4946, 2389, 8113, 5369, 10131, 526, 15931, 198, 198, 6738, 334, 27112, 1330, 471, 27586, 198, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 3722, 11, 19390, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 198, 6738, 76...
2.941441
222
"""Import processors from 3rd party sources.""" import contextlib import sys import pkg_resources from ._misc import parameters
[ 37811, 20939, 20399, 422, 513, 4372, 2151, 4237, 526, 15931, 198, 198, 11748, 4732, 8019, 198, 11748, 25064, 198, 198, 11748, 279, 10025, 62, 37540, 198, 198, 6738, 47540, 44374, 1330, 10007, 628 ]
4
33
# # @lc app=leetcode.cn id=412 lang=python3 # # [412] Fizz Buzz # # Accepted # 8/8 cases passed (48 ms) # Your runtime beats 76.37 % of python3 submissions # Your memory usage beats 25 % of python3 submissions (14.5 MB) # @lc code=start # @lc code=end
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 13, 31522, 4686, 28, 39226, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 39226, 60, 376, 6457, 15753, 198, 2, 198, 198, 2, 21699, 276, 198, 2, 807, 14, 23, 2663, 3804, 357, 2780, ...
2.694737
95
import pandas as pd import numpy as np from sklearn.model_selection import check_cv from sklearn.exceptions import NotFittedError from sklearn.base import clone, is_classifier from robusta.importance import get_importance from robusta.crossval import crossval from .base import _Selector # Original: sklearn.feature_...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 2198, 62, 33967, 198, 6738, 1341, 35720, 13, 1069, 11755, 1330, 1892, 37, 2175, 12331, 198, 6738, 1341, 35720,...
2.514727
713
import torch import torch.nn as nn import torch_optimizer as optim import pandas as pd # customized libs import criterions import models import datasets
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 62, 40085, 7509, 355, 6436, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 27658, 9195, 82, 198, 11748, 1955, 263, 507, 198, 11748, 4981, 198, 11748, 405...
3.568182
44
import graphene from fuzzywuzzy import process from falmer.search.types import SearchQuery from falmer.search.utils import get_falmer_results_for_term, get_msl_results_for_term, \ SearchTermResponseData
[ 11748, 42463, 198, 6738, 34669, 86, 4715, 88, 1330, 1429, 198, 198, 6738, 24215, 647, 13, 12947, 13, 19199, 1330, 11140, 20746, 198, 6738, 24215, 647, 13, 12947, 13, 26791, 1330, 651, 62, 42932, 647, 62, 43420, 62, 1640, 62, 4354, 11,...
3.296875
64
#Shape of heart: def for_heart(): """printing shape of'heart' using for loop""" for row in range(6): for col in range(7): if row-col==2 or row+col==8 or col%3!=0 and row==0 or col%3==0 and row==1: print("*",end=" ") else: print(" ",end=" "...
[ 2, 33383, 286, 2612, 25, 201, 198, 4299, 329, 62, 11499, 33529, 201, 198, 220, 220, 220, 37227, 4798, 278, 220, 5485, 286, 6, 11499, 6, 1262, 329, 9052, 37811, 201, 198, 220, 220, 220, 329, 5752, 287, 2837, 7, 21, 2599, 201, 198, ...
1.678657
417
from core import add from core import sub def test_add(): """Check that `add()` works as expected""" assert add(2, 3) == 5 def test_add_z(): """Check that `add()` works as expected""" assert add(2, 3, 1) == 6 def test_sub(): """Check that `sub()` works as expected""" asse...
[ 6738, 4755, 1330, 751, 198, 6738, 4755, 1330, 850, 628, 198, 4299, 1332, 62, 2860, 33529, 198, 220, 220, 220, 37227, 9787, 326, 4600, 2860, 3419, 63, 2499, 355, 2938, 37811, 198, 220, 220, 220, 220, 198, 220, 220, 220, 6818, 751, 7,...
2.449275
138
from __future__ import annotations from setuptools import setup setup()
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 3419, 198 ]
4.055556
18
#9. Faaumam funo que receba a altura e o raio de um cilindro circular e retorne o volume #do cilindro. O volume de um cilindro circular calculado por meio da seguinte frmula: #V =pi*raio^2 x altura, onde pi = 3.141592. r=float(input("Informe o raio do cilindro: ")) alt=float(input("Informe a altura do cilindro: ")) v...
[ 2, 24, 13, 376, 7252, 388, 321, 1257, 78, 8358, 1407, 7012, 257, 5988, 5330, 304, 267, 2179, 952, 390, 23781, 269, 346, 521, 305, 18620, 304, 1005, 8553, 267, 6115, 198, 2, 4598, 269, 346, 521, 305, 13, 440, 6115, 390, 23781, 269,...
2.405405
148
import requests from bs4 import BeautifulSoup from sachima import conf
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 264, 620, 8083, 1330, 1013, 628 ]
3.65
20
import tkinter if __name__ == '__main__': application = tkinter.Tk() application.title("Mediator Sample") window = Main(application) application.protocol("WM_DELETE_WINDOW", window.quit) application.mainloop()
[ 11748, 256, 74, 3849, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3586, 796, 256, 74, 3849, 13, 51, 74, 3419, 198, 220, 220, 220, 3586, 13, 7839, 7203, 9921, 38585, 27565, 4943, 198, ...
2.77381
84
# !/usr/bin/env python # -*- coding: utf-8 -*- import sys urlpatterns = [ ] DEFAULT_SETTINGS = dict( INSTALLED_APPS=[ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'statictemplate', ], DATABASES={ 'default': { 'ENGINE': '...
[ 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 198, 6371, 33279, 82, 796, 685, 198, 60, 198, 198, 7206, 38865, 62, 28480, 51, 20754, 796,...
2.07839
472
x = input() z = input() splitter = [x[i:] for i in range(len(x))] found_splitter = False next_z = "" for i in range(1, len(x) + 1): if z[:i] in splitter: found_splitter = True next_z = z[i:] if next_z[: len(x)] == x: break if i == len(z): break if next_z == "": ...
[ 87, 796, 5128, 3419, 198, 89, 796, 5128, 3419, 628, 198, 22018, 1967, 796, 685, 87, 58, 72, 47715, 329, 1312, 287, 2837, 7, 11925, 7, 87, 4008, 60, 198, 9275, 62, 22018, 1967, 796, 10352, 198, 19545, 62, 89, 796, 13538, 198, 1640,...
1.794479
326
import urllib.request url = "https://google.com" data = urllib.request.urlopen(url) print(data) print(data.read())
[ 11748, 2956, 297, 571, 13, 25927, 198, 198, 6371, 796, 366, 5450, 1378, 13297, 13, 785, 1, 198, 198, 7890, 796, 2956, 297, 571, 13, 25927, 13, 6371, 9654, 7, 6371, 8, 198, 4798, 7, 7890, 8, 198, 4798, 7, 7890, 13, 961, 28955, 19...
2.6
45
from django.conf.urls.defaults import patterns, url from datawinners.blue import view from datawinners.blue.view import new_xform_submission_post, edit_xform_submission_post, get_attachment, attachment_download, guest_survey, public_survey from datawinners.blue.view import ProjectUpload, ProjectUpdate from datawinners....
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 7572, 11, 19016, 198, 6738, 4818, 707, 259, 2741, 13, 17585, 1330, 1570, 198, 6738, 4818, 707, 259, 2741, 13, 17585, 13, 1177, 1330, 649, 62, 87, 687, 62, 7266, 3411,...
2.567742
620
print('hello man') print('hello man') print('hello man') print('hello man') print('hello man')
[ 4798, 10786, 31373, 582, 11537, 198, 4798, 10786, 31373, 582, 11537, 198, 4798, 10786, 31373, 582, 11537, 198, 4798, 10786, 31373, 582, 11537, 198, 4798, 10786, 31373, 582, 11537, 198 ]
3.166667
30
# # Copyright (c) 2020, NVIDIA 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 ...
[ 2, 198, 2, 15069, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.467593
216
ROUTE = '/push' PORT = 4242 IMAGE_NAME = 'globidocker/github-hook' import docker cli = docker.Client() from lib.git import clone_tmp
[ 49, 2606, 9328, 796, 31051, 14689, 6, 198, 15490, 796, 604, 27877, 198, 198, 3955, 11879, 62, 20608, 796, 705, 4743, 672, 312, 12721, 14, 12567, 12, 25480, 6, 198, 198, 11748, 36253, 198, 198, 44506, 796, 36253, 13, 11792, 3419, 198, ...
2.634615
52
#!/usr/bin/env python3 # Solver test suite runner script, used for # * regression tests (default) # * test-init runs (with --test-init option) # * performance evaluation (with --performance option) # # 1. Regression tests (the default) # - runs set of projects and compares physical results and solver stats # - meant t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 4294, 332, 1332, 18389, 17490, 4226, 11, 973, 329, 198, 2, 1635, 20683, 5254, 357, 12286, 8, 198, 2, 1635, 1332, 12, 15003, 4539, 357, 4480, 1377, 9288, 12, 15003, 3038, ...
2.913932
3,230
from torch.utils.data import Dataset
[ 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 628, 198 ]
3.25
12
import logging import datetime import pathlib import pytz import requests import pandas as pd DATA_ROOT = pathlib.Path(__file__).parent.parent / "data" _logger = logging.getLogger(__name__) if __name__ == "__main__": logging.basicConfig(level=logging.INFO) CovidTrackingDataUpdater().update()
[ 11748, 18931, 198, 11748, 4818, 8079, 198, 11748, 3108, 8019, 198, 11748, 12972, 22877, 198, 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 26947, 62, 13252, 2394, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 13, ...
2.867925
106
from chatty import utils from aiohttp import web from chatty.auth.models import User
[ 6738, 8537, 774, 1330, 3384, 4487, 198, 6738, 257, 952, 4023, 1330, 3992, 198, 198, 6738, 8537, 774, 13, 18439, 13, 27530, 1330, 11787, 628, 198 ]
3.384615
26
import os, sys import imp from authorizenet import apicontractsv1 from authorizenet.apicontrollers import * constants = imp.load_source('modulename', 'constants.py') if(os.path.basename(__file__) == os.path.basename(sys.argv[0])): delete_customer_profile(constants.customerProfileId)
[ 11748, 28686, 11, 25064, 198, 11748, 848, 198, 198, 6738, 1772, 33977, 316, 1330, 2471, 291, 756, 974, 21370, 16, 198, 6738, 1772, 33977, 316, 13, 499, 291, 756, 36667, 1330, 1635, 198, 9979, 1187, 796, 848, 13, 2220, 62, 10459, 10786...
2.815534
103
# Copyright 2021 IBM Corp. # SPDX-License-Identifier: Apache-2.0 from pyspark.sql.dataframe import DataFrame from py4j.java_collections import MapConverter
[ 2, 15069, 33448, 19764, 11421, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 6738, 279, 893, 20928, 13, 25410, 13, 7890, 14535, 1330, 6060, 19778, 198, 6738, 12972, 19, 73, 13, 12355, 62, ...
3.078431
51
from kafka.consumer import KafkaConsumer from json import loads from mongoengine import * from matilda.data_pipeline import object_model consumer = KafkaConsumer( 'numtest', # kafka topic bootstrap_servers=['localhost:9092'], # same as our producer # It handles where the consumer restarts reading after...
[ 6738, 479, 1878, 4914, 13, 49827, 1330, 46906, 49106, 198, 6738, 33918, 1330, 15989, 198, 6738, 285, 25162, 18392, 1330, 1635, 198, 198, 6738, 2603, 27281, 13, 7890, 62, 79, 541, 4470, 1330, 2134, 62, 19849, 628, 198, 49827, 796, 46906,...
3.331984
494
from graph import Graph
[ 6738, 4823, 1330, 29681, 201, 198, 201, 198 ]
3.375
8