content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from django.contrib import admin from . import models # Register your models here. @admin.register(models.Point_history)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 1330, 4981, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 31, 28482, 13, 30238, 7, 27530, 13, 12727, 62, 23569, 8 ]
3.588235
34
# Hack 3: Fibonacci. Write a recursive program to create a fibonacci sequence including error handling(with try/except) for invalid input # Program to display the Fibonacci sequence up to n-th term # Python program to display the Fibonacci sequence # recurring function if __name__ == "__main__": driver()
[ 2, 18281, 513, 25, 41566, 261, 44456, 13, 220, 19430, 257, 45115, 1430, 284, 2251, 257, 12900, 261, 44456, 8379, 1390, 4049, 9041, 7, 4480, 1949, 14, 16341, 8, 329, 12515, 5128, 198, 198, 2, 6118, 284, 3359, 262, 41566, 261, 44456, ...
3.738095
84
""" Django settings for web project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os SI...
[ 37811, 198, 35, 73, 14208, 6460, 329, 3992, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 352, 13, 1157, 13, 18, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 13...
2.301986
2,669
from typing import List from loguru import logger from rest_framework import status, views from rest_framework.permissions import AllowAny from rest_framework.response import Response from core.decorators.feature import require_feature from core.permissions.task import IsTask from orders.models import Order, OrderIte...
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 2604, 14717, 1330, 49706, 198, 6738, 1334, 62, 30604, 1330, 3722, 11, 5009, 198, 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 22507, 7149, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, ...
4.198113
106
import os import copy import numpy as np import json import glob import time import random import datetime from fvcore.common.file_io import PathManager from detectron2.structures import BoxMode from detectron2 import model_zoo from detectron2.engine import DefaultPredictor from detectron2.config import g...
[ 11748, 28686, 201, 198, 11748, 4866, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 33918, 201, 198, 11748, 15095, 201, 198, 11748, 640, 201, 198, 11748, 4738, 201, 198, 11748, 4818, 8079, 201, 198, 6738, 277, 85, 7295, 13, ...
2.316338
863
# -*- coding: utf-8 -*- """ Created on Tue Nov 4 17:54:32 2014 @author: cdhagmann """ import random import itertools import os import shutil import pickle from Crispin.bash import id_generator, cat import pdat DISTANCE_IN_MILES = [25, 50, 75, 100, 150, 200, 250, 300, 350, 400, ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 5267, 220, 604, 1596, 25, 4051, 25, 2624, 1946, 198, 198, 31, 9800, 25, 22927, 71, 363, 9038, 198, 37811, 198, 198, 11748, 4738, 198, 11...
2.086835
714
import getopt import sys from colorama import Fore from models.persongan import Persongan from Preparation import SimilarityNER from Preparation import FuncWordProb from Preparation import LikeWord from Preparation import GenerateTagVec from Preparation import GenerateWordVec from Preparation import WordTagPro...
[ 11748, 651, 8738, 201, 198, 11748, 25064, 201, 198, 6738, 3124, 1689, 1330, 4558, 201, 198, 6738, 4981, 13, 19276, 506, 272, 1330, 9467, 506, 272, 201, 198, 6738, 38397, 341, 1330, 11014, 414, 21479, 201, 198, 6738, 38397, 341, 1330, ...
2.723301
412
# -*- coding: utf-8 -*- """ Utility functions needed by the DNSDB module """ from dateutil.parser import parse def build_uri(options): """ Build URI for DNSDB API query :param options: Dictionary :return: String """ path = build_path(options) uri = build_parameters(options, path) r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 18274, 879, 5499, 2622, 416, 262, 18538, 11012, 8265, 198, 37811, 198, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 628, 198, 4299, 1382, 62, 9900, 7, 258...
2.468807
3,863
import hashlib import json import time import traceback import urllib import xml.dom.minidom from config import Config from logger import Logger class LastFM(object): """ Plugin for managing Last.FM interaction @author: Fabio "BlackLight" Manganiello <blacklight86@gmail.com> """ __default_max_att...
[ 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 11748, 2956, 297, 571, 198, 11748, 35555, 13, 3438, 13, 1084, 312, 296, 198, 198, 6738, 4566, 1330, 17056, 198, 6738, 49706, 1330, 5972, 1362, 198, 19...
2.447316
503
from duo_deque import duo_deque from colorama import init, Fore, Back, Style class tape(object): ''' Stranges functions below '''
[ 6738, 18545, 62, 2934, 4188, 1330, 18545, 62, 2934, 4188, 198, 6738, 3124, 1689, 1330, 2315, 11, 4558, 11, 5157, 11, 17738, 628, 198, 4871, 9154, 7, 15252, 2599, 628, 220, 220, 220, 705, 7061, 4285, 6231, 5499, 2174, 705, 7061, 198 ]
3.261905
42
#!/usr/bin/env python ''' Classification of Music into Genres, Moods or other categories using the Rhythm Pattern audio analyzer (rp_extract.py) 2015-11 - 2016-08 by Thomas Lidy ''' import os.path import argparse import cPickle import numpy as np from sklearn import preprocessing, svm from sklearn.multiclass import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 9487, 2649, 286, 7849, 656, 5215, 411, 11, 25723, 82, 393, 584, 9376, 198, 3500, 262, 45757, 23939, 6597, 4284, 9107, 357, 81, 79, 62, 2302, 974, 13, 9078, 8, 19...
2.546815
4,945
#!/usr/bin/env python import commands import datetime import sys import base64 import json if sys.version_info[0] > 2: import urllib.request as urllib2 else: import urllib2 # Environment configuration admin_login = 'username:password' home_dir = '/home/user/' def _poll_genepattern(gp_url, tag): """ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 9729, 198, 11748, 4818, 8079, 198, 11748, 25064, 198, 11748, 2779, 2414, 198, 11748, 33918, 198, 198, 361, 25064, 13, 9641, 62, 10951, 58, 15, 60, 1875, 362, 25, 198, 220, ...
2.53737
1,057
from django.urls import path urlpatterns = [ path('<slug:object_name>/', 'form_designer.views.detail', name='form_designer_detail'), path('h/<slug:public_hash>/', 'form_designer.views.detail_by_hash', name='form_designer_detail_by_hash'), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 27, 6649, 1018, 25, 15252, 62, 3672, 29, 14, 3256, 705, 687, 62, 26124, 263, 13, 33571, 13, 49170, 3256, 1438, 11639...
2.55102
98
from .parser import parse_args
[ 6738, 764, 48610, 1330, 21136, 62, 22046, 198 ]
3.875
8
""" CostCenters v3 """ from typing import List, Dict from ..api_base import ApiBase class CostCenters(ApiBase): """Class for CostCenters APIs.""" POST_COST_CENTERS = '/v3/cost_centers' GET_COST_CENTERS = '/v3/cost_centers' def get(self, limit: int = None, offset: int = None, **kwargs) -> Dict: ...
[ 37811, 198, 13729, 19085, 364, 410, 18, 198, 37811, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 6738, 11485, 15042, 62, 8692, 1330, 5949, 72, 14881, 628, 198, 4871, 6446, 19085, 364, 7, 32, 14415, 14881, 2599, 198, 220, 220,...
2.243243
481
''' This is the first training stage -> train a network with coarse prediction vgg_fcn32s. The trained weights will be saved into a file ".data/vgg_fcn32.npy" which will be used in the 2nd stage training -> vgg_fcn16s and so on and so forth. ''' from __future__ import absolute_import from __future__ import division fro...
[ 7061, 6, 198, 1212, 318, 262, 717, 3047, 3800, 4613, 4512, 257, 3127, 351, 36076, 17724, 410, 1130, 62, 16072, 77, 2624, 82, 13, 198, 464, 8776, 19590, 481, 307, 7448, 656, 257, 2393, 27071, 7890, 14, 85, 1130, 62, 16072, 77, 2624, ...
2.202254
1,597
from pydra.engine import specs from pydra import ShellCommandTask import typing as ty input_fields = [ ( "in_file", specs.File, { "help_string": "timeseries to motion-correct", "argstr": "-in {in_file}", "mandatory": True, "position": 0, ...
[ 6738, 279, 5173, 430, 13, 18392, 1330, 25274, 198, 6738, 279, 5173, 430, 1330, 17537, 21575, 25714, 198, 11748, 19720, 355, 1259, 198, 198, 15414, 62, 25747, 796, 685, 198, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, ...
1.911676
2,321
import numpy from amuse.units import units from amuse.datamodel import Grid if __name__=="__main__": a=adcirc_grid_reader() a.read_grid() nodes,elements,elev_boundary, boundary=a.get_sets() assign_neighbours(nodes,elements) edges=get_edges(elements) print(nodes[1].neighbours) print()...
[ 11748, 299, 32152, 198, 198, 6738, 26072, 13, 41667, 1330, 4991, 198, 198, 6738, 26072, 13, 19608, 321, 375, 417, 1330, 24846, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 257, 28, 324, 21170, ...
2.209524
210
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 2, 15069, 357, 66, 8, 1584, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 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...
2.45582
1,426
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Definitions =========== Visual : an object that (1) can be drawn on-screen, (2) can be manipulated by configuring the coordinate transformations that it us...
[ 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.64334
6,802
from django.shortcuts import render from django.http import HttpResponse from django.views.generic import View from .mixins import HttpMethodMixin
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 3582, 198, 198, 6738, 764, 19816, 1040, 1330, 367, 29281, 17410, 35608, 259...
3.634146
41
import sys import numpy as np from scipy.misc import * if __name__ == "__main__": filenames = [l.strip().split()[0] for l in open(sys.argv[1]).readlines()] camera_params = np.loadtxt(sys.argv[2]) for fn in filenames: ext = "." + fn.split(".")[-1] cyl_fn = fn.replace(ext, "_cylindrical" + ...
[ 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 44374, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1226, 268, 1047, 796, 685, 75, 13, 36311, ...
2.150628
239
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
[ 2, 15069, 13130, 10766, 28478, 21852, 15302, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
2.468093
12,991
#! -*- coding: utf-8 -*- import logging import random import numpy as np import os import torch from typing import NamedTuple, List, Union import time import pandas as pd from transformers import EvalPrediction from transformers import AutoConfig, AutoTokenizer, BertTokenizer # from transformers import InputFeatures as...
[ 2, 0, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 19720, 1330, 34441, 51, 29291, 11, 7343, 11, 4479, ...
1.781645
9,109
""" League Owner Middleware """ from app.League import League from masonite.request import Request class LeagueOwner: """ Middleware to check if the user is the owner of the league """ def __init__(self, request: Request): """ Inject Any Dependencies From The Service Container """ self.request...
[ 37811, 4041, 23853, 6046, 1574, 37227, 198, 6738, 598, 13, 24623, 1330, 4041, 198, 6738, 285, 888, 578, 13, 25927, 1330, 19390, 198, 198, 4871, 4041, 42419, 25, 198, 220, 220, 220, 37227, 6046, 1574, 284, 2198, 611, 262, 2836, 318, 26...
2.935223
247
#!/usr/bin/python3 import pytest from hypothesis import given from hypothesis.strategies import SearchStrategy from brownie.test import strategy @given(value=strategy("bytes4")) @given(value=strategy("bytes")) @given(value=strategy("bytes", min_size=32)) @given(value=strategy("bytes", max_size=6)) @given...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 12972, 9288, 198, 6738, 14078, 1330, 1813, 198, 6738, 14078, 13, 2536, 2397, 444, 1330, 11140, 13290, 4338, 198, 198, 6738, 7586, 494, 13, 9288, 1330, 4811, 628, 628, 198, 198...
2.844156
154
import logging from enum import Enum from functools import partial from typing import Any, Dict, Union import click from .click_common import EnumType, LiteralParamType, command from .device import Device, DeviceStatus # noqa: F401 from .exceptions import DeviceException _LOGGER = logging.getLogger(__name__) # pa...
[ 11748, 18931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 4479, 198, 198, 11748, 3904, 198, 198, 6738, 764, 12976, 62, 11321, 1330, 2039, 388, 6030, 11, ...
2.284409
1,860
""" pydoc_markdown.py - generate python documenation in markdown > python pydoc_markdown.py path/to/source path/to/output project : utilipy version : 0.1.0 status : development modifydate : 2015-05-12 06:36:00 -0700 createdate : 2015-05-12 05:32:00 -0700 website : https://github.com/tmthydvnprt/utilipy a...
[ 37811, 198, 79, 5173, 420, 62, 4102, 2902, 13, 9078, 532, 7716, 21015, 2205, 20080, 341, 287, 1317, 2902, 198, 198, 29, 21015, 279, 5173, 420, 62, 4102, 2902, 13, 9078, 3108, 14, 1462, 14, 10459, 3108, 14, 1462, 14, 22915, 198, 198,...
2.18215
6,308
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 2864, 11, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330...
2.21694
4,333
# Checks if input is a palindrome, i.e. a sequence of characters which reads the same backward as forward # Example input: Rise to vote, sir. print('Palindrome Checker |[q]quit|') forbidden = ('?','.','!',',','@','#','$','%','(',')',' ',"'",'''"''','=','+','-','*','/') while True: user_input = cln(input('E...
[ 2, 47719, 611, 5128, 318, 257, 6340, 521, 5998, 11, 1312, 13, 68, 13, 257, 8379, 286, 3435, 543, 9743, 262, 976, 19528, 355, 2651, 201, 198, 2, 17934, 5128, 25, 15648, 284, 3015, 11, 15967, 13, 201, 198, 201, 198, 4798, 10786, 115...
2.394161
274
import json import os from typing import List, Dict, Mapping import pandas as pd from scripts.Constants import METADATA from scripts.task import Task from scripts.util import get_target_case
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 11, 337, 5912, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 14750, 13, 34184, 1187, 1330, 31243, 2885, 13563, 198, 6738, 14750, 13, 35943, 1330, ...
3.592593
54
import os import pytest @pytest.fixture(scope='module') @pytest.fixture(scope='module')
[ 11748, 28686, 198, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 69, 9602, 7, 29982, 11639, 21412, 11537, 628, 198, 31, 9078, 9288, 13, 69, 9602, 7, 29982, 11639, 21412, 11537, 198 ]
2.735294
34
#!/usr/bin/python3 # This file deal with EddyStone formated message # # Copyright (c) 2017 François Wautier # # Note part of this code was adapted from PyBeacon (https://github.com/nirmankarta/PyBeacon) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated d...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 770, 2393, 1730, 351, 1717, 9892, 34346, 1296, 515, 3275, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 50208, 370, 2306, 959, 198, 2, 198, 2, 5740, 636, 286, 428, 2438, 373, 165...
2.008117
3,819
import numpy as np import networkx as nx def euclidean(node1, node2): ''' Returns the eulidean distance beween two node coordinates. ''' x1,y1 = node1 x2,y2 = node2 return np.sqrt((x2-x1)**2 + (y2-y1)**2) def initgraph(grid,draw=False): ''' Initializes the possible nodes ...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 3127, 87, 355, 299, 87, 201, 198, 201, 198, 4299, 304, 36616, 485, 272, 7, 17440, 16, 11, 10139, 17, 2599, 201, 198, 220, 220, 220, 705, 7061, 201, 198, 220, 220, 220, 16409, 262, 30...
2.279102
713
import webbrowser import os import sys, getopt from os.path import isfile, join BGCOLORHEX = "#202020" BGCOLOR = "style=\"background-color:%s\"" %BGCOLORHEX PAGES = [ {"link":"imglist.html","name":"Photos","type":"img","path":"img"}, {"link":"shortlist.html","name":"Trailers","type":"vid","path":"short"}, ...
[ 11748, 3992, 40259, 198, 11748, 28686, 198, 11748, 25064, 11, 651, 8738, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 11, 4654, 198, 198, 33, 15916, 3535, 1581, 39, 6369, 796, 25113, 42334, 1238, 1, 198, 33, 15916, 3535, 1581, 796, 36...
2.469697
264
import json import os from typing import Any from typing import Dict from typing import FrozenSet from typing import List from typing import NamedTuple from typing import Tuple from typing import TypeVar from .compiler import Compiler from .fchainmap import FChainMap from .reg import _Reg from .reg import make_reg f...
[ 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 19720, 1330, 23673, 7248, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 34441, 51, 29291, 198, 6738, 19720, 1330, 309...
3.735537
121
from django.core.management.base import BaseCommand import os
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 11748, 28686, 198 ]
3.705882
17
import numpy as np import pyspeckit from astropy.io import fits import astropy.units as u data_dir = 'data/' fit_dir = 'fit/' file_in = data_dir + 'HC3N_9-8.fits' rms_file = data_dir + 'HC3N_9-8_rms.fits' file_par = fit_dir + 'HC3N_9-8_fitted.fits' freq_line = 81.87992490 * u.GHz snr_min = 8.0 xmax = 28; ymax = 32 #...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 279, 893, 431, 694, 270, 198, 6738, 6468, 28338, 13, 952, 1330, 11414, 198, 11748, 6468, 28338, 13, 41667, 355, 334, 198, 198, 7890, 62, 15908, 796, 705, 7890, 14, 6, 198, 11147, 62, 15908, ...
2.191057
492
__version__ = '0.0.42.1'
[ 834, 9641, 834, 796, 705, 15, 13, 15, 13, 3682, 13, 16, 6, 198 ]
1.785714
14
"""An object for containing returned route information.""" from marshmallow import fields from .....messaging.models.base import BaseModel, BaseModelSchema class RouteQueryResult(BaseModel): """Class representing route information returned by a route query.""" class Meta: """RouteQueryResult metada...
[ 37811, 2025, 2134, 329, 7268, 4504, 6339, 1321, 526, 15931, 198, 198, 6738, 22397, 42725, 1330, 7032, 198, 198, 6738, 11485, 986, 37348, 3039, 13, 27530, 13, 8692, 1330, 7308, 17633, 11, 7308, 17633, 27054, 2611, 628, 198, 4871, 18956, ...
2.873016
315
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Dec 4 11:24:09 2018 @author: philipp """ # Remove temporary trimming and alignment output # ======================================================================= # Imports import sys import yaml import os import glob import time if __name__ ...
[ 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, 41972, 319, 30030, 4280, 220, 604, 1367, 25, 1731, 25, 2931, 2864, 198, 198, 31, 9800, 25, 872, 8908, 198...
3.252336
107
print('=' * 12 + 'Desafio 30' + '=' * 12) numero = int(input('Digite o número inteiro: ')) if (numero % 2) == 0: print(f'O número {numero} é par!') else: print(f'O número {numero} é ímpar!')
[ 4798, 10786, 11639, 1635, 1105, 1343, 705, 5960, 1878, 952, 1542, 6, 1343, 705, 11639, 1635, 1105, 8, 198, 22510, 3529, 796, 493, 7, 15414, 10786, 19511, 578, 267, 299, 21356, 647, 78, 493, 68, 7058, 25, 705, 4008, 198, 361, 357, 22...
2.010101
99
import time import base64 import requests import urllib.parse import socket import getpass # # Downloads and packs the Ublox data ready for upload via Telestion. # hostname = socket.gethostname() username = getpass.getuser() escaped_time = time.strftime("%Y-%m-%d-%H_%M_%S%z") timestamp = time.strftime("%H:%M:%S %d.%...
[ 11748, 640, 198, 11748, 2779, 2414, 198, 11748, 7007, 198, 11748, 2956, 297, 571, 13, 29572, 198, 11748, 17802, 198, 11748, 651, 6603, 198, 198, 2, 198, 2, 50093, 290, 15186, 262, 471, 2436, 1140, 1366, 3492, 329, 9516, 2884, 12088, 3...
2.728982
904
"""Refactor channels table Revision ID: b8bf94efa410 Revises: 18b8b53f9202 Create Date: 2020-07-20 18:23:01.039729 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "b8bf94efa410" down_revision = "18b8b53f9202" branch_labels = None depends_on = None
[ 37811, 8134, 11218, 9619, 3084, 198, 198, 18009, 1166, 4522, 25, 275, 23, 19881, 5824, 891, 64, 33289, 198, 18009, 2696, 25, 1248, 65, 23, 65, 4310, 69, 24, 19004, 198, 16447, 7536, 25, 12131, 12, 2998, 12, 1238, 1248, 25, 1954, 25,...
2.504065
123
#!/usr/bin/env python import os import sys import json import requests import base64 COMPLETION_STATUS = [ 'In Progress', 'Testing', 'Done' ] if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 2779, 2414, 198, 198, 41335, 24131, 62, 35744, 2937, 796, 685, 198, 220, 220, 220, 705, 818, 18387,...
2.5125
80
from relation_data import RelationData, RelationDatum class
[ 6738, 8695, 62, 7890, 1330, 4718, 341, 6601, 11, 4718, 341, 35, 21307, 198, 198, 4871, 220 ]
3.588235
17
""" Tests for discussion API permission logic """ import itertools import ddt from lms.djangoapps.discussion.rest_api.permissions import ( can_delete, get_editable_fields, get_initializable_comment_fields, get_initializable_thread_fields ) from openedx.core.djangoapps.django_comment_common.comment_c...
[ 37811, 198, 51, 3558, 329, 5114, 7824, 7170, 9156, 198, 37811, 628, 198, 11748, 340, 861, 10141, 198, 198, 11748, 288, 28664, 198, 198, 6738, 300, 907, 13, 28241, 14208, 18211, 13, 15410, 11956, 13, 2118, 62, 15042, 13, 525, 8481, 133...
2.707819
729
#!/usr/bin/env python3 from typing import List from functools import cached_property import pytodotxt # type: ignore[import] from git_doc_history import DocHistory, DocHistorySnapshot, parse_snapshot_diffs from git_doc_history.config import parse_config, resolve_config # a todotxt task which has a __hash__ based o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 19720, 1330, 7343, 198, 6738, 1257, 310, 10141, 1330, 39986, 62, 26745, 198, 198, 11748, 12972, 83, 375, 313, 742, 220, 1303, 2099, 25, 8856, 58, 11748, 60, 198, 6738, ...
3.168067
119
# -*- coding: utf-8 -*- import datetime import json import os from typing import List from sqlalchemy import or_ from zvt.api import float_to_pct_str from zvt.contract import ActorType from zvt.domain import FinanceFactor, BalanceSheet, IncomeStatement, Stock, StockActorSummary from zvt.utils.pd_utils import pd_is_no...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 44161, 282, 26599, 1330, 393, 62, 198, 198, 6738, 1976, 36540, 13, ...
2.929487
156
"""Search the web with surfraw. `sudo apt install surfraw surfraw-extras xclip`""" import os import argparse import platform from subprocess import call, check_output, PIPE if __name__ == "__main__": main()
[ 37811, 18243, 262, 3992, 351, 9053, 1831, 13, 4600, 24032, 15409, 2721, 9053, 1831, 9053, 1831, 12, 2302, 8847, 2124, 15036, 63, 37811, 198, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 3859, 198, 6738, 850, 14681, 1330, 869, ...
3.111111
72
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import subprocess import os import tempfile import shutil import time import pytest import bmemcached from bmemcached.exceptions import MemcachedException from datadog_checks.mcache import Memcache from common ...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 2864, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 357, 3826, 38559, 24290, 8, 198, 198, 11748, 850, 14681, 198, 11748, 28686, 198, 11...
2.164384
1,314
n = int(input()) espaco = False while n != 0: camisetas = [] if espaco: print() for i in range(n): nome = input() cor, tamanho = input().split() camisetas.append((cor, tamanho, nome)) sort1 = sorted(camisetas, key=lambda x: x[2]) sort2 = sorted(sort1, key=lambda x: x[1], reverse=True) sort3 = sorte...
[ 77, 796, 493, 7, 15414, 28955, 198, 9774, 10602, 796, 10352, 198, 198, 4514, 299, 14512, 657, 25, 198, 197, 20991, 271, 316, 292, 796, 17635, 628, 197, 361, 15024, 10602, 25, 198, 197, 197, 4798, 3419, 628, 197, 1640, 1312, 287, 283...
2.306878
189
# -*- coding: utf-8 -*- """Functions for creating mock ``extrainfo`` descriptors.""" from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import hashlib import random from leekspin import const from leekspin import util def generateExtraInfo(nickname...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 24629, 2733, 329, 4441, 15290, 7559, 2302, 3201, 6513, 15506, 12145, 669, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 1159...
2.241313
1,554
from rest_framework import permissions from oauth2_provider.ext.rest_framework import IsAuthenticatedOrTokenHasScope ''' Custom permission to only allow owners of an object to edit it. ''' ''' Custom permission to only allow owners of an object to edit or read it. ''' #https://github.com/tomchristie/django-rest-fra...
[ 6738, 1334, 62, 30604, 1330, 21627, 198, 6738, 267, 18439, 17, 62, 15234, 1304, 13, 2302, 13, 2118, 62, 30604, 1330, 1148, 47649, 3474, 5574, 30642, 19242, 43642, 198, 198, 7061, 6, 198, 15022, 7170, 284, 691, 1249, 4393, 286, 281, 21...
3.504274
117
#id(obj, /) #Return the identity of an object. #This is guaranteed to be unique among simultaneously existing objects. #(CPython uses the object's memory address.)''' a = [1,2,3] b = a print(id(a)) print(id(b))
[ 2, 312, 7, 26801, 11, 1220, 8, 201, 198, 2, 13615, 262, 5369, 286, 281, 2134, 13, 201, 198, 2, 1212, 318, 11462, 284, 307, 3748, 1871, 11640, 4683, 5563, 13, 201, 198, 2, 7, 8697, 7535, 3544, 262, 2134, 338, 4088, 2209, 2014, 70...
2.654762
84
import re from django.conf import settings addrport = re.compile(r"^(.+):(\d{1,5})$") Storage = _get_storage(settings.REQUESTS_MONITOR_CONFIG['STORAGE'])
[ 11748, 302, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 628, 198, 29851, 634, 796, 302, 13, 5589, 576, 7, 81, 1, 61, 7, 13, 10, 2599, 38016, 67, 90, 16, 11, 20, 30072, 3, 4943, 198, 198, 31425, 796, 4808, 1136, 62, 3535...
2.393939
66
from django import forms from .models import Page
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 7873 ]
4.454545
11
from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.template.loader import render_to_string from isimip_data.core.mail import send_mail
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 14413, 198, 6738, 42625, 14208, 13, 28243, 13, 293...
3.358209
67
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @trojanzhex from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from script import script
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 23528, 13881, 89, 33095, 628, 198, 6738, 12972, 39529, 1330, 20985, 11, 16628, 198, 6738, 12972, 39529, 13...
3.046154
65
# Copyright (c) 2010 Resolver Systems Ltd. # All Rights Reserved # from functionaltest import FunctionalTest from key_codes import LEFT, LETTER_S
[ 2, 15069, 357, 66, 8, 3050, 1874, 14375, 11998, 12052, 13, 198, 2, 1439, 6923, 33876, 198, 2, 198, 198, 6738, 2163, 2501, 395, 1330, 44224, 14402, 198, 198, 6738, 1994, 62, 40148, 1330, 12509, 9792, 11, 37994, 5781, 62, 50, 628 ]
3.547619
42
# -*- coding: utf-8 -*- # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). { "name": "XML Reports", "version": "12", "category": "Reporting", "website": "https://github.com/OCA/reporting-engine", "author": "Grupo ESOC Ingeni...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 1946, 12, 4626, 220, 25665, 7501, 13380, 4503, 1279, 2503, 13, 70, 12618, 3028, 420, 13, 274, 29, 198, 2, 13789, 13077, 6489, 12, 18, 13, 15, ...
2.182099
324
from trame.widgets.trame import GitTree from paraview import simple, servermanager from pv_visualizer.app.assets import asset_manager from . import module PXM = servermanager.ProxyManager()
[ 6738, 491, 480, 13, 28029, 11407, 13, 2213, 480, 1330, 15151, 27660, 198, 6738, 1582, 615, 769, 1330, 2829, 11, 4382, 37153, 198, 198, 6738, 279, 85, 62, 41464, 7509, 13, 1324, 13, 19668, 1330, 11171, 62, 37153, 198, 6738, 764, 1330, ...
3.464286
56
from distutils.core import setup import versioneer with open('requirements.txt', 'r') as reqfile: requirements = [x.strip() for x in reqfile if x.strip()] setup( name='runremotely', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), packages=['runremotely'], ...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 11748, 2196, 28153, 198, 198, 4480, 1280, 10786, 8897, 18883, 13, 14116, 3256, 705, 81, 11537, 355, 43089, 7753, 25, 198, 220, 220, 220, 5359, 796, 685, 87, 13, 36311, 3419, 329, 2124, 287...
2.211144
341
#!/usr/bin/env python3 from collections import Counter import csv from gzip import open as gunzip import json import string import re separators = '[{}]'.format(string.punctuation + string.whitespace) queries = set() for i in range(10): filename = 'data/aol/aol-{}.txt.gz'.format(str(i+1).zfill(2)) with gunzi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 17268, 1330, 15034, 198, 11748, 269, 21370, 198, 6738, 308, 13344, 1330, 1280, 355, 2485, 13344, 198, 11748, 33918, 198, 11748, 4731, 198, 11748, 302, 198, 198, 25512, 202...
2.496933
326
#!/usr/bin/env python # -*- coding: utf-8 -*- # Distributed under the terms of the MIT License. """ Script to compare the REFCODES in two DB files. Author: Andrew Tarzia Date Created: 14 Feb 2019 (Happy Valentine's Day) """ import sys def read_gcd(file): '''Read REFCODES from gcd file from ConQuest. ''' ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 37811, 198, 7391, 284, 8996, 262, 4526, 4851, 37...
2.361754
821
# coding=utf-8 import unittest from scriptures import ref, format, FORMAT_LONG, FORMAT_MEDIUM, FORMAT_SHORT
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 555, 715, 395, 198, 6738, 39782, 1330, 1006, 11, 5794, 11, 7473, 41636, 62, 43, 18494, 11, 7473, 41636, 62, 30733, 41796, 11, 7473, 41636, 62, 9693, 9863, 628 ]
2.894737
38
Python Program To Find Sub-strings at least K vowels A string S of length L and an integer K is passed as the input. The program must sort and print the count of all the unique sub-strings (with a given combination of characters) containing at least K vowels. Then the program must also print those sub-strings in sorte...
[ 171, 119, 123, 37906, 6118, 1675, 9938, 3834, 12, 37336, 379, 1551, 509, 23268, 1424, 198, 32, 4731, 311, 286, 4129, 406, 290, 281, 18253, 509, 318, 3804, 355, 262, 5128, 13, 383, 1430, 1276, 3297, 290, 3601, 262, 954, 286, 477, 262...
2.56391
665
print("a")
[ 4798, 7203, 64, 4943, 198 ]
2.2
5
import os from flask_restful import Resource, marshal_with, fields from flask_jwt_extended import jwt_required, get_jwt_identity from pillcity.daos.invitation_code import create_invitation_code, get_invitation_codes from .cache import r, RMediaUrl admins = list(map(lambda s: s.strip(), os.getenv('ADMINS', '').split(',...
[ 11748, 28686, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 22397, 282, 62, 4480, 11, 7032, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 474, 46569, 62, 35827, 11, 651, 62, 73, 46569, 62, 738, 414, 198, 6738, 9582, 192...
2.922535
142
from .battery import battery from .cpu import cpu from .fan import fan
[ 6738, 764, 65, 16296, 1330, 6555, 198, 6738, 764, 36166, 1330, 42804, 198, 6738, 764, 24408, 1330, 4336, 198 ]
3.736842
19
# -*- coding: utf-8 -*- """Visual Basic for Applications (VBA) collector.""" import uuid import pyolecf from dtfabric import errors as dtfabric_errors from olecfrc import data_format from olecfrc import errors from olecfrc import hexdump class FStream(data_format.BinaryDataFormat): """Class that defines a f str...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 36259, 14392, 329, 26622, 357, 53, 4339, 8, 22967, 526, 15931, 198, 198, 11748, 334, 27112, 198, 198, 11748, 12972, 2305, 12993, 198, 198, 6738, 288, 27110, 397, ...
2.070716
6,717
import sys import os import six from google.cloud import language os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./google_api_cred.json" def entity_sentiment_text(text): """Detects entity sentiment in the provided text.""" client = language.LanguageServiceClient() if isinstance(text, six.binary_type): ...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 2237, 198, 198, 6738, 23645, 13, 17721, 1330, 3303, 198, 198, 418, 13, 268, 2268, 14692, 38, 6684, 38, 2538, 62, 2969, 31484, 6234, 62, 9419, 1961, 3525, 12576, 50, 8973, 796, 366, 19571, 1...
2.78157
293
""" NestedObject interface """ from abc import ABCMeta, abstractmethod
[ 37811, 399, 7287, 10267, 7071, 37227, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 628 ]
4.055556
18
import os import urlparse class Config(object): '''Default configuration object.''' DEBUG = False TESTING = False PORT = int(os.environ.get('PORT', 5000)) class ProductionConfig(Config): '''Configuration object specific to production environments.''' REDIS_URL = os.environ.get('REDISTOGO_U...
[ 11748, 28686, 198, 11748, 19016, 29572, 628, 198, 4871, 17056, 7, 15252, 2599, 198, 220, 220, 220, 705, 7061, 19463, 8398, 2134, 2637, 7061, 628, 220, 220, 220, 16959, 796, 10352, 198, 220, 220, 220, 43001, 2751, 796, 10352, 198, 220, ...
2.37587
431
""" Plugin Support: Plugins providing nodes with a custom creation script should add callbacks to the lists: pluginNodeClassificationCallbacks pluginNodeCreationCallbacks Following the Mentalray example at the bottom of this file. """ import maya.cmds as cmds from . import nodeEditorMenus import maya.mel as mel cl...
[ 37811, 198, 37233, 7929, 25, 198, 198, 23257, 1040, 4955, 13760, 351, 257, 2183, 6282, 4226, 815, 751, 198, 13345, 10146, 284, 262, 8341, 25, 198, 198, 33803, 19667, 9487, 2649, 14134, 10146, 198, 33803, 19667, 12443, 341, 14134, 10146, ...
2.892812
793
from book_a_table.forms import BookForm from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect # from django.apps import apps from django.shortcuts import render, redirect from django.views.decorators.csrf import csrf_protect from django.core.mail import EmailMessage from validate_ema...
[ 6738, 1492, 62, 64, 62, 11487, 13, 23914, 1330, 4897, 8479, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 2, 422, 42625, 14208, 13,...
2.405825
515
# The source code in this file is based on # http://jamesgregson.ca/loadsave-wavefront-obj-files-in-python.html # I removed several features which were not needed, cleaned the code, and # introduced the management of multiple regions in a single .obj file import numpy as np def load_obj(filename: str) -> WavefrontO...
[ 2, 383, 2723, 2438, 287, 428, 2393, 318, 1912, 319, 198, 2, 2638, 1378, 73, 1047, 9903, 1559, 13, 6888, 14, 2220, 21928, 12, 19204, 8534, 12, 26801, 12, 16624, 12, 259, 12, 29412, 13, 6494, 198, 2, 314, 4615, 1811, 3033, 543, 547,...
1.898477
1,379
# -*- coding: utf-8 -*- # This file is part of convertdate. # http://github.com/fitnr/convertdate # Licensed under the MIT license: # http://opensource.org/licenses/MIT # Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal> # Most of this code is ported from Fourmilab's javascript calendar converter # http://www.fourm...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 318, 636, 286, 10385, 4475, 13, 198, 2, 2638, 1378, 12567, 13, 785, 14, 11147, 48624, 14, 1102, 1851, 4475, 198, 198, 2, 49962, 739, 262, 17168, 5...
2.951613
434
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
[ 2, 220, 15069, 2864, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 198, 2, 220, 921, 743, 407, ...
3.026596
564
import os from tqdm import tqdm import torch from utils import save_model, save_pred, get_pred_prefix, get_model_prefix import torch.autograd.profiler as profiler from configs.supported import process_outputs_functions
[ 11748, 28686, 201, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 201, 198, 11748, 28034, 201, 198, 6738, 3384, 4487, 1330, 3613, 62, 19849, 11, 3613, 62, 28764, 11, 651, 62, 28764, 62, 40290, 11, 651, 62, 19849, 62, 40290, 201, 1...
2.865854
82
from flask import request import datetime import pytz
[ 6738, 42903, 1330, 2581, 198, 11748, 4818, 8079, 198, 11748, 12972, 22877, 198 ]
4.153846
13
import logging from kazoo.client import KazooClient if __name__ == "__main__": main()
[ 11748, 18931, 198, 6738, 479, 1031, 2238, 13, 16366, 1330, 16385, 2238, 11792, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.875
32
import argparse import json from datetime import datetime from flask import Flask, Response from src import state_changes from src import state_changes_weekly from src.state_changes import StateChange from src.state_changes_weekly import StateChangeWeekly parser = argparse.ArgumentParser(description='Record a Schedu...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 42903, 1330, 46947, 11, 18261, 198, 6738, 12351, 1330, 1181, 62, 36653, 198, 6738, 12351, 1330, 1181, 62, 36653, 62, 45291, 198, 198, 6738, ...
3.188596
228
import os from flask import Flask, flash, session, request, send_file, render_template, redirect, url_for, jsonify from flask_socketio import SocketIO, send, join_room, leave_room, emit from flask_cors import cross_origin from datetime import datetime from db import DBConn, SQL from pathlib import Path from werkzeug.ut...
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 6246, 11, 2581, 11, 3758, 62, 7753, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 11, 33918, 1958, 198, 6738, 42903, 62, 44971, 952, 1330, 47068, 9399, 11, 3758, 11, ...
2.469938
1,447
''' OpenTAXII, TAXII server implementation from EclecticIQ. ''' # flake8: noqa from ._version import __version__ from .server import TAXIIServer from .config import ServerConfig from .entities import Account from .local import context
[ 7061, 6, 198, 220, 220, 220, 4946, 5603, 55, 3978, 11, 21664, 55, 3978, 4382, 7822, 422, 14003, 42009, 33866, 13, 198, 7061, 6, 198, 2, 781, 539, 23, 25, 645, 20402, 198, 198, 6738, 47540, 9641, 1330, 11593, 9641, 834, 198, 6738, ...
3.30137
73
from substrateinterface import SubstrateInterface import json types = json.load(open("../resources/types.json", "r")) url = "http://127.0.0.1:9933" # url = "https://rpc-newrome.setheum.xyz" # url = "https://rpc.setheum.xyz" s = SubstrateInterface( url=url, ss58_format=42, type_registry=types, type_re...
[ 6738, 32305, 39994, 1330, 3834, 23104, 39317, 198, 198, 11748, 33918, 198, 19199, 796, 33918, 13, 2220, 7, 9654, 7203, 40720, 37540, 14, 19199, 13, 17752, 1600, 366, 81, 48774, 198, 198, 6371, 796, 366, 4023, 1378, 16799, 13, 15, 13, ...
2.56286
867
from plugin.models.core import db from plugin.models.account import Account from exception_wrappers.libraries.playhouse.apsw_ext import *
[ 6738, 13877, 13, 27530, 13, 7295, 1330, 20613, 198, 6738, 13877, 13, 27530, 13, 23317, 1330, 10781, 198, 198, 6738, 6631, 62, 29988, 11799, 13, 75, 11127, 13, 1759, 4803, 13, 1686, 86, 62, 2302, 1330, 1635, 628 ]
3.684211
38
from django.contrib import admin from blog.models import Blog, Post, PostImage from guardian.admin import GuardedModelAdmin admin.site.register(Blog, GuardedModelAdmin) admin.site.register(Post, GuardedModelAdmin) admin.site.register(PostImage, GuardedModelAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4130, 13, 27530, 1330, 14001, 11, 2947, 11, 2947, 5159, 198, 6738, 21688, 13, 28482, 1330, 4932, 276, 17633, 46787, 198, 198, 28482, 13, 15654, 13, 30238, 7, 42383, 11, 4932, ...
3.533333
75
''' Description: Author: Senkita Date: 2021-02-15 08:53:46 LastEditors: Senkita LastEditTime: 2021-02-15 08:56:42 ''' import pywifi import time import sys import getopt from wifi_crack.utils import Error
[ 7061, 6, 198, 11828, 25, 198, 13838, 25, 2311, 74, 5350, 198, 10430, 25, 33448, 12, 2999, 12, 1314, 8487, 25, 4310, 25, 3510, 198, 5956, 18378, 669, 25, 2311, 74, 5350, 198, 5956, 18378, 7575, 25, 33448, 12, 2999, 12, 1314, 8487, ...
2.697368
76
from __future__ import annotations # needed for type annotations in > python 3.7 from typing import List, Union, Dict from code_generation.exceptions import ( SampleConfigurationError, EraConfigurationError, ) ConfigurationParameters = Union[str, int, float, bool] ModifierDict = Dict[ str, Union[ ...
[ 6738, 11593, 37443, 834, 1330, 37647, 220, 1303, 2622, 329, 2099, 37647, 287, 1875, 21015, 513, 13, 22, 198, 6738, 19720, 1330, 7343, 11, 4479, 11, 360, 713, 198, 6738, 2438, 62, 20158, 13, 1069, 11755, 1330, 357, 198, 220, 220, 220, ...
3.104545
220
#!/usr/bin/python # -*- coding: UTF-8 -*- import RPi.GPIO as GPIO import time if __name__ == "__main__": prompt_msg = \ u"Please input following instrcutions:\n"\ u"R or r:-----RED LED on\n"\ u"G or g:-----GREEN LED on\n"\ u"B or b:-----BLUE LED on\n"\ u"O o...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 201, 198, 11748, 640, 201, 198, 201, 198, 201, 198, 201, 198...
1.752961
591
import os from discord import Embed from data import get_guildconfig from helpers import console from .infrastructure import registered_guild_and_admin_or_mod_only, record_usage, CommandDefinition CHECK = "✅" X_CHECK = "❌" features = CommandDefinition( func=_features, short_help="Checks if further config...
[ 11748, 28686, 198, 198, 6738, 36446, 1330, 13302, 276, 198, 198, 6738, 1366, 1330, 651, 62, 70, 3547, 11250, 198, 6738, 49385, 1330, 8624, 198, 6738, 764, 10745, 6410, 1330, 6823, 62, 70, 3547, 62, 392, 62, 28482, 62, 273, 62, 4666, ...
3.378788
132
EMOJI_UNICODE = [ u'\U0001F600', u'\U0001F601', u'\U0001F602', u'\U0001F923', u'\U0001F603', u'\U0001F604', u'\U0001F605', u'\U0001F606', u'\U0001F609', u'\U0001F60A', u'\U0001F60B', u'\U0001F60E', u'\U0001F60D', u'\U0001F618', u'\U0001F617', u'\U0001F619', u'\U0001F61A', u'\U0000263A\U0000FE0F', u'\U0001F642', u'\U000...
[ 3620, 46, 41, 40, 62, 4944, 2149, 16820, 796, 685, 334, 6, 59, 52, 18005, 37, 8054, 3256, 198, 84, 6, 59, 52, 18005, 37, 41706, 3256, 198, 84, 6, 59, 52, 18005, 37, 31418, 3256, 198, 84, 6, 59, 52, 18005, 37, 24, 1954, 3256, ...
1.656951
32,526
import webbrowser import tkinter as tk
[ 11748, 3992, 40259, 198, 11748, 256, 74, 3849, 355, 256, 74, 628 ]
3.333333
12
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.EGL import _types as _cs # End users want this... from OpenGL.raw.EGL._types import * from OpenGL.raw.EGL import _errors from OpenGL.constant import Constant as _C imp...
[ 7061, 6, 16541, 519, 877, 515, 416, 35555, 62, 8612, 378, 4226, 11, 466, 407, 4370, 0, 7061, 6, 201, 198, 6738, 30672, 1330, 3859, 355, 4808, 79, 11, 26515, 201, 198, 2, 6127, 5270, 3544, 428, 201, 198, 6738, 30672, 13, 1831, 13, ...
2.074941
427
import torch from utils.base_model import BaseModel import torch.nn as nn import torch.nn.functional as F from pathlib import Path from models.operations import * from models.decoding_formulas import Decoder import pdb from operations import * def MLP(channels: list, do_bn=True): """ Multi-layer perceptron ""...
[ 11748, 28034, 198, 198, 6738, 3384, 4487, 13, 8692, 62, 19849, 1330, 7308, 17633, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4981, 13, ...
2.477564
312
from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin from flask import Flask, request from marshmallow import Schema, fields, ValidationError, pprint app = Flask(__name__) # Create an APISpec spec = APISpec( title="Swagger Petstore", version="1.0.0", openapi_version="3.0.2", ...
[ 6738, 2471, 271, 43106, 1330, 3486, 1797, 43106, 198, 6738, 2471, 271, 43106, 13, 2302, 13, 76, 5406, 42725, 1330, 9786, 42725, 37233, 198, 6738, 42903, 1330, 46947, 11, 2581, 198, 6738, 22397, 42725, 1330, 10011, 2611, 11, 7032, 11, 32...
1.902168
1,799
''' Created on Nov 15, 2017 @author: krgupta ''' import logging from authorizenet.constants import constants from authorizenet import apicontractsv1 from authorizenet import apicontrollersbase anetLogger = logging.getLogger(constants.defaultLoggerName)
[ 7061, 6, 201, 198, 41972, 319, 5267, 1315, 11, 2177, 201, 198, 201, 198, 31, 9800, 25, 479, 81, 5162, 32283, 201, 198, 7061, 6, 201, 198, 11748, 18931, 201, 198, 6738, 1772, 33977, 316, 13, 9979, 1187, 1330, 38491, 201, 198, 6738, ...
2.892473
93
import FWCore.ParameterSet.Config as cms process = cms.Process("ttbarACskim") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( '/store/mc/RunIISpring16M...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 14681, 796, 269, 907, 13, 18709, 7203, 926, 5657, 2246, 8135, 320, 4943, 198, 198, 14681, 13, 2220, 7203, 24160, 14055, 13, 12837, 16177, 13, 12837, 11187, 1362, ...
1.79161
1,478
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring # pylint: disable=redefined-outer-name # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import # pylint: disable=no-self-use ############################################################# # Copyright (c) 2021-2021 Maurice Karrenbrock ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 15390, 8841, 198, 2, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 39605, 12, 3672, 198, 2, 279, 2645, 600, 25, 15560, ...
2.348148
270