content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np from unittest import TestCase from core.feature_extraction.galaxy.galaxy_processor import GalaxyProcessor from commons.helpers.dataset.strategies.galaxy_dataset.label_strategy import GalaxyDataSetLabelStrategy from commons.helpers.dataset.conte...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 4755, 13...
3.149533
107
from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand from os import path
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 28686, 1330, 3108, 628 ]
4.052632
38
"""Registry utilities to handle formats for gmso Topology.""" SaversRegistry = Registry() LoadersRegistry = Registry()
[ 37811, 8081, 4592, 20081, 284, 5412, 17519, 329, 308, 76, 568, 5849, 1435, 526, 15931, 628, 628, 198, 50, 30400, 8081, 4592, 796, 33432, 3419, 198, 8912, 364, 8081, 4592, 796, 33432, 3419, 628, 198 ]
3.571429
35
dosyaadi = input("Enter file name: ") dosyaadi = str(dosyaadi + ".txt") with open(dosyaadi, 'r') as file : dosyaicerigi = file.read() silinecek = str(input("Enter the text that you wish to delete: ")) dosyaicerigi = dosyaicerigi.replace(silinecek, '') with open(dosyaadi, 'w') as file: file.write(dosyai...
[ 37427, 3972, 9189, 796, 5128, 7203, 17469, 2393, 1438, 25, 366, 8, 201, 198, 37427, 3972, 9189, 796, 965, 7, 37427, 3972, 9189, 1343, 27071, 14116, 4943, 201, 198, 201, 198, 4480, 1280, 7, 37427, 3972, 9189, 11, 705, 81, 11537, 355, ...
2.497006
167
import tensorflow as tf class CustomModelCheckpoint(tf.keras.callbacks.ModelCheckpoint): class CustomEarlyStopping(tf.keras.callbacks.EarlyStopping): def get_losses(): losses = [tf.keras.losses.BinaryCrossentropy()] return losses def get_metrics(single_output_idx, add_normal=False): metrics = []...
[ 11748, 11192, 273, 11125, 355, 48700, 628, 628, 628, 198, 4871, 8562, 17633, 9787, 4122, 7, 27110, 13, 6122, 292, 13, 13345, 10146, 13, 17633, 9787, 4122, 2599, 628, 198, 4871, 8562, 20457, 1273, 33307, 7, 27110, 13, 6122, 292, 13, 13...
2.365493
1,959
import re import json import time import sys import httplib2 from twitter import * import magic if __name__ == '__main__': for i in range(1, len(sys.argv)): tw = TwitterMediaDL() for tweetID in tw.get_medias(sys.argv[i]): list_url = tw.get_image_url(tweetID) for j in ran...
[ 11748, 302, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 25064, 198, 198, 11748, 1841, 489, 571, 17, 198, 6738, 17044, 1330, 1635, 198, 11748, 5536, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, ...
1.944056
286
# Copyright 2016 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, 1584, 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.11744
1,984
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 220, 15069, 2211, 10897, 1574, 3457, 13, 198, 2, 198, 2, 220, 49962, 73...
3.958159
239
#!/usr/bin/env python # # 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 1184...
2.619935
2,468
# -*- coding: utf-8 -*- import sys import urllib import urlparse # import xbmc import xbmcgui import xbmcplugin import aci # Get the plugin url in plugin:// notation. _url = sys.argv[0] # Get the plugin handle as an integer number. _handle = int(sys.argv[1]) # Get an instance of ACI. ATV = aci.ACI() ATV.load_aci()...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 2956, 297, 571, 198, 11748, 19016, 29572, 198, 198, 2, 1330, 2124, 20475, 66, 198, 11748, 2124, 20475, 66, 48317, 198, 11748, 2124, 20475, ...
2.496006
4,006
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import logging from coremltools.converters.mil.input_types import ( InputType, TensorType, ...
[ 2, 220, 15069, 357, 66, 8, 12131, 11, 4196, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 18, 12, 565, 682, 5964, 326, 460, 307, 198, 2, 220, 1043, 287, ...
2.992665
409
#!/usr/bin/env python # Copyright (c) 2016 Clay Wells # # A Python-based link checker. # # Usage: pylinkcheck.py -r https://www.example.com # # By default, we can spider and check all of the links found at the URL's # domain. For example, a check of https://foo.example.com will only check # links with the base URL ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 1584, 15551, 18292, 220, 198, 2, 198, 2, 317, 11361, 12, 3106, 2792, 2198, 263, 13, 198, 2, 220, 220, 198, 2, 29566, 25, 279, 2645, 676, 9122, 13, 9078...
3.024924
1,324
import logging from abc import abstractmethod import abc import six from collections import deque from moto.dynamodb2.parsing.ast_nodes import ( UpdateExpression, UpdateExpressionSetClause, UpdateExpressionSetActions, UpdateExpressionSetAction, UpdateExpressionRemoveActions, UpdateExpressionRem...
[ 11748, 18931, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 11748, 450, 66, 198, 11748, 2237, 198, 6738, 17268, 1330, 390, 4188, 198, 198, 6738, 285, 2069, 13, 67, 4989, 375, 65, 17, 13, 79, 945, 278, 13, 459, 62, 77, 4147, 1330, 3...
2.722071
734
# -*- coding: utf-8 -*- """The graphical part of a DFTB+ Optimization node""" import logging import tkinter as tk import tkinter.ttk as ttk import dftbplus_step logger = logging.getLogger(__name__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 464, 27831, 636, 286, 257, 360, 9792, 33, 10, 30011, 1634, 10139, 37811, 198, 198, 11748, 18931, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, ...
2.636364
77
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Mdulo de configurao dos consoles """ from Crypto.PublicKey import RSA import socket import os import base64
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 44, 67, 43348, 390, 4566, 5330, 78, 23430, 22629, 201, 198, 201, 198, 37811, 201, 198, 201, 198,...
2.514706
68
""" Django settings for marion project. """ from pathlib import Path from tempfile import mkdtemp from configurations import Configuration, values BASE_DIR = Path(__file__).parent.resolve() DATA_DIR = Path("/data") # pylint: disable=no-init
[ 37811, 198, 35, 73, 14208, 6460, 329, 1667, 295, 1628, 13, 198, 37811, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 20218, 7753, 1330, 33480, 67, 29510, 198, 198, 6738, 25412, 1330, 28373, 11, 3815, 198, 198, 33, 11159, 62, 347...
3.179487
78
# # 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"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
3.893764
433
# Generated by Django 3.0.3 on 2020-02-07 19:59 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 12131, 12, 2999, 12, 2998, 678, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import toml from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__, instance_relative_config=True) app.config.from_file("config.toml", load=toml.load) db = SQLAlchemy(app) from space_trace import views, cli
[ 11748, 284, 4029, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 11, 4554, 62, 43762, 62, 11250, 28, 17821, 8, 198, 1324, 13, 11250, 13,...
3.025
80
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging from enum import Enum from .NormalDist import NormalDist from .UniformDist import UniformDist
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 764, 26447, 20344, 1330, 14435, 20344, 198, 6738, 764, ...
3.14
50
import os import sys filename = sys.argv[1] from_id = int(sys.argv[2]) to_id = int(sys.argv[2]) for i in range(from_id, to_id + 1): sys.system("mv {0}.in{1} {0}{1}.in".format(filename, i)) sys.system("mv {0}.out{1} {0}{1}.out".format(filename, i))
[ 11748, 28686, 198, 11748, 25064, 198, 198, 34345, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 6738, 62, 312, 796, 493, 7, 17597, 13, 853, 85, 58, 17, 12962, 198, 1462, 62, 312, 796, 493, 7, 17597, 13, 853, 85, 58, 17, 12962, 198, ...
2.114754
122
from django.urls import path from . import views urlpatterns = [ path('apply/', views.FillPassApplication, name='transit-pass-application-form'), path('application-details/<int:appln_id>', views.DisplayApplicationToken, name='application-details'), path('view-application-list/', views.DisplayApplication...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 39014, 14, 3256, 5009, 13, 33762, 14478, 23416, 11, 1438, 11639, 7645, 270, 12, 6603, 12, ...
3.390863
197
import dash from dash.dependencies import Input, Output import dash_html_components as html import dash_core_components as dcc app = dash.Dash(__name__) app.layout = html.Div([ dcc.Textarea( id='textarea-example', value='Textarea content initialized\nwith multiple lines of text', style={'w...
[ 11748, 14470, 198, 6738, 14470, 13, 45841, 3976, 1330, 23412, 11, 25235, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 198, 1324, 796, 14470, 13, 43041, 7, 83...
2.657754
187
import pytest from selenium.common.exceptions import WebDriverException from wrapped_driver import WrappedDriver def test_empty_chromedriver_path(): """Assert error is raised if no chromedriver path is used""" with pytest.raises(WebDriverException): WrappedDriver(executable_path="", headless=True) ...
[ 11748, 12972, 9288, 198, 6738, 384, 11925, 1505, 13, 11321, 13, 1069, 11755, 1330, 5313, 32103, 16922, 198, 198, 6738, 12908, 62, 26230, 1330, 27323, 1496, 32103, 628, 198, 4299, 1332, 62, 28920, 62, 28663, 276, 38291, 62, 6978, 33529, ...
3.043478
161
from rlp.sedes import ( CountableList, ) from eth.rlp.headers import ( BlockHeader, ) from eth.vm.forks.byzantium.blocks import ( ByzantiumBlock, ) from .transactions import ( PetersburgTransaction, )
[ 6738, 374, 34431, 13, 36622, 274, 1330, 357, 198, 220, 220, 220, 2764, 540, 8053, 11, 198, 8, 198, 6738, 4555, 13, 81, 34431, 13, 50145, 1330, 357, 198, 220, 220, 220, 9726, 39681, 11, 198, 8, 198, 6738, 4555, 13, 14761, 13, 1640,...
2.638554
83
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
[ 2, 15069, 12131, 25000, 20185, 42727, 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,...
3.11859
624
""" transforms.py is for shape-preserving functions. """ import numpy as np
[ 37811, 201, 198, 7645, 23914, 13, 9078, 318, 329, 5485, 12, 18302, 14344, 5499, 13, 201, 198, 37811, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198 ]
2.709677
31
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext as _
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 355, 4808, 628 ]
3.588235
34
from abc import ABCMeta, abstractmethod from frontegg.helpers.frontegg_urls import frontegg_urls import typing import jwt import requests from frontegg.helpers.logger import logger from jwt import InvalidTokenError
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 1216, 38599, 1130, 13, 16794, 364, 13, 69, 1313, 660, 1130, 62, 6371, 82, 1330, 1216, 38599, 1130, 62, 6371, 82, 198, 11748, 19720, 198, 11748, 474, 46569, 198, 11748, 700...
3.375
64
# coding: utf-8 # Copyright 2021 Splunk, 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 agree...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 15069, 220, 33448, 13341, 2954, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 2599, 345, 743, 198, 2, 407, 779, 428, ...
3.427126
494
from flask import Blueprint home_bp = Blueprint('home', __name__) from . import views # noqa
[ 6738, 42903, 1330, 39932, 628, 198, 11195, 62, 46583, 796, 39932, 10786, 11195, 3256, 11593, 3672, 834, 8, 198, 198, 6738, 764, 1330, 5009, 220, 1303, 645, 20402, 198 ]
3.344828
29
#!/usr/bin/env python3 import requests import subprocess import smtplib import re import os import tempfile temp_dir = tempfile.gettempdir() os.chdir(temp_dir) download("https://github.com/AlessandroZ/LaZagne/releases/download/2.4.3/lazagne.exe") # LaZagne result = subprocess.check_output("lazagne.exe all", shell...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 7007, 198, 11748, 850, 14681, 198, 11748, 895, 83, 489, 571, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 20218, 7753, 628, 628, 198, 29510, 62, 15908, 796, 20218, 7753, ...
2.744966
149
from SmartAPI.rdf.List import List
[ 6738, 10880, 17614, 13, 4372, 69, 13, 8053, 1330, 7343, 198 ]
3.181818
11
################################################################################################## # Copyright (c) 2012 Brett Dixon # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without r...
[ 29113, 29113, 29113, 2235, 198, 2, 15069, 357, 66, 8, 2321, 18726, 31178, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 290, 3917, 10314, 3696, 357, ...
2.28226
3,929
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.speedchat.PSpeedChatQuestMenu from otp.speedchat.SCMenu import SCMenu from otp.speedchat.SCTerminal import * from otp.speedchat....
[ 2, 34318, 2349, 21, 2196, 513, 13, 17, 13, 15, 198, 2, 11361, 18022, 8189, 362, 13, 19, 357, 38850, 5333, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 362, 13, 22, 13, 1415, 357, 85, 17, 13, 22, 13, 1415, 25, 23, 34825, 1129, ...
3.052632
190
# from redbot.core import Config from redbot.core import Config, commands, checks import asyncio import aiohttp import discord from discord import Webhook, AsyncWebhookAdapter import re
[ 2, 422, 2266, 13645, 13, 7295, 1330, 17056, 198, 6738, 2266, 13645, 13, 7295, 1330, 17056, 11, 9729, 11, 8794, 198, 11748, 30351, 952, 198, 11748, 257, 952, 4023, 198, 11748, 36446, 198, 6738, 36446, 1330, 5313, 25480, 11, 1081, 13361, ...
3.875
48
#The MIT License # #Copyright (c) 2020 DATA Lab at Texas A&M University #Copyright (c) 2016 OpenAI (https://openai.com) # #Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inclu...
[ 2, 464, 17168, 13789, 198, 2, 198, 2, 15269, 357, 66, 8, 12131, 42865, 3498, 379, 3936, 317, 5, 44, 2059, 198, 2, 15269, 357, 66, 8, 1584, 4946, 20185, 357, 5450, 1378, 9654, 1872, 13, 785, 8, 198, 2, 198, 2, 5990, 3411, 318, ...
3.016653
1,201
import random import math from functools import partial import json import pysndfx import librosa import numpy as np import torch from ops.audio import ( read_audio, compute_stft, trim_audio, mix_audio_and_labels, shuffle_audio, cutout ) SAMPLE_RATE = 44100
[ 11748, 4738, 198, 11748, 10688, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 33918, 198, 198, 11748, 279, 893, 358, 21373, 198, 11748, 9195, 4951, 64, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 198, 6738, 39628, ...
2.831683
101
#!/usr/env/bin python import os # os.environ['OMP_NUM_THREADS'] = '1' from newpoisson import poisson import numpy as np from fenics import set_log_level, File, RectangleMesh, Point mesh = RectangleMesh(Point(0,0), Point(1,1), 36, 36) # comm = mesh.mpi_comm() set_log_level(40) # ERROR=40 # from mpi4py import MPI # com...
[ 2, 48443, 14629, 14, 24330, 14, 8800, 21015, 198, 11748, 28686, 198, 2, 28686, 13, 268, 2268, 17816, 2662, 47, 62, 41359, 62, 4221, 15675, 50, 20520, 796, 705, 16, 6, 198, 6738, 649, 7501, 30927, 1330, 745, 30927, 198, 11748, 299, 3...
2.316354
746
""" Irreduzibilittskriterien Implementiert wurden das Eisenstein- und das Perronkriterium Quellen: https://rms.unibuc.ro/bulletin/pdf/53-3/perron.pdf http://math-www.uni-paderborn.de/~chris/Index33/V/par5.pdf bergeben werden Polynome vom Typ Polynomial, keine direkten Listen von Koeffiz...
[ 37811, 198, 220, 220, 220, 5686, 445, 10277, 571, 346, 715, 8135, 43407, 2013, 198, 220, 220, 220, 48282, 72, 861, 266, 42568, 288, 292, 22633, 5714, 12, 3318, 288, 292, 2448, 1313, 74, 43407, 1505, 198, 220, 220, 220, 4670, 297, 26...
2.277536
1,380
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # import copy import numpy as np from llvmlite import ir as lir from numba.core import types, typing, utils, ir, config, ir_utils, registry from numba.core.typing.templates import (CallableTemplate, signature, ...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 12, 2601, 682, 198, 2, 198, 198, 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 32660, 85, ...
2.817568
296
import numpy as np import pydrake.symbolic as ps import torch import time from irs_lqr.dynamical_system import DynamicalSystem
[ 11748, 299, 32152, 355, 45941, 198, 11748, 279, 5173, 33788, 13, 1837, 2022, 4160, 355, 26692, 198, 11748, 28034, 198, 11748, 640, 198, 198, 6738, 4173, 82, 62, 75, 80, 81, 13, 67, 4989, 605, 62, 10057, 1330, 14970, 605, 11964, 198 ]
3.047619
42
import streamlit as st import math from scipy.stats import * import pandas as pd import numpy as np from plotnine import *
[ 11748, 4269, 18250, 355, 336, 198, 11748, 10688, 198, 6738, 629, 541, 88, 13, 34242, 1330, 1635, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 7110, 30888, 1330, 1635, 198 ]
3.324324
37
import logging import unittest from config_test import build_client_from_configuration _logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 555, 715, 395, 198, 198, 6738, 4566, 62, 9288, 1330, 1382, 62, 16366, 62, 6738, 62, 11250, 3924, 198, 198, 62, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.282051
39
"""Runway providers."""
[ 37811, 10987, 1014, 9549, 526, 15931, 198 ]
3.428571
7
#!/usr/bin/env python """ This sample application is a server that supports COV notification services. The console accepts commands that change the properties of an object that triggers the notifications. """ import time from threading import Thread from bacpypes.debugging import bacpypes_debugging, ModuleLogger fro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 1212, 6291, 3586, 318, 257, 4382, 326, 6971, 7375, 53, 14483, 2594, 13, 198, 464, 8624, 18178, 9729, 326, 1487, 262, 6608, 286, 281, 2134, 326, 198, 2213, 328, 5355, ...
2.547493
1,516
import os import platform import subprocess from django.http import HttpResponse from django.conf import settings
[ 11748, 28686, 198, 11748, 3859, 198, 11748, 850, 14681, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198 ]
3.965517
29
import random import numpy as np import pandas as pd import streamlit as st from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import train_test_split from yellowbrick.classifier import classification_report from yellowbrick.target import FeatureCorrelation from yellowbrick.target import ClassBalan...
[ 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4269, 18250, 355, 336, 198, 6738, 1341, 35720, 13, 2616, 425, 62, 24406, 274, 1330, 12822, 31562, 32819, 198, 6738, 1341, 35720, 13, 1984...
2.310468
2,245
from flask import request import random import re from flask import current_app, jsonify from flask import g from flask import make_response from flask import redirect from flask import render_template from flask import request from flask import session from flask import url_for import time from info import constants, ...
[ 6738, 42903, 1330, 2581, 198, 11748, 4738, 198, 11748, 302, 198, 6738, 42903, 1330, 1459, 62, 1324, 11, 33918, 1958, 198, 6738, 42903, 1330, 308, 198, 6738, 42903, 1330, 787, 62, 26209, 198, 6738, 42903, 1330, 18941, 198, 6738, 42903, 1...
3.834146
205
#Answer Generation import csv import os import numpy as np from keras.models import * from keras.models import Model from keras.preprocessing import text train_ans, anslist = [], [] if __name__ == "__main__": main()
[ 2, 33706, 16588, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 27530, 1330, 1635, 198, 6738, 41927, 292, 13, 27530, 1330, 9104, 198, 6738, 41927, 292, 13, 3866, 36948, 1330, 24...
3.126761
71
# -*- coding: UTF-8 -*- from socket import * if __name__=='__main__': client() # buffer='POST /post HTTP/1.1\r\n' # buffer+='Content-Type:application/json\r\n' # buffer+='Body:{\\"StuId\\":\\"410785016 Chao,He-Teng\\"}\r\n' # buffer+='Address : ' + address + '\r\n' # buffer+='\r\n' # print(buffer) # message = ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 6738, 17802, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 5456, 3419, 628, 1303, 11876, 11639, 32782, 1220, 7353, 14626, ...
2.297872
141
"""Non-linear SPDE model on a periodic 1D spatial domain for laminar wave fronts. Based on the Kuramato--Sivashinsky PDE model [1, 2] which exhibits spatio-temporally chaotic dynamics. References: 1. Kuramoto and Tsuzuki. Persistent propagation of concentration waves in dissipative media far from thermal ...
[ 37811, 15419, 12, 29127, 30628, 36, 2746, 319, 257, 27458, 352, 35, 21739, 7386, 329, 300, 5669, 283, 6769, 29324, 13, 198, 198, 15001, 319, 262, 18132, 321, 5549, 438, 50, 452, 1077, 19870, 350, 7206, 2746, 685, 16, 11, 362, 60, 54...
3.012048
332
"""Utiltiy functions for working with Myo Armband data.""" from setuptools import setup, find_packages setup(name='myo_helper', version='0.1', description='Utiltiy functions for working with Myo Armband data', author='Lif3line', author_email='adamhartwell2@gmail.com', license='MIT', ...
[ 37811, 18274, 2326, 7745, 5499, 329, 1762, 351, 2011, 78, 943, 2022, 392, 1366, 526, 15931, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 40406, 7, 3672, 11639, 1820, 78, 62, 2978, 525, 3256, 198, 220, ...
2.333333
237
# -*-encoding:utf-8-*- import os from karlooper.web.application import Application from karlooper.web.request import Request url_mapping = { "/users": UsersHandler, "/user-info": UserInfoHandler } settings = { "template": os.getcwd() + "/templates", "static": os.getcwd() + "/templates", "log_e...
[ 2, 532, 9, 12, 12685, 7656, 25, 40477, 12, 23, 12, 9, 12, 198, 198, 11748, 28686, 198, 6738, 479, 283, 5439, 3575, 13, 12384, 13, 31438, 1330, 15678, 198, 6738, 479, 283, 5439, 3575, 13, 12384, 13, 25927, 1330, 19390, 628, 628, 19...
2.670213
188
import random import math
[ 11748, 4738, 198, 11748, 10688, 628, 628, 198 ]
3.75
8
from waiter.action import process_kill_request from waiter.util import guard_no_cluster, check_positive def kill(clusters, args, _, __): """Kills the service(s) using the given token name.""" guard_no_cluster(clusters) token_name_or_service_id = args.get('token-or-service-id') is_service_id = args.get...
[ 6738, 46612, 13, 2673, 1330, 1429, 62, 12728, 62, 25927, 198, 6738, 46612, 13, 22602, 1330, 4860, 62, 3919, 62, 565, 5819, 11, 2198, 62, 24561, 628, 198, 4299, 1494, 7, 565, 13654, 11, 26498, 11, 4808, 11, 11593, 2599, 198, 220, 220...
2.772414
435
"""The main module of the Analytics API Load Tests tool. Copyright (c) 2019 Red Hat Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
[ 37811, 464, 1388, 8265, 286, 262, 30437, 7824, 8778, 30307, 2891, 13, 198, 198, 15269, 357, 66, 8, 13130, 2297, 10983, 3457, 13, 198, 198, 1212, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 270, 7...
2.548092
1,310
# See LICENSE.incore file for details import os,re import multiprocessing as mp import time import shutil from riscv_ctg.log import logger import riscv_ctg.utils as utils import riscv_ctg.constants as const from riscv_isac.cgf_normalize import expand_cgf from riscv_ctg.generator import Generator from math import * fr...
[ 2, 4091, 38559, 24290, 13, 1939, 382, 2393, 329, 3307, 198, 198, 11748, 28686, 11, 260, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 198, 11748, 640, 198, 11748, 4423, 346, 198, 6738, 374, 2304, 85, 62, 310, 70, 13, 6404, 1330...
2.873016
126
from collections import namedtuple MainTimer = namedtuple('MainTimer', 'new_time_joined, end_period, new_weekday, days') print('---'*30) x = add_time('10:00 AM', '54:00', 'Monday') print(x) print('---'*30)
[ 6738, 17268, 1330, 3706, 83, 29291, 628, 198, 13383, 48801, 796, 3706, 83, 29291, 10786, 13383, 48801, 3256, 705, 3605, 62, 2435, 62, 46416, 11, 886, 62, 41007, 11, 649, 62, 10464, 820, 11, 1528, 11537, 628, 198, 198, 4798, 10786, 632...
2.658228
79
from .analyze_logs import AnalyzeLogs from .search_interface import SearchInterface from .detail_interface import DetailInterface from .user_interface import UserInterface from .visualize_log_detail import VisualizeLogDetail
[ 6738, 764, 38200, 2736, 62, 6404, 82, 1330, 16213, 2736, 11187, 82, 198, 6738, 764, 12947, 62, 39994, 1330, 11140, 39317, 198, 6738, 764, 49170, 62, 39994, 1330, 42585, 39317, 198, 6738, 764, 7220, 62, 39994, 1330, 11787, 39317, 198, 67...
4.090909
55
import matplotlib.pyplot as plt import numpy as np import sys sys.path.append('../../../software/models/') import dftModel as DFT import math k0 = 8.5 N = 64 w = np.ones(N) x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2)) mX, pX = DFT.dftAnal(x, w, N) y = DFT.dftSynth(mX, pX, N) plt.figure(1, figsize=(9.5, 5)) plt.subpl...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 40720, 40720, 43776, 14, 27530, 14, 11537, 198, 11748, 288, 701, 17633, ...
1.929078
423
# setup.py as described in: # https://stackoverflow.com/questions/27494758/how-do-i-make-a-python-script-executable # to install on your system, run: # > pip install -e . from setuptools import setup, find_packages setup( name='typobs', version='0.0.3', entry_points={ 'console_scripts': [ ...
[ 2, 9058, 13, 9078, 355, 3417, 287, 25, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 1983, 2920, 32576, 23, 14, 4919, 12, 4598, 12, 72, 12, 15883, 12, 64, 12, 29412, 12, 12048, 12, 18558, 18187, 198, 2, 284...
2.501761
568
""" decoded AUTH_HEADER (newlines added for readability): { "identity": { "account_number": "1234", "internal": { "org_id": "5678" }, "type": "User", "user": { "email": "test@example.com", "first_name": "Firstname", "is_active":...
[ 37811, 198, 12501, 9043, 37195, 62, 37682, 1137, 357, 3605, 6615, 2087, 329, 1100, 1799, 2599, 198, 90, 198, 220, 220, 220, 366, 738, 414, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 23317, 62, 17618, 1298, 366, 1065, 2...
1.592225
3,627
#####Time Flow Simulation###### import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import timedelta import datetime import csv data=pd.read_excel('CF66-all.xlsx') data.sort_values(by=['WBL_AUD_DT'],ascending=True,inplace=True) or_data=pd.read_excel('CF66-ordinary.xlsx') rul...
[ 4242, 2, 7575, 27782, 41798, 4242, 2235, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 6738, 4818, 8079, 1330, 28805, 1...
1.841399
1,715
import pytest import numpy as np from fanok.selection import adaptive_significance_threshold
[ 11748, 12972, 9288, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 4336, 482, 13, 49283, 1330, 29605, 62, 12683, 811, 590, 62, 400, 10126, 628 ]
3.555556
27
#!/usr/bin/python # Copyright 2019 Christopher Schmidt # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 13130, 12803, 24740, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, ...
3.540426
235
from .main import Matrix
[ 6738, 764, 12417, 1330, 24936, 198 ]
4.166667
6
import os import sys import json import datetime import numpy as np import glob import skimage from PIL import Image as pil_image import cv2 import cv2 dataset_dir='/Volumes/v2/data/mlib_data/dataset/cmk/images_v2/' subset='val' load_cmk(dataset_dir=dataset_dir,subset=subset) lo...
[ 628, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 15095, 198, 11748, 1341, 9060, 198, 6738, 350, 4146, 1330, 7412, 355, 5560, 62, 9060, 198, 1...
2.352941
204
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #Author:Winston.Wang import requests from bs4 import BeautifulSoup print(dir(BeautifulSoup)) url = 'http://www.baidu.com'; with requests.get(url) as r: r.encoding='utf-8' soup = BeautifulSoup(r.text) # pret = soup.prettify(); u = soup.select('#u1 a') for i in u: pr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 13838, 25, 16643, 3743, 13, 54, 648, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, ...
2.240741
162
from django.urls import path, include from . import views urlpatterns = [ path("", views.newsView, name="home"), path("createBlog", views.CreateBlogView.as_view(), name="createBlog"), path("myBlogs", views.PostListView.as_view(), name="myBlogs"), path("single/<int:pk>", views.PostDetailView.as_view(), ...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7203, 1600, 5009, 13, 10827, 7680, 11, 1438, 2625, 11195, 12340, 198, 220, 220, 220, ...
2.563422
339
#!/usr/bin/python _author_ = "Matthew Zheng" _purpose_ = "Sets up the unit class"
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 62, 9800, 62, 796, 366, 25372, 44583, 1, 198, 62, 29983, 62, 796, 366, 50, 1039, 510, 262, 4326, 1398, 1, 198 ]
2.733333
30
# -*- coding: utf-8 -*- """ Created on Wed Feb 26 22:23:07 2020 @author: Neal LONG Try to construct URL with string.format """ base_url = "http://quotes.money.163.com/service/gszl_{:>06}.html?type={}" stock = "000002" api_type = 'cp' print("http://quotes.money.163.com/service/gszl_"+stock+".html?type="...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 3158, 2608, 2534, 25, 1954, 25, 2998, 12131, 201, 198, 201, 198, 31, 9800, 25, 29189, 44533, 201, 198, 201, 198, 23433, 284, 56...
2.353846
390
from conans.server.launcher import ServerLauncher from conans.util.env_reader import get_env launcher = ServerLauncher(server_dir=get_env("CONAN_SERVER_HOME")) app = launcher.server.root_app if __name__ == "__main__": main()
[ 6738, 369, 504, 13, 15388, 13, 38722, 2044, 1330, 9652, 46182, 2044, 198, 198, 6738, 369, 504, 13, 22602, 13, 24330, 62, 46862, 1330, 651, 62, 24330, 198, 198, 38722, 2044, 796, 9652, 46182, 2044, 7, 15388, 62, 15908, 28, 1136, 62, ...
2.853659
82
# 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...
4.233766
154
# # This module builds upon Cycles nodes work licensed as # Copyright 2011-2013 Blender Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
[ 2, 198, 2, 770, 8265, 12188, 2402, 5934, 5427, 13760, 670, 11971, 355, 198, 2, 15069, 2813, 12, 6390, 1086, 2194, 5693, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 3...
3.660156
256
import configparser import numpy as np import os if __name__ == "__main__": config = Config(print_warnings=True) # Check if any added items miss templates for k in config.items: if not os.path.exists(f"./assets/items/{k}.png"): print(f"Template not found: {k}") # C...
[ 11748, 4566, 48610, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28686, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 4566, 796, 17056, 7, 4798, ...
2.298077
312
# Copyright 2019 Jian Wu # License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import math import numpy as np import torch as th import torch.nn as nn import torch.nn.functional as tf import librosa.filters as filters from aps.const import EPSILON from typing import Optional, Union, Tuple def init_win...
[ 2, 15069, 13130, 40922, 18027, 198, 2, 13789, 25, 24843, 362, 13, 15, 357, 4023, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 8, 198, 198, 11748, 10688, 198, 198, 11748, 299, 32152, 355, 459...
1.998003
7,510
# Copyright 2019 Graphcore Ltd. from models.resnet_base import ResNet import tensorflow.compat.v1 as tf import tensorflow.contrib as contrib from tensorflow.python.ipu import normalization_ops # This is all written for: NHWC
[ 2, 15069, 13130, 29681, 7295, 12052, 13, 198, 6738, 4981, 13, 411, 3262, 62, 8692, 1330, 1874, 7934, 198, 198, 11748, 11192, 273, 11125, 13, 5589, 265, 13, 85, 16, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 355, 542, ...
3.257143
70
# Generated by Django 3.1.4 on 2020-12-05 18:46 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 12131, 12, 1065, 12, 2713, 1248, 25, 3510, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python3 import time import os import tempfile import shutil import logging from enum import Enum from argparse import ArgumentParser, Namespace, FileType from netCDF4 import Dataset, MFDataset import geopandas as gpd import numpy as np domain_nodes_shp = "gis/ssm domain nodes.shp" masked_nodes_txt = "g...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 11748, 18931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 1822, 29572, 1330, 45751, 46677, ...
2.457219
374
from logging import getLogger from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor from libcity.utils import get_evaluator
[ 6738, 18931, 1330, 651, 11187, 1362, 198, 6738, 9195, 19205, 13, 18558, 38409, 13, 397, 8709, 62, 2213, 324, 653, 62, 18558, 38409, 1330, 27741, 2898, 324, 653, 23002, 38409, 198, 6738, 9195, 19205, 13, 26791, 1330, 651, 62, 18206, 84, ...
3.581395
43
# Generated by Django 2.2.5 on 2020-04-08 00:08 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 12131, 12, 3023, 12, 2919, 3571, 25, 2919, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# API # 2 BlockRequest Request # API 2 # # BlockRequest - # Request Received # # 2 # BlockRequest # , BlockRequest # # Request . import pythoncom from PyQt5.QtWidgets import * import win32com.client import win32even...
[ 2, 220, 7824, 201, 198, 2, 220, 220, 220, 362, 9726, 18453, 220, 19390, 220, 220, 220, 201, 198, 2, 220, 7824, 220, 220, 220, 220, 220, 362, 220, 201, 198, 2, 201, 198, 2, 9726, 18453, 220, 532, 220, 220, 220, 220, 220, 220, 2...
2.210213
1,175
#%% import numpy as np import copy import matplotlib.pyplot as plt import time def split_cluster_new(tree,local_density,dc_eps,closest_denser_nodes_id,mixin_near_matrix): ''' dc_eps: density_connectivity outlier outlier_forest cluster_forest ''' m...
[ 2, 16626, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4866, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 640, 220, 198, 198, 4299, 6626, 62, 565, 5819, 62, 3605, 7, 21048, 11, 12001, 62, 43337, 11, 1...
2.034141
3,632
from __future__ import print_function import sys sys.path.append('.') import os from typing import Optional, Union import cv2 import numpy as np import PIL.Image as Image import pickle import torch from torch.utils import data __all__ = ["TAO"]
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 2637, 8, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 11, 4479, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, ...
3.293333
75
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.main_web import PhaazebotWeb import json from aiohttp.web import Response from Utils.Classes.extendedrequest import ExtendedRequest
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 361, 41876, 62, 50084, 2751, 25, 198, 197, 6738, 19193, 82, 13, 13908, 13, 12417, 62, 12384, 1330, 1380, 64, 1031, 1765, 313, 13908, 198, 198, 11748, 33918, 198, 6738, 257, 952, 4023, 13...
3.4
60
import torch import torch.nn as nn
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628, 198 ]
3.083333
12
""" Module for plotting analyses """ import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from copy import deepcopy import pickle, json import os from matplotlib.offsetbox import AnchoredOffsetbox try: basestring except NameError: basestring = str colorList = [[0.42, 0.67, 0.84], [0....
[ 37811, 198, 26796, 329, 29353, 13523, 198, 198, 37811, 198, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4866, 1330, 2769, 300...
2.156352
1,228
from mo_parsing.helpers import QuotedString wikiInput = """ Here is a simple Wiki input: *This is in italics.* **This is in bold!** ***This is in bold italics!*** Here's a URL to {{Pyparsing's Wiki Page->https://site-closed.wikispaces.com}} """ italicized = QuotedString("*").add_parse_action(con...
[ 6738, 6941, 62, 79, 945, 278, 13, 16794, 364, 1330, 2264, 5191, 10100, 201, 198, 201, 198, 15466, 20560, 796, 37227, 201, 198, 4342, 318, 257, 2829, 13078, 5128, 25, 201, 198, 220, 1635, 1212, 318, 287, 46127, 873, 15885, 201, 198, ...
2.496296
270
import pytest import re from typing import Any, Tuple from dataclasses import dataclass from app_settings_dict import Settings
[ 11748, 12972, 9288, 198, 11748, 302, 198, 6738, 19720, 1330, 4377, 11, 309, 29291, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 598, 62, 33692, 62, 11600, 1330, 16163, 628, 628, 628, 628, 628, 628, 628, 628 ]
3.55
40
import os import time import cv2 import sys sys.path.append('..') import numpy as np from math import cos, sin from lib.FSANET_model import * import numpy as np from keras.layers import Average if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 640, 198, 198, 11748, 269, 85, 17, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 492, 11537, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 8615, 11, 7813, 198, 198, 6738, 9195, 13, ...
2.711111
90
import discord from discord.commands import option bot = discord.Bot(debug_guilds=[...]) COLORS = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"] LOTS_OF_COLORS = [ "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "blueviolet", "brown...
[ 11748, 36446, 198, 6738, 36446, 13, 9503, 1746, 1330, 3038, 198, 198, 13645, 796, 36446, 13, 20630, 7, 24442, 62, 70, 3547, 82, 41888, 986, 12962, 198, 198, 25154, 20673, 796, 14631, 445, 1600, 366, 43745, 1600, 366, 36022, 1600, 366, ...
2.031209
769
from _thread import start_new_thread from bitcoin.messages import * from bitcoin.net import CAddress from bitcoin.core import CBlock from io import BytesIO as _BytesIO import atexit import bitcoin import fcntl import hashlib import json import os import random import re import socket import struct import sys import tim...
[ 6738, 4808, 16663, 1330, 923, 62, 3605, 62, 16663, 198, 6738, 8550, 13, 37348, 1095, 1330, 1635, 198, 6738, 8550, 13, 3262, 1330, 327, 20231, 198, 6738, 8550, 13, 7295, 1330, 327, 12235, 198, 6738, 33245, 1330, 2750, 4879, 9399, 355, ...
3.512792
899
#!python3 ''' author: justZero email: alonezero@foxmail.com date: 2017-8-6 ''' import time import pandas as pd import numpy as np import pymysql import pymysql.cursors import pprint if __name__ == '__main__': inputFile = 'data/douban_movie_clean.txt' movies_df = pd.read_csv(inputFile, sep='^') movies ...
[ 2, 0, 29412, 18, 198, 198, 7061, 6, 628, 198, 9800, 25, 655, 28667, 198, 12888, 25, 3436, 22570, 31, 12792, 4529, 13, 785, 198, 4475, 25, 2177, 12, 23, 12, 21, 198, 7061, 6, 198, 198, 11748, 640, 198, 11748, 19798, 292, 355, 279...
2.231818
220
import ezff from ezff.interfaces import gulp, qchem # Define ground truths gt_gs = qchem.read_structure('ground_truths/optCHOSx.out') gt_gs_energy = qchem.read_energy('ground_truths/optCHOSx.out') gt_scan = qchem.read_structure('ground_truths/scanCHOSx.out') gt_scan_energy = qchem.read_energy('ground_truths/scanCHOSx....
[ 11748, 304, 89, 487, 198, 6738, 304, 89, 487, 13, 3849, 32186, 1330, 308, 29528, 11, 10662, 15245, 198, 198, 2, 2896, 500, 2323, 24279, 198, 13655, 62, 14542, 796, 10662, 15245, 13, 961, 62, 301, 5620, 10786, 2833, 62, 35310, 82, 14...
2.873016
252
import logging from testing_func import testing_func, test_logger from unit_parse import logger, Unit, Q from unit_parse.utils import * test_logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG) test_split_list = [ # positive control (changes) [["fish","pig", "cow"], ["f", "is", "h", "pig", "cow"], ...
[ 11748, 18931, 198, 198, 6738, 4856, 62, 20786, 1330, 4856, 62, 20786, 11, 1332, 62, 6404, 1362, 198, 6738, 4326, 62, 29572, 1330, 49706, 11, 11801, 11, 1195, 198, 6738, 4326, 62, 29572, 13, 26791, 1330, 1635, 198, 198, 9288, 62, 6404,...
2.297189
996
import sys from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA if __name__ == '__main__': key_file = sys.argv[1] input_string = sys.argv[2] out_file = sys.argv[3] sign_data(key_file, input_string, out_file)
[ 11748, 25064, 198, 198, 6738, 36579, 13, 11712, 1300, 1330, 279, 74, 6359, 16, 62, 1314, 198, 6738, 36579, 13, 26257, 1330, 25630, 11645, 198, 6738, 36579, 13, 15202, 9218, 1330, 42319, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.509091
110
from typing import Any, Callable, NamedTuple, Optional, Union from pandas import DataFrame from freqtrade.exceptions import OperationalException from freqtrade.strategy.strategy_helper import merge_informative_pair PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame] def informative(timeframe: str, a...
[ 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 34441, 51, 29291, 11, 32233, 11, 4479, 198, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 198, 6738, 2030, 80, 25351, 13, 1069, 11755, 1330, 6564, 864, 16922, 198, 6738, 2030, 80, 25351, 13...
2.960843
664
from functools import partial from selenium.webdriver import Firefox from selenium.webdriver.support.ui import ( WebDriverWait ) esperar_botao = partial(esperar_elemento, 'button') esperar_sucesso = partial(esperar_elemento, '#finished') url = 'https://selenium.dunossauro.live/aula_09_a.html' driver = Firefox(...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 1330, 16802, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 357, 198, 220, 220, 220, 5313, 32103, 21321, 198, 8, 628, 198, ...
2.501931
259
import torch from torch import nn from prae.distances import square_dist, HingedSquaredEuclidean def tile(embedding, example): """ """ n = example.shape[0]//embedding.shape[0] embedding = embedding.unsqueeze(1).repeat(1, n, 1) embedding = squeeze_embedding(embedding) return embedding def s...
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 7201, 68, 13, 17080, 1817, 1330, 6616, 62, 17080, 11, 367, 24431, 22266, 1144, 36, 36616, 485, 272, 628, 628, 198, 4299, 17763, 7, 20521, 12083, 11, 1672, 2599, 198, 220, 220, ...
2.416185
173