content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-29 07:54 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, 2919, 12, 1959, 8753, 25, 4051, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import io import logging import mock import mocks import monitor import re import time import unittest if __name__ == '__main__': unittest.main()
[ 11748, 33245, 198, 11748, 18931, 198, 11748, 15290, 198, 11748, 285, 3320, 198, 11748, 5671, 198, 11748, 302, 198, 11748, 640, 198, 11748, 555, 715, 395, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198,...
3.122449
49
import os import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline as ius from scipy import integrate import george from george import kernels
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 4225, 16104, 515, 3118, 42524, 26568, 500, 355, 1312, 385, 198, 6738, 629, 541, 88, 1330, 19386, 198, 11748, 4903, 3643, 198, 6738, ...
3.531915
47
import geopandas as gpd import rasterio as rio from shapely.geometry import box import matplotlib.pyplot as plt from descartes import PolygonPatch from application_logger import logghandler logger=logghandler('test','Geo_log') user_logger= logger.get_logger("DEBUG") if __name__=="__main__": plotter_obj= Plot...
[ 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 374, 1603, 952, 355, 374, 952, 198, 6738, 5485, 306, 13, 469, 15748, 1330, 3091, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1715, 433, 274, 1330, 12280,...
2.662577
163
import pandas as pd from finnhub_python.utils import RequestCache class FinnHubOptionChain(RequestCache): """ Wrapper class for option chain data returned by FinnHubs api. """ @property @property @property @property def get_calls(self, expiry): """ Get a dataf...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 957, 77, 40140, 62, 29412, 13, 26791, 1330, 19390, 30562, 628, 198, 4871, 15368, 16066, 19722, 35491, 7, 18453, 30562, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27323, 2848, ...
2.189509
591
# Stub models file from dimagi.ext.couchdbkit import Document
[ 2, 41135, 4981, 2393, 198, 6738, 5391, 18013, 13, 2302, 13, 66, 7673, 9945, 15813, 1330, 16854, 198 ]
3.444444
18
from django.utils.translation import ugettext_lazy as _ from django import forms from protocols.models import Step,Protocol,OperateStep,ThermocycleStep,Input,Output
[ 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 19565, 13, 27530, 1330, 5012, 11, 19703, 4668, 11, 18843, 378, 8600, 11, 35048, 76, 1...
3.408163
49
import requests import re url="http://zyk.bjhd.gov.cn/zwdt/hdyw/" headers={ 'Referer':'http://zyk.bjhd.gov.cn/zwdt/hdyw/', 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; LCTE; rv:11.0) like Gecko' } response=requests.get(url) response.encoding='utf-8' # r=respose.t...
[ 11748, 7007, 198, 11748, 302, 198, 6371, 2625, 4023, 1378, 46355, 13, 50007, 31298, 13, 9567, 13, 31522, 14, 89, 16993, 83, 14, 71, 9892, 86, 30487, 198, 50145, 34758, 220, 198, 220, 220, 220, 220, 220, 220, 220, 705, 8134, 11882, 1...
1.977337
353
import tensorflow as tf import numpy as np from tensorflow.keras import Model, Sequential from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.layers import (Dense, Conv1D, Embedding, UpSampling1D, AveragePooling1D, AveragePooling2D, GlobalAveragePooling2D, Activation, LayerNormalization, Dropou...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 9104, 11, 24604, 1843, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 1324, 677, 602, 1330, 12173, 7934, 53, ...
3.184332
217
# coding: utf-8 # import pytest import numpy as np import os from sympde.topology import Domain, Line, Square, Cube from psydac.cad.geometry import Geometry, export_nurbs_to_hdf5, refine_nurbs from psydac.cad.geometry import import_geopdes_to_nurbs from psydac.cad.cad import e...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 6738, 10558, 2934, 13, 4852, 1435, 1330, 20021, 11, 6910, 11, 9276, 11, 23315, 198, 198, 6738, 17331, ...
3.136042
566
import numpy as np import matplotlib.pyplot as plt from sklearn import preprocessing from skimage.feature import local_binary_pattern #from skimage import io from sklearn.cross_validation import train_test_split from sklearn.metrics import accuracy_score from sklearn.linear_model import LogisticRegression from sklear...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 1330, 662, 36948, 198, 198, 6738, 1341, 9060, 13, 30053, 1330, 1957, 62, 39491, 62, 33279, 198, 2, 6738, 1341, 9060, ...
2.204615
650
# coding: utf-8 # Import dos módulos necessários e declaração de constantes # --- # In[1]: import numpy as np import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from sklearn import metric...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 17267, 23430, 285, 10205, 67, 377, 418, 2418, 6557, 380, 418, 304, 2377, 3301, 16175, 28749, 390, 6937, 274, 198, 2, 11420, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 299, ...
2.391496
1,811
from boa3.builtin import contract @contract('0x0102030405060708090A0B0C0D0E0F1011121314')
[ 6738, 1489, 64, 18, 13, 18780, 259, 1330, 2775, 628, 198, 31, 28484, 10786, 15, 87, 20943, 1238, 1270, 1821, 1120, 1899, 2154, 1795, 3829, 32, 15, 33, 15, 34, 15, 35, 15, 36, 15, 37, 8784, 14686, 1485, 1415, 11537, 198 ]
2.190476
42
from pymongo import MongoClient from umongo import Instance from umongo import Document, EmbeddedDocument from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm.session import sessionmaker, Session from .standard_logger import Logger from .consts import *
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 23781, 25162, 1330, 2262, 590, 198, 6738, 23781, 25162, 1330, 16854, 11, 13302, 47238, 24941, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, ...
3.736842
76
#!/usr/bin/python # # Pickle deserialization RCE payload. # To be invoked with command to execute at it's first parameter. # Otherwise, the default one will be used. # import pickle with open('rce.png', 'rb') as inF: pickle.load(inF)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 12346, 293, 748, 48499, 1634, 371, 5222, 21437, 13, 198, 2, 1675, 307, 24399, 351, 3141, 284, 12260, 379, 340, 338, 717, 11507, 13, 198, 2, 15323, 11, 262, 4277, 530, 481, 307,...
2.891566
83
''' Created on Feb 1, 2014 @author: efarhan ''' from engine.const import log from engine.init import engine from render_engine.input import input_manager from engine.vector import Vector2 from input.mouse_input import get_mouse, show_mouse from game_object.game_object_main import GameObject from game_obje...
[ 7061, 6, 201, 198, 41972, 319, 3158, 352, 11, 1946, 201, 198, 201, 198, 31, 9800, 25, 304, 16370, 7637, 201, 198, 7061, 6, 201, 198, 201, 198, 6738, 3113, 13, 9979, 1330, 2604, 201, 198, 6738, 3113, 13, 15003, 1330, 3113, 201, 198...
3.214876
121
##################################################### # Copyright (c) 2014 Diogo Barradas # # # # See the file LICENSE.txt for copying permission. # ##################################################### #!/usr/bin/env python import argparse import sys...
[ 29113, 14468, 4242, 2, 198, 2, 15069, 357, 66, 8, 1946, 6031, 24076, 2409, 6335, 292, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.787589
419
from argparse import ArgumentParser
[ 6738, 1822, 29572, 1330, 45751, 46677, 628, 198 ]
4.75
8
from execicio110 import moedas from time import sleep p = float(input('Digite um preço: R$ ')) #1º preço /2º aumenta / 3º diminui moedas.resumo(p,10, 20)
[ 6738, 2452, 46441, 11442, 1330, 6941, 276, 292, 198, 6738, 640, 1330, 3993, 198, 198, 79, 796, 12178, 7, 15414, 10786, 19511, 578, 23781, 662, 16175, 78, 25, 371, 3, 705, 4008, 198, 2, 16, 36165, 662, 16175, 78, 1220, 17, 36165, 257...
2.384615
65
#!/usr/bin/python # Filename: autopatch.py ### File Information ### """ Patch the files automatically based on the autopatch.xsd. Usage: $shell autopatch.py [PATCH_XML] - PATCH_XML : The patch XML definition. Default to be bringup.xml """ __author__ = 'duanqizhi01@baidu.com (duanqz)' import os.path i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 7066, 12453, 25, 22320, 963, 13, 9078, 198, 198, 21017, 9220, 6188, 44386, 198, 37811, 198, 33952, 262, 3696, 6338, 1912, 319, 262, 22320, 963, 13, 87, 21282, 13, 198, 198, 28350, 25, 72...
2.341757
1,662
import discord from discord.ext import commands import random, asyncio, aiohttp, datetime
[ 11748, 36446, 201, 198, 6738, 36446, 13, 2302, 1330, 9729, 201, 198, 11748, 4738, 11, 30351, 952, 11, 257, 952, 4023, 11, 4818, 8079, 201 ]
3.68
25
""" Main program to run the detection """ from argparse import ArgumentParser import cv2 import mediapipe as mp import numpy as np # for TCP connection with unity import socket from collections import deque from platform import system # face detection and facial landmark from facial_landmark import Fa...
[ 37811, 201, 198, 13383, 1430, 284, 1057, 262, 13326, 201, 198, 37811, 201, 198, 201, 198, 6738, 1822, 29572, 1330, 45751, 46677, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 16957, 499, 3757, 355, 29034, 201, 198, 11748, 299, 32152, ...
2.576471
510
#!/bin/env python from __future__ import print_function import sys fileName = sys.argv[1] f = open(fileName,'r') messageToIgnore = [ 'edm::FunctorTask' ,'edm::FunctorWaitingTask' ,'edm::ModuleCallingContext::setContext' ,'edm::SerialTaskQueue::' ,'edm::SerialTaskQueueChain::' ,'edm::WaitingTa...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 198, 7753, 5376, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 198, 69, 796, 1280, 7, 7753, 5376, 4032, 81, 11537, 198, 198, ...
2.265603
4,198
# P003 # The prime factors of 13_195 are 5, 7, 13, and 29 # What is the largest prime factor of the number 600_851_475_143 import math from sympy import isprime if __name__ == "__main__": main()
[ 2, 350, 11245, 198, 2, 383, 6994, 5087, 286, 1511, 62, 22186, 389, 642, 11, 767, 11, 1511, 11, 290, 2808, 198, 2, 1867, 318, 262, 4387, 6994, 5766, 286, 262, 1271, 10053, 62, 23, 4349, 62, 32576, 62, 21139, 198, 11748, 10688, 198,...
2.885714
70
#!/usr/bin/env python3 import os import argparse import pandas as pd if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 198, 11748, 19798, 292, 355, 279, 67, 628, 628, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, ...
2.166667
60
"""This module contains functions that belong to multiple categories. For example, concat can be used to concat strings, varbinary, arrays, etc. """ import functools from typing import Any, ClassVar, List, Type import attr from treeno.base import PrintOptions from treeno.datatypes import types as type_consts from tre...
[ 37811, 1212, 8265, 4909, 5499, 326, 5594, 284, 3294, 9376, 13, 1114, 1672, 11, 198, 1102, 9246, 460, 307, 973, 284, 1673, 265, 13042, 11, 1401, 39491, 11, 26515, 11, 3503, 13, 198, 37811, 198, 11748, 1257, 310, 10141, 198, 6738, 19720...
2.964706
255
import os from tests.poc.context_example.exception import ExampleError
[ 11748, 28686, 198, 198, 6738, 5254, 13, 79, 420, 13, 22866, 62, 20688, 13, 1069, 4516, 1330, 17934, 12331, 628 ]
3.65
20
"""Used to classify if certain strings are words or contain words""" # used to eliminate non whitespace separators import re import sqlite3 import os def load_words(): """Loads the words document into a set""" with open('cryptoline_modules/words.txt') as word_file: valid_words = set(word_file.read().l...
[ 37811, 38052, 284, 36509, 611, 1728, 13042, 389, 2456, 393, 3994, 2456, 37811, 198, 2, 973, 284, 11005, 1729, 13216, 10223, 2880, 2024, 198, 11748, 302, 198, 11748, 44161, 578, 18, 198, 11748, 28686, 628, 198, 4299, 3440, 62, 10879, 335...
2.785436
769
"""Testing the StringEnum class.""" import ezenum as eze def test_basic(): """Just check it out.""" rgb = eze.StringEnum(['Red', 'Green', 'Blue']) assert rgb.Red == 'Red' assert rgb.Green == 'Green' assert rgb.Blue == 'Blue' assert rgb[0] == 'Red' assert rgb[1] == 'Green' assert rgb[2...
[ 37811, 44154, 262, 10903, 4834, 388, 1398, 526, 15931, 198, 198, 11748, 304, 4801, 388, 355, 304, 2736, 628, 198, 4299, 1332, 62, 35487, 33529, 198, 220, 220, 220, 37227, 5703, 2198, 340, 503, 526, 15931, 198, 220, 220, 220, 46140, 79...
2.414201
169
from __future__ import annotations import yaml from importlib.resources import read_text from ...config.configuration import Metric, MetricConfiguration from ...config.junos import JunosMetricConfiguration from ...devices import junosdevice from .. import junos from ..base import Collector from . import base
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 331, 43695, 198, 6738, 1330, 8019, 13, 37540, 1330, 1100, 62, 5239, 198, 198, 6738, 2644, 11250, 13, 11250, 3924, 1330, 3395, 1173, 11, 3395, 1173, 38149, 198, 6738, 2644, 11250, 13...
4.173333
75
# -*- coding: utf-8 -*- # Copyright (c) 2013, Sergio Callegari # All rights reserved. # This file is part of PyDSM. # PyDSM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 2211, 11, 36759, 2199, 1455, 2743, 198, 2, 1439, 2489, 10395, 13, 198, 198, 2, 770, 2393, 318, 636, 286, 9485, 5258, 44, 13, 198, 198, 2...
2.668518
4,501
import logging import sys from pyzabbix import ZabbixMetric, ZabbixSender from mongodb_consistent_backup.Errors import NotifyError, OperationError from mongodb_consistent_backup.Pipeline import Task
[ 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 12972, 89, 6485, 844, 1330, 1168, 6485, 844, 9171, 1173, 11, 1168, 6485, 844, 50, 2194, 198, 198, 6738, 285, 506, 375, 65, 62, 5936, 7609, 62, 1891, 929, 13, 9139, 5965, 1330, 1892, 1...
3.060606
66
import pickle import os from detectron2.utils.file_io import PathManager from detectron2.checkpoint import DetectionCheckpointer from mmcv.runner.checkpoint import ( _load_checkpoint, load_state_dict, _process_mmcls_checkpoint, ) import math import logging from timm.models.helpers import load_state_dict_fro...
[ 11748, 2298, 293, 198, 11748, 28686, 198, 6738, 4886, 1313, 17, 13, 26791, 13, 7753, 62, 952, 1330, 10644, 13511, 198, 6738, 4886, 1313, 17, 13, 9122, 4122, 1330, 46254, 9787, 29536, 198, 6738, 8085, 33967, 13, 16737, 13, 9122, 4122, ...
2.339913
2,077
import os.path import time from array import LoxArray from instance import Instance from lox_callable import Callable from lox_class import LoxClass from exception import NativeException
[ 11748, 28686, 13, 6978, 198, 11748, 640, 198, 198, 6738, 7177, 1330, 406, 1140, 19182, 198, 6738, 4554, 1330, 2262, 590, 198, 6738, 300, 1140, 62, 13345, 540, 1330, 4889, 540, 198, 6738, 300, 1140, 62, 4871, 1330, 406, 1140, 9487, 198...
3.788462
52
import ast from typing import Iterable, List, Tuple, Type, TypeVar from .exceptions import EmptyBlock from .helpers import filter_arrange_nodes, get_first_token, get_last_token from .types import LineType _Block = TypeVar('_Block', bound='Block') class Block: """ An Arrange, Act or Assert block of code as p...
[ 11748, 6468, 198, 6738, 19720, 1330, 40806, 540, 11, 7343, 11, 309, 29291, 11, 5994, 11, 5994, 19852, 198, 198, 6738, 764, 1069, 11755, 1330, 33523, 12235, 198, 6738, 764, 16794, 364, 1330, 8106, 62, 3258, 858, 62, 77, 4147, 11, 651, ...
2.419463
894
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Logging module to be used by all scripts. cros_logging is a wrapper around logging with additional support for NOTICE level. This is to be used instea...
[ 2, 15069, 1853, 383, 18255, 1505, 7294, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198,...
3.339408
878
# encoding: utf-8 from time import strptime __author__ = "Patrick Lampe" __email__ = "uni at lampep.de"
[ 2, 21004, 25, 3384, 69, 12, 23, 628, 198, 6738, 640, 1330, 965, 457, 524, 198, 198, 834, 9800, 834, 796, 366, 32718, 10923, 431, 1, 198, 834, 12888, 834, 796, 366, 35657, 379, 30592, 431, 79, 13, 2934, 1, 628 ]
2.634146
41
#!/usr/bin/env python3 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2013 California Institute of Technology. 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 27156, 27156, 27156, 27156, 15116, 8728, 4907, 93, 198, 2, 15069, 2211, 3442, 5136, 286, 8987, 13, 11096, 371, 34874, 15731, 1137, 53, 1961, 13, 198, 2, 220, 198, 2, 4996...
2.366071
1,344
#@+leo-ver=5-thin #@+node:ekr.20140726091031.18143: * @file writers/basewriter.py '''A module defining the base class for all writers in leo.plugins.writers.''' class BaseWriter: '''The base writer class for all writers in leo.plugins.writers.''' def __init__(self, c): '''Ctor for leo.plugins.writers....
[ 2, 31, 10, 293, 78, 12, 332, 28, 20, 12, 40871, 198, 2, 31, 10, 17440, 25, 988, 81, 13, 1264, 1821, 4761, 31751, 940, 3132, 13, 1507, 21139, 25, 1635, 2488, 7753, 8786, 14, 12093, 413, 43407, 13, 9078, 198, 7061, 6, 32, 8265, ...
2.02371
717
from pathlib import Path from osgeo import ogr, gdal import os import geopandas as pd from geopandas._vectorized import simplify import rasterio from rasterstats import zonal_stats import time import shutil def intersection(ShpA, ShpB, fname): """ This function is used to get the intersection between shapefil...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 28686, 469, 78, 1330, 267, 2164, 11, 308, 31748, 198, 11748, 28686, 198, 11748, 30324, 392, 292, 355, 279, 67, 198, 6738, 30324, 392, 292, 13557, 31364, 1143, 1330, 30276, 198, 11748, 374, 1603,...
2.211545
5,838
from memoized import memoized from custom.inddex import filters from custom.inddex.ucr.data_providers.nutrient_intakes_data import ( NutrientIntakesByFoodData, NutrientIntakesByRespondentData, ) from custom.inddex.utils import MultiTabularReport
[ 6738, 16155, 1143, 1330, 16155, 1143, 198, 198, 6738, 2183, 13, 521, 67, 1069, 1330, 16628, 198, 6738, 2183, 13, 521, 67, 1069, 13, 1229, 81, 13, 7890, 62, 15234, 4157, 13, 14930, 8289, 62, 600, 1124, 62, 7890, 1330, 357, 198, 220, ...
3.047619
84
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the minifold project. # https://github.com/nokia/minifold __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "marc-olivier.buob@nokia-bell-labs.com" __copyright__ = "Copyright (C) 2018, Nokia" __license__ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 262, 949, 361, 727, 1628, 13, 198, 2, 3740, 1378, 12567, 13, 785, 14, 77...
2.330553
959
import streamlit as st import pandas as pd import numpy as np #Pour la modélisation from sklearn import preprocessing from sklearn.preprocessing import PolynomialFeatures from sklearn.model_selection import train_test_split , cross_val_score, GridSearchCV from sklearn.metrics import mean_squared_error, f1_score from s...
[ 11748, 4269, 18250, 355, 336, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 47, 454, 8591, 953, 2634, 75, 5612, 198, 6738, 1341, 35720, 1330, 662, 36948, 198, 6738, 1341, 35720, 13, 3866, 36948...
3.150342
439
from django.core.paginator import Paginator, PageNotAnInteger, InvalidPage, EmptyPage from django.http import HttpResponse from django.shortcuts import render from .models import Tweets # Create your views here.
[ 6738, 42625, 14208, 13, 7295, 13, 79, 363, 20900, 1330, 31525, 20900, 11, 7873, 3673, 2025, 46541, 11, 17665, 9876, 11, 33523, 9876, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 201, 198, 6738, 42625, 14208, 13, 1950...
3.279412
68
from spook.base import SpookBase from spook.lin_solve import SpookLinSolve from spook.quad_program import SpookPosL1,SpookPosL2,SpookL1 import spook.utils as utils # from spook.vmi_special import PhotonFreqResVMI
[ 6738, 599, 566, 13, 8692, 1330, 1338, 566, 14881, 198, 6738, 599, 566, 13, 2815, 62, 82, 6442, 1330, 1338, 566, 14993, 50, 6442, 198, 6738, 599, 566, 13, 47003, 62, 23065, 1330, 1338, 566, 21604, 43, 16, 11, 4561, 566, 21604, 43, ...
2.789474
76
from tkinter import Frame from .mixins import WidgetMixin, ContainerMixin from .tkmixins import ScheduleMixin, DestroyMixin, FocusMixin, DisplayMixin, ColorMixin, ReprMixin from . import utilities as utils
[ 6738, 256, 74, 3849, 1330, 25184, 198, 6738, 764, 19816, 1040, 1330, 370, 17484, 35608, 259, 11, 43101, 35608, 259, 198, 6738, 764, 83, 13276, 844, 1040, 1330, 19281, 35608, 259, 11, 19448, 35608, 259, 11, 17061, 35608, 259, 11, 16531, ...
3.377049
61
# # Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch> # """Provide utilities for training attention sampling models.""" from keras.utils import Sequence import numpy as np class Batcher(Sequence): """Assemble a sequence of thing...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 5121, 72, 499, 4992, 5136, 11, 2638, 1378, 2503, 13, 19830, 499, 13, 354, 14, 198, 2, 22503, 416, 3905, 418, 18341, 283, 20338, 1279, 8368, 418, 13, 74, 776, 283, 20338, 31, 19830, 499, 13, 3...
2.977707
314
import frappe
[ 11748, 5306, 27768 ]
4.333333
3
from couchdbkit import ResourceNotFound from dimagi.utils.couch.database import get_db from dimagi.utils.couch.undo import DELETED_SUFFIX from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from dimagi.ext.jsonobject import * from corehq.apps.users.models import CouchUser fro...
[ 6738, 18507, 9945, 15813, 1330, 20857, 3673, 21077, 198, 6738, 5391, 18013, 13, 26791, 13, 66, 7673, 13, 48806, 1330, 651, 62, 9945, 198, 6738, 5391, 18013, 13, 26791, 13, 66, 7673, 13, 41204, 1330, 5550, 28882, 1961, 62, 12564, 5777, ...
1.980237
3,036
import argparse import sys # import assemble import disassemble import sutil parser = argparse.ArgumentParser( description='The Lida assembler service for Lua', allow_abbrev=True ) # Argument groups action = parser.add_mutually_exclusive_group() g_assembler = parser.add_argument_group('assembler') g_disassembler...
[ 11748, 1822, 29572, 198, 11748, 25064, 198, 198, 2, 1330, 25432, 198, 11748, 595, 292, 15140, 198, 11748, 264, 22602, 628, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 198, 197, 11213, 11639, 464, 406, 3755, 11156, 1754...
2.823138
752
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent import pytest from pants.backend.go.target_types import GoModTarget, GoPackageTarget from pants.backend.go.util_rules impo...
[ 2, 15069, 33448, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, ...
3.217617
193
# @Rexhino_Kovaci # This is an extra exercises that I challenged myself with on Google Kickstart 2020 during the online sessions # This algorithm takes user input and compare the left and right subtree # this would allow us to maintain a sorted list of numbers # this program would check if the tree is balanced between ...
[ 2, 2488, 47389, 71, 2879, 62, 42, 709, 32009, 198, 2, 770, 318, 281, 3131, 13565, 326, 314, 12827, 3589, 351, 319, 3012, 10279, 9688, 12131, 1141, 262, 2691, 10991, 198, 2, 770, 11862, 2753, 2836, 5128, 290, 8996, 262, 1364, 290, 82...
4.304348
115
# coding: utf8 """ This file contains a set of functional tests designed to check the correct execution of the pipeline and the different functions available in Clinica """ import warnings from os import pardir from test.nonregression.testing_tools import * # Determine location for working_directory warnings.filterw...
[ 2, 19617, 25, 3384, 69, 23, 198, 198, 37811, 198, 1212, 2393, 4909, 257, 900, 286, 10345, 5254, 3562, 284, 2198, 262, 3376, 9706, 286, 262, 11523, 290, 262, 198, 39799, 5499, 1695, 287, 11834, 3970, 198, 37811, 198, 198, 11748, 14601,...
4.034884
86
from python_qt_binding import QtCore from python_qt_binding import QtGui from python_qt_binding import QtWidgets from ..core import myutils #def config_removed(self, lpath):
[ 6738, 21015, 62, 39568, 62, 30786, 1330, 33734, 14055, 198, 6738, 21015, 62, 39568, 62, 30786, 1330, 33734, 8205, 72, 198, 6738, 21015, 62, 39568, 62, 30786, 1330, 33734, 54, 312, 11407, 198, 198, 6738, 11485, 7295, 1330, 616, 26791, 62...
3.118644
59
base_path_source = './' base_path_target = '../NC2016/' files = ['concatenated_en2de_dev_de.txt', 'concatenated_en2de_dev_en.txt', 'concatenated_en2de_test_de.txt', 'concatenated_en2de_test_en.txt', 'concatenated_en2de_train_de.txt', 'concatenated_en2de_train_en.txt'] for file_path in files: source_path = base_pa...
[ 8692, 62, 6978, 62, 10459, 796, 705, 19571, 6, 198, 8692, 62, 6978, 62, 16793, 796, 705, 40720, 7792, 5304, 14, 6, 198, 198, 16624, 796, 37250, 1102, 9246, 268, 515, 62, 268, 17, 2934, 62, 7959, 62, 2934, 13, 14116, 3256, 705, 110...
2.243243
259
import sys import os import re if __name__ == "__main__": sys.exit(main())
[ 11748, 25064, 201, 198, 11748, 28686, 201, 198, 11748, 302, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 25064, 13, 37023, 7, 12417, 28...
2.139535
43
"""Library function to build Integrate and fire model with square-pulse spike, as a hybrid system. Robert Clewley, March 2005. """ from __future__ import print_function from PyDSTool import * from time import clock # ---------------------------------------------------------------- # --------------------------...
[ 37811, 23377, 2163, 284, 1382, 15995, 4873, 290, 2046, 2746, 351, 6616, 12, 79, 9615, 198, 2777, 522, 11, 355, 257, 14554, 1080, 13, 628, 220, 220, 5199, 3779, 86, 1636, 11, 2805, 5075, 13, 198, 37811, 198, 6738, 11593, 37443, 834, ...
2.376987
1,321
# -*- coding: utf-8 -*- """ Eve Demo ~~~~~~~~ A demostration of a simple API powered by Eve REST API. The live demo is available at eve-demo.herokuapp.com. Please keep in mind that the it is running on Heroku's free tier using a free MongoHQ sandbox, which means that the first request to the ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 12882, 34588, 198, 220, 220, 220, 220, 15116, 628, 220, 220, 220, 317, 1357, 455, 1358, 286, 257, 2829, 7824, 13232, 416, 12882, 30617, ...
2.902913
206
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2019 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Jupyter Notebook previewer.""" from __future__ import absolute_import, unicode_li...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 554, 574, 952, 13, 198, 2, 15069, 357, 34, 8, 1584, 12, 23344, 327, 28778, 13, 198, 2, 198, 2, 554, 574, 952, 318, 1479, 378...
2.636364
462
#! /usr/bin/python3 import os import math from scipy.interpolate import interp1d N = 100 # number of points of approximation f1 = 'data/exp/M186/p_p0.txt' # data for curve №1 f2 = 'data/theory/M186/upper.xy' # data for curve №2 # x must be first column n1 = 2 # column for curve №1 n2 = 2 ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 28686, 198, 11748, 10688, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 987, 79, 16, 67, 198, 198, 45, 796, 1802, 197, 197, 197, 197, 197, 2, 1271, 286, 2173, 286, 4...
1.854701
1,287
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, ...
3.37037
270
# coding=UTF-8 from scout.server.app import create_app from scout.server.extensions import cloud_tracks def test_align_handler_public_tracks(igv_test_tracks): """Test The class creating cloud tracks with public tracks""" # GIVEN app config settings with a custom cloud public track config = dict(CLOUD_IGV_...
[ 2, 19617, 28, 48504, 12, 23, 198, 6738, 24490, 13, 15388, 13, 1324, 1330, 2251, 62, 1324, 198, 6738, 24490, 13, 15388, 13, 2302, 5736, 1330, 6279, 62, 46074, 628, 198, 4299, 1332, 62, 31494, 62, 30281, 62, 11377, 62, 46074, 7, 328, ...
3.204545
176
from regene.expression import Expression, Quantifier
[ 6738, 842, 1734, 13, 38011, 1330, 41986, 11, 16972, 7483, 628 ]
4.909091
11
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Microsoft Public License. A # copy of the license can be found in the License.html file at the root of this ...
[ 29113, 29113, 14468, 4242, 2, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 2426, 284, 2846, 290, 3403, 286, 262, 5413, 5094, 13789, 13, 317, 198, 2, 4866, ...
3.729223
746
# Generated by Django 2.2.6 on 2019-10-21 11:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 13130, 12, 940, 12, 2481, 1367, 25, 940, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 1420...
3.04918
61
"""Utilities Azure IoT Edge utilities. functions: is_edge: depends is edge or not inference_module_url: get inference_module_url """ import logging from azure.iot.device import IoTHubModuleClient logger = logging.getLogger(__name__) def is_edge() -> bool: """is_edge. Args: Returns: ...
[ 37811, 18274, 2410, 198, 198, 26903, 495, 38488, 13113, 20081, 13, 198, 198, 12543, 2733, 25, 198, 220, 220, 220, 318, 62, 14907, 25, 8338, 318, 5743, 393, 407, 198, 220, 220, 220, 32278, 62, 21412, 62, 6371, 25, 651, 32278, 62, 214...
2.400709
282
import smart_imports smart_imports.all()
[ 198, 11748, 4451, 62, 320, 3742, 198, 198, 27004, 62, 320, 3742, 13, 439, 3419, 628 ]
2.75
16
""" Writes strings containing the rate parameters """ # Functions to write the parameters in the correct format def troe(reaction, high_params, low_params, troe_params, colliders=(), ea_units='kcal/mol'): """ Write the string containing the Lindemann fitting parameters formatted for ChemKin input files. ...
[ 37811, 198, 20257, 274, 13042, 7268, 262, 2494, 10007, 198, 37811, 628, 198, 2, 40480, 284, 3551, 262, 10007, 287, 262, 3376, 5794, 198, 4299, 4161, 68, 7, 260, 2673, 11, 1029, 62, 37266, 11, 1877, 62, 37266, 11, 4161, 68, 62, 37266...
2.389476
5,302
""" Human Search ideal tag Is rep? Is sense? tag simplification "lizard in control of US gov" "democratics win midterms" "borders cause violence" Find Keywords Yank .txt Reliability Assessment Number of articles Qualification Compare? (John Baudrillard) """ import sys import urlli...
[ 37811, 198, 20490, 198, 220, 220, 220, 11140, 7306, 7621, 628, 220, 220, 220, 1148, 1128, 30, 1148, 2565, 30, 198, 220, 220, 220, 7621, 7106, 2649, 198, 220, 220, 220, 366, 75, 8669, 287, 1630, 286, 1294, 467, 85, 1, 366, 9536, 16...
2.976
250
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import torch from reagent.core.types import PreprocessedTrainingBatch from reagent.training.world_model.seq2reward_trainer import Seq2RewardTrainer logger = logging.getLogger(__name__)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 11748, 18931, 198, 198, 11748, 28034, 198, 6738, 302, 25781, 13, 7295, 13, 19199, 1330,...
3.322222
90
#Notebook Problem import random import time print("Save your notes here, just type what you want to store.") note1 = input("NOTE 1: ") note2 = input("NOTE 2: ") note3 = input("NOTE 3: ") note4 = input("NOTE 4: ") note5 = input("NOTE 5: ") note6 = input("NOTE 6: ") note7 = input("NOTE 7: ") note8 = input(...
[ 2, 6425, 2070, 20647, 201, 198, 11748, 4738, 201, 198, 11748, 640, 201, 198, 201, 198, 201, 198, 4798, 7203, 16928, 534, 4710, 994, 11, 655, 2099, 644, 345, 765, 284, 3650, 19570, 201, 198, 11295, 16, 796, 5128, 7203, 16580, 352, 25...
2.44
200
import discord from discord.ext import commands from urllib.parse import urlencode import random import aiohttp import secrets bot = commands.Bot(command_prefix='?') @bot.event # Retrieve query results from Wolfram Short Answer API @bot.command(aliases=['eval']) # Search Python3 Docs @bot.command...
[ 11748, 36446, 201, 198, 6738, 36446, 13, 2302, 1330, 9729, 201, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 201, 198, 11748, 4738, 201, 198, 11748, 257, 952, 4023, 201, 198, 201, 198, 11748, 13141, 201, 198, 201, 19...
2.769231
221
from requests import get from bs4 import BeautifulSoup import re from datetime import datetime, timedelta import pytz # Ad class to centralize informations #TODO Ajust this shit :/ # Get informations from pages
[ 6738, 7007, 1330, 651, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 12972, 22877, 198, 198, 2, 1215, 1398, 284, 4318, 1096, 4175, 602, 198, 198...
3.55
60
# Return the next leaf node in tree # Given a tree, if query a leaf node, return the next leaf node. If the queried node is an internal node, return whatever you want. You can define the node structure. (Not a binary tree) # Example: # a # z x # w z y o b # If I quer...
[ 2, 8229, 262, 1306, 12835, 10139, 287, 5509, 628, 198, 2, 11259, 257, 5509, 11, 611, 12405, 257, 12835, 10139, 11, 1441, 262, 1306, 12835, 10139, 13, 1002, 262, 42517, 798, 10139, 318, 281, 5387, 10139, 11, 1441, 4232, 345, 765, 13, ...
2.328267
329
""" This file has function containg main PPO algorithm called in : main.py """ import time from reply_buffer import * from eval_score_and_trace_update import * def train_model(value_model, policy_model, env, policy_optimizer, policy_optimizati...
[ 37811, 198, 220, 220, 220, 770, 2393, 468, 2163, 542, 64, 278, 1388, 350, 16402, 11862, 628, 220, 220, 220, 1444, 287, 1058, 1388, 13, 9078, 198, 37811, 198, 198, 11748, 640, 198, 198, 6738, 10971, 62, 22252, 1330, 1635, 198, 6738, ...
2.379751
2,973
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2021 Huawei Device 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 19617, 28, 40477, 12, 23, 201, 198, 201, 198, 2, 201, 198, 2, 15069, 357, 66, 8, 33448, 43208, 16232, 1766, 1539, 12052, 13, 201, 198, 2, 49962, 739, 262, 24843, 13789,...
3.108374
406
# (C) Datadog, Inc. 2010-2018 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import subprocess import os import time import pytest import mock from datadog_checks.postgres import PostgreSql from .common import HOST, PORT, USER, PASSWORD, DB_NAME HERE = os.path.dirname(os.path.abspath(__...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 3050, 12, 7908, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 45157, 1431, 347, 10305, 13789, 357, 3826, 38559, 24290, 8, 198, 11748, 850, 14681, 198, 11748, 28686, 198, 11748, 640, 198...
2.477157
591
from google import search import pprint KEYWORDS = 'duyetdev' data = [] for d in search(KEYWORDS, tld='com.vn', lang='vi', stop=10): data.append(d) print pprint.pprint(data)
[ 6738, 23645, 1330, 2989, 198, 11748, 279, 4798, 198, 198, 20373, 45359, 5258, 796, 705, 646, 25907, 7959, 6, 198, 198, 7890, 796, 17635, 198, 1640, 288, 287, 2989, 7, 20373, 45359, 5258, 11, 256, 335, 11639, 785, 13, 85, 77, 3256, 4...
2.565217
69
# import the necessary packages from imutils.video import VideoStream from imutils.video import FPS import sys import os import numpy as np import argparse import imutils import time import cv2 sys.path.append(os.path.abspath('./modules/')) import detection import helpers # construct the argument parser ...
[ 2, 1330, 262, 3306, 10392, 201, 198, 6738, 545, 26791, 13, 15588, 1330, 7623, 12124, 201, 198, 6738, 545, 26791, 13, 15588, 1330, 22082, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, ...
2.434816
2,631
import binascii import sys PY26 = sys.version_info[0] == 2 and sys.version_info[1] <= 6 if PY26: import struct class PgpdumpException(Exception): '''Base exception class raised by any parsing errors, etc.''' pass # 256 values corresponding to each possible byte CRC24_TABLE = ( 0x000000, 0x864cfb, ...
[ 11748, 9874, 292, 979, 72, 198, 11748, 25064, 198, 198, 47, 56, 2075, 796, 25064, 13, 9641, 62, 10951, 58, 15, 60, 6624, 362, 290, 25064, 13, 9641, 62, 10951, 58, 16, 60, 19841, 718, 198, 198, 361, 350, 56, 2075, 25, 198, 220, 2...
1.851538
3,186
import parser_asc as parser_asc f = open("./entrada.txt", "r") input = f.read() instrucciones = parser_asc.parse(input) print('**************** Consola: ****************') for element in parser_asc.consola: print(element) print('**************** Salida: ****************') for element in parser_asc.salida: ...
[ 11748, 30751, 62, 3372, 355, 30751, 62, 3372, 198, 198, 69, 796, 1280, 7, 1911, 14, 298, 81, 4763, 13, 14116, 1600, 366, 81, 4943, 198, 15414, 796, 277, 13, 961, 3419, 198, 220, 220, 220, 220, 198, 8625, 622, 535, 295, 274, 796, ...
3.027027
111
import pygame import pygame.locals from random import randrange, random try: pygame.init() print("O modulo pygame foi inicializado com sucesso") except: print("O modulo pygame não foi inicializado com sucesso") altura = 800 largura = 800 relogio = pygame.time.Clock() fundo = pygame.display.set_mode((alt...
[ 11748, 12972, 6057, 198, 11748, 12972, 6057, 13, 17946, 874, 198, 6738, 4738, 1330, 43720, 9521, 11, 4738, 198, 198, 28311, 25, 198, 220, 220, 220, 12972, 6057, 13, 15003, 3419, 198, 220, 220, 220, 3601, 7203, 46, 953, 43348, 12972, 6...
2.248021
379
# -*- coding: utf-8 -*- DEFAULT_TOKEN = b"ThisIsAnInsecurePublicTokenDontUseIt" DEFAULT_SALT = "Quisque vulputate nibh eros, vehicula sollicitudin neque pellentesque quis" DEFAULT_LOGIN_PATH = 'ajaxlogin' DEFAULT_NEW_TOKEN_PATH = 'ajaxtoken'
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7206, 38865, 62, 10468, 43959, 796, 275, 1, 1212, 3792, 2025, 818, 22390, 15202, 30642, 35, 756, 11041, 1026, 1, 198, 198, 7206, 38865, 62, 50, 31429, 796, 366, 4...
2.342857
105
from util import excute_query_, excute_query from util import database import sys if __name__ == '__main__': testfile = sys.argv[1] main(testfile)
[ 6738, 7736, 1330, 2859, 1133, 62, 22766, 62, 11, 2859, 1133, 62, 22766, 198, 6738, 7736, 1330, 6831, 198, 11748, 25064, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, ...
2.164706
85
"""Hazelcast Core objects and constants.""" import json CLIENT_TYPE = "PYH" SERIALIZATION_VERSION = 1 class MemberInfo(object): """ Represents a member in the cluster with its address, uuid, lite member status, attributes, version, and address map. """ __slots__ = ("address", "uuid", "attribute...
[ 37811, 39, 41319, 2701, 7231, 5563, 290, 38491, 526, 15931, 198, 11748, 33918, 628, 198, 5097, 28495, 62, 25216, 796, 366, 47, 56, 39, 1, 198, 35009, 12576, 14887, 6234, 62, 43717, 796, 352, 628, 198, 4871, 10239, 12360, 7, 15252, 259...
3.175222
1,461
from .signate import Signate __all__ = ['Signate']
[ 6738, 764, 12683, 378, 1330, 5865, 378, 198, 198, 834, 439, 834, 796, 37250, 11712, 378, 20520 ]
3
17
"""Unit test package for otpstore."""
[ 37811, 26453, 1332, 5301, 329, 30972, 79, 8095, 526, 15931, 198 ]
3.454545
11
#!/usr/bin/python from Solution import Solution obj = Solution() #A = [2,3,-2,4] A = [-2,0,-1] print(obj.maxProduct(A))
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 28186, 1330, 28186, 198, 26801, 796, 28186, 3419, 198, 198, 2, 32, 796, 685, 17, 11, 18, 12095, 17, 11, 19, 60, 198, 32, 796, 25915, 17, 11, 15, 12095, 16, 60, 198, 198, 4798...
2.277778
54
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Copyright (c) 2020 # # See the LICENSE file for details # see the AUTHORS file for authors # ---------------------------------------------------------------------- #-------------------- # System wide imports # ----------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 23031, 198, 2, 15069, 357, 66, 8, 12131, 198, 2, 198, 2, 4091, 262, 38559, 24290, 2393, 329, 3307, 198, 2, 766, 262, 37195, 20673, 2393, 329, 7035, 198, 2,...
2.305798
5,278
import aiofiles from hashlib import md5 from pathlib import Path from core import mongodb from decouple import config from base64 import decodebytes from core.buchi_exception import BuchiException from services.pet_finder_service import get_pet_finder_pets pets_collection = mongodb.buchi.get_collection('pets') host = ...
[ 11748, 257, 952, 16624, 198, 6738, 12234, 8019, 1330, 45243, 20, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4755, 1330, 285, 506, 375, 65, 198, 6738, 875, 43846, 1330, 4566, 198, 6738, 2779, 2414, 1330, 36899, 33661, 198, 6738, 4755...
3.150794
126
"""Console script for unifi_protect_backup.""" import asyncio import click from unifi_protect_backup import UnifiProtectBackup, __version__ @click.command() @click.version_option(__version__) @click.option('--address', required=True, envvar='UFP_ADDRESS', help='Address of Unifi Protect instance') @click.option('--...
[ 37811, 47581, 4226, 329, 555, 22238, 62, 35499, 62, 1891, 929, 526, 15931, 198, 198, 11748, 30351, 952, 198, 198, 11748, 3904, 198, 198, 6738, 555, 22238, 62, 35499, 62, 1891, 929, 1330, 791, 22238, 41426, 7282, 929, 11, 11593, 9641, ...
2.956478
988
import os import re import codecs from setuptools import setup, find_packages # Single-source the version from legume/__init__.py here = os.path.abspath(os.path.dirname(__file__)) # with open('README.md', 'r') as f: readme = f.read() with open('requirements.txt') as f: requirements = f.read().splitlines() s...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 40481, 82, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 2, 14206, 12, 10459, 262, 2196, 422, 1232, 2454, 14, 834, 15003, 834, 13, 9078, 198, 1456, 796, 28686, 13, ...
2.747126
348
import os from enum import Enum from typing import List import attr from sleap.io.format.filehandle import FileHandle @attr.s(auto_attribs=True) class Adaptor(object): """ Abstract base class which defines interface for file format adaptors. """ @property def handles(self) -> SleapObjectType: ...
[ 11748, 28686, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 708, 81, 198, 198, 6738, 3133, 499, 13, 952, 13, 18982, 13, 7753, 28144, 1330, 9220, 37508, 628, 198, 198, 31, 35226, 13, 82, 7, 23736, ...
2.874809
655
import tkinter as tk import os import tempfile root = tk.Tk() canvas1 = tk.Canvas(root, width=400, height=300) canvas1.pack() entry1 = tk.Entry(root) entry2 = tk.Entry(root) label2 = tk.Label(root, text='Path') label1 = tk.Label(root, text='Query') canvas1.create_window(200, 160, window=entry1) canvas1.create_window(2...
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 15763, 796, 256, 74, 13, 51, 74, 3419, 198, 5171, 11017, 16, 796, 256, 74, 13, 6090, 11017, 7, 15763, 11, 9647, 28, 7029, 11, 6001, 28, 6200, 8, ...
2.493213
221
import os import re ALLOWED_FLAGS = (0, 16) DEFAULT_TRAINMODELS_OPTIONS = { "fofn": None, "fast5_dir": None, "positions_file": None, "motif": None, "label": None, }
[ 11748, 28686, 198, 11748, 302, 628, 198, 7036, 3913, 1961, 62, 38948, 50, 796, 357, 15, 11, 1467, 8, 198, 198, 7206, 38865, 62, 51, 3861, 1268, 33365, 37142, 62, 3185, 51, 11053, 796, 1391, 198, 220, 220, 220, 366, 69, 1659, 77, 1...
2.042553
94
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
1.912963
2,160
""" Tests for Helpers ================= """ import pyconfig from humbledb import _version from humbledb import Document, Mongo from humbledb.helpers import auto_increment from humbledb.errors import DatabaseMismatch, NoConnection from ..util import DBTest, database_name, eq_, ok_, raises, SkipTest SIDECAR = 'sideca...
[ 37811, 198, 51, 3558, 329, 10478, 364, 198, 4770, 28, 198, 198, 37811, 198, 11748, 12972, 11250, 198, 198, 6738, 1311, 9342, 65, 1330, 4808, 9641, 198, 6738, 1311, 9342, 65, 1330, 16854, 11, 42591, 198, 6738, 1311, 9342, 65, 13, 16794...
2.901163
172
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Function to search reddit comments and submissions and return all metadata available and return a dataFrame """ import pandas as pd import requests import json import csv import time import datetime def RedditSearch(query, before='', after='', search_type...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 15553, 284, 2989, 18374, 3651, 290, 22129, 290, 201, 198, 1441, 477, 20150, 1695, 290, 1441, 257, 1366...
2.332051
2,340
from bootstrap3.forms import render_form from django import template from ..forms import SearchForm register = template.Library() @register.simple_tag()
[ 6738, 6297, 26418, 18, 13, 23914, 1330, 8543, 62, 687, 198, 6738, 42625, 14208, 1330, 11055, 198, 6738, 11485, 23914, 1330, 11140, 8479, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 628, 198, 31, 30238, 13, 36439, 62, 12985, 3419, 628,...
3.761905
42
"""Runs a Blue Green deploy of a Cloud Foundry application using a manifest """ from __future__ import print_function import os import sys import json import cf_api from cf_api.deploy_manifest import Deploy from cf_api.deploy_space import Space from getpass import getpass print('----------') # cloud_controller_url = ...
[ 37811, 10987, 82, 257, 4518, 3469, 6061, 286, 257, 10130, 4062, 563, 3586, 1262, 257, 10561, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 30218, 62, ...
3.081928
415