content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from django.urls import path from . import views urlpatterns = [ path('', views.FlatListAPIView.as_view()), path('create/', views.FlatCreateAPIView.as_view()), path('<int:pk>/', views.FlatDetailAPIView.as_view()), path('<int:pk>/update/', views.FlatUpdateAPIView.as_view()), path('<int:pk>/delete/'...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 7414, 265, 8053, 2969, 3824, 769, 13, 292, 62, 1177, 3419, 828, 198, 220...
2.307692
156
# Copyright (C) 2020-Present the hyssop authors and contributors. # # This module is part of hyssop and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php ''' File created: January 1st 2021 Modified By: hsky77 Last Updated: January 7th 2021 15:30:08 pm ''' from hyssop.project.com...
[ 2, 15069, 357, 34, 8, 12131, 12, 34695, 262, 2537, 824, 404, 7035, 290, 20420, 13, 198, 2, 198, 2, 770, 8265, 318, 636, 286, 2537, 824, 404, 290, 318, 2716, 739, 198, 2, 262, 17168, 13789, 25, 2638, 1378, 2503, 13, 44813, 1668, ...
3.283333
120
import cv2 import getopt import sys from gui import MaskPainter, MaskMover from clone import seamless_cloning, shepards_seamless_cloning from utils import read_image, plt from os import path if __name__ == '__main__': # parse command line arguments args = {} try: opts, _ = getopt.getopt(sys.argv...
[ 11748, 269, 85, 17, 198, 11748, 651, 8738, 198, 11748, 25064, 198, 6738, 11774, 1330, 18007, 38490, 353, 11, 18007, 44, 2502, 198, 6738, 17271, 1330, 32354, 62, 565, 12484, 11, 673, 79, 1371, 62, 325, 321, 1203, 62, 565, 12484, 198, ...
2.386006
1,272
from rest_framework import serializers from punkweb_boards.conf.settings import SHOUTBOX_DISABLED_TAGS from punkweb_boards.models import ( BoardProfile, Category, Subcategory, Thread, Post, Conversation, Message, Report, Shout, )
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 22782, 12384, 62, 12821, 13, 10414, 13, 33692, 1330, 6006, 12425, 39758, 62, 26288, 6242, 30465, 62, 42197, 50, 198, 6738, 22782, 12384, 62, 12821, 13, 27530, 1330, 357, 198, 220, 22...
2.686275
102
from hetdesrun.component.registration import register from hetdesrun.datatypes import DataType import pandas as pd import numpy as np # ***** DO NOT EDIT LINES BELOW ***** # These lines may be overwritten if input/output changes.
[ 6738, 339, 8671, 274, 5143, 13, 42895, 13, 2301, 33397, 1330, 7881, 198, 6738, 339, 8671, 274, 5143, 13, 19608, 265, 9497, 1330, 6060, 6030, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, ...
3.462687
67
import cv2 import ezdxf import numpy as np draw_map = { 'HATCH': draw_hatch, 'LINE': draw_line, 'LWPOLYLINE': draw_lwpolyline, 'ARC': draw_arc, 'CIRCLE': draw_circle, 'ELLIPSE': draw_ellipse, 'POINT': draw_point, }
[ 11748, 269, 85, 17, 198, 11748, 304, 89, 67, 26152, 198, 11748, 299, 32152, 355, 45941, 628, 628, 628, 628, 198, 198, 19334, 62, 8899, 796, 1391, 198, 220, 220, 220, 705, 39, 11417, 10354, 3197, 62, 71, 963, 11, 198, 220, 220, 220...
2.056911
123
from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework import serializers from ...acl.useracl import serialize_user_acl from .user import UserSerializer User = get_user_model() __all__ = ["AuthenticatedUserSerializer", "AnonymousUserSerializer"] AuthenticatedUserSerial...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 2644, 37779, 13, 7220, 37779, 1330, 11389, ...
2.936047
172
from ctypes.wintypes import CHAR from distutils.command.upload import upload from random import choice from telnetlib import STATUS from unicodedata import category from django.db import models from ckeditor.fields import RichTextField from taggit.managers import TaggableManager # Create your models here. from mptt.mo...
[ 6738, 269, 19199, 13, 86, 600, 9497, 1330, 28521, 198, 6738, 1233, 26791, 13, 21812, 13, 25850, 1330, 9516, 198, 6738, 4738, 1330, 3572, 198, 6738, 13632, 3262, 8019, 1330, 15486, 2937, 198, 6738, 28000, 9043, 1045, 1330, 6536, 198, 673...
3.808511
94
import uuid import supriya.commands import supriya.realtime from supriya.patterns.Event import Event
[ 11748, 334, 27112, 198, 198, 11748, 424, 3448, 3972, 13, 9503, 1746, 198, 11748, 424, 3448, 3972, 13, 5305, 2435, 198, 6738, 424, 3448, 3972, 13, 33279, 82, 13, 9237, 1330, 8558, 628 ]
3.121212
33
# unicode digit emojis # digits from '0' to '9' zero_digit_code = zd = 48 # excluded digits excl_digits = [2, 4, 5, 7] # unicode digit keycap udkc = '\U0000fe0f\U000020e3' hours_0_9 = [chr(i) + udkc for i in range(zd, zd + 10) if i - zd not in excl_digits] # number '10' emoji hours_0_9.append('\U0001f51f') # ...
[ 2, 28000, 1098, 16839, 795, 13210, 271, 198, 2, 19561, 422, 705, 15, 6, 284, 705, 24, 6, 198, 22570, 62, 27003, 62, 8189, 796, 1976, 67, 796, 4764, 198, 2, 15009, 19561, 198, 1069, 565, 62, 12894, 896, 796, 685, 17, 11, 604, 11,...
2.119617
209
# -*- coding:utf-8 -*- """ BUG CREATE BY SNIPER """ import tensorflow as tf import numpy as np for gpu in tf.config.experimental.list_physical_devices...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, ...
2.088983
472
# Generated by Django 2.0.5 on 2019-07-26 06:45 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 13130, 12, 2998, 12, 2075, 9130, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import torch from kornia.geometry.linalg import transform_points from kornia.geometry.transform import remap from kornia.utils import create_meshgrid from .distort import distort_points, tilt_projection # Based on https://github.com/opencv/opencv/blob/master/modules/calib3d/src/undistort.dispatch.cpp#L384 def undis...
[ 11748, 28034, 198, 198, 6738, 479, 3317, 13, 469, 15748, 13, 75, 1292, 70, 1330, 6121, 62, 13033, 198, 6738, 479, 3317, 13, 469, 15748, 13, 35636, 1330, 816, 499, 198, 6738, 479, 3317, 13, 26791, 1330, 2251, 62, 76, 5069, 25928, 198...
2.100692
2,890
n1 = int(input('Digite um valor: ')) n2 = int(input('Digite outro valor: ')) print('A soma : {}!' .format(n1+n2)) print('A subtrao entre {} e {} {}!' .format(n1, n2, n1-n2)) print('A multiplicao desses valores {}!' .format(n1 * n2)) print('A diviso entre {} e {} {:.3}' .format(n1, n2, n1/n2)) print('A diviso sem res...
[ 77, 16, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 1188, 273, 25, 705, 4008, 198, 77, 17, 796, 493, 7, 15414, 10786, 19511, 578, 503, 305, 1188, 273, 25, 705, 4008, 198, 4798, 10786, 32, 3870, 64, 1058, 23884, 13679, 764, 18982, ...
2.222826
184
"""Tests API-level functions in manubot.cite. Both functions are found in citekey.py""" import pytest from manubot.cite import citekey_to_csl_item, standardize_citekey def test_citekey_to_csl_item_arxiv(): citekey = "arxiv:cond-mat/0703470v2" csl_item = citekey_to_csl_item(citekey) assert csl_item["id...
[ 37811, 51, 3558, 7824, 12, 5715, 5499, 287, 582, 549, 313, 13, 66, 578, 13, 5747, 5499, 389, 1043, 287, 21729, 2539, 13, 9078, 37811, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 582, 549, 313, 13, 66, 578, 1330, 21729, 2539, 62, ...
2.313953
1,978
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from os import path as op from ..util import load_data_file # This is the package data dir, not the dir for config, etc. DATA_DIR = op.join...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 6911, 9078, 7712, 4816, 13, 1439, 6923, 33876, 13, 198, 2, 4307, 6169, 739, 262, 357, 3605, 8, 347, 10305, 13789, 13, 4091, 38559, 24290, 13, 1...
2.44499
1,018
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np np.random.seed(1335) # for reproducibility np.set_printoptions(precision=5, suppress=True, linewidth=150) import os import pandas as pd import backtest as twp from matplotlib import pyplot as plt from sklearn import metrics, preprocessin...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 299, 32152, 355, 45941, 198, 198, 37659, 13, 25120, 13, 28826, 7, 1485, 2327, 8, 220, 1303, 329, 8186, 66, 2...
2.170899
3,347
import pytorch_lightning as pl import optuna import xarray as xr from pytorch_lightning.callbacks.early_stopping import EarlyStopping from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint import os import shutil from argparse import ArgumentParser from datetime import datetime from project.fluxda...
[ 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 11748, 2172, 9613, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 13, 13345, 10146, 13, 11458, 62, 301, 33307, 1330, 12556, 1273, ...
2.340234
1,111
#! @@Author : WAHYU ARIF PURNOMO #! @@Create : 18 Januari 2019 #! @@Modify : 19 Januari 2019 #! Gambar dari reddit. #! Gunakan VPN karena DNS situs reddit sudah di blokir dari negara Indonesia. import os import json import requests import progressbar from PIL import Image from lxml import html from time import sleep f...
[ 2, 0, 25248, 13838, 1058, 16400, 42598, 52, 5923, 5064, 350, 27064, 2662, 46, 198, 2, 0, 25248, 16447, 1058, 1248, 2365, 84, 2743, 13130, 198, 2, 0, 25248, 5841, 1958, 1058, 678, 2365, 84, 2743, 13130, 198, 2, 0, 33330, 283, 288, ...
2.565359
306
from collections import MutableMapping, Container from datetime import datetime, timedelta from pyvalid import accepts def __get_slice(self, start, end): keys = sorted(self.keys()) return keys[start:end] def __getitem__(self, item): return self.__storage.__getitem__(item) __all__ = ...
[ 6738, 17268, 1330, 13859, 540, 44, 5912, 11, 43101, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 12972, 12102, 1330, 18178, 628, 198, 220, 220, 220, 825, 11593, 1136, 62, 48369, 7, 944, 11, 923, 11, 886, 2599,...
2.841667
120
def findWords(self, words: List[str]) -> List[str]: ''' sets and iterate through sets ''' every = [set("qwertyuiop"), set("asdfghjkl"), set("zxcvbnm")] ans = [] for word in words: l = len(word) for sett in every: ...
[ 220, 220, 220, 825, 1064, 37117, 7, 944, 11, 2456, 25, 7343, 58, 2536, 12962, 4613, 7343, 58, 2536, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 5621, 290, 11629, 378, 832, 5621, 220, 198, 220, 220, 220, 220, 220, 220,...
1.582418
364
if __name__ == "__main__": sol = Solution() # nums = [2, 1, 3] nums = [1, 5, 1] sol.nextPermutation(nums) print(sol.res)
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1540, 796, 28186, 3419, 198, 220, 220, 220, 1303, 997, 82, 796, 685, 17, 11, 352, 11, 513, 60, 198, 220, 220, 220, 997, 82, 796, 685, 16, 11,...
1.945946
74
#!/usr/bin/python # Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved import subprocess import re pluginName = 'DataExport' pluginDir = "" networkFS = ["nfs", "cifs"] localFS = ["ext4", "ext3", "xfs", "ntfs", "exfat", "vboxsf"] supportedFS = ",".join(localFS + networkFS)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 357, 34, 8, 1853, 36404, 43399, 11998, 11, 3457, 13, 1439, 6923, 33876, 198, 198, 11748, 850, 14681, 198, 11748, 302, 198, 198, 33803, 5376, 796, 705, 6601, 43834, 6, 198, 33803, ...
2.773585
106
# Ported from JavaSript version to Python and Pygame Zero # Designed to work well with mu-editor environment. # # The original Javascript version wasdonw by Ben Eater # at https://github.com/beneater/boids (MIT License) # No endorsement implied. # # Complex numbers are are used as vectors to integrate x and y positions...
[ 2, 4347, 276, 422, 7349, 50, 1968, 2196, 284, 11361, 290, 9485, 6057, 12169, 198, 2, 39198, 284, 670, 880, 351, 38779, 12, 35352, 2858, 13, 198, 2, 198, 2, 383, 2656, 24711, 2196, 373, 9099, 86, 416, 3932, 40366, 198, 2, 379, 3740...
2.602851
491
# coding: utf-8 import pytz from dateutil.relativedelta import relativedelta from .base import BaseRecurring from upoutdf.occurences import OccurenceBlock, OccurenceGroup from upoutdf.constants import YEARLY_TYPE
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 12972, 22877, 198, 6738, 3128, 22602, 13, 2411, 265, 1572, 12514, 1330, 48993, 1572, 12514, 198, 198, 6738, 764, 8692, 1330, 7308, 6690, 14924, 198, 6738, 510, 448, 7568, 13, 13966, 495...
3.205882
68
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView urlpatterns = patterns( '', url(r'^$', TemplateView.as_view(template_name='home.html'), ...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 28482, 13, 2306, 375, 29392, 3419, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 12708, 16...
2.741228
228
import warnings import numpy as np import torch import torch.nn.functional as F from sklearn import metrics from torch.utils.data import DataLoader, SequentialSampler, TensorDataset from tqdm import tqdm from datasets.bert_processors.abstract_processor import convert_examples_to_features_with_emotion, \ ...
[ 11748, 14601, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 6738, 1341, 35720, 1330, 20731, 201, 198, 6738, 28034, 13, 26791, 13, 7890, 1330,...
3.112299
187
import torch.nn as nn import torch.nn.functional as F
[ 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 201 ]
2.85
20
from django.db import models from ipam.lookups import Host, Inet
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 20966, 321, 13, 5460, 4739, 1330, 14504, 11, 554, 316, 628 ]
3.190476
21
#!/usr/bin/env python # coding: utf-8 """ Learning Koopman Invariant Subspace (c) Naoya Takeishi, 2017. takeishi@ailab.t.u-tokyo.ac.jp """ import numpy as np np.random.seed(1234567890) from argparse import ArgumentParser from os import path import time from lkis import TimeSeriesBatchMaker, KoopmanInvariantSubspa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 18252, 509, 11224, 805, 10001, 2743, 415, 3834, 13200, 198, 357, 66, 8, 11013, 23790, 7214, 21644, 11, 2177, 13, 198, 1011, 21644, 31...
2.372818
2,406
from typing import List if __name__ == "__main__": s = Solution() result = s.minimumAbsDifference([3, 8, -10, 23, 19, -4, -14, 27]) print(result)
[ 6738, 19720, 1330, 7343, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 264, 796, 28186, 3419, 198, 220, 220, 220, 1255, 796, 264, 13, 39504, 24849, 28813, 1945, 26933, 18, 11, 807, 11, 5...
2.439394
66
import math def close(expected, actual, maxerror): '''checks to see if the actual number is within expected +- maxerror.''' low = expected - maxerror high = expected + maxerror if actual >= low and actual <= high: return True else: return False def grav_potential_energy(mass, height, gravity=9.81): '''calcu...
[ 11748, 10688, 198, 198, 4299, 1969, 7, 40319, 11, 4036, 11, 3509, 18224, 2599, 198, 197, 7061, 6, 42116, 284, 766, 611, 262, 4036, 1271, 318, 1626, 2938, 1343, 12, 3509, 18224, 2637, 7061, 198, 197, 9319, 796, 2938, 532, 3509, 18224, ...
2.831897
696
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
[ 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 25357, 25, 900, 10117, 28, 29412, 39747, 28, 19, 40379, 28, 19, 15...
2.835017
297
from telethon.tl.functions.photos import DeletePhotosRequest, GetUserPhotosRequest from telethon.tl.types import InputPhoto from userbot.cmdhelp import CmdHelp from userbot.utils import admin_cmd, edit_or_reply, sudo_cmd CmdHelp("delfp").add_command("delpfp", None, "delete ur currnt profile picture").add()
[ 6738, 5735, 400, 261, 13, 28781, 13, 12543, 2733, 13, 24729, 1330, 23520, 21197, 18453, 11, 3497, 12982, 21197, 18453, 198, 6738, 5735, 400, 261, 13, 28781, 13, 19199, 1330, 23412, 6191, 198, 198, 6738, 2836, 13645, 13, 28758, 16794, 13...
3.273684
95
import logging import os from typing import List, Tuple, Optional from amlb.utils import config_load, Namespace log = logging.getLogger(__name__) def load_file_benchmark(name: str, benchmark_definition_dirs: List[str]) -> Tuple[str, Optional[str], List[Namespace]]: """ Loads benchmark from a local file. """ ...
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 32233, 198, 198, 6738, 716, 23160, 13, 26791, 1330, 4566, 62, 2220, 11, 28531, 10223, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, ...
3.121951
205
from ..core.telegram import Telegram from ..helpers.enums import OperateCode
[ 6738, 11485, 7295, 13, 660, 30536, 1330, 50203, 198, 6738, 11485, 16794, 364, 13, 268, 5700, 1330, 6564, 378, 10669, 628, 628, 628, 628, 628, 628, 198 ]
3.296296
27
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import endpoints import random import webapp2 from apiclient import discovery from google.appengine.ext import ndb from oauth2client.client i...
[ 2, 15069, 1853, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 11748...
2.813559
413
# This Software (Dioptra) is being made available as a public service by the # National Institute of Standards and Technology (NIST), an Agency of the United # States Department of Commerce. This software was developed in part by employees of # NIST and in part by NIST contractors. Copyright in portions of this softwar...
[ 2, 770, 10442, 357, 18683, 8738, 430, 8, 318, 852, 925, 1695, 355, 257, 1171, 2139, 416, 262, 198, 2, 2351, 5136, 286, 20130, 290, 8987, 357, 45, 8808, 828, 281, 7732, 286, 262, 1578, 198, 2, 1829, 2732, 286, 16127, 13, 770, 3788,...
4.010352
483
# Copyright (C) 2006, 2008 Canonical Ltd # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or # modify it under the terms of either of these t...
[ 2, 15069, 357, 34, 8, 4793, 11, 3648, 19507, 605, 12052, 198, 2, 198, 2, 42148, 11451, 318, 10668, 12, 36612, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 290, 262, 22961, 198, 2, 3611, 5094, 13789, 355, 1171, 416, 262, 3232, 1...
3.488136
295
import md5 (i,count) = (0,0) password = ['']*8 while 1: key = 'reyedfim' + str(i) md = md5.new(key).hexdigest() if md[:5] == '00000': index = int(md[5],16) if index < len(password) and password[index]=='': password[index] = md[6] count += 1 if count ...
[ 11748, 45243, 20, 198, 198, 7, 72, 11, 9127, 8, 796, 357, 15, 11, 15, 8, 198, 198, 28712, 796, 685, 7061, 60, 9, 23, 198, 4514, 352, 25, 198, 220, 220, 220, 1994, 796, 705, 4364, 276, 69, 320, 6, 1343, 965, 7, 72, 8, 628, ...
1.863415
205
import pymel.core as pm import ast from pymel.core import datatypes from mgear.shifter import component from mgear.core import node, applyop, vector from mgear.core import attribute, transform, primitive
[ 11748, 279, 4948, 417, 13, 7295, 355, 9114, 198, 11748, 6468, 198, 6738, 279, 4948, 417, 13, 7295, 1330, 4818, 265, 9497, 198, 198, 6738, 10527, 451, 13, 1477, 18171, 1330, 7515, 198, 198, 6738, 10527, 451, 13, 7295, 1330, 10139, 11, ...
3.508475
59
# Generated by Django 3.1.1 on 2020-09-28 12:12 import datetime from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 2931, 12, 2078, 1105, 25, 1065, 198, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.972222
36
# coding: utf-8 import logging import requests import mimetypes from io import BytesIO from urllib.parse import urlparse from datetime import datetime, timedelta from collections import OrderedDict from flask_babelex import gettext as _ from flask import ( render_template, abort, current_app, request, ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 17007, 2963, 12272, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 6738, 4818, 8079, 1330, ...
2.604827
2,113
""" Converter um DataFrame para CSV """ import pandas as pd dataset = pd.DataFrame({'Frutas': ["Abacaxi", "Mamo"], "Nomes": ["verton", "Mrcia"]}, index=["Linha 1", "Linha 2"]) dataset.to_csv("dataset.csv")
[ 37811, 198, 3103, 332, 353, 23781, 6060, 19778, 31215, 44189, 198, 37811, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 19608, 292, 316, 796, 279, 67, 13, 6601, 19778, 15090, 6, 6732, 315, 292, 10354, 14631, 4826, 330, 897, 72, 1600...
1.915385
130
# -*- coding: utf-8 -*-. import re import warnings import os import logging from pygsheets.drive import DriveAPIWrapper from pygsheets.sheet import SheetAPIWrapper from pygsheets.spreadsheet import Spreadsheet from pygsheets.exceptions import SpreadsheetNotFound, NoValidUrlKeyFound from pygsheets.custom_types import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 34507, 198, 11748, 302, 198, 11748, 14601, 198, 11748, 28686, 198, 11748, 18931, 628, 198, 6738, 12972, 70, 42011, 13, 19472, 1330, 9974, 17614, 36918, 2848, 198, 6738, 12972, 70, ...
2.190436
3,555
from sys import maxsize
[ 6738, 25064, 1330, 3509, 7857, 198 ]
4
6
from itertools import islice from test import get_user_session, cassette from test.resources.documents import delete_all_documents, create_document
[ 6738, 340, 861, 10141, 1330, 318, 75, 501, 198, 198, 6738, 1332, 1330, 651, 62, 7220, 62, 29891, 11, 42812, 198, 6738, 1332, 13, 37540, 13, 15390, 2886, 1330, 12233, 62, 439, 62, 15390, 2886, 11, 2251, 62, 22897, 628 ]
3.75
40
import argparse import cv2 import keyboard import numpy as np import open3d as o3d import os import pygame from transforms3d.axangles import axangle2mat import config from hand_mesh import HandMesh from kinematics import mpii_to_mano from utils import OneEuroFilter, imresize from wrappers import ModelPipeline from ut...
[ 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 11748, 10586, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1280, 18, 67, 355, 267, 18, 67, 198, 11748, 28686, 198, 11748, 12972, 6057, 198, 6738, 31408, 18, 67, 13, 897, 27787, 1330...
2.671296
216
import os import dj_database_url BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = True ALLOWED_HOSTS = [] ROOT_URLCONF = 'groups.tests.urls' STATIC_URL = '/static/' SECRET_KEY = 'krc34ji^-fd-=+r6e%p!0u0k9h$9!q*_#l=6)74h#o(jrxsx4p' PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5Pa...
[ 11748, 28686, 198, 198, 11748, 42625, 62, 48806, 62, 6371, 628, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 22305, 1...
2.126792
907
import datetime import os import sys import unittest from unittest import mock import akismet
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 47594, 1042, 316, 628, 628, 198 ]
3.3
30
import pytorch_lightning as pl from torch.utils.data import DataLoader, Dataset from .core import BaseCore from .factory import BaseDataFactory
[ 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 11, 16092, 292, 316, 198, 198, 6738, 764, 7295, 1330, 7308, 14055, 198, 6738, 764, 69, 9548, 1330, 7308, 6601, 22810, 628, 19...
3.5
42
import pandas as pd import matplotlib.pyplot as plt import numpy as np #Load file dt=pd.read_csv("sevn_output/output_0.csv") #Give a look to the columns print(dt.columns) #Consider only the final states dt=dt.drop_duplicates(["ID","name"], keep='last') #Load evolved file dte=pd.read_csv("sevn_output/evolved_0.dat",se...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 8912, 2393, 198, 28664, 28, 30094, 13, 961, 62, 40664, 7203, 325, 85, 77, 62, 22915, 14,...
2.20653
1,317
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from of...
[ 6738, 2607, 24760, 13, 43282, 13, 16366, 62, 15252, 1330, 20985, 10267, 198, 6738, 2607, 24760, 13, 43282, 13, 16366, 62, 20274, 1330, 20985, 23004, 198, 6738, 2607, 24760, 13, 43282, 13, 4023, 13, 4023, 62, 24396, 1330, 367, 29281, 174...
4.095652
115
# ticket: 692 # mode: error _ERRORS = u""" 4:9: Missing argument name 5:11: undeclared name not builtin: a 5:15: undeclared name not builtin: b """
[ 2, 7846, 25, 718, 5892, 198, 2, 4235, 25, 4049, 198, 198, 62, 24908, 50, 796, 334, 37811, 198, 19, 25, 24, 25, 25639, 4578, 1438, 198, 20, 25, 1157, 25, 44192, 565, 1144, 1438, 407, 3170, 259, 25, 257, 198, 20, 25, 1314, 25, 4...
2.631579
57
import bluetooth import time bt = bluetooth.BLE() # singleton bt.active(True) # activate BT stack UART_UUID = bluetooth.UUID('6E400001-B5A3-F393-E0A9-E50E24DCCA9E') UART_TX = (bluetooth.UUID('6E400003-B5A3-F393-E0A9-E50E24DCCA9E'), bluetooth.FLAG_READ | bluetooth.FLAG_NOTIFY,) UAR...
[ 11748, 48208, 16271, 198, 11748, 640, 198, 18347, 796, 48208, 16271, 13, 19146, 3419, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2060, 1122, 198, 18347, 13, 5275, 7, 17821, 8, 220, 220, 220, 220, 220...
1.891525
295
from random import randint from sledo.generate.field_generators.base import FieldGenerator values = ("Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czech Republic", "Denmark", "Estonia", "Finland", "France", "G...
[ 6738, 4738, 1330, 43720, 600, 198, 6738, 46822, 78, 13, 8612, 378, 13, 3245, 62, 8612, 2024, 13, 8692, 1330, 7663, 8645, 1352, 198, 198, 27160, 796, 5855, 15160, 7496, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 121...
1.669339
499
#!/usr/bin/env python3 from sklearn.metrics import r2_score import numpy as np
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 374, 17, 62, 26675, 198, 11748, 299, 32152, 355, 45941, 628, 628 ]
2.827586
29
import optparse import sys if __name__ == "__main__": main()
[ 11748, 2172, 29572, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.64
25
# -*- coding: utf-8 -*- # Copyright 2017-2018 ICON Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2177, 12, 7908, 314, 10943, 5693, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 40...
3.307692
247
# encoding: utf-8 """ mplsmask.py Created by Evelio Vila on 2016-12-01. Copyright (c) 2014-2017 Exa Networks. All rights reserved. """ from exabgp.bgp.message.notification import Notify from exabgp.bgp.message.update.attribute.bgpls.linkstate import LinkState from exabgp.bgp.message.update.attribute.bgpls.linkstate im...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 76, 489, 5796, 2093, 13, 9078, 198, 198, 41972, 416, 412, 626, 952, 569, 10102, 319, 1584, 12, 1065, 12, 486, 13, 198, 15269, 357, 66, 8, 1946, 12, 5539, 1475, 64, 27862, 13, 1439...
2.202723
661
import unittest from opencmiss.utils.zinc.finiteelement import evaluateFieldNodesetRange from opencmiss.utils.zinc.general import ChangeManager from opencmiss.zinc.context import Context from opencmiss.zinc.element import Element from opencmiss.zinc.field import Field from opencmiss.zinc.result import RESULT_OK from s...
[ 11748, 555, 715, 395, 198, 198, 6738, 1280, 66, 3927, 13, 26791, 13, 89, 1939, 13, 69, 9504, 30854, 1330, 13446, 15878, 45, 4147, 316, 17257, 198, 6738, 1280, 66, 3927, 13, 26791, 13, 89, 1939, 13, 24622, 1330, 9794, 13511, 198, 673...
3.146067
178
#!/usr/bin/env python # Copyright 2015 Michael Rice <michael@michaelrice.org> # # 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 # # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1853, 3899, 13823, 1279, 76, 40302, 31, 76, 40302, 20970, 13, 2398, 29, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 3...
2.199639
1,663
import sys
[ 11748, 25064 ]
5
2
import os
[ 11748, 28686, 628, 198 ]
3
4
import numpy as np from math import pi,exp def static_stability(height,area,theta,s_et=None,n_et=None): """ The function "static_stability" computes the vertical gradient (z-derivative) of hemispheric-averaged potential temperature, i.e. d\tilde{theta}/dz in the def- inition of QGPV in eq.(3) of Huang ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 31028, 11, 11201, 198, 198, 4299, 9037, 62, 301, 1799, 7, 17015, 11, 20337, 11, 1169, 8326, 11, 82, 62, 316, 28, 14202, 11, 77, 62, 316, 28, 14202, 2599, 198, 220, 220, 220, 3...
2.272757
3,098
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
2.301966
712
import boto3 import gzip from moto import mock_s3 import pytest import os from chalicelib.s3 import read_object_s3, write_object_s3, objects_exist from tests.builders.file import build_gzip_csv
[ 11748, 275, 2069, 18, 198, 11748, 308, 13344, 198, 6738, 285, 2069, 1330, 15290, 62, 82, 18, 198, 11748, 12972, 9288, 198, 11748, 28686, 198, 198, 6738, 442, 282, 291, 417, 571, 13, 82, 18, 1330, 1100, 62, 15252, 62, 82, 18, 11, 3...
2.819444
72
import numpy as np import scipy.interpolate import scipy.ndimage from sklearn.feature_extraction.image import extract_patches_2d, reconstruct_from_patches_2d def make_patch_grid(x, patch_size, patch_stride=1): '''x shape: (num_channels, rows, cols)''' x = x.transpose(2, 1, 0) patches = extract_patches_2d...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 3849, 16104, 378, 198, 11748, 629, 541, 88, 13, 358, 9060, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 9060, 1330, 7925, 62, 8071, 2052, 62, 17, 67, 11, 31081, ...
2.28271
3,233
# Generated by Django 2.2.10 on 2021-02-24 09:42 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 940, 319, 33448, 12, 2999, 12, 1731, 7769, 25, 3682, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.8
30
import unittest import ray import ray.rllib.agents.ppo as ppo from ray.rllib.utils.test_utils import check_compute_single_action, \ framework_iterator if __name__ == "__main__": import pytest import sys sys.exit(pytest.main(["-v", __file__]))
[ 11748, 555, 715, 395, 198, 198, 11748, 26842, 198, 11748, 26842, 13, 81, 297, 571, 13, 49638, 13, 16634, 355, 279, 7501, 198, 6738, 26842, 13, 81, 297, 571, 13, 26791, 13, 9288, 62, 26791, 1330, 2198, 62, 5589, 1133, 62, 29762, 62, ...
2.578431
102
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.training import session_run_hook from tensorflow.python.training.basic_session_run_hooks import NeverTriggerTimer, SecondOrStepTimer from tensorflow.python.training.session_run_hook impor...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 34409, 1330, 6246, 62, 5143, 62, 25480, 198,...
3.596774
124
from flask import request from flask_restful import Resource from utils.gatekeeper import allowed_params
[ 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 3384, 4487, 13, 10494, 13884, 1330, 3142, 62, 37266, 628 ]
4.416667
24
#!/usr/bin/env python3 import socket, threading from queue import Queue import sys, struct # NOTE: Use this path to create the UDS Server socket SERVER_SOCKET_PATH = "./socket"; FMT = "!L" if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 17802, 11, 4704, 278, 198, 6738, 16834, 1330, 4670, 518, 198, 11748, 25064, 11, 2878, 198, 198, 2, 24550, 25, 5765, 428, 3108, 284, 2251, 262, 471, 5258, 9652, 17802, 198, ...
2.761905
84
from .rohon_gateway import RohonGateway
[ 6738, 764, 305, 24130, 62, 10494, 1014, 1330, 32694, 261, 22628, 1014, 198 ]
3.076923
13
from django.conf.urls import patterns, url, include from .views import force_desktop_version, return_to_mobile_version app_name = 'mobile' urlpatterns = [ # force desktop url(r'^force-desktop-version/$', force_desktop_version, name='force_desktop_version'), # return to mobile version url(r'^return-to...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 11, 2291, 198, 6738, 764, 33571, 1330, 2700, 62, 41375, 62, 9641, 11, 1441, 62, 1462, 62, 24896, 62, 9641, 628, 198, 1324, 62, 3672, 796, 705, 24896, 6, 198, 6371, ...
2.457854
522
""" Calibrate with the ROS package aruco_detect """ import rospy import roslib from geometry_msgs.msg import Transform
[ 37811, 198, 9771, 2889, 378, 351, 262, 48263, 5301, 610, 84, 1073, 62, 15255, 478, 198, 37811, 198, 198, 11748, 686, 2777, 88, 198, 11748, 686, 6649, 571, 198, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 26981, 628 ]
3.05
40
""" * Copyright 2019 EPAM Systems * * 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,...
[ 37811, 198, 9, 15069, 13130, 14724, 2390, 11998, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 9, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198,...
3.337386
329
from __future__ import absolute_import __author__ = 'marafi'
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 834, 9800, 834, 796, 705, 3876, 19910, 6, 628 ]
3.444444
18
import re from argparse import ArgumentParser from multiprocessing import Pool, Manager, Process from pathlib import Path from .utils import UnityDocument YAML_HEADER = '%YAML' if __name__ == '__main__': # None is considered successful code = UnityProjectTester().run() or 0 exit(code)
[ 11748, 302, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 9142, 11, 10854, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 764, 26791, 1330, 18714, 24941, 198, 198, 56, 2390, 43, 62, ...
3.15625
96
# -*- coding: utf-8 -*- # Copyright (c) Polyconseil SAS. All rights reserved. import hashlib import json import logging import os import re from .html import html_config, HtmlHarvester # pylint: disable=unused-import from .sphinx import ( # pylint: disable=unused-import sphinx_config, sphinx_rtd_config, Sph...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 12280, 1102, 325, 346, 35516, 13, 1439, 2489, 10395, 13, 198, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198...
2.682119
151
__all__ = ["stringmethod"]
[ 834, 439, 834, 796, 14631, 8841, 24396, 8973, 198 ]
3
9
# Generated by Django 2.0.4 on 2019-05-21 16:51 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 19, 319, 13130, 12, 2713, 12, 2481, 1467, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import discord import logging TRADING_API_URL='https://cloud.iexapis.com/stable/stock/{0}/quote' TRADING_API_ICON='https://iextrading.com/favicon.ico'
[ 11748, 36446, 198, 11748, 18931, 198, 198, 5446, 2885, 2751, 62, 17614, 62, 21886, 11639, 5450, 1378, 17721, 13, 494, 87, 499, 271, 13, 785, 14, 31284, 14, 13578, 14, 90, 15, 92, 14, 22708, 6, 198, 5446, 2885, 2751, 62, 17614, 62, ...
2.451613
62
import bz2 import csv import collections import math from enum import Enum def main(): import argparse # Argument processing parser = argparse.ArgumentParser(description='Load state set') parser.add_argument('-n', '--limit', type=int, help='Number of...
[ 11748, 275, 89, 17, 198, 11748, 269, 21370, 198, 11748, 17268, 198, 11748, 10688, 198, 198, 6738, 33829, 1330, 2039, 388, 628, 628, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 1330, 1822, 29572, 198, 220, 220, 220, 1303, 45751, 7...
1.953416
644
DEBUG = True TESTING = False
[ 30531, 796, 6407, 198, 51, 6465, 2751, 796, 10352, 198 ]
2.9
10
from hpcrocket.core.filesystem import Filesystem, FilesystemFactory from hpcrocket.core.launchoptions import Options from hpcrocket.pyfilesystem.localfilesystem import LocalFilesystem from hpcrocket.pyfilesystem.sshfilesystem import SSHFilesystem
[ 6738, 289, 14751, 30431, 13, 7295, 13, 16624, 6781, 1330, 13283, 6781, 11, 13283, 6781, 22810, 198, 6738, 289, 14751, 30431, 13, 7295, 13, 35681, 25811, 1330, 18634, 198, 6738, 289, 14751, 30431, 13, 9078, 16624, 6781, 13, 17946, 1604, ...
3.875
64
import csv import random import cassandra from cassandra.cluster import ResultSet from typing import List def assert_csvs_items_equal(filename1, filename2): with open(filename1, 'r') as x, open(filename2, 'r') as y: assert list(x.readlines()) == list(y.readlines()) def random_list(gen=None, n=None):...
[ 11748, 269, 21370, 198, 11748, 4738, 198, 198, 11748, 30606, 15918, 198, 198, 6738, 30606, 15918, 13, 565, 5819, 1330, 25414, 7248, 198, 6738, 19720, 1330, 7343, 628, 628, 198, 4299, 6818, 62, 6359, 14259, 62, 23814, 62, 40496, 7, 34345...
2.707355
1,278
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 198, 2, 743, 407, 779, 428, 2393, 2845, ...
3.369478
249
import subprocess proc = subprocess.Popen(['python3', 'articlekeywords.py', 'aih.txt' , '5'], stdout=subprocess.PIPE ) #print(type(proc.communicate()[0])) # path = '/opt/mycroft/skills/mycroft-bitcoinprice-skill/' text = proc.stdout.read() rows = text.splitlines() #print(text.splitlines()) count = 0 s = "" for ...
[ 198, 11748, 850, 14681, 198, 198, 36942, 796, 850, 14681, 13, 47, 9654, 7, 17816, 29412, 18, 3256, 705, 20205, 2539, 10879, 13, 9078, 3256, 220, 705, 1872, 71, 13, 14116, 6, 837, 705, 20, 6, 4357, 14367, 448, 28, 7266, 14681, 13, ...
2.349432
352
# Python 2.7.1 import RPi.GPIO as GPIO from twython import Twython import time import sys import os import pygame APP_KEY='zmmlyAJzMDIntLpDYmSH98gbw' APP_SECRET='ksfSVa2hxvTQKYy4UR9tjpb57CAynMJDsygz9qOyzlH24NVwpW' OAUTH_TOKEN='794094183841566720-BagrHW91yH8C3Mdh9SOlBfpL6wrSVRW' OAUTH_TOKEN_SECRET='d0Uucq2dkSHrFHZGLM1...
[ 2, 11361, 362, 13, 22, 13, 16, 198, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 6738, 665, 7535, 1330, 1815, 7535, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 12972, 6057, 198, 198, 24805, 62, 20373...
2.28307
1,837
# Copyright 2019 Arm Ltd. All rights reserved. # Copyright 2020 NXP # SPDX-License-Identifier: MIT import os import tarfile import pyarmnn as ann import shutil from typing import List, Union from pdoc.cli import main package_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..') de...
[ 2, 15069, 220, 13130, 7057, 12052, 13, 1439, 2489, 10395, 13, 201, 198, 2, 15069, 12131, 399, 27481, 201, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 13422, 7753, 201, ...
2.251214
824
__author__ = 'jeffye' if __name__ == '__main__': test_li = [-5, -5, 7, 7, 12, 0] # should return [-10,14,12,0] print sum_consecutives_corrected(test_li)
[ 834, 9800, 834, 796, 705, 73, 14822, 5948, 6, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1332, 62, 4528, 796, 25915, 20, 11, 532, 20, 11, 767, 11, 767, 11, 1105, 11, 657, 60, 220...
2.197368
76
"""plerr entrypoint""" from plerr import cli if __name__ == '__main__': cli.main()
[ 37811, 489, 8056, 5726, 4122, 37811, 198, 6738, 458, 8056, 1330, 537, 72, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 537, 72, 13, 12417, 3419, 198 ]
2.514286
35
import sys import time from datetime import datetime from bot import FbMessengerBot if __name__ == "__main__": if len(sys.argv) < 3: print("No email or password provided") else: bot = FbMessengerBot(sys.argv[1], sys.argv[2]) with open("users.txt", "r") as file: users = dict...
[ 11748, 25064, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 10214, 1330, 376, 65, 36479, 6540, 20630, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 17597, ...
2.127604
384
# 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 # distributed under t...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.771277
188
from boa3.builtin import public from boa3.builtin.interop.contract import destroy_contract
[ 6738, 1489, 64, 18, 13, 18780, 259, 1330, 1171, 198, 6738, 1489, 64, 18, 13, 18780, 259, 13, 3849, 404, 13, 28484, 1330, 4117, 62, 28484, 628 ]
3.407407
27
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 European Commission (JRC); # Licensed under the EUPL (the 'Licence'); # You may not use this work except in compliance with the Licence. # You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl import functools as fnt import logging impo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 13130, 3427, 4513, 357, 41, 7397, 1776, 198, 2, 49962, 739, 262, 4576, 6489, 357, 1169, 705, 26656,...
3.047619
210
import collections def canonicalize(json_obj, preserve_sequence_order=True): """ This function canonicalizes a Python object that will be serialized as JSON. Example usage: json.dumps(canonicalize(my_obj)) Args: json_obj (object): the Python object that will later be serialized as JSON. Re...
[ 11748, 17268, 628, 198, 4299, 40091, 1096, 7, 17752, 62, 26801, 11, 12201, 62, 43167, 62, 2875, 28, 17821, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163, 40091, 4340, 257, 11361, 2134, 326, 481, 307, 11389, 1143, 355,...
2.629851
335
from datasette import hookimpl from datasette.utils import detect_spatialite from shapely import wkt
[ 6738, 19395, 5857, 1330, 8011, 23928, 198, 6738, 19395, 5857, 13, 26791, 1330, 4886, 62, 2777, 34961, 578, 198, 6738, 5485, 306, 1330, 266, 21841, 628, 198 ]
3.814815
27