content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import urllib.request import time import re import subprocess from Tools.scripts.treesync import raw_input url = input("输入电影的的地址:") dizhi = "https://660e.com/?url=" + url print("确认地址:" + dizhi) time.sleep(0.7) print("") print("以下为网页解析的网页代码,请自行找出m3u8地址") response = urllib.request.urlopen(dizhi) ...
[ 11748, 2956, 297, 571, 13, 25927, 201, 198, 11748, 640, 201, 198, 11748, 302, 201, 198, 11748, 850, 14681, 201, 198, 201, 198, 6738, 20003, 13, 46521, 13, 83, 6037, 13361, 1330, 8246, 62, 15414, 201, 198, 201, 198, 6371, 796, 5128, ...
1.807453
322
from app.view_components import Tab from app.pages import page_about, page_example_static, page_example_dynamic
[ 6738, 598, 13, 1177, 62, 5589, 3906, 1330, 16904, 198, 6738, 598, 13, 31126, 1330, 2443, 62, 10755, 11, 2443, 62, 20688, 62, 12708, 11, 2443, 62, 20688, 62, 67, 28995, 628 ]
3.53125
32
"""OAuth toolkit extensions model classes""" from typing import List from django.db import models from oauth2_provider.settings import oauth2_settings from mitol.common.models import TimestampedModel APPLICATION_MODEL = oauth2_settings.APPLICATION_MODEL class ApplicationAccess(TimestampedModel): """Data model ...
[ 37811, 23621, 1071, 2891, 15813, 18366, 2746, 6097, 37811, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 267, 18439, 17, 62, 15234, 1304, 13, 33692, 1330, 267, 18439, 17, 62, 33692, 198, 19...
3.054393
239
import sys from typing import * from hypothesis import given, assume, settings from hypothesis.strategies import * from .freeze import freeze_list, freeze_dict, hash_list, hash_dict if sys.version_info < (3, 7): raise RuntimeError("Do not run test under v3.7.0. " "We need built-in hash implementation up...
[ 11748, 25064, 198, 6738, 19720, 1330, 1635, 198, 198, 6738, 14078, 1330, 1813, 11, 7048, 11, 6460, 198, 6738, 14078, 13, 2536, 2397, 444, 1330, 1635, 198, 198, 6738, 764, 5787, 2736, 1330, 16611, 62, 4868, 11, 16611, 62, 11600, 11, 12...
2.895464
507
# coding=utf-8 import os import json from ClickSQL.utils import singleton, uuid_hash PREFIX = 'CONFIG:' @singleton Config = Conf() if __name__ == '__main__': # C = Conf() # C.test = '1' # # print(C.show_config()) pass
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 6914, 17861, 13, 26791, 1330, 2060, 1122, 11, 334, 27112, 62, 17831, 198, 198, 47, 31688, 10426, 796, 705, 10943, 16254, 32105, 628, 198, 31, 12215, 10565, ...
2.355769
104
# # sample.py # # Copyright 2022 OTSUKI Takashi # # 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 agr...
[ 2, 198, 2, 6291, 13, 9078, 198, 2, 198, 2, 15069, 33160, 440, 4694, 15039, 40, 15804, 12144, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2...
3.860262
229
# -*- coding: utf-8 -*- ''' Handle Salt event bus ''' # 3rd party import salt.config import salt.utils.event def bus(opts): ''' Connect to Salt's event bus ''' salt_opts = salt.config.minion_config('/etc/salt/{}'.format(opts['salt_node'])) event = salt.utils.event.get_event( opts['salt_no...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 37508, 13754, 1785, 1323, 198, 7061, 6, 198, 2, 513, 4372, 2151, 198, 11748, 8268, 13, 11250, 198, 11748, 8268, 13, 26791, 13, 15596, 628, 198, 4299, 132...
2.122034
295
import grpc import time import df_pb2 import df_pb2_grpc import json import ujson import orjson # import pandas as pd # import datatable as dt # import base64 # from io import StringIO import numpy as np # global variables n_runs = 5 is_output = False out_csv = './benchmark.csv' out_string = 'method, total_mean, to...
[ 11748, 1036, 14751, 198, 11748, 640, 198, 198, 11748, 47764, 62, 40842, 17, 198, 11748, 47764, 62, 40842, 17, 62, 2164, 14751, 198, 198, 11748, 33918, 198, 11748, 334, 17752, 198, 11748, 393, 17752, 198, 2, 1330, 19798, 292, 355, 279, ...
1.987633
1,698
""" No: 22 Date: 11-26-2020 Problem: ValidateCharacters Given a string only containing the following characters (, ), {, }, [, and ] return whether or not the opening and closing characters are in a valid order. TestCases: "(){}[]", return true "(({[]}))", return true "{(})", return false Ti...
[ 37811, 198, 2949, 25, 2534, 198, 10430, 25, 1367, 12, 2075, 12, 42334, 198, 198, 40781, 25, 198, 220, 220, 220, 3254, 20540, 48393, 198, 220, 220, 220, 11259, 257, 4731, 691, 7268, 262, 1708, 3435, 357, 11, 10612, 1391, 11, 8964, 68...
2.548718
195
import random import os import math from vtkmodules import all as vtk from vtkmodules.util import numpy_support import numpy as np from matplotlib import pyplot as plt from scipy.spatial import KDTree from multiprocessing import Pool import torch from torch.utils.data import Dataset from utils.sdf import SDFRead from ...
[ 11748, 4738, 198, 11748, 28686, 198, 11748, 10688, 198, 198, 6738, 410, 30488, 18170, 1330, 477, 355, 410, 30488, 198, 6738, 410, 30488, 18170, 13, 22602, 1330, 299, 32152, 62, 11284, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, ...
2.099045
838
# Created By: Virgil Dupras # Created On: 2007-10-06 # Copyright 2013 Hardcoded Software (http://www.hardcoded.net) # This software is licensed under the "BSD" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licenses...
[ 2, 15622, 2750, 25, 16310, 37718, 37916, 8847, 198, 2, 15622, 1550, 25, 4343, 12, 940, 12, 3312, 198, 2, 15069, 2211, 6912, 40976, 10442, 357, 4023, 1378, 2503, 13, 10424, 40976, 13, 3262, 8, 198, 198, 2, 770, 3788, 318, 11971, 739,...
2.904594
849
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 26656, 15385, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 273, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 17080, 6169, 351, ...
3.8
255
#!/usr/bin/env python3 import sys import os import pprint sys.path.append(os.path.abspath(os.sep.join([os.path.dirname(__file__), '..']))) import notificore_restapi as api if __name__ == '__main__': main()
[ 171, 119, 123, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 279, 4798, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 325, 79, 13,...
2.373626
91
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
[ 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 7400, 12, 10394, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 409, 25, 900, 39747, 28, 19, 40379, ...
2.419255
966
import time import datetime import argparse as ap import json from recursive_RM import * from itertools import product, combinations # Setup parser parser = ap.ArgumentParser('Simulate RPA/CPA/RXA/CXA Decoders for Reed-Muller Codes') parser.add_argument('--verbose', '-v', help='Display text output', action="store_true...
[ 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 1822, 29572, 355, 2471, 198, 11748, 33918, 198, 6738, 45115, 62, 29138, 1330, 1635, 198, 6738, 340, 861, 10141, 1330, 1720, 11, 17790, 198, 198, 2, 31122, 30751, 198, 48610, 796, 2471, 13,...
2.390631
2,519
from __future__ import absolute_import __version__ = '0.1.3' code = ['utf-8','gbk','cp936','gb2312'] def decode(text): ''' 该函数用于解码 :param text: 要解码的文本 :return: 解码后的文本 ''' for each in code: try: new_text = text.decode(each) except UnicodeDecodeError: ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 201, 198, 834, 9641, 834, 796, 705, 15, 13, 16, 13, 18, 6, 201, 198, 201, 198, 8189, 796, 37250, 40477, 12, 23, 41707, 22296, 74, 41707, 13155, 24, 2623, 41707, 22296, 1954, ...
1.631356
236
from pre_commit_hooks.check_toml import main
[ 6738, 662, 62, 41509, 62, 25480, 82, 13, 9122, 62, 39532, 75, 1330, 1388, 628, 628 ]
3
16
# Simple TMX library # # 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...
[ 2, 17427, 21232, 55, 5888, 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, 7330, ...
2.408431
3,653
import unittest from synet.utils import read_all_boxes from synet.synthesis3 import Synthesizer BOXES_STATIC = ['fwd01-1-static'] BOXES_OSPF = ['ospf01', 'ospf02-0', 'ospf02-1', 'fwd01-0', 'fwd01-1'] BOXES_BGP = ['ibgp03', 'ibgp04', 'ibgp05', 'ibgp06', 'ibgp07', 'ibgp08', 'ibgp09', 'ospf01', 'ospf02-0',...
[ 11748, 555, 715, 395, 198, 6738, 827, 3262, 13, 26791, 1330, 1100, 62, 439, 62, 29305, 198, 6738, 827, 3262, 13, 1837, 429, 8497, 18, 1330, 26375, 956, 7509, 628, 198, 198, 39758, 1546, 62, 35744, 2149, 796, 37250, 69, 16993, 486, 1...
1.952381
189
import time import gensim
[ 11748, 640, 198, 11748, 308, 641, 320, 628 ]
3.375
8
import pymunkoptions pymunkoptions.options["debug"] = False import pymunk import arcade from math import degrees space = pymunk.Space() space.gravity = 0, -1000 mass = 1 radius = 30 segment_shape1 = pymunk.Segment(space.static_body, (500,400), (1300,440), 2) segment_shape1.elasticity = 0.8 segment_shape1.friction =...
[ 11748, 279, 4948, 2954, 25811, 198, 79, 4948, 2954, 25811, 13, 25811, 14692, 24442, 8973, 796, 10352, 198, 198, 11748, 279, 4948, 2954, 198, 11748, 27210, 198, 6738, 10688, 1330, 7370, 198, 198, 13200, 796, 279, 4948, 2954, 13, 14106, 3...
2.535088
228
""" Utility Functions that can be used for Kaggle and other ML uses Includes all stable utility functions. Reference for kaggle API: https://github.com/Kaggle/kaggle-api """ import configparser import datetime as dt import json import matplotlib.pyplot as plt import numpy as np import os import pandas as pd import ...
[ 37811, 198, 18274, 879, 40480, 326, 460, 307, 973, 329, 509, 9460, 293, 290, 584, 10373, 3544, 198, 198, 42986, 477, 8245, 10361, 5499, 13, 198, 198, 26687, 329, 479, 9460, 293, 7824, 25, 3740, 1378, 12567, 13, 785, 14, 42, 9460, 29...
2.536579
3,964
import datetime import pymongo import os from courtreader import readers # Connect to database client = pymongo.MongoClient(os.environ['CIRCUIT_DB']) db = client.va_circuit_court_cases reader = readers.CircuitCourtReader() courts = reader.connect() court_codes = {} for fips_code, court in courts.iteritems(): cour...
[ 11748, 4818, 8079, 198, 11748, 279, 4948, 25162, 198, 11748, 28686, 198, 6738, 2184, 46862, 1330, 7183, 198, 198, 2, 8113, 284, 6831, 198, 16366, 796, 279, 4948, 25162, 13, 44, 25162, 11792, 7, 418, 13, 268, 2268, 17816, 34, 4663, 436...
2.492711
343
import Responses as Re import Constants as Keys from telegram.ext import * print('Starting BotsyBot') main()
[ 11748, 20549, 274, 355, 797, 198, 11748, 4757, 1187, 355, 26363, 198, 6738, 573, 30536, 13, 2302, 1330, 1635, 628, 198, 4798, 10786, 22851, 40946, 88, 20630, 11537, 628, 628, 198, 198, 12417, 3419, 198 ]
3.314286
35
import paddlehub as hub import cv2
[ 11748, 39517, 40140, 355, 12575, 198, 11748, 269, 85, 17 ]
3.4
10
"""Tapo P100 interactions""" import asyncio import base64 import hashlib import json import logging import time from base64 import b64decode from typing import Optional, Union import aiohttp import pkcs7 from aiohttp.client_reqrep import ClientResponse from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.PublicKey im...
[ 37811, 51, 41817, 350, 3064, 12213, 37811, 198, 11748, 30351, 952, 198, 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 2779, 2414, 1330, 275, 2414, 12501, 1098, 198, 6738, 197...
2.387516
2,387
import random import numpy import pysam from Crypto.Cipher import AES count_reads = 0 count_candidates = 0 count_extensions_case_default = 0 count_extensions_case_reverse = 0 count_extensions_not_done = 0 count_contraction_case_default = 0 count_contraction_case_reverse = 0 count_contraction_not_done = 0 count_contra...
[ 11748, 4738, 198, 198, 11748, 299, 32152, 198, 11748, 279, 893, 321, 198, 6738, 36579, 13, 34, 10803, 1330, 34329, 198, 198, 9127, 62, 40779, 796, 657, 198, 9127, 62, 46188, 37051, 796, 657, 198, 9127, 62, 2302, 5736, 62, 7442, 62, ...
3.026667
150
#!/usr/bin/python3 from botbase import * _northeim_c = re.compile(r"mittlerweile ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Corona-Infektionen") _northeim_g = re.compile(r"([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Personen gelten mittlerweile als genesen") _northeim_d = re.compile(r"insgesamt ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Pe...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 6738, 10214, 8692, 1330, 1635, 198, 198, 62, 77, 419, 9096, 62, 66, 796, 302, 13, 5589, 576, 7, 81, 1, 20124, 1754, 732, 576, 29565, 15, 12, 24, 8183, 10, 19415, 82, 9, 7, 30, 747...
1.986784
227
# coding: utf-8 import os import redis import requests # rds-存储爬虫爬取学号、姓名信息 # info: {name: [sid]} rds = redis.StrictRedis(host=os.getenv("REDISHOST"), port=6389, db=0) # url-爬取的源地址, thanks@2bab url = os.getenv("MUMEIURL") rds.hset('info', '_placeholder', []) def spider(start, end): """ spider: 爬虫 -- sta...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 2266, 271, 198, 11748, 7007, 198, 198, 2, 374, 9310, 12, 27764, 246, 43636, 101, 163, 230, 105, 164, 247, 104, 163, 230, 105, 20998, 244, 27764, 99, 20998, 115, 23513, ...
1.816456
632
file = open('customCustoms_input.txt', 'r') batch = file.readlines() current_form = list() forms = list() running_total = 0 # build list of customs forms for line in batch: line = line.strip() if len(line) == 0: if len(current_form) > 0: forms.append(current_form) current_form ...
[ 7753, 796, 1280, 10786, 23144, 15022, 82, 62, 15414, 13, 14116, 3256, 705, 81, 11537, 198, 43501, 796, 2393, 13, 961, 6615, 3419, 198, 198, 14421, 62, 687, 796, 1351, 3419, 198, 23914, 796, 1351, 3419, 198, 20270, 62, 23350, 796, 657,...
2.263158
361
# coding: utf-8 from __future__ import unicode_literals import json from ..utils import ExtractorError, unified_timestamp from .common import InfoExtractor
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 33918, 198, 198, 6738, 11485, 26791, 1330, 29677, 273, 12331, 11, 22706, 62, 16514, 27823, 198, 6738, 764, 11321, 1330, ...
3.533333
45
# Copyright (c) 2011 Xiufeng Liu (xiliu@cs.aau.dk) # # This file is free software: you may copy, redistribute and/or modify it # under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation. # # This file is distributed in the hope that it will be useful, but ...
[ 2, 220, 15069, 357, 66, 8, 2813, 21313, 3046, 1516, 18258, 357, 87, 2403, 84, 31, 6359, 13, 64, 559, 13, 34388, 8, 198, 2, 220, 220, 198, 2, 220, 770, 2393, 318, 1479, 3788, 25, 345, 743, 4866, 11, 17678, 4163, 290, 14, 273, 1...
2.140468
897
import pytorch_lightning as pl from torch.utils.data import DataLoader, Dataset from .core import BaseCore from .factory import BaseDataFactory
[ 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 11, 16092, 292, 316, 198, 198, 6738, 764, 7295, 1330, 7308, 14055, 198, 6738, 764, 69, 9548, 1330, 7308, 6601, 22810, 628, 19...
3.5
42
from blockchain import Blockchain import json from uuid import uuid4 import requests import ast from flask import Flask, jsonify, request # Instantiate the Node app = Flask(__name__) # Generate a globally unique address for this node node_identifier = str(uuid4()).replace('-', '') #MINERS! @app.rou...
[ 6738, 11779, 1330, 29724, 198, 11748, 33918, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 11748, 7007, 198, 11748, 6468, 198, 198, 6738, 42903, 1330, 46947, 11, 33918, 1958, 11, 2581, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.884146
492
# Lint as: python3 # # Copyright 2020 The XLS 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...
[ 2, 406, 600, 355, 25, 21015, 18, 198, 2, 198, 2, 15069, 12131, 383, 1395, 6561, 46665, 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, 2...
3.619497
318
# Copyright 2014 Baidu, Inc. # # 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, softwa...
[ 2, 15069, 1946, 347, 1698, 84, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 198, 2, 2845, 287, 11846, 351, 262, 13789, 13, 921, ...
2.439755
1,635
import tkinter as tk import obd # obd.logger.setLevel(obd.logging.DEBUG) connection = obd.OBD('\\.\\COM5') # auto-connects to USB or RF port window = tk.Tk() window.title("OBDII Reader") window.configure(bg="DimGray") # c = obd.commands['RPM'] # Dictionary of "Command Label String" to "OBD library command string" ...
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 909, 67, 628, 198, 2, 909, 67, 13, 6404, 1362, 13, 2617, 4971, 7, 672, 67, 13, 6404, 2667, 13, 30531, 8, 198, 38659, 796, 909, 67, 13, 9864, 35, 10786, 6852, 13, 6852, 9858, 20, ...
2.395041
2,420
import pandas as pd df1 = pd.read_csv('courses.csv') df2 = pd.read_csv('courses2.csv') #df1[['id','alter_id']] = df1[['id','alter_id']].astype(str) #df2[['id','alter_id']] = df2[['id','alter_id']].astype(str) print(df1.columns) print(df2.iloc[:,0:3].columns) df = pd.merge(df1, df2, how='inner', sort=False) # df = df....
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 7568, 16, 796, 279, 67, 13, 961, 62, 40664, 10786, 66, 39975, 13, 40664, 11537, 198, 7568, 17, 796, 279, 67, 13, 961, 62, 40664, 10786, 66, 39975, 17, 13, 40664, 11537, 198, 2, 7568, 16, ...
2.095745
188
# # (C) Copyright 2003-2011 Jacek Konieczny <jajcus@jajcus.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License Version # 2.1 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be u...
[ 2, 198, 2, 357, 34, 8, 15069, 5816, 12, 9804, 49674, 74, 17431, 494, 26691, 3281, 1279, 73, 1228, 9042, 31, 73, 1228, 9042, 13, 3262, 29, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, ...
2.456815
2,443
#! python ################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditi...
[ 2, 0, 21015, 198, 29113, 29113, 14468, 2, 198, 2, 15069, 357, 66, 8, 2813, 12, 6390, 11, 8211, 347, 4267, 979, 3007, 286, 3442, 11, 3457, 13, 198, 2, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 28...
2.238711
6,267
from __future__ import unicode_literals import os from django.db import models from django.contrib.auth.models import User from django.conf import settings from mail.utils import send_emails from base.models import TimeStamp from project.models import Project import logging logger = logging.getLogger(__name__) DOC...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 28686, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 10414, ...
2.428571
567
import dbus from time import sleep import h3 from lib.cputemp.service import Characteristic from gatewayconfig.logger import get_logger from gatewayconfig.helpers import string_to_dbus_encoded_byte_array from gatewayconfig.bluetooth.descriptors.assert_location_descriptor import AssertLocationDescriptor from gatewayco...
[ 11748, 288, 10885, 198, 6738, 640, 1330, 3993, 198, 11748, 289, 18, 198, 198, 6738, 9195, 13, 66, 1996, 45787, 13, 15271, 1330, 15684, 2569, 198, 198, 6738, 24308, 11250, 13, 6404, 1362, 1330, 651, 62, 6404, 1362, 198, 6738, 24308, 11...
3.286517
178
# -*- coding: utf-8 -*- """ Created on Sat Sep 28 21:23:00 2019 @author: Uchiha Madara """ import torch
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 8621, 2579, 2310, 25, 1954, 25, 405, 13130, 198, 198, 31, 9800, 25, 471, 11072, 3099, 4627, 3301, 198, 37811, 198, 198, 11748, 28034, 198 ]
2.409091
44
import dataCollection as dc transferMarkt = dc.TransferMarkt() transferMarkt.init_browser() transferMarkt.getTop250() transferMarkt.printPlayersInfo()
[ 11748, 1366, 36307, 355, 30736, 198, 198, 39437, 9704, 83, 796, 30736, 13, 43260, 9704, 83, 3419, 198, 39437, 9704, 83, 13, 15003, 62, 40259, 3419, 198, 39437, 9704, 83, 13, 1136, 9126, 9031, 3419, 198, 39437, 9704, 83, 13, 4798, 2486...
3.377778
45
__all__ = ['UICreator', ] from utils.utils import get_designer from kivy.app import App from kivy.clock import Clock from kivy.lang.builder import Builder from kivy.properties import ObjectProperty from kivy.uix.floatlayout import FloatLayout Builder.load_string(""" #: import hex utils.colors.hex <UICreator>: ...
[ 834, 439, 834, 796, 37250, 52, 2149, 630, 273, 3256, 2361, 198, 198, 6738, 3384, 4487, 13, 26791, 1330, 651, 62, 26124, 263, 198, 198, 6738, 479, 452, 88, 13, 1324, 1330, 2034, 198, 6738, 479, 452, 88, 13, 15750, 1330, 21328, 198, ...
1.577465
9,372
"""Get invoice by id API method.""" from ibsng.handler.handler import Handler class getInvoiceByID(Handler): """Get invoice by id method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(self.invoice_id, i...
[ 37811, 3855, 45458, 416, 4686, 7824, 2446, 526, 15931, 198, 6738, 24283, 82, 782, 13, 30281, 13, 30281, 1330, 32412, 628, 198, 4871, 651, 19904, 2942, 3886, 2389, 7, 25060, 2599, 198, 220, 220, 220, 37227, 3855, 45458, 416, 4686, 2446, ...
2.391111
225
import numpy as np from numpy import eye, zeros, block, array, poly, diff from numpy.linalg import matrix_power from scipy.linalg import (solve, eigvals, block_diag, solve_continuous_are as care, solve_discrete_are as dare) from ._arg_utils import _check_for_state_or...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 1330, 4151, 11, 1976, 27498, 11, 2512, 11, 7177, 11, 7514, 11, 814, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 17593, 62, 6477, 198, 6738, 629, 541, 88, 13, 75, 1292, 70, 1...
2.293752
4,017
import random fake_first_names = [ "Purple", "Aqua", "Red", "Amber", "Yellow", "Blue", "Green", "Pink", "Crimson", "Orange", "Chartreuse", "Cerulean", "Golden", "Pastel", "Teal", "Turqoise", "Indigo", "Lavender", "Violet", "Vermillion", ...
[ 11748, 4738, 198, 198, 30706, 62, 11085, 62, 14933, 796, 685, 198, 220, 220, 220, 366, 30026, 1154, 1600, 198, 220, 220, 220, 366, 32, 39566, 1600, 198, 220, 220, 220, 366, 7738, 1600, 198, 220, 220, 220, 366, 32, 1916, 1600, 198, ...
1.803363
1,368
"""add user to job Revision ID: 78edf5b0d088 Revises: 23f213c103cf Create Date: 2016-12-06 11:57:54.599715 """ # revision identifiers, used by Alembic. revision = '78edf5b0d088' down_revision = '23f213c103cf' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa
[ 37811, 2860, 2836, 284, 1693, 198, 198, 18009, 1166, 4522, 25, 8699, 276, 69, 20, 65, 15, 67, 46556, 198, 18009, 2696, 25, 2242, 69, 26427, 66, 15197, 12993, 198, 16447, 7536, 25, 1584, 12, 1065, 12, 3312, 1367, 25, 3553, 25, 4051, ...
2.456
125
# 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.396887
257
import glob import os import ssl import argparse import urllib3 import json import logging import urllib.request import base64 import pandas as pd import numpy as np from pathlib import Path from datetime import datetime urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) urllib3.disable_warnings(urlli...
[ 11748, 15095, 198, 11748, 28686, 198, 11748, 264, 6649, 198, 11748, 1822, 29572, 198, 11748, 2956, 297, 571, 18, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 2779, 2414, 198, 11748, 19798, 292, ...
1.756635
7,084
from gym.spaces import Discrete from d3rlpy.dataset import MDPDataset class SB3Wrapper: """ A wrapper for d3rlpy algorithms so they can be used with Stable-Baseline3 (SB3). Args: algo (d3rlpy.algos.base.AlgoBase): algorithm. Attributes: algo (d3rlpy.algos.base.AlgoBase): algorithm. ...
[ 6738, 11550, 13, 2777, 2114, 1330, 8444, 8374, 198, 6738, 288, 18, 45895, 9078, 13, 19608, 292, 316, 1330, 10670, 5760, 265, 292, 316, 628, 198, 4871, 18056, 18, 36918, 2848, 25, 198, 220, 220, 220, 37227, 317, 29908, 329, 288, 18, ...
2.228261
736
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-08 13:35 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 22, 319, 1584, 12, 3312, 12, 2919, 1511, 25, 2327, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.672727
55
"""Word2Vec Model. The package provides fit, transform and prepocessing services""" import logging from gensim.models import Word2Vec as Word2VecGensim from text_models.utils import setup_logging, tokenize import numpy as np
[ 37811, 26449, 17, 53, 721, 9104, 13, 383, 5301, 3769, 4197, 11, 6121, 290, 3143, 420, 27289, 2594, 37811, 198, 198, 11748, 18931, 198, 6738, 308, 641, 320, 13, 27530, 1330, 9678, 17, 53, 721, 355, 9678, 17, 53, 721, 38, 641, 320, ...
3.469697
66
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'impulse.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 11011, 9615, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, 1...
3.036364
110
import unittest from md5 import MD5
[ 11748, 555, 715, 395, 198, 198, 6738, 45243, 20, 1330, 10670, 20, 628 ]
2.923077
13
#!/usr/bin/python3 ''' Usando **kargs = **params, deveremos passsar parametros nomeados Linhas 25 e 26 Nesse caso o código fica mais legivel do que usando parametros posicionais como no arquivo callable_packing.py ''' if __name__ == '__main__': preco_bruto = 134.98 preco_final = calc_preco_final(preco_bru...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 7061, 6, 198, 198, 5842, 25440, 12429, 74, 22046, 796, 12429, 37266, 11, 390, 303, 2787, 418, 1208, 82, 283, 5772, 316, 4951, 299, 462, 22484, 198, 14993, 10134, 1679, 304, 2608, 198, 4...
2.222591
301
"""Prints the commands to generate the data files required for each figure/table in the paper. The plotting code calls this, to print out the required commands before attempting to plot. """ import os from typing import List import experiment_common @command_printer @command_printer @command_printer @comma...
[ 37811, 18557, 82, 262, 9729, 284, 7716, 262, 1366, 3696, 2672, 329, 1123, 3785, 14, 11487, 287, 262, 3348, 13, 198, 198, 464, 29353, 2438, 3848, 428, 11, 284, 3601, 503, 262, 2672, 9729, 878, 9361, 284, 7110, 13, 198, 37811, 198, 11...
3.570175
114
import os import json import torch import yaml import numpy as np import shutil from pathlib import Path
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 28034, 198, 11748, 331, 43695, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4423, 346, 198, 6738, 3108, 8019, 1330, 10644, 628, 628, 628 ]
3.548387
31
from flask import request from database import app from handlers import lists from handlers import cmd_print from handlers import tasks from handlers import users @app.route('/user/<username>') @app.route('/tasks/{id}', methods=['GET']) @app.route('/tasks', methods=['GET', 'POST']) @app.route('/lists', metho...
[ 198, 6738, 42903, 1330, 2581, 198, 198, 6738, 6831, 1330, 598, 198, 198, 6738, 32847, 1330, 8341, 198, 6738, 32847, 1330, 23991, 62, 4798, 198, 6738, 32847, 1330, 8861, 198, 6738, 32847, 1330, 2985, 628, 198, 31, 1324, 13, 38629, 10786,...
2.993711
159
# coding:utf-8 from LxBasic import bscObjects from ..import houBscCfg
[ 2, 19617, 25, 40477, 12, 23, 198, 6738, 406, 87, 26416, 1330, 275, 1416, 10267, 82, 198, 198, 6738, 11485, 11748, 289, 280, 33, 1416, 34, 40616, 628 ]
2.571429
28
import sys import os sys.path.insert(0,os.path.split(os.path.abspath(__file__))[0] + '/../prune_framework') from prune_distributed import prune_trainer_distributed from prune_single import prune_trainer from evaluate_saliency import evaluate_saliency from mnist_net import mnist_net_prune_fin_shape from mnist_data_load...
[ 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 418, 13, 6978, 13, 35312, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 58, 15, 60, 1343, 31051, 40720, 1050, 1726, 62, 30604, 11537, 19...
3.305657
1,096
from __future__ import annotations import gzip import typing as t from .vote import Vote from .trait import Trait from .tag import Tag __all__ = ("Parser",) TYPES = t.Union[Vote, Trait, Tag] class Parser: """ Main entry point for the library. """ __slots__ = ("filename", "cls") def __init__(se...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 308, 13344, 198, 11748, 19720, 355, 256, 198, 198, 6738, 764, 27257, 1330, 19175, 198, 6738, 764, 9535, 270, 1330, 4759, 270, 198, 6738, 764, 12985, 1330, 17467, 198, 198, 834, 439,...
2.176136
880
# Question: https://projecteuler.net/problem=301 import numpy as np # According to this https://en.wikipedia.org/wiki/Nim, the next player loses when the XOR of 3 heaps is 0. # When XOR(n, 2n, 3n) == 0? It occurs when n has consecutive 1's. # Why? # bit b1 b2 b3 # carry of n+2n x y z # ...
[ 2, 18233, 25, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 18938, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 4784, 284, 428, 3740, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 45, 320, 11, 262, 1306, 2137, 1...
1.85988
835
# Copyright (C) 2019 Simon Biggs # 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, 34, 8, 13130, 11288, 4403, 14542, 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, ...
3.616071
224
import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import numpy as np from .Model import Model from numpy.random import RandomState # origin
[ 11748, 28034, 198, 11748, 28034, 13, 2306, 519, 6335, 355, 1960, 519, 6335, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, ...
3.591549
71
import os, popen2, fcntl, select
[ 11748, 28686, 11, 1461, 268, 17, 11, 277, 66, 429, 75, 11, 2922, 198 ]
2.357143
14
import os import sys import numpy as np import torch from medpy.filter.binary import largest_connected_component import base64 from io import BytesIO, StringIO from skimage.io import imsave from PIL import Image sys.path.append(os.path.abspath(os.path.dirname(__file__))) from unet import UNet from segmentation_utils ...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 1117, 9078, 13, 24455, 13, 39491, 1330, 4387, 62, 15236, 62, 42895, 198, 11748, 2779, 2414, 198, 6738, 33245, 1330, 2750, 4879, 9399, 11, ...
3.309091
110
from arcpy import env # type: ignore from models.distance import Distance from models.distance_matrix import DistanceMatrix from models.location import Location from services.base_service import BaseService from services.city_service import CityService from services.distance_db_service import DistanceDbService from s...
[ 6738, 10389, 9078, 1330, 17365, 220, 1303, 2099, 25, 8856, 198, 198, 6738, 4981, 13, 30246, 1330, 34600, 198, 6738, 4981, 13, 30246, 62, 6759, 8609, 1330, 34600, 46912, 198, 6738, 4981, 13, 24886, 1330, 13397, 198, 6738, 2594, 13, 8692,...
2.437346
814
""" This function is just to keep track of colours from colorama and any other stylization These also have the variables that set the colours """ import colorama # Colour module, no bolding on windows :( from colorama import Fore, Back, Style colorama.init() # Text Colour definitions (foreground) # Text colours ...
[ 37811, 198, 1212, 2163, 318, 655, 284, 1394, 2610, 286, 18915, 422, 3124, 1689, 290, 597, 584, 22152, 1634, 198, 4711, 635, 423, 262, 9633, 326, 900, 262, 18915, 198, 37811, 198, 198, 11748, 3124, 1689, 220, 1303, 38773, 8265, 11, 645...
3.008206
1,828
# Copyright 2020 The FastEstimator 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 appl...
[ 2, 15069, 12131, 383, 12549, 22362, 320, 1352, 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, ...
3.973214
224
#!/usr/bin/env python from __future__ import division import rospy import numpy as np import math from geometry_msgs.msg import Twist from std_msgs.msg import ColorRGBA from tracking.msg import TaggedPose2D import tf.transformations if __name__ == '__main__': try: rospy.init_node("sphero_twist") ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 686, 2777, 88, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 44088, 198,...
2.508772
171
from django.conf.urls import url from . import views urlpatterns = [ url(r'Prediction', views.predictionOutPut), url(r'^$', views.getParams) ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 39156, 2867, 3256, 5009, 13, 28764, 2867, 7975, 11588, 828, 198, 220, 22...
2.533333
60
""" Algebra Functorial Construction AUTHORS: - Nicolas M. Thiery (2010): initial revision """ #***************************************************************************** # Copyright (C) 2010 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed under the terms of the GNU General Public License (GPL) # ...
[ 37811, 198, 2348, 29230, 11138, 2715, 498, 20395, 198, 198, 32, 24318, 20673, 25, 198, 198, 12, 29737, 337, 13, 536, 23012, 357, 10333, 2599, 4238, 18440, 198, 37811, 198, 2, 17174, 17174, 4557, 35625, 198, 2, 220, 15069, 357, 34, 8, ...
2.421473
1,127
from tkinter import * from pandastable import Table, TableModel bg_color = '#394b5c' '''-------------------------------Window Configuration----------------------------------------''' root = Tk() root.title('Data Visualizer and Analyzer') root.iconbitmap(r'icon.ico') root.config(bg=bg_color) root.resizable(width=False...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 19798, 459, 540, 1330, 8655, 11, 8655, 17633, 198, 198, 35904, 62, 8043, 796, 705, 2, 34626, 65, 20, 66, 6, 198, 198, 7061, 6, 1783, 24305, 27703, 28373, 3880, 982, 7061, 6, 198, 15763, ...
3.280702
114
import os
[ 11748, 28686, 628, 198 ]
3
4
from lojaintegrada import Api
[ 6738, 2376, 73, 391, 660, 2164, 4763, 1330, 5949, 72, 628, 628 ]
2.75
12
# WARNING: Do not edit by hand, this file was generated by Crank: # # https://github.com/gocardless/crank # from . import base_service from .. import resources from ..paginator import Paginator from .. import errors class BillingRequestTemplatesService(base_service.BaseService): """Service class that provides a...
[ 2, 39410, 25, 2141, 407, 4370, 416, 1021, 11, 428, 2393, 373, 7560, 416, 3864, 962, 25, 198, 2, 198, 2, 220, 220, 3740, 1378, 12567, 13, 785, 14, 70, 420, 14694, 14, 6098, 962, 198, 2, 198, 198, 6738, 764, 1330, 2779, 62, 15271,...
2.225868
1,585
#------------------------------------------------------------------------------ # Copyright (c) 2016, 2022, Oracle and/or its affiliates. # # This software is dual-licensed to you under the Universal Permissive License # (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License # 2.0 as shown at http...
[ 2, 10097, 26171, 198, 2, 15069, 357, 66, 8, 1584, 11, 33160, 11, 18650, 290, 14, 273, 663, 29116, 13, 198, 2, 198, 2, 770, 3788, 318, 10668, 12, 36612, 284, 345, 739, 262, 14499, 2448, 33532, 13789, 198, 2, 357, 52, 6489, 8, 352...
3.369683
1,293
decimal = 10 result = '' while (decimal > 0): remainder = decimal % 2 decimal = decimal // 2 result = str(remainder) + result print (result)
[ 12501, 4402, 796, 838, 198, 20274, 796, 10148, 198, 4514, 357, 12501, 4402, 1875, 657, 2599, 198, 220, 220, 220, 17675, 796, 32465, 4064, 362, 198, 220, 220, 220, 32465, 796, 32465, 3373, 362, 198, 220, 220, 220, 1255, 796, 965, 7, ...
2.833333
54
from cube_model import CubeModel from cube_solver import CubeSolver from puzzle_cube import PuzzleCube # load the neural network from a file of saved weights cm = CubeModel() cm.load_from_config("../example/checkpoint_model_v1.0.5-r_gen034.h5") # create a new puzzle cube and randomize it pc = PuzzleCube() pc = pc.scr...
[ 6738, 23441, 62, 19849, 1330, 23315, 17633, 198, 6738, 23441, 62, 82, 14375, 1330, 23315, 50, 14375, 198, 6738, 15027, 62, 40296, 1330, 23966, 29071, 198, 198, 2, 3440, 262, 17019, 3127, 422, 257, 2393, 286, 7448, 19590, 198, 11215, 796...
3.046392
194
"""Schemas for dif presentation exchange attachment.""" from marshmallow import ( fields, validate, EXCLUDE, INCLUDE, pre_load, post_dump, ValidationError, ) from typing import Sequence, Union, Mapping from ....messaging.models.base import BaseModelSchema, BaseModel from ....messaging.valid...
[ 37811, 27054, 5356, 329, 288, 361, 10470, 5163, 18231, 526, 15931, 198, 6738, 22397, 42725, 1330, 357, 198, 220, 220, 220, 7032, 11, 198, 220, 220, 220, 26571, 11, 198, 220, 220, 220, 7788, 5097, 52, 7206, 11, 198, 220, 220, 220, 32...
2.243314
11,779
from agents import NetworkAgent from simulation import NetworkSimulation, Sim from plotting import PlotCreator from animation import AnimationCreator
[ 6738, 6554, 1330, 7311, 36772, 201, 198, 6738, 18640, 1330, 7311, 8890, 1741, 11, 3184, 201, 198, 6738, 29353, 1330, 28114, 16719, 273, 201, 198, 6738, 11034, 1330, 23535, 16719, 273 ]
4.903226
31
# -*- coding: utf-8 -*- """ Created on Thu Sep 16 16:38:51 2021 @author: joelr """ import nltk nltk.download('stopwords') stopwords = nltk.corpus.stopwords.words('portuguese') import urllib.request from bs4 import BeautifulSoup response = urllib.request.urlopen('https://robo14bis.000webhostapp.com/'...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 8621, 1467, 1467, 25, 2548, 25, 4349, 33448, 201, 198, 201, 198, 31, 9800, 25, 2525, 417, 81, 201, 198, 37811, 201, 198, 201, ...
2.20316
443
#!/usr/bin/env python # coding: utf-8 # # FormantNet Training Script (user-friendly version) # # This script is a user-friendly version of the code used in the IS2021 and PaPE2021 papers. It can be used as an executable script to train a FormantNet model, as described below. The trained model can then be run on test ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 5178, 415, 7934, 13614, 12327, 357, 7220, 12, 13120, 2196, 8, 198, 2, 220, 198, 2, 770, 4226, 318, 257, 2836, 12, 13120, 2196, ...
3.056089
1,979
from django.contrib.auth import get_user_model from django.db import models
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.347826
23
import numpy as np import matplotlib.pyplot as plt class NoamOpt: "Optim wrapper that implements rate." def step(self): "Update parameters and rate" self._step += 1 rate = self.rate() for p in self.optimizer.param_groups: p['lr'] = rate self._rate = rate ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 4871, 1400, 321, 27871, 25, 198, 220, 220, 220, 366, 27871, 320, 29908, 326, 23986, 2494, 526, 628, 220, 220, 220, 825, 2239, 7, 944, ...
2.055914
465
# Dependencies from bs4 import BeautifulSoup from splinter import Browser import pandas as pd import time # Scrape mars news function
[ 2, 37947, 3976, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 4328, 3849, 1330, 34270, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 640, 628, 628, 198, 2, 1446, 13484, 48962, 1705, 2163, 220 ]
3.631579
38
# @Author: Edmund Lam <edl> # @Date: 09:59:59, 03-Nov-2018 # @Filename: __init__.py # @Last modified by: edl # @Last modified time: 10:54:58, 08-Oct-2019 __all__=["imgutils", "msgutils", "strutils", "utils", "objutils", "userutils", "datautils"]
[ 2, 2488, 13838, 25, 35646, 10923, 1279, 276, 75, 29, 198, 2, 2488, 10430, 25, 220, 220, 7769, 25, 3270, 25, 3270, 11, 7643, 12, 20795, 12, 7908, 198, 2, 2488, 35063, 25, 11593, 15003, 834, 13, 9078, 198, 2, 2488, 5956, 9518, 416, ...
2.5
100
'''Methods to create radial and time grids for aurora simulations. ''' import matplotlib.pyplot as plt import numpy as np, sys, os from scipy.interpolate import interp1d import warnings def create_radial_grid(namelist,plot=False): r'''Create radial grid for Aurora based on K, dr_0, dr_1, rvol_lcfs and bound_sep p...
[ 7061, 6, 46202, 284, 2251, 44503, 290, 640, 50000, 329, 45714, 5799, 27785, 13, 198, 7061, 6, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 11, 25064, 11, 28686, 198, 6738, 629,...
2.153366
10,563
from django.contrib import admin # Register your models here. from registration.models import Profile admin.site.register(Profile)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 6738, 9352, 13, 27530, 1330, 13118, 198, 198, 28482, 13, 15654, 13, 30238, 7, 37046, 8, 198 ]
3.911765
34
#!/usr/bin/env python 3.6 import preprocess A = open('data/FS_FSociety.txt').read() B = preprocess.normalize(A).lower() C = preprocess.remove_stopwords(B) from preprocess import CollocationList coll2 = CollocationList(C) coll2.find_collocations() collocations = coll2.head(40) D = preprocess.utils.hypenation(C,collocat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 513, 13, 21, 198, 198, 11748, 662, 14681, 198, 32, 796, 1280, 10786, 7890, 14, 10652, 62, 10652, 420, 1905, 13, 14116, 27691, 961, 3419, 198, 33, 796, 662, 14681, 13, 11265, 1096, 7, 32, ...
2.55332
497
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Milan Ondrasovic <milan.ondrasovic@gmail.com> from typing import Iterable, Optional, Union, Callable, cast import numpy as np import torch import torch.nn.functional as F from torchvision import ops from got10k.trackers import Tracker from sot.bbox import BBo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 6434, 25, 21574, 440, 358, 8847, 17215, 1279, 25433, 272, 13, 623, 8847, 17215, 31, 14816, 13, 785, 29, 198, ...
2.815668
217
from __future__ import absolute_import from .decorators import jsonp from .response import JSONPResponse from .utils import get_callback __version__ = '0.3.0'
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 764, 12501, 273, 2024, 1330, 33918, 79, 198, 6738, 764, 26209, 1330, 19449, 4805, 9774, 2591, 198, 6738, 764, 26791, 1330, 651, 62, 47423, 198, 198, 834, 9641, 834, 796, ...
3.285714
49
[![AnalyticsDojo](https://github.com/rpi-techfundamentals/spring2019-materials/blob/master/fig/final-logo.png?raw=1)](http://rpi.analyticsdojo.com) <center><h1>Classification with Scikit-learn </h1></center> <center><h3><a href = 'http://introml.analyticsdojo.com'>introml.analyticsdojo.com</a></h3></center> # Classi...
[ 58, 0, 58, 37702, 14094, 5211, 7639, 16151, 5450, 1378, 12567, 13, 785, 14, 81, 14415, 12, 13670, 10990, 3263, 874, 14, 16469, 23344, 12, 33665, 82, 14, 2436, 672, 14, 9866, 14, 5647, 14, 20311, 12, 6404, 78, 13, 11134, 30, 1831, ...
3.459024
2,294
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RClipr(RPackage): """Read and Write from the System Clipboard. Simple utility...
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
2.220779
385
# BayesFactorFMRI: This is a GUI-aided tool to perform Bayesian meta-analysis of fMRI data and Bayesian second-level analysis of fMRI contrast files (one-sample t-test) with multiprocessing. # author: Hyemin Han, University of Alabama (hyemin.han@ua.edu) # BayesFactorFMRI is licensed under MIT License. # Citations # I...
[ 2, 4696, 274, 41384, 23264, 7112, 25, 770, 318, 257, 25757, 12, 64, 1384, 2891, 284, 1620, 4696, 35610, 13634, 12, 20930, 286, 277, 40952, 1366, 290, 4696, 35610, 1218, 12, 5715, 3781, 286, 277, 40952, 6273, 3696, 357, 505, 12, 39873,...
3.586345
249
from nitter_scraper import NitterScraper from yfs.symbol import fuzzy_symbol_seach from yfs.summary import get_summary_page, get_summary_pages from requests.exceptions import ConnectionError, ProxyError, Timeout, RequestException import requests from requests import Session from concurrent.futures import as_completed, ...
[ 6738, 299, 1967, 62, 1416, 38545, 1330, 399, 1967, 3351, 38545, 198, 6738, 331, 9501, 13, 1837, 23650, 1330, 34669, 62, 1837, 23650, 62, 325, 620, 198, 6738, 331, 9501, 13, 49736, 1330, 651, 62, 49736, 62, 7700, 11, 651, 62, 49736, ...
2.13748
1,222
#!/usr/bin/env python from setuptools import dist dist.Distribution().fetch_build_eggs(['setuptools_rust']) from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="flitton-oasis-risk-modelling", version="0.1", rust_extensions=[RustExtension( ".flitton_oasis_ris...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 900, 37623, 10141, 1330, 1233, 198, 17080, 13, 20344, 3890, 22446, 69, 7569, 62, 11249, 62, 33856, 82, 7, 17816, 2617, 37623, 10141, 62, 11469, 6, 12962, 198, 6738, 900, 37623, 1...
2.385214
257