content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Copyright (c) 2020, FADA-CATEC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 357, 66, 8, 12131, 11, 376, 26853, 12, 34, 1404, 2943, 198, 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.307126
11,549
from storage import db from storage.user import User
[ 6738, 6143, 1330, 20613, 198, 6738, 6143, 13, 7220, 1330, 11787, 628 ]
4.5
12
import math import torch import torch.nn as nn import torch.nn.functional as F from .non_local import NonLocal_Direct from .custom_activations import build_custom_activation from .custom_norm import select_norm
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 764, 13159, 62, 12001, 1330, 8504, 14565, 62, 13470, 198, 6738, 764, 23144, 62, 15791, 602, ...
3.616667
60
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # Th...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 15069, 416, 383, 5572, 37, 4912, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.436675
758
from pyarrow import Table from pyarrow.parquet import ParquetWriter import pyarrow as pa import pandas as pd from pyarrow import csv include_columns = ['zincid', 'smiles', 'dockscore'] delimiter = str(',') chunksize = 1048576*1000 file_stream = '/data/dockop_data/AmpC_screen_table.csv' input_stream_reader = InputStrea...
[ 6738, 12972, 6018, 1330, 8655, 198, 6738, 12972, 6018, 13, 1845, 21108, 1330, 2547, 21108, 34379, 198, 11748, 12972, 6018, 355, 14187, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 12972, 6018, 1330, 269, 21370, 198, 198, 17256, 62, ...
2.65625
256
# Copyright 2021 Hathor Labs # # 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, s...
[ 2, 15069, 33448, 36556, 273, 23500, 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, 74...
2.102509
1,395
# -*- coding: utf-8 -*- import unittest import time from appium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions if __name__ == '__main__': unittest.main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 198, 11748, 640, 198, 6738, 598, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 3210...
2.847619
105
import os from pathlib import Path from zipfile import ZipFile import boto3
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19974, 7753, 1330, 38636, 8979, 198, 11748, 275, 2069, 18, 628 ]
3.666667
21
""" Copyright (c) 2015 Michael Bright and Bamboo HR 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...
[ 37811, 198, 15069, 357, 66, 8, 1853, 3899, 17558, 290, 347, 27708, 15172, 11419, 628, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
3.889169
397
from configDmanager import import_config, Config from DemPipe.executor import SimplePipeExecutor
[ 6738, 4566, 35, 37153, 1330, 1330, 62, 11250, 11, 17056, 198, 198, 6738, 1897, 47, 3757, 13, 18558, 38409, 1330, 17427, 47, 3757, 23002, 38409, 628 ]
3.807692
26
from django.contrib import admin from .models import Artist # Register your models here. admin.site.register(Artist) admin.site.site_header = 'Bardhub Administration'
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 18902, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 28482, 13, 15654, 13, 30238, 7, 43020, 8, 198, 28482, 13, 15654, 13, 15654, 62, 25677, 796, 705, 33, 44...
3.574468
47
import os import os.path import sys if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 12417, 3419, 198 ]
2.666667
27
# Nama: Sofil Muna Aulia # NIM: 0110120115 # Kelas: Sistem Informasi 05 # Mulai baris ini hingga baris paling bawah # digunakan untuk mengetes fungsi yang telah dibuat. # Tidak perlu mengubah bagian ini. # Ketika dijalankan, program akan menampilkan contoh # pemanggilan fungsi dan solusi yang seharusnya. # Cocokkan ...
[ 2, 399, 1689, 25, 1406, 10379, 337, 9613, 317, 43640, 198, 2, 399, 3955, 25, 5534, 8784, 1264, 1314, 198, 2, 15150, 292, 25, 311, 396, 368, 45255, 17053, 8870, 628, 198, 198, 2, 17996, 1872, 2318, 271, 287, 72, 289, 278, 4908, 231...
2.404624
173
from collections import defaultdict import torch import jsonlines class unified_emotion(): """Class for the 'Unified Emotion Dataset'. Data from https://github.com/sarnthil/unify-emotion-datasets. """ def __init__(self, file_path, include=['grounded_emotions'], split_ratio=0.7, verbose=False, first_labe...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 28034, 198, 11748, 33918, 6615, 628, 198, 4871, 22706, 62, 368, 9650, 33529, 198, 220, 220, 220, 37227, 9487, 329, 262, 705, 3118, 1431, 2295, 9650, 16092, 292, 316, 4458, 6060, 422, 3740...
2
4,262
from matrix_bot_api.matrix_bot_api import MatrixBotAPI from matrix_bot_api.mhandler import MHandler import discord import yaml config = yaml.safe_load(open('config.yml')) matrix_client = MatrixBotAPI(config.get('matrix').get('username'), config.get('matrix').get('password'), config.get('matrix').get('homeserver')) d...
[ 6738, 17593, 62, 13645, 62, 15042, 13, 6759, 8609, 62, 13645, 62, 15042, 1330, 24936, 20630, 17614, 198, 6738, 17593, 62, 13645, 62, 15042, 13, 76, 30281, 1330, 337, 25060, 198, 11748, 36446, 198, 11748, 331, 43695, 198, 198, 11250, 796...
3.037313
134
import os import cv2 from PIL import Image import numpy as np from random import randint, choice, sample import albumentations as A from albumentations.pytorch import ToTensorV2 import torch from torch import nn from torch import optim from torchvision import datasets,transforms from torchvision.utils import save_imag...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4738, 1330, 43720, 600, 11, 3572, 11, 6291, 198, 11748, 435, 65, 1713, 602, 355, 317, 198, 6738, 435, 65, 1713, ...
1.866808
946
import base64 import hashlib import json import logging import requests import os import sys import six log = logging.getLogger(__name__) SENSITIVE_HEADERS = ['X-Token'] FILES_EXTENSIONS = ("png", "jpg", "svg", "txt") def resource_filter(func): """This decorator allows to you filter answer from RESOURCE.lis...
[ 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 2237, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 19...
2.561552
1,649
"""Utilities for Galaxy scripts """ import argparse import os import sys from galaxy.util.properties import find_config_file, load_app_properties DESCRIPTION = None ACTIONS = None ARGUMENTS = None DEFAULT_ACTION = None ARG_HELP_CONFIG_FILE = """ Galaxy config file (defaults to $GALAXY_ROOT/config/galaxy.yml if that ...
[ 37811, 18274, 2410, 329, 9252, 14750, 198, 37811, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 16161, 13, 22602, 13, 48310, 1330, 1064, 62, 11250, 62, 7753, 11, 3440, 62, 1324, 62, 48310, 198, 198, 3091...
2.997375
381
# ------------------------------------------ # IC3PO: IC3 for Proving Protocol Properties # ------------------------------------------ # Copyright (c) 2021 Aman Goel and Karem Sakallah, University of Michigan. # All rights reserved. # # Author: Aman Goel (amangoel@umich.edu), University of Michigan # ----------------...
[ 2, 20368, 35937, 198, 2, 12460, 18, 16402, 25, 12460, 18, 329, 1041, 1075, 20497, 24946, 198, 2, 20368, 35937, 198, 2, 15069, 357, 66, 8, 33448, 220, 42614, 1514, 417, 290, 49396, 76, 13231, 31840, 11, 2059, 286, 7055, 13, 220, 198,...
2.490722
485
import tensorflow as tf import numpy as np # Asymmetric mean squared error def bootstrap(full_model, non_nlp_model, X_full, y, score_func, n_boot=100, nlp_cols=None): """Resamples X to calculate `n_boot` pairs of full and non-nlp model scores Args: full_model (model): must have .predict method ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 1081, 26621, 19482, 1612, 44345, 4049, 628, 198, 4299, 6297, 26418, 7, 12853, 62, 19849, 11, 1729, 62, 21283, 79, 62, 19849, 11, 1395, 62, 12853, 1...
2.1293
843
max_parallel_processes = 100
[ 9806, 62, 1845, 29363, 62, 14681, 274, 796, 1802, 198 ]
2.9
10
import os import re import pandas as pd # type: ignore import requests BASE_URL = "http://api.census.gov/data/" # Core functions def get_asec(year: int, vars: list[str], show_url: bool = False) -> pd.DataFrame: """Get CPS ASEC microdata using the Census API.""" key = _get_key() _check_year(year, d...
[ 11748, 28686, 198, 11748, 302, 198, 198, 11748, 19798, 292, 355, 279, 67, 220, 1303, 2099, 25, 8856, 198, 11748, 7007, 628, 198, 33, 11159, 62, 21886, 796, 366, 4023, 1378, 15042, 13, 66, 7314, 13, 9567, 14, 7890, 30487, 628, 198, 2...
2.42913
1,023
# Copyright 2019 Nokia # 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, softwar...
[ 2, 15069, 13130, 26182, 198, 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, 7330, 257, 4...
3.876712
219
from typing import List import time
[ 6738, 19720, 1330, 7343, 198, 11748, 640, 628 ]
4.625
8
# -*- coding: utf-8 -*- from django.conf import settings from django.core.urlresolvers import reverse from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from horizon import exce...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8...
2.085813
1,445
""" Abstract Base Class """ import sqlite3 from abc import ABC from abc import abstractmethod from typing import Any from typing import List from budgethelper.models.database import Database
[ 37811, 198, 23839, 7308, 5016, 198, 37811, 198, 11748, 44161, 578, 18, 198, 6738, 450, 66, 1330, 9738, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 4466, 2978, 525, ...
4.020833
48
import paddle as torch import paddle import paddle.nn.functional as F import math def dense_patch_slices(image_size, patch_size, scan_interval): """ Enumerate all slices defining 2D/3D patches of size `patch_size` from an `image_size` input image. Args: image_size (tuple of int): dimensions of im...
[ 11748, 39517, 355, 28034, 198, 11748, 39517, 198, 11748, 39517, 13, 20471, 13, 45124, 355, 376, 198, 198, 11748, 10688, 198, 198, 4299, 15715, 62, 17147, 62, 82, 677, 274, 7, 9060, 62, 7857, 11, 8529, 62, 7857, 11, 9367, 62, 3849, 2...
2.274476
2,911
#!/usr/bin/python # -*- coding: UTF-8 -*- # # Copyright 2012 Google Inc. 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...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 2321, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, ...
3.137116
423
from __future__ import annotations import escnn.group from escnn.group import Representation, GroupElement, Group from escnn.group._numerical import decompose_representation_finitegroup from escnn.group._numerical import decompose_representation_general from typing import Callable, Any, List, Union, Dict, Tuple, Type...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 3671, 20471, 13, 8094, 198, 6738, 3671, 20471, 13, 8094, 1330, 10858, 341, 11, 4912, 20180, 11, 4912, 198, 6738, 3671, 20471, 13, 8094, 13557, 77, 6975, 605, 1330, 26969, 3455, 62, ...
2.770202
396
# # Copyright (c) 2015-2020 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
[ 2, 198, 2, 15069, 357, 66, 8, 1853, 12, 42334, 536, 959, 563, 4432, 330, 1279, 83, 2704, 273, 330, 5161, 14856, 400, 283, 13, 3262, 29, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, ...
2.574468
2,115
from modsim import *
[ 6738, 13743, 320, 1330, 1635, 628 ]
3.666667
6
import collections from textmining import normalizer from statistics import mean, variance from math import floor class WebEntity(collections.MutableMapping): """ Represents a web entity and all its potential attributes. Attributes are accessible as in a dictionary """ def __init__(self): ...
[ 11748, 17268, 198, 6738, 2420, 45374, 1330, 3487, 7509, 198, 6738, 7869, 1330, 1612, 11, 24198, 198, 6738, 10688, 1330, 4314, 628, 198, 198, 4871, 5313, 32398, 7, 4033, 26448, 13, 44, 18187, 44, 5912, 2599, 198, 220, 220, 220, 37227, ...
2.026744
3,627
import socket if __name__ == '__main__': get_remote_machine_info()
[ 11748, 17802, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 651, 62, 47960, 62, 30243, 62, 10951, 3419 ]
2.730769
26
#!/usr/bin/python import include import os import csv import sys import re from collections import Counter ERROR_MODEL_SIZE = len(include.EM_STR) INSTRUCTION_SIZE = len(include.ASID_STR) inst_type="rf" MAX_LOGS_SIZE=9999999999 # except: # e = sys.exc_info()[0] # #write_to_page( "<p>Error: %s</p>" % e )...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 2291, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 11748, 302, 198, 6738, 17268, 1330, 15034, 198, 198, 24908, 62, 33365, 3698, 62, 33489, 796, 18896, 7, 17256, 13,...
2.171662
367
from __future__ import annotations import asyncio import datetime from collections.abc import AsyncIterator from contextlib import asynccontextmanager from dataclasses import dataclass, field, replace from decimal import Decimal from typing import Any import aiohttp import aiohttp.web import pytest from yarl import U...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 30351, 952, 198, 11748, 4818, 8079, 198, 6738, 17268, 13, 39305, 1330, 1081, 13361, 37787, 198, 6738, 4732, 8019, 1330, 355, 2047, 535, 261, 5239, 37153, 198, 6738, 4818, 330, 28958, ...
2.81448
221
import time from contextlib import suppress, contextmanager from astropy import units as u from panoptes.utils import error from panoptes.utils.utils import get_quantity_value from panoptes.utils.time import current_time, wait_for_events, CountdownTimer from panoptes.pocs.observatory import Observatory from panoptes....
[ 11748, 640, 198, 6738, 4732, 8019, 1330, 18175, 11, 4732, 37153, 198, 6738, 6468, 28338, 1330, 4991, 355, 334, 198, 198, 6738, 3425, 404, 4879, 13, 26791, 1330, 4049, 198, 6738, 3425, 404, 4879, 13, 26791, 13, 26791, 1330, 651, 62, 40...
3.180272
294
import requests URL = 'https://scholar.googleusercontent.com/citations?view_op=export_citations&user=JtSAIqgAAAAJ&citsig=AMD79ooAAAAAYEerXzdIALaAeL3goamu28BB1p8NLHDg&hl=en' page = requests.get(URL) print(type(page.content))
[ 11748, 7007, 198, 198, 21886, 796, 705, 5450, 1378, 20601, 6192, 13, 13297, 43667, 13, 785, 14, 66, 20597, 30, 1177, 62, 404, 28, 39344, 62, 66, 20597, 5, 7220, 28, 41, 83, 4090, 40, 80, 70, 17922, 41, 5, 66, 896, 328, 28, 28075...
2.368421
95
import matplotlib.pyplot as plt import pandas as pd from .legend_picker import * from .helpers import *
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 764, 1455, 437, 62, 79, 15799, 1330, 1635, 198, 6738, 764, 16794, 364, 1330, 1635, 628 ]
2.944444
36
from google.appengine.ext import blobstore from google.appengine.ext import ndb from google.appengine.ext.webapp import blobstore_handlers from directory import Directory import webapp2 import jinja2 import os from google.appengine.api import users JINJA_ENVIRONMENT = jinja2.Environment( loader=jinja2.FileSystemLoader...
[ 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 44812, 8095, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 13, 12384, 1324, 1330, 44812, 8095, 62, 4993, 8116, 198, 6738, 8619, ...
3.007353
136
import uuid import numpy as np from matplotlib import pyplot as plt, cm def create_figure_and_axes(size_pixels): """Initializes a unique figure and axes for plotting.""" fig, ax = plt.subplots(1, 1, num=uuid.uuid4()) # Sets output image to pixel resolution. dpi = 100 size_inches = size_pixels / ...
[ 11748, 334, 27112, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 11, 12067, 628, 198, 4299, 2251, 62, 26875, 62, 392, 62, 897, 274, 7, 7857, 62, 79, 14810, 2599, 198, 220, 2...
1.986927
4,360
import PySimpleGUI as sg import os
[ 11748, 9485, 26437, 40156, 355, 264, 70, 198, 11748, 28686, 198 ]
3.181818
11
#!/usr/bin/env python3 import urllib.error import urllib.request
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 2956, 297, 571, 13, 18224, 198, 11748, 2956, 297, 571, 13, 25927, 198 ]
2.708333
24
from nose.tools import eq_, ok_ from funfactory.urlresolvers import reverse from airmozilla.main.models import Participant from .base import ManageTestCase
[ 6738, 9686, 13, 31391, 1330, 37430, 62, 11, 12876, 62, 198, 198, 6738, 1257, 69, 9548, 13, 6371, 411, 349, 690, 1330, 9575, 198, 198, 6738, 1633, 5908, 16496, 13, 12417, 13, 27530, 1330, 29880, 198, 6738, 764, 8692, 1330, 1869, 496, ...
3.533333
45
import networkx as nx import matplotlib.pyplot as plt CEMM_COL1 = ( 0/255, 85/255, 100/255) CEMM_COL2 = ( 0/255, 140/255, 160/255) CEMM_COL3 = ( 64/255, 185/255, 212/255) CEMM_COL4 = (212/255, 236/255, 242/255) DARK_CEMM_COL1 = (0/255, 43/255, 50/255) BAR_COL = (0.639, 0.639, 0.639) # ----------------------------...
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 34, 3620, 44, 62, 25154, 16, 796, 357, 220, 657, 14, 13381, 11, 220, 7600, 14, 13381, 11, 1802, 14, 13381, 8, 198, 34, 3620, ...
2.288344
163
import pytest pytestmark = [pytest.mark.django_db]
[ 11748, 12972, 9288, 198, 198, 9078, 9288, 4102, 796, 685, 9078, 9288, 13, 4102, 13, 28241, 14208, 62, 9945, 60, 628, 198 ]
2.454545
22
# automatically generated by the FlatBuffers compiler, do not modify # namespace: rpc import flatbuffers # /// \brief used for extra headers, ala HTTP # /// The use case for the core is to support # /// zipkin/google-Dapper style tracing # /// alows for binary search lookup # /// use with CreateVectorOfSortedTables...
[ 2, 6338, 7560, 416, 262, 21939, 36474, 364, 17050, 11, 466, 407, 13096, 198, 198, 2, 25745, 25, 374, 14751, 198, 198, 11748, 6228, 36873, 364, 198, 198, 2, 34013, 3467, 65, 3796, 973, 329, 3131, 24697, 11, 435, 64, 14626, 198, 2, ...
3.54955
111
#!/usr/bin/env python import argparse import os import os.path as osp import glob import numpy as np import sys import cPickle from time import time this_dir = osp.dirname(__file__) sys.path.insert(0, osp.join(this_dir, '../../external/py-faster-rcnn/lib/')) sys.path.insert(0, osp.join(this_dir, '../../src')) sys.path...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 269, 31686, ...
2.076215
1,955
from __future__ import unicode_literals import frappe
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 5306, 27768, 628 ]
3.666667
15
# -*- coding: utf-8 -*- def is_prime(number): """Check if a number is a prime number. Args: number (int): Number. Returns: bool: Return True if number is a prime number and False if not. """ if number <= 1: return False for x in range(2, number): if not number ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 4299, 318, 62, 35505, 7, 17618, 2599, 198, 220, 220, 220, 37227, 9787, 611, 257, 1271, 318, 257, 6994, 1271, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 2...
2.33121
157
""" Created on Thu Aug 2 19:42:10 2021 @author: Mohammed Ahsan ------------------------------------------------------- APP REVIEW SCRAPER - ioS and google Store. version : 1.0 Build name : RedSparrow ----- ------------------------------------------------------- """ from app_store_scraper import AppStore from pprint...
[ 37811, 198, 41972, 319, 26223, 2447, 220, 362, 678, 25, 3682, 25, 940, 33448, 198, 31, 9800, 25, 19773, 7900, 12807, 198, 3880, 19351, 6329, 198, 24805, 4526, 28206, 6374, 49, 2969, 1137, 532, 33245, 50, 290, 23645, 9363, 13, 220, 198...
2.960986
974
#!/usr/bin/env python # import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() version = {} with open("muspinsim/version.py") as fp: exec(fp.read(), version) setuptools.setup( name="muspinsim", version=version["__version__"], author="Simone Sturniolo",...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 1600, 21004, 2625, 40477, 12, 23, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890...
2.4941
678
from . import models from .InitalCondition import InitialCondition from .BoundaryCondition import PeriodicBC from .BoundaryCondition import DirichletBC from .BoundaryCondition import RobinBC from .BoundaryCondition import TimeDerivativeBC from .BoundaryCondition import NeumannBC from .PDELoss import PDELoss from .HPMLo...
[ 6738, 764, 1330, 4981, 198, 6738, 764, 818, 1287, 48362, 1330, 20768, 48362, 198, 6738, 764, 49646, 560, 48362, 1330, 18581, 291, 2749, 198, 6738, 764, 49646, 560, 48362, 1330, 36202, 488, 1616, 2749, 198, 6738, 764, 49646, 560, 48362, ...
2.878049
287
from motion_primitives_py import MotionPrimitive import numpy as np import matplotlib.pyplot as plt import sympy as sym from scipy.linalg import expm import scipy.integrate as integrate class EuclideanMotionPrimitive(MotionPrimitive): """ A motion primitive that is just a straight line, with the norm of the d...
[ 6738, 6268, 62, 19795, 20288, 62, 9078, 1330, 20843, 23828, 1800, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 10558, 88, 355, 5659, 198, 6738, 629, 541, 88, 13, 75, 129...
2.59215
586
import numpy as np from matplotlib import pyplot as plt from koala.pointsets import generate_bluenoise from koala.voronization import generate_lattice from koala.graph_color import edge_color from koala.plotting import plot_lattice, plot_vertex_indices, plot_degeneracy_breaking, plot_plaquettes, line_intersection from...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 6738, 41727, 6081, 13, 13033, 1039, 1330, 7716, 62, 65, 2290, 23397, 786, 198, 6738, 41727, 6081, 13, 20867, 261, 1634, 1330, 7716,...
2.652949
729
""" Exercício 3. Escreva um programa que lê duas notas de vários alunos e armazena tais notas em um dicionário, onde a chave é o nome do aluno. A entrada de dados deve terminar quando for lida uma string vazia como nome. Escreva uma função que retorna a média do aluno, dado seu nome. """ if __name__ ==...
[ 37811, 198, 220, 220, 220, 1475, 2798, 8836, 66, 952, 513, 13, 16319, 260, 6862, 23781, 1430, 64, 8358, 300, 25792, 7043, 292, 407, 292, 390, 410, 6557, 380, 418, 435, 403, 418, 304, 3211, 1031, 8107, 256, 15152, 407, 292, 795, 2378...
2.272031
261
import json import os.path import syslog
[ 11748, 33918, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 6404, 628, 198 ]
3.307692
13
""" -------------------------------------------------- File Name : grid_search.py Creation Date : 2019-06-27 N 10:37 Last Modified : 2019-06-27 N 10:41 Created By : Joonatan Samuel -------------------------------------------------- """ from sklearn.model_selection import cross_validate from pprint import...
[ 37811, 198, 220, 20368, 1783, 438, 198, 220, 9220, 6530, 1058, 10706, 62, 12947, 13, 9078, 198, 220, 21582, 7536, 1058, 13130, 12, 3312, 12, 1983, 399, 838, 25, 2718, 198, 220, 4586, 40499, 1058, 13130, 12, 3312, 12, 1983, 399, 838, ...
2.285539
816
# ------------------------------------------------------------------------------ # Functions for parsing and rendering inline markup. # ------------------------------------------------------------------------------ import html import hashlib import re # ---------------------------------------------------------------...
[ 2, 16529, 26171, 198, 2, 40480, 329, 32096, 290, 14837, 26098, 41485, 13, 198, 2, 16529, 26171, 198, 198, 11748, 27711, 198, 11748, 12234, 8019, 198, 11748, 302, 628, 198, 2, 16529, 26171, 198, 2, 23603, 14700, 329, 13720, 26098, 41485,...
2.286506
1,082
#!/usr/bin/env python import argparse import FresnoPython if __name__ == '__main__': parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('--website', action='store_true', help='Open the website.') parser.add_argument('--map', action='store_true', help='Open the loca...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 1822, 29572, 198, 11748, 39927, 37906, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677...
3.143791
153
# dispatch.py """ patterns to parse: 1. func arg1 arg2 key1=val1 key2=val2 2. func arg1 arg2 key1:val1 key2:val2 3. func arg1 arg2 dict(key1=val1, key2=val2) 4. obj.func arg1 arg2 key1=val1 key2=val2 """ obj = Klass() gdict = {'func': func, 'obj': obj} s1 = 'func arg1 arg2 key1=val1 key2=val2' head = lamb...
[ 2, 27965, 13, 9078, 198, 198, 37811, 198, 198, 33279, 82, 284, 21136, 25, 198, 198, 16, 13, 25439, 1822, 16, 1822, 17, 1994, 16, 28, 2100, 16, 1994, 17, 28, 2100, 17, 198, 198, 17, 13, 25439, 1822, 16, 1822, 17, 1994, 16, 25, ...
2.079096
177
from zeep import Client from zeep.transports import Transport from zeep import xsd from zeep import helpers import xmltodict import json
[ 6738, 41271, 538, 1330, 20985, 201, 198, 6738, 41271, 538, 13, 7645, 3742, 1330, 19940, 201, 198, 6738, 41271, 538, 1330, 2124, 21282, 201, 198, 6738, 41271, 538, 1330, 49385, 201, 198, 11748, 2124, 76, 2528, 375, 713, 201, 198, 11748, ...
1.825
120
from . import phpast as php import ast as py unary_ops = { '~': py.Invert, '!': py.Not, '+': py.UAdd, '-': py.USub, } bool_ops = { '&&': py.And, '||': py.Or, 'and': py.And, 'or': py.Or, } cmp_ops = { '!=': py.NotEq, '!==': py.NotEq, '<>': py.NotEq, '<': py.Lt, '<='...
[ 6738, 764, 1330, 872, 30119, 355, 39347, 198, 11748, 6468, 355, 12972, 198, 198, 403, 560, 62, 2840, 796, 1391, 198, 220, 220, 220, 705, 93, 10354, 12972, 13, 818, 1851, 11, 198, 220, 220, 220, 705, 0, 10354, 12972, 13, 3673, 11, ...
1.672372
409
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals range = getattr(__builtins__, 'xrange', range) # end of py2 compatability boilerplate import logging import numpy as np from matrixprofile impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834,...
2.247886
6,624
import sale import purchase import account_invoice import account_voucher import stock import wizard import partner import res_config
[ 11748, 5466, 198, 11748, 5001, 198, 11748, 1848, 62, 16340, 2942, 198, 11748, 1848, 62, 85, 280, 2044, 198, 11748, 4283, 198, 11748, 18731, 198, 11748, 5212, 198, 11748, 581, 62, 11250 ]
4.15625
32
import array numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] numbers_array = array('i', numbers) # ERROR
[ 11748, 7177, 201, 198, 201, 198, 77, 17024, 796, 685, 15, 11, 352, 11, 362, 11, 513, 11, 604, 11, 642, 11, 718, 11, 767, 11, 807, 11, 860, 60, 201, 198, 77, 17024, 62, 18747, 796, 7177, 10786, 72, 3256, 3146, 8, 1303, 33854, 2...
2.191489
47
import argparse import pickle import re from collections import Counter from os import walk, mkdir, makedirs from os.path import relpath, join, exists from typing import Set from tqdm import tqdm from docqa import config from docqa.config import CORPUS_DIR from docqa.data_processing.text_utils import NltkAndPunctToke...
[ 11748, 1822, 29572, 198, 11748, 2298, 293, 198, 11748, 302, 198, 6738, 17268, 1330, 15034, 198, 6738, 28686, 1330, 2513, 11, 33480, 15908, 11, 285, 4335, 17062, 198, 6738, 28686, 13, 6978, 1330, 823, 6978, 11, 4654, 11, 7160, 198, 6738,...
2.703552
732
""" See Challenge ROADEF 2001 (FAPP: Problème d'affectation de fréquences avec polarization) Examples of Execution: python3 Fapp.py -data=Fapp_ex2.json python3 Fapp.py -data=Fapp_ex2.json -variant=short """ from pycsp3 import * domains, routes, hard_constraints, soft_constraints = data domains = [domains[route.d...
[ 37811, 198, 6214, 13879, 15107, 19266, 37, 5878, 357, 37, 24805, 25, 1041, 2436, 14064, 1326, 288, 6, 2001, 478, 341, 390, 1216, 2634, 421, 3007, 257, 35138, 42704, 8, 198, 198, 27730, 286, 37497, 25, 198, 220, 21015, 18, 376, 1324, ...
2.566346
1,040
'Generated protocol buffer code.' from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.Fil...
[ 198, 6, 8645, 515, 8435, 11876, 2438, 2637, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 355, 4808, 20147, 1968, 273, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 3275, 355, 4808, 20500, 198, 6738, 23645, 13, 11235, 672, 3046, ...
2.763974
6,995
import pytest @pytest.mark.asyncio
[ 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 292, 13361, 952, 198 ]
2.466667
15
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 6738, 42625, 14208, 13, 10414, 1330, ...
3.111111
45
""" Part 1 of the tweet preprocessing phase Lang: py3 """ import json import re import csv import sys OUTPUT_DIR = os.path.join(os.getcwd(), 'part1_output') EMOJI_PATTERN = re.compile("[" u"\U0001F600-\U0001F64F" # emoticons u"\U0001F300-\U0001F5FF" # symbols & pictographs u"\U0001F680-\U00...
[ 37811, 198, 7841, 352, 286, 262, 6126, 662, 36948, 7108, 198, 43, 648, 25, 12972, 18, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 198, 2606, 7250, 3843, 62, 34720, 796, 28686, 1...
2.470389
1,182
import numpy as np import pandas as pd import matplotlib.pyplot as plt import sys import pickle # Verify the number of command line arguments assert len(sys.argv) == 5 num_agents_path = sys.argv[1] T_path = sys.argv[2] m_path = sys.argv[3] output_path_root = sys.argv[4] data = {} with open(num_agents_path, 'rb') as...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 11748, 25064, 198, 11748, 2298, 293, 198, 198, 2, 49899, 262, 1271, 286, 3141, 1627, 7159, 19...
2.001947
1,027
# Copyright 2020 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, 12131, 3012, 11419, 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, 733...
2.634941
767
import random import sys import argparse import numpy as np import torch from torch import nn from torch import optim from torch.autograd import Variable from torch.nn import functional as F from .basic import ModelBase
[ 11748, 4738, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 1330, 6436, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, ...
3.964286
56
from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response class PageNumberPaginationCustom(PageNumberPagination): """Pagination. Gives current page number and last page number. """
[ 6738, 1334, 62, 30604, 13, 79, 363, 1883, 1330, 7873, 15057, 47, 363, 1883, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 628, 198, 4871, 7873, 15057, 47, 363, 1883, 15022, 7, 9876, 15057, 47, 363, 1883, 2599, 198, 220, 220, 2...
3.558824
68
from redbot import version_info, VersionInfo from redbot.core.bot import Red from redbot.core.errors import CogLoadError from .voicetools import VoiceTools
[ 6738, 2266, 13645, 1330, 2196, 62, 10951, 11, 10628, 12360, 198, 6738, 2266, 13645, 13, 7295, 13, 13645, 1330, 2297, 198, 6738, 2266, 13645, 13, 7295, 13, 48277, 1330, 327, 519, 8912, 12331, 198, 198, 6738, 764, 13038, 291, 316, 10141, ...
3.511111
45
# Definition for a binary tree node.
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 628, 198 ]
3.9
10
# python-mqlight - high-level API by which you can interact with MQ Light # # Copyright 2015-2017 IBM Corp. # # 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/licens...
[ 198, 2, 21015, 12, 76, 80, 2971, 532, 1029, 12, 5715, 7824, 416, 543, 345, 460, 9427, 351, 337, 48, 4401, 198, 2, 198, 2, 15069, 1853, 12, 5539, 19764, 11421, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13...
2.450199
1,757
import xml.etree.ElementTree as ET """ elemToString This takes in content, a node, and returns the inner text """ """ cleanElemToString This takes in content, a node, and returns the inner text with only one space between words and no line breaks """ """ stageDirInLine This gets the stage directions in the middle o...
[ 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 37811, 198, 68, 10671, 2514, 10100, 198, 1212, 2753, 287, 2695, 11, 257, 10139, 11, 290, 5860, 262, 8434, 2420, 198, 37811, 198, 198, 37811, 198, 27773, 36, 10671, 25...
2.964784
1,363
""" 1 - Faça um programa que determine e mostre os cinco primeiros múltiplos de 3, considerando números maiores que 0. """ soma = 0 for num in range(1,6): numero = num * 3 soma += 1 print(numero)
[ 37811, 198, 16, 532, 18350, 50041, 23781, 1430, 64, 8358, 5004, 304, 749, 260, 28686, 269, 259, 1073, 6994, 72, 4951, 285, 21356, 2528, 24705, 418, 390, 513, 11, 2074, 25440, 299, 21356, 647, 418, 285, 1872, 2850, 8358, 657, 13, 198, ...
2.418605
86
import json import functools from pprint import pprint from os.path import join, exists from sqlalchemy import Column, Integer, create_engine, Unicode, TypeDecorator from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from sqlalchemy_media import Image, StoreManager, FileSy...
[ 11748, 33918, 198, 11748, 1257, 310, 10141, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 7160, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 2251, 62, 18392, 11, 34371, 11, 5994, ...
2.71371
496
from django.contrib import admin from .models import * urlpatterns = [ ]
[ 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 1635, 198, 198, 6371, 33279, 82, 796, 685, 628, 220, 220, 628, 198, 198, 60, 220, 198 ]
2.625
32
import json from requests import Session from lib.base import SaltAction
[ 11748, 33918, 198, 6738, 7007, 1330, 23575, 198, 198, 6738, 9195, 13, 8692, 1330, 13754, 12502, 628 ]
4.411765
17
# @Title: 链表求和 (Sum Lists LCCI) # @Author: 18015528893 # @Date: 2021-02-12 21:23:09 # @Runtime: 60 ms # @Memory: 14.8 MB # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
[ 198, 2, 2488, 19160, 25, 16268, 241, 122, 26193, 101, 162, 109, 224, 161, 240, 234, 357, 13065, 44968, 406, 4093, 40, 8, 198, 2, 2488, 13838, 25, 1248, 486, 2816, 2078, 49682, 198, 2, 2488, 10430, 25, 33448, 12, 2999, 12, 1065, 23...
2.031496
127
#!/usr/bin/env python # # Copyright 2015 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 1853, 3517, 32250, 10501, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 42...
2.653418
1,258
import numpy as np from ad.forward_mode import Ad_array
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 512, 13, 11813, 62, 14171, 1330, 1215, 62, 18747, 628, 628, 198 ]
3.05
20
import argparse import xarray as xr """ Join and convert the NETCDF3_CLASSIC files into a large NETCDF4 file (with full HDF5 API) """ parser = argparse.ArgumentParser(description='Combine data') parser.add_argument('-i', '--input', required=True, help='Path to folder containing input files; also output folder') args...
[ 11748, 1822, 29572, 198, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 37811, 198, 18234, 290, 10385, 262, 30502, 34, 8068, 18, 62, 31631, 2149, 3696, 656, 257, 1588, 30502, 34, 8068, 19, 2393, 357, 4480, 1336, 5572, 37, 20, 7824,...
2.779006
181
from automationlookup.models import UserLookup from django.conf import settings
[ 6738, 22771, 5460, 929, 13, 27530, 1330, 11787, 8567, 929, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 628 ]
4.263158
19
# -------------------------------------------------------- # Tensorflow iCAN # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os os....
[ 2, 20368, 22369, 198, 2, 309, 22854, 11125, 1312, 44565, 198, 2, 49962, 739, 383, 17168, 13789, 685, 3826, 38559, 24290, 329, 3307, 60, 198, 2, 20368, 22369, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, ...
2.196439
1,741
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-28 14:57 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 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, 1584, 12, 2931, 12, 2078, 1478, 25, 3553, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
#850×480 ANCHO=850 #x4 = 3400 ALTO=480 #x3 = 1440 VERDE=[0,255,0] ROJO=[255,0,0] AZUL=[0,0,255] AMARILLO=[255,255,0] AZUL_2=[0,255,255] NEGRO=[0,0,0] BLANCO=[255,255,255] GRIS=[180,180,180] WIN = False
[ 2, 25764, 12906, 22148, 198, 1565, 44899, 28, 25764, 220, 220, 1303, 87, 19, 796, 4974, 405, 198, 1847, 10468, 28, 22148, 220, 220, 220, 1303, 87, 18, 796, 49557, 198, 198, 5959, 7206, 41888, 15, 11, 13381, 11, 15, 60, 198, 13252, ...
1.704918
122
from .context import Directed, Undirected, edmonds_karp from unittest import TestCase # Figure 6.13 from The Algorithm Design Manual CASES = [ { 'class': Undirected, 'edges': [ [0, 1, 5], [0, 4, 12], [1, 2, 7], [1, 3, 9], [2, 3, 3], ...
[ 6738, 764, 22866, 1330, 4128, 276, 11, 13794, 1060, 276, 11, 1225, 42620, 62, 74, 5117, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 2, 11291, 718, 13, 1485, 422, 383, 978, 42289, 8495, 17969, 198, 34, 1921, 1546, 796, 685...
1.382867
1,144
regions = {} while True: in_line = input() if 'Aggregate' == in_line: break [region, shell] = filter(None, in_line.split(" ")) if region not in regions: regions[region] = [] if int(shell) not in regions[region]: regions[region].append(int(shell)) print(("\n".join( ...
[ 2301, 507, 796, 23884, 628, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 287, 62, 1370, 796, 5128, 3419, 198, 220, 220, 220, 611, 705, 46384, 49373, 6, 6624, 287, 62, 1370, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, ...
2.390374
187
from models import db, User import bcrypt import readline # global variables that contains several types of commands create_commands = [ "create", "create_user", "createuser", "adduser", "add" ] update_commands = [ "update", "update_user", "updateuser", "passwd" ] delete_commands = [ "delete", "delete_user", "deluser...
[ 6738, 4981, 1330, 20613, 11, 11787, 198, 11748, 275, 29609, 198, 11748, 1100, 1370, 628, 198, 2, 3298, 9633, 326, 4909, 1811, 3858, 286, 9729, 198, 17953, 62, 9503, 1746, 796, 685, 366, 17953, 1600, 366, 17953, 62, 7220, 1600, 366, 17...
2.26639
2,410
import subprocess from typing import Optional, Dict class ExternalProcessExecError(RuntimeError): """Error when an external process fails to run successfully""" def run(cmd: str, suppress_error=False, env: Optional[Dict[str, str]] = None) -> (str, str): """Runs an external command and returns back its stdou...
[ 11748, 850, 14681, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 628, 198, 4871, 34579, 18709, 23002, 12331, 7, 41006, 12331, 2599, 198, 220, 220, 220, 37227, 12331, 618, 281, 7097, 1429, 10143, 284, 1057, 7675, 37811, 628, 198, 4299, 10...
2.915129
271
from basic import Basic
[ 198, 6738, 4096, 1330, 14392, 628, 220, 220, 220, 220, 198 ]
2.818182
11
import pandas as pd pd.set_option('display.max_columns', None) import numpy as np import matplotlib.pyplot as plt import seaborn as sns import urllib.request import os.path from Selecting import * # Download data url = "https://raw.githubusercontent.com/CnrLwlss/Warren_2019/master/shiny/dat.txt" outfile = "dat_py.txt...
[ 11748, 19798, 292, 355, 279, 67, 198, 30094, 13, 2617, 62, 18076, 10786, 13812, 13, 9806, 62, 28665, 82, 3256, 6045, 8, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384,...
2.383596
1,207
"""GTZAN-Genre Dataset Loader .. admonition:: Dataset Info :class: dropdown This dataset was used for the well known genre classification paper: .. code-block:: latex "Musical genre classification of audio signals " by G. Tzanetakis and P. Cook in IEEE Transactions on Audio and Speech Pr...
[ 37811, 19555, 57, 1565, 12, 13746, 260, 16092, 292, 316, 8778, 263, 198, 198, 492, 37202, 653, 3712, 16092, 292, 316, 14151, 198, 220, 220, 220, 1058, 4871, 25, 4268, 2902, 628, 220, 220, 220, 770, 27039, 373, 973, 329, 262, 880, 19...
2.433871
1,240
from flask import Blueprint, render_template, redirect, url_for, flash from flask_restful import reqparse from markdown import markdown from model.Board import Board from model.BoardList import BoardList from model.BoardListCatalog import BoardCatalog from model.Post import render_for_catalog from model.Slip import ge...
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 11, 7644, 198, 6738, 42903, 62, 2118, 913, 1330, 43089, 29572, 198, 6738, 1317, 2902, 1330, 1317, 2902, 198, 198, 6738, 2746, 13, 29828, 1330, 5926, 198, 6...
3.182171
258
"Amharic config with language-specific information." from pynini import * from pynini.lib import byte from config import utils GRAPHEMES = union("'", "-", "ሀ", "ሁ", "ሂ", "ሃ", "ሄ", "ህ", "ሆ", "ለ", "ሉ", "ሊ", "ላ", "ሌ", "ል", "ሎ", "ሏ", "ሐ", "ሑ", "ሒ", "ሓ", "ሔ", "ሕ", "ሖ",...
[ 1, 5840, 9869, 291, 4566, 351, 3303, 12, 11423, 1321, 526, 198, 198, 6738, 279, 2047, 5362, 1330, 1635, 198, 6738, 279, 2047, 5362, 13, 8019, 1330, 18022, 198, 6738, 4566, 1330, 3384, 4487, 198, 198, 10761, 31300, 3620, 1546, 796, 644...
1.267018
4,363