content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from datetime import datetime from typing import Optional, Dict, List, Union from schema import Schema, Or from src.monitorables.nodes.node import Node from src.utils.exceptions import InvalidDictSchemaException def get_int_metric_attributes(self) -> List[str]: """ :return: A list of all variabl...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 11, 7343, 11, 4479, 198, 198, 6738, 32815, 1330, 10011, 2611, 11, 1471, 198, 198, 6738, 12351, 13, 41143, 2977, 13, 77, 4147, 13, 17440, 1330, 19081, 198...
2.378279
1,639
import pickle import numpy as np import os def _analyze_query_point_assignment( query_data_dict: dict, init_Rdata_dict: dict, init_Edata_dict: dict, num_R: int, query_point_assignment_array: np.ndarray, root: str, n_points_to_copy=50, ): """ Analyzes and visualizes qDCA results. ...
[ 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 628, 198, 4299, 4808, 38200, 2736, 62, 22766, 62, 4122, 62, 562, 16747, 7, 198, 220, 220, 220, 12405, 62, 7890, 62, 11600, 25, 8633, 11, 198, 220, 220, 220, 23...
1.8247
4,923
from .models import * from decorator import * from app_goods.views import getGoodsByID #
[ 6738, 764, 27530, 1330, 1635, 198, 6738, 11705, 1352, 1330, 1635, 198, 198, 6738, 598, 62, 11274, 82, 13, 33571, 1330, 651, 10248, 82, 3886, 2389, 198, 198, 2, 220, 628, 628, 628, 628, 628, 628 ]
2.861111
36
#!/usr/bin/env python3 ############################################################################### # # Category Summaries # # ############################################################################### import datetime import io import json import logging import pprint import sys from typing import Dict, Any ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 198, 2, 21743, 5060, 76, 3166, 198, 2, 198, 2, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 11748, 4818, 8079, 198, 11748, 33245, ...
2.852041
588
from typing import ParamSpecArgs from flask_restful import Resource, reqparse from models.hotel import HotelModel from flask_jwt_extended import jwt_required from models.site import SiteModel from resources.filtros import * import sqlite3 path_params = reqparse.RequestParser() path_params.add_argument('cidade', type=s...
[ 6738, 19720, 1330, 25139, 22882, 42035, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 43089, 29572, 198, 6738, 4981, 13, 8940, 417, 1330, 12696, 17633, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 474, 46569, 62, 35827, 19...
3.187817
197
from __future__ import absolute_import, print_function, unicode_literals if __name__ == "__main__": from .cli import cli cli.wormhole() else: # raise ImportError('this module should not be imported') pass
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 422, 764, 44506, 1330, 537, 72, 198, 220, 220, 22...
2.986486
74
import networkx as nx import utils.connectivity_metrics as connectivity_metric from platypus import NSGAII, EpsMOEA, NSGAIII, EpsNSGAII, Problem, Dominance, Subset, TournamentSelector, \ HypervolumeFitnessEvaluator, Archive import statistics import multiprocessing as mp G = nx.read_adjlist("input/Ventresca/Barabas...
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 3384, 4487, 13, 8443, 3458, 62, 4164, 10466, 355, 19843, 62, 4164, 1173, 198, 6738, 40315, 4464, 385, 1330, 10896, 9273, 3978, 11, 43427, 11770, 16412, 11, 10896, 9273, 10855, 11, 43427, 8035, ...
2.672316
354
# Generated by Django 3.2.2 on 2021-09-02 15:10 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 17, 319, 33448, 12, 2931, 12, 2999, 1315, 25, 940, 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 numpy as np from mcerp import * from uncertainties.core import AffineScalarFunc
[ 11748, 299, 32152, 355, 45941, 198, 6738, 285, 2189, 79, 1330, 1635, 198, 6738, 36553, 13, 7295, 1330, 6708, 500, 3351, 282, 283, 37, 19524, 198 ]
3.346154
26
import requests import re from bs4 import BeautifulSoup
[ 11748, 7007, 198, 11748, 302, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198 ]
3.733333
15
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship # TODO: db_uri # dialect+driver://username:password@host:port/database?charset=utf8 DB_URI = 'mysql+pymysql://root:root123@127.0.0.1:33...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 11, 29201, 11, 34142, 11, 10903, 11, 8708, 9218, 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,...
2.756447
349
# coding: utf-8 from __future__ import unicode_literals from ...lemmatizer import read_index, read_exc import pytest
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 2644, 293, 3020, 265, 7509, 1330, 1100, 62, 9630, 11, 1100, 62, 41194, 198, 198, 11748, 12972, 9288, 628, 628, 628, 628...
2.930233
43
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 19...
3.666667
690
import numpy as np from keras.models import Sequential from keras.layers import LSTM, Dense, Dropout def visualize_training_results(results): """ Plots the loss and accuracy for the training and testing data """ history = results.history plt.figure(figsize=(12,4)) plt.plot(history['val_loss']) ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 406, 2257, 44, 11, 360, 1072, 11, 14258, 448, 198, 198, 4299, 38350, 62, 34409, 62, 43420, 7, 43420, 2599, ...
2.222892
830
import torch import torch.nn.functional as F self_attn_func = SelfAttnFunc.apply
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 198, 198, 944, 62, 1078, 77, 62, 20786, 796, 12189, 8086, 77, 37, 19524, 13, 39014, 198 ]
2.896552
29
from datetime import datetime from app import db from app.utils import misc
[ 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 598, 1330, 20613, 201, 198, 6738, 598, 13, 26791, 1330, 12747, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198 ]
2.78125
32
import torch.nn as nn import torch from utils import Flatten , Unflatten , weights_init , down_conv , up_conv
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 198, 6738, 3384, 4487, 1330, 1610, 41769, 837, 791, 2704, 41769, 837, 19590, 62, 15003, 837, 866, 62, 42946, 837, 510, 62, 42946 ]
3.30303
33
"""This module contains helper functions and utilities for nelpy.""" __all__ = ['spatial_information', 'frange', 'swap_cols', 'swap_rows', 'pairwise', 'is_sorted', 'linear_merge', 'PrettyDuration', 'ddt_asa', 'get_contig...
[ 37811, 1212, 8265, 4909, 31904, 5499, 290, 20081, 329, 299, 417, 9078, 526, 15931, 198, 198, 834, 439, 834, 796, 37250, 2777, 34961, 62, 17018, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 8310, 858, 3256, 198, ...
2.436577
18,968
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 220, 220, 15069, 357, 66, 8, 12131, 350, 37382, 47, 37382, 46665, 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, ...
2.780591
711
import pandas as pd import sqlite3 from pandas import DataFrame n_conn = sqlite3.connect('northwind_small.sqlite3') n_curs = n_conn.cursor() # What are the ten most expensive items (per unit price) in the database? query = """ SELECT ProductName, UnitPrice FROM Product ORDER BY UnitPrice DESC LIMIT 10 """ n_curs.ex...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 44161, 578, 18, 198, 6738, 19798, 292, 1330, 6060, 19778, 220, 198, 198, 77, 62, 37043, 796, 44161, 578, 18, 13, 8443, 10786, 43588, 7972, 62, 17470, 13, 25410, 578, 18, 11537, 198, 77, 6...
2.990115
607
from django.contrib import admin from django.urls import path from .models import BookLoan, Library from .views import CustomView
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 27530, 1330, 4897, 43, 24611, 11, 10074, 198, 6738, 764, 33571, 1330, 8562, 7680, 628, 628 ]
3.621622
37
import os import datetime import logging import json import uuid from installed_clients.WorkspaceClient import Workspace as Workspace from installed_clients.KBaseReportClient import KBaseReport from installed_clients.annotation_ontology_apiServiceClient import annotation_ontology_api import MergeMetabolicAnnotations....
[ 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 198, 6738, 6589, 62, 565, 2334, 13, 23044, 10223, 11792, 1330, 10933, 10223, 355, 10933, 10223, 198, 6738, 6589, 62, 565, 2334, 13, ...
3.931034
87
from models.Model import Player, Group, Session, engine
[ 6738, 4981, 13, 17633, 1330, 7853, 11, 4912, 11, 23575, 11, 3113, 198 ]
4.307692
13
from unittest.mock import Mock, patch import numpy as np from game.models import ValuePolicyModel
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 11, 8529, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 983, 13, 27530, 1330, 11052, 36727, 17633, 628 ]
3.482759
29
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item, Field def main(): item = TopicItem() pass if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 15881, 276, 3709, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 2638, 1378, 15390, 13, 1416, 2416, 88, 13, 2398, 14, 2...
2.601942
103
import json import logging import dateutil.parser from datetime import datetime # Our imports from emission.core.get_database import get_profile_db, get_client_db, get_pending_signup_db import emission.clients.common
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 3128, 22602, 13, 48610, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2, 3954, 17944, 198, 6738, 25592, 13, 7295, 13, 1136, 62, 48806, 1330, 651, 62, 13317, 62, 9945, 11, 651, 62, 1636...
3.460317
63
import setuptools setuptools.setup(name='advent_of_code')
[ 11748, 900, 37623, 10141, 198, 2617, 37623, 10141, 13, 40406, 7, 3672, 11639, 324, 1151, 62, 1659, 62, 8189, 11537 ]
2.85
20
#!/usr/bin/env python3 """ sanity check script """ import vpp_papi
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 34182, 2198, 4226, 37227, 198, 11748, 410, 381, 62, 79, 15042, 198 ]
2.833333
24
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function # Python 2/3 compatibility __doc__ = """ Examples of design matrices specification and and computation (event-related design, FIR design, etc) Re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 25357, 25, 900, ...
2.328374
941
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from collections import defaultdict from typing import List, Optional, Tuple from unittest.mock import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, ...
2.242109
5,671
from app import app from app.database.db import Database if __name__ == "__main__": db = Database() db.create_tables() db.create_admin() app.run(debug=True)
[ 6738, 598, 1330, 598, 198, 6738, 598, 13, 48806, 13, 9945, 1330, 24047, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 20613, 796, 24047, 3419, 198, 220, 220, 220, 20613, 13, 17953, 62, 83, 29...
2.636364
66
# -*- coding: utf-8 -*- # flake8: noqa from flask import Flask from flask_themes2 import Themes import config from util.auth import is_admin from util.converter import RegexConverter from util.csrf import generate_csrf_token app = Flask(__name__.split('.')[0]) app.secret_key = config.SECRET_KEY app.url_map.converter...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 1169, 6880, 17, 1330, 383, 6880, 198, 198, 11748, 4566, 198, 6738, 7736, 13, 1843...
2.666667
255
""" This is how I'm gonna schedule hours IDEA: import the format example file that I'm using and is saved in the same directory """ import csv import pprint from tkinter import * from tkinter.filedialog import askopenfilename import StringProcessing """ Receives a file location, opens the csv The format looks l...
[ 37811, 198, 1212, 318, 703, 314, 1101, 8066, 7269, 2250, 198, 198, 14114, 32, 25, 1330, 262, 5794, 1672, 2393, 326, 314, 1101, 1262, 290, 318, 7448, 287, 262, 976, 8619, 628, 198, 37811, 198, 198, 11748, 269, 21370, 198, 11748, 279, ...
2.305239
439
from pathlib import Path from bsmu.bone_age.models import constants IMAGE_DIR = Path('C:/MyDiskBackup/Projects/BoneAge/Data/SmallImages500_NoPads') TRAIN_DATA_CSV_PATH = constants.TRAIN_DATA_CSV_PATH VALID_DATA_CSV_PATH = constants.VALID_DATA_CSV_PATH TEST_DATA_CSV_PATH = constants.TEST_DATA_CSV_PATH BATC...
[ 6738, 3108, 8019, 1330, 10644, 201, 198, 201, 198, 6738, 275, 5796, 84, 13, 15992, 62, 496, 13, 27530, 1330, 38491, 201, 198, 201, 198, 3955, 11879, 62, 34720, 796, 10644, 10786, 34, 14079, 3666, 40961, 7282, 929, 14, 16775, 82, 14, ...
2.357955
176
from matplotlib import pyplot as plt def nisa_projection(years=30, annual_deposit=80, initial_budget=100): """ This is a function to plot deposit of TSUMITATE NISA Parameters: --------------- years: integer How many years are you going to continue? annual_depoist: integer Annual deposit in...
[ 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 4299, 299, 9160, 62, 16302, 295, 7, 19002, 28, 1270, 11, 5079, 62, 10378, 7434, 28, 1795, 11, 4238, 62, 37315, 28, 3064, 2599, 198, 220, 37227, 198, 220, 770, 318,...
2.288386
1,016
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: math_ops.cc """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from ten...
[ 37811, 37906, 7917, 11799, 1088, 309, 22854, 37535, 39628, 13, 198, 198, 1212, 2393, 318, 337, 16219, 8881, 24700, 1137, 11617, 0, 2141, 407, 4370, 13, 198, 20556, 327, 4880, 2723, 2393, 25, 10688, 62, 2840, 13, 535, 198, 37811, 198, ...
2.094776
167,985
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from uuid import uuid4 from sqlalchemy.dialects.postgresql import ARRAY, UUID from sqlalchemy.ext.declara...
[ 2, 770, 2393, 318, 636, 286, 1423, 3713, 13, 198, 2, 15069, 357, 34, 8, 6244, 532, 33448, 327, 28778, 198, 2, 198, 2, 1423, 3713, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 13096, 340, 739, 262, 2846,...
2.570533
638
import paddle.fluid as fluid def loss(x, y, clip_value=10.0): """Calculate the sigmoid cross entropy with logits for input(x). Args: x: Variable with shape with shape [batch, dim] y: Input label Returns: loss: cross entropy logits: prediction """ logits = fluid.l...
[ 11748, 39517, 13, 35522, 312, 355, 11711, 628, 198, 4299, 2994, 7, 87, 11, 331, 11, 10651, 62, 8367, 28, 940, 13, 15, 2599, 198, 220, 220, 220, 37227, 9771, 3129, 378, 262, 264, 17225, 1868, 3272, 40709, 351, 2604, 896, 329, 5128, ...
1.801966
2,747
from salts_lib.pyjsparser.pyjsparserdata import * REGEXP_SPECIAL_SINGLE = {'\\', '^', '$', '*', '+', '?', '.'} NOT_PATTERN_CHARS = {'^', '$', '\\', '.', '*', '+', '?', '(', ')', '[', ']', '|'} # what about '{', '}', ??? CHAR_CLASS_ESCAPE = {'d', 'D', 's', 'S', 'w', 'W'} CONTROL_ESCAPE_CHARS = {'f', 'n', 'r', 't',...
[ 6738, 37056, 62, 8019, 13, 9078, 73, 2777, 28198, 13, 9078, 73, 2777, 28198, 7890, 1330, 1635, 198, 198, 31553, 49864, 62, 48451, 12576, 62, 50, 2751, 2538, 796, 1391, 6, 6852, 3256, 705, 61, 3256, 705, 3, 3256, 705, 9, 3256, 705, ...
1.74505
404
import torch.nn as nn from .basic import *
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 764, 35487, 1330, 1635, 198 ]
3.071429
14
# pylint: disable=W0201, E1101 """ handle request for markdown pages """ import logging import os import importlib from tornado.web import RequestHandler, HTTPError from tornado.escape import url_escape from ..utils.converter_mixin import ConverterMixin from .access_control import UserMixin from ..utils.nav import nav ...
[ 2, 279, 2645, 600, 25, 15560, 28, 54, 15, 1264, 11, 412, 1157, 486, 198, 37811, 5412, 2581, 329, 1317, 2902, 5468, 37227, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 1330, 8019, 198, 6738, 33718, 13, 12384, 1330, 19390, 25060, 1...
3.128788
132
# @Title: (Binary Search Tree to Greater Sum Tree) # @Author: KivenC # @Date: 2019-05-15 19:52:08 # @Runtime: 48 ms # @Memory: 13 MB # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 198, 2, 2488, 19160, 25, 220, 357, 33, 3219, 11140, 12200, 284, 18169, 5060, 12200, 8, 198, 2, 2488, 13838, 25, 509, 1469, 34, 198, 2, 2488, 10430, 25, 13130, 12, 2713, 12, 1314, 678, 25, 4309, 25, 2919, 198, 2, 2488, 41006, 25, ...
2.292308
130
import os import option import utility import grapeMenu import grapeGit as git import grapeConfig
[ 11748, 28686, 198, 11748, 3038, 198, 11748, 10361, 198, 11748, 30777, 23381, 198, 11748, 30777, 38, 270, 355, 17606, 198, 11748, 30777, 16934, 628 ]
4.125
24
# -*- coding: utf-8 -*- # Copyright (c) 2016, German Neuroinformatics Node (G-Node) # Achilleas Koutsou <achilleas.k@gmail.com> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICE...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1584, 11, 2679, 13782, 259, 18982, 873, 19081, 357, 38, 12, 19667, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.737533
381
# -*- coding: utf-8 -*- """ Created on Wed Mar 28 11:25:43 2019 @author: Taufik Sutanto taufik@tau-data.id https://tau-data.id ~~Perjanjian Penggunaan Materi & Codes (PPMC) - License:~~ * Modul Python dan gambar-gambar (images) yang digunakan adalah milik dari berbagai sumber sebagaimana yang telah dicantumkan...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 1526, 2579, 1367, 25, 1495, 25, 3559, 13130, 201, 198, 31, 9800, 25, 36849, 69, 1134, 45220, 14723, 201, 198, 83, 559, 69, 1134...
2.445341
1,363
from __future__ import annotations from copy import deepcopy from dataclasses import dataclass, field from typing import List, Iterator, TypeVar, Union, Any, Generic import pandas as pd from pandas.core.indexing import _LocIndexer from reamber.base.Map import Map from reamber.base.Property import stack_props NoteLi...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 7343, 11, 40806, 1352, 11, 5994, 19852, 11, 4479, 11, 4377, 11, 42044,...
3.127517
149
""" ========= filtering.py ========= This module provides more granular filtering for captures. You can customize your own filters too. """ from __future__ import annotations import re from abc import ABC, ABCMeta, abstractmethod from dataclasses import dataclass from json import JSONEncoder from pathlib import Posi...
[ 37811, 198, 2559, 28, 198, 10379, 20212, 13, 9078, 198, 2559, 28, 198, 198, 1212, 8265, 3769, 517, 19468, 934, 25431, 329, 23007, 13, 198, 1639, 460, 24184, 534, 898, 16628, 1165, 13, 198, 198, 37811, 198, 6738, 11593, 37443, 834, 133...
2.881549
3,512
# The show_mammal_info function accepts an object # as an argument, and calls its show_species # and make_sound methods. # Call the main function. main()
[ 198, 2, 383, 905, 62, 76, 6475, 282, 62, 10951, 2163, 18178, 281, 2134, 198, 2, 355, 281, 4578, 11, 290, 3848, 663, 905, 62, 35448, 198, 2, 290, 787, 62, 23661, 5050, 13, 198, 198, 2, 4889, 262, 1388, 2163, 13, 198, 12417, 3419,...
3.391304
46
""" 4 Um grande cliente seu sofreu um ataque hacker: o servidor foi sequestrado por um software malicioso, que criptografou todos os discos e pede a digitao de uma senha para a liberao da mquina. E claro que os criminosos exigem um pagamento para informar a senha. Ao analisar o cdigo do programa deles, porm, voc des...
[ 37811, 198, 19, 220, 21039, 4490, 68, 5456, 68, 384, 84, 523, 19503, 84, 23781, 379, 18251, 23385, 25, 267, 1113, 312, 273, 11511, 72, 46314, 81, 4533, 16964, 23781, 3788, 6428, 291, 4267, 78, 11, 8358, 269, 1968, 519, 32188, 280, 2...
2.75162
463
# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam from .util import fetchUrl, getPageContent, getQueryParams def queryNamer(paramName, usePageUrl=False): """Get name from URL query part.""" return _namer def regexNamer(re...
[ 2, 532, 9, 12, 19617, 25, 47279, 12, 3459, 3270, 12, 16, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 5472, 12, 14315, 833, 4103, 15300, 328, 9038, 290, 11232, 27593, 198, 2, 15069, 357, 34, 8, 2321, 12, 4967, 17520, 666, 15983, 500, ...
3.024038
208
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2177, 383, 309, 22854, 37535, 46665, 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, ...
3.748366
306
# -*- coding: utf-8 -*- """ Created on Tue Apr 21 08:09:31 2020 @author: Shivadhar SIngh """ def remove_substring_everywhere(string, substring): ''' Remove all occurrences of substring from string, and return the resulting string. Both arguments must be strings. ''' p = string.find(substring) ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2758, 2310, 8487, 25, 2931, 25, 3132, 12131, 198, 198, 31, 9800, 25, 43305, 324, 9869, 311, 818, 456, 198, 37811, 198, 198, 4299, 4781, ...
2.366906
278
""" .. _GenerateSpectrum-at-api: **GenerateSpectrum_AT** --- Generates synthetic test spectra. ------------------------------------------------------------- This module defines the GenerateSpectrum_AT class. """ from admit.AT import AT import admit.util.bdp_types as bt from admit.bdp.CubeSpectrum_BDP import ...
[ 37811, 11485, 4808, 8645, 378, 49738, 6582, 12, 265, 12, 15042, 25, 628, 220, 220, 12429, 8645, 378, 49738, 6582, 62, 1404, 1174, 11420, 2980, 689, 18512, 1332, 5444, 430, 13, 198, 220, 220, 20368, 1783, 32501, 628, 220, 220, 770, 826...
2.417154
513
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for Interrogate.""" import socket from grr.client import vfs from grr.lib import action_mocks from grr.lib import aff4 from grr.lib import artifact_test from grr.lib import client_index from grr.lib import config_lib from grr.lib import flags fro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 4235, 25, 21015, 26, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 51, 3558, 329, 4225, 3828, 378, 526, 15931, 198, 198, 11748, 17802, 198, 198, 6738, ...
2.80597
201
import sys from PySide2.QtWidgets import QGraphicsView, QGraphicsScene, QApplication from PySide2.QtCore import * from PySide2.QtGui import * if __name__ == "__main__": app = QApplication(sys.argv) appView = GraphicsView() appView.scene().addSimpleText('liff.engineer@gmail.com') appView.scene().addRe...
[ 11748, 25064, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 18172, 7680, 11, 1195, 18172, 36542, 11, 1195, 23416, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 24819, 17, 13, 48, 8...
2.582781
151
from armstrong.dev.tests.utils import ArmstrongTestCase import random
[ 6738, 3211, 11576, 13, 7959, 13, 41989, 13, 26791, 1330, 21166, 14402, 20448, 198, 11748, 4738, 628, 628 ]
4.055556
18
import unittest from logics.classes.propositional import Inference, Formula from logics.classes.propositional.proof_theories import NaturalDeductionStep, NaturalDeductionRule from logics.utils.parsers import classical_parser from logics.instances.propositional.natural_deduction import classical_natural_deduction_syste...
[ 11748, 555, 715, 395, 198, 198, 6738, 2604, 873, 13, 37724, 13, 1676, 1930, 1859, 1330, 554, 4288, 11, 19639, 198, 6738, 2604, 873, 13, 37724, 13, 1676, 1930, 1859, 13, 13288, 62, 1169, 1749, 1330, 12068, 35, 276, 8110, 8600, 11, 12...
3.347826
115
#!/usr/bin/python # # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """ Responsible for generating the decoder based on parsed table representations. """ import dgen_opt import dgen_output imp...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 357, 66, 8, 2321, 383, 12547, 20985, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 30...
2.715996
2,757
from __future__ import absolute_import from __future__ import unicode_literals from compose import utils
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 36664, 1330, 3384, 4487, 628, 628, 628 ]
3.827586
29
# Copyright 2012 Anton Beloglazov # # 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 writ...
[ 2, 15069, 2321, 9261, 3944, 28678, 1031, 709, 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.459752
646
import os from bids_validator import BIDSValidator
[ 11748, 28686, 198, 6738, 27837, 62, 12102, 1352, 1330, 347, 14255, 47139, 1352, 628 ]
3.714286
14
from math import cos, sin, degrees, radians, pi from time import time from euclid import Vector2, Point2 from numpy import array as np_array from numpy.linalg import solve as np_solve __author__ = 'tom' def rotate_point(point, angle, origin=None): """ Rotate a Point2 around another Point2 :param eucli...
[ 6738, 10688, 1330, 8615, 11, 7813, 11, 7370, 11, 2511, 1547, 11, 31028, 198, 6738, 640, 1330, 640, 198, 198, 6738, 304, 36616, 312, 1330, 20650, 17, 11, 6252, 17, 198, 6738, 299, 32152, 1330, 7177, 355, 45941, 62, 18747, 198, 6738, ...
2.596187
1,731
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 15269, 1584, 10880, 36352, 10442, 628, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 220, 345, 743, 407, 779,...
2.710145
552
COLOR_BLUE = '\033[0;34m' COLOR_GREEN = '\033[0;32m' COLOR_CYAN = '\033[0;36m' COLOR_RED = '\033[0;31m' COLOR_PURPLE = '\033[0;35m' COLOR_BROWN = '\033[0;33m' COLOR_YELLOW = '\033[1;33m' COLOR_GRAY = '\033[1;30m' COLOR_RESET = '\033[0m' FG_COLORS = [ # COLOR_BLUE, COLOR_GREEN, # COLOR_CYAN, # COLOR_R...
[ 46786, 62, 9148, 8924, 796, 705, 59, 44427, 58, 15, 26, 2682, 76, 6, 198, 46786, 62, 43016, 796, 705, 59, 44427, 58, 15, 26, 2624, 76, 6, 198, 46786, 62, 34, 56, 1565, 796, 705, 59, 44427, 58, 15, 26, 2623, 76, 6, 198, 46786, ...
1.735426
223
''' 8-5. Cities: Write a function called describe_city() that accepts the name of a city and its country. The function should print a simple sentence, such as Reykjavik is in Iceland. Give the parameter for the country a default value. Call your function for three different cities, at least one of which is not in the...
[ 7061, 6, 198, 23, 12, 20, 13, 20830, 25, 19430, 257, 2163, 1444, 6901, 62, 19205, 3419, 326, 18178, 262, 1438, 286, 257, 1748, 290, 663, 1499, 13, 220, 198, 464, 2163, 815, 3601, 257, 2829, 6827, 11, 884, 355, 24448, 42421, 615, 1...
3.575221
113
from nexus_constructor.geometry import OFFGeometryNoNexus from nexus_constructor.geometry.geometry_loader import load_geometry_from_file_object from nexus_constructor.off_renderer import repeat_shape_over_positions from PySide2.QtGui import QVector3D from io import StringIO
[ 6738, 45770, 62, 41571, 273, 13, 469, 15748, 1330, 18562, 10082, 15748, 2949, 45, 1069, 385, 198, 6738, 45770, 62, 41571, 273, 13, 469, 15748, 13, 469, 15748, 62, 29356, 1330, 3440, 62, 469, 15748, 62, 6738, 62, 7753, 62, 15252, 198, ...
3.25
88
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'aboutdialog.ui' ## ## Created by: Qt User Interface Compiler version 6.1.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ###############...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 29113, 29113, 14468, 198, 2235, 5178, 7560, 422, 3555, 12454, 2393, 705, 10755, 38969, 519, 13, 9019, 6, 198, 2235, 198, 2235, 15622, 416, 25, 33734, 11787, 26491, ...
4.046154
130
import asyncio from contextlib import suppress from unittest import mock import pytest from aiohttp.base_protocol import BaseProtocol
[ 11748, 30351, 952, 198, 6738, 4732, 8019, 1330, 18175, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 257, 952, 4023, 13, 8692, 62, 11235, 4668, 1330, 7308, 19703, 4668, 628, 628, 628, 628, 628, 6...
3.465116
43
import PySimpleGUI as sg import os import time import pyautogui tela = TelaPython() tela.Iniciar()
[ 11748, 9485, 26437, 40156, 355, 264, 70, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 12972, 2306, 519, 9019, 628, 198, 198, 83, 10304, 796, 309, 10304, 37906, 3419, 198, 83, 10304, 13, 818, 291, 12571, 3419 ]
2.72973
37
# Helper code to plot binary losses. # # Eli Bendersky (http://eli.thegreenplace.net) # This code is in the public domain from __future__ import print_function import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': fig, ax = plt.subplots() fig.set_tight_layout(True) xs = np.linspac...
[ 2, 5053, 525, 2438, 284, 7110, 13934, 9089, 13, 198, 2, 198, 2, 25204, 347, 7338, 2584, 357, 4023, 1378, 43733, 13, 1169, 14809, 5372, 13, 3262, 8, 198, 2, 770, 2438, 318, 287, 262, 1171, 7386, 198, 6738, 11593, 37443, 834, 1330, ...
2.183288
371
#!/usr/bin/env python3 ################################ # Development tool # Auto-compiles style.less to style.css # # Requires lessc and less clean css to be installed: # npm install -g less # npm install -g less-plugin-clean-css ################################ import os, time from os import path from math import fl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 29113, 198, 2, 7712, 2891, 198, 2, 11160, 12, 5589, 2915, 3918, 13, 1203, 284, 3918, 13, 25471, 198, 2, 198, 2, 26848, 1342, 66, 290, 1342, 3424, 269, 824, 284, 307, 6589, 25, ...
3.370629
143
# -- encoding: UTF-8 -- import json import uuid from admin_export_action import report from admin_export_action.admin import export_selected_objects from admin_export_action.config import default_config, get_config from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from djang...
[ 2, 1377, 21004, 25, 41002, 12, 23, 1377, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 198, 6738, 13169, 62, 39344, 62, 2673, 1330, 989, 198, 6738, 13169, 62, 39344, 62, 2673, 13, 28482, 1330, 10784, 62, 34213, 62, 48205, 198, 6738,...
3.689441
161
from pytest_djangoapp import configure_djangoapp_plugin pytest_plugins = configure_djangoapp_plugin( extend_INSTALLED_APPS=[ 'django.contrib.sessions', 'django.contrib.messages', ], extend_MIDDLEWARE=[ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.m...
[ 6738, 12972, 9288, 62, 28241, 14208, 1324, 1330, 17425, 62, 28241, 14208, 1324, 62, 33803, 198, 198, 9078, 9288, 62, 37390, 796, 17425, 62, 28241, 14208, 1324, 62, 33803, 7, 198, 220, 220, 220, 9117, 62, 38604, 7036, 1961, 62, 2969, 3...
2.383117
154
import argparse import numpy as np from sklearn.model_selection import StratifiedKFold import sklearn import cv2 import datetime import mxnet as mx from mxnet import ndarray as nd import pandas as pd from numpy import linalg as line import logging logging.basicConfig( format="%(asctime)s %(message)s", datefmt="%m/...
[ 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 29186, 1431, 42, 37, 727, 198, 11748, 1341, 35720, 198, 11748, 269, 85, 17, 198, 11748, 4818, 8079, 198, 11748, 285, 87, 3262, ...
2.510949
548
#!/usr/bin/python -t # this script was written to use /etc/nixos/nixpkgs/pkgs/development/python-modules/generic/wrap.sh # which already automates python executable wrapping by extending the PATH/pythonPath # from http://docs.python.org/library/subprocess.html # Warning Invoking the system shell with shell=True can be...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 532, 83, 198, 2, 428, 4226, 373, 3194, 284, 779, 1220, 14784, 14, 77, 844, 418, 14, 77, 844, 35339, 82, 14, 35339, 82, 14, 31267, 14, 29412, 12, 18170, 14, 41357, 14, 37150, 13, 1477, 198, 2...
3.057522
226
import base64 import datetime from abc import ABC, abstractmethod from .conditions import AnyValue from .errors import FieldError, FormError __all__ = [ 'Field', 'StringField', 'IntegerField', 'FloatField', 'BooleanField', 'DateTimeField', 'DateField', 'TimeField', 'ListField','SetField', 'EnumField', 'BytesF...
[ 11748, 2779, 2414, 198, 11748, 4818, 8079, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 6738, 764, 17561, 1756, 1330, 4377, 11395, 198, 6738, 764, 48277, 1330, 7663, 12331, 11, 5178, 12331, 198, 198, 834, 439, 834, 796, ...
3.157407
108
from __future__ import annotations from contextlib import contextmanager from contextvars import ContextVar from typing import Optional, Tuple from magicgui.widgets import FunctionGui from pydantic import BaseModel # layer source context management _LAYER_SOURCE: ContextVar[dict] = ContextVar('_LAYER_SOURCE', def...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 4732, 85, 945, 1330, 30532, 19852, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 198, 198, 6738, 5536, 48317, 13, 28029, 11407, 1330, 15553, ...
3.364198
162
import pytest import src.constants as cnst from src.directions import BaseDirection
[ 11748, 12972, 9288, 198, 198, 11748, 12351, 13, 9979, 1187, 355, 269, 77, 301, 198, 6738, 12351, 13, 12942, 507, 1330, 7308, 35, 4154, 628, 628, 198 ]
3.296296
27
import numpy as np import cv2 #define a canvas of size 300x300 px, with 3 channels (R,G,B) and data type as 8 bit unsigned integer canvas = np.zeros((300,300,3), dtype ="uint8") #define color #draw a circle #arguments are canvas/image, midpoint, radius, color, thickness(optional) #display in cv2 window green = (0,255...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 2, 13086, 257, 21978, 286, 2546, 5867, 87, 6200, 279, 87, 11, 351, 513, 9619, 357, 49, 11, 38, 11, 33, 8, 290, 1366, 2099, 355, 807, 1643, 22165, 18253, 198, 5171, ...
2.601279
469
# -*- coding: utf-8 -*- """ Main Script """ import logging import argh import sarge import tmuxp DEV_LOGGER = logging.getLogger(__name__) def get_current_session(server=None): ''' Seems to be no easy way to grab current attached session in tmuxp so this provides a simple alternative. ''' server ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 13383, 12327, 198, 37811, 198, 11748, 18931, 198, 198, 11748, 610, 456, 198, 11748, 264, 1376, 198, 11748, 256, 76, 2821, 79, 198, 198, 39345, 62, 25294, 303...
2.818182
187
"""Additional Django management commands added by nautobot_capacity_metrics plugin."""
[ 37811, 17699, 37770, 4542, 9729, 2087, 416, 299, 2306, 672, 313, 62, 42404, 62, 4164, 10466, 13877, 526, 15931, 198 ]
4.35
20
from .to_2darray import to_2darray
[ 6738, 764, 1462, 62, 17, 67, 18747, 1330, 284, 62, 17, 67, 18747, 198 ]
2.5
14
import io from PIL import Image as PILImage from sqlalchemy import Column, ForeignKey, LargeBinary, Index, Integer, String from resources.models.ModelBase import Base
[ 11748, 33245, 198, 6738, 350, 4146, 1330, 7412, 355, 350, 4146, 5159, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 8708, 9218, 11, 13601, 33, 3219, 11, 12901, 11, 34142, 11, 10903, 198, 6738, 4133, 13, 27530, 13, 17633, 14881, ...
3.840909
44
import os import sys import argparse import json import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from arch2vec.models.pretraining_nasbench101 import configs from arch2vec.utils import load_json, preprocessing, one_hot_darts from arch2vec.preprocessing.gen_is...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, ...
2.472868
2,322
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
[ 37811, 32, 900, 37623, 10141, 1912, 9058, 8265, 13, 198, 6214, 25, 198, 5450, 1378, 8002, 3039, 13, 29412, 13, 2398, 14, 268, 14, 42861, 14, 17080, 2455, 278, 13, 6494, 198, 5450, 1378, 12567, 13, 785, 14, 79, 4464, 64, 14, 39873, ...
2.940582
791
if __name__ == "__main__": #print(Hey().get_name()) teen = Teenager("Joseph Njeri", 924, "www.fowr.gd") print(teen.website)
[ 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 4798, 7, 10814, 22446, 1136, 62, 3672, 28955, 628, 220, 220, 220, 6036, 796, 21432, 3536, 7203, 29458, 399, 73, 33442, 1600, 860, 1731, 11, 366, ...
2.245902
61
import enum from typing import Dict, List from odmantic.field import Field from odmantic.model import Model
[ 11748, 33829, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 6738, 16298, 76, 5109, 13, 3245, 1330, 7663, 198, 6738, 16298, 76, 5109, 13, 19849, 1330, 9104, 628, 198 ]
3.580645
31
"""Test AdaNet estimator single graph implementation. Copyright 2018 The AdaNet Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LI...
[ 37811, 14402, 47395, 7934, 3959, 1352, 2060, 4823, 7822, 13, 198, 198, 15269, 2864, 383, 47395, 7934, 46665, 13, 1439, 6923, 33876, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341...
2.641715
2,565
from seeker.models import Building, Classroom, Time import json import os os.chdir('../data') fileList = os.listdir() #loops through each json file for jsonfile in fileList: #opens the jsonfile and loads the data f = open(jsonfile, 'r') data = f.read() jsondata = json.loads(data) #create the build...
[ 6738, 45993, 13, 27530, 1330, 11819, 11, 5016, 3823, 11, 3862, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 418, 13, 354, 15908, 10786, 40720, 7890, 11537, 198, 7753, 8053, 796, 28686, 13, 4868, 15908, 3419, 198, 198, 2, 5439, 2840, ...
2.768797
532
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args
[ 2, 47044, 46, 24700, 1137, 11617, 45811, 532, 8410, 5626, 48483, 198, 198, 6738, 14470, 13, 31267, 13, 8692, 62, 42895, 1330, 35100, 11, 4808, 20676, 3628, 1096, 62, 22046, 628 ]
3.580645
31
"""Utility function for process to raw data """ from .util import ( cvt_pcm2wav, cvt_float2fixed, cvt_char2num, plot_frequency_response, plot_pole_zero_analysis, ) from .fi import fi __all__ = [ "fi", "cvt_pcm2wav", "cvt_float2fixed", "cvt_char2num", "plot_frequency_response", ...
[ 37811, 18274, 879, 2163, 329, 1429, 284, 8246, 1366, 198, 37811, 198, 6738, 764, 22602, 1330, 357, 198, 220, 220, 220, 269, 36540, 62, 79, 11215, 17, 45137, 11, 198, 220, 220, 220, 269, 36540, 62, 22468, 17, 34021, 11, 198, 220, 220...
2.220126
159
import pytest from django.core.files import File from django.urls import reverse from freezegun import freeze_time from infra.apps.catalog.tests.helpers.open_catalog import open_catalog pytestmark = pytest.mark.django_db
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 1330, 9220, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1479, 89, 1533, 403, 1330, 16611, 62, 2435, 198, 198, 6738, 1167, 430, 13, 18211, 13, 9246, 11...
3.026667
75
import subprocess, os ue4_win = r"C:\Program Files\Epic Games\UE_4.16" ue4_linux = "/home/qiuwch/workspace/UE416" ue4_mac = '/Users/Shared/Epic Games/UE_4.16' win_uprojects = [ r'C:\qiuwch\workspace\uprojects\UE4RealisticRendering\RealisticRendering.uproject', r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsV...
[ 11748, 850, 14681, 11, 28686, 198, 198, 518, 19, 62, 5404, 796, 374, 1, 34, 7479, 15167, 13283, 59, 13807, 291, 5776, 59, 8924, 62, 19, 13, 1433, 1, 198, 518, 19, 62, 23289, 796, 12813, 11195, 14, 80, 16115, 86, 354, 14, 5225, 1...
2.122722
1,646
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
[ 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, 4866, 286, 262, 13789, 379, 198, 2,...
3.377104
297
""" Django settings for openstack_lease_it project. Generated by 'django-admin startproject' using Django 1.8.7. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ #...
[ 37811, 198, 35, 73, 14208, 6460, 329, 1280, 25558, 62, 1274, 62, 270, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 352, 13, 23, 13, 22, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393...
2.242148
2,961
# coding=utf-8 # Copyright 2021 RigL 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 # # Unless required by applicable law or agree...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 24666, 43, 46665, 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,...
2.935118
1,233
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args
[ 2, 47044, 46, 24700, 1137, 11617, 45811, 532, 8410, 5626, 48483, 198, 198, 6738, 14470, 13, 31267, 13, 8692, 62, 42895, 1330, 35100, 11, 4808, 20676, 3628, 1096, 62, 22046, 628 ]
3.580645
31
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-28 23:15 from hanlp.components.taggers.transformers.transformer_tagger_tf import TransformerTaggerTF from tests import cdroot cdroot() tagger = TransformerTaggerTF() save_dir = 'data/model/pos/ctb9_electra_small_zh_epoch_20' tagger.fit('data/pos/ctb9/train.tsv', ...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 289, 962, 6359, 198, 2, 7536, 25, 13130, 12, 1065, 12, 2078, 2242, 25, 1314, 198, 6738, 289, 272, 34431, 13, 5589, 3906, 13, 12985, 5355, 13, 35636, 364, 1...
2.098837
344
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.api import landing, login, attendance_confirmation from sql_app.database import orm_connection app = FastAPI(title="Sergio's wedding backend API", description="REST API which serves login, attendance confirmation and other fea...
[ 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, 6738, 598, 13, 15042, 1330, 9581, 11, 17594, 11, 14858, 62, 10414, 36241, 198, 6738, 44161, 62, 1324, 13, ...
2.710425
259
from unittest import TestCase from pandora.client import APIClient from pandora.errors import InvalidAuthToken, ParameterMissing from pandora.models.pandora import Station, AdItem, PlaylistItem from pandora.py2compat import Mock, patch from pydora.utils import iterate_forever
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 19798, 5799, 13, 16366, 1330, 3486, 2149, 75, 1153, 198, 6738, 19798, 5799, 13, 48277, 1330, 17665, 30515, 30642, 11, 25139, 2357, 43730, 198, 6738, 19798, 5799, 13, 27530, 13, 79,...
3.531646
79