content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
"""Utils for jitsi""" from datetime import timedelta from django.conf import settings from django.utils import timezone import jwt def create_payload(room, moderator=True): """Create the payload so that it contains each information jitsi requires""" token_payload = { "exp": timezone.now() + ...
[ 37811, 18274, 4487, 329, 474, 896, 72, 37811, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 11748, 474, 46569, 628, 198, 4...
2.454545
374
from hashtable import Hashtable
[ 6738, 20267, 540, 1330, 21059, 11487, 628, 628, 628 ]
4.111111
9
import os, pickle, re import GlobalConstants as GC import configuration as cf # Custom Imports import MenuFunctions import Utility, Image_Modification, Engine, InputManager import logging logger = logging.getLogger(__name__) # === Simple Finite State Machine Object =============================== ...
[ 11748, 28686, 11, 2298, 293, 11, 302, 201, 198, 201, 198, 11748, 8060, 34184, 1187, 355, 20145, 201, 198, 11748, 8398, 355, 30218, 201, 198, 201, 198, 2, 8562, 1846, 3742, 201, 198, 11748, 21860, 24629, 2733, 201, 198, 11748, 34030, 1...
3.32746
681
import pytest from bloodsword.characters.sage import Sage from bloodsword.characters.warrior import Warrior from bloodsword.descriptors.armour import Armour def test_character_initialization(warrior, sage): assert str( warrior) == "<Name:Warrior Fighting Prowess=8 Psychic Ability=6 Awareness=6 Endurance...
[ 11748, 12972, 9288, 198, 6738, 2910, 30553, 13, 10641, 19858, 13, 82, 496, 1330, 28733, 198, 6738, 2910, 30553, 13, 10641, 19858, 13, 5767, 7701, 1330, 14019, 198, 6738, 2910, 30553, 13, 20147, 1968, 669, 13, 1670, 454, 1330, 23752, 628...
2.88117
547
n1 = int(input(" n1: ")) n2 = int(input(" n2: ")) print(" = ", nod(n1,n2)) print("K = ", int((n1*n2)/nod(n1,n2)))
[ 198, 77, 16, 796, 493, 7, 15414, 7203, 299, 16, 25, 366, 4008, 198, 77, 17, 796, 493, 7, 15414, 7203, 299, 17, 25, 366, 4008, 198, 198, 4798, 7203, 796, 33172, 18666, 7, 77, 16, 11, 77, 17, 4008, 198, 4798, 7203, 42, 796, 3317...
1.825397
63
from core.himesis import Himesis, HimesisPreConditionPatternLHS import uuid
[ 6738, 4755, 13, 71, 999, 271, 1330, 367, 999, 271, 11, 367, 999, 271, 6719, 48362, 47546, 43, 7998, 198, 11748, 334, 27112, 628 ]
3.208333
24
# -*- coding: utf-8 -*- # Local imports from cpenv import mappings from cpenv.compat import platform def test_platform_values(): '''join_dicts with platform values''' tests = { 'implicit_set': { 'osx': 'osx', 'linux': 'linux', 'win': 'win', }, 'imp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 10714, 17944, 198, 6738, 269, 3617, 85, 1330, 285, 39242, 198, 6738, 269, 3617, 85, 13, 5589, 265, 1330, 3859, 628, 198, 4299, 1332, 62, 24254, 62, 27160, 3352...
2.010107
3,661
"""Database class.""" from flask_sqlalchemy import SQLAlchemy # type: ignore db = SQLAlchemy()
[ 37811, 38105, 1398, 526, 15931, 198, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 220, 1303, 2099, 25, 8856, 198, 198, 9945, 796, 16363, 2348, 26599, 3419, 198 ]
3.16129
31
''' https://github.com/Adeon18/logical_puzzle ''' # There are now proper commits in this repository becouse I # created 1 repo for 2 tasks and then had to move import math def check_rows(board: list) -> bool: ''' Check for row correction in board. >>> check_rows(["**** ****", "***1 ****", "** 3****", "...
[ 7061, 6, 198, 5450, 1378, 12567, 13, 785, 14, 2782, 23277, 1507, 14, 6404, 605, 62, 79, 9625, 198, 7061, 6, 198, 2, 1318, 389, 783, 1774, 23463, 287, 428, 16099, 639, 1076, 314, 198, 2, 2727, 352, 29924, 329, 362, 8861, 290, 788, ...
2.35633
1,406
# 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"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
4.052632
209
import tempfile import unittest from symplectic import jsonformat
[ 11748, 20218, 7753, 198, 11748, 555, 715, 395, 198, 198, 6738, 10558, 42009, 1330, 33918, 18982, 628 ]
4
17
import shutil import tempfile from django import forms from django.test import Client, TestCase from django.urls import reverse from posts.forms import PostForm from posts.models import Group, Post, User from django.conf import settings TEMP_MEDIA_ROOT = tempfile.mkdtemp(dir=settings.BASE_DIR)
[ 11748, 4423, 346, 198, 11748, 20218, 7753, 628, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 9288, 1330, 20985, 11, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 6851, 13, 23914, 13...
3.304348
92
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 8336, 13798, 318, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 198, 2, 15069, 357, 66, 8, 1946, 12, 42334, 8336, 85...
3.5
160
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 2177, 12, 23344, 14724, 2390, 11998, 11, 3457, 13, 357, 5450, 1378, 2503, 13, 538, 321, 13, 785, 34729, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 74...
3.724551
167
nominalization_list=["Buddhism", "Catholicity", "Catholicism", "Doppler", "evangelicality", "Frenchness", "Gaussianity", "Gothicness", "Indianness", "Irishness", "Jewishness", "Malthusianism", "mosaicity", "Nordicness", "northernness", "Polishness", "Protestantism", "regency", "Welshness", "abandonment", "abasement", "...
[ 26601, 1292, 1634, 62, 4868, 28, 14692, 33, 4185, 71, 1042, 1600, 198, 1, 48919, 414, 1600, 198, 1, 48919, 1042, 1600, 198, 1, 5211, 381, 1754, 1600, 198, 1, 1990, 8368, 605, 414, 1600, 198, 1, 24111, 1108, 1600, 198, 1, 35389, 31...
2.648055
92,094
#!/usr/bin/env python # =============================================================================== # Copyright 2015 Geoscience Australia # # 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 38093, 25609, 855, 198, 2, 15069, 1853, 2269, 418, 4234, 4505, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, ...
3.991632
239
import unittest import numpy as np import El import skylark.nla as sl_nla from .. import utils if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(NLATestCase) unittest.TextTestRunner(verbosity=1).run(suite)
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2574, 198, 198, 11748, 1341, 2645, 668, 13, 77, 5031, 355, 1017, 62, 77, 5031, 198, 6738, 11485, 1330, 3384, 4487, 628, 198, 220, 220, 220, 220, 220, 220, 198, 36...
2.545455
99
import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread("images/watter.jpeg") img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) kernel = np.ones((5,5),np.float32)/25 dst1 = cv2.filter2D(img,-1,kernel) blur = cv2.blur(img,(5,5)) g_blur = cv2.GaussianBlur(img,(5,5),0) median_blur = cv2.medianBlur...
[ 11748, 299, 32152, 355, 220, 45941, 198, 11748, 269, 85, 17, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 9600, 796, 269, 85, 17, 13, 320, 961, 7203, 17566, 14, 86, 1436, 13, 73, 22071, 4943, 198, 198, ...
2.003559
281
from django.http import HttpResponseRedirect
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 628 ]
3.833333
12
import time from datetime import timedelta from random import choice from typing import List, Optional from fastapi import Depends, FastAPI, File, UploadFile from fastapi.staticfiles import StaticFiles from passlib.context import CryptContext from pydantic import BaseModel from sqlalchemy.orm import Session from conf...
[ 11748, 640, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 4738, 1330, 3572, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 12549, 17614, 11, 9220, 11, 36803, 8979, 198, 6738, 3049, 15...
3.319372
191
#! /usr/bin/env python # coding=utf-8 # ================================================================ # # Author : miemie2013 # Created date: 2020-10-15 14:50:03 # Description : pytorch_ppyolo # # ================================================================ import torch import torch.nn as nn import to...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 2, 46111, 4770, 25609, 18604, 198, 2, 198, 2, 220, 220, 6434, 220, 220, 220, 220, 220, 1058, 21504, 368, 494, 6390, 198, 2, 220, 220, 15622, 3...
3.356589
129
from django.contrib.auth import get_user_model from .models import Account from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm User = get_user_model()
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 764, 27530, 1330, 10781, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, 341...
3.45614
57
from .ui_image import UIImage from .ui_button import UIButton from .ui_horizontal_slider import UIHorizontalSlider from .ui_vertical_scroll_bar import UIVerticalScrollBar from .ui_label import UILabel from .ui_screen_space_health_bar import UIScreenSpaceHealthBar from .ui_tool_tip import UITooltip from .ui_drop_down_me...
[ 6738, 764, 9019, 62, 9060, 1330, 12454, 5159, 198, 6738, 764, 9019, 62, 16539, 1330, 12454, 21864, 198, 6738, 764, 9019, 62, 17899, 38342, 62, 6649, 1304, 1330, 12454, 27991, 38342, 11122, 1304, 198, 6738, 764, 9019, 62, 1851, 605, 62, ...
3.134615
156
import imdb
[ 11748, 545, 9945 ]
3.666667
3
# -*- coding: utf-8 -*- """Project Packages Module.""" import shutil from pathlib import Path from typing import Any, Union from boltons import fileutils from micropy import utils from micropy.packages import (LocalDependencySource, PackageDependencySource, create_dependency_source) fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 16775, 6400, 1095, 19937, 526, 15931, 198, 198, 11748, 4423, 346, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 11, 4479, 198, 198, 6738, ...
2.143688
1,204
from .foreground import make_foreground from .point_sources import make_ptsrc_background, \ make_point_sources_file, make_point_source_list from .instrument import make_instrument_background from .spectra import BackgroundSpectrum, \ ConvolvedBackgroundSpectrum from .events import add_background_from_file from ...
[ 6738, 764, 754, 2833, 1330, 787, 62, 754, 2833, 198, 6738, 764, 4122, 62, 82, 2203, 1330, 787, 62, 457, 10677, 62, 25249, 11, 3467, 198, 220, 220, 220, 787, 62, 4122, 62, 82, 2203, 62, 7753, 11, 787, 62, 4122, 62, 10459, 62, 486...
3.683673
98
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'endofsessiondialog.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try: _e...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 437, 1659, 29891, 38969, 519, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 19, 12454, 2438, ...
2.692308
143
import ramda as R from ramda.shared import eq from .common import get_arity import pytest try: from collections.abc import Callable except ImportError: from collections import Callable def describe_all_pass(): def describe_any_pass(): def it_report_wheter_any_preds_are_satisfied(odd, gt20, lt5): ...
[ 11748, 15770, 6814, 355, 371, 198, 6738, 15770, 6814, 13, 28710, 1330, 37430, 198, 6738, 764, 11321, 1330, 651, 62, 6806, 198, 11748, 12972, 9288, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 17268, 13, 39305, 1330, 4889, 540, 198, 1...
1.967433
1,566
"""The dash-tab with forecast data.""" from typing import List import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from dash.dependencies import Input, Output import covid19.forecast from covid19.data import DAY_ZERO_START f...
[ 37811, 464, 14470, 12, 8658, 351, 11092, 1366, 526, 15931, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 11748, ...
1.47834
3,278
x = int(input()) y = int(input()) if x > y: x, y = y, x soma = 0 for i in range(x, y + 1): if i%13 != 0: soma += i print(soma)
[ 87, 796, 493, 7, 15414, 28955, 198, 88, 796, 493, 7, 15414, 28955, 198, 198, 361, 2124, 1875, 331, 25, 198, 220, 220, 220, 2124, 11, 331, 796, 331, 11, 2124, 198, 198, 82, 6086, 796, 657, 198, 1640, 1312, 287, 2837, 7, 87, 11, ...
1.835443
79
from .schema import ( # noqa Config, SQSReceiver, LogReceiver, Receiver )
[ 6738, 764, 15952, 2611, 1330, 357, 220, 1303, 645, 20402, 198, 220, 220, 220, 17056, 11, 198, 220, 220, 220, 49747, 50, 3041, 39729, 11, 198, 220, 220, 220, 5972, 3041, 39729, 11, 198, 220, 220, 220, 39106, 198, 8, 198 ]
2.219512
41
# Solution by : Tameem Alaa El-Deen Sayed n = int(input()) c= 0 while n >= 1 : if n % 2 == 0 : n = n /2 else: n = n -1 n = n / 2 c = c + 1 print (c)
[ 2, 28186, 416, 1058, 309, 480, 368, 978, 7252, 2574, 12, 5005, 268, 13816, 276, 198, 198, 77, 796, 493, 7, 15414, 28955, 198, 66, 28, 657, 198, 4514, 299, 18189, 352, 1058, 198, 220, 220, 220, 611, 299, 4064, 362, 6624, 657, 1058,...
1.738739
111
import plotly.express as px import plotly.graph_objects as go import pandas as pd import json import os from vaccine_dataprep_Swedentots import ( df_vacc_lan, # data on 1st 2 doses third_vacc_dose_lan, # data on 3rd dose # df_vacc_lders_lan, # a switch to age data for 1st and second doses? SCB_popul...
[ 11748, 7110, 306, 13, 42712, 355, 279, 87, 198, 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 12319, 62, 19608, 499, 7856, 62, 10462, 276,...
2.107206
5,634
# Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and # other Shroud Project Developers. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (BSD-3-Clause) # ######################################################################## """ Generate a module for classes using PyBi...
[ 2, 15069, 357, 66, 8, 2177, 12, 1238, 2481, 11, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 198, 2, 584, 40246, 4935, 34152, 13, 198, 2, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628...
3.51938
129
""" File: blur.py ------------------------------- This file shows the original image(smiley-face.png) first, and then its blurred image. The blur algorithm uses the average RGB values of a pixel's nearest neighbors. """ from simpleimage import SimpleImage BLURRED_SCALE = 9 def blur(old_img): """ :param old_...
[ 37811, 198, 8979, 25, 23671, 13, 9078, 198, 1783, 24305, 198, 1212, 2393, 2523, 262, 2656, 2939, 7, 5796, 9618, 12, 2550, 13, 11134, 8, 198, 11085, 11, 290, 788, 663, 38258, 2939, 13, 383, 23671, 11862, 198, 2664, 262, 2811, 25228, ...
1.835629
5,445
# -*- coding: utf-8 -*- ''' Docer ~~~~~~ A document viewing platform. :copyright: (c) 2015 by Docer.Org. :license: MIT, see LICENSE for more details. ''' from flask import Flask from flask.ext.mongoengine import MongoEngine from app.frontend import frontend as frontend_blueprint from app.backend import backend a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 197, 23579, 263, 198, 197, 8728, 4907, 198, 197, 32, 3188, 11681, 3859, 13, 628, 197, 25, 22163, 4766, 25, 357, 66, 8, 1853, 416, 14432, 263, 13, 46808...
2.995392
217
from typing import List from sys import argv from tqdm import tqdm from time import sleep from random import uniform from bs4 import BeautifulSoup import requests from get_pages_urls import get_list_pages from get_urls import get_urls_per_page from write_poem import write_poem if __name__ == '__main__': main(r...
[ 6738, 19720, 1330, 7343, 198, 6738, 25064, 1330, 1822, 85, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 640, 1330, 3993, 198, 6738, 4738, 1330, 8187, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748,...
2.891473
129
# SPDX-FileCopyrightText: NOI Techpark <info@noi.bz.it> # # SPDX-License-Identifier: Apache-2.0 import logging from typing import List, Dict, TypeVar, Optional from copy import deepcopy from deepdiff import DeepDiff from .base import BaseModel, DictModel, ModelError from aliens4friends.commons.utils import sha1sum_...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 8005, 40, 9634, 20928, 1279, 10951, 31, 3919, 72, 13, 65, 89, 13, 270, 29, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 11748, 18931, 198, ...
3.121019
314
# przykad wykorzystania biblioteki requests import requests params = { 'format': 'j1', } api_result = requests.get('https://wttr.in/Varsavia', params) api_response = api_result.json() for elem in api_response: print(f"Klucz: {elem} ma warto {api_response[elem]}")
[ 2, 778, 46355, 324, 266, 48361, 273, 7357, 301, 5411, 275, 29142, 313, 39548, 7007, 198, 11748, 7007, 198, 198, 37266, 796, 1391, 198, 220, 220, 220, 705, 18982, 10354, 705, 73, 16, 3256, 198, 92, 198, 15042, 62, 20274, 796, 7007, 1...
2.504587
109
libro = Libro("El Palomo","Carlos Rodriguez","Edelvives","180","Aventuras","330") print("Titulo:"+libro.titulo,"Autor:"+libro.autor, "Editorial:"+libro.editorial,"Precio base:"+libro.precioBase,"Gnero:"+libro.genero,"Nmero de pginas:"+libro.nPaginas)
[ 198, 8019, 305, 796, 220, 7980, 305, 7203, 9527, 3175, 17902, 2430, 26886, 418, 19391, 2430, 7407, 417, 85, 1083, 2430, 15259, 2430, 32, 1151, 17786, 2430, 26073, 4943, 198, 4798, 7203, 51, 270, 43348, 11097, 10, 8019, 305, 13, 83, 27...
2.35514
107
import os import sys import argparse import os import re import shlex import subprocess import signal import gc import param is_pypy = '__pypy__' in sys.builtin_module_names cigarRe = r"(\d+)([MIDNSHP=X])" base2num = dict(zip("ACGT", (0,1,2,3))) stripe2 = 4 * param.matrixNum stripe1 = param.matrixNum def OutputAln...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 427, 2588, 198, 11748, 850, 14681, 198, 11748, 6737, 198, 11748, 308, 66, 198, 11748, 5772, 198, 198, 271, 62, 79, 4464, 88, 796, ...
1.846313
3,865
#!/usr/bin/env python """ MultiQC_NGI is a plugin for MultiQC, providing additional tools which are specific to the National Genomics Infrastructure at the Science for Life Laboratory in Stockholm, Sweden. For more information about NGI, see http://www.scilifelab.se/platforms/ngi/ For more information about MultiQC, s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 29800, 48, 34, 62, 10503, 40, 318, 257, 13877, 329, 15237, 48, 34, 11, 4955, 3224, 4899, 543, 389, 198, 11423, 284, 262, 2351, 5215, 31994, 33709, 379, 262, 5800, 329, 51...
2.321429
1,036
import re import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart domain = "127.0.0.1"
[ 11748, 302, 198, 11748, 895, 83, 489, 571, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 27830, 796, 366, 16799, ...
2.557692
52
print(sumall(1,2,3,4,4,5,6,7)) print(sumall(1,2,34)) numbers = 1,2,3,4,5,6,6,7,8,9 print(sumall(*numbers))
[ 198, 4798, 7, 16345, 439, 7, 16, 11, 17, 11, 18, 11, 19, 11, 19, 11, 20, 11, 21, 11, 22, 4008, 198, 4798, 7, 16345, 439, 7, 16, 11, 17, 11, 2682, 4008, 198, 77, 17024, 796, 352, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, ...
1.61194
67
from django.contrib import admin from .models import Color, Pet, Publication admin.site.register(Pet, PetAdmin) admin.site.register(Publication, PublicationAdmin) admin.site.register(Color, ColorAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 5315, 11, 4767, 11, 45065, 628, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 25803, 11, 4767, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 15202, ...
3.466667
60
from copy import deepcopy from bs4 import BeautifulSoup from .abstract_extractor import AbstractExtractor from ..article_candidate import ArticleCandidate
[ 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 764, 397, 8709, 62, 2302, 40450, 1330, 27741, 11627, 40450, 198, 6738, 11485, 20205, 62, 46188, 20540, 1330, 10172, 41572, 20540, 628 ]
3.95
40
# -*- coding: utf-8 -*- from hearthstone.entities import Entity from entity.spell_entity import SpellEntity
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 3285, 400, 6440, 13, 298, 871, 1330, 20885, 198, 198, 6738, 9312, 13, 46143, 62, 26858, 1330, 11988, 32398, 628 ]
3.142857
35
# -*- coding: utf-8 -*- __description__ = 'Python driver and logging app ' +\ 'for Gravity infrared CO2 sensor' __long_description__ = 'Python driver and logging app ' +\ 'for Gravity infrared CO2 sensor' __author__ = 'osoken' __email__ = 'osoken.devel@outlook.jp' __version__ = '0.0.0' __package_name__ = '...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 11213, 834, 796, 705, 37906, 4639, 290, 18931, 598, 705, 1343, 59, 198, 220, 220, 220, 705, 1640, 24084, 30624, 7375, 17, 12694, 6, 198, 198, 834, 6511, 62, ...
2.746032
126
import os import time from src.models.model1 import CBD from src.utils.train_utils import TrainGenerator from tensorflow.keras import losses, optimizers, callbacks train_data = TrainGenerator('train') val_data = TrainGenerator('val') epochs = 10 model_dir = 'models/' log_dir = 'logs/' cbd = CBD('models/', 'logs/'...
[ 11748, 28686, 198, 11748, 640, 198, 198, 6738, 12351, 13, 27530, 13, 19849, 16, 1330, 27147, 198, 6738, 12351, 13, 26791, 13, 27432, 62, 26791, 1330, 16835, 8645, 1352, 198, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 9089, 11, ...
2.321839
609
import torch.nn as nn from models.PSim_alexnet import PSim_Alexnet import torch from utils import utils
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 4981, 13, 3705, 320, 62, 1000, 87, 3262, 1330, 6599, 320, 62, 15309, 3262, 198, 11748, 28034, 198, 6738, 3384, 4487, 1330, 3384, 4487, 628 ]
3.088235
34
from . import conf_reader
[ 6738, 764, 1330, 1013, 62, 46862, 198 ]
3.714286
7
n = float(raw_input()) v = map(int, raw_input().strip().split()) pos = float(len(filter(lambda x: x > 0, v))) / n neg = float(len(filter(lambda x: x < 0, v))) /n zer = float(len(filter(lambda x: x == 0, v))) / n print "%.3f" % pos print "%.3f" % neg print "%.3f" % zer
[ 77, 796, 12178, 7, 1831, 62, 15414, 28955, 198, 85, 796, 3975, 7, 600, 11, 8246, 62, 15414, 22446, 36311, 22446, 35312, 28955, 198, 198, 1930, 796, 12178, 7, 11925, 7, 24455, 7, 50033, 2124, 25, 2124, 1875, 657, 11, 410, 22305, 1220...
2.377193
114
import os from dotenv import load_dotenv load_dotenv() basedir = os.path.abspath(os.path.dirname(__file__))
[ 11748, 28686, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 198, 2220, 62, 26518, 24330, 3419, 198, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4...
2.533333
45
import requests import json from ..Config.config_handler import read_config
[ 11748, 7007, 198, 11748, 33918, 198, 6738, 11485, 16934, 13, 11250, 62, 30281, 1330, 1100, 62, 11250, 198 ]
4.222222
18
# -* coding: utf-8 -* """ This module generate the Julia interface declaration for the functions it finds in a C header. It only handle edge cases for the chemfiles.h header. """ from generate.julia.constants import BEGINING from generate.julia.convert import type_to_julia from generate import CHFL_TYPES TYPE_TEMPLA...
[ 2, 532, 9, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 198, 37811, 198, 1212, 8265, 7716, 262, 22300, 7071, 14305, 329, 262, 5499, 340, 198, 19796, 82, 287, 257, 327, 13639, 13, 632, 691, 5412, 5743, 2663, 329, 262, 4607, 16624, 13,...
2.466222
1,199
from tensorflow.python.framework import ops from tensorflow.python.ops import math_ops from .utils import get_xmodule xmodule = get_xmodule() xgemm = xmodule.xgemm
[ 6738, 11192, 273, 11125, 13, 29412, 13, 30604, 1330, 39628, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 2840, 1330, 10688, 62, 2840, 198, 198, 6738, 764, 26791, 1330, 651, 62, 87, 21412, 198, 198, 87, 21412, 796, 651, 62, 87, 21412, ...
3.036364
55
# 5: import re if __name__ == '__main__': main()
[ 2, 642, 25, 220, 198, 11748, 302, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.115385
26
import os import shutil import unittest from tools.Utils import root_path, output_fields, create_folder_if_not_exists, results_folder if __name__ == "__main__": unittest.main()
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 555, 715, 395, 198, 198, 6738, 4899, 13, 18274, 4487, 1330, 6808, 62, 6978, 11, 5072, 62, 25747, 11, 2251, 62, 43551, 62, 361, 62, 1662, 62, 1069, 1023, 11, 2482, 62, 43551, 628, 198,...
2.846154
65
#! /usr/bin/python import hashlib, getpass import sys if len(sys.argv) > 1 and sys.argv[1] == '-s': sha = True else: sha = False while True: try: passhash = hashlib.sha1(getpass.getpass()).hexdigest().upper() if sha: print passhash except EOFError: print br...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 12234, 8019, 11, 651, 6603, 198, 11748, 25064, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1875, 352, 290, 25064, 13, 853, 85, 58, 16, 60, 6624, 705, 12, 82, 10354, 19...
1.815642
358
################################################################################ """ `electricpy` Package - `conversions` Module. >>> from electricpy import conversions Filled with simple conversion functions to help manage unit conversions and the like, this module is very helpful to electrical engineers. Built to ...
[ 29113, 29113, 14468, 198, 37811, 198, 63, 31067, 9078, 63, 15717, 532, 4600, 1102, 47178, 63, 19937, 13, 198, 198, 33409, 422, 5186, 9078, 1330, 32626, 198, 198, 37, 2967, 351, 2829, 11315, 5499, 284, 1037, 6687, 4326, 32626, 290, 262, ...
2.374718
6,202
import html from .models import Post, Session TEMPLATE_BASE = '''<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>noname</title> <link rel="stylesheet" href="/static/app.css"> </head> <body> %s </body> </html> ''' TEMPLATE_FORM = ''' <form action="...
[ 11748, 27711, 198, 198, 6738, 764, 27530, 1330, 2947, 11, 23575, 198, 198, 51, 3620, 6489, 6158, 62, 33, 11159, 796, 705, 7061, 27, 0, 4598, 310, 2981, 27711, 29, 198, 27, 6494, 42392, 2625, 268, 5320, 198, 220, 220, 220, 1279, 2256...
2.313397
418
""" https://github.com/SACGF/variantgrid/issues/1601 Need to trigger reloads of bad metrics, so we die properly """ import logging from django.core.management.base import BaseCommand from seqauto.models import IlluminaFlowcellQC from snpdb.models import DataState
[ 37811, 198, 220, 220, 220, 3740, 1378, 12567, 13, 785, 14, 50, 2246, 21713, 14, 25641, 415, 25928, 14, 37165, 14, 1433, 486, 628, 220, 220, 220, 10664, 284, 7616, 18126, 82, 286, 2089, 20731, 11, 523, 356, 4656, 6105, 198, 198, 3781...
3.232558
86
# Generated by Django 2.0.2 on 2018-03-08 12:49 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 17, 319, 2864, 12, 3070, 12, 2919, 1105, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- """ Created on Mon Feb 17 01:08:13 2020 @author: OAdeoye """ bingo = Dog("Bingo") bingo.respond_to_command("Bingo") bingo = Dog("Winco") bingo.respond_to_command("Bingo")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 3158, 1596, 5534, 25, 2919, 25, 1485, 12131, 198, 198, 31, 9800, 25, 440, 2782, 68, 726, 68, 198, 37811, 628, 198, 4623, 78, 796, 8532, ...
2.329412
85
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from datetime import datetime, timedelta from analytics_query import analytics_query as aq START_DATE = (datetime.now() - timedelta(7)).strftime('%Y-%m-%d') END_DATE = (datetime.now() - timedelta(1)).strftime('%Y-%m-%d') start_date = '2015-03-03' end_date = '...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738, 23696, 62, 22766, 1330, 23696...
2.391026
156
from WordList import WordList, WordCard import pygame
[ 6738, 9678, 8053, 1330, 9678, 8053, 11, 9678, 16962, 198, 11748, 12972, 6057, 198 ]
3.857143
14
from plot import * from experiments import * import warnings warnings.filterwarnings("ignore") #Ignore warnings for now import sys import os import argparse if __name__ == '__main__': main() #Test routines #Animation routines #Persistence Diagrams?\ #Go analysis features. #Ideas #How to interpret H_1 points o...
[ 6738, 7110, 1330, 1635, 198, 6738, 10256, 1330, 1635, 198, 198, 11748, 14601, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 4943, 1303, 32916, 382, 14601, 329, 783, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1822, 29572...
4.191489
235
# -*- coding: utf-8 -*- # this made for python3 from os import environ def expand_env(params, verbose=False): """ dotenv like function, but not dotenv """ for key, val in params.items(): _print('try %s, %s'%(key, val), verbose) if isinstance(val, dict): _print('ORDEREDDICT', verbos...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 428, 925, 329, 21015, 18, 198, 198, 6738, 28686, 1330, 551, 2268, 198, 198, 4299, 4292, 62, 24330, 7, 37266, 11, 15942, 577, 28, 25101, 2599, 198, 220, 220, 220, ...
2.056515
637
""" A file for setup. """ # Metadata __author__ = "cpuabuse.com" __copyright__ = "cpuabuse.com 2019" __license__ = "ISC" __version__ = "0.0.1" __email__ = "cpuabuse@gmail.com" __status__ = "Development" # Minimum python version is 3.6
[ 37811, 198, 32, 2393, 329, 9058, 13, 198, 37811, 198, 198, 2, 3395, 14706, 198, 834, 9800, 834, 796, 366, 36166, 47158, 13, 785, 1, 198, 834, 22163, 4766, 834, 796, 366, 36166, 47158, 13, 785, 13130, 1, 198, 834, 43085, 834, 796, ...
2.651685
89
from admin.upload import FileUploadField, ImageUploadField from flask_babelex import Babel from flask_admin._compat import urljoin from flask import redirect from flask_admin._compat import quote from flask_admin.contrib.fileadmin import FileAdmin from flask_admin import Admin, BaseView, expose from flask_admin....
[ 6738, 13169, 13, 25850, 1330, 9220, 41592, 15878, 11, 7412, 41592, 15878, 201, 198, 6738, 42903, 62, 65, 11231, 2588, 1330, 50175, 201, 198, 6738, 42903, 62, 28482, 13557, 5589, 265, 1330, 19016, 22179, 201, 198, 6738, 42903, 1330, 18941,...
3.219697
264
import json from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator _IS_SPLIT_KEY = 'is_split'
[ 11748, 33918, 198, 198, 6738, 45771, 13, 3642, 822, 13, 3575, 2024, 13, 74, 18478, 3262, 274, 62, 33320, 62, 46616, 1330, 12554, 527, 3262, 274, 41565, 18843, 1352, 628, 198, 198, 62, 1797, 62, 4303, 43, 2043, 62, 20373, 796, 705, 2...
2.6875
48
import inspect from . import actionscenes from . import dd_combatmission from . import dd_customobjectives from . import dd_distanttown from . import dd_homebase from . import dd_intro from . import dd_lancedev from . import dd_main from . import dd_roadedge from . import dd_roadedge_propp from . import dd_roadstops f...
[ 11748, 10104, 198, 198, 6738, 764, 1330, 4028, 66, 18719, 198, 6738, 764, 1330, 49427, 62, 39969, 3411, 198, 6738, 764, 1330, 49427, 62, 23144, 15252, 1083, 198, 6738, 764, 1330, 49427, 62, 67, 10167, 12735, 198, 6738, 764, 1330, 49427,...
2.835165
364
# -*- coding: utf-8 -*- """ Base class to handle collection of profiles and means across multiple .h5 files """ import logging import numpy as np import os import sys import psutil import pandas as pd import time import shutil from warnings import warn from reV.handlers.outputs import Outputs from reV.utilities.except...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14881, 1398, 284, 5412, 4947, 286, 16545, 290, 1724, 1973, 3294, 764, 71, 20, 3696, 198, 37811, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 1...
1.946774
4,603
from core.errors import LEO_ERRORS from django import template register = template.Library() from utility.currency import to_price as to_price_origin from utility.num import to_horuf as to_horuf_num,to_tartib as to_tartib_ def separate(price): try: price=int(price) except: return N...
[ 6738, 4755, 13, 48277, 1330, 406, 4720, 62, 24908, 50, 198, 6738, 42625, 14208, 1330, 11055, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 6738, 10361, 13, 34415, 1330, 284, 62, 20888, 355, 284, 62, 20888, 62, 47103, 198, 6738, 10361, ...
2.47191
178
# Time: O(m*n) # Space: O(n) # 85 # Given a 2D binary matrix filled with 0's and 1's, # find the largest rectangle containing all ones and return its area. # Ascending stack solution. # DP solution. if __name__ == "__main__": matrix = ["01101", "11010", "01110", "1111...
[ 2, 3862, 25, 220, 440, 7, 76, 9, 77, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 198, 198, 2, 7600, 198, 2, 11259, 257, 362, 35, 13934, 17593, 5901, 351, 657, 338, 290, 352, 338, 11, 198, 2, 1064, 262, 4387, 35991, 7268, 477, 3392, ...
2.142132
197
n=int(input()) a = [int(s) for s in input().split(' ')] increment=1 max_increment=1 for i in range(1,n): if a[i]>a[i-1]: increment=increment+1 else: max_increment=max(max_increment,increment) increment=1 max_increment=max(max_increment,increment) print(max_increment)
[ 77, 28, 600, 7, 15414, 28955, 198, 64, 796, 685, 600, 7, 82, 8, 329, 264, 287, 5128, 22446, 35312, 10786, 705, 15437, 198, 24988, 434, 28, 16, 198, 9806, 62, 24988, 434, 28, 16, 198, 1640, 1312, 287, 2837, 7, 16, 11, 77, 2599, ...
2.151079
139
#!/usr/bin/python from SocketServer import TCPServer, StreamRequestHandler import socket from subprocess import call import datetime import json import re import sys import os CONF = {} RRDTOOL = '/usr/bin/rrdtool' PERIODS = [] CHART_BACKGROUNDCOLOR = '#000000' CHART_CANVASCOLOR = '#000000' CHART_DIRECTORY = '/tmp/'...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 47068, 10697, 1330, 17283, 3705, 18497, 11, 13860, 18453, 25060, 198, 11748, 17802, 198, 6738, 850, 14681, 1330, 869, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 302, 198, ...
2.033046
696
# import turtle t = turtle.Pen() turtle.bgcolor("black") colors = ["red", "yellow", "blue", "green"] # gui text input name = turtle.textinput(" ", " ?") for x in range(100): t.pencolor(colors[x%4]) t.penup() t.forward(x*4) t.pendown() t.write(name, font=("Arial", int((x + 4)...
[ 2, 220, 220, 220, 220, 220, 201, 198, 11748, 28699, 201, 198, 201, 198, 83, 796, 28699, 13, 25553, 3419, 201, 198, 83, 17964, 13, 35904, 8043, 7203, 13424, 4943, 201, 198, 4033, 669, 796, 14631, 445, 1600, 366, 36022, 1600, 366, 175...
2.028736
174
# coding:utf-8 # @Time : 2019/5/15 # @Author : xuyouze # @File Name : base_config.py import importlib import os import sys import torch import logging from .dataset_config import build_dataset_config from .logger_config import config __all__ = ["BaseConfig"]
[ 2, 19617, 25, 40477, 12, 23, 198, 2, 2488, 7575, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 13130, 14, 20, 14, 1314, 220, 198, 2, 2488, 13838, 220, 220, 220, 220, 220, 220, 1058, 2124, 4669, 280, 2736, 198, 2, 2488, 8979, 653...
2.587156
109
from fact.io import read_data # # def test_joinOnTimesFromRunDB(): # from ratescan.utils import joinOnTimesFromRunDB # # df = read_data("test/test.hdf5", key="ratescan") # # df_res = joinOnTimesFromRunDB(df)
[ 6738, 1109, 13, 952, 1330, 1100, 62, 7890, 198, 2, 220, 198, 2, 825, 1332, 62, 22179, 2202, 28595, 4863, 10987, 11012, 33529, 220, 220, 198, 2, 220, 220, 220, 220, 422, 3965, 5171, 13, 26791, 1330, 4654, 2202, 28595, 4863, 10987, 11...
2.393617
94
''' @copyright: 2022 - Symas Corporation ''' import sys import pickle import argparse from rbac.util import global_ids from rbac.model import Perm, User from rbac import access from rbac.util import RbacError from ..cli.utils import print_user, print_entity from rbac.cli.utils import ( load_entity, add_args, ADD,...
[ 7061, 6, 198, 31, 22163, 4766, 25, 220, 220, 33160, 532, 1632, 5356, 10501, 198, 7061, 6, 198, 11748, 25064, 198, 11748, 2298, 293, 198, 11748, 1822, 29572, 198, 6738, 374, 65, 330, 13, 22602, 1330, 3298, 62, 2340, 198, 6738, 374, 6...
2.483333
420
from httprider.core.generators import utility_func_map
[ 6738, 1841, 1050, 1304, 13, 7295, 13, 8612, 2024, 1330, 10361, 62, 20786, 62, 8899, 628 ]
3.5
16
import argparse import numpy as np import os from numpy.linalg import inv import torch import torch.nn as nn from torch.utils.data import TensorDataset import torch.optim as optim from torch.distributions.multivariate_normal import MultivariateNormal from torch.distributions.uniform import Uniform from torch.distribut...
[ 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 800, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 26791, 13, 7890, ...
3.554795
146
#!/usr/bin/env python import os import requests import json import time import sys import subprocess import csv import json import numpy as np if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941...
2.968254
63
import os import pandas as pd import numpy as np from pandas.testing import assert_series_equal from madic import io def test_load_skyline_transition_report(): report_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../examples/' ...
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19798, 292, 13, 33407, 1330, 6818, 62, 25076, 62, 40496, 198, 6738, 8805, 291, 1330, 33245, 628, 628, 198, 4299, 1332, 62, 2220, 62, 15...
1.89893
1,682
import matplotlib.pyplot as plt x = [] y = [] with open('points') as f: for point in map(lambda x: x.split(), f.readlines()): x.append(int(point[0])) y.append(int(point[1])) plt.scatter(x, y) plt.show()
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 87, 796, 17635, 198, 88, 796, 17635, 198, 198, 4480, 1280, 10786, 13033, 11537, 355, 277, 25, 198, 220, 220, 220, 329, 966, 287, 3975, 7, 50033, 2124, 25, 2124, 13, ...
2.092593
108
# Copyright 2015-2018,2020 Ivan Yelizariev # License MIT (https://opensource.org/licenses/MIT). { "name": "POS debranding", "version": "13.0.1.0.0", "author": "IT-Projects LLC, Ivan Yelizariev", "license": "Other OSI approved licence", # MIT "category": "Debranding", "support": "help@itpp.dev",...
[ 2, 15069, 1853, 12, 7908, 11, 42334, 21798, 28876, 528, 283, 11203, 198, 2, 13789, 17168, 357, 5450, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 36393, 737, 198, 90, 198, 220, 220, 220, 366, 3672, 1298, 366, 37997, 390, 17938, 2...
2.435407
209
import tensorflow as tf # We will train all layers except hidden[12]. Therefore, Layers 1 and 2 are frozen train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope="hidden[34]|outputs") loss = None # Your loss is here train_op = tf.train.GradientDescentOptimizer(learning_rate=0.01).minimize(loss, var_l...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 2, 775, 481, 4512, 477, 11685, 2845, 7104, 58, 1065, 4083, 8447, 11, 406, 6962, 352, 290, 362, 389, 12912, 198, 27432, 62, 85, 945, 796, 48700, 13, 1136, 62, 43681, 7, 27110, 13, 37065...
2.887931
116
# from Calculator.Addition import addition from Calculator.Division import division
[ 2, 422, 43597, 13, 4550, 653, 1330, 3090, 198, 6738, 43597, 13, 24095, 1166, 1330, 7297, 198 ]
4.941176
17
# -*- coding: utf-8 -*- import os
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198 ]
1.894737
19
""" The Python implementation of the GRPC image client. Modified from grpc/examples/python/helloworld/greeting_client.py. """ from __future__ import print_function import logging from io import BytesIO from PIL import Image import grpc import image_pb2 import image_pb2_grpc if __name__ == '__main__': logging...
[ 37811, 198, 464, 11361, 7822, 286, 262, 10863, 5662, 2939, 5456, 13, 198, 198, 5841, 1431, 422, 1036, 14751, 14, 1069, 12629, 14, 29412, 14, 12758, 322, 1764, 14, 70, 2871, 278, 62, 16366, 13, 9078, 13, 198, 37811, 198, 198, 6738, 1...
3
115
import numpy as np from sklearn.neural_network import MLPRegressor from sklearn.exceptions import NotFittedError from inter.interfaces import QLearning from utility import set_all_args
[ 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 710, 1523, 62, 27349, 1330, 10373, 4805, 1533, 44292, 198, 6738, 1341, 35720, 13, 1069, 11755, 1330, 1892, 37, 2175, 12331, 198, 198, 6738, 987, 13, 3849, 32186, 1330, 1195...
3.537037
54
import datetime from database.chemprop.endpoints import Endpoints from database.chemprop.parameters import Parameters from database.database_schemas import Schemas from sqlalchemy import Column, Integer, String, DateTime, ForeignKey from sqlalchemy.orm import relationship from database.base import Base
[ 11748, 4818, 8079, 198, 198, 6738, 6831, 13, 15245, 22930, 13, 437, 13033, 1330, 5268, 13033, 198, 6738, 6831, 13, 15245, 22930, 13, 17143, 7307, 1330, 40117, 198, 6738, 6831, 13, 48806, 62, 1416, 4411, 292, 1330, 1446, 4411, 292, 198, ...
4.093333
75
label_name_mapping = { 0: "unlabeled", 1: "outlier", 10: "car", 11: "bicycle", 13: "bus", 15: "motorcycle", 16: "on-rails", 18: "truck", 20: "other-vehicle", 30: "person", 31: "bicyclist", 32: "motorcyclist", 40: "road", 44: "parking", 48: "sidewalk", 49: ...
[ 18242, 62, 3672, 62, 76, 5912, 796, 1391, 198, 220, 220, 220, 657, 25, 366, 403, 18242, 276, 1600, 198, 220, 220, 220, 352, 25, 366, 448, 2505, 1600, 198, 220, 220, 220, 838, 25, 366, 7718, 1600, 198, 220, 220, 220, 1367, 25, 36...
1.689655
1,189
#!/usr/bin/env python from __future__ import absolute_import if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
2.805556
36
from state import TurtleState # TODO : improve... but with useful things for illustrating the point...
[ 6738, 1181, 1330, 33137, 9012, 628, 198, 2, 16926, 46, 1058, 2987, 986, 475, 351, 4465, 1243, 329, 44000, 262, 966, 986, 628, 628 ]
4.5
24
""" The transitionFinder module is used to calculate finite temperature cosmological phase transitions: it contains functions to find the phase structure as a function of temperature, and functions to find the transition (bubble nucleation) temperature for each phase. In contrast, :mod:`.pathDefomration` is useful for ...
[ 37811, 198, 464, 6801, 37, 5540, 8265, 318, 973, 284, 15284, 27454, 5951, 198, 6966, 76, 2770, 7108, 27188, 25, 340, 4909, 5499, 284, 1064, 262, 7108, 198, 301, 5620, 355, 257, 2163, 286, 5951, 11, 290, 5499, 284, 1064, 262, 6801, 1...
2.184225
24,888
import sys import random import networkx as nx from write_nx_graph import write_graph uncommons = set() # Everything except the 3300 common words in SGB f = open ('data/words.txt','r') words = [] for line in f: if len(line)>0 and line[0] == '*': continue word = line.strip()[:5] words.append(wo...
[ 11748, 25064, 198, 11748, 4738, 198, 11748, 3127, 87, 355, 299, 87, 198, 6738, 3551, 62, 77, 87, 62, 34960, 1330, 3551, 62, 34960, 198, 198, 403, 9503, 684, 796, 900, 3419, 1303, 11391, 2845, 262, 4747, 405, 2219, 2456, 287, 311, 45...
2.480447
179
#!/usr/bin/env python2 # # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # at your...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 198, 2, 520, 2411, 4914, 532, 10452, 38215, 10244, 198, 2, 15069, 357, 66, 8, 3717, 12, 7908, 39256, 1437, 11, 3457, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 34...
3.200501
399
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 33160, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
3.49162
179