content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import Location,Category,Image def index(request): '''Main view function for the start page''' images = Image.get_images() template = loader.get_template('index.html') context = { ...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 28243, 1330, 40213, 198, 6738, 764, 27530, 1330, 13397, 11, 27313, 11, 5159, 198, 198, 4299, 6376, ...
2.7154
513
x = (input("enters hours")) y = (input("enters rate")) def compute_pay(hours, rate): """The try block ensures that the user enters a value between from 0-1 otherwise an error message pops up""" try: hours = float(x) rate = float(y) if hours <= 40: pay= float(hours * rate...
[ 87, 796, 357, 15414, 7203, 298, 364, 2250, 48774, 198, 88, 796, 357, 15414, 7203, 298, 364, 2494, 48774, 628, 198, 4299, 24061, 62, 15577, 7, 24425, 11, 2494, 2599, 198, 220, 220, 220, 37227, 464, 1949, 2512, 19047, 326, 262, 2836, ...
2.303167
221
# import argparse # # # def main(audio_path, textgrid_path, output_path): # data = list() # for # print(1) # # if __name__ == "__main__": # # -------------MENU-------------- # # # command line arguments # parser = argparse.ArgumentParser() # parser.add_argument("audio_path", help="The path t...
[ 2, 1330, 1822, 29572, 198, 2, 198, 2, 198, 2, 825, 1388, 7, 24051, 62, 6978, 11, 2420, 25928, 62, 6978, 11, 5072, 62, 6978, 2599, 198, 2, 220, 220, 220, 220, 1366, 796, 1351, 3419, 198, 2, 220, 220, 220, 220, 329, 198, 2, 220,...
2.683761
234
import phonenumbers from phonenumbers import geocoder, carrier if __name__ == '__main__': numbers = input("Please Enter The Target Number : ") get_information_about_number(numbers)
[ 11748, 32896, 268, 17024, 201, 198, 6738, 32896, 268, 17024, 1330, 4903, 420, 12342, 11, 11920, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 3146, 796, 5128...
2.955224
67
# TODO: 1. Add indicator that node should be run by python # line above indicates that python is responsible for running this node import os import csv import rospy import numpy as np import pygame from utilities import pipline import cv2 from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Im...
[ 2, 16926, 46, 25, 352, 13, 3060, 16916, 326, 10139, 815, 307, 1057, 416, 21015, 198, 198, 2, 1627, 2029, 9217, 326, 21015, 318, 4497, 329, 2491, 428, 10139, 198, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 686, 2777, 88, ...
3.048148
270
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-01 23:04 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2864, 12, 2999, 12, 486, 2242, 25, 3023, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738,...
2.754717
53
import logging import os import json import requests try: from alerta.plugins import app # alerta >= 5.0 except ImportError: from alerta.app import app # alerta < 5.0 from alerta.plugins import PluginBase LOG = logging.getLogger('alerta.plugins.beacon') BEACON_HEADERS = { 'Content-Type': 'applicati...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 7007, 198, 28311, 25, 198, 220, 220, 220, 220, 220, 422, 7995, 64, 13, 37390, 1330, 598, 220, 1303, 7995, 64, 18189, 642, 13, 15, 198, 16341, 17267, 12331, 25, 198, 220, ...
1.872727
550
"""The abstract class module for all hosts.""" # Standard Library Imports from abc import ABC, abstractmethod, abstractclassmethod # Third Party Imports # Local Application Imports from util.helpers import get_typeof_repo_names from util.message import Message def __init_subclass__(cls, *args, **kwargs): ...
[ 37811, 464, 12531, 1398, 8265, 329, 477, 11453, 526, 15931, 198, 2, 8997, 10074, 1846, 3742, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 11, 12531, 4871, 24396, 198, 198, 2, 10467, 3615, 1846, 3742, 198, 198, 2, 10714, 15678, 18...
2.370629
572
from sqlalchemy import ( Column, Integer, String, DateTime, ) from .models import Base
[ 6738, 44161, 282, 26599, 1330, 357, 198, 220, 220, 220, 29201, 11, 198, 220, 220, 220, 34142, 11, 198, 220, 220, 220, 10903, 11, 198, 220, 220, 220, 7536, 7575, 11, 198, 8, 198, 6738, 764, 27530, 1330, 7308 ]
2.615385
39
from nonebot import on_command, CommandSession,permission as perm import asyncio import traceback from helper import getlogger,msgSendToBot,CQsessionToStr,data_read,data_save from module.roll import match_roll logger = getlogger(__name__) __plugin_name__ = 'ROLL' __plugin_usage__ = r""" roll """ # # on_command
[ 6738, 4844, 13645, 1330, 319, 62, 21812, 11, 9455, 36044, 11, 525, 3411, 355, 9943, 198, 11748, 30351, 952, 198, 11748, 12854, 1891, 198, 6738, 31904, 1330, 651, 6404, 1362, 11, 19662, 25206, 2514, 20630, 11, 34, 48, 29891, 2514, 13290,...
3.038835
103
import time import requests # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["5", [1, 2], "sum"]).text) print(f"Time spent: {round(time.time() - cur, 2)} secs.") # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["1", [0, 2], "max"])....
[ 11748, 640, 198, 11748, 7007, 198, 198, 2, 367, 29281, 36123, 198, 22019, 796, 640, 13, 2435, 3419, 198, 4798, 7, 8897, 3558, 13, 7353, 7203, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 33942, 14, 1820, 12, 67, 363, 1600, 33918...
2.4
160
# Generated by Django 3.0.5 on 2020-04-26 09:09 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 3023, 12, 2075, 7769, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import os import os.path import logging import sys import IValidator import re sys.path.append(os.path.abspath(os.path.join('0', '../extensions'))) from extensions_logging import logmyerror
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 314, 47139, 1352, 198, 11748, 302, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, ...
3.114754
61
from django.contrib import admin from psmate.models import News admin.site.register(News, BlogAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 279, 5796, 378, 13, 27530, 1330, 3000, 628, 198, 28482, 13, 15654, 13, 30238, 7, 9980, 11, 14001, 46787, 8, 628 ]
3.354839
31
# coding:utf-8 import re from Helper.common import *
[ 2, 19617, 25, 40477, 12, 23, 198, 11748, 302, 198, 6738, 5053, 525, 13, 11321, 1330, 1635, 628, 628, 628, 198 ]
2.809524
21
while True : n = int(input()) if n == 0 : break else : arr = input().split() check = True for i in range(n) : if int(arr[int(arr[i]) - 1]) != i + 1 : check = False if check : print('ambiguous') else : print('...
[ 4514, 6407, 1058, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 611, 299, 6624, 657, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 2073, 1058, 198, 220, 220, 220, 220, 220, 220, ...
1.830601
183
"""Add-On functions for speech interface.""" from __future__ import annotations from typing import TYPE_CHECKING, List from voiceassistant.addons.create import Addon, CoreAttribute, addon_begin, addon_end from voiceassistant.exceptions import IntegrationError from .base import Integration if TYPE_CHECKING: fro...
[ 37811, 4550, 12, 2202, 5499, 329, 4046, 7071, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 7343, 198, 198, 6738, 3809, 562, 10167, 13, 39996, 13, 17953, 1330, 3060,...
3.031579
285
from math import cos, sin import numpy as np import tensorflow as tf from .....simulator import Agent # from simulator import Agent tf.set_random_seed(1234)
[ 6738, 10688, 1330, 8615, 11, 7813, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11485, 986, 14323, 8927, 1330, 15906, 198, 2, 422, 35375, 1330, 15906, 198, 198, 27110, 13, 2617, 62, 2512...
3.333333
48
from __future__ import print_function import os import sys from errno import ENOENT from os.path import dirname, abspath, join, isdir from setuptools import setup, find_packages from distutils.command.upload import upload from pywincffi import __version__ try: WindowsError except NameError: WindowsError = ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 11454, 3919, 1330, 12964, 46, 3525, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 2352, 6978, 11, 4654, 11, 318, 15908, 198, 198, ...
2.66242
785
import shutil with open('test.csv', 'r') as f: lines = f.readlines() for line in lines: image, gender = line.split(",") print(image) if 'female' in gender: shutil.move("test/" + image, "test/female/" + image) else: shutil.move("test/" + image, "test/male/...
[ 11748, 4423, 346, 198, 198, 4480, 1280, 10786, 9288, 13, 40664, 3256, 705, 81, 11537, 355, 277, 25, 198, 220, 220, 220, 3951, 796, 277, 13, 961, 6615, 3419, 198, 220, 220, 220, 329, 1627, 287, 3951, 25, 198, 220, 220, 220, 220, 22...
2.149351
154
import random from helpers import Leaf, Rect, RoomList from renderer import MapRenderer from typing import List, Any room_list = RoomList() tree = BSPTree().generateLevel(64, 128, room_list) MapRenderer(tree).render_map() print(room_list.get_rooms()[5].get_random_point_in_room())
[ 11748, 4738, 198, 6738, 49385, 1330, 14697, 11, 48599, 11, 10096, 8053, 198, 6738, 9851, 11882, 1330, 9347, 49, 437, 11882, 198, 6738, 19720, 1330, 7343, 11, 4377, 628, 198, 198, 3823, 62, 4868, 796, 10096, 8053, 3419, 198, 21048, 796, ...
3.010526
95
# This an autogenerated file # # Generated with CRSAxialFrictionModel from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.crsaxialfrictionmodel import CRSAxialFrictionModelBlueprint from typing import Dict from sima.sima.moao import MOAO from sima.si...
[ 2, 770, 281, 1960, 519, 877, 515, 2393, 198, 2, 220, 198, 2, 2980, 515, 351, 8740, 4090, 87, 498, 37, 46214, 17633, 198, 6738, 19720, 1330, 360, 713, 11, 44015, 594, 11, 8053, 198, 6738, 288, 16762, 13, 26858, 1330, 20885, 198, 67...
3.290909
110
# import Drop7.Board as Board import Drop7.Disk as Disk def test_Is_Proper_Disk__Legal_Case(score, max_score): """Function is_proper_disk: given disk is proper disk.""" max_score.value += 1 try: assert Disk.is_proper_disk(4, Disk.init_disk(Disk.VISIBLE, 4)) assert Disk.is_proper_disk(4, Dis...
[ 2, 1330, 14258, 22, 13, 29828, 355, 5926, 198, 11748, 14258, 22, 13, 40961, 355, 31664, 198, 198, 4299, 1332, 62, 3792, 62, 2964, 525, 62, 40961, 834, 38263, 62, 20448, 7, 26675, 11, 3509, 62, 26675, 2599, 198, 220, 220, 220, 37227,...
2.184979
1,438
#!/usr/bin/python3 # Filename: maxSonarTTY.py # Reads serial data from Maxbotix ultrasonic rangefinders # Gracefully handles most common serial data glitches # Use as an importable module with "import MaxSonarTTY" # Returns an integer value representing distance to target in millimeters from time import time from ser...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 7066, 12453, 25, 3509, 31056, 283, 51, 9936, 13, 9078, 198, 198, 2, 4149, 82, 11389, 1366, 422, 5436, 13645, 844, 23212, 30189, 2837, 19796, 364, 198, 2, 16156, 2759, 17105, 749, 221...
3.852273
88
import sys import os import io import gzip import mock import tempfile import lumbermill.utils.DictUtils as DictUtils from tests.ModuleBaseTestCase import ModuleBaseTestCase from lumbermill.output import File
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 308, 13344, 198, 11748, 15290, 198, 11748, 20218, 7753, 198, 11748, 34840, 17805, 13, 26791, 13, 35, 713, 18274, 4487, 355, 360, 713, 18274, 4487, 198, 198, 6738, 5254, 13, ...
3.62069
58
#!/usr/bin/env python3 import argparse import pickle import time import sys from safe_gpu.safe_gpu import GPUOwner from pero_ocr.decoding import confusion_networks from pero_ocr.decoding.decoding_itf import prepare_dense_logits, construct_lm, get_ocr_charset, BLANK_SYMBOL import pero_ocr.decoding.decoders as decoder...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 2298, 293, 198, 11748, 640, 198, 11748, 25064, 198, 198, 6738, 3338, 62, 46999, 13, 21230, 62, 46999, 1330, 11362, 42419, 198, 198, 6738, 583, ...
2.775862
174
""" An in-memory content store with exact matching""" import time from PiCN.Packets import Content, Name from PiCN.Layers.ICNLayer.ContentStore import BaseContentStore, ContentStoreEntry
[ 37811, 1052, 287, 12, 31673, 2695, 3650, 351, 2748, 12336, 37811, 198, 198, 11748, 640, 198, 198, 6738, 13993, 44175, 13, 11869, 1039, 1330, 14041, 11, 6530, 198, 6738, 13993, 44175, 13, 43, 6962, 13, 2149, 32572, 2794, 13, 19746, 22658...
3.8
50
from django_slack_oauth.models import SlackOAuthRequest
[ 6738, 42625, 14208, 62, 6649, 441, 62, 12162, 1071, 13, 27530, 1330, 36256, 23621, 1071, 18453 ]
3.4375
16
from django.forms import ModelForm # class add_money_form(ModelForm): # class Meta: # model = Transaction # fields = ['transaction_user_2', 'transaction_amount']
[ 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 628, 198, 198, 2, 1398, 751, 62, 26316, 62, 687, 7, 17633, 8479, 2599, 198, 2, 220, 220, 220, 220, 1398, 30277, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 45389,...
2.605634
71
""" 1429. First Unique Number # https://leetcode.ca/all/1429.html You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUnique(int[] nums) Initializes the object with the numbers in the queue. int showFirstUnique() returns the value of the f...
[ 37811, 198, 198, 1415, 1959, 13, 3274, 30015, 7913, 198, 198, 2, 3740, 1378, 293, 316, 8189, 13, 6888, 14, 439, 14, 1415, 1959, 13, 6494, 198, 198, 1639, 423, 257, 16834, 286, 37014, 11, 345, 761, 284, 19818, 262, 717, 3748, 18253, ...
2.323175
1,575
import os from get_git.utils import make_request GH_URL = 'https://api.github.com/graphql' TOKEN=os.environ.get('GH_API_TOKEN')
[ 11748, 28686, 198, 198, 6738, 651, 62, 18300, 13, 26791, 1330, 787, 62, 25927, 198, 198, 17511, 62, 21886, 796, 705, 5450, 1378, 15042, 13, 12567, 13, 785, 14, 34960, 13976, 6, 198, 10468, 43959, 28, 418, 13, 268, 2268, 13, 1136, 10...
2.54902
51
from __future__ import division, print_function, unicode_literals from config import * __all__ = ['Map', 'Vertex', 'Edge', 'State'] class Edge: def __init__(self): self._port = [State.FREE, State.FREE, State.FREE] self._num_cards = 0 self._contact_number = 0 def u...
[ 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 201, 198, 201, 198, 6738, 4566, 1330, 1635, 201, 198, 201, 198, 834, 439, 834, 796, 37250, 13912, 3256, 705, 13414, 16886, 3256, 705, ...
2.014821
4,993
import numpy as np import scipy.stats
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 34242, 628, 628 ]
2.928571
14
import pandas as pd import numpy as np LOCAL_DIR = '/tmp/' if __name__ == '__main__': main()
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 29701, 1847, 62, 34720, 796, 31051, 22065, 14, 6, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, ...
2.348837
43
""" Holds an OrgChecker object that runs checks at the organization level (instead of at the item level) """
[ 37811, 198, 39, 10119, 281, 1471, 70, 9787, 263, 2134, 326, 4539, 8794, 379, 262, 4009, 1241, 357, 38070, 286, 379, 262, 2378, 1241, 8, 198, 37811, 628 ]
3.928571
28
#!/usr/bin/python3 from datetime import datetime import sys if __name__ == '__main__': if len(sys.argv): create_blog_post(sys.argv[1]) else: create_blog_post()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 25...
2.133333
90
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2017 The Procyon Authors # # 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 # # Un...
[ 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, 198, 2, 15069, 2177, 383, 1041, 948, 261, 46665, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 3...
2.724858
527
from allennlp.common import Registrable import torch # Losses = Dict[str, Dict[str, Union[float, Loss]]]
[ 6738, 477, 1697, 34431, 13, 11321, 1330, 13811, 81, 540, 198, 11748, 28034, 628, 198, 2, 22014, 274, 796, 360, 713, 58, 2536, 11, 360, 713, 58, 2536, 11, 4479, 58, 22468, 11, 22014, 11907, 60, 198 ]
2.891892
37
# Form implementation generated from reading ui file 'generator.ui' # # Created by: PyQt6 UI code generator 6.2.2 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets
[ 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 8612, 1352, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 21, 12454, 2438, 17301, 718, 13, 17, 13, 17, 198, 2, 198, 2, 39410, 25, 4377, 10107, 2458, 925, 284, 42...
3.263158
95
# Sportradar APIs # Copyright 2018 John W. Miller # See LICENSE for details. from sportradar.api import API
[ 2, 12771, 6335, 283, 23113, 198, 2, 15069, 2864, 1757, 370, 13, 7920, 198, 2, 4091, 38559, 24290, 329, 3307, 13, 198, 198, 6738, 6332, 6335, 283, 13, 15042, 1330, 7824, 628, 198 ]
3.363636
33
import torch import os from torch import Tensor import torch.nn as nn from fairseq import options, utils, checkpoint_utils from fairseq.dataclass import ChoiceEnum, FairseqDataclass from fairseq.models import ( transformer, FairseqLanguageModel, register_model, register_model_architecture, FairseqEn...
[ 11748, 28034, 198, 11748, 28686, 198, 6738, 28034, 1330, 309, 22854, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 3148, 41068, 1330, 3689, 11, 3384, 4487, 11, 26954, 62, 26791, 198, 6738, 3148, 41068, 13, 19608, 330, 31172, 13...
3.299363
157
from .ensembl import Ensembl from .util import is_ensembl_id ########## ## Exon ## ########## ########## ## Gene ## ########## ############# ## Protein ## ############# ################# ## Transcripts ## ################# ##################### ## Query functions ## #####################
[ 6738, 764, 1072, 2022, 75, 1330, 2039, 4428, 75, 198, 6738, 764, 22602, 1330, 318, 62, 1072, 2022, 75, 62, 312, 628, 198, 7804, 2235, 198, 2235, 1475, 261, 22492, 198, 7804, 2235, 628, 628, 198, 198, 7804, 2235, 198, 2235, 13005, 22...
3.444444
90
from MiGRIDS.InputHandler.readCsv import readCsv def readAllTimeSeries(inputDict): ''' Cycles through a list of files in the AVEC format and imports them into a single dataframe. :param inputDict: :return: pandas.DataFrame with data from all input files. ''' df = None for i in range(len(inp...
[ 6738, 13756, 10761, 14255, 13, 20560, 25060, 13, 961, 34, 21370, 1330, 1100, 34, 21370, 198, 198, 4299, 1100, 3237, 7575, 27996, 7, 15414, 35, 713, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 5934, 5427, 832, 257, 1351, ...
2.199605
506
import algosdk as ag import pyteal as tl import pytest from algosdk.future.transaction import OnComplete from algosdk.v2client.algod import AlgodClient from algosdk.v2client.models.application_local_state import ApplicationLocalState from algosdk.v2client.models.application_state_schema import ApplicationStateSchema f...
[ 11748, 435, 70, 418, 34388, 355, 556, 198, 11748, 12972, 660, 282, 355, 256, 75, 198, 11748, 12972, 9288, 198, 6738, 435, 70, 418, 34388, 13, 37443, 13, 7645, 2673, 1330, 1550, 20988, 198, 6738, 435, 70, 418, 34388, 13, 85, 17, 1636...
3.045752
153
# Copyright (c) 2021 Kemal Kurniawan from typing import Optional import math from einops import rearrange from torch import BoolTensor, Tensor from crf import DepTreeCRF, LinearCRF def compute_ambiguous_arcs_mask( scores: Tensor, threshold: float = 0.95, projective: bool = False, multiroot: bool =...
[ 2, 15069, 357, 66, 8, 33448, 24854, 282, 509, 700, 544, 8149, 198, 198, 6738, 19720, 1330, 32233, 198, 11748, 10688, 198, 198, 6738, 304, 259, 2840, 1330, 37825, 858, 198, 6738, 28034, 1330, 347, 970, 51, 22854, 11, 309, 22854, 198, ...
2.695035
282
from __future__ import unicode_literals from django.db import models from django.contrib.postgres.fields.jsonb import JSONField from django.core.exceptions import ValidationError import datapackage import jsontableschema from ledger.accounts.models import RevisionedMixin, EmailUser from wildlifelicensing.apps.main.m...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 13, 17752, 65, 1330, 19449, 15878, 198, 6738, 42625, 142...
3.603604
111
import os import json import logging cwd = os.getcwd() list_enemy = [file for file in os.listdir(cwd) if '.json' in file[-5:]] for enemy in list_enemy: try: with open(cwd + '\\' + enemy, 'r') as f: enemy_txt = f.read() enemy_txt = enemy_txt.replace('offsetx','offsetX')....
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 66, 16993, 796, 28686, 13, 1136, 66, 16993, 3419, 198, 198, 4868, 62, 46970, 796, 685, 7753, 329, 2393, 287, 28686, 13, 4868, 15908, 7, 66, 16993, 8, 611, 45302, 17752, 6, ...
2.283019
265
from tvm import testing from tvm from tvm import topi import tvm import numpy as np import torch dim0 = 3 dim1 = 4 dim2 = 1 shape_size1 = [dim0, dim1, dim2] shape_size2 = [dim0, dim1, dim2 * 8] dtype = "float32" cap0 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap0") cap1 = tvm.te.placeholder(shape_size1, ...
[ 6738, 256, 14761, 1330, 4856, 198, 6738, 256, 14761, 422, 256, 14761, 1330, 1353, 72, 198, 11748, 256, 14761, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 28034, 198, 198, 27740, 15, 796, 513, 198, 27740, 16, 796, 604, 198, 27...
1.949876
2,813
from controle_de_estoque.controllers import controllers if __name__ == "__main__": controllers.principal_controle()
[ 6738, 1246, 293, 62, 2934, 62, 395, 78, 4188, 13, 3642, 36667, 1330, 20624, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 20624, 13, 1050, 1939, 8521, 62, 3642, 18090, 3419, 198 ]
3.025
40
from .connector import websocket_connector, http_connector
[ 6738, 764, 8443, 273, 1330, 2639, 5459, 62, 8443, 273, 11, 2638, 62, 8443, 273, 628 ]
3.75
16
# # PySNMP MIB module CISCO-IETF-PW-FR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-PW-FR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:43:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 36159, 8220, 12, 40, 22274, 12, 47, 54, 12, 10913, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, ...
2.322117
4,101
import sys from os import path from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc if __name__ == '__main__': app = qtw.QApplication(sys.argv) # it's required to save a reference to MainWindow. # if it goes out of scope, it will be destroyed. mw = MainWin...
[ 11748, 25064, 198, 6738, 28686, 1330, 3108, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 355, 10662, 4246, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 8205, 72, 355, 10662, 25297, 198, 6738, 9485, 48, 83, 20, 1330, 3...
2.659091
132
import tools import frameworks
[ 11748, 4899, 198, 11748, 29251, 198 ]
5.166667
6
#!/usr/bin/env python # -*- coding: utf-8 -*- # (soldiers_pack) from data.items import * #---- # . squad_generation metadict_chars = {} #---- # ( ): metadict_chars['Commoner 1 lvl (recruit)'] = { # . # : # 100 100 = 100 , 30 . # 200 100 = 100 . # 5...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 220, 220, 357, 24120, 3183, 62, 8002, 8, 198, 6738, 1366, 13, 23814, 1330, 1635, 198, 198, 2, 650, 198...
1.917085
221,252
import numpy as np import scipy as sp import scipy.stats import matplotlib.pyplot as plt if __name__ == '__main__': main()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 355, 599, 198, 11748, 629, 541, 88, 13, 34242, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, ...
2.607843
51
# # PySNMP MIB module CIRCUIT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIRCUIT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:49:40 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 327, 4663, 43633, 2043, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67, 615, 4756...
3.137084
11,927
# -*- coding:utf-8 -*- # author: hpf # create time: 2020/7/16 21:33 # file: shell_sort.py # IDE: PyCharm # (Shell Sort) # DLShell1959 # 1 if __name__ == '__main__': li = [34, 2, 13, 76, 54, 22, 90, 46, 13] print(li) shell_sort(li) print(li) # # # O(n2) #
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 1772, 25, 27673, 69, 198, 2, 2251, 640, 25, 12131, 14, 22, 14, 1433, 2310, 25, 2091, 198, 2, 2393, 25, 7582, 62, 30619, 13, 9078, 198, 2, 33497, 25, 9485, 1925, 16...
1.944444
144
import unittest import srl from srl.test import TestRL if __name__ == "__main__": unittest.main(module=__name__, defaultTest="Test.test_verify_Pendulum", verbosity=2) # unittest.main(module=__name__, defaultTest="TestGrid.test_verify_Grid_naive", verbosity=2)
[ 11748, 555, 715, 395, 198, 198, 11748, 19677, 75, 198, 6738, 19677, 75, 13, 9288, 1330, 6208, 7836, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 7, 21412, 28, ...
2.6
105
if __name__ == "__main__": a = [2,2,3,7,5,7,7,7,4,7,2,7,4,5,6,7,7,8,6,7,7,8,10,12,29,30,19,10,7,7,7,7,7,7,7,7,7] print(find_majority(a))
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 257, 796, 685, 17, 11, 17, 11, 18, 11, 22, 11, 20, 11, 22, 11, 22, 11, 22, 11, 19, 11, 22, 11, 17, 11, 22, 11, 19, 11, 20, 11, 21, 11...
1.386792
106
# Completely silly exercises, in real life use: # Python lists: https://docs.python.org/3/tutorial/datastructures.html import unittest import logging logging.basicConfig(level=logging.INFO) # - DoublyLinkedListNode class. #-## # - DoublyLinkedList class. # Search method not included, has its own category. #-## #...
[ 2, 13248, 306, 14397, 13565, 11, 287, 1103, 1204, 779, 25, 198, 2, 11361, 8341, 25, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 18, 14, 83, 44917, 14, 19608, 459, 1356, 942, 13, 6494, 198, 198, 11748, 555, 715, 395, 198, 11748, 18...
2.798658
149
import socket import threading bind_ip = "0.0.0.0" bind_port = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((bind_ip, bind_port)) server.listen(5) print "[*] Listening on %s:%d" % (bind_ip, bind_port) # This is our client-handling thread while True: client, addr = ser...
[ 11748, 17802, 220, 198, 11748, 4704, 278, 198, 198, 21653, 62, 541, 796, 366, 15, 13, 15, 13, 15, 13, 15, 1, 198, 21653, 62, 634, 796, 860, 17032, 198, 198, 15388, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 1...
2.216028
287
import setuptools import site import sys # This is a workaround to allow --user and -e combined # See https://github.com/pypa/pip/issues/7953 site.ENABLE_USER_SITE = "--user" in sys.argv[1:] setuptools.setup()
[ 11748, 900, 37623, 10141, 198, 11748, 2524, 198, 11748, 25064, 198, 2, 770, 318, 257, 46513, 284, 1249, 1377, 7220, 290, 532, 68, 5929, 198, 2, 4091, 3740, 1378, 12567, 13, 785, 14, 79, 4464, 64, 14, 79, 541, 14, 37165, 14, 3720, ...
2.8
75
#Guess program n=18 a=0 y = 1 print("Number of guesses is limited to only 4 times") while a<=3: z=int(input("Enter your choice=")) if z>n: print("Please less your number") a+=1 elif z<n: print("Please increase your number") a += 1 else: print("You win") ...
[ 2, 8205, 408, 1430, 198, 198, 77, 28, 1507, 198, 64, 28, 15, 198, 88, 796, 352, 198, 4798, 7203, 15057, 286, 44774, 318, 3614, 284, 691, 604, 1661, 4943, 198, 4514, 257, 27, 28, 18, 25, 198, 220, 220, 220, 1976, 28, 600, 7, 15...
2.198113
212
""" .. module:: soundsystem :Platform: Unix, Windows :Synopsis: Sound system """ import os import pygame import events import ai
[ 37811, 198, 492, 8265, 3712, 2128, 10057, 198, 220, 220, 1058, 37148, 25, 33501, 11, 3964, 198, 220, 220, 1058, 49771, 25, 9506, 1080, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 12972, 6057, 198, 198, 11748, 2995, 198, 11748, 257, ...
3.238095
42
# -*- coding=utf-8 -*- import django import os import sys import datetime import random import time os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings' django.setup() from web.other.models import BilibiliPlay from .helper import bulk_create if __name__ == '__main__': BilibiliPlay.objects.all().delete() ...
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 628, 198, 11748, 42625, 14208, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4818, 8079, 198, 11748, 4738, 198, 11748, 640, 198, 198, 418, 13, 268, 2268, 17816, 35028, 1565, 1...
2.475806
248
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 15269, 685, 10531, 12, 5539, 60, 17228, 9148, 12, 22030, 16024, 259, 18982, 873, 5136, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15...
2.435811
1,480
import json from django.urls import reverse from misago.acl.testutils import override_acl from misago.categories.models import Category from misago.threads import testutils from misago.users.testutils import AuthenticatedUserTestCase
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 2984, 3839, 13, 37779, 13, 9288, 26791, 1330, 20957, 62, 37779, 198, 6738, 2984, 3839, 13, 66, 26129, 13, 27530, 1330, 21743, 198, 6738, 2984, 3839, ...
3.761905
63
#!usr/bin/python import __main__
[ 2, 0, 14629, 14, 8800, 14, 29412, 198, 11748, 11593, 12417, 834, 198 ]
2.538462
13
#Helper method that implements the logic to look up an application.
[ 1303, 47429, 2446, 326, 23986, 262, 9156, 284, 804, 510, 281, 3586, 13 ]
5.230769
13
import os import re import time import demisto_client from demisto_client.demisto_api.rest import ApiException from demisto_sdk.commands.common.tools import LOG_COLORS, get_yaml, print_color from demisto_sdk.commands.upload.uploader import Uploader SUCCESS_RETURN_CODE = 0 ERROR_RETURN_CODE = 1 ENTRY_TYPE_ERROR = 4
[ 11748, 28686, 198, 11748, 302, 198, 11748, 640, 198, 198, 11748, 1357, 396, 78, 62, 16366, 198, 6738, 1357, 396, 78, 62, 16366, 13, 9536, 396, 78, 62, 15042, 13, 2118, 1330, 5949, 72, 16922, 198, 198, 6738, 1357, 396, 78, 62, 21282,...
2.735043
117
# Generated by Django 3.1.1 on 2020-10-24 14:38 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 940, 12, 1731, 1478, 25, 2548, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from datetime import datetime, timezone from flycs_sdk.entities import Entity from flycs_sdk.pipelines import Pipeline, PipelineKind from flycs_sdk.transformations import Transformation # Define your transformation SQL query using jinja template for the table name and define the list of table on which this transforma...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 198, 6738, 6129, 6359, 62, 21282, 74, 13, 298, 871, 1330, 20885, 198, 6738, 6129, 6359, 62, 21282, 74, 13, 79, 541, 20655, 1330, 37709, 11, 37709, 35854, 198, 6738, 6129, 6359, ...
2.783784
370
import torch.nn.functional as F import torch.nn as nn import torch import torchvision.transforms.functional as VF from PIL import Image import numpy as np import os from os.path import join from collections import Counter # device = torch.device("cuda" if torch.cuda.is_available() else "cpu") import math from ct...
[ 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 198, 198, 11748, 28034, 10178, 13, 7645, 23914, 13, 45124, 355, 569, 37, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 117...
1.996247
4,530
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-09 09:43 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 16, 319, 2177, 12, 486, 12, 2931, 7769, 25, 3559, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.736842
57
import pytry import os import random import nengo import nengo_extras import numpy as np import nengo_dl import tensorflow as tf import davis_tracking
[ 11748, 12972, 28311, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 299, 1516, 78, 198, 11748, 299, 1516, 78, 62, 2302, 8847, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 1516, 78, 62, 25404, 198, 11748, 11192, 273, 11125, 355...
3.06
50
""" ... """ # Django from django.conf import settings # local Django from apps.collection.models import Collection from apps.collection.serializers import CollectionSlugSerializer from apps.tests.fixtures import RepositoryTestCase PAGE_SIZE = settings.REST_FRAMEWORK["PAGE_SIZE"]
[ 37811, 198, 986, 198, 37811, 198, 198, 2, 37770, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 2, 1957, 37770, 198, 6738, 6725, 13, 43681, 13, 27530, 1330, 12251, 198, 6738, 6725, 13, 43681, 13, 46911, 11341, 1330, 12251, ...
3.518519
81
import argparse import logging import os from src.train import setup_top20, setup_ft, setup_bottom logging.basicConfig(level=logging.INFO) logger = logging.getLogger('fashion') if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-d", "--data", help="path to the dataset", require...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 12351, 13, 27432, 1330, 9058, 62, 4852, 1238, 11, 9058, 62, 701, 11, 9058, 62, 22487, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 10778, 8, ...
2.807692
234
#!/usr/bin/env python2.7 """ Toil script to move TCGA data into an S3 bucket. Dependencies Curl: apt-get install curl Docker: wget -qO- https://get.docker.com/ | sh Toil: pip install toil S3AM: pip install --pre s3am """ import argparse import glob import hashlib import os import shutil import su...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 37811, 198, 2514, 346, 4226, 284, 1445, 17283, 9273, 1366, 656, 281, 311, 18, 19236, 13, 198, 198, 35, 2690, 3976, 198, 34, 6371, 25, 220, 220, 220, 220, 220, 220, 1540...
2.20978
3,313
import time import pytest from elasticapm.utils import compat cpu_psutil = pytest.importorskip("elasticapm.metrics.sets.cpu_psutil") pytestmark = pytest.mark.psutil cpu_linux = pytest.importorskip("elasticapm.metrics.sets.cpu_linux")
[ 11748, 640, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 27468, 499, 76, 13, 26791, 1330, 8330, 198, 198, 36166, 62, 862, 22602, 796, 12972, 9288, 13, 11748, 669, 74, 541, 7203, 417, 3477, 499, 76, 13, 4164, 10466, 13, 28709, 13, 3...
2.707865
89
""" Day 11 - Seating """ from itertools import chain import collections if __name__ == '__main__': # Part one: # result = part_one() # print(f'Result {result}') result = part_two() print(f'Result {result}')
[ 37811, 198, 12393, 1367, 532, 1001, 803, 198, 37811, 198, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 11748, 17268, 628, 628, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 214...
2.569892
93
from scrapy.pipelines.files import FilesPipeline
[ 6738, 15881, 88, 13, 79, 541, 20655, 13, 16624, 1330, 13283, 47, 541, 4470, 628, 628, 628 ]
3.176471
17
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 33160, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
2.107527
1,302
# coding: utf-8 import flask from google.appengine.ext import ndb import auth import config import model from main import app ############################################################################### # Welcome ############################################################################### ################...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 42903, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198, 198, 11748, 6284, 198, 11748, 4566, 198, 11748, 2746, 198, 198, 6738, 1388, 1330, 598, 628, 198, 29113, 29113, ...
7.086022
93
from transformers import AlbertModel from transformers import AlbertPreTrainedModel import torch.nn as nn import torch import torch.nn.functional as F
[ 6738, 6121, 364, 1330, 9966, 17633, 198, 6738, 6121, 364, 1330, 9966, 6719, 2898, 1328, 17633, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628 ]
4.026316
38
# STRINGS # https://docs.python.org/3/tutorial/introduction.html#strings s = str(42) s # convert another data type into a string (casting) s = 'I like you' # examine a string s[0] # returns 'I' len(s) # returns 10 # string slicing like lists s[0:7] # returns 'I like ' s[6:] # returns 'you' s[-1] # returns...
[ 2, 19269, 20754, 198, 2, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 18, 14, 83, 44917, 14, 27427, 596, 13, 6494, 2, 37336, 198, 198, 82, 796, 965, 7, 3682, 8, 198, 198, 82, 220, 1303, 10385, 1194, 1366, 2099, 656, 257, 4731, 35...
2.716628
427
from __future__ import absolute_import, division, print_function __metaclass__ = type import errno import six import socket import ssl from abc import ABCMeta, abstractmethod import logging from threading import RLock from ssl import SSLError import datetime import time from . import compat from .proto import Frame f...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 834, 4164, 330, 31172, 834, 796, 2099, 198, 11748, 11454, 3919, 198, 11748, 2237, 198, 11748, 17802, 198, 11748, 264, 6649, 198, 6738, 450, 66, 13...
2.395408
1,960
import random import time #list of words words = ("python", "india", "japan", "mother", "computer", "watch", "keyboard", "compass", "bottle", "monitor", "switch", "shoes", "chain", "mobile", "coffee", "alfredo", "mouse", "stomach", "tablet", "mojito", "halapeneos", "pizza", "nutella", "peanut", "broccoli") n = 0 #d...
[ 11748, 4738, 198, 11748, 640, 198, 198, 2, 4868, 286, 2456, 198, 10879, 796, 5855, 29412, 1600, 366, 521, 544, 1600, 366, 73, 2674, 1600, 366, 13552, 1600, 366, 33215, 1600, 366, 8340, 1600, 366, 2539, 3526, 1600, 366, 5589, 562, 1600...
2.49294
779
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.urls import path from . import views app_name = 'tracking' urlpatterns = [ path('user/login/', views.list_user_login, name='listu...
[ 2, 220, 347, 538, 36703, 40342, 198, 2, 220, 15069, 357, 66, 8, 1584, 12, 1238, 2481, 25910, 571, 380, 23555, 198, 2, 220, 13789, 25, 4091, 38559, 24290, 2393, 393, 3740, 1378, 12567, 13, 785, 14, 42, 349, 571, 380, 50, 14191, 14,...
2.972093
215
from django.conf import settings default_settings = { 'has_module_permission_false': False, } ADMIN_LOG_ENTRIES_SETTINGS = {} compute_settings()
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 12286, 62, 33692, 796, 1391, 198, 220, 220, 220, 705, 10134, 62, 21412, 62, 525, 3411, 62, 9562, 10354, 10352, 11, 198, 92, 198, 198, 2885, 23678, 62, 25294, 62, 3525, 7112, 1546, ...
2.732143
56
from lwrl.optimizers import MetaOptimizer
[ 6738, 300, 18351, 75, 13, 40085, 11341, 1330, 30277, 27871, 320, 7509, 628 ]
3.307692
13
from saef.connections import ConnectionFormHelper from ..models import Connection from ..forms import ConnectionTypeForm from saefportal.settings import MSG_SUCCESS_CONNECTION_UPDATE, MSG_SUCCESS_CONNECTION_VALID, \ MSG_ERROR_CONNECTION_INVALID, MSG_SUCCESS_CONNECTION_SAVED, MSG_ERROR_CONNECTION_SELECT_INVALID, \ ...
[ 6738, 473, 891, 13, 8443, 507, 1330, 26923, 8479, 47429, 198, 6738, 11485, 27530, 1330, 26923, 198, 6738, 11485, 23914, 1330, 26923, 6030, 8479, 198, 198, 6738, 473, 891, 634, 282, 13, 33692, 1330, 49064, 62, 12564, 4093, 7597, 62, 1094...
3.018382
272
import os import pydicom import glob import numpy as np import nibabel as nib from skimage import filters, morphology from scipy.ndimage.morphology import binary_fill_holes from scipy.ndimage import label from dipy.segment.mask import median_otsu def padvolume(volume): "Applies a padding/cropping to a volume in or...
[ 11748, 28686, 198, 11748, 279, 5173, 291, 296, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33272, 9608, 355, 33272, 198, 6738, 1341, 9060, 1330, 16628, 11, 46320, 198, 6738, 629, 541, 88, 13, 358, 9060, 13, 24503,...
2.06875
1,600
#!/usr/bin/env python # -*- coding: utf-8 -*- from aip import AipFace from picamera import PiCamera import urllib.request import RPi.GPIO as GPIO import base64 import time import Main #idkey APP_ID = '*****' API_KEY = '**********' SECRET_KEY ='**********' client = AipFace(APP_ID, API_KEY, SECRET_KEY)# #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 6738, 257, 541, 1330, 317, 541, 32388, 201, 198, 6738, 8301, 18144, 1330, 13993, 35632, 201, 198, 11748, 2956...
2.044444
405
L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack'] print(L[0:3]); # L[0:3]0330123 # 0 print(L[:3]); # PythonL[-1] print(L[-2:]) L = list(range(100)) # 10 print(L[:10:2]) # [:]list # tupletuple # print('ABCDEFG'[:3]) # d = {'a': 1, 'b': 2, 'c': 3} for key in d: print(key) # collectionsIterable from collections.abc ...
[ 43, 796, 37250, 13256, 3256, 705, 29284, 3256, 705, 2898, 1590, 3256, 705, 18861, 3256, 705, 14295, 20520, 198, 4798, 7, 43, 58, 15, 25, 18, 36563, 198, 2, 406, 58, 15, 25, 18, 60, 44427, 486, 1954, 198, 2, 657, 198, 4798, 7, 43...
2.4474
827
#!/usr/local/bin/python2 import argparse import requests import feedparser import time import sys import sqlite3 import datetime # Command line args parser = argparse.ArgumentParser(description='Provide HipChat integration url to post xkcd comics') parser.add_argument('url', type=str, help='(string) a special url for ...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 17, 198, 11748, 1822, 29572, 198, 11748, 7007, 198, 11748, 3745, 48610, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 44161, 578, 18, 198, 11748, 4818, 8079, 198, 198, 2, 9455, 1627, ...
2.394783
575
# Leia 2 valores numricos e um smbolo correspondente a uma das operaes. # soma (+), subtrao(-), diviso(/) e multiplicao(*) n1, n2, op = input().split() n1 = int(n1) n2 = int(n2) if op == "+": print(n1 + n2) elif op == "-": print(n1 - n2) elif op == "/": print(n1 / n2) elif op == "*": pri...
[ 2, 41212, 362, 1188, 2850, 997, 1173, 418, 304, 23781, 895, 65, 14057, 21076, 68, 257, 334, 2611, 288, 292, 27296, 274, 13, 201, 198, 2, 3870, 64, 11502, 828, 850, 9535, 78, 32590, 828, 2659, 26786, 7, 34729, 304, 15082, 3970, 78, ...
1.989691
194
from ciphers.cipher_helper import get_character_map, flip_dict
[ 6738, 269, 541, 7084, 13, 66, 10803, 62, 2978, 525, 1330, 651, 62, 22769, 62, 8899, 11, 14283, 62, 11600, 628 ]
3.047619
21
# Generated by Django 2.2.6 on 2019-10-14 13:19 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 13130, 12, 940, 12, 1415, 1511, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# coding: utf-8 import re from datetime import date import boundaries # Noting that the "union" merge strategy fails with: # # GEOS_ERROR: TopologyException: found non-noded intersection between # LINESTRING (...) and LINESTRING (...) # # django.contrib.gis.geos.error.GEOSException: Could not initialize G...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 11748, 13215, 198, 198, 2, 1892, 278, 326, 262, 366, 24592, 1, 20121, 4811, 10143, 351, 25, 198, 2, 198, 2, 220, 220, 220, 220, 22319, ...
2.184442
9,114
import difflib import io import click from pdbfairy import utils from pdbfairy.commands import find_interactions
[ 11748, 814, 8019, 198, 11748, 33245, 198, 198, 11748, 3904, 198, 198, 6738, 279, 9945, 69, 13021, 1330, 3384, 4487, 198, 6738, 279, 9945, 69, 13021, 13, 9503, 1746, 1330, 1064, 62, 3849, 4658, 628 ]
3.314286
35