content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import time from fabric.api import run, env, task, put, cd, local, sudo env.use_ssh_config = True env.hosts = ['iota_node']
[ 11748, 640, 198, 6738, 9664, 13, 15042, 1330, 1057, 11, 17365, 11, 4876, 11, 1234, 11, 22927, 11, 1957, 11, 21061, 198, 198, 24330, 13, 1904, 62, 45824, 62, 11250, 796, 6407, 198, 24330, 13, 4774, 82, 796, 37250, 72, 4265, 62, 17440...
2.714286
49
import sqlite3 from random import randint, choice import numpy as np conn = sqlite3.connect('ej.db') c = conn.cursor() #OBTENIENDO TAMAnOS MAXIMOS MINIMOS Y PROMEDIO# c.execute('SELECT MAX(alto) FROM features') resultado = c.fetchone() if resultado: altoMax = resultado[0] c.execute('SELECT MIN(alto) FROM featu...
[ 11748, 44161, 578, 18, 198, 6738, 4738, 1330, 43720, 600, 11, 3572, 198, 11748, 299, 32152, 355, 45941, 628, 198, 37043, 796, 44161, 578, 18, 13, 8443, 10786, 68, 73, 13, 9945, 11537, 198, 198, 66, 796, 48260, 13, 66, 21471, 3419, 1...
2.12154
831
from pylab import * import cython import time, timeit from brian2.codegen.runtime.cython_rt.modified_inline import modified_cython_inline import numpy from scipy import weave import numexpr import theano from theano import tensor as tt tau = 20 * 0.001 N = 1000000 b = 1.2 # constant current mean, the modul...
[ 6738, 279, 2645, 397, 1330, 1635, 201, 198, 11748, 3075, 400, 261, 201, 198, 11748, 640, 11, 640, 270, 201, 198, 6738, 275, 4484, 17, 13, 8189, 5235, 13, 43282, 13, 948, 400, 261, 62, 17034, 13, 41771, 62, 45145, 1330, 9518, 62, 9...
1.897239
1,304
from .banks import callback_view, go_to_bank_gateway from .samples import sample_payment_view, sample_result_view
[ 6738, 764, 43558, 1330, 23838, 62, 1177, 11, 467, 62, 1462, 62, 17796, 62, 10494, 1014, 198, 6738, 764, 82, 12629, 1330, 6291, 62, 37301, 62, 1177, 11, 6291, 62, 20274, 62, 1177, 198 ]
3.352941
34
#!/usr/bin/env python # encoding: utf-8 """ update.py Created by Thomas Mangin on 2009-09-06. Copyright (c) 2009-2013 Exa Networks. All rights reserved. """ import unittest from exabgp.configuration.environment import environment env = environment.setup('') from exabgp.bgp.message.update.update import * from exabgp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 19119, 13, 9078, 198, 198, 41972, 416, 5658, 27609, 259, 319, 3717, 12, 2931, 12, 3312, 13, 198, 15269, 357, 66, 8, 3717, 12, 6390,...
2.405882
340
# nuScenes dev-kit. # Code written by Holger Caesar & Oscar Beijbom, 2018. # Licensed under the Creative Commons [see licence.txt] import argparse import json import os import random import time from typing import Tuple, Dict, Any import numpy as np from nuscenes import NuScenes from nuscenes.eval.detection.algo imp...
[ 2, 14364, 3351, 18719, 1614, 12, 15813, 13, 198, 2, 6127, 3194, 416, 6479, 1362, 24088, 1222, 15694, 1355, 2926, 65, 296, 11, 2864, 13, 198, 2, 49962, 739, 262, 17404, 13815, 685, 3826, 17098, 13, 14116, 60, 198, 198, 11748, 1822, 2...
2.519121
1,229
import unittest from onlinejudge_api.main import main
[ 11748, 555, 715, 395, 198, 198, 6738, 2691, 10456, 469, 62, 15042, 13, 12417, 1330, 1388, 628 ]
3.294118
17
#!/usr/bin/env python3 # This file is part of ODM and distributed under the terms of the # MIT license. See COPYING. import json import sys import odm.cli if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 770, 2393, 318, 636, 286, 440, 23127, 290, 9387, 739, 262, 2846, 286, 262, 198, 2, 17168, 5964, 13, 4091, 27975, 45761, 13, 198, 198, 11748, 33918, 198, 11748, 25064, 198...
2.884058
69
# Copyright (c) 2014 Ahmed H. Ismail # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing...
[ 2, 15069, 357, 66, 8, 1946, 21157, 367, 13, 1148, 4529, 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.645299
234
# Standard library imports from subprocess import call as subprocess_call from utility import fileexists from time import sleep as time_sleep from datetime import datetime mount_try = 1 not_yet = True done = False start_time = datetime.now() if fileexists("/home/rpi4-sftp/usb/drive_present.txt"): when_usba...
[ 2, 8997, 5888, 17944, 201, 198, 6738, 850, 14681, 1330, 869, 355, 850, 14681, 62, 13345, 201, 198, 6738, 10361, 1330, 2393, 1069, 1023, 201, 198, 6738, 640, 1330, 3993, 355, 640, 62, 42832, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079...
2.468293
820
from django.http.response import HttpResponse from django.shortcuts import render from django.shortcuts import redirect, render from cryptography.fernet import Fernet from .models import Book, UserDetails from .models import Contact from .models import Book from .models import Report from .models import Diagnostic from...
[ 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 45898, 13, 69, 1142, 316, 1330, 38982, ...
2.971831
284
from __future__ import with_statement import os import sys from mock import Mock from django.template import Template, Context, TemplateSyntaxError from django.test import TestCase from compressor.conf import settings from compressor.signals import post_compress from compressor.tests.base import css_tag, test_dir ...
[ 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 15290, 1330, 44123, 198, 198, 6738, 42625, 14208, 13, 28243, 1330, 37350, 11, 30532, 11, 37350, 13940, 41641, 12331, 198, 6738, 4262...
2.879121
364
from ...address_translator import AT from ...errors import CLEOperationError from . import Relocation import struct import logging l = logging.getLogger('cle.relocations.generic')
[ 6738, 2644, 21975, 62, 7645, 41880, 1330, 5161, 198, 6738, 2644, 48277, 1330, 30301, 32180, 12331, 198, 6738, 764, 1330, 4718, 5040, 198, 11748, 2878, 198, 198, 11748, 18931, 198, 75, 796, 18931, 13, 1136, 11187, 1362, 10786, 2375, 13, ...
3.934783
46
# Copyright (c) 2010-2014 openpyxl import pytest from openpyxl.styles.borders import Border, Side from openpyxl.styles.fills import GradientFill from openpyxl.styles.colors import Color from openpyxl.writer.styles import StyleWriter from openpyxl.tests.helper import get_xml, compare_xml
[ 2, 15069, 357, 66, 8, 3050, 12, 4967, 1280, 9078, 87, 75, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1280, 9078, 87, 75, 13, 47720, 13, 65, 6361, 1330, 15443, 11, 12075, 198, 6738, 1280, 9078, 87, 75, 13, 47720, 13, 69, 2171, ...
3.084211
95
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
from unittest import TestCase from io import StringIO import json
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 11748, 33918, 198 ]
3.722222
18
import sys
[ 11748, 25064, 628 ]
4
3
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QT4C available. # Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. # QT4C is licensed under the BSD 3-Clause License, except for the third-party components listed below. # A copy of the BSD 3-Cla...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 9368, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 1195, 51, 19, 34, 1695, 13, 220, 220, 198, 2, 15069, 357, 34, 8, 12131, 2320, 43, 3...
2.839378
193
from cffi import FFI ffibuilder = FFI() ffibuilder.cdef(""" int test(int t); """) ffibuilder.set_source("_pi_cffi", """ #include "brute.h" """, sources=['brute.c']) if __name__ == "__main__": ffibuilder.compile(verbose = Tru...
[ 6738, 269, 487, 72, 1330, 376, 11674, 198, 198, 487, 571, 3547, 263, 796, 376, 11674, 3419, 198, 198, 487, 571, 3547, 263, 13, 66, 4299, 7203, 15931, 198, 600, 1332, 7, 600, 256, 1776, 198, 15931, 4943, 198, 198, 487, 571, 3547, 2...
1.664948
194
"""Board Module""" import copy from typing import Tuple, List from src.coordinate import Coordinate from src.snake import Snake def get_other_snakes(self, exclude_id) -> List[Snake]: """Get the List of Snakes whose IDs don't match the given ID.""" return [snake for snake in self.snakes if snake.id ...
[ 37811, 29828, 19937, 37811, 198, 11748, 4866, 198, 6738, 19720, 1330, 309, 29291, 11, 7343, 198, 6738, 12351, 13, 37652, 4559, 1330, 22819, 4559, 198, 6738, 12351, 13, 16184, 539, 1330, 16705, 628, 220, 220, 220, 825, 651, 62, 847, 62, ...
2.556745
467
import os import zipfile from typing import List import pandas as pd import urllib from personalized_nlp.settings import STORAGE_DIR from personalized_nlp.utils.data_splitting import split_texts from personalized_nlp.datasets.datamodule_base import BaseDataModule
[ 11748, 28686, 198, 11748, 19974, 7753, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2956, 297, 571, 198, 198, 6738, 28949, 62, 21283, 79, 13, 33692, 1330, 46366, 11879, 62, 34720, 198, 6738, 28949...
3.410256
78
# Generated by Django 4.0 on 2022-03-03 02:15 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 319, 33160, 12, 3070, 12, 3070, 7816, 25, 1314, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import os import warnings from django.conf import settings CAPTCHA_FONT_PATH = getattr(settings, 'CAPTCHA_FONT_PATH', os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'fonts/Vera.ttf'))) CAPTCHA_FONT_SIZE = getattr(settings, 'CAPTCHA_FONT_SIZE', 22) CAPTCHA_LETTER_ROTATION = getattr(settings, 'CAPTCHA_L...
[ 11748, 28686, 198, 11748, 14601, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 33177, 51, 49285, 62, 37, 35830, 62, 34219, 796, 651, 35226, 7, 33692, 11, 705, 33177, 51, 49285, 62, 37, 35830, 62, 34219, 3256, 28686, 1...
2.461161
1,223
from __future__ import absolute_import, division, print_function, \ with_statement import logging import os.path import time import tornado.escape import tornado.gen import tornado.ioloop from tornado.test.util import unittest from tornado.testing import AsyncHTTPTestCase, gen_test import tornado.web from pilbox...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 3467, 198, 220, 220, 220, 351, 62, 26090, 198, 198, 11748, 18931, 198, 11748, 28686, 13, 6978, 198, 11748, 640, 198, 198, 11748, 33718, 13, 41915, 198, ...
3.384
250
#!/usr/bin/env python from scipy import * from pylab import * #from pylab import imshow #! #! Some graphical explorations of the Julia sets with python and pyreport #!######################################################################### #$ #$ We start by defining a function J: #$ \[ J_c : z \rightarrow z^2 + c \] #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 629, 541, 88, 1330, 1635, 198, 6738, 279, 2645, 397, 1330, 1635, 198, 2, 6738, 279, 2645, 397, 1330, 545, 12860, 198, 2, 0, 198, 2, 0, 2773, 27831, 39180, 602, 286, 262, 2230...
2.303571
504
# Generated by Django 2.2.21 on 2021-06-23 12:43 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 2481, 319, 33448, 12, 3312, 12, 1954, 1105, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295,...
2.840909
44
import logging from lora_multihop import serial_connection, variables
[ 11748, 18931, 198, 198, 6738, 300, 5799, 62, 16680, 4449, 404, 1330, 11389, 62, 38659, 11, 9633, 628, 628 ]
3.894737
19
#!/usr/bin/env python # Copyright (c) 2013-2014, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 2, 15069, 357, 66, 8, 2211, 12, 4967, 11, 371, 2788, 676, 47061, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 3...
2.518552
2,183
import abc from typing import Dict, Callable import tensorflow as tf from flink_ml_framework.context import Context from flink_ml_framework.java_file import * from ..runner import tf_helper, io_helper from ..runner.output_writer import DirectOutputWriter try: from flink_ml_tensorflow.tensorflow_context import TF...
[ 11748, 450, 66, 198, 6738, 19720, 1330, 360, 713, 11, 4889, 540, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 781, 676, 62, 4029, 62, 30604, 13, 22866, 1330, 30532, 198, 6738, 781, 676, 62, 4029, 62, 30604, 13, 12355, ...
2.92228
193
import pytest ENCODING = 'utf-8'
[ 11748, 12972, 9288, 198, 198, 24181, 3727, 2751, 796, 705, 40477, 12, 23, 6, 628, 198 ]
2.25
16
import json import os from utilities.SaveLoadJson import SaveLoadJson as SLJ from utilities.LineCount import LineCount as LC import subprocess from geolite2 import geolite2
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 20081, 13, 16928, 8912, 41, 1559, 1330, 12793, 8912, 41, 1559, 355, 12419, 41, 198, 6738, 20081, 13, 13949, 12332, 1330, 6910, 12332, 355, 22228, 198, 198, 11748, 850, 14681, 198, 198, 6738, 4...
3.5
50
from nemo.collections.nlp.losses.sgd_loss import SGDDialogueStateLoss
[ 6738, 36945, 78, 13, 4033, 26448, 13, 21283, 79, 13, 22462, 274, 13, 82, 21287, 62, 22462, 1330, 26147, 16458, 498, 5119, 9012, 43, 793, 198 ]
2.692308
26
# -*- coding: utf-8 -*- from .settings import * DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.environ['LOCAL_DB_NAME'], 'USER': os.environ['LOCAL_DB_USER'], 'PASSWORD': os.environ['LOCAL_DB_PASSWORD']...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 33692, 1330, 1635, 198, 198, 30531, 796, 6407, 198, 198, 51, 3620, 6489, 6158, 62, 30531, 796, 16959, 198, 198, 35, 1404, 6242, 1921, 1546, 796, 1391, ...
1.900498
201
print('Controle de terrenos') print('-' * 20) l = float(input('qual a largura do terreno: ')) c = float(input('qual o comprimento do terreno: ')) area(l , c)
[ 198, 4798, 10786, 4264, 18090, 390, 1059, 918, 418, 11537, 198, 4798, 10786, 19355, 1635, 1160, 8, 198, 75, 796, 12178, 7, 15414, 10786, 13255, 257, 2552, 5330, 466, 1059, 918, 78, 25, 705, 4008, 198, 66, 796, 12178, 7, 15414, 10786, ...
2.590164
61
import datetime ano = (datetime.datetime.now()).year nasc = int(input("Digite o seu ano de nascimento: ")) categoria = 0 if (ano - nasc) <= 9: categoria = str("MIRIM") elif 9 < (ano - nasc) <= 14: categoria = str("INFANTIL") elif 14 < (ano - nasc) <= 19 : categoria = str("JUNIOR") elif 19 < (ano - nasc) <= ...
[ 11748, 4818, 8079, 198, 5733, 796, 357, 19608, 8079, 13, 19608, 8079, 13, 2197, 3419, 737, 1941, 198, 77, 3372, 796, 493, 7, 15414, 7203, 19511, 578, 267, 384, 84, 281, 78, 390, 299, 3372, 3681, 78, 25, 366, 4008, 198, 66, 2397, 7...
2.345745
188
import torch def ndcg_binary_at_k_batch_torch(X_pred, heldout_batch, k=100, device='cpu'): """ Normalized Discounted Cumulative Gain@k for for predictions [B, I] and ground-truth [B, I], with binary relevance. ASSUMPTIONS: all the 0's in heldout_batch indicate 0 relevance. """ batch_users = X_pre...
[ 11748, 28034, 628, 198, 4299, 299, 17896, 70, 62, 39491, 62, 265, 62, 74, 62, 43501, 62, 13165, 354, 7, 55, 62, 28764, 11, 2714, 448, 62, 43501, 11, 479, 28, 3064, 11, 3335, 11639, 36166, 6, 2599, 198, 220, 220, 220, 37227, 198, ...
2.285521
739
# All credit to https://stackoverflow.com/questions/46571448/tkinter-and-a-html-file - thanks DELICA - https://stackoverflow.com/users/7027346/delica from cefpython3 import cefpython as cef import ctypes try: import tkinter as tk from tkinter import messagebox except ImportError: import Tkinter as tk impo...
[ 2, 1439, 3884, 284, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 19, 37680, 1415, 2780, 14, 30488, 3849, 12, 392, 12, 64, 12, 6494, 12, 7753, 532, 5176, 28163, 25241, 532, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, ...
2.784787
539
import re from glob import glob import os.path as osp infiles = glob(osp.join(osp.dirname(__file__),"*.xml.in")) for fname in infiles: with open(fname,"r") as fh: in_lines = fh.readlines() out_lines = do_substitution(in_lines) outfname = fname[:-3] with open(outfname,"w") as fh: ...
[ 11748, 302, 628, 628, 198, 198, 6738, 15095, 1330, 15095, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 10745, 2915, 796, 15095, 7, 2117, 13, 22179, 7, 2117, 13, 15908, 3672, 7, 834, 7753, 834, 27267, 24620, 19875, 13, 259, 48774,...
2.217949
156
# Generated by Django 3.2.12 on 2022-03-28 11:57 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 1065, 319, 33160, 12, 3070, 12, 2078, 1367, 25, 3553, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.8
30
#!/usr/bin/env python3 # encoding: utf-8 import sys import urllib.parse import selenium.webdriver driver = selenium.webdriver.Firefox() # for some reason, detectportal.firefox.com and connectivitycheck.gstatic.com are not blocked # therefore, they cannot be used to detect connectivity # we instead visit another site...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 25064, 198, 11748, 2956, 297, 571, 13, 29572, 198, 198, 11748, 384, 11925, 1505, 13, 12384, 26230, 198, 198, 26230, 796, 384, 119...
3.01992
251
#!/usr/bin/env python import os from collections import OrderedDict import cPickle as pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.cm import get_cmap from matplotlib import style from scipy import stats from scipy import integrate ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 269, 31686, 293, 355, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, ...
2.837209
172
#!/usr/local/bin/python2.7 from flask import Flask import sys from flask_frozen import Freezer from upload_s3 import set_metadata from config import AWS_DIRECTORY app = Flask(__name__) app.config.from_object('config') from views import * # Serving from s3 leads to some complications in how static files are served i...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 17, 13, 22, 198, 198, 6738, 42903, 1330, 46947, 198, 11748, 25064, 198, 6738, 42903, 62, 69, 42005, 1330, 3232, 9107, 198, 6738, 9516, 62, 82, 18, 1330, 900, 62, 38993, 198, 6738, 456...
2.370588
340
#!/usr/bin/python from setup import * payload = open(sys.argv[1], "rb").read() dtb = open(sys.argv[2], "rb").read() if len(sys.argv) > 3: initramfs = open(sys.argv[3], "rb").read() initramfs_size = len(initramfs) else: initramfs = None initramfs_size = 0 compressed_size = len(payload) compressed_addr...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 9058, 1330, 1635, 198, 198, 15577, 2220, 796, 1280, 7, 17597, 13, 853, 85, 58, 16, 4357, 366, 26145, 11074, 961, 3419, 198, 28664, 65, 796, 1280, 7, 17597, 13, 853, 85, 58, 17,...
2.424528
742
import json import os import multiprocessing import struct import importlib from socketserver import TCPServer, StreamRequestHandler
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 18540, 305, 919, 278, 198, 11748, 2878, 198, 11748, 1330, 8019, 198, 6738, 37037, 18497, 1330, 17283, 3705, 18497, 11, 13860, 18453, 25060, 628, 628 ]
4.25
32
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from . import helpers # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 3...
3.426471
68
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
[ 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, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 220, 220, 220, ...
3.009524
315
from itertools import count import numpy as np
[ 6738, 340, 861, 10141, 1330, 954, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.692308
13
from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField from wtforms.validators import Required
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 8206, 30547, 15878, 11, 45135, 15878, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 20906, 198 ]
3.823529
34
import re import astrodata from astrodata import (astro_data_tag, TagSet, astro_data_descriptor, returns_list) from astrodata.fits import FitsLoader, FitsProvider from ..soar import AstroDataSOAR
[ 11748, 302, 198, 11748, 6468, 305, 7890, 198, 198, 6738, 6468, 305, 7890, 1330, 357, 459, 305, 62, 7890, 62, 12985, 11, 17467, 7248, 11, 6468, 305, 62, 7890, 62, 20147, 1968, 273, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.528736
87
# -*- coding: utf-8 -*- #
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 198 ]
1.588235
17
import os, sys import numpy as np import cv2 import random import torch from configs import Config from kernelGAN import KernelGAN from data import DataGenerator from learner import Learner import tqdm DATA_LOC = "/mnt/data/NTIRE2020/realSR/track2" # "/mnt/data/NTIRE2020/realSR/track1" DATA_X = "DPEDiphone-tr-x" # ...
[ 11748, 28686, 11, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 4738, 198, 11748, 28034, 198, 198, 6738, 4566, 82, 1330, 17056, 198, 6738, 9720, 45028, 1330, 32169, 45028, 198, 6738, 1366, 1330, 60...
2.257353
544
from unittest import TestCase from pyRdfa import pyRdfa
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 12972, 49, 7568, 64, 1330, 12972, 49, 7568, 64, 628 ]
2.9
20
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pyoai', version='2.4.6.b', author='Infrae', author_email='rob.cermak@gmail.com', url='https://github.com/jr3cermak/robs-kitchensink/tree/master/python/pyoai', classifiers=["Development Status :: 4 - Beta"...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 79, 8226, 1872, 3256, 198, 220, 220, 220, 2196, 11639, 17, 13, 1...
2.527473
455
import torch from torch import nn import math #0 left hip #1 left knee #2 left foot #3 right hip #4 right knee #5 right foot #6 middle hip #7 neck #8 nose #9 head #10 left shoulder #11 left elbow #12 left wrist #13 right shoulder #14 right elbow #15 right wrist ''' def temporal_loss(J, K, J_R, K_R): # J is J3d at time...
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 10688, 198, 198, 2, 15, 1364, 10359, 198, 2, 16, 1364, 10329, 198, 2, 17, 1364, 2366, 198, 2, 18, 826, 10359, 198, 2, 19, 826, 10329, 198, 2, 20, 826, 2366, 198, 2, 21, ...
2.337379
824
from des109 import moeda preco = float(input('Digite o preo pretendido: ')) print(f'''A metade do preo {(moeda.metade(preco))} O dobro do preo {(moeda.dobra(preco))} Aumentando o preo 10% temos {(moeda.aumentar(preco, 10))} Diminuindo o preo 13% temos {(moeda.aumentar(preco, 13))}''')
[ 6738, 748, 14454, 1330, 6941, 18082, 198, 198, 3866, 1073, 796, 12178, 7, 15414, 10786, 19511, 578, 267, 662, 78, 16614, 17305, 25, 705, 4008, 198, 4798, 7, 69, 7061, 6, 32, 1138, 671, 466, 662, 78, 220, 1391, 7, 5908, 18082, 13, ...
2.201493
134
#!/usr/bin/env python2 import xmlrpclib db = 'odoo9' user = 'admin' password = 'admin' uid = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/2/common')\ .authenticate(db, user, password, {}) odoo = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/2/object') installed_modules = odoo.execute_kw( db, uid, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 11748, 35555, 81, 79, 565, 571, 198, 198, 9945, 796, 705, 375, 2238, 24, 6, 198, 7220, 796, 705, 28482, 6, 198, 28712, 796, 705, 28482, 6, 198, 27112, 796, 35555, 81, 79, 565, ...
2.590164
183
from abc import * import numpy as np ########################################################### ########################################################### ###########################################################
[ 6738, 450, 66, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 628, 198, 29113, 14468, 7804, 21017, 628, 198, 29113, 14468, 7804, 21017, 628, 198, 29113, 14468, 7804, 21017, 198 ]
7.433333
30
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.355283
2,035
import os import glob import cv2 import numpy as np import torch from torchvision.transforms import transforms from natsort import natsorted from models import resmasking_dropout1 from utils.datasets.fer2013dataset import EMOTION_DICT from barez import show transform = transforms.Compose( [ transforms.ToPI...
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 10178, 13, 7645, 23914, 1330, 31408, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 198, 6738, 4981, 1...
2.192641
924
import time import colorama while True: consulta = gerenciador_de_pagamento() consulta = str(input('Quer consultar novamente? ')) if consulta in ['sim', 'Sim', 'SIM']: pass elif consulta in ['no', 'nao','No', 'Nao', 'NAO','NO']: break else: break
[ 11748, 640, 198, 11748, 3124, 1689, 198, 4514, 6407, 25, 198, 220, 220, 220, 5725, 64, 796, 308, 14226, 979, 7079, 62, 2934, 62, 79, 363, 3263, 78, 3419, 198, 220, 220, 220, 5725, 64, 796, 965, 7, 15414, 10786, 4507, 263, 5725, 28...
2.203008
133
""" Created on 2 Apr 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ from collections import OrderedDict from scs_core.data.json import JSONable # --------------------------------------------------------------------------------------------------------------------
[ 37811, 198, 41972, 319, 362, 2758, 2177, 198, 198, 31, 9800, 25, 31045, 3944, 2364, 357, 1671, 36909, 13, 6667, 2364, 31, 35782, 1073, 5773, 4234, 13, 785, 8, 198, 37811, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, ...
4.737705
61
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.577465
923
import json from pygments import highlight from pygments.lexers import JsonLexer from pygments.formatters import TerminalFormatter
[ 11748, 33918, 198, 6738, 12972, 11726, 1330, 7238, 198, 6738, 12972, 11726, 13, 2588, 364, 1330, 449, 1559, 45117, 263, 198, 6738, 12972, 11726, 13, 18982, 1010, 1330, 24523, 8479, 1436, 628, 198 ]
4.030303
33
#!/usr/bin/env python3 import os from opendbc.can.parser import CANParser from cereal import car from selfdrive.car.interfaces import RadarInterfaceBase RADAR_MSGS_C = list(range(0x2c2, 0x2d4+2, 2)) # c_ messages 706,...,724 RADAR_MSGS_D = list(range(0x2a2, 0x2b4+2, 2)) # d_ messages LAST_MSG = max(RADAR_MSGS_C + RA...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 6738, 1034, 437, 15630, 13, 5171, 13, 48610, 1330, 15628, 46677, 198, 6738, 33158, 1330, 1097, 198, 6738, 2116, 19472, 13, 7718, 13, 3849, 32186, 1330, 38426, 3931...
2.181818
176
""" wrapper for ccmake command line tool """ import subprocess name = 'ccmake' platforms = ['linux', 'osx'] optional = True not_found = "required for 'fips config' functionality" #------------------------------------------------------------------------------- def check_exists(fips_dir) : """test if ccmake is in t...
[ 37811, 198, 48553, 329, 269, 11215, 539, 3141, 1627, 2891, 198, 37811, 198, 11748, 850, 14681, 198, 198, 3672, 796, 705, 535, 15883, 6, 198, 24254, 82, 796, 37250, 23289, 3256, 705, 418, 87, 20520, 198, 25968, 796, 6407, 198, 1662, 62...
3.088136
295
import os import numpy as np import tensorflow as tf from image_quality.utils import utils
[ 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 2939, 62, 13237, 13, 26791, 1330, 3384, 4487, 628, 198 ]
3.357143
28
from Test import Test, Test as test ''' Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out. Example: Given an input string of: apples, pears # and bananas grapes bananas !apples The output expecte...
[ 6738, 6208, 1330, 6208, 11, 6208, 355, 1332, 198, 198, 7061, 6, 198, 20988, 262, 4610, 523, 326, 340, 22670, 477, 2420, 326, 5679, 597, 286, 257, 900, 286, 2912, 19736, 3804, 287, 13, 4377, 13216, 10223, 379, 262, 886, 286, 262, 162...
2.980337
356
# -*- coding: utf-8 -*- """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Versi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 220, 220, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, ...
2.365399
2,630
# Authors: Robert Luke <mail@robertluke.net> # # License: BSD (3-clause) import numpy as np from mne import Annotations, create_info from mne.io import RawArray def simulate_nirs_raw(sfreq=3., amplitude=1., sig_dur=300., stim_dur=5., isi_min=15., isi_max=45.): """ ...
[ 2, 46665, 25, 5199, 11336, 1279, 4529, 31, 305, 4835, 2290, 365, 13, 3262, 29, 198, 2, 198, 2, 13789, 25, 347, 10305, 357, 18, 12, 565, 682, 8, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 285, 710, 1330, 47939, 11, 2251, ...
2.279867
904
from cryptomodel.cryptostore import user_notification, user_channel, user_transaction, operation_type from mongoengine import Q from cryptodataaccess import helpers from cryptodataaccess.helpers import if_none_raise, if_none_raise_with_id
[ 6738, 8194, 296, 375, 417, 13, 29609, 455, 382, 1330, 2836, 62, 1662, 2649, 11, 2836, 62, 17620, 11, 2836, 62, 7645, 2673, 11, 4905, 62, 4906, 198, 6738, 285, 25162, 18392, 1330, 1195, 198, 198, 6738, 8194, 375, 1045, 15526, 1330, 4...
3.492754
69
""" util.auth2: Authentication tools This module is based off of util.auth, except with the action paradigm removed. """ from flask import session from app.models import Account from app.util import course as course_util # Session keys SESSION_EMAIL = 'email' def create_account(email: str, password: str, f...
[ 37811, 7736, 13, 18439, 17, 25, 48191, 4899, 628, 220, 220, 220, 770, 8265, 318, 1912, 572, 286, 7736, 13, 18439, 11, 2845, 351, 262, 2223, 198, 220, 220, 220, 23457, 4615, 13, 198, 37811, 198, 198, 6738, 42903, 1330, 6246, 198, 198...
2.76259
556
from PyQt5.QtWidgets import * from matplotlib.backends.backend_qt5agg import FigureCanvas from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1635, 201, 198, 6738, 2603, 29487, 8019, 13, 1891, 2412, 13, 1891, 437, 62, 39568, 20, 9460, 1330, 11291, 6090, 11017, 201, 198, 6738, 2603, 29487, 8019, 13, 26875, 1330, 112...
3.084507
71
import numpy as np from pymoo.core.algorithm import Algorithm from pymoo.core.population import Population from pymoo.util.termination.no_termination import NoTermination from pyallocation.allocation import FastAllocation from pyallocation.problem import AllocationProblem
[ 11748, 299, 32152, 355, 45941, 198, 6738, 279, 4948, 2238, 13, 7295, 13, 282, 42289, 1330, 978, 42289, 198, 6738, 279, 4948, 2238, 13, 7295, 13, 39748, 1330, 20133, 198, 6738, 279, 4948, 2238, 13, 22602, 13, 41382, 13, 3919, 62, 41382...
3.808219
73
import os
[ 11748, 28686, 628, 628 ]
3.25
4
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
[ 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, ...
2.574074
432
import itertools import numpy as np import pandas as pd def find_intersections(formula_lists,group_labels,exclusive = True): """ Docstring for function pyKrev.find_intersections ==================== This function compares n lists of molecular formula and outputs a dictionary containing the intersections...
[ 11748, 340, 861, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 4299, 1064, 62, 3849, 23946, 7, 687, 4712, 62, 20713, 11, 8094, 62, 23912, 1424, 11, 41195, 796, 6407, 2599, 198, 220, 220, ...
2.521893
1,416
import os import glob import shutil from tinytag import TinyTag """ root = 'C:/' copy_to = '/copy to/folder' tag = TinyTag.get('C:/Users/jchap/OneDrive/Pictures/(VERYRAREBOYZ) (feat. $ki Mask The Slump God and Drugz).mp3') print(tag.artist) print('song duration: '+str(tag.duration)) """ f = [] f=glob.gl...
[ 11748, 28686, 201, 198, 11748, 15095, 201, 198, 11748, 4423, 346, 201, 198, 6738, 7009, 12985, 1330, 20443, 24835, 201, 198, 201, 198, 37811, 6808, 796, 705, 34, 14079, 6, 201, 198, 30073, 62, 1462, 796, 31051, 30073, 284, 14, 43551, ...
2.180567
2,470
#import modules import os import csv #input csvpath = os.path.join('Resources', 'budget_data.csv') #output outfile = os.path.join('Analysis', 'pybankstatements.txt') #declare variables months = []; total_m = 1; net_total = 0; total_change = 0; monthly_changes = []; greatest_inc = ['', 0]; greatest_dec = ['', 0] #open...
[ 2, 11748, 13103, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 2, 15414, 198, 40664, 6978, 796, 28686, 13, 6978, 13, 22179, 10786, 33236, 3256, 705, 37315, 62, 7890, 13, 40664, 11537, 198, 2, 22915, 198, 448, 7753, 796, 28686, 13, 6...
2.291317
714
from enum import Enum from constants.globals import HEALTH_EMOJIS NETWORK_ERROR = ' There was an error while getting data \nAn API endpoint is down!' HEALTH_LEGEND = f'\n*Node health*:\n{HEALTH_EMOJIS[True]} - *healthy*\n{HEALTH_EMOJIS[False]} - *unhealthy*\n' \ f'{HEALTH_EMOJIS[None]} - *unknown*\n' ...
[ 6738, 33829, 1330, 2039, 388, 198, 198, 6738, 38491, 13, 4743, 672, 874, 1330, 11179, 40818, 62, 3620, 46, 41, 1797, 198, 198, 12884, 33249, 62, 24908, 796, 705, 1318, 373, 281, 4049, 981, 1972, 1366, 3467, 77, 2025, 7824, 36123, 318,...
2.459627
161
import random import fire import json import os import numpy as np import tensorflow as tf import pytumblr import mysql.connector import datetime from random import seed import model, sample, encoder if __name__ == '__main__': fire.Fire(interact_model())
[ 11748, 4738, 198, 11748, 2046, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 12972, 45364, 198, 11748, 48761, 13, 8443, 273, 198, 11748, 4818, 8079, 198, 6...
3.371795
78
from sys import version_info if version_info[0] <= 2 and version_info[1] <= 4: else: all = all
[ 6738, 25064, 1330, 2196, 62, 10951, 198, 198, 361, 2196, 62, 10951, 58, 15, 60, 19841, 362, 290, 2196, 62, 10951, 58, 16, 60, 19841, 604, 25, 198, 17772, 25, 198, 220, 220, 220, 477, 796, 477, 198 ]
2.631579
38
from rest_framework import serializers from cms.api.serializers import UniCMSContentTypeClass, UniCMSCreateUpdateSerializer from cms.medias.serializers import MediaSerializer from . models import Carousel, CarouselItem, CarouselItemLink, CarouselItemLinkLocalization, CarouselItemLocalization
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 269, 907, 13, 15042, 13, 46911, 11341, 1330, 43376, 34, 5653, 19746, 6030, 9487, 11, 43376, 34, 5653, 16447, 10260, 32634, 7509, 198, 198, 6738, 269, 907, 13, 2379, 292, 13, 4...
3.719512
82
#!/usr/bin/env python3 """ Copyright (c) 2018-2021 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 applic...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 15069, 357, 66, 8, 2864, 12, 1238, 2481, 8180, 10501, 628, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 345, 743, 407, 77...
3.381443
388
# coding: utf-8 """ [AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) &copy; 2016&dash;2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501 OpenAPI sp...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 220, 628, 220, 220, 220, 685, 18429, 46, 40, 4255, 2070, 16151, 14, 17108, 72, 14, 31628, 14, 27916, 2070, 14, 9630, 13, 6494, 8, 220, 685, 6601, 16777, 16151, ...
2.5
432
# Copyright 2015-2017 ARM Limited, Google and 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 applica...
[ 2, 220, 220, 220, 15069, 1853, 12, 5539, 20359, 15302, 11, 3012, 290, 20420, 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, 11...
3.720648
247
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628 ]
3.833333
6
from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.shortcuts import render from django.urls import reverse from django.http import HttpResponseRedirect, HttpResponse from django.utils import timezone from olaf.models import * from olaf.forms import * from...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 426...
2.746641
521
from __future__ import print_function import argparse import torch import torch.utils.data import matplotlib.pyplot as plt from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image from torch.utils.tensorboard import SummaryWri...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 1822, 29572, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 28034, 1330, 299, 77, 11, 6436, ...
2.388379
981
from __future__ import absolute_import, division, print_function from appr.auth import ApprAuth from appr.commands.command_base import CommandBase, PackageSplit
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 598, 81, 13, 18439, 1330, 2034, 81, 30515, 198, 6738, 598, 81, 13, 9503, 1746, 13, 21812, 62, 8692, 1330, 9455, 14881, 11, 15717, 41205, 6...
3.790698
43
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
#!/usr/bin/env python '''tzwhere.py - time zone computation from latitude/longitude. Ordinarily this is loaded as a module and instances of the tzwhere class are instantiated and queried directly ''' import collections try: import ujson as json # loads 2 seconds faster than normal json except: try: i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 22877, 3003, 13, 9078, 532, 640, 6516, 29964, 422, 32477, 14, 6511, 3984, 13, 198, 198, 35422, 21565, 428, 318, 9639, 355, 257, 8265, 290, 10245, 286, 262, 256, 89, 300...
2.912442
651
from mindmeld.models.helpers import register_query_feature
[ 6738, 2000, 1326, 335, 13, 27530, 13, 16794, 364, 1330, 7881, 62, 22766, 62, 30053, 628 ]
3.75
16
#!/usr/bin/python # -*- coding: utf-8 -*-
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198 ]
1.909091
22
#!/usr/bin/python # -*- coding: utf-8 -*- # [Import start] from flask import Blueprint, jsonify # [Import end] app = Blueprint( 'hoge', __name__, url_prefix='/hoge' )
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 685, 20939, 923, 60, 198, 6738, 42903, 1330, 39932, 11, 33918, 1958, 198, 2, 685, 20939, 886, 60, 198, 198, 1324, ...
2.303797
79
#!/usr/bin/env python3 import apt_pkg import sys from apt_pkg import CURSTATE_INSTALLED, version_compare from operator import lt, le, eq, ge, gt # Function mappings for relationship operators. relation_operators = {"<<": lt, "<=": le, "=": eq, ">=": ge, ">>": gt} # Set up APT cache. apt_pkg.init() cache = apt_pkg.Ca...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 15409, 62, 35339, 198, 11748, 25064, 198, 198, 6738, 15409, 62, 35339, 1330, 327, 4261, 44724, 62, 38604, 7036, 1961, 11, 2196, 62, 5589, 533, 198, 6738, 10088, 1330, 300, 8...
2.607221
914
# Generated by Django 3.0.7 on 2020-08-24 06:17 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 2919, 12, 1731, 9130, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
print "Hello World!" print "Trying my hand at Git!" print "Something else" for i in range(10): print i
[ 4798, 366, 15496, 2159, 2474, 198, 4798, 366, 51, 14992, 616, 1021, 379, 15151, 2474, 198, 4798, 366, 22210, 2073, 1, 198, 1640, 1312, 287, 2837, 7, 940, 2599, 198, 220, 220, 220, 3601, 1312, 198 ]
2.972222
36
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic import DetailView, ListView from projects.models import Project from status.models import Status from .models import Task from .forms import TaskForm, FilterForm ...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 13610, 7680, 11, 10133, 7680, 11, 23520, 7680, 198, 6738, 42625, 14208, 13, 3...
3.926829
82
import os import math import time import geohash import geojson from geojson import MultiLineString from shapely import geometry import shapefile import numpy import datetime as dt import pandas as pd import logging logger = logging.getLogger(__name__) source_shape_file_path = "C:/temp/2018/" threshold = 60*60 cols = ...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 640, 198, 11748, 4903, 1219, 1077, 198, 11748, 4903, 13210, 1559, 198, 6738, 4903, 13210, 1559, 1330, 15237, 13949, 10100, 198, 6738, 5485, 306, 1330, 22939, 198, 11748, 5485, 7753, 198, 11748, ...
1.98381
1,050