content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- """ Script to execute example covarying MMGP regression forecasting model with full Krhh. Inputs: Data training and test sets (dictionary pickle) Data for example: - normalised solar data for 25 sites for 15 minute forecast - N_train = 4200, N_test = 2276, P = 25, D = 51 - Xtr[:, :5...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 7391, 284, 12260, 1672, 39849, 560, 278, 20806, 16960, 20683, 41164, 2746, 201, 198, 4480, 1336, 13685, 12337, 13, 201, 198, 201, 198, 20560, 82, 2...
2.362133
3,750
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2018 Bitcraze AB # # Th...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 220, 220, 220, 8614, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1427, 220, 4808, 11593, 198, 2, 220, 1343, 23031, 10, 220, 220, 220, 220, 22...
2.839216
510
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Florian Boudin # Date: 10-02-2018 """ExpandRank keyphrase extraction model. Graph-based ranking approach to keyphrase extraction described in: * Xiaojun Wan and Jianguo Xiao. Single Document Keyphrase Extraction Using Neighborhood Knowledge. *In proceedings...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 4432, 666, 347, 2778, 259, 198, 2, 7536, 25, 838, 12, 2999, 12, 7908, 198, 198, 37811, 16870, 392, 275...
3.369792
192
#!/usr/bin/env python3 from aws_cdk import core from fagate_serverless.fagate_serverless_stack import FagateServerlessStack app = core.App() FagateServerlessStack(app, "serverless-xray-stack") app.synth()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 3253, 82, 62, 10210, 74, 1330, 4755, 198, 198, 6738, 277, 37861, 62, 15388, 1203, 13, 69, 37861, 62, 15388, 1203, 62, 25558, 1330, 376, 37861, 10697, 1203, 25896, 628, ...
2.8
75
import json import inspect import hashlib from _plotly_utils.utils import PlotlyJSONEncoder from dash.long_callback.managers import BaseLongCallbackManager
[ 11748, 33918, 198, 11748, 10104, 198, 11748, 12234, 8019, 198, 198, 6738, 4808, 29487, 306, 62, 26791, 13, 26791, 1330, 28114, 306, 40386, 27195, 12342, 198, 6738, 14470, 13, 6511, 62, 47423, 13, 805, 10321, 1330, 7308, 14617, 47258, 1351...
3.785714
42
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
4.959184
147
# content of test_sample.py
[ 2, 2695, 286, 1332, 62, 39873, 13, 9078, 198 ]
3.111111
9
# Generated by Django 3.0.4 on 2020-04-06 09:56 from django.db import migrations from saleor.order import OrderStatus
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 19, 319, 12131, 12, 3023, 12, 3312, 7769, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 198, 6738, 5466, 273, 13, 2875, 1330, 8284, 19580, 628, 198 ]
2.97561
41
""" Copyright 2019 Samsung SDS 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 ...
[ 37811, 198, 220, 220, 220, 15069, 13130, 10397, 311, 5258, 198, 220, 220, 220, 220, 198, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 220, 345, 743, 407, 779, 428...
3.486726
226
#!/usr/bin/env python3 import sys import os import logging import numpy as np import pandas as pd import dateutil # Function which computes BM (single sine method) degree day generation from temperature data def compute_year_over_year_norm(in_dataframe, start, end, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 3128, 22602, 628, 628, 198, 198, 2, 15553, ...
2.150316
1,743
# import Kratos import KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.CSharpWrapperApplication as CSharpWrapperApplication import run_cpp_unit_tests # Import Kratos "wrapper" for unittests import KratosMultiphysics.KratosUnittest ...
[ 2, 1330, 509, 10366, 418, 198, 11748, 509, 10366, 418, 15205, 13323, 23154, 198, 11748, 509, 10366, 418, 15205, 13323, 23154, 13, 44909, 1523, 28452, 272, 873, 23416, 355, 32112, 1523, 28452, 272, 873, 23416, 198, 11748, 509, 10366, 418, ...
2.820961
916
from sqlalchemy import Column, Integer, String, ForeignKey, Float from sqlalchemy.orm import relationship from .database import Base
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 8708, 9218, 11, 48436, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 198, 6738, 764, 48806, 1330, 7308, 628, 628 ]
4.151515
33
from flask import Flask, flash, render_template, redirect, url_for from flask.ext.pymongo import PyMongo from flask import request app=Flask(__name__) app.config['MONGO_DBNAME']='stud' app.config['MONGO_URI']='mongodb://localhost:27017/stud' mongo=PyMongo(app) """ @app.route('/add') def add(): user=mongo.db.users ...
[ 6738, 42903, 1330, 46947, 11, 7644, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 198, 6738, 42903, 13, 2302, 13, 79, 4948, 25162, 1330, 9485, 44, 25162, 198, 6738, 42903, 1330, 2581, 198, 1324, 28, 7414, 2093, 7, 834, 3672, ...
2.454918
244
# -*- coding: utf-8 -*- import pytest import datetime from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework.test import APIClient, APIRequestFactory from resources.enums import UnitAuthorizationLevel from resources.models import Resource, ResourceType, Unit, Pu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 13...
3.823529
170
#!/bin/python3 with open('../camera/QCamera2/stack/common/cam_intf.h', 'r') as f: data = f.read() f.closed start = data.find(' INCLUDE(CAM_INTF_META_HISTOGRAM') end = data.find('} metadata_data_t;') data = data[start:end] metadata = data.split("\n") metalist = list() for line in metadata: if (line.starts...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 4480, 1280, 10786, 40720, 25695, 14, 48, 35632, 17, 14, 25558, 14, 11321, 14, 20991, 62, 600, 69, 13, 71, 3256, 705, 81, 11537, 355, 277, 25, 198, 220, 220, 220, 1366, 796, 277, 13, 961, ...
2.107914
278
A, B = map(int, input().split()) print(f(A, B))
[ 628, 198, 32, 11, 347, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 198, 4798, 7, 69, 7, 32, 11, 347, 4008, 198 ]
2.08
25
import logging from logging.handlers import TimedRotatingFileHandler ''' logger = MyLog("test","log\\text.txt") logger.logger.debug('debug message') logger.logger.info('info message') logger.logger.warning('warn message') logger.logger.error('error message') logger.logger.critical('critical message') '''
[ 11748, 18931, 198, 6738, 18931, 13, 4993, 8116, 1330, 5045, 276, 24864, 803, 8979, 25060, 628, 198, 7061, 6, 198, 6404, 1362, 796, 2011, 11187, 7203, 9288, 2430, 6404, 6852, 5239, 13, 14116, 4943, 198, 6404, 1362, 13, 6404, 1362, 13, ...
3.131313
99
# urls.py from django.urls import path, register_converter from fiesta import converters from fiesta.views import views from rest_framework.urlpatterns import format_suffix_patterns # "http://django-sdmx.org/wsrest/" # "http://django-sdmx.org/ws/" register_converter(converters.ResourceConverter, 'res') register_con...
[ 2, 2956, 7278, 13, 9078, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 7881, 62, 1102, 332, 353, 198, 6738, 277, 36283, 1330, 6718, 1010, 220, 198, 6738, 277, 36283, 13, 33571, 1330, 5009, 198, 6738, 1334, 62, 30604, 1...
2.450098
511
# Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
[ 2, 19430, 281, 11862, 326, 2753, 281, 7177, 290, 6100, 477, 286, 262, 1976, 27498, 284, 262, 886, 11, 23934, 262, 1502, 286, 262, 584, 4847, 13 ]
4.555556
27
from enum import Enum from window import Window D = Enum ('Directions','N NE E SE S SW W NW') selector_map = { D.NW: [0.5,0.5], D.N: [1.5,0], D.NE: [2.5,0.5], D.W: [0,1.5], D.E: [3,1.5], D.SW: [0.5,2.5], D.S: [1.5,3], D.SE: [2.5,2.5], } selector_size = 100 window_si...
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 4324, 1330, 26580, 198, 198, 35, 796, 2039, 388, 19203, 13470, 507, 41707, 45, 10635, 412, 7946, 311, 12672, 370, 21966, 11537, 198, 198, 19738, 273, 62, 8899, 796, 1391, 198, 220, 220, 220, 22...
2.207692
390
from rest_framework import serializers from rest_framework.validators import UniqueValidator from cride.circles.models import Circle
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 12102, 2024, 1330, 30015, 47139, 1352, 198, 6738, 1067, 485, 13, 66, 343, 5427, 13, 27530, 1330, 16291, 628, 198 ]
4.090909
33
from django.shortcuts import render from django.template import loader from django.http import HttpResponse from django.shortcuts import render, redirect from .models import Patient from django.contrib import messages import pandas as pd from django.contrib.auth.decorators import login_required from web3 import...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 201, 198, 6738, 42625, 14208, 13, 28243, 1330, 40213, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 201, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941...
2.813146
1,354
import _dictdraw, sys d = {} surface = _dictdraw.draw_dictionary(d, [4]) surface.write_to_png(sys.argv[1])
[ 11748, 4808, 11600, 19334, 11, 25064, 198, 198, 67, 796, 23884, 198, 42029, 796, 4808, 11600, 19334, 13, 19334, 62, 67, 14188, 7, 67, 11, 685, 19, 12962, 198, 42029, 13, 13564, 62, 1462, 62, 11134, 7, 17597, 13, 853, 85, 58, 16, 1...
2.4
45
# coding=utf-8 #!/usr/bin/env python3 from libs.check_modules import check_modules from sys import exit from os import _exit check_modules() from os import path from libs.logo import print_logo from libs.utils import print_success from libs.utils import print_error from libs.utils import ask_question ...
[ 2, 19617, 28, 40477, 12, 23, 201, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 201, 198, 6738, 9195, 82, 13, 9122, 62, 18170, 1330, 2198, 62, 18170, 201, 198, 6738, 25064, 1330, 8420, 201, 198, 6738, 28686, 1330, ...
2.62614
329
# 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 # distribu...
[ 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 220, 220, 921, 743, 7330, 257, 4866,...
2.556923
650
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ NumPy Array Editor Dialog based on Qt """ # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Standa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 201, 198, 2, 15069, 220, 23688, 1082, 4935, 25767, 669, 201, 198, 2, 49962, 739, 262, 2846, 286, 262, 17168, 13789, 201, 198, 2, 357, 3826, 13997, 1082, 14, ...
1.864888
2,324
import datetime import unittest import pytest from elasticsearch import NotFoundError
[ 11748, 4818, 8079, 198, 11748, 555, 715, 395, 198, 11748, 12972, 9288, 198, 6738, 27468, 12947, 1330, 1892, 21077, 12331, 628 ]
4.142857
21
'''*******AUTO-GENERATED TOPOLOGY*********''' from __future__ import print_function from builtins import range from builtins import object from tcutils.util import get_random_name,get_random_cidr if __name__ == '__main__': print("Currently topology limited to one domain/project..") print("Based on need, can b...
[ 7061, 6, 2466, 8162, 39371, 46, 12, 35353, 1137, 11617, 28662, 43781, 4557, 9, 7061, 6, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 3170, 1040, 1330, 2837, 198, 6738, 3170, 1040, 1330, 2134, 198, 6738, 256, 8968, 44...
2.66877
317
""" Defines the PolygonPlot class. """ from __future__ import with_statement # Major library imports import numpy as np # Enthought library imports. from enable.api import LineStyle, black_color_trait, \ transparent_color_trait from kiva.agg import points_in_polygon from traits.api ...
[ 37811, 2896, 1127, 262, 12280, 14520, 43328, 1398, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 198, 2, 8386, 5888, 17944, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 2039, 28895, 5888, 17944, 13, ...
2.611111
180
import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) API_DATA_URL = "https://invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.InstrumentsService/" API_LASTPRICES_URL = "https://invest-public-api.tinkoff.ru/rest/\ tinkoff.public.invest.api.contract.v1.Mar...
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 17614, 62, 26947, 62, 21886, 796, 366, 545...
2.464286
224
""" HUMAnN2: quantify_families module Compute alignments by gene family Copyright (c) 2014 Harvard School of Public Health 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, inc...
[ 37811, 198, 39, 5883, 2025, 45, 17, 25, 36336, 62, 44769, 3922, 8265, 198, 7293, 1133, 10548, 902, 416, 9779, 1641, 198, 198, 15269, 357, 66, 8, 1946, 11131, 3961, 286, 5094, 3893, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 2...
2.655149
1,447
import threading from multiprocessing import Queue results = [] results2 = [] q = Queue() t2 = threading.Thread(target=add_num, args=(q, )) t1 = threading.Thread(target=take_numbers, args=(q, )) t2.start() t1.start() t2.join() t1.join() q.close() for result in results: print ("adunare =", result) for resul...
[ 11748, 4704, 278, 198, 6738, 18540, 305, 919, 278, 1330, 4670, 518, 220, 220, 220, 198, 198, 43420, 796, 17635, 198, 43420, 17, 796, 17635, 198, 198, 80, 796, 4670, 518, 3419, 198, 83, 17, 796, 4704, 278, 13, 16818, 7, 16793, 28, ...
2.513699
146
''' m x n Start Finish 7 x 3 1: : m = 3, n = 2 : 3 : 3 1. -> -> 2. -> -> 3. -> -> 2: : m = 7, n = 3 : 28 LeetCode https://leetcode-cn.com/problems/unique-paths '''
[ 7061, 6, 198, 285, 2124, 299, 220, 7253, 220, 198, 198, 48658, 628, 628, 198, 198, 22, 2124, 513, 220, 628, 198, 198, 16, 25, 198, 198, 25, 285, 796, 513, 11, 299, 796, 362, 198, 25, 513, 198, 25, 198, 513, 220, 198, 16, 13, ...
1.743119
109
import os import os.path as osp import numpy as np from joblib import Parallel, delayed from tensorflow.keras.utils import get_file from tqdm import tqdm from spektral.data import Dataset, Graph from spektral.utils import label_to_one_hot, sparse from spektral.utils.io import load_csv, load_sdf ATOM_TYPES = [1, 6, 7...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1693, 8019, 1330, 42945, 11, 11038, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 26791, 1330, 651, 62, 7753, 198, 6738, ...
2.625
136
from adafruit_circuitplayground.express import cpx # Main loop gets x, y and z axis acceleration, prints the values, and turns on # red, green and blue, at levels related to the x, y and z values. while True: if cpx.switch: print("Slide switch off!") cpx.pixels.fill((0, 0, 0)) continue ...
[ 6738, 512, 1878, 4872, 62, 21170, 5013, 1759, 2833, 13, 42712, 1330, 269, 8416, 198, 198, 2, 8774, 9052, 3011, 2124, 11, 331, 290, 1976, 16488, 20309, 11, 20842, 262, 3815, 11, 290, 4962, 319, 198, 2, 2266, 11, 4077, 290, 4171, 11, ...
1.923323
313
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches as patches def get_low_freq_data(data): """ Return a data matrix with 0.1s per time step data. (from 0.01s data) """ matrix = np.zeros((1, data.shape[1])) for i in range(data.shape[0]): if i % 10 ...
[ 11748, 299, 32152, 355, 45941, 220, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 220, 201, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 220, 201, 198, 11748, 2603, 29487, 8019, 13, 8071, 2052, 355, 16082, 201, 1...
1.959475
3,430
import balancesheet.mongoData.equities_data_service as dsvce from userInteraction.financeCliInteraction import FinanceCliInteraction import ledgerkeeper.mongoData.account_data_service as dsvca from balancesheet.enums import EquityClass, AssetType, LiabiltyType, EquityTimeHorizon, EquityStatus, EquityContingency import ...
[ 11748, 25223, 25473, 13, 76, 25162, 6601, 13, 4853, 871, 62, 7890, 62, 15271, 355, 288, 21370, 344, 198, 6738, 2836, 9492, 2673, 13, 69, 14149, 2601, 72, 9492, 2673, 1330, 15007, 2601, 72, 9492, 2673, 198, 11748, 37208, 13884, 13, 76,...
3.6
95
# # PySNMP MIB module CISCO-DOT11-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DOT11-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:55:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 36159, 8220, 12, 35, 2394, 1157, 12, 48, 2640, 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, ...
2.868733
9,454
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings") # django WSGI application from django.core.wsgi import get_wsgi_application application = get_wsgi_application() # load SnapSearch API credentials api_email = "<email>" api_key = "<key>" # initialize the interceptor from SnapSearch im...
[ 11748, 28686, 198, 198, 418, 13, 268, 2268, 13, 2617, 12286, 7203, 35028, 1565, 11230, 62, 28480, 51, 20754, 62, 33365, 24212, 1600, 366, 31373, 62, 6894, 13, 33692, 4943, 198, 198, 2, 42625, 14208, 25290, 18878, 3586, 198, 6738, 42625,...
3.49375
160
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2021 Lenovo # # 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 ...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 33448, 40269, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345,...
2.290449
1,780
import numpy as np from fym.core import BaseSystem
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 277, 4948, 13, 7295, 1330, 7308, 11964, 628 ]
3.3125
16
# 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. from typing import Iterable, Optional, Tuple import torch from torch.utils.data import DataLoader def get_dataloaders(opts) -> Tuple[Iterabl...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, 198, ...
2.256623
604
""" Next lexicographical permutation algorithm https://www.nayuki.io/page/next-lexicographical-permutation-algorithm """
[ 37811, 198, 10019, 31191, 291, 17046, 9943, 7094, 11862, 198, 198, 5450, 1378, 2503, 13, 77, 323, 11308, 13, 952, 14, 7700, 14, 19545, 12, 2588, 291, 17046, 12, 16321, 7094, 12, 282, 42289, 198, 37811, 628 ]
3.324324
37
import json import os from argparse import ArgumentTypeError from eth_typing import Address from web3.contract import Contract from settings import MIN_VAL, MAX_VAL, DEPLOYED_CONTRACTS, CONFIG_DIR def range_limited_val(arg: str) -> int: """ Type function for argparse - int within some predefined bound...
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 1822, 29572, 1330, 45751, 6030, 12331, 198, 198, 6738, 4555, 62, 774, 13886, 1330, 17917, 198, 6738, 3992, 18, 13, 28484, 1330, 17453, 198, 198, 6738, 6460, 1330, 20625, 62, 23428, 11, 25882, ...
2.770335
209
"""add topics Revision ID: 816ea3631582 Revises: 37a124b0099b Create Date: 2021-03-13 14:20:10.044131 """ from alembic import op import sqlalchemy as sa import bot # revision identifiers, used by Alembic. revision = "816ea3631582" down_revision = "37a124b0099b" branch_labels = None depends_on = None
[ 37811, 2860, 10233, 198, 198, 18009, 1166, 4522, 25, 807, 1433, 18213, 2623, 27936, 6469, 198, 18009, 2696, 25, 5214, 64, 17464, 65, 405, 2079, 65, 198, 16447, 7536, 25, 33448, 12, 3070, 12, 1485, 1478, 25, 1238, 25, 940, 13, 43977, ...
2.579832
119
"""A pure Python implementation of import.""" __all__ = ['__import__', 'import_module', 'invalidate_caches'] # Bootstrap help ##################################################### # Until bootstrapping is complete, DO NOT import any modules that attempt # to import importlib._bootstrap (directly or indirectly)....
[ 37811, 32, 5899, 11361, 7822, 286, 1330, 526, 15931, 201, 198, 834, 439, 834, 796, 37250, 834, 11748, 834, 3256, 705, 11748, 62, 21412, 3256, 705, 259, 12102, 378, 62, 66, 3694, 20520, 201, 198, 201, 198, 2, 18892, 26418, 1037, 1303, ...
3.025072
1,037
from __future__ import annotations import base64 import io import logging import pathlib from typing import Optional # TODO: Remove these, as they should be contained in the numpy backend. import numpy as np import PIL.Image as PImage import arlunio.ast as ast import arlunio.color as color import arlunio.mask as mas...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 2779, 2414, 198, 11748, 33245, 198, 11748, 18931, 198, 11748, 3108, 8019, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 16926, 46, 25, 17220, 777, 11, 355, 484, 815, 307, 7763, 287, ...
2.485083
2,715
from copy import copy try: # Python 2 only: from StringIO import StringIO # create a variant that can serve as a context manager except ImportError: from io import StringIO try: # python 3.5+ from typing import Dict, Any from yamlable import Y except ImportError: pass import pytest from ...
[ 6738, 4866, 1330, 4866, 198, 28311, 25, 198, 220, 220, 220, 1303, 11361, 362, 691, 25, 198, 220, 220, 220, 422, 10903, 9399, 1330, 10903, 9399, 628, 220, 220, 220, 1303, 2251, 257, 15304, 326, 460, 4691, 355, 257, 4732, 4706, 198, 1...
2.53092
1,326
# -*- test-case-name: twisted.web.test.test_web -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This is a web server which integrates with the twisted.internet infrastructure. @var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render} implementations can return...
[ 2, 532, 9, 12, 1332, 12, 7442, 12, 3672, 25, 19074, 13, 12384, 13, 9288, 13, 9288, 62, 12384, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 40006, 24936, 46779, 13, 198, 2, 4091, 38559, 24290, 329, 3307, 13, 198, 198, 37811, 198, 1212,...
3.232895
760
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( symbol="DOGE", network_name="Dogecoin", subnet_name="mainnet", wif_prefix_hex="9e", address_prefix_hex="1e", pay_to_script_prefix_hex="16", bip32_prv_prefix_hex="02fd3955", bip32_pub_prefix_hex="02fd3929")...
[ 6738, 12972, 3630, 13, 3262, 5225, 13, 35395, 680, 1330, 2251, 62, 35395, 680, 62, 27349, 198, 198, 27349, 796, 2251, 62, 35395, 680, 62, 27349, 7, 198, 220, 220, 220, 6194, 2625, 35, 7730, 36, 1600, 3127, 62, 3672, 2625, 5211, 469,...
2.631148
122
def hamming(n): """Returns the nth hamming number""" hamming = {1} x = 1 while len(hamming) <= n * 3.5: new_hamming = {1} for i in hamming: new_hamming.add(i * 2) new_hamming.add(i * 3) new_hamming.add(i * 5) # merge new number into hamming set...
[ 4299, 8891, 2229, 7, 77, 2599, 198, 220, 220, 220, 37227, 35561, 262, 299, 400, 8891, 2229, 1271, 37811, 198, 220, 220, 220, 8891, 2229, 796, 1391, 16, 92, 198, 220, 220, 220, 2124, 796, 352, 198, 220, 220, 220, 981, 18896, 7, 276...
2.090566
265
import logging from grpc_health.v1 import health_pb2, health_pb2_grpc from grpc_health.v1.health import HealthServicer from needlestack.apis import servicers_pb2_grpc from needlestack.servicers import factory from needlestack.servicers.merger import MergerServicer from examples import configs logging.getLogger("kaz...
[ 11748, 18931, 198, 198, 6738, 1036, 14751, 62, 13948, 13, 85, 16, 1330, 1535, 62, 40842, 17, 11, 1535, 62, 40842, 17, 62, 2164, 14751, 198, 6738, 1036, 14751, 62, 13948, 13, 85, 16, 13, 13948, 1330, 3893, 11838, 16647, 198, 198, 673...
2.923664
131
import os import shogi import backoff import subprocess from util import * import logging logger = logging.getLogger(__name__) import engine_ctrl
[ 11748, 28686, 198, 11748, 427, 44381, 198, 11748, 736, 2364, 198, 11748, 850, 14681, 198, 6738, 7736, 1330, 1635, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 11748, 3113, ...
3.355556
45
from CGAL.CGAL_Kernel import Point_2 from CGAL.CGAL_Kernel import Weighted_point_2 from CGAL.CGAL_Alpha_shape_2 import Alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2_Face_handle from CGAL.CGAL_Alpha_shape_2 import GENERAL, EXTERIOR, SI...
[ 6738, 29925, 1847, 13, 39816, 1847, 62, 42, 7948, 1330, 6252, 62, 17, 198, 6738, 29925, 1847, 13, 39816, 1847, 62, 42, 7948, 1330, 14331, 276, 62, 4122, 62, 17, 198, 6738, 29925, 1847, 13, 39816, 1847, 62, 38077, 62, 43358, 62, 17, ...
2.206284
732
''' Created on Jan 18, 2018 @author: riteshagarwal ''' java = False rest = False cli = False
[ 7061, 6, 198, 41972, 319, 2365, 1248, 11, 2864, 198, 198, 31, 9800, 25, 41302, 71, 32452, 16783, 198, 7061, 6, 198, 12355, 796, 10352, 198, 2118, 796, 10352, 198, 44506, 796, 10352 ]
2.818182
33
import scene scene.run(MyScene())
[ 11748, 3715, 220, 220, 198, 198, 29734, 13, 5143, 7, 3666, 36542, 28955, 198 ]
2.642857
14
from bot.commands import BaseCommand import mongo
[ 6738, 10214, 13, 9503, 1746, 1330, 7308, 21575, 198, 198, 11748, 285, 25162, 628 ]
3.714286
14
from __future__ import annotations import subprocess import os from typing import List, Dict, Iterator, Optional, Tuple def __iter__(self) -> Iterator[str]: return iter(self._split_tokens()) def __str__(self) -> str: return f'<STDOUT value={self.value} code={self.code} >' def _split_t...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 850, 14681, 198, 11748, 28686, 198, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 11, 40806, 1352, 11, 32233, 11, 309, 29291, 628, 628, 220, 220, 220, 825, 11593, 2676, 834, 7, 944,...
2.043974
614
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import absolute_import, unicode_literals from flask import render_template from markupsaf...
[ 2, 770, 2393, 318, 636, 286, 1423, 3713, 13, 198, 2, 15069, 357, 34, 8, 6244, 532, 12131, 327, 28778, 198, 2, 198, 2, 1423, 3713, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 13096, 340, 739, 262, 2846,...
3.427711
166
#!/usr/bin/env python # # Generated Mon May 2 14:23:33 2011 by parse_xsd.py version 0.4. # # A summary of available specifications can be found at: # https://wiki.oasis-open.org/security/FrontPage # # saml core specifications to be found at: # if any question arise please query the following pdf. # http://docs.oasis-...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 198, 2, 2980, 515, 2892, 1737, 220, 362, 1478, 25, 1954, 25, 2091, 2813, 416, 21136, 62, 87, 21282, 13, 9078, 2196, 657, 13, 19, 13, 198, 2, 198, 2, 317, 10638, 286, 1695...
2.718184
4,801
#!/usr/bin/env python import gym import rospy from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment # initialise environment rospy.init_node('turtlebot2_maze_random', anonymous=True, log_level=rospy.WARN) task_and_robot_environment_name = rospy.get_param('/turtlebot2/task_and_robot_environment_name') e...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 11550, 198, 11748, 686, 2777, 88, 198, 6738, 1280, 1872, 62, 4951, 13, 9654, 1872, 62, 4951, 62, 11321, 1330, 7253, 11505, 20185, 62, 49, 2640, 62, 31441, 198, 198, 2, 42...
2.463983
472
import numpy as np board = np.zeros(shape=(9, 9)) count = 0 if __name__ == "__main__": main()
[ 11748, 299, 32152, 355, 45941, 198, 198, 3526, 796, 45941, 13, 9107, 418, 7, 43358, 16193, 24, 11, 860, 4008, 198, 9127, 796, 657, 628, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220,...
2.319149
47
import numpy as np from theano import function import theano.tensor as T def make_vector(): """ Returns a new Theano vector. """ return T.vector() def make_matrix(): """ Returns a new Theano matrix. """ return T.matrix() def elemwise_mul(a, b): """ a: A theano matrix b: ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 262, 5733, 1330, 2163, 198, 11748, 262, 5733, 13, 83, 22854, 355, 309, 198, 198, 4299, 787, 62, 31364, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16409, 257, 649, 383, 5733, 15879, ...
2.241935
496
# Copyright 2012 OpenStack Foundation # # 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 ...
[ 2, 15069, 2321, 4946, 25896, 5693, 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, 428, 2393, 2845, 287, 11846, 351, 26...
3.260417
288
# coding=utf-8 # Copyright 2020 The TF-Agents 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 License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 12131, 383, 24958, 12, 10262, 658, 46665, 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, ...
2.836203
2,497
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ 2, 15069, 2211, 25, 7381, 20836, 3457, 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, 345, 743, 198, 2, 220, 220, 220, 407, ...
2.488911
992
from sqlalchemy.orm.session import Session from app import crud from .utils import insert, get_content
[ 6738, 44161, 282, 26599, 13, 579, 13, 29891, 1330, 23575, 198, 198, 6738, 598, 1330, 1067, 463, 198, 6738, 764, 26791, 1330, 7550, 11, 651, 62, 11299, 628 ]
3.75
28
#!/usr/bin/python # Copyright (C) 2014 Belledonne Communications SARL # # This program 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 2 # of the License, or (at your option) any later version....
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 357, 34, 8, 1946, 7459, 276, 47476, 14620, 47341, 43, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 13096, 340, 739, 2...
3.291519
566
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 1...
3.222015
536
from datetime import date, datetime, timedelta from decimal import Decimal import unittest from dateutil.tz import tzutc import six from yolk import utils
[ 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 11, 28805, 12514, 198, 6738, 32465, 1330, 4280, 4402, 198, 11748, 555, 715, 395, 198, 198, 6738, 3128, 22602, 13, 22877, 1330, 256, 89, 315, 66, 198, 11748, 2237, 198, 198, 6738, 331, 1359...
3.434783
46
""" A matrix will be an N sized list of 4 element lists. Each individual list will represent an [x, y, z, 1] point. For multiplication purposes, consider the lists like so: x0 x1 xn y0 y1 yn z0 z1 ... zn 1 1 1 """ import math #print the matrix such that it looks like #the template in ...
[ 37811, 201, 198, 32, 17593, 481, 307, 281, 399, 19943, 1351, 286, 604, 5002, 8341, 13, 201, 198, 10871, 1981, 1351, 481, 2380, 281, 685, 87, 11, 331, 11, 1976, 11, 352, 60, 966, 13, 201, 198, 1890, 48473, 4959, 11, 2074, 262, 8341...
2.67027
185
from bs4 import BeautifulSoup import requests import sys, os from time import sleep sys.path.insert(0, '/home/may/Dropbox/Programming/spice/') import spice_api as spice if __name__ == '__main__': main()
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 198, 11748, 25064, 11, 28686, 198, 198, 6738, 640, 1330, 3993, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 31051, 11195, 14, 11261, 14, 26932, 3524, 14, 15167, 2229, ...
2.851351
74
import os from pathlib import Path from datetime import timedelta from celery.schedules import crontab from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get( 'SECRET_...
[ 11748, 28686, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 18725, 1924, 13, 1416, 704, 5028, 1330, 1067, 756, 397, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62...
2.363313
2,813
import configparser import os dir_path = os.path.dirname(os.path.realpath(__file__)) dir_path += '/cfg.ini'
[ 11748, 4566, 48610, 198, 11748, 28686, 628, 628, 198, 198, 15908, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 15908, 62, 6978, 15853, 31051, 37581, 13, 5362, 6, 19...
2.627907
43
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com> # # 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 applicabl...
[ 2, 15069, 357, 34, 8, 1946, 304, 20795, 590, 35516, 1279, 677, 26426, 31, 268, 709, 590, 13, 785, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 77...
3.641921
229
from flask import Flask; from configuration import Configuration; from flask_migrate import Migrate, init, migrate, upgrade; from models import database, Role, UserRole, User; from sqlalchemy_utils import database_exists, create_database; application = Flask(__name__); application.config.from_object(Configuration); m...
[ 6738, 42903, 1330, 46947, 26, 198, 6738, 8398, 1330, 28373, 26, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 11, 2315, 11, 32492, 11, 8515, 26, 198, 6738, 4981, 1330, 6831, 11, 20934, 11, 11787, 47445, 11, 11787, 26, 198, 6738, ...
2.251089
689
from __future__ import print_function import os import json import numpy as np if __name__ == '__main__': model_list = [ 'random_forest_classification', 'xgboost_classification', 'xgboost_regression', 'single_deep_classification', 'single_deep_regression' ] mode...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 33918, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834,...
2.057646
1,648
# 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.341463
246
# -*- coding: utf-8 -*- import numpy as np #import cmath as cm # Main parameters for window # 'record_every': number of time_steps one between two consecutive record events window_params = {'kernel': 'RK4','nstep_update_plot': 100, 'step_size': 0.01, 'array_size': 10000, 'streaming': True, 'record_state':False, ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 2, 11748, 269, 11018, 355, 12067, 198, 198, 2, 8774, 10007, 329, 4324, 198, 2, 220, 220, 220, 220, 705, 22105, 62, 16833, 1035...
2.77937
2,443
from multiprocessing import Pool import EnvEq as ee import numpy as np import itertools as it import os #parsing input into numpy arrays from input import * y0=np.array([y0_Tpos,y0_Tpro,y0_Tneg,y0_o2,y0_test]) p=np.array([p_o2,p_test]) mu=np.array([[mu_o2Tpos,mu_o2Tpro,mu_o2Tneg],[mu_testTpos,mu_testTpro,0]]) lam=np.a...
[ 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 2039, 85, 36, 80, 355, 304, 68, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 340, 861, 10141, 355, 340, 198, 11748, 28686, 198, 198, 2, 79, 945, 278, 5128, 656, 299, 32152, 265...
1.935216
602
import csv import re import numpy as np thre = 1.5 # , iteration_num = 2 # if __name__ == '__main__': collect_dataset("") collect_dataset("")
[ 11748, 269, 21370, 198, 11748, 302, 198, 11748, 299, 32152, 355, 45941, 198, 198, 400, 260, 796, 352, 13, 20, 220, 1303, 837, 198, 2676, 341, 62, 22510, 796, 362, 220, 1303, 220, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834,...
2.275362
69
from .analyzer import ProgpilotAnalyzer from .issues_data import issues_data analyzers = { 'phpanlyzer' : { 'name' : 'phpanalyzer', 'title' : 'phpanalyzer', 'class' : ProgpilotAnalyzer, 'language' : 'all', 'issues_data' : issues_data, }, }...
[ 6738, 764, 38200, 9107, 1330, 1041, 31197, 23439, 37702, 9107, 198, 6738, 764, 37165, 62, 7890, 1330, 2428, 62, 7890, 198, 198, 38200, 47031, 796, 1391, 198, 220, 220, 220, 705, 746, 6839, 306, 9107, 6, 1058, 198, 220, 220, 220, 220, ...
1.945455
165
#!/usr/bin/env python import shutil, re, os, sys file_model = "Model.template" bookname = "TechNotes" file_bibtex = "thebib.bib" folder_target = "../pdf/" #if name is a chapter, return its sections #if depend_files contains citation #trim trailing slash ################################################## #now w...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 4423, 346, 11, 302, 11, 28686, 11, 25064, 198, 198, 7753, 62, 19849, 796, 366, 17633, 13, 28243, 1, 198, 2070, 3672, 796, 366, 17760, 16130, 1, 198, 7753, 62, 65, 571, ...
2.460573
558
#!/usr/bin/env python # # Python Serial Port Extension for Win32, Linux, BSD, Jython # module for serial IO for POSIX compatible systems, like Linux # see __init__.py # # (C) 2001-2010 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt # # parts based on code from Gran...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 11361, 23283, 4347, 27995, 329, 7178, 2624, 11, 7020, 11, 347, 10305, 11, 449, 7535, 198, 2, 8265, 329, 11389, 24418, 329, 28069, 10426, 11670, 3341, 11, 588, 7020, 198, 2...
2.189
3,000
import datetime from database import Base from sqlalchemy import Column, String, Integer, ForeignKey, DateTime, Float
[ 11748, 4818, 8079, 198, 6738, 6831, 1330, 7308, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 10903, 11, 34142, 11, 8708, 9218, 11, 7536, 7575, 11, 48436, 628, 628 ]
4.172414
29
import os import math import string import numpy as np import rospy import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D, \ GaussianNoise, BatchNormalization import cv2 import collections import random import time from example_s...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 4731, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 686, 2777, 88, 198, 11748, 41927, 292, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 36...
3.081871
171
from Kronos_heureka_code.Zeit.Uhrzeit import Uhrzeit, Stunde, Minute, Sekunde from Kronos_heureka_code.Zeit.Datum.Monat import Monate from Kronos_heureka_code.Zeit.Datum.Jahr import Jahr, Zeitrechnung from Kronos_heureka_code.Zeit.Datum.Tag import Tag
[ 6738, 44732, 418, 62, 258, 495, 4914, 62, 8189, 13, 36056, 270, 13, 52, 11840, 2736, 270, 1330, 471, 11840, 2736, 270, 11, 520, 917, 68, 11, 38573, 11, 37558, 917, 68, 198, 6738, 44732, 418, 62, 258, 495, 4914, 62, 8189, 13, 36056...
2.446602
103
import logging
[ 11748, 18931, 628 ]
5.333333
3
# type: ignore from typing import Union, List, Dict from urllib.parse import urlparse import urllib3 from pymisp import ExpandedPyMISP, PyMISPError, MISPObject, MISPSighting, MISPEvent, MISPAttribute from pymisp.tools import GenericObjectGenerator import copy from pymisp.tools import FileObject from CommonServerPytho...
[ 2, 2099, 25, 8856, 198, 6738, 19720, 1330, 4479, 11, 7343, 11, 360, 713, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 11748, 2956, 297, 571, 18, 198, 198, 6738, 279, 4948, 8802, 1330, 5518, 12249, 20519, 44, 1797, ...
2.482765
16,797
from bs4 import BeautifulSoup import os import wget from urllib.request import Request, urlopen bicycles=[{'name': 'Kron XC150 27.5 HD Bisiklet', 'link': 'https://www.epey.com/bisiklet/kron-xc150-27-5-hd.html'}, {'name': 'Corelli Trivor 3 Bisiklet', 'link': 'https://www.epey.com/bisiklet/corelli-trivor-3-0.html'}, {'...
[ 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 28686, 198, 11748, 266, 1136, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19390, 11, 19016, 9654, 198, 198, 65, 4611, 5427, 41888, 90, 6, 3672, 10354, 705, 42, 1313, 1395, ...
2.278
8,741
from django.conf import settings from redminelib import Redmine as DefaultRedmine from .validator import RedmineInstanceValidator
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 2266, 1084, 417, 571, 1330, 2297, 3810, 355, 15161, 7738, 3810, 198, 198, 6738, 764, 12102, 1352, 1330, 2297, 3810, 33384, 47139, 1352, 628 ]
4
33
import pandas as pd import numpy as np import matplotlib.pyplot as plt import scipy.stats from finished_files.survey_data_dictionary import DATA_DICTIONARY # Load data # We want to take the names list from our data dictionary names = [x.name for x in DATA_DICTIONARY] # Generate the list of names to import usecols =...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 629, 541, 88, 13, 34242, 198, 198, 6738, 5201, 62, 16624, 13, 11793, 3304, 62, 7890, 62, ...
2.623366
1,224
import torch from torch.nn import functional as F from torch import nn from torch.autograd import Variable from adet.utils.comm import compute_locations, aligned_bilinear def lovasz_grad(gt_sorted): """ Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper """ p = len(g...
[ 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 198, 6738, 512, 316, 13, 26791, 13, 9503, 1330, 24061, 62, 17946, 602, 11, 198...
2.415709
522
# Copyright 2016 Mirantis 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, 1584, 7381, 20836, 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,...
3.718182
220
""" A simple wrapper for the Bongo Iowa City bus API. """ import requests as req
[ 37811, 198, 32, 2829, 29908, 329, 262, 347, 25162, 9406, 2254, 1323, 7824, 13, 198, 37811, 198, 198, 11748, 7007, 355, 43089, 628 ]
3.608696
23
import random import socket import string import sys import threading import time
[ 11748, 4738, 198, 11748, 17802, 198, 11748, 4731, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 640, 628 ]
4.368421
19
def default_evaluator(model, X_test, y_test): """A simple evaluator that takes in a model, and a test set, and returns the loss. Args: model: The model to evaluate. X_test: The features matrix of the test set. y_test: The one-hot labels matrix of the test set. ...
[ 4299, 4277, 62, 18206, 84, 1352, 7, 19849, 11, 1395, 62, 9288, 11, 331, 62, 9288, 2599, 201, 198, 220, 220, 220, 37227, 32, 2829, 5418, 84, 1352, 326, 2753, 287, 257, 2746, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 290, 2...
2.237374
198
import random yolo=Yolov3() for data in yolo: print(data)
[ 11748, 4738, 198, 88, 14057, 28, 56, 349, 709, 18, 3419, 198, 1640, 1366, 287, 331, 14057, 25, 198, 197, 4798, 7, 7890, 8, 198 ]
2.36
25
import math import numpy as np import librosa from utils import hparams as hp from scipy.signal import lfilter import soundfile as sf ''' def build_mel_basis(): return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, fmin=hp.fmin) ''' def reconstruct_waveform(mel, n_iter=32): ...
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 9195, 4951, 64, 198, 6738, 3384, 4487, 1330, 289, 37266, 355, 27673, 198, 6738, 629, 541, 88, 13, 12683, 282, 1330, 300, 24455, 198, 11748, 2128, 7753, 355, 264, 69, 628, 6...
2.313433
335
from getratings.models.ratings import Ratings
[ 6738, 651, 10366, 654, 13, 27530, 13, 10366, 654, 1330, 36826, 201, 198, 201, 198 ]
3.266667
15