content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/bin/env python # Vulture often detects false positives when analyzing a code # base. If there are particular things you wish to ignore, # add them below. This file is consumed by # scripts/dead_code/find-dead-code.sh from vulture.whitelist_utils import Whitelist view_whitelilst = Whitelist() # Example: # view_w...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 198, 2, 569, 6456, 1690, 39382, 3991, 38548, 618, 22712, 257, 2438, 198, 2, 2779, 13, 1002, 612, 389, 1948, 1243, 345, 4601, 284, 8856, 11, 198, 2, 751, 606, 2174, 13, 770, 2393, 318, 13529, ...
3.263636
110
# Copyright (c) OpenMMLab. All rights reserved. import warnings from collections import abc from contextlib import contextmanager from functools import wraps import torch from mmdet.utils import get_root_logger def cast_tensor_type(inputs, src_type=None, dst_type=None): """Recursively convert Tensor in inputs f...
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 11748, 14601, 198, 6738, 17268, 1330, 450, 66, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 11748, 28034, 198,...
2.185885
1,006
# import packages to extend python (just like we extend sublime, or Atom, or VSCode) from random import randint from gameComponents import gameVars, chooseWinner while gameVars.player is False: print("=======================*/ RPS CONTEST /*=======================") print("Computer Lives: ", gameVars.ai_lives, "/"...
[ 2, 1330, 10392, 284, 9117, 21015, 357, 3137, 588, 356, 9117, 41674, 11, 393, 33102, 11, 393, 569, 6173, 1098, 8, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 983, 7293, 3906, 1330, 983, 53, 945, 11, 3853, 48056, 628, 198, 198, 4514...
3.005277
758
import pandas as pd import os
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686 ]
3.222222
9
import time from threading import Timer i = 0 if __name__ == "__main__": print("Starting...") rt = RepeatedTimer(0.05, timeTest) # it auto start ,so dont need rt.start() try: ST = time.time() time.sleep(5) except Exception as e: raise e finally: ...
[ 11748, 640, 220, 201, 198, 6738, 4704, 278, 1330, 5045, 263, 201, 198, 201, 198, 72, 796, 657, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 3601, 7203, 22851, 9313, ...
2.039106
179
# coding: utf-8 # In[1]: import keras # In[2]: # scipy import scipy print( ' scipy: %s ' % scipy.__version__) # numpy import numpy print( ' numpy: %s ' % numpy.__version__) # matplotlib import matplotlib print( ' matplotlib: %s ' % matplotlib.__version__) # pandas import pandas print( ' pandas: %s ' % pandas.__...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 41927, 292, 628, 198, 2, 554, 58, 17, 5974, 628, 198, 2, 629, 541, 88, 198, 11748, 629, 541, 88, 198, 4798, 7, 705, 629, 541, 88, 25, 4064...
2.520979
286
from .DefaultColorScheme import DefaultColorScheme
[ 6738, 764, 19463, 10258, 27054, 1326, 1330, 15161, 10258, 27054, 1326, 628 ]
4.333333
12
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.242395
1,019
import matplotlib.pyplot as plt plt.switch_backend('agg') import seaborn as sns sns_plot = \ (sns.jointplot(psi, phi, size=12, space=0, xlim=(-190, 190), ylim=(-190, 190)).plot_joint(sns.kdeplot, zorder=0, n_levels=6)) # sns_pl...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 489, 83, 13, 31943, 62, 1891, 437, 10786, 9460, 11537, 198, 11748, 384, 397, 1211, 355, 3013, 82, 628, 198, 198, 82, 5907, 62, 29487, 796, 3467, 198, 7, 82, 5907, 13, 7...
1.871622
296
from unittest import mock import pytest get_tracer = pytest.importorskip('opentelemetry.trace.get_tracer')
[ 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 12972, 9288, 198, 198, 1136, 62, 2213, 11736, 796, 12972, 9288, 13, 11748, 669, 74, 541, 10786, 404, 298, 11129, 41935, 13, 40546, 13, 1136, 62, 2213, 11736, 11537, 628 ]
2.820513
39
from logic import *
[ 6738, 9156, 1330, 1635, 198 ]
4
5
# Definition for singly-linked list. def initlist(listnum): head = ListNode(listnum[0]) tail = head for num in listnum[1:]: tail.next = ListNode(num) tail = tail.next return head if __name__ == "__main__": sol = Solution() sol.swapPairs(initlist([1,2,3,4]))
[ 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 198, 198, 4299, 2315, 4868, 7, 4868, 22510, 2599, 198, 220, 1182, 796, 7343, 19667, 7, 4868, 22510, 58, 15, 12962, 198, 220, 7894, 796, 1182, 198, 220, 329, 997, 287, 1351, 22510, 58, ...
2.513514
111
#!/usr/bin/python #coding=utf-8 import os from flask import Flask from flask import Response from flask import request app = Flask(__name__) if __name__ == "__main__": app.run()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 66, 7656, 28, 40477, 12, 23, 198, 11748, 28686, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 18261, 198, 6738, 42903, 1330, 2581, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, ...
2.904762
63
""" Ahira Justice, ADEFOKUN justiceahira@gmail.com """ import os import pygame BASE_DIR = os.path.dirname(os.path.abspath(__file__)) IMAGE_DIR = os.path.join(BASE_DIR, "images") BLACK = "BLACK" WHITE = "WHITE" BISHOP = "BISHOP" KING = "KING" KNGHT = "KNIGHT" PAWN = "PAWN" QUEEN = "QUEEN" ROOK = "ROOK"
[ 37811, 198, 220, 220, 220, 7900, 8704, 4796, 11, 5984, 36, 6080, 42, 4944, 198, 220, 220, 220, 5316, 993, 8704, 31, 14816, 13, 785, 198, 37811, 628, 198, 11748, 28686, 198, 11748, 12972, 6057, 628, 198, 33, 11159, 62, 34720, 796, 28...
2.10596
151
from resource_management.core.resources.system import Execute from resource_management.libraries.script import Script from resource_management.core.resources.system import Directory from resource_management.core.resources.system import File from resource_management.core.source import InlineTemplate from resource_manag...
[ 6738, 8271, 62, 27604, 13, 7295, 13, 37540, 13, 10057, 1330, 8393, 1133, 198, 6738, 8271, 62, 27604, 13, 75, 11127, 13, 12048, 1330, 12327, 198, 198, 6738, 8271, 62, 27604, 13, 7295, 13, 37540, 13, 10057, 1330, 27387, 198, 6738, 8271,...
3.957265
117
"""Cue: Script Orchestration for Data Analysis Cue lets your package your data analysis into simple actions which can be connected into a dynamic data analysis pipeline with coverage over even complex data sets. """ DOCLINES = (__doc__ or '').split('\n') from setuptools import find_packages, setup setup(...
[ 37811, 34, 518, 25, 12327, 30369, 12401, 329, 6060, 14691, 201, 198, 201, 198, 34, 518, 8781, 534, 5301, 534, 1366, 3781, 656, 2829, 4028, 543, 460, 307, 5884, 220, 201, 198, 20424, 257, 8925, 1366, 3781, 11523, 351, 5197, 625, 772, ...
2.367052
346
#!/usr/bin/python3.2 # # Zabbix API Python usage example # Christoph Haas <email@christoph-haas.de> # username='' password='1' hostgroup='' item_name='system.cpu.load[,avg1]' zabbix_url='' import zabbix_api import sys # Connect to Zabbix server z=zabbix_api.ZabbixAPI(server=zabbix_url) z.login(user=username, passwor...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 17, 198, 2, 198, 2, 1168, 6485, 844, 7824, 11361, 8748, 1672, 198, 2, 1951, 2522, 50090, 1279, 12888, 31, 43533, 2522, 12, 3099, 292, 13, 2934, 29, 198, 2, 198, 198, 29460, 28, 7061, ...
2.202086
767
import copy import math import os import random import cherrypy """ This is a simple Battlesnake server written in Python. For instructions see https://github.com/BattlesnakeOfficial/starter-snake-python/README.md """ if __name__ == "__main__": server = Battlesnake() cherrypy.config.update({"server.socket_host":...
[ 11748, 4866, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 23612, 9078, 198, 198, 37811, 198, 1212, 318, 257, 2829, 25467, 77, 539, 4382, 3194, 287, 11361, 13, 198, 1890, 7729, 766, 3740, 1378, 12567, 13, 785,...
2.823864
176
# $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/EventIntegrity/EventIntegrityLib.py,v 1.2 2008/08/28 21:50:54 ecephas Exp $
[ 2, 720, 39681, 25, 1220, 77, 9501, 14, 6649, 330, 14, 70, 14, 4743, 459, 14, 2833, 14, 66, 14259, 14, 9861, 459, 26362, 12, 1416, 684, 14, 9237, 34500, 10138, 14, 9237, 34500, 10138, 25835, 13, 9078, 11, 85, 352, 13, 17, 3648, 1...
2.288136
59
"""Gives users direct access to class and functions.""" from mr4mp.mr4mp import pool, mapreduce, mapconcat
[ 37811, 38, 1083, 2985, 1277, 1895, 284, 1398, 290, 5499, 526, 15931, 198, 6738, 285, 81, 19, 3149, 13, 43395, 19, 3149, 1330, 5933, 11, 3975, 445, 7234, 11, 3975, 1102, 9246, 198 ]
3.242424
33
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2...
2.337561
1,025
from collections import defaultdict # Your WordDistance object will be instantiated and called as such: # wordDistance = WordDistance(words) # wordDistance.shortest("word1", "word2") # wordDistance.shortest("anotherWord1", "anotherWord2")
[ 6738, 17268, 1330, 4277, 11600, 628, 198, 198, 2, 3406, 9678, 45767, 2134, 481, 307, 9113, 12931, 290, 1444, 355, 884, 25, 198, 2, 1573, 45767, 796, 9678, 45767, 7, 10879, 8, 198, 2, 1573, 45767, 13, 19509, 395, 7203, 4775, 16, 1600...
3.723077
65
from perceptron import train_network, create_perceptron, test_network from preprocessingData import get_ids_matrix, separate_test_and_training_data, read_word_list from extractRawData import get_raw_data from lstm import create_lstm, create_lstm_with_tensorflow if __name__ == "__main__": main()
[ 6738, 34953, 1313, 1330, 4512, 62, 27349, 11, 2251, 62, 525, 984, 1313, 11, 1332, 62, 27349, 198, 6738, 662, 36948, 6601, 1330, 651, 62, 2340, 62, 6759, 8609, 11, 4553, 62, 9288, 62, 392, 62, 34409, 62, 7890, 11, 1100, 62, 4775, 6...
3.103093
97
# Databricks notebook source import builtins as BI # Setup the capstone import re, uuid from pyspark.sql.types import StructType, StringType, IntegerType, TimestampType, DoubleType from pyspark.sql.functions import col, to_date, weekofyear from pyspark.sql import DataFrame static_tests = None bronze_tests = None silv...
[ 2, 16092, 397, 23706, 20922, 2723, 198, 11748, 3170, 1040, 355, 20068, 198, 198, 2, 31122, 262, 1451, 6440, 198, 11748, 302, 11, 334, 27112, 198, 6738, 279, 893, 20928, 13, 25410, 13, 19199, 1330, 32112, 6030, 11, 10903, 6030, 11, 341...
3.08071
2,255
import requests from bs4 import BeautifulSoup as bs, BeautifulSoup import pandas as pd import numpy as np import re import logging def get_houses_in_location( self, location_url_: str, houses_in_location: set = set(), page_limit: int = 1, page_number: int = 1, ) -> list...
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 275, 82, 11, 23762, 50, 10486, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 302, 198, 11748, 18931, 628, 198, 220, 220, 220, ...
2.300066
1,523
from selenium import webdriver from scrapy.selector import Selector import time chrome_opt = webdriver.ChromeOptions() prefs = {"profile.managed_default_content_settings.images": 2} chrome_opt.add_experimental_option("prefs", prefs) browser = webdriver.Chrome(executable_path="H:\chromedriver.exe", chrome_options=chrom...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 15881, 88, 13, 19738, 273, 1330, 9683, 273, 198, 11748, 640, 198, 198, 46659, 62, 8738, 796, 3992, 26230, 13, 1925, 5998, 29046, 3419, 198, 3866, 9501, 796, 19779, 13317, 13, 39935, ...
2.8875
240
from nine import str from Qt.QtWidgets import QApplication, QStyleFactory from Qt import QtGui from Qt import QtCore import sys import os from PyFlow.App import PyFlow FILE_DIR = os.path.abspath(os.path.dirname(__file__)) SETTINGS_PATH = os.path.join(FILE_DIR, "PyFlow", "appConfig.ini") STYLE_PATH = os.path.join(FILE...
[ 6738, 5193, 1330, 965, 198, 6738, 33734, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 21466, 22810, 198, 6738, 33734, 1330, 33734, 8205, 72, 198, 6738, 33734, 1330, 33734, 14055, 198, 11748, 25064, 198, 11748, 28686, 198, 19...
2.353436
713
import pandas as pd from dash import Dash, html, dcc, Input, Output import altair as alt df = pd.read_csv('../../data/raw/world-data-gapminder_raw.csv') # local run # df = pd.read_csv('data/raw/world-data-gapminder_raw.csv') # heroku deployment url = '/dash_app2/' def add_dash(server): """ It creates a D...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 14470, 1330, 16189, 11, 27711, 11, 288, 535, 11, 23412, 11, 25235, 198, 11748, 5988, 958, 355, 5988, 198, 198, 7568, 796, 279, 67, 13, 961, 62, 40664, 10786, 40720, 40720, 7890, 14, 1831, ...
2.163662
721
# Author: Arrykrishna Mootoovaloo # Collaborators: Alan Heavens, Andrew Jaffe, Florent Leclercq # Email : a.mootoovaloo17@imperial.ac.uk # Affiliation : Imperial Centre for Inference and Cosmology # Status : Under Development ''' Perform all additional operations such as interpolations ''' import os import logging im...
[ 2, 6434, 25, 943, 563, 74, 37518, 2616, 337, 1025, 78, 8325, 2238, 198, 2, 37322, 2024, 25, 12246, 11225, 82, 11, 6858, 449, 21223, 11, 23347, 429, 1004, 565, 2798, 80, 198, 2, 9570, 1058, 257, 13, 76, 1025, 78, 8325, 2238, 1558, ...
2.324229
1,977
from pybench import Test # First imports: import os import package.submodule
[ 6738, 12972, 26968, 1330, 6208, 198, 198, 2, 3274, 17944, 25, 198, 11748, 28686, 198, 11748, 5301, 13, 7266, 21412, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.212766
47
from unittest import TestCase
[ 6738, 555, 715, 395, 1330, 6208, 20448, 628 ]
3.875
8
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# Copyright 2020 Michael Thies <mail@mhthies.de> # # 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 agre...
[ 2, 15069, 12131, 3899, 536, 444, 1279, 4529, 31, 76, 71, 400, 444, 13, 2934, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846,...
3.920188
213
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Simple Http Client, to request html files Modification: 11/09/2017 Author: J. Jnior ''' import httplib import sys #get http server ip - pass in the command line http_server = sys.argv[1] #create a connection with the server conn = httplib.HTTPConnection(htt...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 220, 220, 220, 17427, 367, 29281, 20985, 11, 284, 2581, 27711, 3696, 198, 220, 220, 220, 3401, 2649, 25...
2.713287
286
"""Implement asymmetric cryptography. """ from __future__ import print_function, division, absolute_import from __future__ import unicode_literals from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa, dsa, utils, padding from cryptography.hazmat.pri...
[ 37811, 3546, 26908, 30372, 19482, 45898, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 11, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 45898, 13, 71, ...
2.588398
1,086
""" @ jetou @ cart decision_tree @ date 2017 10 31 """ import numpy as np
[ 37811, 198, 220, 220, 220, 2488, 12644, 280, 198, 220, 220, 220, 2488, 6383, 2551, 62, 21048, 198, 220, 220, 220, 2488, 3128, 2177, 838, 3261, 198, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 628 ]
2.405405
37
from . import frame_manager
[ 6738, 764, 1330, 5739, 62, 37153 ]
4.5
6
import os import sys if sys.version_info[:2] >= (3, 4): import configparser config = configparser.ConfigParser() else: import ConfigParser config = ConfigParser.ConfigParser() config.readfp(open('app/config/config_%s.cfg' % os.environ.get('APP_ENV', 'dev')))
[ 11748, 28686, 198, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 58, 25, 17, 60, 18189, 357, 18, 11, 604, 2599, 198, 220, 220, 220, 1330, 4566, 48610, 198, 220, 220, 220, 4566, 796, 4566, 48610, 13, 16934, 46677, 3419, 198, 17...
2.732673
101
import tkinter from tkinter import * from rsa_decryption_125 import decryptor if __name__ == '__main__': main()
[ 11748, 256, 74, 3849, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 374, 11400, 62, 12501, 13168, 62, 11623, 1330, 42797, 273, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ...
2.833333
42
import paddle.fluid as fluid import parl from parl import layers
[ 11748, 39517, 13, 35522, 312, 355, 11711, 198, 11748, 1582, 75, 198, 6738, 1582, 75, 1330, 11685, 628, 198 ]
3.526316
19
from PyQt4.QtGui import QPalette, QColor __author__ = 'pawel' from PyQt4 import QtGui from PyQt4.QtCore import Qt
[ 6738, 9485, 48, 83, 19, 13, 48, 83, 8205, 72, 1330, 1195, 11531, 5857, 11, 1195, 10258, 198, 198, 834, 9800, 834, 796, 705, 79, 707, 417, 6, 198, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72, 198, 6738, 9485, 48, 83, 19, ...
2.230769
52
import sys, os, urllib, StringIO, traceback, cgi, binascii, getopt, shutil import zipfile, gzip, tarfile #sys.path.append('/usr/local/pypi/lib') import store, config def set_password(store, name, pw): """ Reset the user's password and send an email to the address given. """ user = store.get_user(name.str...
[ 198, 11748, 25064, 11, 28686, 11, 2956, 297, 571, 11, 10903, 9399, 11, 12854, 1891, 11, 269, 12397, 11, 9874, 292, 979, 72, 11, 651, 8738, 11, 4423, 346, 198, 11748, 19974, 7753, 11, 308, 13344, 11, 13422, 7753, 198, 2, 17597, 13, ...
2.248602
1,609
import random import re import six from itertools import izip from geodata.address_expansions.gazetteers import * from geodata.encoding import safe_decode, safe_encode from geodata.text.normalize import normalized_tokens from geodata.text.tokenize import tokenize_raw, token_types from geodata.text.utils import non_br...
[ 11748, 4738, 198, 11748, 302, 198, 11748, 2237, 198, 198, 6738, 340, 861, 10141, 1330, 220, 528, 541, 198, 198, 6738, 4903, 375, 1045, 13, 21975, 62, 11201, 504, 507, 13, 70, 1031, 5857, 364, 1330, 1635, 198, 6738, 4903, 375, 1045, ...
2.4096
625
num = 1 while num <= 10: # Fill in the condition x = num ** 2# Print num squared num = num + 1# Increment num (make sure to do this!) print x print num
[ 22510, 796, 352, 198, 198, 4514, 997, 19841, 838, 25, 220, 1303, 27845, 287, 262, 4006, 198, 220, 220, 220, 2124, 796, 997, 12429, 362, 2, 12578, 997, 44345, 198, 220, 220, 220, 997, 796, 997, 1343, 352, 2, 10791, 434, 997, 357, 1...
2.741935
62
from setuptools import setup, find_packages setup( name='udptest', version='0.1.0', description='UDP benchmarking/testing tool.', long_description=open('README.rst').read(), url='https://github.com/povilasb/httpmeter', author='Povilas Balciunas', author_email='balciunas90@gmail.com', ...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 463, 457, 395, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 6764, 11639, 5...
2.364641
362
from __future__ import division import numpy as np from untwist import data from untwist import transforms def target_accompaniment(target, others, sample_rate=None): """ Given a target source and list of 'other' sources, this function returns the target and accompaniment as untwist.data.audio.Wave objec...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1418, 86, 396, 1330, 1366, 198, 6738, 1418, 86, 396, 1330, 31408, 628, 198, 4299, 2496, 62, 41974, 3681, 7, 16793, 11, 1854, 11, 6291, 62, 4873, 28, ...
2.588997
1,236
import os import re
[ 11748, 28686, 198, 11748, 302 ]
3.8
5
from unittest import TestCase
[ 6738, 555, 715, 395, 1330, 6208, 20448, 628 ]
3.875
8
''' Statement Fibonacci numbers are the numbers in the integer sequence starting with 1, 1 where every number after the first two is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, ... Given a positive integer n, print the nth Fibonacci number. Example input 6 Example output 8 ''' num = int(input()...
[ 7061, 6, 198, 48682, 198, 37, 571, 261, 44456, 3146, 389, 262, 3146, 287, 262, 18253, 8379, 3599, 351, 352, 11, 352, 810, 790, 1271, 706, 262, 717, 734, 318, 262, 2160, 286, 262, 734, 18148, 3392, 25, 198, 198, 16, 11, 352, 11, ...
2.865772
149
from src.sum_up import *
[ 6738, 12351, 13, 16345, 62, 929, 1330, 1635 ]
3
8
# -*- coding: utf-8 -*- """ Created on Fri Jul 13 15:38:11 2018 @author: Yekta """ import csv import numpy as np from sklearn.cluster import KMeans clon = list(csv.reader(open("C:/Users/Yekta/Desktop/stajvol3/MoS2BP Binding Characterization_07-11-17_DY.csv"))) for k in range(1,15): fin=[] for m i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 19480, 5979, 1511, 1315, 25, 2548, 25, 1157, 2864, 201, 198, 201, 198, 31, 9800, 25, 575, 988, 8326, 201, 198, 37811, 201, 198, 201, ...
1.905817
722
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_collision.test_discretedynamicsworld """ from __future__ import unicode_literals, print_function, absolute_import import unittest import bullet from .test_worlds import WorldTestDataMixin
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9288, 62, 26000, 1166, 13, 9288, 62, 15410, 1186, 276, 4989, 873, 6894, 198, 37811, 198, 6738, 11593, 37443...
2.940476
84
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import unittest from force_wfmanager.notifications.ui_notification_hooks_manager \ import \ UINotificationHooksManager from force_wfmanager.notifications.ui_notification_plugin import \ UINotificationPlugin
[ 2, 220, 357, 34, 8, 15069, 3050, 12, 42334, 2039, 28895, 11, 3457, 1539, 9533, 11, 15326, 198, 2, 220, 1439, 2489, 10395, 13, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 2700, 62, 86, 35826, 3536, 13, 1662, 6637, 13, 9019, 62,...
3.071429
98
from django.shortcuts import redirect from .models import UserLanguage
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 198, 198, 6738, 764, 27530, 1330, 11787, 32065, 628 ]
4.294118
17
money = 2000 print(money) # money5000money money += 5000 # money print (money)
[ 26316, 796, 4751, 198, 4798, 7, 26316, 8, 198, 198, 2, 1637, 27641, 26316, 198, 26316, 15853, 23336, 198, 198, 2, 1637, 198, 4798, 357, 26316, 8 ]
2.962963
27
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask import redirect, request, url_for from flask.views import MethodView from flask.ext.security import current_user
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42903, 1330, 18941, 11, 2581, 11, 19016, 62, 1640, 198, 6738, 42903, 13, 33571, 1330, 11789, 7680, 198, 6738...
3.185185
54
"""Randomised linear algebra.""" import numpy.linalg as la
[ 37811, 29531, 1417, 14174, 37139, 526, 15931, 198, 198, 11748, 299, 32152, 13, 75, 1292, 70, 355, 8591, 628 ]
3.210526
19
from bt_utils.console import Console from bt_utils.config import cfg from bt_utils.embed_templates import SuccessEmbed, WarningEmbed from bt_utils.handle_sqlite import DatabaseHandler SHL = Console('BundestagsBot Reload') DB = DatabaseHandler() settings = { 'name': 'reload', 'channels': ['team'], 'mod_cmd...
[ 6738, 275, 83, 62, 26791, 13, 41947, 1330, 24371, 198, 6738, 275, 83, 62, 26791, 13, 11250, 1330, 30218, 70, 198, 6738, 275, 83, 62, 26791, 13, 20521, 62, 11498, 17041, 1330, 16282, 31567, 276, 11, 15932, 31567, 276, 198, 6738, 275, ...
2.903509
114
#! /usr/bin/env python2.7 import getopt, sys, time, util from wmbus import WMBusFrame from Crypto.Cipher import AES if __name__ == "__main__": main(sys.argv[1:]) ''' Class Scanner(threading.Thread): def __init__(self,dev): #something here that initialize serial port d...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 11748, 651, 8738, 11, 25064, 11, 640, 11, 7736, 198, 6738, 266, 2022, 385, 1330, 370, 10744, 385, 19778, 198, 6738, 36579, 13, 34, 10803, 1330, 34329, 198, 220, ...
2.123932
234
# encoding: utf-8 # module gi._gi # from /usr/lib/python3/dist-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 # no doc # imports import _gobject as _gobject # <module '_gobject'> import _glib as _glib # <module '_glib'> import gi as __gi import gobject as __gobject from .object import object
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 8265, 308, 72, 13557, 12397, 198, 2, 422, 1220, 14629, 14, 8019, 14, 29412, 18, 14, 17080, 12, 43789, 14, 12397, 47835, 12397, 13, 13155, 7535, 12, 2327, 76, 12, 87, 4521, 62, 2414, 12, 23...
2.622951
122
#!/usr/bin/env python # -*- coding: utf-8 -*- from selecta import __version__ from setuptools import setup options = dict( name='python-selecta', version=__version__, url='http://github.com/ntamas/python-selecta', description='Python port of @garybernhardt/selecta', license='MIT', author='T...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 2922, 64, 1330, 11593, 9641, 834, 198, 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 25811, 796, 8633, 7, ...
2.428152
341
# cython: language_level=3 from distutils.core import setup, Extension from Cython.Build import cythonize import numpy # import cython_utils import os os.environ["CC"] = "/opt/homebrew/Cellar/gcc/11.2.0_3/bin/g++-11" os.environ["CXX"] = "/opt/homebrew/Cellar/gcc/11.2.0_3/bin/g++-11" setup(ext_modules=cython...
[ 2, 3075, 400, 261, 25, 3303, 62, 5715, 28, 18, 201, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 201, 198, 6738, 327, 7535, 13, 15580, 1330, 3075, 400, 261, 1096, 201, 198, 11748, 299, 32152, 201, 198, 2, 1330, 3075, 4...
2.312775
227
import sys def get_network(args): """ return given network """ if args.MODEL.NAME == 'vgg16': from models.vgg import vgg16_bn net = vgg16_bn() elif args.MODEL.NAME == 'vgg13': from models.vgg import vgg13_bn net = vgg13_bn() elif args.MODEL.NAME == 'vgg11': from models.vgg import vgg11_bn net = vgg11...
[ 11748, 25064, 628, 198, 4299, 651, 62, 27349, 7, 22046, 2599, 198, 197, 37811, 1441, 1813, 3127, 198, 197, 37811, 198, 197, 361, 26498, 13, 33365, 3698, 13, 20608, 6624, 705, 85, 1130, 1433, 10354, 198, 197, 197, 6738, 4981, 13, 85, ...
2.559628
1,937
import pytest from hypothesis import ( given, settings, strategies as st, ) from eth_utils import ( ValidationError, ) from eth.constants import ( ZERO_HASH32, ) from eth2.beacon.committee_helpers import ( get_crosslink_committees_at_slot, ) from eth2.beacon.state_machines.forks.serenity.block...
[ 11748, 12972, 9288, 198, 6738, 14078, 1330, 357, 198, 220, 220, 220, 1813, 11, 198, 220, 220, 220, 6460, 11, 198, 220, 220, 220, 10064, 355, 336, 11, 198, 8, 198, 198, 6738, 4555, 62, 26791, 1330, 357, 198, 220, 220, 220, 3254, 24...
2.812287
293
########################################################################################################### ########################################################################################################### ## SeqtaToSDS ...
[ 29113, 29113, 29113, 7804, 21017, 198, 29113, 29113, 29113, 7804, 21017, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.5868
5,288
""" """ import os from PIL import Image from numpy import * def get_imlist(path): """ JPG :param path: :return: """ return [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.jpg')] def imresize(im, sz): """ :param im: :param sz: :return: """ pil_i...
[ 37811, 198, 198, 37811, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 299, 32152, 1330, 1635, 198, 198, 4299, 651, 62, 320, 4868, 7, 6978, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 449, 6968, 198, 220, 2...
2.081218
197
from django.shortcuts import ( render, redirect, reverse, get_object_or_404, HttpResponse) from django.contrib import messages from shop.models import Product from members.models import Member def load_cart(request): """This view render's the user's cart contents""" return render(request, 'cart/cart.html'...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 357, 198, 220, 220, 220, 8543, 11, 18941, 11, 9575, 11, 651, 62, 15252, 62, 273, 62, 26429, 11, 367, 29281, 31077, 8, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 6128, 1...
2.062798
2,516
from confess import app from confess.config import PORT, DEBUG if __name__ == '__main__': app.run( host='0.0.0.0', port=PORT, debug=DEBUG )
[ 6738, 22127, 1330, 598, 198, 6738, 22127, 13, 11250, 1330, 350, 9863, 11, 16959, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 598, 13, 5143, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2583,...
2.15
80
""" Plots analysis on the workflow variables for experiments with different workflow types and different %of workflow core hours in the workload. Resuls are plotted as barchars that show how much the vas deviate in single and multi from aware. """ import matplotlib from orchestration import get_central_db from orches...
[ 37811, 1345, 1747, 3781, 319, 262, 30798, 9633, 329, 10256, 351, 1180, 198, 1818, 11125, 3858, 290, 1180, 4064, 1659, 30798, 4755, 2250, 287, 262, 26211, 13, 198, 198, 4965, 5753, 389, 37515, 355, 275, 998, 945, 326, 905, 703, 881, 26...
1.738813
3,419
from __future__ import annotations from .title import TitleFromGroupChat, Base
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 764, 7839, 1330, 11851, 4863, 13247, 30820, 11, 7308, 628 ]
4.263158
19
import requests import pandas as pd import matplotlib.pyplot as plt url_gas_data = 'https://raw.githubusercontent.com/KeithGalli/matplotlib_tutorial/master/gas_prices.csv' res1 = requests.get(url_gas_data, allow_redirects=True) with open('gas_prices.csv', 'wb') as file: file.write(res1.content) plt.figure(figsiz...
[ 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6371, 62, 22649, 62, 7890, 796, 705, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 46868, 38, 36546, 14, 6...
2.546798
406
import unittest import uuid from app import survey_loader from app import message_manager from app.tester import run_survey
[ 11748, 555, 715, 395, 198, 11748, 334, 27112, 198, 198, 6738, 598, 1330, 5526, 62, 29356, 198, 6738, 598, 1330, 3275, 62, 37153, 198, 6738, 598, 13, 4879, 353, 1330, 1057, 62, 11793, 3304, 628 ]
3.6
35
from os import environ from azure.storage.table import TableService azure_account_name = environ['AZURE_ACCOUNT_NAME'] azure_account_key = environ['AZURE_ACCOUNT_KEY'] azure_table_name = environ['AZURE_TABLE_NAME'] table = TableService(azure_account_name, azure_account_key) get_entity = table.get_entity
[ 6738, 28686, 1330, 551, 2268, 198, 198, 6738, 35560, 495, 13, 35350, 13, 11487, 1330, 8655, 16177, 198, 198, 1031, 495, 62, 23317, 62, 3672, 796, 551, 2268, 17816, 22778, 11335, 62, 26861, 28270, 62, 20608, 20520, 198, 1031, 495, 62, ...
2.933333
105
import logging import h5py import numpy as np from sklearn.utils import check_random_state from csrank.constants import OBJECT_RANKING from csrank.dataset_reader.letor_dataset_reader import LetorDatasetReader from csrank.dataset_reader.objectranking.util import sub_sampling NAME = "LetorObjectRankingDatasetReader" ...
[ 11748, 18931, 198, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 26791, 1330, 2198, 62, 25120, 62, 5219, 198, 198, 6738, 269, 27891, 962, 13, 9979, 1187, 1330, 25334, 23680, 62, 49, 15154, ...
2.230594
438
from sklearn.preprocessing import QuantileTransformer, PowerTransformer from hydroDL.data import usgs, gageII, gridMET, ntn, GLASS, transform, dbBasin import numpy as np import matplotlib.pyplot as plt from hydroDL.post import axplot, figplot from hydroDL import kPath import json import os import importlib importlib.re...
[ 6738, 1341, 35720, 13, 3866, 36948, 1330, 16972, 576, 8291, 16354, 11, 4333, 8291, 16354, 198, 6738, 17173, 19260, 13, 7890, 1330, 514, 14542, 11, 308, 496, 3978, 11, 10706, 47123, 11, 299, 34106, 11, 10188, 10705, 11, 6121, 11, 20613, ...
2.279851
536
""" The :mod:`pysad.statistics` module contains methods to keep track of statistics on streaming data. """ from .abs_statistic import AbsStatistic from .average_meter import AverageMeter from .count_meter import CountMeter from .max_meter import MaxMeter from .median_meter import MedianMeter from .min_meter import MinM...
[ 37811, 198, 464, 1058, 4666, 25, 63, 79, 893, 324, 13, 14269, 3969, 63, 8265, 4909, 5050, 284, 1394, 2610, 286, 7869, 319, 11305, 1366, 13, 198, 37811, 198, 6738, 764, 8937, 62, 14269, 2569, 1330, 13051, 17126, 2569, 198, 6738, 764, ...
3.311558
199
"""Global index view.""" import pkg_resources from django.shortcuts import render def index(request): """Basic view.""" plugins = \ [plugin.load() for plugin in pkg_resources.iter_entry_points(group='elrados.plugins')] return render(request, "index.html", { "plugins": plugins ...
[ 37811, 22289, 6376, 1570, 526, 15931, 198, 11748, 279, 10025, 62, 37540, 198, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 628, 198, 4299, 6376, 7, 25927, 2599, 198, 220, 220, 220, 37227, 26416, 1570, 526, 15931, 198, 220, 220...
2.634146
123
import pandas as pd import matplotlib.pyplot as plt from zipline.finance.commission import PerShare from zipline.api import set_commission, symbol, order_target_percent import zipline from models.live_momentum import LiveMomentum with open('/Users/landey/Desktop/Eonum/live_model/eouniverse/stock_list.txt', 'r') as f...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 1976, 24705, 500, 13, 69, 14149, 13, 785, 3411, 1330, 2448, 11649, 198, 6738, 1976, 24705, 500, 13, 15042, 1330, 900, 62, ...
2.027708
397
# Copyright 2020 Jan Feitsma (Falcons) # SPDX-License-Identifier: Apache-2.0 #!/usr/bin/env python3 # Jan Feitsma, March 2020 # Robot will continuously intercept around current position. # # For description and usage hints, execute with '-h' import sys, os import time import logging, signal logging.basicConfig(leve...
[ 2, 15069, 12131, 2365, 5452, 896, 2611, 357, 41129, 5936, 8, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 2365, 5452, 896, 2611, 11, ...
2.940541
370
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec, GridSpecFromSubplotSpec from matplotlib.ticker import FuncFormatter def plot_dynamic_strats(t, v_t_strat, v_t_risky, w_t_risky, h_t_risky, num, j_sel): """For details, s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 2603, 29487, 8019, 13, 2164, 2340, 43106, 1330, 24846, ...
1.899477
2,487
import sys import subprocess import time import json import krpc import math import scipy.integrate import numpy as np from PrePlanningChecklist import PrePlanningChecklist from PlannerUiPanel import PlannerUiPanel from MainUiPanel import MainUiPanel from ConfigUiPanel import ConfigUiPanel from AutopilotUiPanel import ...
[ 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 479, 81, 14751, 198, 11748, 10688, 198, 11748, 629, 541, 88, 13, 18908, 4873, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3771, 20854, 768, 9787, 4...
2.668269
208
import os from discord import Webhook, RequestsWebhookAdapter, Colour, Embed
[ 11748, 28686, 198, 198, 6738, 36446, 1330, 5313, 25480, 11, 9394, 3558, 13908, 25480, 47307, 11, 38773, 11, 13302, 276, 628 ]
3.761905
21
#%% #https://github.com/timesler/facenet-pytorch from facenet_pytorch import MTCNN, extract_face import torch import numpy as np import mmcv, cv2 import os import matplotlib.pyplot as plt from PIL import Image # %% #%% device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') print('Running on...
[ 2, 16626, 198, 2, 5450, 1378, 12567, 13, 785, 14, 22355, 1754, 14, 38942, 268, 316, 12, 9078, 13165, 354, 198, 6738, 1777, 268, 316, 62, 9078, 13165, 354, 1330, 337, 4825, 6144, 11, 7925, 62, 2550, 220, 198, 11748, 28034, 198, 11748...
2.099177
2,188
"""Launch Gazebo server and client with command line arguments.""" from launch import LaunchDescription from launch.substitutions import LaunchConfiguration from launch.actions import DeclareLaunchArgument from launch.actions import IncludeLaunchDescription from launch.actions import ExecuteProcess from launch.conditi...
[ 37811, 38296, 21347, 1765, 78, 4382, 290, 5456, 351, 3141, 1627, 7159, 526, 15931, 198, 198, 6738, 4219, 1330, 21225, 11828, 198, 6738, 4219, 13, 7266, 301, 270, 3508, 1330, 21225, 38149, 198, 6738, 4219, 13, 4658, 1330, 16691, 533, 382...
4.692308
104
from contextlib import contextmanager import torch.nn as nn
[ 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198 ]
3.8125
16
import unittest from calculator import tokens, evaluator from calculator.parser import tokenize, infix_to_postfix
[ 11748, 555, 715, 395, 198, 198, 6738, 28260, 1330, 16326, 11, 5418, 84, 1352, 198, 6738, 28260, 13, 48610, 1330, 11241, 1096, 11, 1167, 844, 62, 1462, 62, 7353, 13049, 628 ]
3.741935
31
from flask import Flask, render_template, request import requests import json import os app = Flask(__name__) picfolder = os.path.join('static','pics') app.config['UPLOAD_FOLDER'] = picfolder if __name__ == '__main__': app.run(debug=True)
[ 6738, 42903, 1330, 46947, 11, 220, 201, 198, 220, 220, 220, 220, 8543, 62, 28243, 11, 2581, 201, 198, 11748, 7007, 201, 198, 11748, 33918, 201, 198, 11748, 28686, 201, 198, 201, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 201, 198,...
2.52381
105
from django.conf.urls import url from core.views import me from core.rest import CardViewSet, UserViewSet, NfcCardViewSet, GroupViewSet from core.utils import SharedAPIRootRouter # SharedAPIRootRouter is automatically imported in global urls config router = SharedAPIRootRouter() router.register(r"core/users", UserVie...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 4755, 13, 33571, 1330, 502, 198, 198, 6738, 4755, 13, 2118, 1330, 5172, 7680, 7248, 11, 11787, 7680, 7248, 11, 399, 16072, 16962, 7680, 7248, 11, 4912, 7680, 7248, 1...
2.921875
192
from flora_tools.experiment import *
[ 6738, 48037, 62, 31391, 13, 23100, 3681, 1330, 1635, 628 ]
3.8
10
from rest_framework import serializers from main.models import Suco
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1388, 13, 27530, 1330, 1778, 1073, 198 ]
4.25
16
from .matern_kernel import MaternKernel from .rbf_kernel import RBFKernel from .spectralgp_kernel import SpectralGPKernel __all__ = ["MaternKernel", "RBFKernel", "SpectralGPKernel"]
[ 6738, 764, 76, 9205, 62, 33885, 1330, 337, 9205, 42, 7948, 198, 6738, 764, 81, 19881, 62, 33885, 1330, 17986, 26236, 7948, 198, 6738, 764, 4443, 1373, 31197, 62, 33885, 1330, 13058, 1373, 16960, 42, 7948, 198, 198, 834, 439, 834, 796,...
3
61
# Generated by Django 2.2.10 on 2020-03-24 16:30 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 940, 319, 12131, 12, 3070, 12, 1731, 1467, 25, 1270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.8
30
import requests import os from datetime import datetime import pandas as pd if __name__ == "__main__": main()
[ 11748, 7007, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 19798, 292, 355, 279, 67, 628, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.97561
41
import os import yoloCarAccident as yc # yc.find('test.txt') f1 = open('result2.txt','r') i = 0 s = "" for lines in f1: if(i<80000): s += lines i+=1 else: f2 = open('test.txt','w') f2.write(s) f2.close() try: yc.find('test.txt') except ValueError: pass s = "" i = 0 # break # f2 = open('t...
[ 11748, 28686, 198, 11748, 331, 14057, 9914, 17320, 738, 355, 331, 66, 198, 198, 2, 331, 66, 13, 19796, 10786, 9288, 13, 14116, 11537, 198, 198, 69, 16, 796, 1280, 10786, 20274, 17, 13, 14116, 41707, 81, 11537, 198, 198, 72, 796, 657...
1.919598
199
import socketserver import socket
[ 11748, 37037, 18497, 198, 11748, 17802, 628, 198 ]
4.5
8
#!/usr/bin/env python3 import os, sys sys.path.append(os.path.abspath(__file__ + "/../../")) # just so we can use 'libs' import torch.utils.data import torch.optim as optim from torch import nn import numpy as np import torch from libs.Loader import Dataset from libs.shufflenetv2 import ShuffleNetV2AutoEncoder BA...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 11, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 1343, 12813, 40720, 492, 30487, 4008, 220, 220, 1303, 655,...
2.438356
219
from .progress_bar import ProgressBar from .read_config import read_config
[ 6738, 764, 33723, 62, 5657, 1330, 18387, 10374, 198, 6738, 764, 961, 62, 11250, 1330, 1100, 62, 11250, 198 ]
3.947368
19
#%% # PAGE EXAMPLE # {'title': 'Zuppa_di_pesce_(film)', # 'chains': [{'revisions': ['95861493', '95861612', '95973728'], # 'users': {'93.44.99.33': '', 'Kirk39': '63558', 'AttoBot': '482488'}, # 'len': 3, # 'start': '2018-04-01 04:54:40.0', # 'end': '2018-04-05 07:36:26.0'}], # 'n_chains': 1, # 'n_rever...
[ 198, 2, 16626, 198, 2, 48488, 7788, 2390, 16437, 198, 2, 1391, 6, 7839, 10354, 705, 57, 7211, 64, 62, 10989, 62, 12272, 344, 41052, 26240, 8, 3256, 198, 2, 220, 705, 38861, 10354, 685, 90, 6, 18218, 3279, 10354, 37250, 24, 29796, ...
2.221374
393
from django.contrib.auth.forms import AuthenticationForm from django.core.urlresolvers import reverse from django.views.generic.base import View from django.views.generic.detail import SingleObjectMixin,DetailView from django.shortcuts import render,get_object_or_404,redirect from django.http import HttpResponseRedirec...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 48191, 8479, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, 1330, 3582, 198, 6738, 42625, ...
3.696552
145
#!/usr/bin/python ''' Created on May 23, 2012 @author: Charlie ''' import unittest from mock import patch import xml.etree.ElementTree as ET from TestCgiMainBase import TestCgiMainBase if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 7061, 6, 198, 41972, 319, 1737, 2242, 11, 2321, 198, 198, 31, 9800, 25, 11526, 198, 7061, 6, 198, 11748, 555, 715, 395, 198, 6738, 15290, 1330, 8529, 198, 11748, 35555, 13, 316, 631, 13, ...
2.755814
86