content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import numpy as np import matplotlib.pyplot as plt import torch import scipy from GLM.GLM_Model import GLM_Model, PyTorchObj from scipy.optimize import minimize, Bounds from tqdm import tqdm
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28034, 198, 11748, 629, 541, 88, 198, 198, 6738, 10188, 44, 13, 8763, 44, 62, 17633, 1330, 10188, 44, 62, 17633, 11, 9485, 15884,...
2.828571
70
from k5test import * # Test that the kdcpreauth client_keyblock() callback matches the key # indicated by the etype info, and returns NULL if no key was selected. testpreauth = os.path.join(buildtop, 'plugins', 'preauth', 'test', 'test.so') conf = {'plugins': {'kdcpreauth': {'module': 'test:' + testpreauth}, ...
[ 6738, 479, 20, 9288, 1330, 1635, 198, 198, 2, 6208, 326, 262, 479, 17896, 3866, 18439, 5456, 62, 2539, 9967, 3419, 23838, 7466, 262, 1994, 198, 2, 8203, 416, 262, 304, 4906, 7508, 11, 290, 5860, 15697, 611, 645, 1994, 373, 6163, 13,...
2.573417
5,101
#!/usr/bin/env python3 # ## Licensed to the .NET Foundation under one or more agreements. ## The .NET Foundation licenses this file to you under the MIT license. # ## # Title: antigen_unique_issues.py # # Notes: # # Script to identify unique issues from all partitions and print them on console. # ######################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2235, 49962, 284, 262, 764, 12884, 5693, 739, 530, 393, 517, 11704, 13, 198, 2235, 383, 764, 12884, 5693, 16625, 428, 2393, 284, 345, 739, 262, 17168, 5964, 13, 198, 2, ...
2.324689
1,851
""" .. module:: CMetricTestError :synopsis: Performance Metric: Test Error .. moduleauthor:: Marco Melis <marco.melis@unica.it> """ import sklearn.metrics as skm from secml.array import CArray from secml.ml.peval.metrics import CMetric
[ 37811, 198, 492, 8265, 3712, 327, 9171, 1173, 14402, 12331, 198, 220, 220, 1058, 28869, 24608, 25, 15193, 3395, 1173, 25, 6208, 13047, 198, 198, 492, 8265, 9800, 3712, 16556, 5616, 271, 1279, 3876, 1073, 13, 17694, 271, 31, 403, 3970, ...
2.892857
84
from __future__ import division, print_function import argparse import sys, os, time, gzip, glob from collections import defaultdict from base.config import combine_configs from base.io_util import make_dir, remove_dir, tree_to_json, write_json, myopen from base.sequences_process import sequence_set from base.utils imp...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 11748, 1822, 29572, 198, 11748, 25064, 11, 28686, 11, 640, 11, 308, 13344, 11, 15095, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 2779, 13, 11250, 1330, 12082, 62, 11250,...
3.437984
258
# -*- coding: utf-8 -*- # Copyright (c) 2015, nodux and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import throw, _
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 11, 18666, 2821, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098...
3.450704
71
from flask import render_template from flask_mail import Message from main import mail, app
[ 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, 42903, 62, 4529, 1330, 16000, 198, 6738, 1388, 1330, 6920, 11, 598, 628 ]
4.428571
21
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import Union from cdm.persistence.cdmfolder.types.projections.operation_base import OperationBase from cdm.persistence.cdmfolder.types.type_attribute im...
[ 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, 198, 198, 6738, 19720, 1330, 4479, 198, 6738, 22927, 76, 13,...
4.041667
120
""" Query functions to run against ElasticSearch """ # pylint: disable=invalid-name from ebr_connector.schema.build_results import BuildResults detailed_build_info = { "includes": [ "br_build_date_time", "br_job_name", "br_job_url_key", "br_source", "br_build_id_key", ...
[ 37811, 198, 20746, 5499, 284, 1057, 1028, 48567, 18243, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 6738, 304, 1671, 62, 8443, 273, 13, 15952, 2611, 13, 11249, 62, 43420, 1330, 10934, 25468, 198, 198,...
2.473958
768
#!/usr/bin/env python3 import socket import sys import time import argparse # action can be reflect or drop action = "drop" test = 0 if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-m', action='store', dest='mode') parser.add_argument('-i', action='store', dest='ip') ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 198, 2, 2223, 460, 307, 4079, 393, 4268, 220, 198, 2673, 796, 366, 14781, 1, 198, 9288, 796, ...
2.515544
386
import torch from torch.utils import data import numpy as np import os import cv2 import torchvision.transforms as transforms from PIL import Image import random from PIL import ImageFile
[ 11748, 28034, 198, 6738, 28034, 13, 26791, 1330, 1366, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, ...
3.8
50
################################################################################################################################################################ # @project Open Space Toolkit Physics # @file bindings/python/test/time/test_time.py # @author Lucas Brmond <lucas@loftorbital.com> ...
[ 29113, 29113, 29113, 29113, 29113, 198, 198, 2, 2488, 16302, 220, 220, 220, 220, 220, 220, 220, 4946, 4687, 16984, 15813, 220, 23123, 198, 2, 2488, 7753, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34111, 14, 29412, 14, 9288, ...
15.198529
272
from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from datetime import datetime, timedelta from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage from email.mime.text import MIMEText from email.header import Header import psycopg2.extension...
[ 6738, 23645, 62, 18439, 62, 12162, 1071, 8019, 13, 11125, 1330, 2262, 4262, 4677, 37535, 198, 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 3053, 13, ...
2.543952
24,208
from datetime import datetime, timedelta from flask import current_app import jwt from api import db, bcrypt
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 11748, 474, 46569, 198, 198, 6738, 40391, 1330, 20613, 11, 275, 29609, 628 ]
3.612903
31
import ccs team = ccs.team(raw_input("Team Number: ")) summary = team.summary print "Team {} ({} {}) - {} images ({} points) - {}/{} {}".format( summary.number, summary.division, summary.location, summary.images, summary.score, summary.playtime, summary.scoretime, summary.warn) for image in team.ima...
[ 11748, 269, 6359, 198, 198, 15097, 796, 269, 6359, 13, 15097, 7, 1831, 62, 15414, 7203, 15592, 7913, 25, 366, 4008, 198, 49736, 796, 1074, 13, 49736, 198, 4798, 366, 15592, 23884, 37913, 92, 23884, 8, 532, 23884, 4263, 37913, 92, 2173...
2.71875
192
# Copyright 2015, 2017 IBM Corp. # # 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 require...
[ 2, 15069, 1853, 11, 2177, 19764, 11421, 13, 198, 2, 198, 2, 1439, 6923, 33876, 13, 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, 2...
3.036011
361
import random import networkx as nx from ..node import Node
[ 11748, 4738, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 198, 6738, 11485, 17440, 1330, 19081, 628 ]
3.5
18
#!/usr/bin/env python3 sx, sy, tx, ty = map(int, input().split()) x, y = tx - sx, ty - sy print("R"*x + "U"*-~y + "L"*-~x + "D"*-~y + "R" + "U"*y + "R"*-~x + "D"*-~y + "L"*-~x + "U")
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 82, 87, 11, 827, 11, 27765, 11, 1259, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 87, 11, 331, 796, 27765, 532, 264, 87, 11, 1259, 532, 827, 198, 4798, 7203, 49, 1...
1.669725
109
a = list(map(int, input().split())) [i[0] for i in sorted(enumerate(a), key=lambda x:x[1])]
[ 64, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 198, 58, 72, 58, 15, 60, 329, 1312, 287, 23243, 7, 268, 6975, 378, 7, 64, 828, 1994, 28, 50033, 2124, 25, 87, 58, 16, 12962, 60 ]
2.243902
41
"""This module provides the RP To-Do CLI.""" from typing import Optional import typer from rptodo import __app_name__, __version__ app = typer.Typer()
[ 37811, 1212, 8265, 3769, 262, 25812, 1675, 12, 5211, 43749, 526, 15931, 198, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 1259, 525, 198, 198, 6738, 374, 457, 24313, 1330, 11593, 1324, 62, 3672, 834, 11, 11593, 9641, 834, 198, 198, ...
3.078431
51
import asyncio import logging import pigpio if __name__ == "__main__": asyncio.run(main())
[ 11748, 30351, 952, 198, 11748, 18931, 198, 198, 11748, 12967, 79, 952, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 30351, 952, 13, 5143, 7, 12417, 28955, 198 ]
2.702703
37
""" MIT License Copyright (c) 2020 ValkyriaKing711 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, including without limitation the rights to use, copy, modify, merge...
[ 37811, 201, 198, 36393, 13789, 201, 198, 201, 198, 15269, 357, 66, 8, 12131, 569, 18354, 7496, 15708, 22, 1157, 201, 198, 201, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 201, 198, 1...
2.868188
789
from django.conf.urls import url from . import classviews urlpatterns = [ url(r'^event/$', classviews.HookEvent.as_view()), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 1398, 33571, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 15596, 32624, 3256, 1398, 33571, 13, 39, 566, 9237, 13, 292, ...
2.62
50
"""Stream class for tap-parquet.""" import requests from copy import deepcopy from pathlib import Path from typing import Any, Dict, Optional, Union, List, Iterable from singer_sdk.streams import Stream from singer_sdk.typing import ( ArrayType, BooleanType, DateTimeType, IntegerType, NumberType,...
[ 37811, 12124, 1398, 329, 9814, 12, 1845, 21108, 526, 15931, 198, 198, 11748, 7007, 198, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 4479, 11, 7343, ...
2.622159
352
import sys import random from design import * from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import QtGui ppt = ['Rock', 'Paper', 'Scissors'] game = [] if __name__ == '__main__': qt = QApplication(sys.argv) app = App() app.show() qt.exec_()
[ 11748, 25064, 198, 11748, 4738, 198, 6738, 1486, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 11, 1195, 23416, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 8205, 72, 628, 198, 381, 83, ...
2.473684
114
import unittest from geopy.point import Point from geopy.format import format_degrees
[ 198, 11748, 555, 715, 395, 198, 6738, 4903, 11081, 13, 4122, 1330, 6252, 198, 6738, 4903, 11081, 13, 18982, 1330, 5794, 62, 13500, 6037, 628 ]
3.52
25
# -*- coding: utf-8 -*- """ Created on Sun Oct 20 20:52:56 2019 @author: python """ import random ''' O(N^2),O(N^2). ''' if __name__=="__main__": a=[] for i in range(10): a.append(random.randint(10,40)) print(a) print(bubble(a)) print('hello world!')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 2556, 1160, 1160, 25, 4309, 25, 3980, 13130, 198, 198, 31, 9800, 25, 220, 628, 198, 29412, 628, 198, 37811, 198, 198, 11748, 4738, 220, 1...
2
148
# # Usage: # # % brownie console # >>> from scripts import token # >>> green = token.main() # >>> token.issue(green) # >>> token.transfer(green, accounts[1], accounts[2], 1) # from brownie import Token, accounts admin = accounts[0] issuer = accounts[1] holders = accounts[2:9] max_supply...
[ 2, 198, 2, 29566, 25, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 4064, 7586, 494, 8624, 198, 2, 220, 220, 220, 220, 220, 220, 13163, 422, 14750, 1330, 11241, 198, 2, 220, 220, 220, 220, 220, 220, 13163, 4077, 796, 11241, 13, ...
2.401361
147
import string WIKI_BESTAND = '/Users/tom/Downloads/\ nlwiktionary-20191020-pages-articles-multistream-index.txt' WOORD_BESTAND = 'woord-frequenties.txt' SLECHT_BESTAND = 'slechte-woorden.txt' BLACKLIST = {i.strip() for i in open(SLECHT_BESTAND)} AANTAL = 1000000000000000 MIN = 4 MIN_ACHTERVOEGSEL = 4 VOORVOEGSELS = ...
[ 11748, 4731, 198, 198, 54, 18694, 40, 62, 33, 6465, 6981, 796, 31051, 14490, 14, 39532, 14, 10002, 82, 14, 59, 198, 21283, 20763, 5378, 560, 12, 23344, 940, 1238, 12, 31126, 12, 26845, 12, 16680, 396, 1476, 12, 9630, 13, 14116, 6, ...
1.851548
1,098
import os import random import numpy as np import pandas as pd
[ 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198 ]
3.142857
21
offset = -8 while offset != 0 : print('Benar') if offset > 0 : offset = offset -3 else: offset = offset +2 print(offset)
[ 28968, 796, 532, 23, 198, 198, 4514, 11677, 14512, 657, 1058, 198, 220, 220, 220, 3601, 10786, 11696, 283, 11537, 198, 220, 220, 220, 611, 11677, 1875, 657, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 796, 11677, 532, 18, 1...
2.135135
74
from tortoise.contrib.fastapi import register_tortoise as config_tortoise from config.settings import settings DB_URL = f'postgres://{settings.DB_USERNAME}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_DATABASE}' TORTOISE_MODULES = ['app.example.model'] TORTOISE_ORM_MODULES = TORTOISE_MOD...
[ 6738, 7619, 25678, 13, 3642, 822, 13, 7217, 15042, 1330, 7881, 62, 83, 419, 25678, 355, 4566, 62, 83, 419, 25678, 198, 6738, 4566, 13, 33692, 1330, 6460, 198, 198, 11012, 62, 21886, 796, 277, 6, 7353, 34239, 1378, 90, 33692, 13, 110...
1.978328
323
from django.shortcuts import redirect
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941 ]
4.625
8
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/ from setuptools import setup import version version = version.get_project_version("rpm_s3_mirror/version.py") setup( name="rpm_s3_mirror", packages=["rpm_s3_mirror"], version=version, description="Tool for syncing RPM repositories with ...
[ 2, 15069, 357, 66, 8, 12131, 317, 1469, 11, 47688, 11, 17837, 13, 3740, 1378, 64, 1469, 13, 952, 14, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 2196, 198, 198, 9641, 796, 2196, 13, 1136, 62, 16302, 62, 9641, 7203, ...
2.343675
419
import time from pytest_bdd import scenarios, when, then, given, parsers from pages.search import SearchTests from pages.register_page import RegisterPage # Scenarios scenarios('../features/test_register_search_scenario.feature') # steps
[ 11748, 640, 198, 6738, 12972, 9288, 62, 65, 1860, 1330, 13858, 11, 618, 11, 788, 11, 1813, 11, 13544, 364, 198, 6738, 5468, 13, 12947, 1330, 11140, 51, 3558, 198, 6738, 5468, 13, 30238, 62, 7700, 1330, 17296, 9876, 198, 198, 2, 1446...
3.471429
70
import codecs from logging import getLogger import os from pendium import app from pendium.plugins import IRenderPlugin from pendium.plugins import ISearchPlugin from yapsy.PluginManager import PluginManager log = getLogger(__name__) # Populate plugins lib_path = os.path.abspath(os.path.dirname(__file__)) manager =...
[ 11748, 40481, 82, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 11748, 28686, 198, 198, 6738, 44017, 1505, 1330, 598, 198, 6738, 44017, 1505, 13, 37390, 1330, 14826, 2194, 37233, 198, 6738, 44017, 1505, 13, 37390, 1330, 3180, 3679, 37233...
2.420428
421
import random import numpy as np import pandas as pd import math from sklearn import preprocessing import scipy.stats as stats def generate_district_data(number_of_agents, path, max_districts=None): """ Transforms input data on informal residential, initial infections, and population and transforms it t...
[ 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 10688, 198, 6738, 1341, 35720, 1330, 662, 36948, 198, 11748, 629, 541, 88, 13, 34242, 355, 9756, 628, 628, 628, 628, 198, 4299, 7716, 6...
2.236702
1,128
import tempfile import speech.models import speech.loader import shared
[ 11748, 20218, 7753, 198, 198, 11748, 4046, 13, 27530, 198, 11748, 4046, 13, 29356, 198, 198, 11748, 4888, 198 ]
3.894737
19
import matplotlib.pyplot as plt # TODO: port away from matplotlib to a seaborn # Probability Distribution Function (PDF). # Cumulative Distribution Function (CDF) # TODO: put all of these functions within a custom function image = plt.imread('900px-Astronaut-EVA.jpg') plt.subplot(2, 1, 1) plt.imshow(image, cmap='gra...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 220, 1303, 16926, 46, 25, 2493, 1497, 422, 2603, 29487, 8019, 284, 257, 384, 397, 1211, 198, 198, 2, 30873, 1799, 27484, 15553, 357, 20456, 737, 198, 2, 27843, 13628, 27484, 155...
2.570637
361
from .model_zoo import load_weights
[ 6738, 764, 19849, 62, 89, 2238, 1330, 3440, 62, 43775 ]
3.5
10
from logging_logger import loggerClass import logging loggerClass.WritetoScreen(loggerClass,logging.INFO,"testing...", '%(levelname)s:%(message)s') loggerClass.Writetofile(loggerClass,'sample.log',logging.WARNING,"testing...", '%(levelname)s:%(message)s')
[ 6738, 18931, 62, 6404, 1362, 1330, 49706, 9487, 198, 11748, 18931, 198, 198, 6404, 1362, 9487, 13, 20257, 27206, 23901, 7, 6404, 1362, 9487, 11, 6404, 2667, 13, 10778, 553, 33407, 9313, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220,...
2.495575
113
formatter = "{} {} {} {}" print(formatter.format(1, 2, 3, 4)) print(formatter.format("a", "b", "c", "d", "r"))
[ 687, 1436, 796, 45144, 92, 23884, 23884, 23884, 1, 198, 4798, 7, 687, 1436, 13, 18982, 7, 16, 11, 362, 11, 513, 11, 604, 4008, 198, 4798, 7, 687, 1436, 13, 18982, 7203, 64, 1600, 366, 65, 1600, 366, 66, 1600, 366, 67, 1600, 366,...
2.3125
48
""" The HR solver and algorithm. """ from matching import Game, Matching from matching import Player as Resident from matching.players import Hospital from .util import delete_pair, match_pair def _check_mutual_preference(resident, hospital): """ Determine whether two players each have a preference of the othe...
[ 37811, 383, 15172, 1540, 332, 290, 11862, 13, 37227, 198, 198, 6738, 12336, 1330, 3776, 11, 13225, 278, 198, 6738, 12336, 1330, 7853, 355, 22373, 198, 6738, 12336, 13, 32399, 1330, 9256, 198, 198, 6738, 764, 22602, 1330, 12233, 62, 2487...
2.743089
2,713
#!/usr/bin/env python # coding: utf-8 # based on public kernel https://www.kaggle.com/corochann/ashrae-feather-format-for-fast-loading import os import random import gc import tqdm import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns if __name__ == '__main__': root...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1912, 319, 1171, 9720, 3740, 1378, 2503, 13, 74, 9460, 293, 13, 785, 14, 10215, 5374, 1236, 14, 1077, 430, 68, 12, 5036, 1032, 12, 18...
2.581081
148
import copy import functools import os import numpy as np from scipy import sparse from spinsys import constructors, half, dmrg, exceptions from cffi import FFI @functools.lru_cache(maxsize=None) def _gen_z_pm_ops(N, bonds): """generate the H_z and H_pm components of the Hamiltonian""" H_pm = H_z = 0 ...
[ 11748, 4866, 198, 11748, 1257, 310, 10141, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 29877, 198, 6738, 37621, 893, 1330, 5678, 669, 11, 2063, 11, 288, 76, 41345, 11, 13269, 198, 6738, 269, 4...
2.017208
6,799
import pandas as pd import copy from pathlib import Path import pandas as pd import numpy as np import math from datetime import datetime,timedelta import matplotlib.pyplot as plt from predictor.utility import msg2log """ transform time series (feature in source dataset) matrix Nrows * Mcols. The source dataset m...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 4866, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 16514,...
2.865653
789
# -*- coding: utf-8 -*- import requests, json from bs4 import BeautifulSoup from mspider.spider import MSpider if __name__=="__main__": spider = Get_indic_idSpider() # spider.test() spider.crawl() spider.file.close()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 7007, 11, 33918, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 285, 2777, 1304, 13, 2777, 1304, 1330, 337, 41294, 198, 198, 361, 11593, 3672, ...
2.516129
93
from random import choice from copy import deepcopy # read the file lista = "D:/Workbench/Online Courses/Design and Analysis of Algorithms, Part 1/Programming Assignment 3/file.txt" f = open(lista, 'r') line_list = f.readlines() G = {int(line.split()[0]): [int(val) for val in line.split()[1:] if val] f...
[ 6738, 4738, 1330, 3572, 201, 198, 6738, 4866, 1330, 2769, 30073, 201, 198, 201, 198, 2, 1100, 262, 2393, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 4868, 64, 796, 366, 35, 14079, 12468, 26968, 14, 14439, 2734, 8448, 14, 23067...
2.691781
438
import tvm from tvm.tensor_graph.core2.graph.concrete import Compute, Tensor from .padding import zero_pad2d ###################################################################### # for functional, all states are inputs, data from inside functionals # can only be constants ##########################################...
[ 11748, 256, 14761, 198, 198, 6738, 256, 14761, 13, 83, 22854, 62, 34960, 13, 7295, 17, 13, 34960, 13, 1102, 38669, 1330, 3082, 1133, 11, 309, 22854, 198, 198, 6738, 764, 39231, 1330, 6632, 62, 15636, 17, 67, 628, 198, 29113, 29113, ...
2.53115
1,252
import numpy as np from functools import lru_cache, wraps #from fastcache import clru_cache def np_lru_cache(*args, **kwargs): """ LRU cache implementation for functions whose FIRST parameter is a numpy array forked from: https://gist.github.com/Susensio/61f4fee01150caaac1e10fc5f005eb75 """ ...
[ 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 11, 27521, 198, 2, 6738, 3049, 23870, 1330, 537, 622, 62, 23870, 628, 198, 198, 4299, 45941, 62, 75, 622, 62, 23870, 46491, 22046, 11, ...
2.428571
294
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 2, 15069, 357, 66, 8, 33448, 220, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
3.630901
233
# Generated by Django 4.0.1 on 2022-01-28 00:49 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 16, 319, 33160, 12, 486, 12, 2078, 3571, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from bintray.bintray import Bintray
[ 6738, 275, 600, 2433, 13, 65, 600, 2433, 1330, 347, 600, 2433, 628, 628, 198 ]
2.666667
15
#! /usr/bin/env python import sys import os version_file = os.path.join( os.path.abspath(os.path.dirname(__file__)), "problog/version.py" ) version = {} with open(version_file) as fp: exec(fp.read(), version) version = version["version"] if __name__ == "__main__" and len(sys.argv) == 1: from problog im...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 11748, 28686, 628, 198, 9641, 62, 7753, 796, 28686, 13, 6978, 13, 22179, 7, 198, 220, 220, 220, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13,...
2.12373
1,083
from haystack.nodes.question_generator.question_generator import QuestionGenerator
[ 6738, 27678, 25558, 13, 77, 4147, 13, 25652, 62, 8612, 1352, 13, 25652, 62, 8612, 1352, 1330, 18233, 8645, 1352 ]
4.1
20
# -*- coding: utf-8 -*- import uuid from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.postgres.fields import JSONField
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 334, 27112, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 70, 271, 13, 9945, 1330, 4981, 198, 6738, 42625, 1420...
2.902778
72
import json as _json import datetime as _datetime
[ 11748, 33918, 355, 4808, 17752, 198, 11748, 4818, 8079, 355, 4808, 19608, 8079, 198 ]
3.571429
14
# -*- coding: utf-8 -*- import copy if __name__ == '__main__': l = [3, 4, 10, 2, 7] target = 9 result = Solution().twoSum(l, target) print(result) result1 = Solution().two_sum(l, target) print(result1)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4866, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 300, 796, 685, 18, 11, 604, 11, 838, 11, 362, 11, 767, 60, ...
2.242718
103
import numpy as np from .logger import log from .array_grid import get_next_grid_dims from .act_on_image import ActOnImage from .array_message import write_conjugated_message_grids from .bpcs_steg import arr_bpcs_complexity
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 6404, 1362, 1330, 2604, 198, 6738, 764, 18747, 62, 25928, 1330, 651, 62, 19545, 62, 25928, 62, 67, 12078, 198, 6738, 764, 529, 62, 261, 62, 9060, 1330, 2191, 2202, 5159, 198, 6738, ...
3.040541
74
# # Exploration of the crash severity information in CAS data # # In this notebook, we will explore the severity of crashes, as it will be the # target of our predictive models. from pathlib import Path import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import seaborn as s...
[ 2, 1303, 36806, 286, 262, 7014, 19440, 1321, 287, 35106, 1366, 198, 2, 198, 2, 554, 428, 20922, 11, 356, 481, 7301, 262, 19440, 286, 17616, 11, 355, 340, 481, 307, 262, 198, 2, 2496, 286, 674, 33344, 4981, 13, 198, 198, 6738, 3108...
2.806056
2,444
import gym if __name__ == '__main__': cartpole()
[ 11748, 11550, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 6383, 36869, 3419, 198 ]
2.454545
22
# ------------------------------------------------------------ Imports ----------------------------------------------------------- # # System from typing import Optional # Pip from kw3 import WrappedContract, Web3 from kw3.constants import Constants as KW3Constants # Local from ._abi import pancakeswap_factory_abi ...
[ 2, 20368, 1783, 10541, 1846, 3742, 20368, 22369, 6329, 1303, 198, 198, 2, 4482, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 25149, 198, 6738, 479, 86, 18, 1330, 27323, 1496, 45845, 11, 5313, 18, 198, 6738, 479, 86, 18, 13, 9979, 118...
6.111888
143
# The collection of functions for the Boston AirBnB dataset # import necessary libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from pandas.tseries.holiday import USFederalHolidayCalendar as calendar #To check holidays in the U.S import time import copy def load_b...
[ 2, 383, 4947, 286, 5499, 329, 262, 6182, 3701, 33, 77, 33, 27039, 198, 198, 2, 1330, 3306, 12782, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83...
2.526195
6,986
from typing import List, Any from markdown import Markdown from markdown.extensions import Extension from markdown.blockprocessors import BlockProcessor import re import xml.etree.ElementTree as etree def makeExtension(**kwargs: Any) -> InfoPanelExtension: return InfoPanelExtension(**kwargs)
[ 6738, 19720, 1330, 7343, 11, 4377, 198, 6738, 1317, 2902, 1330, 2940, 2902, 198, 6738, 1317, 2902, 13, 2302, 5736, 1330, 27995, 198, 6738, 1317, 2902, 13, 9967, 14681, 669, 1330, 9726, 18709, 273, 198, 11748, 302, 198, 11748, 35555, 13,...
3.583333
84
#!/usr/bin/python3 # Copyright 2019 Abe Leite # Based on "Proximal Policy Optimization Algorithms", Schulman et al 2017 # For the benefit of my fellow CSCI-B 659 students # While I hope that this code is helpful I will not vouch for its total accuracy; # my primary aim here is to elucidate the ideas from the paper. i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 15069, 13130, 22257, 1004, 578, 198, 2, 13403, 319, 366, 2964, 87, 4402, 7820, 30011, 1634, 978, 7727, 907, 1600, 3059, 377, 805, 2123, 435, 2177, 198, 2, 1114, 262, 4414, 286, ...
2.507937
315
from pytube import YouTube from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from .serializers import YoutubeDLSerializer from .utils import make_time, make_size
[ 6738, 12972, 29302, 1330, 7444, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 198, 6738, 764, 46911, 11341, 1330, 27431, 35...
4.105263
57
# -*- coding: utf-8 -*- # tomolab # Michele Scipioni # Harvard University, Martinos Center for Biomedical Imaging # University of Pisa __all__ = ['convert_listmode_dicom_to_interfile', 'import_interfile_projection', 'export_interfile_projection', 'import_h5f_projection', 'import_interfile_volume...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16667, 349, 397, 198, 2, 38872, 1446, 541, 295, 72, 198, 2, 11131, 2059, 11, 5780, 418, 3337, 329, 8436, 35914, 48656, 198, 2, 2059, 286, 350, 9160, 628, 198, 834...
2.878641
206
import json import pandas as pd import numpy as np from typing import Union, List from pathlib import Path from timeit import default_timer as timer from nntrainer import data as nn_data
[ 11748, 33918, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 19720, 1330, 4479, 11, 7343, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 640, 270, 1330, 4277, 62, 45016, 355, 19781, 198, ...
3.403509
57
import sys import re import pandas as pd if __name__ == "__main__": main()
[ 11748, 25064, 198, 11748, 302, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.580645
31
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 6738, 5366, 13, 26791, 1330, 4818, 8079, 62, 26791, 355, 4818, 8079, 201, 198, 6738, 5366, 13, 9945, 1330, 20613, 201, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2...
2.898305
59
import math import numpy as np from vector import Vector import segment as segment_lib
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 15879, 1330, 20650, 198, 11748, 10618, 355, 10618, 62, 8019, 628 ]
4.190476
21
import os from cloud.aws_service import AwsService def main(): """Execute script.""" region = os.environ.get('REGION', 'us-east-1') s3_bucket = os.environ.get('S3_BUCKET', 'costmgmtacct1234') aws = AwsService() result = aws.create_bucket(s3_bucket, region) if result: print(f'S3 bucke...
[ 11748, 28686, 198, 198, 6738, 6279, 13, 8356, 62, 15271, 1330, 5851, 82, 16177, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 23002, 1133, 4226, 526, 15931, 628, 220, 220, 220, 3814, 796, 28686, 13, 268, 2268, 13, 1136, 1078...
2.243386
189
import sys sys.path.append("..") import time from charge_controller_tcp_driver.charge_controller_tcp_client_helper import * if __name__ == '__main__': helper = ChargeControllerTCPClientHelper("169.254.43.3", 12500) time.sleep(3) helper.set_pwm(100) print("PWM:", helper.get_pwm()) #time.sleep(10)...
[ 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 11748, 640, 198, 6738, 3877, 62, 36500, 62, 83, 13155, 62, 26230, 13, 10136, 62, 36500, 62, 83, 13155, 62, 16366, 62, 2978, 525, 1330, 1635, 198, 198, 361, 11...
2.221264
348
import os from typing import Text import torch import unittest import torch.nn as nn import torch.optim as optim from allennlp.models import Model from allennlp.data.vocabulary import Vocabulary from zsl_kg.class_encoders.auto_gnn import AutoGNN from zsl_kg.example_encoders.text_encoder import TextEncoder from zsl_kg...
[ 11748, 28686, 198, 6738, 19720, 1330, 8255, 198, 11748, 28034, 198, 11748, 555, 715, 395, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 477, 1697, 34431, 13, 27530, 1330, 9104, 198,...
3.142132
197
import csv import json import logging import math import random as ran
[ 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 10688, 198, 11748, 4738, 355, 4966, 628, 628, 628 ]
3.8
20
import json import subprocess import asyncio from solana.rpc.async_api import AsyncClient from solana.publickey import PublicKey from anchorpy import Program, Provider, Wallet if __name__ == '__main__': main()
[ 11748, 33918, 198, 11748, 850, 14681, 198, 11748, 30351, 952, 198, 6738, 1540, 2271, 13, 81, 14751, 13, 292, 13361, 62, 15042, 1330, 1081, 13361, 11792, 198, 6738, 1540, 2271, 13, 11377, 2539, 1330, 5094, 9218, 198, 6738, 18021, 9078, 1...
3.25
68
""" an image, nothing fancy """ from dataclasses import dataclass from .base_activity import ActivityObject
[ 37811, 281, 2939, 11, 2147, 14996, 37227, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 764, 8692, 62, 21797, 1330, 24641, 10267, 628, 198 ]
4.074074
27
from .catch_errors import check_for_period_error from .exponential_moving_average import exponential_moving_average as ema def moving_average_convergence_divergence(data, short_period, long_period): """ Moving Average Convergence Divergence. Formula: EMA(DATA, P1) - EMA(DATA, P2) """ check_for...
[ 6738, 764, 40198, 62, 48277, 1330, 2198, 62, 1640, 62, 41007, 62, 18224, 198, 6738, 764, 11201, 35470, 62, 31462, 62, 23913, 1330, 39682, 62, 31462, 62, 23913, 355, 795, 64, 198, 198, 4299, 3867, 62, 23913, 62, 1102, 332, 12745, 62, ...
2.741379
174
import os import glob import shutil import zipfile from functions.game_name_functions import * if (os.getcwd().endswith('scripts')): os.chdir('..') from classes.scraper import * if __name__=='__main__': scrape_csscgc()
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 4423, 346, 198, 11748, 19974, 7753, 198, 6738, 5499, 13, 6057, 62, 3672, 62, 12543, 2733, 1330, 1635, 198, 361, 357, 418, 13, 1136, 66, 16993, 22446, 437, 2032, 342, 10786, 46521, 11537, 2599...
2.746988
83
from django.forms import ModelForm from ..models import Pit
[ 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 6738, 11485, 27530, 1330, 16889, 628 ]
4.066667
15
import pathlib TEMPLATES_DIR = pathlib.Path(__file__).resolve(strict=True).parent / 'conf' APP_TEMPLATES_DIR = TEMPLATES_DIR / 'app_template' PROJECT_TEMPLATES_DIR = TEMPLATES_DIR / 'project_template'
[ 11748, 3108, 8019, 628, 198, 51, 3620, 6489, 29462, 62, 34720, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 411, 6442, 7, 301, 2012, 28, 17821, 737, 8000, 1220, 705, 10414, 6, 198, 24805, 62, 51, 3620, 6489, 29462, 62, 34720,...
2.5375
80
# std from typing import Any, Dict, List, Optional, Union # external import pkg_resources import sqlalchemy from sqlalchemy.orm import aliased, Session # molar from molar.backend import schemas from molar.backend.database.utils import sqlalchemy_to_dict INFORMATION_QUERY = open( pkg_resources.resource_filename("...
[ 2, 14367, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 11, 4479, 198, 198, 2, 7097, 198, 11748, 279, 10025, 62, 37540, 198, 11748, 44161, 282, 26599, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 34965, 839, 11, 2...
3.07377
122
import time import os if __name__ == "__main__": main()
[ 11748, 640, 198, 11748, 28686, 628, 628, 628, 628, 198, 197, 197, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 197, 12417, 3419 ]
2.37931
29
# -*- coding: utf-8 -*- """Role models.""" from dataclasses import dataclass from array import array from .database import Column, Model, SurrogatePK, db, reference_col, relationship from sqlalchemy.dialects.postgresql import ARRAY
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 47445, 4981, 526, 15931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 7177, 1330, 7177, 198, 6738, 764, 48806, 1330, 29201, 11, 9104, 11, 4198, ...
3.28169
71
import requests, datetime as dt, numpy as np, pandas as pd, pytz from dateutil.relativedelta import relativedelta # Call for raw data (NASDAQ) # Call for current price # Call for order # Call to list bought stocks # Call for stock quantity bought # Call for buying power # Call for calendar (check if holiday) #...
[ 11748, 7007, 11, 4818, 8079, 355, 288, 83, 11, 299, 32152, 355, 45941, 11, 19798, 292, 355, 279, 67, 11, 12972, 22877, 198, 6738, 3128, 22602, 13, 2411, 265, 1572, 12514, 1330, 48993, 1572, 12514, 628, 198, 2, 4889, 329, 8246, 1366, ...
3.218978
137
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 285, 489, 62, 25981, 74, 896, 13, 76, 29487, 18, 67, 1330, 12176, 274, 18, 35, 198, 6738, 2603, 29487, 8019, 1330, 12067, 628, 6...
2.790698
43
from urllib import request import random import json # url = r'https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E7%9F%B3%E7%94%B0%E7%BA%AF%E4%B8%80%E6%84%9F%E6%9F%93%E6%96%B0%E5%86%A0&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1' # agent_list = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebK...
[ 198, 198, 6738, 2956, 297, 571, 1330, 2581, 198, 11748, 4738, 198, 11748, 33918, 198, 198, 2, 220, 198, 198, 6371, 796, 374, 6, 5450, 1378, 2503, 13, 65, 1698, 84, 13, 785, 14, 82, 30, 565, 28, 18, 5, 34106, 28, 65, 1698, 315, ...
2.058925
577
import onegov.core import onegov.org from tests.shared import utils
[ 11748, 530, 9567, 13, 7295, 198, 11748, 530, 9567, 13, 2398, 198, 6738, 5254, 13, 28710, 1330, 3384, 4487, 628, 628, 628, 628, 198 ]
3.166667
24
import tkinter as tk from tkinter import filedialog from Solve_stages import * from Text_stages import * from Analysis_stages import * from Output import * root = tk.Tk() root.title("Cipher program") root.geometry("1500x500") root.state("zoomed") #apparently windows only stage_editor = tk.Frame(root, width=10, height=...
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 5717, 498, 519, 198, 6738, 4294, 303, 62, 301, 1095, 1330, 1635, 198, 6738, 8255, 62, 301, 1095, 1330, 1635, 198, 6738, 14691, 62, 301, 1095, 1330, 1635, 198, 6738,...
2.715116
1,548
from mp.data.pytorch.pytorch_dataset import PytorchDataset from mp.data.datasets.dataset import Instance import copy import torch
[ 6738, 29034, 13, 7890, 13, 9078, 13165, 354, 13, 9078, 13165, 354, 62, 19608, 292, 316, 1330, 9485, 13165, 354, 27354, 292, 316, 198, 6738, 29034, 13, 7890, 13, 19608, 292, 1039, 13, 19608, 292, 316, 1330, 2262, 590, 198, 11748, 4866,...
2.847826
46
import pathlib import pandas as pd from palmnet.visualization.utils import get_palminized_model_and_df, get_df import matplotlib.pyplot as plt import numpy as np import logging import plotly.graph_objects as go import plotly.express as px from pprint import pprint as pprint mpl_logger = logging.getLogger('matplotlib'...
[ 11748, 3108, 8019, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 18057, 3262, 13, 41464, 1634, 13, 26791, 1330, 651, 62, 18596, 1084, 1143, 62, 19849, 62, 392, 62, 7568, 11, 651, 62, 7568, 198, 11748, 2603, 29487, 8019, 13, 9078, ...
2.277465
710
# -*- coding: utf-8 -*- import unittest import cmath import numpy as np from scipy import integrate from .. import polarization from ...utils import instance from ...patch import jsonpickle def test_suite(): """Test suite including all test suites""" testSuite = unittest.TestSuite() testSuite.addTest(t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 198, 11748, 269, 11018, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 19386, 198, 198, 6738, 11485, 1330, 42704, 198, 673...
2.703911
358
#--------------------------------------- #Since : 2019/04/24 #Update: 2019/07/25 # -*- coding: utf-8 -*- #--------------------------------------- import numpy as np
[ 2, 3880, 26866, 198, 2, 6385, 1058, 13130, 14, 3023, 14, 1731, 198, 2, 10260, 25, 13130, 14, 2998, 14, 1495, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 3880, 26866, 198, 11748, 299, 32152, 355, 45941, ...
3.586957
46
""" ______ _ _ _____ _ _ _ | ____| | | (_) | __ \ | | /\ | | (_) | |__ __ _ ___| |_ __ _ _ __ _ | |__) |___ ___| |_ / \ __| |_ __ ___ _ _ __ | __/ _` / __| __/ _` | '_ \| | | _ // _ \/ __| __| / /...
[ 37811, 198, 220, 44435, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 29343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, ...
1.714588
473
import itertools import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.stats import f from scipy.stats import norm three_data = pd.read_csv('test_data.csv') three = ANOVA(three_data) #Doesn't work for n < 2 five_data = pd.read_csv('example_data.csv') five_da...
[ 11748, 340, 861, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 629, 541, 88, 13, ...
2.539474
152
import os from datetime import datetime from datmo.core.util.json_store import JSONStore from datmo.core.util.misc_functions import prettify_datetime, printable_object, format_table
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 4818, 5908, 13, 7295, 13, 22602, 13, 17752, 62, 8095, 1330, 19449, 22658, 198, 6738, 4818, 5908, 13, 7295, 13, 22602, 13, 44374, 62, 12543, 2733, 1330, 46442, 1958, ...
3.407407
54
''' @Author: dengzaiyong @Date: 2021-08-21 15:16:08 @LastEditTime: 2021-08-27 19:37:08 @LastEditors: dengzaiyong @Desciption: tfidf, word2vec, fasttext @FilePath: /JDQA/ranking/train_LM.py ''' import os from collections import defaultdict from gensim import models, corpora import config import pandas as pd import jie...
[ 7061, 6, 198, 31, 13838, 25, 288, 1516, 35142, 88, 506, 198, 31, 10430, 25, 33448, 12, 2919, 12, 2481, 1315, 25, 1433, 25, 2919, 198, 31, 5956, 18378, 7575, 25, 33448, 12, 2919, 12, 1983, 678, 25, 2718, 25, 2919, 198, 31, 5956, ...
2.531915
188
import uuid import datetime import pymysql from tool.Config import Config from tool.Logger import Logger
[ 11748, 334, 27112, 198, 11748, 4818, 8079, 198, 198, 11748, 279, 4948, 893, 13976, 198, 198, 6738, 2891, 13, 16934, 1330, 17056, 198, 6738, 2891, 13, 11187, 1362, 1330, 5972, 1362, 628 ]
3.375
32
import pytest from sqlalchemy.exc import IntegrityError from app.dao.inbound_shortnumbers_dao import ( dao_get_inbound_shortnumbers, dao_get_inbound_shortnumber_for_service, dao_get_available_inbound_shortnumbers, dao_set_inbound_shortnumber_to_service, dao_set_inbound_shortnumber_active_flag, ...
[ 11748, 12972, 9288, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 39348, 12331, 198, 198, 6738, 598, 13, 67, 5488, 13, 259, 7784, 62, 19509, 77, 17024, 62, 67, 5488, 1330, 357, 198, 220, 220, 220, 288, 5488, 62, 1136, 62, 259, 7784...
2.680628
191
#!/bin/python3 # -*- coding: utf-8 -*- # file name: profiletool.py # standart libraries from time import sleep from time import process_time_ns as timer_ns # to call the respective routines import subprocess as ps # local imports import pyfactorial as pyf import mathfactorial as mtf if __name__ == "__main__": ...
[ 2, 48443, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2393, 1438, 25, 7034, 25981, 13, 9078, 198, 198, 2, 1302, 433, 12782, 198, 6738, 640, 1330, 3993, 198, 6738, 640, 1330, 1...
2.911111
135