content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from bs4 import BeautifulSoup as bs from pathlib import Path import os import glob import time import random import requests pwd = os.getcwd() page_counter = 1 URL = "https://www.example.com/companies/?page=" # Creating 'pages' folder if this one exists deletes it's content try: Path(pwd + '/pages').mkdir(paren...
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 275, 82, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 7007, 198, 198, 79, 16993, 796, 28686, 13, 1136, 66, 169...
2.605882
340
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship, backref Base = declarative_base() from app.db_models.accounts import Accounts from app.db_models.association_table import AssociationTable from app.db_models.o...
[ 11748, 28686, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 11, 2776, 11, 73...
3.231884
276
import numpy as np from autumn.models.covid_19.detection import create_cdr_function def test_cdr_intercept(): """ Test that there is zero case detection when zero tests are performed """ for cdr_at_1000_tests in np.linspace(0.05, 0.5, 10): cdr_function = create_cdr_function(1000.0, cdr_at_10...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 23608, 13, 27530, 13, 66, 709, 312, 62, 1129, 13, 15255, 3213, 1330, 2251, 62, 66, 7109, 62, 8818, 628, 198, 4299, 1332, 62, 66, 7109, 62, 3849, 984, 33529, 198, 220, 220, 220, 37227, ...
2.26
350
#!/usr/bin/env python3 # Copyright (c) 2019, Richard Hughes All rights reserved. # Released under the BSD license. Please see LICENSE.md for more information. import sys import os import argparse import glob import xml.dom.minidom import re # Define command line arguments parms=argparse.ArgumentParser() parms.add_ar...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 13130, 11, 6219, 19712, 1439, 2489, 10395, 13, 198, 2, 28728, 739, 262, 347, 10305, 5964, 13, 4222, 766, 38559, 24290, 13, 9132, 329, 517, 1321, 13, ...
3.104439
383
''' Format Provider Tests ''' from textwrap import dedent import pytest from yarals import helpers from yarals.base import protocol from yarals.base import errors as ce # don't care about pylint(protected-access) warnings since these are just tests # pylint: disable=W0212
[ 7061, 6, 18980, 32549, 30307, 705, 7061, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 198, 11748, 12972, 9288, 198, 6738, 331, 283, 874, 1330, 49385, 198, 6738, 331, 283, 874, 13, 8692, 1330, 8435, 198, 6738, 331, 283, 874, 13, 8692,...
3.493671
79
import warnings import socket if(__name__ == '__main__'): server = FCEUXServer(on_frame) print(server.info) server.start()
[ 11748, 14601, 198, 11748, 17802, 198, 220, 220, 220, 220, 198, 361, 7, 834, 3672, 834, 6624, 705, 834, 12417, 834, 6, 2599, 628, 220, 220, 220, 4382, 796, 376, 5222, 31235, 10697, 7, 261, 62, 14535, 8, 198, 220, 220, 220, 3601, 7,...
2.491228
57
from django import forms from .widgets import SpanWidget
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 28029, 11407, 1330, 49101, 38300, 628, 198 ]
3.75
16
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ author: Ewen Wang email: wolfgangwong2012@gmail.com license: Apache License 2.0 """ import warnings warnings.filterwarnings('ignore') import random random.seed(0) import time import json import pandas as pd import matplotlib.pyplot as plt import catboo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 9800, 25, 220, 220, 220, 220, 412, 21006, 15233, 198, 12888, 25, 220, 220, 220, 220, 220, 17481,...
2.645161
124
#!/usr/bin/python import sys import socket import asyncio import select from hexdump import hexdump KISS_FEND = 0xC0 # Frame start/end marker KISS_FESC = 0xDB # Escape character KISS_TFEND = 0xDC # If after an escape, means there was an 0xC0 in the source message KISS_TFESC = 0xDD # If after an escape, means...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25064, 198, 11748, 17802, 198, 11748, 30351, 952, 198, 11748, 2922, 198, 6738, 17910, 39455, 1330, 17910, 39455, 198, 198, 42, 16744, 62, 37, 10619, 796, 657, 87, 34, 15, 220, 220, 220...
3.012931
232
from django.db import models from users.models import User, BaseModel # Create your models here. class Comment(BaseModel, CommonModel): """ Comment class is define for the keep the Comment details and other information. :param CommonModel:CommonModel which has common attribute for the application. ...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 2985, 13, 27530, 1330, 11787, 11, 7308, 17633, 628, 198, 198, 2, 13610, 534, 4981, 994, 13, 628, 198, 4871, 18957, 7, 14881, 17633, 11, 8070, 17633, 2599, 198, 220, 220, 220, 37227,...
3.243437
419
#!/usr/bin/python import os import re import jinja2 kind_metadata = { k: v for (k, v) in [ generate_metadata('Byte'), generate_metadata('Char', {'boxed_class': 'Character'}), generate_metadata('Double'), generate_metadata('Float'), generate_metadata('Int', {'boxed_class': 'I...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 474, 259, 6592, 17, 198, 198, 11031, 62, 38993, 796, 1391, 198, 220, 220, 220, 479, 25, 410, 329, 357, 74, 11, 410, 8, 287, 685, 198, 220, 220, ...
2.423015
617
from tests import test_article from tests import test_source
[ 6738, 5254, 1330, 1332, 62, 20205, 198, 6738, 5254, 1330, 1332, 62, 10459 ]
4.615385
13
from random import randint from BST_version_3 import BinaryTreeNode, BinaryTree # I have to keep the build of lists under 3,000 total # my computer starts to freak out about memory at 10,000 # it slows at 3000. # recursion depth happens on count at 2000 items
[ 6738, 4738, 1330, 43720, 600, 198, 6738, 44992, 62, 9641, 62, 18, 1330, 45755, 27660, 19667, 11, 45755, 27660, 198, 2, 314, 423, 284, 1394, 262, 1382, 286, 8341, 739, 513, 11, 830, 2472, 198, 2, 616, 3644, 4940, 284, 22601, 503, 546...
3.895522
67
import keras.layers as KL
[ 11748, 41927, 292, 13, 75, 6962, 355, 48253 ]
3.125
8
import pytest from utils import make_hash_sha256 # test_utils.py
[ 11748, 12972, 9288, 198, 6738, 3384, 4487, 1330, 787, 62, 17831, 62, 26270, 11645, 198, 198, 2, 1332, 62, 26791, 13, 9078, 628 ]
2.913043
23
TOKEN = "" GUILD = "" # crypto bot API_KEY_COINMARKETCAP = ""
[ 10468, 43959, 796, 13538, 198, 38022, 26761, 796, 13538, 198, 198, 2, 21473, 10214, 198, 17614, 62, 20373, 62, 8220, 1268, 44, 14175, 2767, 33177, 796, 13538 ]
2.296296
27
# Generated by Django 3.1.4 on 2022-02-25 05:41 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33160, 12, 2999, 12, 1495, 8870, 25, 3901, 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
#!/usr/bin/env python2 """ Run exploit locally with: ./solve.py ./solve.py REMOTE HOST=challenge.acictf.com PORT=45110 """ import ast import struct import subprocess from pwn import * PROG_PATH = './challenge' PROT_RWX = constants.PROT_READ | constants.PROT_WRITE | constants.PROT_EXEC EGG_SIZE = 0x1000 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 198, 37811, 198, 10987, 14561, 15726, 351, 25, 198, 19571, 82, 6442, 13, 9078, 198, 198, 19571, 82, 6442, 13, 9078, 22657, 23051, 367, 10892, 28, 36747, 3540, 13, 330, 713, 69, 1...
2.350254
197
#!/usr/bin/env python import os import sys import time import django sys.path.insert(0, './tests') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') if __name__ == '__main__': from django.core.management import execute_from_command_line args = sys.argv args.insert(1, 'test') if len(args) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 42625, 14208, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 19571, 41989, 11537, 198, 418, 13, 268, 2268, 13,...
2.503106
161
from os import path import csv import json import random # Our dataset was created from http://www2.informatik.uni-freiburg.de/~cziegler/BX/ and reduced down to 1,000 records # The CSV file has semicolon delimiters due to book titles containing commas SCRIPT_DIR = path.dirname(path.realpath(__file__)) + '/' DB_FILE =...
[ 6738, 28686, 1330, 3108, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 4738, 198, 198, 2, 3954, 27039, 373, 2727, 422, 2638, 1378, 2503, 17, 13, 259, 18982, 1134, 13, 35657, 12, 19503, 571, 3686, 13, 2934, 14, 93, 26691, 1570...
2.059639
721
from channels import route from .features import consumers path = r'^/api/projects/(?P<id>[0-9a-f-]+)/stream/$' channel_routing = [ route("websocket.connect", consumers.connect_to_project, path=path), route("websocket.receive", consumers.disconnect_from_project, path=path) ]
[ 6738, 9619, 1330, 6339, 198, 6738, 764, 40890, 1330, 7008, 198, 198, 6978, 796, 374, 6, 61, 14, 15042, 14, 42068, 29006, 30, 47, 27, 312, 36937, 15, 12, 24, 64, 12, 69, 12, 48688, 20679, 5532, 32624, 6, 198, 198, 17620, 62, 81, ...
2.86
100
#!/usr/bin/env python # https://github.com/studioimaginaire/phue import rospy from geometry_msgs.msg import PoseStamped, Pose, Pose2D from std_msgs.msg import String import json import io import os # pose = Pose value # location = string value if __name__ == '__main__': rospy.init_node("task_controller", anon...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 3740, 1378, 12567, 13, 785, 14, 19149, 952, 48466, 1437, 557, 14, 746, 518, 198, 198, 11748, 686, 2777, 88, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 37557, 1273, 13...
2.80303
132
#!/usr/bin/env python """ Node to convert joystick commands to kinova arm cartesian movements """ import rospy from sensor_msgs.msg import Joy #from geometry_msgs.msg import Pose from kortex_driver.msg import TwistCommand, Finger, Empty, Pose from kortex_driver.srv import SendGripperCommand, SendGripperCommandRequest...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 19667, 284, 10385, 49485, 9729, 284, 18967, 10071, 3211, 6383, 35610, 8650, 198, 37811, 198, 198, 11748, 686, 2777, 88, 198, 6738, 12694, 62, 907, 14542, 13, 19662, 1330...
2.800866
231
kraftausdruecke = [ "Mist", "Verdammt", "Mannmannmann", "Herrgottnochmal", "Echt jetzt", "Zum Teufel" ] berufe = [ "Baggerfhrer", "Velokurier", "Tierrztin", "Verkehrspolizist", "Schreinerin", "Apotheker", "Komponist", "Physikerin", "Buchhndlerin" ] a =...
[ 74, 1617, 8717, 7109, 518, 66, 365, 796, 685, 198, 220, 220, 220, 366, 49370, 1600, 198, 220, 220, 220, 366, 13414, 67, 6475, 83, 1600, 198, 220, 220, 220, 366, 44, 1236, 9038, 9038, 1600, 198, 220, 220, 220, 366, 39, 8056, 70, ...
2.028369
282
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self...
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, 14202, 2599, 198, 2, 220, 220, 220, 220,...
2.252874
174
import streamlit as st from PIL import Image import cv2 import numpy as np from sklearn import datasets from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.metrics import accu...
[ 11748, 4269, 18250, 355, 336, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 40522, 198, 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 509, 46445, 32289, 9487...
2.337376
907
""" python3 detect.py \ --model ${TEST_DATA}/mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite """ import argparse import os import numpy as np import tensorflow as tf import numpy as np import PIL import matplotlib.pyplot as plt import matplotlib.image as matimage if __name__ == '__main__': main()
[ 37811, 198, 29412, 18, 4886, 13, 9078, 3467, 198, 220, 1377, 19849, 25597, 51, 6465, 62, 26947, 92, 14, 76, 25898, 268, 316, 62, 824, 67, 62, 85, 17, 62, 2550, 62, 40972, 62, 7353, 14681, 62, 276, 1136, 19944, 13, 83, 2704, 578, ...
2.661017
118
# Copyright 2021 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, 33448, 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.552023
1,038
""" 2018.Jan @author: Tomoki Emmei description: program to show multiplication and addition table """ import sys #read command line argument # Display the multiplication table # Display the addition table if __name__ == '__main__': main()
[ 37811, 198, 7908, 13, 12128, 198, 31, 9800, 25, 4186, 18228, 2295, 1326, 72, 198, 11213, 25, 1430, 284, 905, 48473, 290, 3090, 3084, 198, 37811, 198, 11748, 25064, 1303, 961, 3141, 1627, 4578, 198, 198, 2, 16531, 262, 48473, 3084, 198...
3.671642
67
from typing import Callable import numpy as np from iliad.integrators.states.lagrangian_leapfrog_state import LagrangianLeapfrogState from iliad.integrators.fields import riemannian from iliad.linalg import solve_psd from odyssey.distribution import Distribution
[ 6738, 19720, 1330, 4889, 540, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 220, 2403, 324, 13, 18908, 18942, 13, 27219, 13, 30909, 36985, 666, 62, 293, 499, 49956, 62, 5219, 1330, 21003, 36985, 666, 3123, 499, 49956, 9012, ...
3.296296
81
# Copyright (c) 2013, University of Liverpool # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program ...
[ 2, 15069, 357, 66, 8, 2211, 11, 2059, 286, 11761, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 12892, 263, 3611, 5094, 13789, 355, ...
2.662234
752
# Copyright 2018 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2864, 3012, 11419, 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, 351, 262, 13789, 13, 198, 2, 921, 743, ...
3.581436
571
from functools import partial import math from electroncash.i18n import _ from electroncash.address import Address import electroncash.web as web from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from .util import * from .qrtextedit import ShowQRTextEdit from electroncash import bc...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 11748, 10688, 198, 198, 6738, 11538, 30350, 13, 72, 1507, 77, 1330, 4808, 198, 6738, 11538, 30350, 13, 21975, 1330, 17917, 198, 11748, 11538, 30350, 13, 12384, 355, 3992, 198, 198, 6738, 94...
2.889344
244
""" * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
[ 37811, 198, 9, 15069, 13130, 14724, 2390, 11998, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 9, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198,...
3.819048
210
from __future__ import print_function from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand from cloudmesh.docopts_example.api.manager import Manager from cloudmesh.common.console import Console from cloudmesh.common.util import path_expand from pprint import pprint from cloudmes...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 6279, 76, 5069, 13, 29149, 13, 21812, 1330, 3141, 198, 6738, 6279, 76, 5069, 13, 29149, 13, 21812, 1330, 42636, 21575, 198, 6738, 6279, 76, 5069, 13, 15390, 404, 912, 62, 20688...
3.723404
94
from typing import * import unittest import contextlib import os import sys import tempfile from dvg.dvg import prune_overlapped_paragraphs, expand_file_iter if __name__ == "__main__": unittest.main()
[ 6738, 19720, 1330, 1635, 198, 198, 11748, 555, 715, 395, 198, 11748, 4732, 8019, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 198, 6738, 288, 45119, 13, 67, 45119, 1330, 778, 1726, 62, 2502, 75, 6320, 62, 20360, ...
2.90411
73
from typing import Union from fastapi import Depends from fastapi.responses import JSONResponse from sqlalchemy.orm import Session from authorization import get_all_roles from server import app, get_db from settings import settings from models import HealthCheck
[ 6738, 19720, 1330, 4479, 198, 6738, 3049, 15042, 1330, 2129, 2412, 198, 6738, 3049, 15042, 13, 16733, 274, 1330, 19449, 31077, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 198, 6738, 19601, 1330, 651, 62, 439, 62, 305, 829, ...
4.274194
62
from .factal import * from .schema import *
[ 6738, 764, 22584, 282, 1330, 1635, 198, 6738, 764, 15952, 2611, 1330, 1635 ]
3.307692
13
# SecretPlots # Copyright (c) 2019. SecretBiology # # Author: Rohit Suratekar # Organisation: SecretBiology # Website: https://github.com/secretBiology/SecretPlots # Licence: MIT License # Creation: 05/10/19, 7:52 PM # # All Location Managers will go here from SecretPlots.managers._axis import AxisManager from...
[ 2, 220, 3943, 3646, 1747, 198, 2, 220, 15069, 357, 66, 8, 13130, 13, 220, 3943, 33, 12371, 198, 2, 198, 2, 220, 6434, 25, 32694, 270, 4198, 378, 21070, 198, 2, 220, 30801, 25, 3943, 33, 12371, 198, 2, 220, 15887, 25, 3740, 1378,...
3.257353
136
# # This FLIP example combines narrow band flip, 2nd order wall boundary conditions, and # adaptive time stepping. # from manta import * dim = 3 res = 64 #res = 124 gs = vec3(res,res,res) if (dim==2): gs.z=1 s = Solver(name='main', gridSize = gs, dim=dim) narrowBand = 3 minParticles = pow(2,dim) s...
[ 2, 198, 2, 770, 9977, 4061, 1672, 21001, 7135, 4097, 14283, 11, 362, 358, 1502, 3355, 18645, 3403, 11, 290, 220, 198, 2, 29605, 640, 17413, 13, 198, 2, 220, 198, 6738, 285, 4910, 1330, 1635, 198, 198, 27740, 220, 220, 220, 796, 51...
2.484235
2,125
import hashlib #take a key key = str(input("KEY>>> ")) #take a message password = str(input("MESSAGE>>> ")) #function does does something #make this more complex or something IDK password = (key + password + key) hash1 = hashlib.new("sha256") password = password.encode("utf-8") print(password) has...
[ 11748, 12234, 8019, 201, 198, 201, 198, 2, 20657, 257, 1994, 201, 198, 2539, 796, 965, 7, 15414, 7203, 20373, 33409, 366, 4008, 201, 198, 2, 20657, 257, 3275, 201, 198, 28712, 796, 965, 7, 15414, 7203, 44, 1546, 4090, 8264, 33409, 3...
2.713235
136
"""IO methods for radar data from MYRORSS or MRMS. MYRORSS = Multi-year Reanalysis of Remotely Sensed Storms MRMS = Multi-radar Multi-sensor """ import os import glob import warnings import numpy import pandas from netCDF4 import Dataset from gewittergefahr.gg_io import netcdf_io from gewittergefahr.gg_utils import ...
[ 37811, 9399, 5050, 329, 13428, 1366, 422, 17615, 16411, 5432, 393, 17242, 5653, 13, 198, 198, 26708, 16411, 5432, 796, 15237, 12, 1941, 797, 20930, 286, 21520, 306, 14173, 276, 8865, 82, 198, 198, 13599, 5653, 796, 15237, 12, 6335, 283,...
2.229782
17,138
from setup.Base import Base from setup.Docker import Docker from setup.SystemD import SystemD
[ 6738, 9058, 13, 14881, 1330, 7308, 198, 6738, 9058, 13, 35, 12721, 1330, 25716, 198, 6738, 9058, 13, 11964, 35, 1330, 4482, 35, 198 ]
3.916667
24
# Copyright 2021 Cory Paik. 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 applicable law or ag...
[ 2, 15069, 33448, 28785, 11243, 1134, 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, 351, 262, ...
2.211389
2,318
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198 ]
3.461538
26
import json import logging import sys from decouple import config # general ENVIRONMENT: str = config("ENVIRONMENT", "docker") API_VERSION: str = config("API_VERSION", "/api") PROJECT_NAME: str = config("PROJECT_NAME", "Stocks") BACKEND_CORS_ORIGINS: str = config("BACKEND_CORS_ORIGINS", "*") DATETIME_FORMAT = "%Y-%...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 875, 43846, 1330, 4566, 198, 198, 2, 2276, 198, 1677, 53, 4663, 1340, 10979, 25, 965, 796, 4566, 7203, 1677, 53, 4663, 1340, 10979, 1600, 366, 45986, 4943, 198, 198, ...
1.882171
1,621
#This problem was asked by Amazon. #Given an integer k and a string s, find the length of the longest substring that contains at most k distinct characters. #For example, given s = "abcba" and k = 2, the longest substring with k distinct characters is "bcb". #test example from prompt s = "abcba" k = 2 DCP...
[ 2, 1212, 1917, 373, 1965, 416, 6186, 13, 201, 198, 201, 198, 2, 15056, 281, 18253, 479, 290, 257, 4731, 264, 11, 1064, 262, 4129, 286, 262, 14069, 3293, 1806, 326, 4909, 379, 749, 479, 7310, 3435, 13, 201, 198, 201, 198, 2, 1890, ...
1.997571
1,235
import base64 import hashlib import re import string import itertools from crypto_commons.netcat.netcat_commons import receive_until_match, nc, send, receive_until from crypto_commons.symmetrical.symmetrical import set_byte_cbc, set_cbc_payload_for_block main()
[ 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 302, 198, 11748, 4731, 198, 198, 11748, 340, 861, 10141, 198, 198, 6738, 21473, 62, 9503, 684, 13, 3262, 9246, 13, 3262, 9246, 62, 9503, 684, 1330, 3328, 62, 28446, 62, 15699, 11...
3
90
import configparser import re import sys import os from typing import Optional, Mapping, Iterator, Any, List, Dict _default_settings = { "node": { "id.message": "Terrestrial Amateur Radio Packet Network node ${node.alias} op is ${node.call}", "id.interval": 600, "admin.enabled": False, ...
[ 11748, 4566, 48610, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 11, 337, 5912, 11, 40806, 1352, 11, 4377, 11, 7343, 11, 360, 713, 198, 198, 62, 12286, 62, 33692, 796, 1391, 198, 220, 220, 220,...
2.192053
302
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils.nestedset import rebuild_tree
[ 2, 15069, 357, 66, 8, 2177, 11, 39313, 27768, 290, 25767, 669, 198, 2, 13789, 25, 22961, 3611, 5094, 13789, 410, 18, 13, 4091, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 5306, ...
3.614035
57
""" Web GUI Author: Irfan Chahyadi Source: github.com/irfanchahyadi/Scraping-Manga """ # IMPORT REQUIRED PACKAGE from flask import Flask, render_template, request, redirect, url_for, Response import os, webbrowser, time from gui import web_api import main app = Flask(__name__) def shutdown_server(): func = request...
[ 198, 37811, 198, 13908, 25757, 198, 13838, 25, 5686, 24408, 609, 993, 88, 9189, 198, 7416, 25, 33084, 13, 785, 14, 343, 69, 3702, 993, 88, 9189, 14, 3351, 2416, 278, 12, 44, 16484, 198, 37811, 198, 198, 2, 30023, 9863, 4526, 10917, ...
2.822581
186
#!/usr/bin/env python3 # Author: Joel Gruselius, Dec 2018 # Script for checking index clashes # Input one or several nucleotide sequences and print any matches found in # the index reference file. This version is only good for checking for # full matches. # It is pretty useful though to list overlapping indexes in th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 6434, 25, 18623, 25665, 741, 3754, 11, 4280, 2864, 220, 198, 2, 12327, 329, 10627, 6376, 21022, 198, 2, 23412, 530, 393, 1811, 17751, 45608, 16311, 290, 3601, 597, 7466, ...
3.04008
499
# Generated by Django 3.2.5 on 2021-07-20 19:37 import cloudinary.models from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 20, 319, 33448, 12, 2998, 12, 1238, 678, 25, 2718, 198, 198, 11748, 6279, 3219, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
3
36
"""input manatees: a list of "manatees", where one manatee is represented by a dictionary a single manatee has properties like "name", "age", et cetera n = the number of elements in "manatees" m = the number of properties per "manatee" (i.e. the number of keys in a manatee dictionary)""" # Efficiency: O(n) # Efficien...
[ 37811, 15414, 582, 378, 274, 25, 257, 1351, 286, 366, 805, 378, 274, 1600, 810, 530, 582, 378, 68, 318, 7997, 416, 257, 22155, 198, 64, 2060, 582, 378, 68, 468, 6608, 588, 366, 3672, 1600, 366, 496, 1600, 2123, 269, 2357, 64, 198,...
2.952381
126
from django.urls import reverse from address.models import Address from core.tests import BaseTestSimpleApiMixin from thairod.utils.test_util import APITestCase from warehouse.models import Warehouse
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 2209, 13, 27530, 1330, 17917, 198, 6738, 4755, 13, 41989, 1330, 7308, 14402, 26437, 32, 14415, 35608, 259, 198, 6738, 294, 1872, 14892, 13, 26791, 13, 9288, 62, 22602, 1330, ...
3.811321
53
import datetime import logging import logging.handlers import os import atexit from flask import Flask, request, g from flask_login import current_user from flask_cors import CORS from importlib import reload from urllib.parse import urlsplit import meltano from meltano.core.project import Project from meltano.core.tr...
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 198, 11748, 28686, 198, 11748, 379, 37023, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 308, 198, 6738, 42903, 62, 38235, 1330, 1459, 62, 7220, 198, 6738, 42903, 6...
3.725118
211
import maya.cmds as cmds import re import rsTools.utils.openMaya.dataUtils as dUtils import maya.OpenMayaAnim as OpenMayaAnimOld import maya.OpenMaya as OpenMayaOld import maya.api.OpenMaya as om import maya.api.OpenMayaAnim as oma ''' isDeformer("rig_normalPushq") getDeformerList("pSphere1",nodeType='geometryFilt...
[ 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 198, 11748, 302, 198, 198, 11748, 44608, 33637, 13, 26791, 13, 9654, 6747, 64, 13, 7890, 18274, 4487, 355, 288, 18274, 4487, 198, 198, 11748, 743, 64, 13, 11505, 6747, 64, 35320, 355, 4...
2.624175
5,452
import logging import os from queue import Queue from threading import Thread from time import time import cv2
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 16834, 1330, 4670, 518, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 640, 1330, 640, 198, 11748, 269, 85, 17 ]
4.074074
27
# Licensed under an MIT style license -- see LICENSE.md from .utils import ( gw_results_file, functions, history_dictionary, command_line_arguments ) __author__ = ["Charlie Hoy <charlie.hoy@ligo.org>"]
[ 2, 49962, 739, 281, 17168, 3918, 5964, 1377, 766, 38559, 24290, 13, 9132, 198, 198, 6738, 764, 26791, 1330, 357, 198, 220, 220, 220, 308, 86, 62, 43420, 62, 7753, 11, 5499, 11, 2106, 62, 67, 14188, 11, 3141, 62, 1370, 62, 853, 288...
2.971429
70
from django.shortcuts import render, get_object_or_404, redirect from django.contrib import messages from django.utils import timezone from django.views.generic import ListView, DetailView, View from .models import Item, Order, OrderItem, Address, Promo from .forms import AddressForm, PromoForm from django.http import ...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 11, 18941, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, ...
2.544023
1,397
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> # This file is part of Gluster Management Gateway (GlusterMG). # # GlusterMG is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published # by the Free Software Foundation; either version 3 of...
[ 2, 220, 15069, 357, 34, 8, 2813, 2671, 5819, 11, 3457, 13, 1279, 4023, 1378, 2503, 13, 4743, 5819, 13, 785, 29, 198, 2, 220, 770, 2393, 318, 636, 286, 2671, 5819, 8549, 29916, 357, 9861, 5819, 20474, 737, 198, 2, 198, 2, 220, 26...
2.830508
649
import cv2 as cv import numpy as np
[ 11748, 269, 85, 17, 355, 269, 85, 198, 11748, 299, 32152, 355, 45941, 628, 628, 198 ]
2.5
16
import importlib import logging import threading from time import sleep import timeout_decorator from django_pglocks import advisory_lock from django.conf import settings from django.db import transaction from django.db.models import Q from django.utils import timezone from .constants import TASKQ_DEFAULT_CONSUMER_...
[ 11748, 1330, 8019, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 26827, 62, 12501, 273, 1352, 198, 6738, 42625, 14208, 62, 79, 4743, 3320, 1330, 20852, 62, 5354, 198, 198, 6738, 42625, 14208...
3.264249
193
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part # of the Robot Operating System project, released under the MIT License. Please # see the LICENSE file included as part of this package. # # author: Murray Altheim # created: 2021-02-24 # ...
[ 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, 12131, 12, 1238, 2481, 416, 12164, 978, 1169, 320, 13, 1439, 2489, 10395, 13, 770, 2393, 318, ...
3.146919
1,055
import pygame import random
[ 11748, 12972, 6057, 198, 11748, 4738, 628, 628 ]
3.875
8
import sys from swatcher import Swatcher if __name__ == "__main__": files = sys.argv[1:] for file in files: s = Swatcher(file) s.export_ase_file() s.export_palette_image()
[ 11748, 25064, 198, 6738, 1509, 34734, 1330, 2451, 34734, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3696, 796, 25064, 13, 853, 85, 58, 16, 47715, 628, 220, 220, 220, 329, 2393, 287, 3696, ...
2.25
92
#! /usr/bin/env python from setuptools import setup VERSION = "1.0" AUTHOR = "James Klatzow, Virginie Uhlmann" AUTHOR_EMAIL = "uhlmann@ebi.ac.uk" setup( name="microMatch", version=VERSION, description="3D shape correspondence for microscopy data", author=AUTHOR, author_email=AUTHOR_EMAIL, pa...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 43717, 796, 366, 16, 13, 15, 1, 198, 32, 24318, 1581, 796, 366, 14731, 14770, 27906, 322, 11, 5283, 494, 471, 18519, 9038, 1, ...
2.503185
471
import datetime import time import boto3 import sys import os import importlib print('sys.argv:\n{}\n\n'.format(sys.argv)) print('os.environ:\n{}\n\n'.format(os.environ)) # only run the following if running in aws glue environment (not availble locally) if 'GLUE_INSTALLATION' in os.environ: aws_glue_utils = impor...
[ 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 275, 2069, 18, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1330, 8019, 198, 198, 4798, 10786, 17597, 13, 853, 85, 7479, 77, 90, 32239, 77, 59, 77, 4458, 18982, 7, 17597, 13, 853, ...
2.378498
679
import requests import time CLIENT_TOKEN_URI = "rest/V1/integration/customer/token" GET_CART_URI = "rest/default/V1/carts/mine" GET_CART_ITEM_URI = "rest/default/V1/carts/mine/items" ADD_TO_CART_URI = "rest/default/V1/carts/mine/items" ME_URI = "rest/default/V1/customers/me" DELETE_ITEM_URI = "rest/default/V1/carts/mi...
[ 11748, 7007, 198, 11748, 640, 198, 198, 5097, 28495, 62, 10468, 43959, 62, 47269, 796, 366, 2118, 14, 53, 16, 14, 18908, 1358, 14, 23144, 263, 14, 30001, 1, 198, 18851, 62, 34, 7227, 62, 47269, 796, 366, 2118, 14, 12286, 14, 53, 1...
2.328244
393
from spaghettiqueue.__init__ import main main() #Makes the code executable by doing python -m spaghettiqueue
[ 6738, 599, 363, 17442, 2350, 518, 13, 834, 15003, 834, 1330, 1388, 198, 12417, 3419, 198, 2, 44, 1124, 262, 2438, 28883, 416, 1804, 21015, 532, 76, 599, 363, 17442, 2350, 518 ]
3.375
32
import math # A function to print all prime factors of # a given number n prime_factor(600851475143)
[ 11748, 10688, 198, 198, 2, 317, 2163, 284, 3601, 477, 6994, 5087, 286, 198, 2, 257, 1813, 1271, 299, 628, 198, 35505, 62, 31412, 7, 8054, 5332, 1415, 2425, 21139, 8, 198 ]
3.25
32
# AUTHOR: Zehui Gong # DATE: 2020/6/16 from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import OrderedDict import copy from paddle import fluid from paddle.fluid.param_attr import ParamAttr from paddle.fluid.initializer import Xavier, Const...
[ 2, 44746, 25, 9033, 71, 9019, 47142, 198, 2, 360, 6158, 25, 12131, 14, 21, 14, 1433, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8...
3.480447
179
import numpy as np import tensorflow as tf from tensorflow.python.keras import backend as K from tensorflow.python.keras.layers import Layer, Lambda from tensorflow.python.keras.layers import InputSpec from tensorflow.python.ops import nn_ops from tensorflow.python.keras import initializers, regularizers, constraints...
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 1330, 30203, 355, 509, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 75, 6962, 1...
2.765182
247
""" test_update_resource_property.py -- Given a VIVO URI, a predicate, and two URIs -- VIVO resource URI and the source URI, generate the add and subtract RDF necessary to execute "five case logic" in updating VIVO with an authoritative source URI. Note. In common use, the source data is presented...
[ 37811, 198, 220, 220, 220, 1332, 62, 19119, 62, 31092, 62, 26745, 13, 9078, 1377, 11259, 257, 569, 3824, 46, 43975, 11, 257, 44010, 11, 290, 734, 198, 220, 220, 220, 37902, 3792, 1377, 569, 3824, 46, 8271, 43975, 290, 262, 2723, 439...
2.596859
573
import matplotlib import matplotlib.pyplot as plt import os import pdb import pickle import copy import scipy.signal import scipy.interpolate import numpy as np from astropy.modeling import models, fitting from astropy.nddata import CCDData, StdDevUncertainty from astropy.io import ascii, fits from astropy.convolution ...
[ 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28686, 198, 11748, 279, 9945, 198, 11748, 2298, 293, 198, 11748, 4866, 198, 11748, 629, 541, 88, 13, 12683, 282, 198, 11748, 629, 541, ...
1.984921
3,117
# Copyright (c) 2022 Massachusetts Institute of Technology # SPDX-License-Identifier: MIT from dataclasses import is_dataclass import pytest from hydra_zen import hydrated_dataclass, instantiate
[ 2, 15069, 357, 66, 8, 33160, 10140, 5136, 286, 8987, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 6738, 4818, 330, 28958, 1330, 318, 62, 19608, 330, 31172, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 25039, ...
3.54386
57
print("Hello World!") #because why the hell not that's why. It was like a free #point on Kattis. Actually got a compiler error on my first #try because I was new to Python3 at the time.
[ 4798, 7203, 15496, 2159, 2474, 8, 198, 2, 13893, 1521, 262, 5968, 407, 326, 338, 1521, 13, 632, 373, 588, 257, 1479, 198, 2, 4122, 319, 509, 1078, 271, 13, 18689, 1392, 257, 17050, 4049, 319, 616, 717, 198, 2, 28311, 780, 314, 373...
3.557692
52
from django.db import models from forex.models import Currency
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 1674, 87, 13, 27530, 1330, 20113, 628, 628, 628 ]
3.777778
18
import argparse from pathlib import Path import json import seaborn as sns import matplotlib.pyplot as plt from matplotlib import rcParams if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('input', type=Path, help='Input JSON file, generated by process.py') parser.add_arg...
[ 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 33918, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 48321, 10044, 4...
3.109589
146
from ptrait import TraitExtends import copy from pytest_assertutil import assert_equal def test_cascade_call_instanceA(): assert_equal( ((), {'a': 1}), A().a_instancemethodA() ) def test_cascade_call_instanceB(): assert_equal( ((), {'a': 2}), A().a_instancemethodB() ...
[ 6738, 279, 9535, 270, 1330, 4759, 270, 11627, 2412, 198, 11748, 4866, 198, 6738, 12972, 9288, 62, 30493, 22602, 1330, 6818, 62, 40496, 628, 628, 198, 198, 4299, 1332, 62, 66, 28966, 62, 13345, 62, 39098, 32, 33529, 198, 220, 220, 220,...
2.019538
563
import yahoo_fin.stock_info as si import pandas as pd import os
[ 11748, 331, 12992, 62, 15643, 13, 13578, 62, 10951, 355, 33721, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686 ]
3
21
import datetime import re import os import logging import json _months = [ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" ] _precision = [ 'ABT', 'CAL', 'EST', 'AFT', 'BEF' ] _date_expr = re.compile('(?:(' + '|'....
[ 11748, 4818, 8079, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 33918, 628, 628, 198, 62, 41537, 796, 685, 198, 220, 220, 220, 366, 41, 1565, 1600, 198, 220, 220, 220, 366, 15112, 33, 1600, 198, 220, 220, 220, ...
1.959237
2,674
from HTMLParser import HTMLParser import json from os import makedirs from os.path import abspath, dirname, exists, join, normpath import pycurl import Queue import re import requests import tempfile import urllib2
[ 6738, 11532, 46677, 1330, 11532, 46677, 198, 11748, 33918, 198, 6738, 28686, 1330, 285, 4335, 17062, 198, 6738, 28686, 13, 6978, 1330, 2352, 6978, 11, 26672, 3672, 11, 7160, 11, 4654, 11, 2593, 6978, 198, 11748, 12972, 66, 6371, 198, 11...
3.6
60
import re import copy import hashlib #part1() part2()
[ 11748, 302, 198, 11748, 4866, 198, 11748, 12234, 8019, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 2, 3911, 16, 3419, 198, 3911, 17, 3419 ]
2.090909
33
__author__ = 'wasi' from .summary import * from .code import *
[ 834, 9800, 834, 796, 705, 9776, 72, 6, 198, 198, 6738, 764, 49736, 1330, 1635, 198, 6738, 764, 8189, 1330, 1635, 198 ]
2.909091
22
from collections import defaultdict from prometheus.utils.misc import FrozenClass
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 1552, 36916, 13, 26791, 13, 44374, 1330, 23673, 9487, 628 ]
4.882353
17
#-*- coding: utf-8 -*- import requests import numpy as np import json import concurrent.futures import codecs with codecs.open('./test_1.txt', 'r', 'utf-8') as frobj: input1 = frobj.read().strip() with codecs.open('./candidate_1.txt', 'r', 'utf-8') as frobj: candidate1 = frobj.read().strip() with codecs.open('./t...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 7007, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 24580, 13, 69, 315, 942, 198, 11748, 40481, 82, 198, 198, 4480, 40481, 82, 13, 9654, ...
2.334545
275
from lib.core.exceptions import AppException
[ 6738, 9195, 13, 7295, 13, 1069, 11755, 1330, 2034, 16922, 628, 198 ]
3.916667
12
from zpy.api.resource import ZResource, HTTP_METHODS
[ 6738, 1976, 9078, 13, 15042, 13, 31092, 1330, 1168, 26198, 11, 14626, 62, 49273, 50, 628 ]
3.375
16
# coding: utf-8 import os
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198 ]
2.363636
11
import re def separa_palavras(frase): '''A funcao recebe uma frase e devolve uma lista das palavras dentro da frase''' print('lista de palavras: ', frase.split())
[ 11748, 302, 198, 198, 4299, 2880, 64, 62, 18596, 615, 8847, 7, 8310, 589, 2599, 198, 220, 220, 220, 705, 7061, 32, 25439, 5488, 1407, 1350, 334, 2611, 1216, 589, 304, 1614, 6442, 334, 2611, 1351, 64, 288, 292, 6340, 615, 8847, 18794...
2.492754
69
import logging import random from .base.camp import Camp from .base.formation import Formation from .game.janggi_game import JanggiGame from .game.game_log import GameLog from .ui.game_player import GamePlayer from .ui.replay_viewer import ReplayViewer from .proto import log_pb2 logging.basicConfig() logging.root.set...
[ 11748, 18931, 198, 11748, 4738, 198, 198, 6738, 764, 8692, 13, 16544, 1330, 5425, 198, 6738, 764, 8692, 13, 1161, 1330, 46689, 198, 6738, 764, 6057, 13, 73, 648, 12397, 62, 6057, 1330, 449, 648, 12397, 8777, 198, 6738, 764, 6057, 13, ...
2.649049
473
from data_interface import Dataset, Data_Interface from utils import functions as ufunc import geopandas as gpd import matplotlib.pyplot as plt import numpy as np import os import rasterio as rio import rasterio.mask as riom import shapely from IPython import embed import sys sys.path.append('/home/seba/Projects/swis...
[ 6738, 1366, 62, 39994, 1330, 16092, 292, 316, 11, 6060, 62, 39317, 198, 6738, 3384, 4487, 1330, 5499, 355, 334, 20786, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 117...
2.219144
794
from rest_framework.views import APIView from rest_framework.response import Response
[ 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 628 ]
4.35
20
# "Database code" for the DB Forum. import psycopg2 import bleach DNAME = "forum" #POSTS = [("This is the first post.", datetime.datetime.now())] def get_posts(): """Return all posts from the 'database', most recent first.""" db = psycopg2.connect(database=DNAME) c = db.cursor() c.execute("select content,...
[ 2, 366, 38105, 2438, 1, 329, 262, 20137, 14867, 13, 198, 11748, 17331, 22163, 70, 17, 198, 11748, 49024, 198, 198, 35, 20608, 796, 366, 27302, 1, 628, 198, 2, 32782, 50, 796, 685, 7203, 1212, 318, 262, 717, 1281, 33283, 4818, 8079, ...
2.957792
308
#!/usr/bin/env python3 # # IP: HILICS # # 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 i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 6101, 25, 367, 4146, 19505, 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, 2...
3.185714
280
#!/usr/bin/env python output_name = './build/libs/java.jar' #end run #end run #end run if __name__=="__main__": import sys, os setup() build() if os.path.basename(sys.argv[0]) == os.path.basename(__file__): run(sys.argv[1:]) # end main
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 22915, 62, 3672, 796, 705, 19571, 11249, 14, 8019, 82, 14, 12355, 13, 9491, 6, 198, 2, 437, 1057, 198, 2, 437, 1057, 198, 2, 437, 1057, 198, 198, 361, 11593, 3672, 834, 855, ...
2.060606
132
""" Tags http://developer.pardot.com/kb/api-version-4/tags/ http://developer.pardot.com/kb/object-field-references/#tag """ tag = [{'name': 'id', 'type': 'integer'}, {'name': 'name', 'type': 'varchar(512)'}, {'name': 'created_at', 'type': 'timestamp'}, {'name': 'updated_at...
[ 37811, 198, 36142, 198, 198, 4023, 1378, 16244, 263, 13, 26037, 313, 13, 785, 14, 32812, 14, 15042, 12, 9641, 12, 19, 14, 31499, 14, 198, 4023, 1378, 16244, 263, 13, 26037, 313, 13, 785, 14, 32812, 14, 15252, 12, 3245, 12, 5420, 4...
2.028736
174
import mykde
[ 11748, 616, 74, 2934, 628 ]
2.8
5
hello everyone, fighting~
[ 31373, 2506, 11, 198, 26594, 93, 198 ]
3.714286
7