content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# # Copyright (C) 2009 Mendix. All rights reserved. # SUCCESS = 0 # Starting the Mendix Runtime can fail in both a temporary or permanent way. # Some of the errors can be fixed with some help of the user. # # The default m2ee cli program will only handle a few of these cases, by # providing additional hints or intera...
[ 2, 198, 2, 15069, 357, 34, 8, 3717, 337, 19573, 13, 1439, 2489, 10395, 13, 198, 2, 198, 198, 12564, 4093, 7597, 796, 657, 198, 198, 2, 17962, 262, 337, 19573, 43160, 460, 2038, 287, 1111, 257, 8584, 393, 7748, 835, 13, 198, 2, 2...
3.284553
369
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch.utils.data import torchvision
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 11748, 28034, 10178, 628, 628 ]
4.034483
29
# dkhomeleague.py import json import logging import os from string import ascii_uppercase import pandas as pd from requests_html import HTMLSession import browser_cookie3 import pdsheet def contest_leaderboard(self, contest_id): """Gets contest leaderboard""" url = self.api_url + f'scores/v1/meg...
[ 2, 288, 74, 11195, 19316, 13, 9078, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 4731, 1330, 355, 979, 72, 62, 7211, 2798, 589, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 7007, 62, 6494, 1330, 11532, ...
2.234818
2,964
#!/usr/bin/python3 import numpy as np import matplotlib.pyplot as plt t = np.arange(0.0, 3.0, 0.01) s = np.sin(2.5 * np.pi * t) plt.plot(t, s) plt.xlabel('time (s)') plt.ylabel('voltage (mV)') plt.title('Sine Wave') plt.grid(True) plt.show()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 83, 796, 45941, 13, 283, 858, 7, 15, 13, 15, 11, 513, 13, 15, 11, 657, 13...
1.937008
127
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros. n = float(input('\033[32mDigite o numero:\033[m')) print('O nmero digitado \033[33m{0:.0f}m\033[m.\n' 'Ele apresentado em centimetros fica \033[33m{0:.2f}cm\033[m.\n' 'Apresentado em milmetros fica \033[33m{0...
[ 2, 47051, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 23781, 1188, 273, 795, 1138, 4951, 304, 267, 409, 23718, 10385, 17305, 795, 1247, 38813, 4951, 304, 1465, 38813, 4951, 13, 198, 77, 796, 12178, 7, 15414, 10786, 59, 44427, 58, 2624...
2.14346
237
# -*- coding: utf-8 -*- """ Created on Mon Oct 21 08:47:08 2019 @author: dordoloy """ import os import pika import config import getpass publish_fanout()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2556, 2310, 8487, 25, 2857, 25, 2919, 13130, 198, 198, 31, 9800, 25, 288, 585, 349, 726, 198, 37811, 198, 198, 11748, 28686, 198, 11748, ...
2.57377
61
<<<<<<< HEAD # Lint as: python3 ======= >>>>>>> a811a3b7e640722318ad868c99feddf3f3063e36 # Copyright 2020 The Orbit 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 ...
[ 16791, 16791, 16791, 27, 39837, 198, 2, 406, 600, 355, 25, 21015, 18, 198, 1421, 18604, 198, 16471, 33409, 257, 23, 1157, 64, 18, 65, 22, 68, 21, 30120, 22047, 1507, 324, 23, 3104, 66, 2079, 69, 6048, 69, 18, 69, 1270, 5066, 68, ...
2.910295
3,701
from dataclasses import dataclass from apischema import deserialize, deserializer from apischema.json_schema import deserialization_schema # Could be shorten into deserializer(Expression), because class is callable too assert deserialization_schema(Expression) == { "$schema": "http://json-schema.org/draft/20...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 2471, 46097, 2611, 1330, 748, 48499, 1096, 11, 748, 48499, 7509, 198, 6738, 2471, 46097, 2611, 13, 17752, 62, 15952, 2611, 1330, 748, 48499, 1634, 62, 15952, 2611, 628, 628...
3.108108
148
# -*- coding: utf-8 -*- ''' Created on 02/12/2011 @author: chra ''' import csv from operator import itemgetter # ----- Funcin media de la notas de los alumnos ---------- # ---------------------------------------------------------- fin = open('alumnos.csv') lector = csv.DictReader(fin, delimiter=",") # si no se pon...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 41972, 319, 7816, 14, 1065, 14, 9804, 198, 198, 31, 9800, 25, 442, 430, 198, 7061, 6, 198, 198, 11748, 269, 21370, 198, 6738, 10088, 1330, 2378, 1136, ...
2.790749
454
from src.interpreter.functions.math.add import add from src.interpreter.functions.math.div import div from src.interpreter.functions.math.mod import mod from src.interpreter.functions.math.mul import mul from src.interpreter.functions.math.pow import pow_func from src.interpreter.functions.math.sub import sub
[ 6738, 12351, 13, 3849, 3866, 353, 13, 12543, 2733, 13, 11018, 13, 2860, 1330, 751, 198, 6738, 12351, 13, 3849, 3866, 353, 13, 12543, 2733, 13, 11018, 13, 7146, 1330, 2659, 198, 6738, 12351, 13, 3849, 3866, 353, 13, 12543, 2733, 13, ...
3.12
100
from setuptools import setup setup(name='pygazetteer', version='0.1.0', description='Location extractor by looking up gazetteer', url='https://github.com/monkey2000/pygazetteer', license='MIT', packages=['pygazetteer'], install_requires=[ 'pyahocorasick' ], zip...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 9078, 70, 1031, 5857, 263, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 14749, 7925, 273,...
2.279503
161
ID = {"Worldwide":0, "AF": 1, "AL": 2, "DZ": 3, "AD": 5, "AO": 6, "AI": 7, "AG": 9, "AR": 10, "AM": 11, "AW": 12, "AT": 14, "AZ": 15, "BS": 16, "BH": 17, "BD": 18, "BB": 19, "BY": 20, "BZ": 22, "BJ": 23, ...
[ 2389, 796, 19779, 10603, 4421, 1298, 15, 11, 198, 220, 220, 220, 220, 220, 366, 8579, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 366, 1847, 1298, 362, 11, 198, 220, 220, 220, 220, 220, 366, 35, 57, 1298, 513, 11, 198, 220, 220...
1.482092
2,122
""" These classes are a collection of the needed tools to read external data. The External type objects created by these classes are initialized before the Stateful objects by functions.Model.initialize. """ import re import os import warnings import pandas as pd # TODO move to openpyxl import numpy as np import xarr...
[ 37811, 198, 4711, 6097, 389, 257, 4947, 286, 262, 2622, 4899, 284, 1100, 7097, 1366, 13, 198, 464, 34579, 2099, 5563, 2727, 416, 777, 6097, 389, 23224, 878, 198, 1169, 1812, 913, 5563, 416, 5499, 13, 17633, 13, 36733, 1096, 13, 198, ...
1.995981
4,728
# File: C (Python 2.4) from direct.gui.DirectGui import * from direct.interval.IntervalGlobal import * from direct.fsm.FSM import FSM from direct.showbase.PythonUtil import Functor from pandac.PandaModules import * from pirates.piratesbase import PiratesGlobals from pirates.piratesbase import PLocalizer from pirates.p...
[ 2, 9220, 25, 327, 357, 37906, 362, 13, 19, 8, 198, 198, 6738, 1277, 13, 48317, 13, 13470, 8205, 72, 1330, 1635, 198, 6738, 1277, 13, 3849, 2100, 13, 9492, 2100, 22289, 1330, 1635, 198, 6738, 1277, 13, 69, 5796, 13, 10652, 44, 1330...
2.965986
147
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from logging import getLogger as getSysLogger from logging import * # Some of the build slave environments don't see the...
[ 2, 770, 8090, 6127, 5178, 318, 2426, 284, 262, 2846, 286, 262, 29258, 5094, 198, 2, 13789, 11, 410, 13, 362, 13, 15, 13, 1002, 257, 4866, 286, 262, 4904, 43, 373, 407, 9387, 351, 428, 2393, 11, 198, 2, 921, 460, 7330, 530, 379, ...
2.694774
842
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** Astronomical Observatory, Ghent University ** # ***************************************************************** ## ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 41906, 17174, 9, 198, 2, 12429, 220, 220, 220, 220, 220, 220, 20907, 1377, 11361, 16984, 15813, 329, 1762, 351, 14277, ...
4.148148
378
# RiveScript-Python # # This code is released under the MIT License. # See the "LICENSE" file for more information. # # https://www.rivescript.com/ def get_topic_triggers(rs, topic, thats, depth=0, inheritance=0, inherited=False): """Recursively scan a topic and return a list of all triggers. Arguments: ...
[ 2, 371, 425, 7391, 12, 37906, 198, 2, 198, 2, 770, 2438, 318, 2716, 739, 262, 17168, 13789, 13, 198, 2, 4091, 262, 366, 43, 2149, 24290, 1, 2393, 329, 517, 1321, 13, 198, 2, 198, 2, 3740, 1378, 2503, 13, 380, 1158, 6519, 13, 7...
2.835907
2,072
#Copyright 2009 Humanitarian International Services Group # #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, 15269, 3717, 5524, 8353, 4037, 6168, 4912, 198, 2, 198, 2, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13,...
3.857143
329
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as fin: long_description = fin.read() setup( name='pylint-pytest', version='1.0.3', author='Reverb Chu', ...
[ 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, 28686, 1330, 3108, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 1456, 796, 3108,...
2.574841
628
# Reverse TCP Shell in Python For Offensive Security/Penetration Testing Assignments # Connect on LinkedIn https://www.linkedin.com/in/lismore or Twitter @patricklismore #========================================================================================================================================= # Python...
[ 2, 31849, 23633, 17537, 287, 11361, 1114, 26855, 4765, 14, 25553, 316, 1358, 23983, 2195, 570, 902, 220, 198, 2, 8113, 319, 27133, 220, 3740, 1378, 2503, 13, 25614, 259, 13, 785, 14, 259, 14, 75, 1042, 382, 393, 3009, 2488, 29615, 7...
4.824176
91
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/engine.h> """ TYPES = """ static const ...
[ 2, 770, 2393, 318, 10668, 11971, 739, 262, 2846, 286, 262, 24843, 13789, 11, 10628, 198, 2, 362, 13, 15, 11, 290, 262, 347, 10305, 13789, 13, 4091, 262, 38559, 24290, 2393, 287, 262, 6808, 286, 428, 16099, 198, 2, 329, 1844, 3307, ...
2.600651
2,459
import pytest from httpx import AsyncClient from conf_test_db import app from tests.shared.info import category_info, product_info
[ 11748, 12972, 9288, 198, 6738, 2638, 87, 1330, 1081, 13361, 11792, 198, 198, 6738, 1013, 62, 9288, 62, 9945, 1330, 598, 198, 6738, 5254, 13, 28710, 13, 10951, 1330, 6536, 62, 10951, 11, 1720, 62, 10951, 628, 198 ]
3.526316
38
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): _viso2 = sw...
[ 2, 770, 2393, 373, 6338, 7560, 416, 12672, 3528, 357, 4023, 1378, 2503, 13, 2032, 328, 13, 2398, 737, 198, 2, 10628, 513, 13, 15, 13, 1065, 198, 2, 198, 2, 2141, 407, 787, 2458, 284, 428, 2393, 4556, 345, 760, 644, 345, 389, 180...
2.657574
1,393
# -*- coding: utf-8 -*- import asyncio import datetime import json import logging import sys from typing import Optional import aiohttp from aiohttp import ClientSession from . import __version__ from .errors import ( BadGateway, BadRequest, Forbidden, HTTPException, InternalServerError, NotFo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 30351, 952, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 25064, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 257, 952, 4023, 198, 67...
2.638614
202
''' What is a Mother Vertex? A mother vertex in a graph G = (V,E) is a vertex v such that all other vertices in G can be reached by a path from v. How to find mother vertex? Case 1:- Undirected Connected Graph : In this case, all the vertices are mother vertices as we can reach to all the other nodes in the graph...
[ 7061, 6, 198, 2061, 318, 257, 10584, 4643, 16886, 30, 198, 32, 2802, 37423, 287, 257, 4823, 402, 796, 357, 53, 11, 36, 8, 318, 257, 37423, 410, 884, 326, 477, 584, 9421, 1063, 287, 402, 460, 307, 4251, 416, 257, 3108, 422, 410, ...
3.509259
432
#!/usr/bin/env python # -*- coding: utf-8 -*- import os if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, ...
2.177778
45
""" Copyright (c) Microsoft Corporation. Licensed under the MIT License. """ import re import yaml from html.parser import HTMLParser from mistune import Renderer from mechanical_markdown.step import Step start_token = 'STEP' end_token = 'END_STEP' ignore_links_token = 'IGNORE_LINKS' end_ignore_links_token = 'END_...
[ 198, 37811, 198, 15269, 357, 66, 8, 5413, 10501, 13, 198, 26656, 15385, 739, 262, 17168, 13789, 13, 198, 37811, 198, 198, 11748, 302, 198, 11748, 331, 43695, 198, 198, 6738, 27711, 13, 48610, 1330, 11532, 46677, 198, 6738, 4020, 1726, ...
3.122642
106
#!/usr/bin/env python from __future__ import print_function import argparse import sys from compliance_checker.runner import ComplianceChecker, CheckSuite from compliance_checker.cf.util import download_cf_standard_name_table from compliance_checker import __version__ if __name__ == "__main__": sys.exit(main())...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 6738, 11846, 62, 9122, 263, 13, 16737, 1330, 40536, 9787, 263, 11, 6822, 5606, 578, ...
3.378947
95
from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool from django.utils.translation import gettext as _ apphook_pool.register(CategoriesAppHook)
[ 6738, 269, 907, 13, 1324, 62, 8692, 1330, 16477, 4090, 381, 198, 6738, 269, 907, 13, 1324, 25480, 62, 7742, 1330, 598, 25480, 62, 7742, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 355, 4808, 628, 198, 198, 1324, ...
3.054545
55
from django.db.models.signals import pre_save from django.dispatch import receiver from blacklist import models from hashlib import sha256
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 662, 62, 21928, 198, 6738, 42625, 14208, 13, 6381, 17147, 1330, 9733, 198, 6738, 38810, 1330, 4981, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 628, 198 ]
3.710526
38
# Generated by Django 3.1 on 2020-08-22 17:48 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 12131, 12, 2919, 12, 1828, 1596, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import re # regex for a user or channel mention at the beginning of a message # example matches: " <@UJQ07L30Q> ", "<#C010P8N1ABB|interns>" # interactive playground: https://regex101.com/r/2Z7eun/2 MENTION_PATTERN = r"(?:^\s?<@(.*?)>\s?)|(?:^\s?<#(.*?)\|.*?>\s?)" def get_set_element(_set): """get the element fr...
[ 11748, 302, 628, 198, 2, 40364, 329, 257, 2836, 393, 6518, 3068, 379, 262, 3726, 286, 257, 3275, 198, 2, 1672, 7466, 25, 366, 32406, 52, 41, 48, 2998, 43, 1270, 48, 29, 33172, 33490, 2, 34, 20943, 47, 23, 45, 16, 6242, 33, 91, ...
2.559859
852
# In Search for the Lost Memory [Explorer Thief] (3526) # To be replaced with GMS's exact dialogue. # Following dialogue has been edited from DeepL on JMS's dialogue transcript (no KMS footage anywhere): # https://kaengouraiu2.blog.fc2.com/blog-entry-46.html recoveredMemory = 7081 darkLord = 1052001 sm.setSpeakerID(...
[ 2, 554, 11140, 329, 262, 9164, 14059, 685, 18438, 11934, 23471, 60, 357, 2327, 2075, 8, 198, 2, 1675, 307, 6928, 351, 402, 5653, 338, 2748, 10721, 13, 198, 2, 14207, 10721, 468, 587, 13012, 422, 10766, 43, 319, 449, 5653, 338, 10721...
3.35873
315
from django.contrib.auth.views import LoginView from django.urls import path from student import views urlpatterns = [ path('studentclick', views.studentclick_view, name='student-click'), path('studentlogin', LoginView.as_view( template_name='student/studentlogin.html'), name='studentlogin'), path...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 33571, 1330, 23093, 7680, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 3710, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 501...
2.742188
512
# -*- coding: utf-8 -*- from aiida.common import NotExistent from aiida.orm import Dict from aiida_quantumespresso.calculations.pw import PwCalculation from aiida_quantumespresso.parsers import QEOutputParsingError from aiida_quantumespresso.parsers.parse_raw import convert_qe_to_aiida_structure from aiida_quantumespr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 257, 72, 3755, 13, 11321, 1330, 1892, 3109, 7609, 198, 6738, 257, 72, 3755, 13, 579, 1330, 360, 713, 198, 198, 6738, 257, 72, 3755, 62, 40972, 8139, 18302, 568, ...
2.698997
299
from django.utils.translation import ugettext_lazy as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.models.pluginmodel import CMSPlugin plugin_pool.register_plugin(SubmenuPlugin)
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 269, 907, 13, 33803, 62, 8692, 1330, 40773, 37233, 14881, 198, 6738, 269, 907, 13, 33803, 62, 7742, 1330, 13877, 62, 7742, 198,...
3.367647
68
import collections import datetime import json import multiprocessing import os import subprocess import sys import time _SSHD_BINARY_PATH = "/usr/sbin/sshd" EnvironmentConfig = collections.namedtuple( "EnvironmentConfig", ["hosts", "port", "is_chief", "pools", "job_id"]) def _get_available_gpus(): """R...
[ 11748, 17268, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18540, 305, 919, 278, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 198, 62, 5432, 10227, 62, 33, 1268, 13153, 62, 34219, 796, 12...
2.339869
1,071
import datetime from pydantic import Field from typing import ( ClassVar, List, Dict, Optional, ) from smaregipy.base_api import ( BaseServiceRecordApi, BaseServiceCollectionApi, ) from smaregipy.utils import NoData, DictUtil
[ 11748, 4818, 8079, 198, 6738, 279, 5173, 5109, 1330, 7663, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 5016, 19852, 11, 198, 220, 220, 220, 7343, 11, 198, 220, 220, 220, 360, 713, 11, 198, 220, 220, 220, 32233, 11, 198, 8, 19...
2.591837
98
#!/usr/bin/env python3 """ Base-Client Class This is the parent-class of all client-classes and holds properties and functions they all depend on. Author: Jason Cabezuela """ import src.util.debugger as Debugger import src.util.configmaker as configmaker
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 14881, 12, 11792, 5016, 198, 1212, 318, 262, 2560, 12, 4871, 286, 477, 5456, 12, 37724, 290, 6622, 6608, 290, 5499, 484, 477, 4745, 319, 13, 198, 198, 13838, 25, 8982...
3.569444
72
# -*- coding: utf-8 -*- import sys from cryptomon.common import Colors if sys.version_info >= (3, 0): import io else: import StringIO as io ascii_title = """ /$$$$$$ /$$ /$$ /$$ /$$__ $$ | $$ ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 6738, 8194, 16698, 13, 11321, 1330, 29792, 198, 361, 25064, 13, 9641, 62, 10951, 18189, 357, 18, 11, 657, 2599, 198, 220, 220, 220, 1330, 33245, ...
1.503106
805
import cv2 video=cv2.VideoCapture(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.mp4') #pre trained pedestrian and car classifier car_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\car.xml') pedestrian_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.x...
[ 11748, 269, 85, 17, 198, 198, 15588, 28, 33967, 17, 13, 10798, 49630, 7, 81, 6, 34, 7479, 14490, 59, 18422, 2043, 32, 59, 36881, 59, 5805, 1628, 59, 52, 3620, 62, 31190, 23680, 62, 9858, 59, 9124, 395, 4484, 13, 3149, 19, 11537, ...
2.246206
593
# site settings rest api serializers from rest_framework import serializers from saleor.wing.models import Wing as Table
[ 2, 2524, 6460, 1334, 40391, 11389, 11341, 198, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 5466, 273, 13, 5469, 13, 27530, 1330, 13405, 355, 8655, 628, 628 ]
4.166667
30
from . import FishBase from . import FishGlobals
[ 6738, 764, 1330, 13388, 14881, 198, 6738, 764, 1330, 13388, 9861, 672, 874, 198 ]
3.5
14
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # # Distributed under terms of the MIT license. """ Strategy base class """ from abc import ABCMeta, abstractmethod from tinydb import TinyDB, Query from node import Node import json
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 69, 12685, 28, 40477, 12, 23, 198, 2, 198, 2, 198, 2, 4307, 6169, 739, 2846, 286, 262, 17168, 596...
2.896552
87
''' Problem Statement: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3,5,6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below N. ''' from __future__ import print_function try: raw_input # Python 2 except NameError: raw_input = i...
[ 7061, 6, 198, 40781, 21983, 25, 198, 1532, 356, 1351, 477, 262, 3288, 3146, 2174, 838, 326, 389, 5021, 2374, 286, 513, 393, 642, 11, 198, 732, 651, 513, 11, 20, 11, 21, 290, 860, 13, 383, 2160, 286, 777, 5021, 2374, 318, 2242, 1...
2.464789
213
import copy from django.db import NotSupportedError from django.db.models import Expression from .fields import mysql_compile_json_path, postgres_compile_json_path, FallbackJSONField
[ 11748, 4866, 198, 6738, 42625, 14208, 13, 9945, 1330, 1892, 48181, 12331, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 41986, 198, 198, 6738, 764, 25747, 1330, 48761, 62, 5589, 576, 62, 17752, 62, 6978, 11, 1281, 34239, 62, 5589,...
3.557692
52
import unittest import tempfile import pathlib import datetime import warnings from IPython.testing.globalipapp import start_ipython, get_ipython import pandas.util.testing as tm from pandas.core.frame import DataFrame from pandas.core.series import Series from pandas import read_excel import pytest ip = get_ipytho...
[ 11748, 555, 715, 395, 198, 11748, 20218, 7753, 198, 11748, 3108, 8019, 198, 11748, 4818, 8079, 198, 11748, 14601, 198, 198, 6738, 6101, 7535, 13, 33407, 13, 20541, 541, 1324, 1330, 923, 62, 541, 7535, 11, 651, 62, 541, 7535, 198, 198,...
3.275229
109
# https://www.reddit.com/r/dailyprogrammer/comments/3ltee2/20150921_challenge_233_easy_the_house_that_ascii/ import random import sys if __name__ == "__main__": main()
[ 2, 3740, 1378, 2503, 13, 10748, 13, 785, 14, 81, 14, 29468, 23065, 647, 14, 15944, 14, 18, 75, 660, 68, 17, 14, 1264, 29022, 2481, 62, 36747, 3540, 62, 25429, 62, 38171, 62, 1169, 62, 4803, 62, 5562, 62, 292, 979, 72, 14, 198, ...
2.5
70
#!/usr/bin/env python # encoding: utf-8 from __future__ import division from decimal import Decimal import subprocess import threading import urllib2 import urllib import httplib import json import re import hashlib import base64 # import zlib from lib.command.runtime import UserInput from lib.helper.CameraHelper ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 628, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 32465, 1330, 4280, 4402, 220, 220, 198, 11748, 850, 14681, 198, 11748, 4704, 278, 198, 11748, ...
3.477941
136
############################# # Collaborators: (enter people or resources who/that helped you) # If none, write none # # ############################# base = input('Enter the base: ") height = area = # Calculate the area of the triangle print("The area of the triangle is (area).")
[ 14468, 7804, 4242, 2, 198, 2, 37322, 2024, 25, 357, 9255, 661, 393, 4133, 508, 14, 5562, 4193, 345, 8, 198, 2, 1002, 4844, 11, 3551, 4844, 198, 2, 198, 2, 198, 14468, 7804, 4242, 2, 198, 198, 8692, 796, 5128, 10786, 17469, 262, ...
3.620253
79
""" an adaptation of pyopencl's reduction kernel for weighted avarages like sum(a*b) mweigert@mpi-cbg.de """ from __future__ import print_function, unicode_literals, absolute_import, division from six.moves import zip import pyopencl as cl from pyopencl.tools import ( context_dependent_memoize, dtype_to_cty...
[ 37811, 198, 272, 16711, 286, 12972, 9654, 565, 338, 7741, 9720, 329, 26356, 1196, 283, 1095, 198, 198, 2339, 2160, 7, 64, 9, 65, 8, 198, 198, 76, 732, 328, 861, 31, 3149, 72, 12, 21101, 70, 13, 2934, 198, 198, 37811, 198, 6738, ...
1.838975
2,186
#! /usr/bin/env python import mcpi.minecraft as minecraft import mcpi.block as block import random import time mc = minecraft.Minecraft.create() # ---------------------------------------------------------------------- # S E T U P # ---------------------------------------------------------------------- # Where Am ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 285, 13155, 72, 13, 17761, 355, 6164, 3323, 198, 11748, 285, 13155, 72, 13, 9967, 355, 2512, 198, 11748, 4738, 198, 11748, 640, 198, 198, 23209, 796, 6164, 3323, 13, 39...
2.865385
208
#-*- encoding:utf-8 -*- from __future__ import print_function import sys try: reload(sys) sys.setdefaultencoding('utf-8') except: pass import codecs from textrank4zh import TextRank4Keyword, TextRank4Sentence text = codecs.open('../test/doc/01.txt', 'r', 'utf-8').read() tr4w = TextRank4Keyword() tr4w.an...
[ 2, 12, 9, 12, 21004, 25, 40477, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 28311, 25, 198, 220, 220, 220, 18126, 7, 17597, 8, 198, 220, 220, 220, 25064, 13, 2617, 12286, ...
2.412121
330
import random import uuid import sys import json from faker import Factory from faker.providers.person.fi_FI import Provider as PersonProvider fake = Factory.create('fi_FI') email_by_user = {} users_by_id = {} data = json.load(sys.stdin) anonymize_users(data) remove_secrets(data) json.dump(data, sys.stdout, indent=4...
[ 11748, 4738, 198, 11748, 334, 27112, 198, 11748, 25064, 198, 11748, 33918, 198, 6738, 277, 3110, 1330, 19239, 198, 6738, 277, 3110, 13, 15234, 4157, 13, 6259, 13, 12463, 62, 11674, 1330, 32549, 355, 7755, 29495, 198, 198, 30706, 796, 19...
2.875
112
import random from typing import Optional, Tuple, Union import numpy as np import torch from torch import Tensor from torch_geometric.utils import coalesce, degree, remove_self_loops from .num_nodes import maybe_num_nodes def negative_sampling(edge_index: Tensor, num_nodes: Optional[Union[int...
[ 11748, 4738, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 1330, 309, 22854, 198, 198, 6738, 28034, 62, 469, 16996, 13, 26791, 1330, 46064, 344, 11...
2.229029
4,375
import sys if sys.version_info[:2] >= (3, 0): # pylint: disable=E0611,F0401,I0011 from urllib.request import build_opener else: from urllib2 import build_opener from . import __version__ urls = { 'gdata': "https://www.googleapis.com/youtube/v3/", 'watchv': "http://www.youtube.com/watch?v=%s", ...
[ 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 58, 25, 17, 60, 18189, 357, 18, 11, 657, 2599, 198, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 36, 3312, 1157, 11, 37, 3023, 486, 11, 40, 405, 1157, 198, 220, 220, 220...
2.101768
1,867
# Copyright (C) 2015, 2016 GoSecure Inc. """ Telnet Transport and Authentication for the Honeypot @author: Olivier Bilodeau <obilodeau@gosecure.ca> """ from __future__ import annotations import struct from twisted.conch.telnet import ( ECHO, LINEMODE, NAWS, SGA, AuthenticatingTelnetProtocol, ...
[ 2, 15069, 357, 34, 8, 1853, 11, 1584, 1514, 49793, 3457, 13, 198, 37811, 198, 33317, 3262, 19940, 290, 48191, 329, 262, 21788, 13059, 198, 198, 31, 9800, 25, 45674, 24207, 1098, 559, 1279, 25898, 1098, 559, 31, 70, 577, 66, 495, 13,...
3.006369
157
import astropy.io.fits as fits import matplotlib import matplotlib.pyplot as plt import numpy as np import obj_data as od import saphires as saph from astropy.time import Time from astropy.visualization import ZScaleInterval, SqrtStretch, ImageNormalize from matplotlib.backends.backend_pdf import PdfPages ra = od.ra d...
[ 11748, 6468, 28338, 13, 952, 13, 21013, 355, 11414, 198, 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 26181, 62, 7890, 355, 16298, 198, 11748, 47...
2.134994
1,726
"""Tests for tools and arithmetics for monomials of distributed polynomials. """ from sympy.polys.monomialtools import ( monomials, monomial_count, monomial_key, lex, grlex, grevlex, monomial_mul, monomial_div, monomial_gcd, monomial_lcm, monomial_max, monomial_min, monomial_divides, Monomi...
[ 37811, 51, 3558, 329, 4899, 290, 610, 342, 27757, 329, 937, 296, 8231, 286, 9387, 745, 6213, 296, 8231, 13, 37227, 198, 198, 6738, 10558, 88, 13, 35428, 82, 13, 2144, 49070, 31391, 1330, 357, 198, 220, 220, 220, 937, 296, 8231, 11, ...
2.591623
191
import re import base64 import hmac import hashlib import logging import requests from datetime import datetime
[ 11748, 302, 198, 11748, 2779, 2414, 198, 11748, 289, 20285, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 11748, 7007, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628 ]
4.035714
28
from tkinter import * from PIL import ImageGrab import numpy as np import cv2 import time import pyautogui as pg import DirectInputRoutines as DIR from LogKey import key_check last_time = time.time() one_hot = [0, 0, 0, 0, 0, 0] hash_dict = {'w':0, 's':1, 'a':2, 'd':3, 'c':4, 'v':5} X = [] y = [] r...
[ 6738, 256, 74, 3849, 1330, 1635, 201, 198, 6738, 350, 4146, 1330, 7412, 48400, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 640, 201, 198, 11748, 12972, 2306, 519, 9019, 355, 23241, 201, 198,...
2.214876
242
# Generated by Django 2.2.5 on 2019-10-05 23:22 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 940, 12, 2713, 2242, 25, 1828, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from django.template.loaders.base import Loader as BaseLoader from django.template.base import TemplateDoesNotExist
[ 6738, 42625, 14208, 13, 28243, 13, 2220, 364, 13, 8692, 1330, 8778, 263, 355, 7308, 17401, 198, 6738, 42625, 14208, 13, 28243, 13, 8692, 1330, 37350, 13921, 3673, 3109, 396, 628, 198 ]
3.6875
32
import sigvisa.database.db from sigvisa.database.dataset import * import sigvisa.utils.geog cursor = database.db.connect().cursor() detections, arid2num = read_detections(cursor, 1237680000, 1237680000 + 168 * 3600, arrival_table="leb_arrival", noarrays=False) last_det = dict() overlaps = 0 for det in detections: ...
[ 11748, 43237, 4703, 64, 13, 48806, 13, 9945, 198, 6738, 43237, 4703, 64, 13, 48806, 13, 19608, 292, 316, 1330, 1635, 198, 11748, 43237, 4703, 64, 13, 26791, 13, 469, 519, 198, 198, 66, 21471, 796, 6831, 13, 9945, 13, 8443, 22446, 66...
2.44
300
import pytest from onnx import TensorProto from onnx import helper as oh import finn.core.onnx_exec as oxe from finn.core.modelwrapper import ModelWrapper from finn.transformation.streamline.reorder import MoveTransposePastJoinAdd from finn.util.basic import gen_finn_dt_tensor # Permutation of transpose node
[ 11748, 12972, 9288, 198, 198, 6738, 319, 77, 87, 1330, 309, 22854, 2964, 1462, 198, 6738, 319, 77, 87, 1330, 31904, 355, 11752, 198, 198, 11748, 957, 77, 13, 7295, 13, 261, 77, 87, 62, 18558, 355, 12018, 68, 198, 6738, 957, 77, 13...
3.088235
102
import json from lib import authz from lib.logger import logger from lib.exclusions import exclusions, state_machine def can_requirement_be_remediated(requirement): """ Mehtod to validate whether a requirement is capable of being remediated. :param requirement: The dict representing the requirement to ...
[ 11748, 33918, 198, 198, 6738, 9195, 1330, 6284, 89, 198, 6738, 9195, 13, 6404, 1362, 1330, 49706, 198, 6738, 9195, 13, 1069, 11539, 1330, 10293, 507, 11, 1181, 62, 30243, 628, 198, 198, 4299, 460, 62, 8897, 24615, 62, 1350, 62, 260, ...
3.706349
126
#!/usr/bin/env python ''' 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 License, Version 2.0 (the "License")...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 26656, 15385, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 273, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 17080, 6169, 351, ...
3.864754
244
import quandl import math import numpy as np from sklearn import preprocessing, cross_validation, svm from sklearn.linear_model import LinearRegression import pickle import datetime from matplotlib import style import matplotlib.pyplot as plot # Config isLoadFromLocal = True quandl.ApiConfig.api_key = '76eCnz6z9XTH8nf...
[ 11748, 627, 392, 75, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 662, 36948, 11, 3272, 62, 12102, 341, 11, 264, 14761, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234, 198, ...
2.509302
860
tagtypes = { 'chad': (IccProfile.read_s15Fixed16ArrayType), 'cprt': (IccProfile.read_string), 'desc': (IccProfile.read_string), 'dmdd': (IccProfile.read_string), 'tech': (IccProfile.read_signature_type), 'vued': (IccProfile.read_string), 'wtpt': (IccProfile.read_xyztype), 'bkpt': (IccPr...
[ 198, 12985, 19199, 796, 1391, 198, 220, 220, 220, 705, 354, 324, 10354, 357, 40, 535, 37046, 13, 961, 62, 82, 1314, 13715, 1433, 19182, 6030, 828, 198, 220, 220, 220, 705, 66, 1050, 83, 10354, 357, 40, 535, 37046, 13, 961, 62, 884...
2.124352
386
from .binary_search import binary_search
[ 6738, 764, 39491, 62, 12947, 1330, 13934, 62, 12947, 628, 628, 628, 628, 628, 628, 198 ]
3.3125
16
if __name__ == '__main__': print('Module 2')
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 10786, 26796, 362, 11537 ]
2.380952
21
# -*- coding: utf-8 -*- """ Created on Fri Dec 29 16:40:53 2017 @author: Sergio """ #Analisis de variables import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn import ensemble, tree, linear_model from sklearn.model_selection import train_test_split, cr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 19480, 4280, 2808, 1467, 25, 1821, 25, 4310, 2177, 201, 198, 201, 198, 31, 9800, 25, 36759, 201, 198, 37811, 201, 198, 201, 198, 2, ...
2.595337
3,603
import random import sys ntables = 100 ncols = 100 nrows = 10000 for t in range(ntables): printstderr(f'{t}/{ntables}') print(f"create table x ({','.join(['x int'] * ncols)});") for r in range(nrows): print(f"insert into _last ({','.join(['x'] * ncols)}) values (", end='') for c in range(ncols): ...
[ 11748, 4738, 198, 11748, 25064, 198, 198, 429, 2977, 796, 1802, 198, 77, 4033, 82, 796, 1802, 198, 77, 8516, 796, 33028, 198, 198, 1640, 256, 287, 2837, 7, 429, 2977, 2599, 198, 220, 3601, 301, 1082, 81, 7, 69, 6, 90, 83, 92, 14...
2.347826
184
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # Tests extension install/enable
[ 11748, 28686, 198, 198, 11748, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 198, 198, 9288, 10745, 430, 62, 4774, 82, 796, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 13, 2025, 82, 856, 49493, 7, 198, 220, 220, ...
2.646341
82
import hashlib import logging import re from dataclasses import dataclass from datetime import datetime, timedelta from textwrap import wrap from typing import Dict, List from pyroute2 import IPRoute, NDB, WireGuard from wgskex.common.utils import mac2eui64 logger = logging.getLogger(__name__) # TODO make loglevel c...
[ 11748, 12234, 8019, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 2420, 37150, 1330, 14441, 198, 6738, 19720, 1330, 360, 713,...
3.139344
122
import uvicorn from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from routes import items import config from constants import * config.parse_args() app = FastAPI( title="API", description="API boilerplate", version="1.0.0", openapi_tags=API_TAGS_METADATA, ) app.add_midd...
[ 11748, 334, 25531, 1211, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, 6738, 11926, 1330, 3709, 198, 198, 11748, 4566, 198, 198, 6738, 38491, ...
2.553191
235
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.html import mark_safe # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 1317, 62, 21230, 628, 198, 2, 13610, 534, 49...
3.422222
45
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-01-16 13:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2864, 12, 486, 12, 1433, 1511, 25, 2327, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738,...
2.791045
67
import argparse import numpy as np import os import torch from transformers import AutoTokenizer, AutoConfig, Trainer, TrainingArguments from model import RobertaForStsRegression from dataset import KlueStsWithSentenceMaskDataset from utils import read_json, seed_everything from metric import compute_metrics if __...
[ 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 6121, 364, 1330, 11160, 30642, 7509, 11, 11160, 16934, 11, 31924, 11, 13614, 28100, 2886, 198, 198, 6738, 2746, 1330, 5199, 64, ...
2.752443
614
import unittest from nanoservice import Responder from nanoservice import Requester if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 15709, 418, 712, 501, 1330, 10328, 8623, 198, 6738, 15709, 418, 712, 501, 1330, 9394, 7834, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, ...
2.87234
47
from airtech_api.utils.auditable_model import AuditableBaseModel from django.db import models # Create your models here.
[ 6738, 1633, 13670, 62, 15042, 13, 26791, 13, 3885, 4674, 62, 19849, 1330, 7591, 4674, 14881, 17633, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.617647
34
import numpy as np import matplotlib.pyplot as plt if __name__ == "__main__": gauss_1 = gaussian(10, 8, 2) # 0.12098536225957168 gauss_2 = gaussian(10, 10, 2) # 0.19947114020071635 print("Gauss(10, 8, 2): {}".format(gauss_1)) print("Gauss(10, 10, 2): {}".format(gauss_2)) # mean = 0 var...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 31986, 1046, 62, 16, 796, 31986, 31562, 7, 940, ...
2.075
280
import unittest if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.333333
30
import json from typing import TypedDict from .bot_emoji import AdditionalEmoji configurator = Configurator() configurator.load()
[ 11748, 33918, 198, 6738, 19720, 1330, 17134, 276, 35, 713, 198, 6738, 764, 13645, 62, 368, 31370, 1330, 15891, 36, 5908, 7285, 628, 628, 198, 220, 220, 220, 220, 628, 628, 198, 11250, 333, 1352, 796, 17056, 333, 1352, 3419, 198, 11250...
2.979167
48
from scipy.spatial import distance from scipy import ndimage import matplotlib.pyplot as plt import torch from scipy import stats import numpy as np
[ 6738, 629, 541, 88, 13, 2777, 34961, 1330, 5253, 198, 6738, 629, 541, 88, 1330, 299, 67, 9060, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28034, 198, 6738, 629, 541, 88, 1330, 9756, 198, 11748, 299, 32...
3.163265
49
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response
[ 2, 19617, 28, 40477, 12, 23, 198, 81, 37811, 198, 1212, 2438, 373, 7560, 416, 198, 59, 1220, 4808, 220, 220, 220, 4808, 220, 4808, 91, 220, 220, 4808, 220, 4808, 198, 930, 44104, 8, 11139, 28264, 5769, 62, 91, 11139, 91, 930, 7, ...
2.571429
112
if __name__ == "__main__": bibliographic_entry = "Peroni, S., Osborne, F., Di Iorio, A., Nuzzolese, A. G., Poggi, F., Vitali, F., " \ "Motta, E. (2017). Research Articles in Simplified HTML: a Web-first format for " \ "HTML-based scholarly articles. PeerJ Comput...
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 275, 29142, 6826, 62, 13000, 796, 366, 5990, 14651, 11, 311, 1539, 29667, 11, 376, 1539, 6031, 314, 40974, 11, 317, 1539, 399, 4715, 349, 2771, 1...
2.255663
309
#!/usr/bin/env python import responses from selenium import webdriver # This file contains/references the default JS # used to provide functions dealing with input/output SCRIPT_RUNNER = "runner.html" ENCODING = 'utf-8' PAGE_LOAD_TIMEOUT = 5 PAGE_LOAD_TIMEOUT_MS = PAGE_LOAD_TIMEOUT * 1000 capabilities = webdriver.D...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 9109, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 198, 2, 770, 2393, 4909, 14, 5420, 4972, 262, 4277, 26755, 198, 2, 973, 284, 2148, 5499, 7219, 351, 5128, 14, 2...
2.698061
361
#!/usr/bin/env python # -*- coding: utf-8 -*- VALID_HISTORY_FIELDS = [ 'datetime', 'open', 'close', 'high', 'low', 'total_turnover', 'volume', 'acc_net_value', 'discount_rate', 'unit_net_value', 'limit_up', 'limit_down', 'open_interest', 'basis_spread', 'settlement', 'prev_settlement' ] VALID_GET_PRICE_FI...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 23428, 2389, 62, 39, 42480, 62, 11674, 3698, 5258, 796, 685, 198, 220, 220, 220, 705, 19608, 8079, 3256, 705, 96...
2.101551
709
""" Simple pre-processing for PeerRead papers. Takes in JSON formatted data from ScienceParse and outputs a tfrecord Reference example: https://github.com/tensorlayer/tensorlayer/blob/9528da50dfcaf9f0f81fba9453e488a1e6c8ee8f/examples/data_process/tutorial_tfrecord3.py """ import argparse import glob import os import...
[ 37811, 198, 26437, 662, 12, 36948, 329, 41139, 5569, 9473, 13, 198, 51, 1124, 287, 19449, 39559, 1366, 422, 5800, 10044, 325, 290, 23862, 257, 48700, 22105, 628, 198, 26687, 1672, 25, 198, 5450, 1378, 12567, 13, 785, 14, 83, 22854, 29...
2.558935
2,104
__all__=['module1']
[ 834, 439, 834, 28, 17816, 21412, 16, 20520 ]
2.375
8
from pygame import Surface, font from copy import copy from random import randint, choice import string from lib.transactionButton import TransactionButton SHOP_PREFIX = ["archer", "baker", "fisher", "miller", "rancher", "robber"] SHOP_SUFFIX = ["cave", "creek", "desert", "farm", "field", "forest", "hill", "lake", "m...
[ 6738, 12972, 6057, 1330, 20321, 11, 10369, 198, 6738, 4866, 1330, 4866, 198, 6738, 4738, 1330, 43720, 600, 11, 3572, 198, 11748, 4731, 198, 198, 6738, 9195, 13, 7645, 2673, 21864, 1330, 45389, 21864, 198, 198, 9693, 3185, 62, 47, 31688,...
2.648276
145
import logging import numpy as np import core.dataflow as dtf import helpers.unit_test as hut _LOG = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 4755, 13, 7890, 11125, 355, 288, 27110, 198, 11748, 49385, 13, 20850, 62, 9288, 355, 40812, 198, 198, 62, 25294, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, ...
2.977778
45
import tkinter.messagebox from tkinter import * import tkinter as tk from tkinter import filedialog import numpy import pytesseract #Python wrapper for Google-owned OCR engine known by the name of Tesseract. import cv2 from PIL import Image, ImageTk import os root = tk.Tk() root.title("Object Character Recognizer") ro...
[ 11748, 256, 74, 3849, 13, 20500, 3524, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 5717, 498, 519, 198, 11748, 299, 32152, 198, 11748, 12972, 83, 408, 263, 529, 1303...
2.450766
457
"""loads the nasm library, used by TF.""" load("//third_party:repo.bzl", "tf_http_archive")
[ 37811, 46030, 262, 299, 8597, 5888, 11, 973, 416, 24958, 526, 15931, 198, 198, 2220, 7203, 1003, 17089, 62, 10608, 25, 260, 7501, 13, 65, 48274, 1600, 366, 27110, 62, 4023, 62, 17474, 4943, 198 ]
2.657143
35
# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at # the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights # reserved. See files LICENSE and NOTICE for details. # # This file is part of CEED, a collection of benchmarks, miniapps, software # libraries and APIs for efficient h...
[ 2, 15069, 357, 66, 8, 2177, 11, 13914, 45036, 3549, 2351, 4765, 11, 11419, 13, 21522, 771, 379, 198, 2, 262, 13914, 45036, 3549, 2351, 18643, 13, 27140, 32572, 12, 34, 16820, 12, 22, 2682, 24038, 13, 1439, 6923, 198, 2, 10395, 13, ...
6.565789
684
"""Fixes for CESM2 model.""" from ..fix import Fix from ..shared import (add_scalar_depth_coord, add_scalar_height_coord, add_scalar_typeland_coord, add_scalar_typesea_coord)
[ 37811, 22743, 274, 329, 42700, 44, 17, 2746, 526, 15931, 198, 6738, 11485, 13049, 1330, 13268, 198, 6738, 11485, 28710, 1330, 357, 2860, 62, 1416, 282, 283, 62, 18053, 62, 37652, 11, 751, 62, 1416, 282, 283, 62, 17015, 62, 37652, 11, ...
2.233333
90
from YouTubeFacesDB import generate_ytf_database ############################################################################### # Create the dataset ############################################################################### generate_ytf_database( directory= '../data',#'/scratch/vitay/Datasets/YouTubeFaces'...
[ 6738, 7444, 37, 2114, 11012, 1330, 7716, 62, 20760, 69, 62, 48806, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 13610, 262, 27039, 198, 29113, 29113, 7804, 4242, 21017, 198, 8612, 378, 62, 20760, 69, 62, 48806, 7, 220, 220, 198,...
3.570707
198
from freezegun import freeze_time from rest_framework import test from waldur_mastermind.billing.tests.utils import get_financial_report_url from waldur_mastermind.invoices import models as invoice_models from waldur_mastermind.invoices.tests import factories as invoice_factories from waldur_mastermind.invoices.tests ...
[ 6738, 1479, 89, 1533, 403, 1330, 16611, 62, 2435, 198, 6738, 1334, 62, 30604, 1330, 1332, 198, 198, 6738, 266, 1940, 333, 62, 9866, 10155, 13, 65, 4509, 13, 41989, 13, 26791, 1330, 651, 62, 46921, 62, 13116, 62, 6371, 198, 6738, 266...
3.534653
101
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 26171, 198, 2, 198, 2, 220, 220, 15069, 2864, 12, 23344, 376, 7569, 13, 20185, 15302, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 3...
3.057247
821