content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Generated by Django 3.0.3 on 2021-05-07 01:58 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 33448, 12, 2713, 12, 2998, 5534, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Copyright (c) 2020 Chris ter Beke. # Thingiverse plugin is released under the terms of the LGPLv3 or higher. import logging from typing import List, Callable, Any, Tuple, Optional from abc import ABC, abstractmethod from PyQt5.QtCore import QUrl from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QNetw...
[ 2, 15069, 357, 66, 8, 12131, 5180, 1059, 1355, 365, 13, 198, 2, 21561, 3997, 13877, 318, 2716, 739, 262, 2846, 286, 262, 17370, 6489, 85, 18, 393, 2440, 13, 198, 11748, 18931, 198, 6738, 19720, 1330, 7343, 11, 4889, 540, 11, 4377, ...
2.855042
476
from . import test_conversion from . import test_generic from . import test_idxgz from . import test_settings
[ 6738, 764, 1330, 1332, 62, 1102, 9641, 198, 6738, 764, 1330, 1332, 62, 41357, 198, 6738, 764, 1330, 1332, 62, 312, 87, 34586, 198, 6738, 764, 1330, 1332, 62, 33692, 198 ]
3.548387
31
import subprocess import time import os import sys commands = generate_synthetic_commands(kernel) commands = commands + generate_real_commands(kernel) commands = commands + generate_el_commands(kernel) prettify(commands)
[ 11748, 850, 14681, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 25064, 198, 9503, 1746, 796, 7716, 62, 1837, 429, 6587, 62, 9503, 1746, 7, 33885, 8, 198, 9503, 1746, 796, 9729, 1343, 7716, 62, 5305, 62, 9503, 1746, 7, 33885, 8, 1...
2.714286
91
import numpy as np from kneeOsteoarthritisDataset.KneeOsteoarthritsDataset import KneeOsteoarthritsDataset data_path = '/home/biomech/Documents/OsteoData/KneeXrayData/ClsKLData/kneeKL299' kneeosteo = KneeOsteoarthritsDataset(data_path = data_path) imgs, labels = kneeosteo.load_imgs() rand_idx = np.random.randint(lo...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10329, 46, 4169, 78, 11999, 27398, 27354, 292, 316, 13, 42, 21381, 46, 4169, 78, 11999, 799, 82, 27354, 292, 316, 1330, 509, 21381, 46, 4169, 78, 11999, 799, 82, 27354, 292, 316, 198, 198, 7...
2.290909
220
print("SD bootloader") import pycom import time import machine import sys import uos #paths for the code/lib/mount locations SD_MOUNTPOINT = '/sd' CODE_PATH = '/sd/src' LIB_PATH = '/sd/src/lib' #LED colors #for errors (full brightness) C_YELLOW = 0xffff00 C_RED = 0xff0000 C_PURPLE = 0xff00ff C_BLUE = 0x0000ff #for n...
[ 4798, 7203, 10305, 6297, 29356, 4943, 198, 198, 11748, 12972, 785, 198, 11748, 640, 198, 11748, 4572, 198, 11748, 25064, 198, 11748, 334, 418, 198, 198, 2, 6978, 82, 329, 262, 2438, 14, 8019, 14, 14948, 7064, 198, 10305, 62, 44, 19385...
2.2603
534
import os import sys import copy from math import gcd from driver_config_macros import * from data_capture_macros import * from signal_generator_macros import * from power_operation_macros import * from capture_config_macros import * from trig_config_macros import * from data_processing_macros import * from PyQt5 impor...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4866, 198, 6738, 10688, 1330, 308, 10210, 198, 6738, 4639, 62, 11250, 62, 20285, 4951, 1330, 1635, 198, 6738, 1366, 62, 27144, 495, 62, 20285, 4951, 1330, 1635, 198, 6738, 6737, 62, 8612, 135...
2.73224
549
import cgroup_parser
[ 11748, 269, 8094, 62, 48610, 628 ]
3.666667
6
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 33160, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
2.444179
2,096
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 41906, 8412, 4557, 198, 2, 6434, 290, 8517, 25, 9300, 591, 46273, 1778, 20867, 709, 198, 2, 20368, 22369, 198, 2, 49962, 25, 347, 10305, 513, 12, 2601, 682, 13789, ...
5.280702
114
from hallo.events import EventMessage, EventMode from hallo.server import Server from hallo.test.server_mock import ServerMock
[ 6738, 6899, 78, 13, 31534, 1330, 8558, 12837, 11, 8558, 19076, 198, 6738, 6899, 78, 13, 15388, 1330, 9652, 198, 6738, 6899, 78, 13, 9288, 13, 15388, 62, 76, 735, 1330, 9652, 44, 735, 628, 628, 628, 628, 628, 628, 628, 628, 628, 62...
3.14
50
from base64 import b64encode from flask import Flask, jsonify, request from functools import reduce from gevent import subprocess, pywsgi, queue, socket, spawn, lock from gevent.subprocess import CalledProcessError from hashlib import sha512 from pathlib import Path from tempfile import mkstemp import json import os im...
[ 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 198, 6738, 42903, 1330, 46947, 11, 33918, 1958, 11, 2581, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 4903, 1151, 1330, 850, 14681, 11, 12972, 18504, 12397, 11, 16834, 11, 17802, 11,...
2.437272
821
import datetime import math import random import time from ..users.models import User
[ 11748, 4818, 8079, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 640, 198, 198, 6738, 11485, 18417, 13, 27530, 1330, 11787, 628, 628, 198 ]
3.791667
24
import dataclasses import enum import typing from vkmodels.bases.object import ObjectBase
[ 11748, 4818, 330, 28958, 198, 11748, 33829, 198, 11748, 19720, 198, 198, 6738, 410, 74, 27530, 13, 65, 1386, 13, 15252, 1330, 9515, 14881, 628 ]
3.68
25
import curifactory as cf import json import os import pytest from stages.cache_stages import filerefcacher_stage, filerefcacher_stage_multifile # TODO: necessary? configured_test_manager already does this def test_filerefcacher_stores_multiple_paths(configured_test_manager, clear_stage_run): """FileReferenceCa...
[ 11748, 1090, 361, 9548, 355, 30218, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 12972, 9288, 198, 198, 6738, 9539, 13, 23870, 62, 301, 1095, 1330, 2393, 5420, 66, 3493, 62, 14247, 11, 2393, 5420, 66, 3493, 62, 14247, 62, 16680, ...
2.445104
1,011
import urllib import time from multiprocessing.dummy import Pool as ThreadPool excelFolder = 'F://SecExcelDownload2/' compListUrl = 'C://Users/l1111/Desktop/AlphaCapture/downloadFileUrl.txt' successFile = excelFolder+'/success.txt' failFile = excelFolder+'/fail.txt' logFile = excelFolder+'/log.txt' downloadedList =...
[ 11748, 2956, 297, 571, 198, 11748, 640, 198, 6738, 18540, 305, 919, 278, 13, 67, 13513, 1330, 19850, 355, 14122, 27201, 628, 198, 1069, 5276, 41092, 796, 705, 37, 1378, 6558, 3109, 5276, 10002, 17, 14, 6, 198, 5589, 8053, 28165, 796, ...
3.191667
120
#/* # * Copyright 2016 -- 2021 IBM Corporation # * # * 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, 15211, 198, 2, 1635, 15069, 1584, 1377, 33448, 19764, 10501, 198, 2, 1635, 198, 2, 1635, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 1635, 345, 743, 407, 779, 428, 2393, 2845, 287,...
2.535255
8,084
import json import re import random if __name__ == "__main__": data, gramindex = {}, NGram() gramind3x = NGram(size=3) gram1ndex = NGram(size=1) with open('dump', 'r') as f: data = json.load(f) for tweet in data['tweet']: gramindex.index(tweet) gramind3x.index(tweet) ...
[ 11748, 33918, 198, 11748, 302, 198, 11748, 4738, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 1366, 11, 14599, 9630, 796, 1391, 5512, 39058, 859, 3419, 198, 220, 220, 220, 14599, 521, 18,...
2.243697
357
import os from mir.scm.cmd import CmdScm from mir.tools.code import MirCode from mir.tools.errors import MirRuntimeError def Scm(root_dir: str, scm_executable: str = None) -> CmdScm: """Returns SCM instance that corresponds to a repo at the specified path. Args: root_dir (str): path t...
[ 11748, 28686, 198, 198, 6738, 5720, 13, 1416, 76, 13, 28758, 1330, 327, 9132, 3351, 76, 198, 6738, 5720, 13, 31391, 13, 8189, 1330, 7381, 10669, 198, 6738, 5720, 13, 31391, 13, 48277, 1330, 7381, 41006, 12331, 628, 198, 4299, 1446, 76...
2.144124
451
""" Software: LingFeat - Comprehensive Linguistic Features for Readability Assessment Page: utils.py License: CC-BY-SA 4.0 Original Author: Bruce W. Lee () @brucewlee Affiliation 1: LXPER AI, Seoul, South Korea Affiliation 2: University of Pennsylvania, PA, USA Contributing Author: - Affiliation : - """ import re impo...
[ 37811, 198, 25423, 25, 25116, 37, 4098, 532, 40917, 406, 6680, 2569, 17571, 329, 4149, 1799, 25809, 198, 9876, 25, 3384, 4487, 13, 9078, 198, 34156, 25, 12624, 12, 17513, 12, 4090, 604, 13, 15, 198, 198, 20556, 6434, 25, 11088, 370, ...
3.478723
94
# Generated by Django 3.2.8 on 2021-10-31 23:57 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 940, 12, 3132, 2242, 25, 3553, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Usage: # python bwfilter.py --input=./data/test1.jpg import cv2 import numpy as np import argparse if __name__=='__main__': args = parse_args() img = cv2.imread(args.input, 0) bwimg = bwfilter(img) show_img(bwimg) cv2.imwrite('bwimg.png', bwimg)
[ 2, 29566, 25, 220, 198, 198, 2, 21015, 275, 86, 24455, 13, 9078, 1377, 15414, 28, 19571, 7890, 14, 9288, 16, 13, 9479, 220, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 628, 628, 198, ...
2.123077
130
from networkx import DiGraph from pytest import fixture from resotolib.graph.graph_extensions import dependent_node_iterator
[ 6738, 3127, 87, 1330, 6031, 37065, 198, 6738, 12972, 9288, 1330, 29220, 198, 198, 6738, 581, 313, 349, 571, 13, 34960, 13, 34960, 62, 2302, 5736, 1330, 10795, 62, 17440, 62, 48727, 628, 628, 198 ]
3.714286
35
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 628 ]
3.677419
31
#!/usr/bin/env python3.4 import functools if __name__ == '__main__': doz_sums = CrossSums('0123456789XE') print('Sums totalling 15:') for ds in doz_sums.filter(total='15'): print(' ', ds) print('\nSums containing addends 3-X inclusive:') for ds in doz_sums.filter(addends='3456789X'...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 19, 198, 198, 11748, 1257, 310, 10141, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 466, 89, 62, 82, 5700, 796, 6372, 50, 5700, 1...
2.195122
287
import base64 import re
[ 11748, 2779, 2414, 198, 11748, 302, 628, 628, 628 ]
3.222222
9
# may 30 20
[ 2, 743, 1542, 1160, 198 ]
2.4
5
import xlwings as xw import random import pandas as pd def capm(risk_free, beta, market_ret, epsilon): return risk_free + beta * (market_ret - risk_free) + epsilon def capm_auto_epsilon(risk_free, beta, market_ret, epsilon_stdev): epsilon = random.normalvariate(0, epsilon_stdev) return ca...
[ 11748, 2124, 75, 48819, 355, 2124, 86, 201, 198, 11748, 4738, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 201, 198, 201, 198, 4299, 1451, 76, 7, 19121, 62, 5787, 11, 12159, 11, 1910, 62, 1186, 11, 304, 862, 3357...
2.3
160
# -*- coding: UTF-8 -*- import ConfigParser import os import inspect
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 11748, 17056, 46677, 198, 11748, 28686, 198, 11748, 10104, 628, 198 ]
2.88
25
from .detection import FDetector from .haar_detector import HaarDetector from .hog_detector import Hog_detector from .mtcnn_detector import MTCNNDetector from .dnn_detector import DnnDetector
[ 6738, 764, 15255, 3213, 1330, 376, 11242, 9250, 198, 6738, 764, 42948, 62, 15255, 9250, 1330, 9398, 283, 11242, 9250, 198, 6738, 764, 31897, 62, 15255, 9250, 1330, 22411, 62, 15255, 9250, 198, 6738, 764, 16762, 66, 20471, 62, 15255, 925...
3.147541
61
import torchvision.datasets as datasets from torch.utils.data import Dataset from itertools import combinations import math import psutil
[ 11748, 28034, 10178, 13, 19608, 292, 1039, 355, 40522, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 11748, 10688, 198, 11748, 26692, 22602, 628, 628, 628, 628 ]
3.815789
38
# iaga.utils # Utility functions and helpers # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Wed Aug 08 12:00:44 2018 -0400 # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions and helpers """ ########################################################################## ## Imports ########...
[ 2, 1312, 8126, 13, 26791, 198, 2, 34030, 5499, 290, 49385, 198, 2, 198, 2, 6434, 25, 220, 14533, 14964, 3319, 1279, 11722, 13337, 31, 65, 1516, 3319, 13, 785, 29, 198, 2, 15622, 25, 3300, 2447, 8487, 1105, 25, 405, 25, 2598, 2864,...
3.905172
348
'''Faa um programa que receba dois nmeros, compare e diga quem maior. Mostrando a msn qual valor maior ou menor. OU diga que os valores so iguais.''' print('=+=+=+=+=+=+=+=+='*3) titulo = 'COMPARANDO NMEROS MAIOR, MENOR E IGUAL' print('{:^51}'.format(titulo)) print('-----------------'*3) num1 = float(input('Digite o ...
[ 7061, 6, 37, 7252, 23781, 1430, 64, 8358, 1407, 7012, 466, 271, 299, 647, 418, 11, 8996, 304, 3100, 64, 627, 368, 220, 17266, 1504, 13, 4042, 25192, 78, 257, 13845, 77, 4140, 1188, 273, 220, 17266, 1504, 267, 84, 1450, 273, 13, 47...
2.268293
328
eggs = 42 # this is the global var spam() print(eggs)
[ 198, 33856, 82, 796, 5433, 1303, 428, 318, 262, 3298, 1401, 198, 2777, 321, 3419, 198, 4798, 7, 33856, 82, 8, 198 ]
2.5
22
# Copyright 2017-2019 Cedric Legrand # # 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, publish, di...
[ 2, 15069, 220, 2177, 12, 23344, 25789, 1173, 1004, 23936, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423...
3.080745
966
# -*- coding: utf-8 -*- """ 04_Tutorial_Boolean """ # In this tutorial we learn how to do boolean operations between groups of # polygons # Let's import basic stuff import samplemaker.layout as smlay # used for layout import samplemaker.makers as sm # used for drawing # Create a simple mask layout themask = smlay...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 3023, 62, 51, 44917, 62, 46120, 13087, 198, 37811, 628, 198, 2, 554, 428, 11808, 356, 2193, 703, 284, 466, 25131, 4560, 1022, 2628, 286, 220, 198, 2, 25052...
2.713869
685
from tabulate import tabulate
[ 6738, 7400, 5039, 1330, 7400, 5039, 198 ]
4.285714
7
"""Test cvejob.version.BenevolentVersion.""" from cvejob.version import BenevolentVersion def test_version_basic(): """Test basic behavior.""" assert BenevolentVersion('1') == BenevolentVersion('1') assert BenevolentVersion('1') != BenevolentVersion('2') assert BenevolentVersion('1') < BenevolentVersi...
[ 37811, 14402, 269, 303, 21858, 13, 9641, 13, 33, 1734, 29078, 14815, 526, 15931, 198, 6738, 269, 303, 21858, 13, 9641, 1330, 36585, 29078, 14815, 628, 198, 4299, 1332, 62, 9641, 62, 35487, 33529, 198, 220, 220, 220, 37227, 14402, 4096, ...
2.752784
898
#!/bin/python3 import math import os import random import re import sys import string if __name__ == '__main__': try: t = int(input().strip()) except: print('Invalid input.') if t>=1 and t<=10: for a0 in range(t): s = input().strip() index = 0 ...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 4731, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
1.810164
669
import sublime, sublime_plugin import os import json
[ 11748, 41674, 11, 41674, 62, 33803, 198, 11748, 28686, 198, 11748, 33918, 198 ]
4.076923
13
# Schnell Nautilus Extension # # Place me in ~/.local/share/nautilus-python/extensions/, # ensure you have python-nautilus package, restrart Nautilus, and enjoy :) from gi import require_version require_version('Gtk', '3.0') require_version('Nautilus', '3.0') from gi.repository import Nautilus, GObject from subprocess...
[ 2, 45606, 695, 399, 2306, 35815, 27995, 198, 2, 198, 2, 8474, 502, 287, 39763, 12001, 14, 20077, 14, 77, 2306, 35815, 12, 29412, 14, 2302, 5736, 47454, 198, 2, 4155, 345, 423, 21015, 12, 77, 2306, 35815, 5301, 11, 1334, 81, 433, 3...
3
169
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: service.proto import base64 from google.protobuf import descriptor_pb2 # Includes description of the service.proto and all of its transitive # dependencies. Includes source code info. FILE_DESCRIPTOR_SET = descriptor_pb2.FileDescriptorS...
[ 2, 2980, 515, 416, 262, 279, 49, 5662, 8435, 11876, 17050, 13877, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 2139, 13, 1676, 1462, 198, 198, 11748, 2779, 2414, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 62, 4084...
1.382951
53,905
from pymongo import MongoClient import random as r import os client = MongoClient(os.environ["MONGO_LAB"]) db = client.get_database("hetmanbot") collection = db['data_base']
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 11748, 4738, 355, 374, 198, 11748, 28686, 198, 198, 16366, 796, 42591, 11792, 7, 418, 13, 268, 2268, 14692, 27857, 11230, 62, 48780, 8973, 8, 198, 9945, 796, 5456, 13, 1136, 62, 48806, ...
3.125
56
from django.contrib import admin # Register your models here. from . import models from .models import Article, Comment # title = title, # content = content, # square_open = square_open, # expire_time = expire_time, # status = status, # author_id_id = user_id, # diary_type = diary_type, # admin.site.register(Articl...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 6738, 764, 1330, 4981, 198, 6738, 764, 27530, 1330, 10172, 11, 18957, 628, 198, 198, 2, 3670, 796, 3670, 11, 198, 2, 2695, 796, 2695, 11, ...
3.211382
123
# - * - coding: utf-8 - * - import numpy as np import pandas as pd import matplotlib.pyplot as plt import scipy.signal from ..signal import signal_smooth from ..signal import signal_zerocrossings def ecg_findpeaks(ecg_cleaned, sampling_rate=1000, method="neurokit", show=False): """Find R-peaks in an ECG signal...
[ 2, 532, 1635, 532, 19617, 25, 3384, 69, 12, 23, 532, 1635, 532, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 629, 541, 88, ...
2.093653
14,244
import inspect import sys from enum import IntEnum from tflite.ActivationFunctionType import ActivationFunctionType from tflite.BuiltinOperator import BuiltinOperator # In Python 3.6, we cannot make ExtendedOperator derive from IntEnum if sys.version_info >= (3, 7): bases = (IntEnum, ) else: bases = () # ...
[ 11748, 10104, 198, 11748, 25064, 198, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 6738, 256, 2704, 578, 13, 25526, 341, 22203, 6030, 1330, 13144, 341, 22203, 6030, 198, 6738, 256, 2704, 578, 13, 39582, 259, 18843, 1352, 1330, 284...
2.731707
328
PACKAGE_NAME = 'mkdocs_markmap' PROJECT_NAME = PACKAGE_NAME.replace('_', '-') PROJECT_VERSION = '2.1.3' OWNER = 'neatc0der' REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'
[ 47, 8120, 11879, 62, 20608, 796, 705, 28015, 31628, 62, 4102, 8899, 6, 198, 31190, 23680, 62, 20608, 796, 47035, 11879, 62, 20608, 13, 33491, 10786, 62, 3256, 705, 12, 11537, 198, 31190, 23680, 62, 43717, 796, 705, 17, 13, 16, 13, 1...
2.139241
79
from django.conf.urls import url from rest_framework.routers import DefaultRouter from apps.homes import views urlpatterns = [ url(r'^areas/$', views.AreaAPIView.as_view()), # url(r'^houses/$', views.HouseAPIView.as_view()), # url(r'^user/houses/$', views.HouseListView.as_view()), # url(r'^h...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 1334, 62, 30604, 13, 472, 1010, 1330, 15161, 49, 39605, 198, 6738, 6725, 13, 71, 2586, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, ...
2.513932
323
import socket import ssl import sys hostname = '127.0.0.1' if len(sys.argv) < 2: exit(0) inputfile = sys.argv[1] print('\tRead file %s' % inputfile) # msg = b"HEAD / HTTP /1.0\r\nHost: linuxfr.org\r\n\r\n" msg = open(inputfile).read() msg = bytes(msg.encode()) context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) con...
[ 11748, 17802, 198, 11748, 264, 6649, 198, 11748, 25064, 198, 198, 4774, 3672, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1279, 362, 25, 198, 220, 220, 220, 8420, 7, 15, 8, 198, 15414, ...
2.212329
292
from typing import Callable
[ 6738, 19720, 1330, 4889, 540, 198 ]
4.666667
6
import numpy as np from scipy.misc import imread, imsave from scipy import ndimage img = imread('doc1.bmp') F = np.vectorize(f) treated_img = F(img) imsave('treated_doc.bmp', treated_img) mask = treated_img < treated_img.mean() label_im, nb_labels = ndimage.label(mask) sizes = ndimage.sum(mask, label_im, range(n...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 44374, 1330, 545, 961, 11, 545, 21928, 198, 6738, 629, 541, 88, 1330, 299, 67, 9060, 198, 198, 9600, 796, 545, 961, 10786, 15390, 16, 13, 65, 3149, 11537, 628, 198, 37, 7...
2.376344
186
import os from dotenv import load_dotenv import sqlite3 import psycopg2 from psycopg2.extras import execute_values load_dotenv() # looks inside the .env file for some env vars # passes env var values to python var DB_HOST = os.getenv("DB_HOST", default="OOPS") DB_NAME = os.getenv("DB_NAME", default="OOPS") DB_USER = ...
[ 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 11748, 44161, 578, 18, 198, 11748, 17331, 22163, 70, 17, 198, 6738, 17331, 22163, 70, 17, 13, 2302, 8847, 1330, 12260, 62, 27160, 198, 198, 2220, 62, 26518, 24330...
2.589242
409
#: L23 Port Transceiver Commands from dataclasses import dataclass import typing from ..protocol.command_builders import ( build_get_request, build_set_request ) from .. import interfaces from ..transporter.token import Token from ..protocol.fields.data_types import * from ..protocol.fields.field import XmpFi...
[ 2, 25, 406, 1954, 4347, 3602, 39729, 49505, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 11748, 19720, 198, 198, 6738, 11485, 11235, 4668, 13, 21812, 62, 50034, 1330, 357, 198, 220, 220, 220, 1382, 62, 1136, 62, 2592...
3.442478
113
# Copyright (c) 2020, NVIDIA CORPORATION. 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 ...
[ 2, 15069, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407,...
2.425504
5,356
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 15881, 276, 3709, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 3740, 1378, 15390, 13, 1416, 2416, 88, 13, 2398, 14, 2...
2.693548
62
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.model_selection import StratifiedKFold, KFold no_of_folds = 3 # Dataset cmc data_cmc = pd.read_csv("data/cmc.data", header=None) data_cmc[9] = np.where(data_cmc[9] == 1, 0, 1) data_cmc_label = data_cmc.pop(9) x...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 29186, 1431, 42, 37, 727, 11, 509,...
1.744652
2,197
# coding: utf-8 from flask.ext import wtf import flask import wtforms import auth import config import model import util from main import app ############################################################################### # Admin Stuff ###############################################################################...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 42903, 13, 2302, 1330, 266, 27110, 198, 11748, 42903, 198, 11748, 266, 83, 23914, 198, 198, 11748, 6284, 198, 11748, 4566, 198, 11748, 2746, 198, 11748, 7736, 198, 198, 6738, 1388, 1330,...
5.262295
61
from datetime import datetime from django.views.generic.base import TemplateView from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import MONTH_DICT, MONTH_LIST, YEARS,CARRIER_LIST from .forms import BSfilterForm from .main import _init_SCRAPER def index(request)...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, 1330, 37350, 7680, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 11, 8543, 198, 6738, 42625, 14208, 13, ...
2.443636
550
import argparse import importlib import logging import sys logger = logging.getLogger() COMMAND_MODULES = ( 'ncdoublescrape.scrape', ) if __name__ == '__main__': main()
[ 11748, 1822, 29572, 198, 11748, 1330, 8019, 198, 11748, 18931, 198, 11748, 25064, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 3419, 198, 198, 9858, 44, 6981, 62, 33365, 6239, 1546, 796, 357, 198, 220, 220, 220, 705, 77, 1...
2.585714
70
#!/usr/bin/env python ############################################################################ # # # Copyright 2014 Prelert Ltd # # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 7804, 4242, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.023945
877
# Python3 from solution1 import twoTeams as f qa = [ ([1, 11, 13, 6, 14], 11), ([3, 4], -1), ([16, 14, 79, 8, 71, 72, 71, 10, 80, 76, 83, 70, 57, 29, 31], 209), ([23, 72, 54, 4, 88, 91, 8, 44], -38), ([23, 74, 57, 33, 61, 99, 19, 12, 19, 38, 77, 70, 20], -50) ] for *q, a ...
[ 2, 11361, 18, 198, 198, 6738, 4610, 16, 1330, 734, 6767, 4105, 355, 277, 198, 198, 20402, 796, 685, 198, 220, 220, 220, 29565, 16, 11, 1367, 11, 1511, 11, 718, 11, 1478, 4357, 198, 220, 220, 220, 220, 1367, 828, 198, 220, 220, 2...
1.821958
337
from __future__ import print_function import boto3 from decimal import Decimal import json import urllib from botocore.vendored import requests print('Loading function') rekognition = boto3.client('rekognition') s3 = boto3.resource("s3") # --------------- Helper Functions to call Rekognition APIs -----------------...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 275, 2069, 18, 198, 6738, 32465, 1330, 4280, 4402, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 198, 6738, 10214, 420, 382, 13, 85, 437, 1850, 1330, 7007, 198, 198, 479...
2.325
1,560
import socket import sqlite3 if __name__ == "__main__": Main().run()
[ 11748, 17802, 198, 11748, 44161, 578, 18, 628, 628, 628, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 8774, 22446, 5143, 3419, 628 ]
2.606061
33
from typing import Any # There is no point implementing a stack with a linkedlist # since we'd majorly be interacting with the topmost item # in the stakc -- this is what arrays are optimized for
[ 6738, 19720, 1330, 4377, 628, 198, 2, 1318, 318, 645, 966, 15427, 257, 8931, 351, 257, 6692, 4868, 220, 198, 2, 1201, 356, 1549, 1688, 306, 307, 24986, 351, 262, 1353, 1712, 2378, 198, 2, 287, 262, 336, 461, 66, 1377, 428, 318, 64...
4.125
48
import collections import os from pathlib import Path enum = enumerate HOME = str(Path.home()) DESKTOP = os.path.join(HOME, 'Desktop') DEBUG = True NORMAL = False
[ 11748, 17268, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 44709, 796, 27056, 378, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198, 198, 39069, 796, 965, 7, 15235, 13, 11195, 28955, 198, 30910, 42, 35222, 796...
2.921875
64
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from .common import Base, session_scope from .team import Team
[ 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, 4818, 8079, 198, 198, 6738, 764, 11321, 1330, 7308, 11, 6246, 62, 29982, 198, 6738, 764, 15097, 1330, 4816,...
2.844444
45
import pytest from ruamel import yaml from runthis.server.config import Config, get_config_from_yaml DICT_CONFIG_CONTENT = dict( tty_server="tty-server", command="myshell", docker=True, docker_image="img", host="8.8.8.8", certfile="/path/to/cert.pem", )
[ 11748, 12972, 9288, 198, 6738, 7422, 17983, 1330, 331, 43695, 198, 198, 6738, 1057, 5661, 13, 15388, 13, 11250, 1330, 17056, 11, 651, 62, 11250, 62, 6738, 62, 88, 43695, 628, 628, 198, 198, 35, 18379, 62, 10943, 16254, 62, 37815, 3525...
2.176056
142
# DISCLAIMER TO CONTEST TEAMS : DO NOT MAKE CHANGES IN THIS FILE. classes = { "Tasit": 0, "Insan": 1, "UAP": 2, "UAI": 3, } landing_statuses = { "Inilebilir": "1", "Inilemez": "0", "Inis Alani Degil": "-1" } base_url = "http://192.168.1.10:3000"
[ 2, 13954, 48778, 1137, 5390, 22904, 6465, 33536, 50, 1058, 220, 8410, 5626, 39134, 5870, 15567, 1546, 3268, 12680, 45811, 13, 201, 198, 37724, 796, 1391, 201, 198, 220, 220, 220, 366, 51, 292, 270, 1298, 657, 11, 201, 198, 220, 220, ...
1.895425
153
from ETL.Data_Preprocessing.data_cleaning_and_filtering import cleaning_and_filtering from ETL.Data_Transformation.drug_conditions_grouped import group_conditions from ETL.Data_Transformation.jaccard_similarity import apply_jaccard_similarity from ETL.Data_Transformation.drug_conditions_fuzzy_matching import fuzzy_matc...
[ 6738, 12152, 43, 13, 6601, 62, 6719, 36948, 13, 7890, 62, 2375, 7574, 62, 392, 62, 10379, 20212, 1330, 12724, 62, 392, 62, 10379, 20212, 198, 6738, 12152, 43, 13, 6601, 62, 8291, 1161, 13, 30349, 62, 17561, 1756, 62, 8094, 276, 1330...
3.277228
202
from setuptools import setup from setuptools.command.install import install import os import sys import atexit if __name__ == '__main__': package_name = 'dgdynamic' excludes = [ '__pycache__', 'StochKit' ] extras = [ 'default_config.ini', 'spim.ocaml', 'stochkit...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 17350, 1330, 2721, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 379, 37023, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, ...
2.279835
486
import os import RPi.GPIO as gpio import time from mesafe import distance motorhizi = 1 aci2 = aci3 = aci4 = 6 aci = 5.5 in4 = 26 in3 = 4 in2 = 12 in1 = 8 solled = 9 sagled = 11 gpio.setwarnings(False) print (" ") print ("otonomgorev yazilimi google speech api sesli komutlari ile robotun otonom hareket e...
[ 11748, 28686, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 27809, 952, 198, 11748, 640, 198, 6738, 18842, 8635, 1330, 5253, 198, 198, 76, 20965, 71, 528, 72, 796, 352, 198, 198, 32009, 17, 796, 936, 72, 18, 796, 936, 72, 19, 796, ...
2.100503
199
from sqlalchemy.sql import func from sqlalchemy import Column, BigInteger, String, DateTime, Boolean from .model import database
[ 6738, 44161, 282, 26599, 13, 25410, 1330, 25439, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 4403, 46541, 11, 10903, 11, 7536, 7575, 11, 41146, 198, 198, 6738, 764, 19849, 1330, 6831 ]
4.03125
32
#!/usr/bin/env python """ timer.py: Implementation of a CPU timer that is used as a part of stopping criteria. """ import time def _time(): """ Convenience function that returns current process time as milliseconds. """ return time.process_time() * 1000
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 45016, 13, 9078, 25, 198, 198, 3546, 32851, 286, 257, 9135, 19781, 326, 318, 973, 355, 257, 636, 286, 12225, 9987, 13, 198, 37811, 198, 198, 11748, 640, 628, 198, 42...
3.209302
86
import argparse import os from glob import glob from pathlib import Path import imageio import h5py import pandas as pd from bioimageio.core import load_resource_description from bioimageio.core.prediction import predict_with_padding from bioimageio.core.prediction_pipeline import create_prediction_pipeline from elf....
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 15095, 1330, 15095, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 2939, 952, 198, 11748, 289, 20, 9078, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 13401, 9060, 952, 13,...
2.891129
248
from .bar import value
[ 6738, 764, 5657, 1330, 1988, 198 ]
3.833333
6
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== import requests from ..settings import USER_AGENT from ..settings import REQUEST_TIMEOUT # Functions & classes =========================================...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 4225, 3866, 353, 2196, 25, 21015, 362, 13, 22, 198, 2, 198, 2, 1846, 3742, 38093, 1421, 198, 11748, ...
2.841912
272
#!/usr/bin/env python2.7 from __future__ import print_function import json import sys import numpy as np import os.path import time from math import ceil import argparse import nbt from util import blif, cell, cell_library from placer import placer from router import router, extractor, minetime from vis import png ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 13, 6978, 198, 11748, ...
2.688857
2,764
import logging import logging.handlers import time logger = logging.getLogger(__name__) handler = logging.handlers.SocketHandler('localhost', 9033) stream = logging.StreamHandler() logger.addHandler(handler) logger.addHandler(stream) while True: logger.warning('ping') time.sleep(.001)
[ 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 198, 11748, 640, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 30281, 796, 18931, 13, 4993, 8116, 13, 39105, 25060, 10786, 36750, 3256, 4101, 2091, ...
3.115789
95
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from argparse import ArgumentParser from collections import OrderedDict import jinja2 import csv import sys import os.path import re if __name__ == "__main__": args = cmd_options() build_templates(args)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 17268, 1330, 14230,...
2.911765
102
import yaml import os import sys import time import numpy as np import cv2 as cv from franka.FrankaController import FrankaController if __name__ == '__main__': ROOT = os.path.dirname(os.path.abspath(__file__)) sys.path.append(ROOT) cfg = read_cfg(ROOT + '/config/grasping _colorseg.yaml') arm = Fr...
[ 11748, 331, 43695, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 355, 269, 85, 198, 198, 6738, 14346, 64, 13, 6732, 15927, 22130, 1330, 5278, 64, 22130, 198, 1...
2.169791
907
import cherrypy import sesame from database import create_database DATABASE = create_database({'System':'sqlite', 'Database':'testy.db'}) SERVER = None CHERRYPY_CONFIG = { 'server.socket_host': '127.0.0.1', 'server.socket_port': 8080, 'tools.auth_basic.on': True, 'tools.auth_basic.realm': '127.0.0.1',...
[ 11748, 23612, 9078, 198, 11748, 264, 34038, 198, 6738, 6831, 1330, 2251, 62, 48806, 198, 198, 35, 1404, 6242, 11159, 796, 2251, 62, 48806, 15090, 6, 11964, 10354, 6, 25410, 578, 3256, 705, 38105, 10354, 6, 9288, 88, 13, 9945, 6, 30072...
2.569712
416
from nltk.tag import StanfordNERTagger import pandas as pd from sklearn.metrics import f1_score, confusion_matrix from loader import Load train, test = Load('c') ner = StanfordNERTagger('./stanford-ner-2018-10-16/classifiers/english.all.3class.distsim.crf.ser.gz', './stanford-ner-2018-10-16/stanford-ner.jar') data ...
[ 6738, 299, 2528, 74, 13, 12985, 1330, 13863, 45, 17395, 7928, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 11, 10802, 62, 6759, 8609, 198, 198, 6738, 40213, 1330, 8778, 198, ...
2.305994
317
""" ==================================================================================== A Rete Network Building and 'Evaluation' Implementation for RDFLib Graphs of Notation 3 rules. The DLP implementation uses this network to automatically building RETE decision trees for OWL forms of DLP Uses Python hashing mechan...
[ 37811, 198, 23926, 4770, 1421, 198, 32, 4990, 68, 7311, 11819, 290, 705, 36, 2100, 2288, 6, 46333, 329, 31475, 3697, 571, 29681, 82, 286, 198, 3673, 341, 513, 3173, 13, 198, 198, 464, 360, 19930, 7822, 3544, 428, 3127, 284, 6338, 26...
2.448966
1,499
from gcpy.functions.CloudFunction import CloudFunctionTrigger, CloudFunction from gcpy.utils.binary import binary_decode
[ 6738, 308, 66, 9078, 13, 12543, 2733, 13, 18839, 22203, 1330, 10130, 22203, 48344, 11, 10130, 22203, 198, 6738, 308, 66, 9078, 13, 26791, 13, 39491, 1330, 13934, 62, 12501, 1098, 628, 198 ]
3.727273
33
''' Unlike a RESTful API, there is only a single URL from which GraphQL is accessed. We are going to use Flask to create a server that expose the GraphQL schema under /graphql and a interface for querying it easily: GraphiQL (also under /graphql when accessed by a browser). ''' from flask import Flask from flask_graph...
[ 7061, 6, 198, 18521, 257, 30617, 913, 7824, 11, 612, 318, 691, 257, 2060, 10289, 422, 543, 29681, 9711, 318, 17535, 13, 198, 198, 1135, 389, 1016, 284, 779, 46947, 284, 2251, 257, 4382, 326, 15651, 262, 29681, 9711, 32815, 739, 1220, ...
2.957983
238
# # Complete the 'reverseShuffleMerge' function below. # # The function is expected to return a STRING. # The function accepts STRING s as parameter. # import os from collections import defaultdict if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result...
[ 2, 201, 198, 2, 13248, 262, 705, 50188, 2484, 18137, 13102, 469, 6, 2163, 2174, 13, 201, 198, 2, 201, 198, 2, 383, 2163, 318, 2938, 284, 1441, 257, 19269, 2751, 13, 201, 198, 2, 383, 2163, 18178, 19269, 2751, 264, 355, 11507, 13, ...
2.522293
157
""" This class searches for data in a hierarchy of folders and sorts them in a list. Attributes to the data are: path: path to the raw data file type: whether from Picarro, DropSense sensors. data: the data set after reading with the modules: read_dropsense ...
[ 37811, 198, 220, 220, 220, 770, 1398, 15455, 329, 1366, 287, 257, 18911, 286, 24512, 290, 10524, 198, 220, 220, 220, 606, 287, 257, 1351, 13, 198, 220, 220, 220, 49213, 284, 262, 1366, 389, 25, 198, 220, 220, 220, 220, 220, 220, 2...
2.637168
226
#!/usr/bin/python import sys import json import urllib2 import collections url = "http://192.168.122.1:8080/sony/" camera_url = url+"camera" avContent_url = url+"avContent" command_line_call()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 17, 198, 11748, 17268, 198, 198, 6371, 796, 366, 4023, 1378, 17477, 13, 14656, 13, 18376, 13, 16, 25, 1795, 1795, 14, 1559, ...
2.359551
89
import os from waflib import Context, Errors # pylint:disable=import-error
[ 11748, 28686, 198, 6738, 266, 1878, 8019, 1330, 30532, 11, 44225, 1303, 279, 2645, 600, 25, 40223, 28, 11748, 12, 18224, 198 ]
3.409091
22
import sys import re import requests import requests.cookies from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from time import sleep from GlobalVariables import *
[ 11748, 25064, 198, 11748, 302, 198, 11748, 7007, 198, 11748, 7007, 13, 27916, 444, 198, 6738, 7007, 13, 43789, 13, 333, 297, 571, 18, 13, 1069, 11755, 1330, 554, 22390, 18453, 20361, 198, 8897, 3558, 13, 43789, 13, 333, 297, 571, 18, ...
3.876923
65
import pytest from pytest_httpbin.plugin import httpbin_ca_bundle pytest.fixture(autouse=True)(httpbin_ca_bundle)
[ 11748, 12972, 9288, 198, 198, 6738, 12972, 9288, 62, 4023, 8800, 13, 33803, 1330, 2638, 8800, 62, 6888, 62, 65, 31249, 198, 9078, 9288, 13, 69, 9602, 7, 2306, 1076, 28, 17821, 5769, 4023, 8800, 62, 6888, 62, 65, 31249, 8, 198 ]
2.738095
42
from unittest import mock
[ 6738, 555, 715, 395, 1330, 15290, 628 ]
3.857143
7
"""Util functions""" from .vis_utils import visualizer from .save_model import save_model from .Util import checkParams, checkSize, test
[ 37811, 18274, 346, 5499, 37811, 198, 198, 6738, 764, 4703, 62, 26791, 1330, 5874, 7509, 198, 6738, 764, 21928, 62, 19849, 1330, 3613, 62, 19849, 198, 6738, 764, 18274, 346, 1330, 2198, 10044, 4105, 11, 2198, 10699, 11, 1332, 198 ]
3.45
40
import io import os from collections import OrderedDict import imageio import numpy as np from au import conf from au.util import create_log from au import util ## ## Images ## # @property # def label_bytes(self): # if self._label_bytes is '': # # Read lazily # if self._cached_label_arr is not '...
[ 11748, 33245, 198, 11748, 28686, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 2939, 952, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 35851, 1330, 1013, 198, 6738, 35851, 13, 22602, 1330, 2251, 62, 6404, 198, 67...
2.279934
1,211
import re title_regex = r'<title>([^<>]*)<\/title>' info = input() title = re.findall(title_regex, info) title = ''.join(title) print(f"Title: {title}") body_regex = r'<body>.*<\/body>' body = re.findall(body_regex, info) body = ''.join(body) content_regex = r">([^><]*)<" content = re.findall(content_regex, bod...
[ 11748, 302, 198, 198, 7839, 62, 260, 25636, 796, 374, 6, 27, 7839, 29, 26933, 61, 27, 37981, 28104, 27, 11139, 7839, 29, 6, 198, 198, 10951, 796, 5128, 3419, 198, 198, 7839, 796, 302, 13, 19796, 439, 7, 7839, 62, 260, 25636, 11, ...
2.369318
176
import random
[ 11748, 4738, 628 ]
5
3
# Testing various methods to graph with matplotlib # Developed by Nathan Shepherd import numpy as np import matplotlib.pyplot as plt n = 100 y = [round(np.random.normal(scale=n/10)) for _ in range(n)] x = [i for i in range(-n, n)] _y = [] for i in range(-n, n): _y.append(y.count(i)) plt.plot(x, _y) plt.show()
[ 2, 23983, 2972, 5050, 284, 4823, 351, 2603, 29487, 8019, 198, 2, 6013, 276, 416, 18106, 30890, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 77, 796, 1802, 198, 88, ...
2.461538
130
import sys from Bio import Entrez from collections import Counter import pandas as pd ########################################### ############################################### ###############################################
[ 11748, 25064, 198, 6738, 16024, 1330, 7232, 21107, 198, 6738, 17268, 1330, 15034, 198, 11748, 19798, 292, 355, 279, 67, 198, 29113, 7804, 21017, 198, 29113, 7804, 4242, 21017, 198, 29113, 7804, 4242, 21017, 628 ]
6.485714
35
weird_board = [['_'] * 3] *3 print(weird_board) weird_board[0][2] = 'X' print(weird_board)
[ 732, 1447, 62, 3526, 796, 16410, 6, 62, 20520, 1635, 513, 60, 1635, 18, 198, 4798, 7, 732, 1447, 62, 3526, 8, 198, 198, 732, 1447, 62, 3526, 58, 15, 7131, 17, 60, 796, 705, 55, 6, 198, 4798, 7, 732, 1447, 62, 3526, 8 ]
2.022222
45
''' Author: Eric P. Nichols Date: Feb 8, 2008. Board class. Board data: 1=white, -1=black, 0=empty first dim is column , 2nd is row: pieces[1][7] is the square in column 2, at the opposite end of the board in row 8. Squares are stored and manipulated as (x,y) tuples. x is the column, y is the row. ''' imp...
[ 7061, 6, 198, 13838, 25, 7651, 350, 13, 38403, 198, 10430, 25, 3158, 807, 11, 3648, 13, 198, 29828, 1398, 13, 198, 29828, 1366, 25, 198, 220, 352, 28, 11186, 11, 532, 16, 28, 13424, 11, 657, 28, 28920, 198, 220, 717, 5391, 318, ...
2.747967
123