content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Copyright 2017 Regents of the University of California # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
[ 2, 15069, 2177, 3310, 658, 286, 262, 2059, 286, 3442, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 1138, 25, 198, 2, 198, 2, ...
3.819328
476
''' https://leetcode.com/contest/weekly-contest-150/problems/last-substring-in-lexicographical-order/ SA algorithm mostly copied from https://cp-algorithms.com/string/suffix-array.html Status: tle. probably py3 lists '''
[ 7061, 6, 198, 5450, 1378, 293, 316, 8189, 13, 785, 14, 3642, 395, 14, 45291, 12, 3642, 395, 12, 8628, 14, 1676, 22143, 14, 12957, 12, 7266, 8841, 12, 259, 12, 2588, 291, 17046, 12, 2875, 14, 198, 198, 4090, 11862, 4632, 18984, 422...
2.921053
76
from antlr4 import * from .antlr import GraphQLLexer, GraphQLListener, GraphQLParser from .codegen import CodegenTool, Class, String, ClassInstance, IfElse, If, Method, Expr, Variable import re from math import floor from datetime import datetime from .utils import strip_string_quotes, camel_case_to_snake_case, process...
[ 6738, 1885, 14050, 19, 1330, 1635, 198, 6738, 764, 415, 14050, 1330, 29681, 48, 3069, 1069, 263, 11, 29681, 48, 3069, 396, 877, 11, 29681, 9711, 46677, 198, 6738, 764, 8189, 5235, 1330, 6127, 5235, 25391, 11, 5016, 11, 10903, 11, 5016...
2.722467
227
from flask import Flask, request, jsonify,Blueprint from flask_marshmallow import Marshmallow from app.models import User, Group, Role from app import ma api = Blueprint('api', __name__) user_schema = UserSchema() users_schema = UserSchema(many=True) group_schema = GroupSchema() groups_schema = GroupSchema(many=Tr...
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 11, 14573, 4798, 198, 6738, 42903, 62, 76, 5406, 42725, 1330, 9786, 42725, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 4912, 11, 20934, 198, 6738, 598, 1330, 17266, 628, 198, 15042, ...
3.210191
157
""" Setup script for samply """ from setuptools import setup import re extra_args = {} def get_property(prop, project): """ Helper function for retrieving properties from a project's __init__.py file @In, prop, string representing the property to be retrieved @In, project, ...
[ 37811, 198, 220, 220, 220, 220, 220, 31122, 4226, 329, 264, 696, 306, 198, 37811, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 302, 628, 198, 26086, 62, 22046, 796, 23884, 628, 198, 4299, 651, 62, 26745, 7, 22930, 11, 1628, ...
2.489339
938
# -*- coding: utf-8 -*- # @Author: TD21forever # @Date: 2018-11-14 15:41:57 # @Last Modified by: TD21forever # @Last Modified time: 2018-11-15 16:50:48 file = open('input.txt','r')# # if __name__ == '__main__': while True: print("") print("\n1.\n2.\n3.\n4.\n5.\n6.\n") ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 2488, 13838, 25, 13320, 2481, 754, 332, 201, 198, 2, 2488, 10430, 25, 220, 220, 2864, 12, 1157, 12, 1415, 1315, 25, 3901, 25, 3553, 201, 198, 2, 2488, 5956, ...
1.586275
510
from django.test import TestCase from authors.apps.authentication.models import ( User )
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 7035, 13, 18211, 13, 41299, 3299, 13, 27530, 1330, 357, 198, 220, 220, 220, 11787, 198, 8, 628 ]
3.275862
29
#!/usr/bin/env python #-*- coding:utf-8 -*- """ Created on Nov 23, 2020 @author: Chengning Zhang """ ## simulation for Scenario A: generate X0 and X1. def MonteCarlo_1(T, n0, n1, u0, u1, sigma0, sigma1, log_bool = False): """simulation for first scenario: multivarite normal with equal variance T: number of simula...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 5267, 2242, 11, 12131, 198, 31, 9800, 25, 27692, 768, 19439, 198, 37811, 198, 198, 2235, 18640, 329...
2.196283
2,690
import requests if __name__ == '__main__': pages_crawler()
[ 11748, 7007, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 5468, 62, 66, 39464, 3419, 198 ]
2.64
25
import sys import logging import pytz logging.basicConfig(format='%(levelname)s: %(message)s') if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/ logging.error(" ########################### ERROR ###########################") logging.error(" ============================================...
[ 11748, 25064, 198, 11748, 18931, 198, 11748, 12972, 22877, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 11639, 4, 7, 5715, 3672, 8, 82, 25, 4064, 7, 20500, 8, 82, 11537, 198, 361, 357, 17597, 13, 9641, 62, 10951, 1279, 357, 18, 11, ...
2.77416
952
#Stock inventory control system. #======================================= 1 =========================== #======================================= 2 =========================== #======================================= 3 ============================ #main prog below choice = 0 my...
[ 2, 26207, 13184, 1630, 1080, 13, 201, 198, 201, 198, 2, 10052, 1421, 18604, 220, 220, 220, 352, 220, 220, 36658, 2559, 855, 201, 198, 201, 198, 2, 10052, 1421, 18604, 220, 220, 220, 362, 220, 220, 36658, 2559, 855, 201, 198, 220, ...
2.607201
611
bind = "0.0.0.0:5000" threads = 10 worker_class = "gthread" accesslog = '-' errorlog = '-'
[ 21653, 796, 366, 15, 13, 15, 13, 15, 13, 15, 25, 27641, 1, 198, 16663, 82, 796, 838, 198, 28816, 62, 4871, 796, 366, 70, 16663, 1, 198, 15526, 6404, 796, 705, 19355, 198, 18224, 6404, 796, 705, 19355, 198 ]
2.275
40
""" 2017 Day 23 https://adventofcode.com/2017/day/23 """ from typing import Dict import aocd # type: ignore def main() -> None: """ Calculate and output the solutions based on the real puzzle input. """ data = aocd.get_data(year=2017, day=23) program = Program(data) program.run() pri...
[ 37811, 198, 5539, 3596, 2242, 198, 5450, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 5539, 14, 820, 14, 1954, 198, 37811, 198, 198, 6738, 19720, 1330, 360, 713, 198, 11748, 257, 420, 67, 220, 1303, 2099, 25, 8856, 628, 628, 198, 198, ...
2.508671
173
import sys from sklearn.datasets import make_blobs from src.simulator.wsn.network import Network from src.simulator.wsn.utils import * from src.simulator.wsn.fcm import * from src.simulator.wsn.direct_communication import * from src.utils import complete, star seed = 1 np.random.seed(seed ) logging.basic...
[ 11748, 25064, 201, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 787, 62, 2436, 8158, 201, 198, 201, 198, 6738, 12351, 13, 14323, 8927, 13, 86, 16184, 13, 27349, 1330, 7311, 201, 198, 6738, 12351, 13, 14323, 8927, 13, 86, 16184,...
2.364553
694
# -*- coding: utf-8 -*- try: from collections.abc import Iterable except ImportError: from collections import Iterable import numpy as np from numpy import ndarray from dewloosh.math.array import atleast1d from dewloosh.math.utils import to_range from .celldata import CellData from .utils import jacobian_mat...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 28311, 25, 198, 220, 220, 220, 422, 17268, 13, 39305, 1330, 40806, 540, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 17268, 1330, 40806, 540, 198, 198, 11748, ...
2.414201
169
from .rmq_item import RMQItem
[ 6738, 764, 26224, 80, 62, 9186, 1330, 29820, 48, 7449, 198 ]
2.727273
11
import os import numpy as np from gym import utils from mujoco_safety_gym.envs import fetch_env # Ensure we get the path separator correct on windows MODEL_XML_PATH = os.path.join('fetch', 'slide.xml')
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11550, 1330, 3384, 4487, 198, 6738, 285, 23577, 25634, 62, 44708, 62, 1360, 76, 13, 268, 14259, 1330, 21207, 62, 24330, 628, 198, 2, 48987, 356, 651, 262, 3108, 2880, 1...
2.942857
70
from setuptools import setup, find_packages setup( name="raspi_ip", version="1.0.0", author="atoy322", description="", long_description="" )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 81, 5126, 72, 62, 541, 1600, 198, 220, 220, 220, 2196, 2625, 16, 13, 15, 13, 15, 1600, 198, 220, 220, 220, 1772, 2625, ...
2.469697
66
__title__ = "open_kite_connect" __description__ = "Fork of the official Kite Connect python client, allowing free access to the api." __url__ = "https://kite.trade" __download_url__ = "https://github.com/AnjayGoel/pykiteconnect" __version__ = "4.0.0" __author__ = "Anjay Goel" __author_email__ = "anjay.goel@gmail.com" _...
[ 834, 7839, 834, 796, 366, 9654, 62, 74, 578, 62, 8443, 1, 198, 834, 11213, 834, 796, 366, 37, 967, 286, 262, 1743, 509, 578, 8113, 21015, 5456, 11, 5086, 1479, 1895, 284, 262, 40391, 526, 198, 834, 6371, 834, 796, 366, 5450, 1378,...
2.756098
123
# @Author: DivineEnder # @Date: 2018-03-08 22:24:45 # @Email: danuta@u.rochester.edu # @Last modified by: DivineEnder # @Last modified time: 2018-03-11 01:25:41 # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy....
[ 2, 2488, 13838, 25, 13009, 36, 681, 198, 2, 2488, 10430, 25, 220, 220, 2864, 12, 3070, 12, 2919, 2534, 25, 1731, 25, 2231, 198, 2, 2488, 15333, 25, 220, 288, 20651, 64, 31, 84, 13, 305, 35983, 13, 15532, 198, 2, 2488, 5956, 9518...
2.652406
187
import os import json from enum import Enum from datetime import datetime,date import logging import pathlib from tqdm import tqdm from datastructures import Volume, IndexedFile,load_index_if_exists, save_index from os import listdir from os.path import isfile, join import itertools import csv logger = lo...
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 6738, 33829, 1330, 2039, 388, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 4475, 201, 198, 11748, 18931, 201, 198, 11748, 3108, 8019, 201, 198, 6738, 256, 80, 36020, 1330, 256, 80, ...
2.108902
1,056
import unittest from collections import namedtuple from jike.objects.wrapper import * if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 474, 522, 13, 48205, 13, 48553, 1330, 1635, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12...
3.022222
45
#!/usr/bin/env python """ The various ChannelUI classes. Hazen 04/17 """ import os from PyQt5 import QtCore, QtWidgets # # The MIT License # # Copyright (c) 2017 Zhuang Lab, Harvard University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated docu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 464, 2972, 11102, 10080, 6097, 13, 198, 198, 39, 1031, 268, 8702, 14, 1558, 198, 37811, 198, 198, 11748, 28686, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, ...
3.641618
346
import sys import struct from io import FileIO, BufferedWriter import S9Compressor as S9 BLOCKSIZE = (64*1024) / 4 # number of Int LexiPos = 0 # record the current position for new lexicon writing lexiconBuffer = [] IIBuffer = [] WriteThreshold = 0 del IIBuffer[:] newII.close() return main()
[ 11748, 25064, 198, 11748, 2878, 198, 6738, 33245, 1330, 9220, 9399, 11, 8792, 1068, 34379, 198, 11748, 311, 24, 7293, 44292, 355, 311, 24, 198, 198, 9148, 11290, 33489, 796, 357, 2414, 9, 35500, 8, 1220, 604, 197, 197, 197, 2, 1271, ...
2.87037
108
#CASA script to create cutouts of fits cubes directoryA = '/Volumes/TARDIS/Work/askap/' directoryB = '/Volumes/NARNIA/pilot_cutouts/' import numpy as np sources=np.loadtxt('/Users/emma/GitHub/possum-tools/DataProcess/pilot_sources.txt',dtype='str') for i in range(0,sources.shape[0]): objectname=sources[i,0] POSSUM...
[ 2, 34, 1921, 32, 4226, 284, 2251, 2005, 5269, 286, 11414, 34896, 198, 198, 34945, 32, 796, 31051, 16598, 8139, 14, 51, 49608, 14, 12468, 14, 2093, 499, 14, 6, 198, 34945, 33, 796, 31051, 16598, 8139, 14, 45, 1503, 45, 3539, 14, 79...
2.281307
2,204
from cv_comparison_slider_window.cv_comparison_slider_window import CvComparisonSliderWindow
[ 6738, 269, 85, 62, 785, 1845, 1653, 62, 6649, 1304, 62, 17497, 13, 33967, 62, 785, 1845, 1653, 62, 6649, 1304, 62, 17497, 1330, 327, 85, 50249, 1653, 11122, 1304, 27703 ]
2.967742
31
from ..language import get_text from ..database.query import ( user_exist, is_admin) END = -1
[ 6738, 11485, 16129, 1330, 651, 62, 5239, 198, 6738, 11485, 48806, 13, 22766, 1330, 357, 198, 220, 220, 220, 2836, 62, 38476, 11, 198, 220, 220, 220, 318, 62, 28482, 8, 628, 198, 10619, 796, 532, 16, 628, 628, 628, 198 ]
2.682927
41
"""" This package contains the OpenGL demonstration classes """
[ 15931, 15931, 198, 1212, 5301, 4909, 262, 30672, 13646, 6097, 198, 37811 ]
5.25
12
#!/usr/bin/env python3 # -*- coding: ISO-8859-1 -*- # https://github.com/starze/openhab2 # https://github.com/roggmaeh/nilan-openhab import minimalmodbus import serial import os, sys import csv import httplib2 minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL = True instrument = minimalmodbus.Instrument('/dev/ttyUSB0', 30, m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 19694, 12, 3459, 3270, 12, 16, 532, 9, 12, 198, 2, 3740, 1378, 12567, 13, 785, 14, 7364, 2736, 14, 9654, 5976, 17, 220, 198, 2, 3740, 1378, 12567, ...
2.53323
647
import cv2 import numpy as np import os
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 220, 201, 198, 11748, 28686, 201, 198, 201, 198 ]
2.3
20
"randompicker.py" import random "A very short practice program designed to spit out a random, user-determined sample of input names"
[ 1, 25192, 3361, 15799, 13, 9078, 1, 198, 198, 11748, 4738, 198, 198, 1, 32, 845, 1790, 3357, 1430, 3562, 198, 1462, 27591, 503, 257, 4738, 11, 2836, 12, 67, 23444, 220, 198, 39873, 286, 5128, 3891, 1, 628, 198 ]
3.45
40
from __future__ import absolute_import, division import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from fisspy.analysis.filter import FourierFilter from interpolation.splines import LinearSpline from matplotlib.animation import FuncAnimation import astropy.units as u from astropy.time i...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 50000, 43106, 198, 6738, 277, 747, 9078, 13,...
3.264463
121
""" Author: Andr Bento Date last modified: 26-02-2019 """ import subprocess import sys from os.path import dirname, abspath, join from setuptools import find_packages, Command, setup from setuptools.command.test import test as TestCommand this_dir = abspath(dirname(__file__)) NAME = 'graphy' VERSION = '0.0.1...
[ 37811, 198, 220, 220, 220, 6434, 25, 843, 81, 20421, 78, 198, 220, 220, 220, 7536, 938, 9518, 25, 2608, 12, 2999, 12, 23344, 198, 37811, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 2...
2.560284
705
import pytz from datetime import datetime, timedelta, timezone from rest_framework.decorators import api_view, parser_classes, renderer_classes from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from rest_framework.request import Request from rest_framework.response import ...
[ 11748, 12972, 22877, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 640, 11340, 198, 198, 6738, 1334, 62, 30604, 13, 12501, 273, 2024, 1330, 40391, 62, 1177, 11, 30751, 62, 37724, 11, 9851, 11882, 62, 37724, 198, 6738, ...
3.679389
131
import pandas as pd import datetime as dt def str2date( sDate ): """ Convert a string date to datetime.date """ try: dateTime = dt.datetime.strptime( sDate, "%Y%m%d" ) except ValueError: dateTime = dt.datetime.strptime( sDate, "%Y-%m-%d" ) return dateTime.date() def getHolidays...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 355, 288, 83, 198, 198, 4299, 965, 17, 4475, 7, 264, 10430, 15179, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 38240, 257, 4731, 3128, 284, 4818, 8079, 13, 4475, 198, 220, ...
2.526316
266
import json
[ 11748, 33918, 628 ]
4.333333
3
import uvio
[ 11748, 334, 85, 952, 628 ]
2.6
5
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in ...
[ 198, 2, 15069, 1584, 1578, 1829, 5070, 355, 7997, 416, 262, 22998, 198, 2, 286, 262, 2351, 15781, 261, 2306, 873, 290, 4687, 8694, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 4347, 295, 286, 428, 2438, 318, 15069, 2269, 418, 4234, ...
2.636424
3,009
import cleaner as dataStream import plotly.graph_objects as go import plotly.io as pio #DONUT PLOT - CONDITIONS ----------------------------------------- labels = ['Diabetes','Hypertension','Coronary Heart(D)','Chronic Kidney(D)','No Conditions','Obstructive Pulmonary(D)'] values = dataStream.PIEList fig_cond = go.Fi...
[ 11748, 21723, 355, 1366, 12124, 198, 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 11748, 7110, 306, 13, 952, 355, 279, 952, 198, 198, 2, 41173, 3843, 9297, 2394, 532, 7102, 49828, 11053, 20368, 45537, 198, 198, 23912, 1424, ...
2.468137
816
from ..math import geometry as geo from ..image.color import Color import math
[ 6738, 11485, 11018, 1330, 22939, 355, 40087, 198, 6738, 11485, 9060, 13, 8043, 1330, 5315, 198, 11748, 10688, 628 ]
4.210526
19
import time from tkinter import * from PIL import Image, ImageTk from Configuration import config
[ 11748, 640, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74, 198, 6738, 28373, 1330, 4566 ]
4.041667
24
import pytest from bank_ddd_es_cqrs.accounts import SocialSecurityNumber
[ 11748, 12972, 9288, 198, 6738, 3331, 62, 1860, 67, 62, 274, 62, 66, 80, 3808, 13, 23317, 82, 1330, 5483, 24074, 15057, 628, 198 ]
3.125
24
from setuptools import setup from setuptools import find_packages setup(name='rl_traders', version='0.1.0', description='Reinforcement Learning for Trading', url='https://github.com/jjakimoto/rl_traders.git', author='jjakimoto', author_email='f.j.akimoto@gmail.com', license='MIT', ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 198, 198, 40406, 7, 3672, 11639, 45895, 62, 2213, 9972, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 2...
2.503497
143
from pyrogram import Client import asyncio from Music.config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS from motor.motor_asyncio import AsyncIOMotorClient as MongoClient import time import uvloop from Music import config import importlib from pyrogram import Client as Bot from Music.config import API_...
[ 6738, 12972, 39529, 1330, 20985, 198, 11748, 30351, 952, 198, 6738, 7849, 13, 11250, 1330, 7824, 62, 2389, 11, 7824, 62, 39, 11211, 11, 347, 2394, 62, 10468, 43959, 11, 25000, 11230, 62, 11012, 62, 47269, 11, 311, 8322, 46, 62, 2937, ...
2.648456
421
import random from random import shuffle import numpy as np import tensorflow as tf from tensorflow.python.tools import freeze_graph import datetime import time import queue import threading import logging from PIL import Image import itertools import yaml import re import os import glob import shutil import sys import...
[ 11748, 4738, 198, 6738, 4738, 1330, 36273, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 31391, 1330, 16611, 62, 34960, 198, 11748, 4818, 8079, 198, 11748, 640,...
2.225824
3,702
from troposphere import Template, Ref, Parameter, GetAtt from troposphere.ec2 import SecurityGroup from troposphere.rds import DBSubnetGroup, DBInstance if __name__ == '__main__': create_rds_template()
[ 6738, 14673, 22829, 1330, 37350, 11, 6524, 11, 25139, 2357, 11, 3497, 8086, 198, 6738, 14673, 22829, 13, 721, 17, 1330, 4765, 13247, 198, 6738, 14673, 22829, 13, 4372, 82, 1330, 360, 4462, 549, 3262, 13247, 11, 20137, 33384, 628, 198, ...
3.265625
64
# Generated by Django 3.0.7 on 2021-01-26 09:57 import django.contrib.postgres.fields from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 33448, 12, 486, 12, 2075, 7769, 25, 3553, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, ...
2.931818
44
from conans import ConanFile, CMake, tools
[ 6738, 369, 504, 1330, 31634, 8979, 11, 327, 12050, 11, 4899, 198 ]
3.583333
12
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here import bisect t = int(input()) for _ in ...
[ 37811, 198, 2, 27565, 2438, 284, 1620, 314, 14, 46, 25, 198, 198, 3672, 796, 5128, 3419, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11725, 5128, 422, 48571, 1268, 198, 4798, 10786, 1...
2.452962
287
from django.urls import path, re_path from . import views app_name = "departments" urlpatterns = [path("", views.departmentList, name="energy department"), path( "<slug:department>/", views.department_detail, name="department_detail", ), path( "<slug:departm...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 302, 62, 6978, 198, 6738, 764, 1330, 5009, 628, 198, 1324, 62, 3672, 796, 366, 10378, 32514, 1, 198, 6371, 33279, 82, 796, 685, 6978, 7203, 1600, 5009, 13, 10378, 1823, 8053, 11, 143...
2.057803
346
# 5. How do you Count The Number Of Times Each Value Appears In An Array Of Integers? # [0, 5, 4, 0, 4, 4, 3, 0, 0, 5, 2, 1, 1, 9] # Answer should be array([4, 2, 1, 1, 3, 2, 0, 0, 0, 1]) which means 0 comes 4 times, 1 comes 2 times, 2 comes 1 time, 3 comes 1 time and so on. array = [0, 5, 4, 0, 4, 4, 3,...
[ 2, 642, 13, 1374, 220, 466, 220, 345, 220, 2764, 220, 383, 220, 7913, 220, 3226, 220, 3782, 220, 5501, 220, 11052, 220, 31254, 220, 554, 220, 1052, 220, 15690, 220, 3226, 15995, 364, 30, 198, 2, 685, 15, 11, 642, 11, 604, 11, 65...
2.322581
186
from time import sleep print("Welcome to Tic Tac Toe! \nWe'll be playing in a sec, but, first..") general_board = {'7': ' ', '8': ' ', '9': ' ', '4': ' ', '5': ' ', '6': ' ', '1': ' ', '2': ' ', '3': ' '} # prints board structure # Choose which player goes first # Clear the board ...
[ 6738, 640, 1330, 3993, 198, 198, 4798, 7203, 14618, 284, 309, 291, 26075, 1675, 68, 0, 3467, 77, 1135, 1183, 307, 2712, 287, 257, 792, 11, 475, 11, 717, 492, 4943, 198, 198, 24622, 62, 3526, 796, 1391, 6, 22, 10354, 705, 46083, 70...
2.353293
167
""" Auth Providers which provides LDAP login """ from typing import List, Dict from ldap3 import Connection, Server, AUTO_BIND_TLS_BEFORE_BIND, SUBTREE from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError from ..login import LoginProvider from .. import APP, AUTH_LOGGER
[ 37811, 198, 30515, 7518, 4157, 543, 3769, 27178, 2969, 17594, 198, 37811, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 6738, 300, 67, 499, 18, 1330, 26923, 11, 9652, 11, 47044, 46, 62, 33, 12115, 62, 51, 6561, 62, 12473, 30...
3.175824
91
#!/usr/bin/env python3 import re, os, glob template = """ <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <style> body { font-family: PMingLiu, HanaMinA, HanaMinB, Helvetica, arial, sans-serif; writing-mode: vertical-rl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 302, 11, 28686, 11, 15095, 198, 198, 28243, 796, 37227, 198, 27, 0, 4598, 310, 2981, 27711, 29, 198, 27, 6494, 29, 198, 27, 2256, 29, 198, 27, 28961, 34534, 316, 26...
2.256272
558
# -*- encoding: utf-8 -*- from PyQt5.QtCore import QCoreApplication from PyQt5.QtWidgets import QMainWindow, QFrame import mobase
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 14055, 23416, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 11, 1195...
2.481481
54
from ._inv_prop_lr import InvPropLR from ._constant_lr import ConstantLR from ._step_size_lr import StepSizeLR from ._dynamic_step_size_lr import DynamicStepSizeLR
[ 6738, 47540, 16340, 62, 22930, 62, 14050, 1330, 10001, 24331, 35972, 198, 6738, 47540, 9979, 415, 62, 14050, 1330, 20217, 35972, 198, 6738, 47540, 9662, 62, 7857, 62, 14050, 1330, 5012, 10699, 35972, 198, 6738, 47540, 67, 28995, 62, 9662,...
3.28
50
# -*- coding: utf-8 -*- """ utils/strava.py ================= Utility class to Strava API """ import json import time from configparser import ConfigParser, NoOptionError from datetime import datetime from pathlib import Path from typing import Tuple from loguru import logger from stravalib import Client, exc from ut...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26791, 14, 301, 4108, 64, 13, 9078, 198, 4770, 28, 198, 18274, 879, 1398, 284, 520, 4108, 64, 7824, 198, 37811, 198, 11748, 33918, 198, 11748, 640, 198, 67...
2.642115
3,272
""" Author: brooklyn train with synthText """ import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import os from net.craft import CRAFT import sys from utils.cal_loss import cal_synthText_loss from dataset.synthDataset import SynthDataset import argparse from eval...
[ 37811, 198, 13838, 25, 1379, 482, 6213, 198, 198, 27432, 351, 33549, 8206, 198, 37811, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 28034, 10178, 13, 7645, 23914, 35...
2.587639
987
from django.db import models # Keeps track of FriendCircle memberships MATCH_STATUS = ( ('O', 'Not swiped',), ('V', 'Swiped Right',), ('X', 'Swiped Left',), ) # Keeps track of matches. If both parties swiped right, the user can be added to FriendCircleMembership
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 9175, 82, 2610, 286, 9182, 31560, 293, 1866, 5748, 628, 198, 44, 11417, 62, 35744, 2937, 796, 357, 198, 220, 220, 220, 19203, 46, 3256, 705, 3673, 1509, 46647, 3256, 828, 198, 2...
2.896907
97
"""Unit tests for the Jira issues collector.""" from .base import JiraTestCase
[ 37811, 26453, 5254, 329, 262, 449, 8704, 2428, 22967, 526, 15931, 198, 198, 6738, 764, 8692, 1330, 449, 8704, 14402, 20448, 628 ]
3.681818
22
import numpy as np import pandas as pd import pytest import xarray as xr import cf_xarray as cfxr
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 11748, 30218, 62, 87, 18747, 355, 269, 21373, 81, 628 ]
2.857143
35
"""The base class of Socket Mode client implementation. If you want to build asyncio-based ones, use `AsyncBaseSocketModeHandler` instead. """ import logging import signal import sys from threading import Event from slack_sdk.socket_mode.client import BaseSocketModeClient from slack_sdk.socket_mode.request import Sock...
[ 37811, 464, 2779, 1398, 286, 47068, 10363, 5456, 7822, 13, 198, 1532, 345, 765, 284, 1382, 30351, 952, 12, 3106, 3392, 11, 779, 4600, 42367, 14881, 39105, 19076, 25060, 63, 2427, 13, 198, 37811, 198, 11748, 18931, 198, 11748, 6737, 198,...
3.869159
107
# coding=utf-8 import numpy as np import scipy.interpolate as intpl import scipy.sparse as sprs def to_sparse(D, format="csc"): """ Transform dense matrix to sparse matrix of return_type bsr_matrix(arg1[, shape, dtype, copy, blocksize]) Block Sparse Row matrix coo_matrix(arg1[, shape, dtype, ...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 3849, 16104, 378, 355, 493, 489, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 599, 3808, 628, 198, 4299, 284, 62, 82, 29572, 7, 35, ...
2.246447
3,307
"""rbtree_graphviz.py - create a graphviz representation of a LLRBT. The purpose of this module is to visually show how the shape of a LLRBT changes when keys are inserted in it. For every insert, sub graph (tree) is added to the main graph. `initialization_list` holds the values that are inserted in the tree. This l...
[ 37811, 81, 18347, 631, 62, 34960, 85, 528, 13, 9078, 532, 2251, 257, 4823, 85, 528, 10552, 286, 257, 27140, 49, 19313, 13, 198, 198, 464, 4007, 286, 428, 8265, 318, 284, 22632, 905, 703, 262, 5485, 286, 257, 27140, 49, 19313, 198, ...
2.435432
937
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 201, 198, 201, 198 ]
3.083333
12
from pathlib import Path from typing import Generator from airflow.hooks.base_hook import BaseHook from azure.storage.filedatalake import FileSystemClient from azure.storage.filedatalake._generated.models._models_py3 import ( StorageErrorException, )
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 35986, 198, 6738, 45771, 13, 25480, 82, 13, 8692, 62, 25480, 1330, 7308, 39, 566, 198, 6738, 35560, 495, 13, 35350, 13, 69, 3902, 10254, 539, 1330, 9220, 11964, 11792, 198, 6738, ...
3.555556
72
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-14 17:10 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 18, 319, 2177, 12, 2998, 12, 1415, 1596, 25, 940, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
from time import sleep import pyqtgraph as pg import threading from graphtiny.api import IChart, IDataStreamWindow from graphtiny.domain import DataStreamWindow, Chart
[ 6738, 640, 1330, 3993, 198, 11748, 12972, 80, 25297, 1470, 355, 23241, 198, 11748, 4704, 278, 198, 6738, 4823, 44152, 13, 15042, 1330, 314, 45488, 11, 4522, 1045, 12124, 27703, 198, 6738, 4823, 44152, 13, 27830, 1330, 6060, 12124, 27703, ...
3.822222
45
from typing import Generator, Dict, Any from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import jwt from pydantic import ValidationError from sqlalchemy.orm import Session from tlbx import json, pp from zillion.configs import load_warehouse_config, zillion_...
[ 6738, 19720, 1330, 35986, 11, 360, 713, 11, 4377, 198, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 14626, 16922, 11, 3722, 198, 6738, 3049, 15042, 13, 12961, 1330, 440, 30515, 17, 35215, 3856, 11258, 198, 6738, 474, 577, 1330, 474, ...
2.665533
882
from BufferStockModel import BufferStockModelClass updpar = dict() updpar["Np"] = 1500 updpar["Nm"] = 1500 updpar["Na"] = 1500 model = BufferStockModelClass(name="baseline",solmethod="egm",**updpar) model.test()
[ 6738, 47017, 26207, 17633, 1330, 47017, 26207, 17633, 9487, 198, 929, 67, 1845, 796, 8633, 3419, 198, 929, 67, 1845, 14692, 45, 79, 8973, 796, 20007, 198, 929, 67, 1845, 14692, 45, 76, 8973, 796, 20007, 198, 929, 67, 1845, 14692, 2670...
2.826667
75
#! /usr/bin/env python3 # ## Copyright (C) 2015-2018 Rolf Neugebauer. All rights reserved. ## Copyright (C) 2015 Netronome Systems, Inc. All rights reserved. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a co...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2235, 15069, 357, 34, 8, 1853, 12, 7908, 371, 4024, 3169, 2217, 65, 16261, 13, 220, 1439, 2489, 10395, 13, 198, 2235, 15069, 357, 34, 8, 1853, 3433, 1313, 462, 11998,...
1.949874
2,374
import subprocess
[ 11748, 850, 14681, 198 ]
4.5
4
# Copyright (c) 2021 kamyu. All rights reserved. # # Google Code Jam 2014 Round 2 - Problem A. Data Packing # https://codingcompetitions.withgoogle.com/codejam/round/0000000000432fed/0000000000432b8d # # Time: O(NlogN) # Space: O(1) # for case in xrange(input()): print 'Case #%d: %s' % (case+1, data_packing())
[ 2, 15069, 357, 66, 8, 33448, 479, 14814, 84, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 3012, 6127, 9986, 1946, 10485, 362, 532, 20647, 317, 13, 6060, 350, 5430, 198, 2, 3740, 1378, 66, 7656, 5589, 316, 1756, 13, 4480, 13297, 13, ...
2.628099
121
""" Description: Class for training CNNs using a nested cross-validation method. Train on the inner_fold to obtain optimized hyperparameters. Train outer_fold to obtain classification performance. """ from braindecode.datautil.iterators import BalancedBatchSizeIterator from braindecode.experiments.stopcriteria imp...
[ 37811, 201, 198, 11828, 25, 5016, 329, 3047, 8100, 82, 1262, 257, 28376, 3272, 12, 12102, 341, 2446, 13, 16835, 319, 262, 8434, 62, 11379, 284, 7330, 201, 198, 40085, 1143, 8718, 17143, 7307, 13, 16835, 12076, 62, 11379, 284, 7330, 17...
3.336709
395
import datetime from collections import Counter from functools import wraps from dateparser import parse as parse_date from calmlib import get_current_date, get_current_datetime, to_date, trim from .base import Task from .str_database import STRDatabase from .telegram_bot import TelegramBot, command, catch_errors DE...
[ 11748, 4818, 8079, 198, 6738, 17268, 1330, 15034, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 3128, 48610, 1330, 21136, 355, 21136, 62, 4475, 198, 198, 6738, 2386, 4029, 571, 1330, 651, 62, 14421, 62, 4475, 11, 651, 62, ...
2.169284
573
# lower , title , upper operations on string x = "spider" y = "MAN" v=x.upper() # all letters will become uppercase w=y.lower() # all letters will become lowercase z=y.title() # only first letter will become upper and rest of all lowercase print(v,w,z)
[ 2, 2793, 837, 3670, 837, 6727, 4560, 319, 4731, 198, 198, 87, 796, 366, 2777, 1304, 1, 198, 88, 796, 366, 10725, 1, 198, 198, 85, 28, 87, 13, 45828, 3419, 1303, 477, 7475, 481, 1716, 334, 39921, 589, 198, 86, 28, 88, 13, 21037, ...
3.035294
85
"""Setup script for sfcpy""" import os.path from setuptools import setup # The directory containing this file HERE = os.path.abspath(os.path.dirname(__file__)) # The text of the README file with open(os.path.join(HERE, "README.md"), encoding='utf-8') as fid: README = fid.read() # This call to setup() does all t...
[ 37811, 40786, 4226, 329, 264, 16072, 9078, 37811, 198, 198, 11748, 28686, 13, 6978, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 2, 383, 8619, 7268, 428, 2393, 198, 39, 9338, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, ...
2.596529
461
#!/usr/bin/env python3 import csv import os from collections import namedtuple import string from nameparser import HumanName if __name__ == '__main__': issues_dict = csv_to_dict('3rdStageSourceCSVs/Interviews.csv') make_csv_data(issues_dict)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 4731, 198, 198, 6738, 1438, 48610, 1330, 5524, 5376, 628, 628, 628, 628, 628, 628, 6...
2.77551
98
# -*- coding: utf-8 -*- from typing import Optional, Any import redis from pip_services3_commons.config import IConfigurable, ConfigParams from pip_services3_commons.errors import ConfigException, InvalidStateException from pip_services3_commons.refer import IReferenceable, IReferences from pip_services3_commons.run i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 19720, 1330, 32233, 11, 4377, 198, 198, 11748, 2266, 271, 198, 6738, 7347, 62, 30416, 18, 62, 9503, 684, 13, 11250, 1330, 314, 16934, 11970, 11, 17056, 10044, 4105...
3.58042
143
# coding: utf-8 from __future__ import absolute_import from google.appengine.ext import ndb from api import fields import model import util FIELDS = { 'auto_now': fields.Boolean, 'auto_now_add': fields.Boolean, 'autofocus': fields.Boolean, 'choices': fields.String, 'default': fields...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198, 198, 6738, 40391, 1330, 7032, 198, 11748, 2746, 198, 11748, 7736, 628, ...
2.434896
384
import pytest from wired import ServiceContainer
[ 11748, 12972, 9288, 198, 6738, 28217, 1330, 4809, 29869, 628, 628 ]
4.727273
11
# -*- coding: utf-8 -*- """ Created on Mon May 17 21:24:53 2021 @author: Akshay Prakash """ import pandas as pd import numpy as np import matplotlib.pyplot as plt table = pd.read_csv(r'\1617table.csv') table.head() plt.hlines(y= np.arange(1, 21), xmin = 0, xmax = table['Pts'], color = 'skyblue') plt.p...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 2892, 1737, 1596, 2310, 25, 1731, 25, 4310, 33448, 201, 198, 201, 198, 31, 9800, 25, 317, 50133, 323, 350, 17716, 1077, 201, 198, 378...
1.912176
501
#!/usr/bin/env python import sys import lxml.etree if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 198, 11748, 300, 19875, 13, 316, 631, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.384615
39
# -*- coding: utf-8 -*- DESC = "partners-2018-03-21" INFO = { "AgentPayDeals": { "params": [ { "name": "OwnerUin", "desc": "uin" }, { "name": "AgentPay", "desc": "10" }, { "name": "DealNames", "desc": "" } ], "desc": "/" ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 30910, 34, 796, 366, 3911, 2741, 12, 7908, 12, 3070, 12, 2481, 1, 198, 10778, 796, 1391, 198, 220, 366, 36772, 19197, 5005, 874, 1298, 1391, 198, 220, 220, 220, 366, ...
1.65493
1,988
""" The default configuration, from which all others should be derived """ import os, plugins, sandbox, console, rundependent, comparetest, batch, performance, subprocess, operator, logging from copy import copy from string import Template from fnmatch import fnmatch from threading import Thread # For back-compatibi...
[ 198, 37811, 383, 4277, 8398, 11, 422, 543, 477, 1854, 815, 307, 10944, 37227, 198, 198, 11748, 28686, 11, 20652, 11, 35204, 11, 8624, 11, 374, 917, 8682, 11, 552, 8984, 395, 11, 15458, 11, 2854, 11, 850, 14681, 11, 10088, 11, 18931,...
4.268817
93
# This problem was recently asked by LinkedIn: # Given a non-empty array where each element represents a digit of a non-negative integer, add one to the integer. # The most significant digit is at the front of the array and each element in the array contains only one digit. # Furthermore, the integer does not have lea...
[ 2, 770, 1917, 373, 2904, 1965, 416, 27133, 25, 198, 198, 2, 11259, 257, 1729, 12, 28920, 7177, 810, 1123, 5002, 6870, 257, 16839, 286, 257, 1729, 12, 31591, 18253, 11, 751, 530, 284, 262, 18253, 13, 198, 2, 383, 749, 2383, 16839, ...
3.724138
116
import subprocess import sys import os
[ 11748, 850, 14681, 198, 198, 11748, 25064, 198, 11748, 28686, 628, 628, 628 ]
3.461538
13
from pathlib import Path import altair as alt import folium import matplotlib.pyplot as plt import numpy as np import pandas as pd import plotly.graph_objects as p_go import pytest from bokeh.layouts import column from bokeh.models import ColumnDataSource from bokeh.plotting import figure from pandas.io.formats.style ...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 5988, 958, 355, 5988, 198, 11748, 5955, 1505, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, ...
3.158491
265
NEWS_API_KEY= '138b22df68394ecbaa9c9af0d0377adb' SECRET_KEY= 'f9bf78b9a18ce6d46a0cd2b0b86df9da'
[ 49597, 62, 17614, 62, 20373, 28, 705, 20107, 65, 1828, 7568, 3104, 34626, 721, 7012, 64, 24, 66, 24, 1878, 15, 67, 15, 26514, 324, 65, 6, 198, 23683, 26087, 62, 20373, 28, 705, 69, 24, 19881, 3695, 65, 24, 64, 1507, 344, 21, 67,...
1.637931
58
import os import logging import sys import structlog from structlog.stdlib import LoggerFactory, add_log_level _configured = False def configure(force = False): """ Configures logging & structlog modules Keyword Arguments: force: Force to reconfigure logging. """ global _configured if ...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 2878, 6404, 198, 6738, 2878, 6404, 13, 19282, 8019, 1330, 5972, 1362, 22810, 11, 751, 62, 6404, 62, 5715, 198, 198, 62, 11250, 1522, 796, 10352, 628, 198, 4299, 17425,...
2.460069
576
# setup.py # Copyright (c) 2015-2017 Arkadiusz Bokowy # # This file is a part of pyexec. # # This project is licensed under the terms of the MIT license. from setuptools import setup import pyexec with open("README.rst") as f: long_description = f.read() setup( name="pyexec", version=pyexec.__version__...
[ 2, 9058, 13, 9078, 198, 2, 15069, 357, 66, 8, 1853, 12, 5539, 9128, 324, 3754, 89, 47390, 322, 88, 198, 2, 198, 2, 770, 2393, 318, 257, 636, 286, 12972, 18558, 13, 198, 2, 198, 2, 770, 1628, 318, 11971, 739, 262, 2846, 286, 26...
2.668693
329
'''Functional tests for the equational constraint.''' import cytest # from ./lib; must be first
[ 7061, 6, 22203, 282, 5254, 329, 262, 1602, 864, 32315, 2637, 7061, 198, 11748, 3075, 9288, 1303, 422, 24457, 8019, 26, 1276, 307, 717, 628 ]
3.88
25
# # (c) 2022 Sven Lieber # KBR Brussels # #import xml.etree.ElementTree as ET import lxml.etree as ET import os import json import itertools import enchant import hashlib import csv from optparse import OptionParser import utils import stdnum NS_MARCSLIM = 'http://www.loc.gov/MARC21/slim' ALL_NS = {'marc': NS_MARCSLI...
[ 2, 198, 2, 357, 66, 8, 33160, 44611, 12060, 527, 198, 2, 509, 11473, 16445, 198, 2, 198, 2, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 300, 19875, 13, 316, 631, 355, 12152, 198, 11748, 28686, 198, 11748, ...
2.819804
1,737
#!/bin/python import time import random from multiprocessing import Pool, Process, Pipe, TimeoutError from multiprocessing.pool import ThreadPool
[ 2, 48443, 8800, 14, 29412, 198, 11748, 640, 198, 11748, 4738, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 10854, 11, 36039, 11, 3862, 448, 12331, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 628 ]
3.769231
39
from canvas.cache_patterns import CachedCall from drawquest import knobs from drawquest.apps.drawquest_auth.models import User from drawquest.apps.drawquest_auth.details_models import UserDetails from drawquest.pagination import FakePaginator def _paginate(redis_obj, offset, request=None): ''' items should al...
[ 6738, 21978, 13, 23870, 62, 33279, 82, 1330, 327, 2317, 14134, 198, 6738, 3197, 6138, 1330, 638, 8158, 198, 6738, 3197, 6138, 13, 18211, 13, 19334, 6138, 62, 18439, 13, 27530, 1330, 11787, 198, 6738, 3197, 6138, 13, 18211, 13, 19334, ...
2.4666
1,003
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628 ]
3.333333
6
from ._src.multiply import multiply_outer as outer # noqa: F401
[ 6738, 47540, 10677, 13, 16680, 541, 306, 1330, 29162, 62, 39605, 355, 12076, 220, 1303, 645, 20402, 25, 376, 21844, 198 ]
3.095238
21
#!/usr/bin/env python from os.path import join from setuptools import find_packages, setup # DEPENDENCIES core_deps = requirements_from_pip("requirements.txt") dev_deps = requirements_from_pip("requirements_dev.txt") # DESCRIPTION with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.rea...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 628, 198, 2, 5550, 47, 10619, 24181, 11015, 628, 198, 7295, 62, 10378, 82, 796, ...
2.7325
400
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .jwplatform import JWPlatformIE
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 764, 11321, 1330, 14151, 11627, 40450, 198, 6738, 764, 73, 86, 24254, 1330, 449, 54, 37148, 10008, 628 ]
3.307692
39
import plotly.express as px import pandas as pd data = pd.read_csv('kc_house_data.csv') data_mapa = data[['id', 'lat', 'long', 'price']] grafico1 = px.scatter_mapbox(data_mapa, lat='lat', lon='long', hover_name='id', hover_data=['price'], color_discrete_sequen...
[ 11748, 7110, 306, 13, 42712, 355, 279, 87, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 7890, 796, 279, 67, 13, 961, 62, 40664, 10786, 74, 66, 62, 4803, 62, 7890, 13, 40664, 11537, 198, 7890, 62, 8899, 64, 796, 1366, 58, 17816,...
1.972696
293