content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from apps import overview, home, eda, correlation import streamlit as st from utils import dev_details pages = { 'Home' : home.app, 'Overview': overview.app, 'EDA': eda.app, "Correlation" : correlation.app, } if __name__ == "__main__": _, logo_col, _ = st.sidebar.columns([0.3, 1, 1]) logo_col....
[ 6738, 6725, 1330, 16700, 11, 1363, 11, 1225, 64, 11, 16096, 198, 11748, 4269, 18250, 355, 336, 198, 6738, 3384, 4487, 1330, 1614, 62, 36604, 198, 198, 31126, 796, 1391, 198, 220, 220, 220, 705, 16060, 6, 1058, 1363, 13, 1324, 11, 19...
2.42487
193
# Module import itertools import pandas as pd import tqdm import json def create_rule_masks(df, RULES_JSON_PATH): ''' Apply rules to IVAMIRO in df (only & operator suported) :param df: dataframe to apply rules :param rules_json: json or dict containing rules (each rule is also a dictionary contain...
[ 2, 19937, 198, 11748, 340, 861, 10141, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 256, 80, 36020, 198, 11748, 33918, 628, 628, 198, 198, 4299, 2251, 62, 25135, 62, 5356, 591, 7, 7568, 11, 371, 6239, 1546, 62, 40386, 62, 34219...
2.226115
628
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 9 18:05:09 2020 @author: itamar """ import math import pandas_datareader as web import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler from keras.models import Sequential from keras.layers import Dense, LSTM import m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2365, 220, 860, 1248, 25, 2713, 25, 2931, 12131, 198, 198, 31, 9800, 25, 340, 3923...
2.651525
1,541
import os import json abs_join = lambda p1, p2 : os.path.abspath(os.path.join(p1, p2)) SYNTHESIZER_STRPROSE = "StrPROSE" SYNTHESIZER_STRSTUN = "StrSTUN" SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) EXAMPLE_STRPROSE_RELDIR = "../../benchmark/strprose/example_files" EXAMPLE_STRPROSE_FULLDIR = abs_join(SCRIPT...
[ 11748, 28686, 198, 11748, 33918, 198, 198, 8937, 62, 22179, 796, 37456, 279, 16, 11, 279, 17, 1058, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 79, 16, 11, 279, 17, 4008, 198, 23060, 45, 4221, 1546, 14887,...
2.208145
1,105
from src.filters.filter import Filter
[ 6738, 12351, 13, 10379, 1010, 13, 24455, 1330, 25853, 628 ]
3.9
10
from django.shortcuts import render from django.http import HttpResponse from django.views import View from .models import Person, Party, Group from rest_framework import pagination, viewsets, filters from .serializers import PersonSerializer, PartySerializer, GroupSerializer class IsGroupMemberFilterBackend(filte...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 6738, 764, 27530, 1330, 7755, 11, 3615, 11, 4912, 198, 6738, 1334, 62, 30...
3.769912
113
import shutil import torch CHECKPOINT_SIZE_MB = 333 BATCH_SIZE_PER_GB = 2.5 LEARNING_RATE_PER_BATCH = 3.125e-5
[ 11748, 4423, 346, 198, 11748, 28034, 198, 198, 50084, 16402, 12394, 62, 33489, 62, 10744, 796, 23460, 198, 33, 11417, 62, 33489, 62, 18973, 62, 4579, 796, 362, 13, 20, 198, 2538, 1503, 15871, 62, 49, 6158, 62, 18973, 62, 33, 11417, ...
2.230769
52
# Copyright (C) 2020 sandeep.n(π.$) # button post makker for catub thanks to uniborg for the base # by @sandy1709 (@mrconfused) import os import re from ub import tebot as tgbot from telethon import Button from ub import bot from ub import CMD_HELP, client from ub.javes_main.heroku_var import Config from .. import...
[ 2, 220, 220, 220, 15069, 357, 34, 8, 12131, 220, 6450, 68, 538, 13, 77, 7, 46582, 48082, 8, 198, 2, 4936, 1281, 285, 461, 6122, 329, 3797, 549, 5176, 284, 555, 571, 2398, 329, 262, 2779, 198, 2, 416, 2488, 82, 10757, 1558, 2931,...
2.413934
732
import numpy as np import pandas as pd class PredictionsReader: ''' read csv files for evaluating session based predictions from files. Fileformat: Each line contains the predicted recommendations and the actual next_items that a user is going to interact with during the same session. We only nee...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 4871, 14322, 9278, 33634, 25, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1100, 269, 21370, 3696, 329, 22232, 6246, 1912, 16277, 422, 3696, 13, 628,...
3.422764
246
# Ported by @PacarFerdilla # Thanks for catuserbot (c) copyright 2021 import asyncio import base64 from datetime import datetime from telethon.errors import BadRequestError from telethon.tl.functions.channels import EditBannedRequest from telethon.tl.functions.messages import ImportChatInviteRequest from telethon.tl....
[ 2, 4347, 276, 416, 2488, 18844, 283, 43362, 67, 5049, 198, 2, 6930, 329, 3797, 7220, 13645, 357, 66, 8, 6634, 33448, 198, 198, 11748, 30351, 952, 198, 11748, 2779, 2414, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 5735, ...
2.372905
716
# # PySNMP MIB module VERTICAL-STATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/VERTICAL-STATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:34:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 569, 17395, 20151, 12, 2257, 6234, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67...
3.135397
11,241
# MIT License # Copyright (c) 2018 Epsagon # 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, p...
[ 2, 220, 17168, 13789, 198, 2, 220, 15069, 357, 66, 8, 2864, 43427, 1840, 198, 198, 2, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 220, 286, 428, 3788, 290, 3917, 10314, 369...
2.511251
2,533
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2177, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, ...
2.38126
1,238
# -*- mode: python -*- # vi: set ft=python : """ Identifies the C/C++ compiler by examining the presence or values of various predefined C preprocessor macros. Identifies any compiler capable of compiling C++ code that is supported by CMake 3.12.0. Note that there are constraint_values @bazel_tools//tools/cpp:clang a...
[ 2, 532, 9, 12, 4235, 25, 21015, 532, 9, 12, 198, 2, 25357, 25, 900, 10117, 28, 29412, 1058, 198, 198, 37811, 198, 33234, 6945, 262, 327, 14, 34, 4880, 17050, 416, 17247, 262, 4931, 393, 3815, 286, 2972, 198, 28764, 18156, 327, 662...
2.433272
547
import os # There is 100% a better way to do some of the logic in this function, but I really really do not care.
[ 11748, 28686, 198, 198, 2, 1318, 318, 1802, 4, 257, 1365, 835, 284, 466, 617, 286, 262, 9156, 287, 428, 2163, 11, 475, 314, 1107, 1107, 466, 407, 1337, 13 ]
3.8
30
# 코딩도장 문제풀이 # Question number. 406 # 게시판 페이징 # http://codingdojang.com/scode/406 # Author: Lee Jeongwoo # Github name: zao95 # ========== Question ========== # A씨는 게시판 프로그램을 작성하고 있다. # A씨는 게시물의 총 건수와 한 페이지에 보여줄 게시물수를 입력으로 주었을 때 총 페이지수를 리턴하는 프로그램이 필요하다고 한다. # 입력 : 총건수(m), 한페이지에 보여줄 게시물수(n) (단 n은 1보다 크거나 같다. n >= 1) #...
[ 2, 23821, 121, 242, 167, 242, 102, 167, 237, 226, 168, 252, 98, 31619, 105, 116, 168, 254, 250, 169, 240, 222, 35975, 112, 198, 2, 18233, 1271, 13, 45439, 198, 2, 220, 166, 110, 234, 168, 233, 250, 169, 234, 238, 220, 169, 236, ...
0.883721
559
# Generated by Django 3.0.6 on 2020-05-24 00:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import simple_history.models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 21, 319, 12131, 12, 2713, 12, 1731, 3571, 25, 2624, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.152542
59
""" Tests for enum support. """ from __future__ import print_function import enum import numba.unittest_support as unittest from numba import jit from .support import TestCase, tag from .enum_usecases import * class TestEnum(BaseEnumTest, TestCase): """ Tests for Enum classes and members. """ va...
[ 37811, 198, 51, 3558, 329, 33829, 1104, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33829, 198, 198, 11748, 997, 7012, 13, 403, 715, 395, 62, 11284, 355, 555, 715, 395, 198, 6738, 997, 7...
2.404135
532
''' main.py Created by Jo Hyuk Jun on 2020 Copyright © 2020 Jo Hyuk Jun. All rights reserved. ''' import sys n = int(sys.stdin.readline().rstrip()) cmd = [] deque = [] for _ in range(n): cmd.append(list(map(str, sys.stdin.readline().rstrip().split(' ')))) for i in range(n): if (cmd[i][...
[ 7061, 6, 628, 220, 220, 220, 1388, 13, 9078, 628, 220, 220, 220, 15622, 416, 5302, 6707, 2724, 7653, 319, 12131, 198, 220, 220, 220, 15069, 10673, 12131, 5302, 6707, 2724, 7653, 13, 1439, 2489, 10395, 13, 198, 198, 7061, 6, 628, 198...
1.746686
679
# Copyright 2011 OpenStack Foundation # 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 req...
[ 2, 15069, 2813, 4946, 25896, 5693, 220, 1303, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 42...
3.17033
364
# Average Height # Instructions # You are going to write a program that calculates the average student height from a List of heights. # e.g. `student_heights = [180, 124, 165, 173, 189, 169, 146]` # The average height can be calculated by adding all the heights together and dividing by the total number of heights....
[ 2, 13475, 27280, 201, 198, 2, 27759, 201, 198, 2, 921, 389, 1016, 284, 3551, 257, 1430, 326, 43707, 262, 2811, 3710, 6001, 422, 257, 7343, 286, 23245, 13, 220, 201, 198, 2, 304, 13, 70, 13, 4600, 50139, 62, 258, 2337, 796, 685, ...
2.910284
457
################################# PUNKEMON YO!!!!! ############################### ########## Imports from elsewhere import pygame from pygame.locals import * import random from random import * import math from math import * import os import string fontLoaderCode=open("menu sprite code.py") exec(fontLoaderCode.read())...
[ 29113, 2, 350, 4944, 42, 3620, 1340, 575, 46, 50184, 1303, 14468, 7804, 4242, 2235, 198, 7804, 2235, 1846, 3742, 422, 8057, 198, 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 11748, 4738, 198, 6738, 4738, ...
2.819321
7,101
import re from collections import defaultdict from string import punctuation import string from flashtext import KeywordProcessor # keyword_processor = KeywordProcessor() # for i in ['tests','testss','test','5G is(not','ok','100%','不可能吧','优势','在哪里','哪里']: # keyword_processor.add_keyword(i) # print(...
[ 11748, 302, 220, 201, 198, 6738, 17268, 1330, 4277, 11600, 220, 201, 198, 6738, 4731, 1330, 21025, 2288, 201, 198, 11748, 4731, 220, 201, 198, 201, 198, 6738, 7644, 5239, 1330, 7383, 4775, 18709, 273, 201, 198, 201, 198, 2, 21179, 62,...
1.443352
7,326
import numpy as np import time import pulp from utils import flatten, Cost from ce import ActionExtractor from sklearn.cluster import KMeans from sklearn.neighbors import KNeighborsClassifier from sklearn.decomposition import PCA from sklearn.manifold import TSNE from matplotlib import pyplot as plt if(__name__ =...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 38341, 198, 6738, 3384, 4487, 1330, 27172, 268, 11, 6446, 198, 6738, 2906, 1330, 7561, 11627, 40450, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 509, 5308, 504, 198, 6738, 134...
3.067227
119
""" Parse gpslogger https://github.com/mendhak/gpslogger .gpx (xml) files """ from datetime import datetime, timezone from dataclasses import dataclass from pathlib import Path from typing import NamedTuple, Iterator, Set, Dict from lxml import etree from ..core import Stats, Paths, LazyLogger from ..core.error impo...
[ 37811, 198, 10044, 325, 308, 862, 6404, 1362, 3740, 1378, 12567, 13, 785, 14, 76, 437, 43573, 14, 70, 862, 6404, 1362, 764, 70, 8416, 357, 19875, 8, 3696, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198...
2.741641
329
import numpy as np from pytagmapper.geometry import * from pytagmapper.project import * from pytagmapper.data import * from pytagmapper.heuristics import * # success of the tracker heavily depends on initialization # initialization from one of these viewpoints generally will succeed INIT_TXS_WORLD_VIEWPOINT = [ # ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 12985, 76, 11463, 13, 469, 15748, 1330, 1635, 198, 6738, 12972, 12985, 76, 11463, 13, 16302, 1330, 1635, 198, 6738, 12972, 12985, 76, 11463, 13, 7890, 1330, 1635, 198, 6738, 12972, 12985, ...
1.982372
624
import torch.nn as nn import torch.nn.functional as F from ..utils import ConvModule
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 11485, 26791, 1330, 34872, 26796, 628, 628, 198 ]
3.423077
26
""" ui_handler.py Contains the UIHandler method, which contains methods for adding UI elements to the window and manipulating them. CSC111 Final Project by Anatoly Zavyalov, Baker Jackson, Elliot Schrider, Rachel Kim Copyright 2021 Anatoly Zavyalov, Baker Jackson, Elliot Schrider, Rachel Kim Permission is hereby gran...
[ 37811, 198, 9019, 62, 30281, 13, 9078, 198, 4264, 1299, 262, 12454, 25060, 2446, 11, 543, 4909, 5050, 329, 4375, 12454, 4847, 284, 262, 4324, 198, 392, 29349, 606, 13, 198, 34, 6173, 16243, 8125, 4935, 416, 28880, 3366, 1168, 2830, 28...
2.367295
4,299
from flask import Flask import sqlite3 import config as config_module app = Flask(__name__) config = {} for item in dir(config_module): if item[0] != "_": print("=== Config ===") for key in (key for key in dir(config_module) if key[0] != "_"): app.config[key] = getattr(config_module, ...
[ 6738, 42903, 1330, 46947, 198, 11748, 44161, 578, 18, 198, 198, 11748, 4566, 355, 4566, 62, 21412, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 11250, 796, 23884, 198, 198, 1640, 2378, 287, 26672, 7, 11250, 62, 21412, 2599, ...
2.409471
359
# @author Carey Nation # @title Chapter 2, Exercise 8 # @description Calculate tip and tax for a meal celsius = read_it("Please enter your temperature, in celsius: ") fahrenheit = convert(celsius) print("\n%.2fC is %.2fF" % (celsius, fahrenheit))
[ 2, 2488, 9800, 31612, 8741, 198, 2, 2488, 7839, 7006, 362, 11, 32900, 807, 198, 2, 2488, 11213, 27131, 378, 8171, 290, 1687, 329, 257, 9799, 628, 628, 198, 5276, 82, 3754, 796, 1100, 62, 270, 7203, 5492, 3802, 534, 5951, 11, 287, ...
2.896552
87
from re_calc.config import control_tokens, operators, functions from re_calc.util import is_number from re_calc.exceptions import CalcException import re integer_regex = r"(\d+)" tech_fractional_float = r"(\.\d+)" float_regex = r"(\d+\.\d+)" # regex for different num formats are joined by "regex OR" separator NUMBER...
[ 6738, 302, 62, 9948, 66, 13, 11250, 1330, 1630, 62, 83, 482, 641, 11, 12879, 11, 5499, 198, 6738, 302, 62, 9948, 66, 13, 22602, 1330, 318, 62, 17618, 198, 6738, 302, 62, 9948, 66, 13, 1069, 11755, 1330, 2199, 66, 16922, 198, 198, ...
2.265979
1,455
print "Some new feature!"
[ 4798, 366, 4366, 649, 3895, 2474, 198 ]
3.714286
7
import pytz from datetime import datetime tz = pytz.timezone('US/Eastern') now = datetime.now(tz) print now
[ 11748, 12972, 22877, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 198, 22877, 796, 12972, 22877, 13, 2435, 11340, 10786, 2937, 14, 46109, 11537, 198, 2197, 796, 4818, 8079, 13, 2197, 7, 22877, 8, 198, 198, 4798, 783 ]
2.894737
38
from django.conf import settings from django.db import models from django.utils import timezone # Entry some data into model # Create a string representation # api/models.py """ Server ID,Sponsor,Server Name,Timestamp,Distance,Ping,Download,Upload,Share,IP Address 4058 Wildcard Networks Newcastle upon Tyne 2021-...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 2, 21617, 617, 1366, 656, 2746, 198, 220, 198, 2, 13610, 257, 4731, 10552, 198, ...
2.247335
469
# Wikipeida topic blob example import random import wikipedia import streamlit as st import pandas as pd from topicblob import TopicBlob from streamlit import caching wiki_pages_default = [ "Facebook(Company)", "Barack Obama", "Wikipedia", "Topic Modeling", "Python (programming language)", "...
[ 2, 11145, 3757, 3755, 7243, 44812, 1672, 198, 198, 11748, 4738, 198, 11748, 47145, 11151, 198, 11748, 4269, 18250, 355, 336, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 7243, 2436, 672, 1330, 47373, 3629, 672, 198, 198, 6738, 4269,...
2.811594
207
# Copyright 2018 eBay Inc. # Copyright 2012 OpenStack LLC. # 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 # # https://www.apache.org/licenses/LICENSE-2.0...
[ 2, 15069, 2864, 21698, 3457, 13, 198, 2, 15069, 2321, 4946, 25896, 11419, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, ...
2.7584
625
import torch import torch.nn as nn from torchsummary import summary if __name__ == '__main__': device = 'cuda' if torch.cuda.is_available() else 'cpu' model = Net().to(device) summary(model, (1, 20, 20))
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 49736, 1330, 10638, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 25202, 796, 705, 66, 15339, 6, 611, 28034, 13, 66, 1533...
2.824324
74
""" Created by Edward Li at 10/6/20 """ import numpy as np
[ 37811, 198, 41972, 416, 10443, 7455, 379, 838, 14, 21, 14, 1238, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198 ]
2.727273
22
from babyfood.homogenous import HomogenousTransform
[ 6738, 5156, 19425, 13, 26452, 27897, 1330, 8074, 27897, 41762, 628, 628 ]
4.583333
12
""" Author : Raquel G. Alhama Desc: """ import sys import pandas as pd if __name__=="__main__": args=sys.argv[1:] if len(args) != 1: print("Usage: combine_repetitions_wordbank.py <file>") exit(-1) main(*args)
[ 37811, 198, 13838, 1058, 7567, 31735, 402, 13, 978, 71, 1689, 198, 24564, 25, 198, 37811, 198, 11748, 25064, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 628, 220, 220, 220, 2...
2.181818
110
import logging from tornado import gen from ..common.dynamo import DDBBase logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 33718, 1330, 2429, 198, 198, 6738, 11485, 11321, 13, 67, 4989, 78, 1330, 360, 11012, 14881, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.162162
37
def bubble_sort(array_to_sort): """ Simple Sorting Algorithm which Worst Case of O(n2) and Best Case od O(n) if array is already sorted :param array_to_sort: The Array to be sorted :return: Sorted Array """ n = len(array_to_sort) for i in range(n-1): swap = False for j in ra...
[ 4299, 14310, 62, 30619, 7, 18747, 62, 1462, 62, 30619, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17427, 311, 24707, 978, 42289, 543, 33443, 8913, 286, 440, 7, 77, 17, 8, 290, 6705, 8913, 16298, 440, 7, 77, 8, 611, 7177,...
1.937778
450
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import logging import nibabel as nib import numpy as np from scilpy.io.utils import (add_overwrite_arg, assert_inputs_exist, assert_outputs_exist, check_tracts_same_for...
[ 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, 1822, 29572, 198, 11748, 18931, 198, 198, 11748, 33272, 9608, 355, 33272, 198, 11748, 299, 32152, 355, 45941,...
3.107612
381
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> def mystery(l): l = l[2:5] return() >>> list1 = [7,82,44,23,11] >>> mystery(list1) () >>>
[ 37906, 513, 13, 21, 13, 17, 357, 85, 18, 13, 21, 13, 17, 25, 20, 16344, 2091, 65, 20, 11, 5979, 220, 807, 2177, 11, 8702, 25, 1415, 25, 2682, 8, 685, 5653, 34, 410, 13, 48104, 3933, 1643, 357, 24123, 15437, 319, 1592, 2624, 20...
2.12
125
import json from pathlib import Path from querius import QueriusClient
[ 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 42517, 3754, 1330, 2264, 263, 3754, 11792, 628 ]
3.842105
19
from aiocloudflare.commons.auth import Auth
[ 6738, 257, 72, 38679, 2778, 2704, 533, 13, 9503, 684, 13, 18439, 1330, 26828, 628 ]
3
15
# This file contains prototype VVP implementations. # # These patterns should be purposed for specific settings. # As such, they do not contain a @task descriptor. import os """ validate_ensemble_output Validation Pattern. Purpose: 1. given an ensemble of validation output directories, it will: 2. operate a validat...
[ 2, 770, 2393, 4909, 14879, 569, 8859, 25504, 13, 198, 2, 198, 2, 2312, 7572, 815, 307, 1308, 29813, 329, 2176, 6460, 13, 198, 2, 1081, 884, 11, 484, 466, 407, 3994, 257, 2488, 35943, 43087, 13, 198, 11748, 28686, 628, 198, 37811, ...
3.179406
942
""" common helper module """ def elimate_whitespace_around(source): """ return contents surrounded by whitespaces. whitespace :: space | tab """ if not source: return source start, length = 0, len(source) end, whitespace = length - 1, ' \t' while start < length: if source[st...
[ 37811, 2219, 31904, 8265, 198, 37811, 198, 198, 4299, 1288, 1920, 62, 1929, 2737, 10223, 62, 14145, 7, 10459, 2599, 198, 220, 220, 220, 37227, 1441, 10154, 11191, 416, 13216, 43076, 13, 198, 220, 220, 220, 13216, 10223, 7904, 2272, 930,...
2.233173
832
#!/usr/bin/env python3 import time, requests, hashlib, os, json, sys, subprocess, traceback from datetime import datetime from ruamel import yaml with open('/etc/differ/config.yaml') as f: config = yaml.safe_load(f) INTERVAL_SECONDS = 60*20 # check all diffs every 20 minutes DIFF_OBJS = config['diff-objs'] DATA_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 640, 11, 7007, 11, 12234, 8019, 11, 28686, 11, 33918, 11, 25064, 11, 850, 14681, 11, 12854, 1891, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 7422, 17983, 1330, 331,...
1.862039
1,167
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import random from mephisto.operations.operator import Operator from mephisto.tools.scripts import load_db_and...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 201, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 201, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 201, 198, 2, 38...
2.55268
541
from django.test import TestCase from app.calc import add, subtract
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 598, 13, 9948, 66, 1330, 751, 11, 34128 ]
3.722222
18
import re import os import argparse import sys import pprint if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("talysdirectory") parser.add_argument("bruslib") args = parser.parse_args() # Regex to extract mass+symbol of element pattern = re.compile("(\d{1,3}[...
[ 11748, 302, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 279, 4798, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 4667...
2.516616
331
#!/usr/bin/env python3 import json import os from hdwallet import HDWallet # Test Values base_path: str = os.path.dirname(__file__) file_path: str = os.path.abspath(os.path.join(base_path, "values.json")) values = open(file_path, "r", encoding="utf-8") _: dict = json.loads(values.read()) values.close()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 289, 67, 44623, 1330, 5572, 47152, 198, 198, 2, 6208, 27068, 198, 8692, 62, 6978, 25, 965, 796, 28686, 13, 6978, 13, 15908, ...
2.678261
115
import numpy as np import numpy.random as npr from scipy import optimize import matplotlib as mpl import matplotlib.pyplot as plt import pypmc from mnist import MNIST from sklearn.decomposition import PCA import sys sys.path.append('..') import flymc as ff # Set hyperparameters stepsize = 0.001 # size of Me...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 25120, 355, 299, 1050, 198, 6738, 629, 541, 88, 1330, 27183, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 1...
2.552846
246
x = 10 y = 5 print("x = " + str(x)) # + is concatination and not addition, will be explained later print("y = " + str(y)) # equal print("x == y = " + str(x == y)) # not equal print("x != y = " + str(x != y)) # greater than print("x > y = " + str(x > y)) # greater than or equal print("x >= y = " + str(x >= y)) #...
[ 87, 796, 838, 198, 88, 796, 642, 198, 198, 4798, 7203, 87, 796, 366, 1343, 965, 7, 87, 4008, 220, 1303, 1343, 318, 1673, 265, 1883, 290, 407, 3090, 11, 481, 307, 4893, 1568, 198, 4798, 7203, 88, 796, 366, 1343, 965, 7, 88, 4008,...
2.47619
168
import pytest import sys, os myPath = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, myPath + '/../') from traintorch import * import numpy as np import pandas as pd
[ 11748, 12972, 9288, 198, 11748, 25064, 11, 28686, 198, 1820, 15235, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 616, 15235, 1343, ...
2.637681
69
from fractions import Fraction from toolkit import * def bezout(a, b): """ :return s and t st. sa + tb = (a,b) """ s, t, sn, tn, r = 1, 0, 0, 1, 1 while r != 0: q, r = divmod(a, b) st, tt = sn * (-q) + s, tn * (-q) + t s, t = sn, tn sn, tn = st, tt a, b = b,...
[ 6738, 49876, 1330, 376, 7861, 198, 6738, 2891, 15813, 1330, 1635, 628, 198, 4299, 307, 89, 448, 7, 64, 11, 275, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1058, 7783, 264, 290, 256, 336, 13, 473, 1343, 256, 65, 796, 357,...
1.825279
269
__version__ = '0.36.0.dev2370'
[ 834, 9641, 834, 796, 705, 15, 13, 2623, 13, 15, 13, 7959, 1954, 2154, 6, 198 ]
1.9375
16
from django.conf.urls.defaults import * from django.contrib import admin from tiger.views import course_request_create, course_request_update from tiger.views import course_list, course_detail from tiger.views import * from tiger.models import * #admin.autodiscover() urlpatterns = patterns('', # Courses ...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 1635, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 26241, 13, 33571, 1330, 1781, 62, 25927, 62, 17953, 11, 1781, 62, 25927, 62, 19119, 198, 6738...
2.12616
539
import base64 import json import re import os import numpy as np import tensorflow as tf from flask import Flask, render_template, request from scipy.misc import imread, imresize app = Flask(__name__) global model # load model with open('model/model_in_json.json', 'r') as f: model_json = json.load(f) model = tf.k...
[ 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 6738, 629, 541, ...
2.599138
232
# File: awssystemsmanager_connector.py # # Copyright (c) 2019-2022 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
[ 2, 9220, 25, 3253, 824, 6781, 82, 37153, 62, 8443, 273, 13, 9078, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 12, 1238, 1828, 13341, 2954, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169,...
2.725943
1,299
from app import db
[ 6738, 598, 1330, 20613, 628, 198 ]
3.5
6
from datetime import date, timedelta if __name__ == '__main__': print(get_report_months())
[ 6738, 4818, 8079, 1330, 3128, 11, 28805, 12514, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 1136, 62, 13116, 62, 41537, 28955, 198 ]
2.909091
33
from tkinter import * from tkinter import messagebox from tkinter import ttk #treeview import sqlite3 root = Tk() root.title('Libreta de Clientes') conn = sqlite3.connect('gestorCliente.db') #coneccion a la base de datos c = conn.cursor() #cursor para ejecutar consultas #creación de base de datos c.execu...
[ 6738, 256, 74, 3849, 1330, 1635, 201, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 201, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 1303, 21048, 1177, 201, 198, 11748, 44161, 578, 18, 201, 198, 201, 198, 15763, 796, 309, 74, 3419, 20...
2.469657
758
import numpy as np def PlotPlanet(ax,R=1.0,Center=[0.0,0.0,0.0],zorder=10,NoonTop=True): ''' Plot the planet in the centre of a set of Axes. Inputs ====== ax : matplotlib.pyplot.Axes instance This is the set of axes to plot on. R : float Radius to plot planet with. Center : float 3-element array-like ob...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4299, 28114, 41801, 7, 897, 11, 49, 28, 16, 13, 15, 11, 23656, 41888, 15, 13, 15, 11, 15, 13, 15, 11, 15, 13, 15, 4357, 89, 2875, 28, 940, 11, 45, 2049, 9126, 28, 17821, 2599, 198, 197,...
2.130719
459
# CPSC 452 HW1 - Row Transposition Cipher # Authors: Jake Cliff, Kenny Chao, and Scott Ng import sys import cipherCheck import math
[ 2, 32084, 34, 4153, 17, 44884, 16, 532, 11314, 3602, 9150, 44334, 198, 2, 46665, 25, 14757, 23501, 11, 22102, 41024, 11, 290, 4746, 34786, 198, 11748, 25064, 198, 11748, 38012, 9787, 198, 11748, 10688, 198, 220, 220, 220, 220 ]
3.4
40
from annogesiclib.gff3 import Gff3Parser
[ 6738, 1529, 519, 274, 291, 8019, 13, 70, 487, 18, 1330, 402, 487, 18, 46677, 628, 628, 628, 628, 198 ]
2.45
20
import asyncio if __name__ == '__main__': asyncio.run(main())
[ 11748, 30351, 952, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30351, 952, 13, 5143, 7, 12417, 28955, 198 ]
2.5
28
#!/usr/bin/env python # # Copyright (c) 2019, Arista Networks EOS+ # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright notice, # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 11, 943, 12523, 27862, 412, 2640, 10, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, ...
2.573959
8,187
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Acquisition indexer APIs.""" from datetime import datetime from celery import shared_task from flask imp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 13130, 12, 42334, 327, 28778, 13, 198, 2, 198, 2, 287, 574, 952, 12, 1324, 12, 4487, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340,...
2.653779
569
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class TypeOracleProtectionSourceEnum(object): """Implementation of the 'Type_OracleProtectionSource' enum. Specifies the type of the managed Object in Oracle Protection Source. 'kRACRootContainer' indicates the entity is a root container to an Oracle...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 1766, 956, 414, 3457, 13, 198, 198, 4871, 5994, 48625, 19703, 3213, 7416, 4834, 388, 7, 15252, 2599, 628, 220, 220, 220, 37227, 3546, 32851, 286, 262, ...
2.892086
417
""" Prime Sum Problem Description Given an even number A ( greater than 2 ), return two prime numbers whose sum will be equal to given number. If there are more than one solutions possible, return the lexicographically smaller solution. If [a, b] is one solution with a <= b, and [c,d] is another solution with c <= d,...
[ 37811, 198, 26405, 5060, 198, 40781, 12489, 198, 15056, 281, 772, 1271, 317, 357, 3744, 621, 362, 10612, 1441, 734, 6994, 3146, 3025, 2160, 481, 307, 4961, 284, 1813, 1271, 13, 220, 220, 1002, 612, 389, 517, 621, 530, 8136, 1744, 11, ...
3.509174
218
from tensorflow.keras import layers from tensorflow.keras.activations import swish from tensorflow.nn import relu6 class DenselyConnected(layers.Layer): """Densely Connected Layer followed by Batch Normalization (optional) and Dropout (optional) Args: units (int): dimensionality of ...
[ 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 15791, 602, 1330, 1509, 680, 198, 6738, 11192, 273, 11125, 13, 20471, 1330, 823, 84, 21, 628, 628, 198, 198, 4871, 360, 1072, 306, ...
2.75641
390
import random import hashlib # inp = raw_input() enc = "3f6f706b513c5f65557a6e5a5d736979666663686073677975547a7e516665776a68696a657d6963777572674f7269716f59666f5857605a20566e7b7b5c5a75636c60596b6f68607f76547970717f784d6e6073515a5c686a81756e74755c63667468595d7f76736d5e696e5e607d63" # print enc for i in range(13...
[ 11748, 4738, 201, 198, 11748, 12234, 8019, 201, 198, 201, 198, 2, 287, 79, 796, 8246, 62, 15414, 3419, 201, 198, 12685, 796, 366, 18, 69, 21, 69, 35402, 65, 48645, 66, 20, 69, 35916, 3553, 64, 21, 68, 20, 64, 20, 67, 22, 30803, ...
1.962085
422
# Copyright (c) Alibaba, Inc. and its affiliates. import argparse import os import sys import unittest file_dir = os.path.join(os.path.dirname(__file__), '..') sys.path.append(file_dir) parser = argparse.ArgumentParser('test runner') parser.add_argument('--list_tests', action='store_true', help='list all tests') pa...
[ 2, 15069, 357, 66, 8, 41992, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 220, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 7753, 62, 15908, 796, 28686, 13, 6978, 13, 22179, 7, 418, ...
2.677273
220
from flask_sqlalchemy import SQLAlchemy DB = SQLAlchemy()
[ 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 198, 11012, 796, 16363, 2348, 26599, 3419, 198 ]
3.105263
19
# Django from django import forms from django.utils.translation import gettext as _ from django.conf import settings # Models from django.contrib.auth.models import User from users.models import ExperienceCompany, PositionCompany, Profile # Utils from users.utils import GENERES from services.email import EmailServic...
[ 198, 2, 37770, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 355, 4808, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 2, 32329, 198, 6738, 42625, 14208, 13, 3642, 822, ...
3.901099
91
import json import pytest import requests from django.test import TestCase from seahub import settings from tests.api.apitestbase import ApiTestBase from tests.api.urls import SERVER_INFO_URL
[ 11748, 33918, 198, 11748, 12972, 9288, 198, 11748, 7007, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 384, 993, 549, 1330, 6460, 198, 6738, 5254, 13, 15042, 13, 499, 270, 395, 8692, 1330, 5949, 72, 14402, ...
3.344828
58
from datetime import datetime from mdf import ( MDFContext, varnode, nansumnode, evalnode, now, shift, ) from numpy.testing.utils import assert_array_almost_equal from pandas.core import datetools import pandas as pd import unittest A = varnode() @nansumnode @evalnode @evalnode
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 285, 7568, 1330, 357, 198, 220, 220, 220, 337, 8068, 21947, 11, 198, 220, 220, 220, 1401, 17440, 11, 198, 220, 220, 220, 299, 504, 4182, 1098, 11, 198, 220, 220, 220, 5418, 17440, 11, ...
2.545455
121
#!/usr/bin/env python3 from __future__ import annotations import math import pathlib from ipaddress import IPv6Address from pprint import pprint from datetime import datetime, timedelta import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt import matplotlib.dates as mdates from analysis.par...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 10688, 198, 11748, 3108, 8019, 198, 6738, 20966, 21975, 1330, 25961, 21, 20231, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 673...
2.864499
369
# Definition for an interval. # class Interval: # def __init__(self, s=0, e=0): # self.start = s # self.end = e
[ 2, 30396, 329, 281, 16654, 13, 198, 2, 1398, 4225, 2100, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 264, 28, 15, 11, 304, 28, 15, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9688, ...
2.0625
64
import requests import os import json import time from nose.tools import with_setup base_url = 'http://localhost:8080/api' adm_user = 'test@user.com' user = 'other@user.com' test_data = type('',(object,),{})() @with_setup(setup_db, teardown_db)
[ 11748, 7007, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 9686, 13, 31391, 1330, 351, 62, 40406, 198, 198, 8692, 62, 6371, 796, 705, 4023, 1378, 36750, 25, 1795, 1795, 14, 15042, 6, 198, 324, 76, 62, 7220, 796, ...
2.695652
92
from django.shortcuts import render, get_object_or_404, redirect from .models import passport_holder from .forms import passport_holder_form # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 11, 18941, 198, 6738, 764, 27530, 1330, 17981, 62, 13829, 198, 6738, 764, 23914, 1330, 17981, 62, 13829, 62, 687, 198, 2, 13610, 534, 5009, 994,...
3.860465
43
from __future__ import unicode_literals import config.current_user from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion import django.db.models.manager
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 4566, 13, 14421, 62, 7220, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 70, 271, 13, 9945, 13, 27530, 13, 257...
3.272727
77
#!/usr/bin/python # This file defines the output and input pins for the T-Shirt Launcher # Define our relay outputs # Each output is triggered via a ULN2803 Darlington Driver TSHIRT1=4 TSHIRT2=17 TSHIRT3=22 TSHIRT4=18 # Define our LED outputs # LED status for each barrel LED1=2 LED2=14 LED3=3 LED4=15 # Either for e...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 770, 2393, 15738, 262, 5072, 290, 5128, 20567, 329, 262, 309, 12, 2484, 2265, 26385, 198, 198, 2, 2896, 500, 674, 24248, 23862, 198, 2, 5501, 5072, 318, 13973, 2884, 257, 44475, 45,...
2.866667
225
import os import yaml import functools import subprocess import boto3.ec2 from botocore.exceptions import ClientError from typing import Dict, List, Tuple from dataclasses import dataclass # use a global EC2 handle. ec2 = boto3.client("ec2") def run(command) -> Dict: """Execute a command after an initial dry-...
[ 198, 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 1257, 310, 10141, 198, 11748, 850, 14681, 198, 198, 11748, 275, 2069, 18, 13, 721, 17, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 198, 6738, 19720, 1330, ...
2.65
360
# Character field ID when accessed: 600020000 # ObjectID: 1000000 # ParentID: 9201051 # Object Position X: -937 # Object Position Y: 2658
[ 2, 15684, 2214, 4522, 618, 17535, 25, 39064, 2167, 405, 198, 2, 9515, 2389, 25, 1802, 2388, 198, 2, 16774, 2389, 25, 860, 1264, 2713, 16, 198, 2, 9515, 23158, 1395, 25, 532, 24, 2718, 198, 2, 9515, 23158, 575, 25, 2608, 3365, 198 ...
3.136364
44
""" IDE: Visual Code Author: Mani Date: 01-05-2020 """ from module.module import Module # This method returns the information about the installed modules / packages
[ 37811, 198, 220, 220, 220, 33497, 25, 15612, 6127, 198, 220, 220, 220, 6434, 25, 1869, 72, 198, 220, 220, 220, 7536, 25, 5534, 12, 2713, 12, 42334, 198, 37811, 198, 6738, 8265, 13, 21412, 1330, 19937, 198, 220, 220, 220, 1303, 770, ...
3.351852
54
"""14. Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. """
[ 37811, 1415, 13, 5882, 395, 8070, 3771, 13049, 198, 16594, 257, 2163, 284, 1064, 262, 14069, 2219, 21231, 4731, 12077, 198, 272, 7177, 286, 13042, 13, 198, 37811, 628 ]
4.172414
29
# TASK: # Вхідні дані: 3 дійсних числа -- аргументи командного рядка. # Вихідні дані: результат обчислення формули # SOLUTION: # Importing modules to work with embedded functions import sys import math # Assigning variables values of three cmd-line arguments x = float(sys.argv[1]) mu = float(sys.argv[2]) sigma = flo...
[ 2, 309, 1921, 42, 25, 198, 2, 12466, 240, 141, 227, 141, 244, 43666, 22177, 141, 244, 12466, 112, 16142, 22177, 141, 244, 25, 513, 12466, 112, 141, 244, 140, 117, 21727, 22177, 18849, 141, 227, 220, 141, 229, 18849, 21727, 30143, 16...
1.81323
257
import os from sonar.testbench import Testbench, Module, TestVector, Thread from sonar.interfaces import AXIS, SAXILite from sonar_strToInt import strToInt handler_wrapper = Testbench.default('handler_wrapper') filepath = os.path.join(os.path.dirname(__file__), 'build/handler_wrapper/') dut = Module.default("DUT") ...
[ 11748, 28686, 198, 198, 6738, 3367, 283, 13, 9288, 26968, 1330, 6208, 26968, 11, 19937, 11, 6208, 38469, 11, 14122, 198, 6738, 3367, 283, 13, 3849, 32186, 1330, 43051, 1797, 11, 14719, 55, 4146, 578, 198, 198, 6738, 3367, 283, 62, 253...
2.463347
1,446
import asyncio import pycommons.logger import maxwell.protocol.maxwell_protocol_pb2 as protocol_types from maxwell.connection import Code from maxwell.connection import Event logger = pycommons.logger.get_instance(__name__) # =========================================== # apis # ==========================...
[ 11748, 30351, 952, 198, 11748, 12972, 9503, 684, 13, 6404, 1362, 198, 11748, 3509, 4053, 13, 11235, 4668, 13, 29047, 62, 11235, 4668, 62, 40842, 17, 355, 8435, 62, 19199, 198, 6738, 3509, 4053, 13, 38659, 1330, 6127, 198, 6738, 3509, ...
4.423913
184
import bpy # Use some of the existing buttons. from bl_ui import properties_render properties_render.RENDER_PT_render.COMPAT_ENGINES.add('PSYCHOPATH_RENDER') properties_render.RENDER_PT_dimensions.COMPAT_ENGINES.add('PSYCHOPATH_RENDER') properties_render.RENDER_PT_output.COMPAT_ENGINES.add('PSYCHOPATH_RENDER') del pro...
[ 11748, 275, 9078, 198, 198, 2, 5765, 617, 286, 262, 4683, 12163, 13, 198, 6738, 698, 62, 9019, 1330, 6608, 62, 13287, 198, 48310, 62, 13287, 13, 49, 10619, 1137, 62, 11571, 62, 13287, 13, 9858, 47, 1404, 62, 26808, 1268, 1546, 13, ...
2.55137
292
#used to determine if its a private ip address in 192.168.0.0/16
[ 2, 1484, 284, 5004, 611, 663, 257, 2839, 20966, 2209, 287, 17817, 13, 14656, 13, 15, 13, 15, 14, 1433, 198 ]
3.095238
21
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 198, 11748, 42625, 14208, 13, 7295, 13, 1...
2.978261
46
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 2, 15069, 357, 66, 8, 12131, 220, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
2.331582
1,523
#! /usr/bin/python3 ################################################################################## # Copyright (c) 2020 Intel Corporation # # 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...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 29113, 29113, 14468, 2235, 198, 2, 15069, 357, 66, 8, 12131, 8180, 10501, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 19...
3.362709
1,373
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # 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 L...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1946, 383, 1345, 292, 78, 4935, 46665, 13, 198, 2, 4222, 766, 262, 37195, 20673, 2393, 329, 3307, 319, 1...
3.260952
525
# Copyright (C) 2014 Universidad Politecnica de Madrid # # 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 la...
[ 2, 15069, 357, 34, 8, 1946, 26986, 32482, 2165, 578, 31522, 3970, 390, 14708, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 1...
3.732558
172
import urllib import os # Constant dataset_dir = './TransportationData' datasetBalanced = dataset_dir + '/datasetBalanced' rawOriginaldata = dataset_dir + '/_RawDataOriginal' url_list = ['http://cs.unibo.it/projects/us-tm2017/static/dataset/extension/5second/dataset_5secondWindow.csv', 'http://cs.unibo.it/...
[ 11748, 2956, 297, 571, 198, 11748, 28686, 198, 198, 2, 20217, 198, 19608, 292, 316, 62, 15908, 796, 705, 19571, 8291, 10189, 6601, 6, 198, 19608, 292, 316, 24597, 2903, 796, 27039, 62, 15908, 1343, 31051, 19608, 292, 316, 24597, 2903, ...
2.461101
527