content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
"""Resource route definitions for /users""" import typing as t from http import HTTPStatus from flask import Blueprint from flask_pyjwt import require_token from ..extensions import db from ..models import GifSyncUser users_blueprint = Blueprint("users", __name__, url_prefix="/users") @users_blueprint.route("", me...
[ 37811, 26198, 6339, 17336, 329, 1220, 18417, 37811, 198, 11748, 19720, 355, 256, 198, 6738, 2638, 1330, 14626, 19580, 198, 198, 6738, 42903, 1330, 39932, 198, 6738, 42903, 62, 9078, 73, 46569, 1330, 2421, 62, 30001, 198, 198, 6738, 11485,...
2.810393
712
from flask import Flask,render_template, request import pandas as pd from geopy.distance import great_circle import math import os app = Flask(__name__) @app.route('/') @app.route('/getTyphoonYear') @app.route('/getTyphoonName') @app.route('/getTyphoonRecord') @app.route('/getPredict') @app.route('/getBase...
[ 6738, 42903, 1330, 46947, 11, 13287, 62, 28243, 11, 2581, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4903, 11081, 13, 30246, 1330, 1049, 62, 45597, 198, 11748, 10688, 198, 11748, 28686, 198, 198, 1324, 796, 46947, 7, 834, 3672, ...
2.554839
155
""" IMPORTANT : note that the fitness score in the json files containing the individuals changes the outcome of the crossover.txt The crossover method in this implementation of NEAT chooses a random genome as the better parent in case both have the same fitness score instead of choosing a random gene each time...
[ 37811, 30023, 9863, 8643, 1058, 3465, 326, 262, 13547, 4776, 287, 262, 33918, 3696, 7268, 262, 3925, 2458, 262, 8055, 286, 262, 27668, 13, 14116, 198, 220, 220, 220, 383, 27668, 2446, 287, 428, 7822, 286, 10635, 1404, 19769, 257, 4738, ...
3.726496
468
from matplotlib.backends.backend_pdf import PdfPages
[ 6738, 2603, 29487, 8019, 13, 1891, 2412, 13, 1891, 437, 62, 12315, 1330, 350, 7568, 47798, 198 ]
3.117647
17
from rdkit import Chem import pandas as pd import numpy as np from tqdm import tqdm from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import RobustScaler tqdm.pandas() GLOBAL_SCALE = ['partial_charge', 'fukui_neu', 'fukui_elec'] ATOM_SCALE = ['NMR']
[ 6738, 374, 67, 15813, 1330, 12870, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 198, ...
2.64486
107
from colorama import * import instaloader import os import time textglock = "GlockInstaDownloader" clear() banner = f""" +--^----------,--------,-----,--------^-, | ||||||||| `--------' | O {Fore.RED + textglock + Fore.BLUE} `+---------------------------^----------| `\_,---------,------...
[ 6738, 3124, 1689, 1330, 1635, 201, 198, 11748, 916, 282, 1170, 263, 201, 198, 11748, 28686, 201, 198, 11748, 640, 201, 198, 5239, 4743, 735, 796, 366, 38, 5354, 6310, 64, 10002, 263, 1, 201, 198, 201, 198, 20063, 3419, 201, 198, 382...
2
504
#!/usr/bin/env python import os from fabric import Connection conn = Connection( host='192.168.1.83', user='user', port=22, connect_kwargs={'password': 'hhserver'} ) # TODO: create sudo config conn_root = Connection( host='192.168.1.83', user='root', port=22, connect_kwargs={'passwor...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 198, 6738, 9664, 1330, 26923, 198, 198, 37043, 796, 26923, 7, 198, 220, 220, 220, 2583, 11639, 17477, 13, 14656, 13, 16, 13, 5999, 3256, 198, 220, 220, 220, 2...
2.59633
327
from gensim.corpora import Dictionary from gensim.models import TfidfModel from gensim.models import Word2Vec from multiprocessing import cpu_count from gensim.models import Doc2Vec from gensim.models.word2vec import LineSentence from gensim.similarities import MatrixSimilarity, WmdSimilarity, SoftCosineSimilarity impo...
[ 6738, 308, 641, 320, 13, 10215, 38851, 1330, 28261, 198, 6738, 308, 641, 320, 13, 27530, 1330, 309, 69, 312, 69, 17633, 198, 6738, 308, 641, 320, 13, 27530, 1330, 9678, 17, 53, 721, 198, 6738, 18540, 305, 919, 278, 1330, 42804, 62, ...
2.489066
503
from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_validators import ( is_exchange, is_valid_market_trading_pair ) from hummingbot.client.settings import required_exchanges, EXAMPLE_PAIRS from decimal import Decimal from hummingbot.client.config.config_helpers import ...
[ 6738, 41465, 13645, 13, 16366, 13, 11250, 13, 11250, 62, 7785, 1330, 17056, 19852, 198, 6738, 41465, 13645, 13, 16366, 13, 11250, 13, 11250, 62, 12102, 2024, 1330, 357, 198, 220, 220, 220, 318, 62, 1069, 3803, 11, 198, 220, 220, 220, ...
2.288774
1,541
from imports import * class MyKivyApp(App): """ Classe App """ def build(self): """ Método para construir o aplicativo """ return MyWidget() if __name__ == "__main__": Window.size = (800,600) Window.fullscreen = False MyKivyApp().run()
[ 6738, 17944, 1330, 1635, 198, 198, 4871, 2011, 42, 452, 88, 4677, 7, 4677, 2599, 198, 220, 220, 220, 37227, 220, 198, 220, 220, 220, 1012, 21612, 2034, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 825, 1382, 7, 944, 2599, 198, 2...
2.135714
140
import allure from hamcrest import * import pytest from dialog_api.peers_pb2 import OutPeer @allure.issue("SAN-13", "Reaction in group") @pytest.mark.incremental @pytest.mark.usefixtures("d_user", "update1", "update2", "update3", "group_reactons") @pytest.mark.parametrize('d_user', ["3 users"], indirect=True) class...
[ 11748, 477, 495, 198, 6738, 8891, 66, 2118, 1330, 1635, 198, 11748, 12972, 9288, 198, 6738, 17310, 62, 15042, 13, 431, 364, 62, 40842, 17, 1330, 3806, 6435, 263, 628, 198, 31, 439, 495, 13, 21949, 7203, 36753, 12, 1485, 1600, 366, 3...
2.550622
563
#!/usr/bin/env python3 import sys import fileinput import re # Simple heuristic parser for encoded cap'n'proto uncompressed # encoded messages, hexdump'ed in format: # (7 hex digit offset) (xx ){8} # piped to stdin. # # Known Shortcomings # ================== # * Will get confused with reve...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 2393, 15414, 198, 11748, 302, 198, 198, 2, 17427, 339, 27915, 30751, 329, 30240, 1451, 6, 77, 6, 1676, 1462, 34318, 2790, 198, 2, 30240, 6218, 11, ...
2.862637
182
from .list import List from .dlist import DList from .slist import SList from .stack import Stack from .queue import Queue from .pqueue import PQueue
[ 6738, 764, 4868, 1330, 7343, 198, 6738, 764, 67, 4868, 1330, 360, 8053, 198, 6738, 764, 82, 4868, 1330, 311, 8053, 198, 6738, 764, 25558, 1330, 23881, 198, 6738, 764, 36560, 1330, 4670, 518, 198, 6738, 764, 79, 36560, 1330, 350, 34991...
3.488372
43
from baseq.mgt.config import get_config import pandas as pd import re, os, time def get_isolated_genes(genome, min_Gap, minLength): r"""Get The Isolated Genes Which Do not Have Genes At upstream and downstream. :param genome: Genome Version Name like hg38. :param min_Gap: mininum distance to the upstream a...
[ 6738, 2779, 80, 13, 11296, 83, 13, 11250, 1330, 651, 62, 11250, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 302, 11, 28686, 11, 640, 198, 198, 4299, 651, 62, 30152, 515, 62, 5235, 274, 7, 5235, 462, 11, 949, 62, 38, 499, 1...
2.430556
360
import os.path import shutil import pytest import configparser from pkg_resources import resource_filename from pyresp2.geo_opt import gen_opt, read_opt @pytest.fixture(scope='class')
[ 11748, 28686, 13, 6978, 198, 11748, 4423, 346, 198, 198, 11748, 12972, 9288, 198, 11748, 4566, 48610, 198, 6738, 279, 10025, 62, 37540, 1330, 8271, 62, 34345, 198, 198, 6738, 12972, 4363, 17, 13, 469, 78, 62, 8738, 1330, 2429, 62, 873...
3.116667
60
print("This program lists out every single word alphabetically froma given file.") fname = input("Enter file name: ") fh = open(fname) lst = list() for line in fh: lin=line.split() for k in lin: if k not in lst: lst.append(k) lst.sort() print(lst)
[ 198, 4798, 7203, 1212, 1430, 8341, 503, 790, 2060, 1573, 24830, 1146, 422, 64, 1813, 2393, 19570, 198, 69, 3672, 796, 5128, 7203, 17469, 2393, 1438, 25, 366, 8, 198, 69, 71, 796, 1280, 7, 69, 3672, 8, 198, 75, 301, 796, 1351, 3419...
2.419643
112
# SCAR - Serverless Container-aware ARchitectures # Copyright (C) 2011 - GRyCAP - Universitat Politecnica de Valencia # # 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 Li...
[ 2, 6374, 1503, 532, 9652, 1203, 43101, 12, 9685, 5923, 354, 5712, 942, 198, 2, 15069, 357, 34, 8, 2813, 532, 10863, 88, 33177, 532, 26986, 270, 265, 2165, 578, 31522, 3970, 390, 35773, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 2...
3.725
240
from math import * # noinspection PyPep8Naming from k_road.model.tire_model.lateral_tire_model import LateralTireModel class MagicTireModel93(LateralTireModel): """ see Bakker, E.; Pacejka, H. B.; Lidner, L. A new tire model with an application in vehicle dynamics studies. [S.l.], 1989 see https:...
[ 6738, 10688, 1330, 1635, 198, 198, 2, 645, 1040, 14978, 9485, 47, 538, 23, 45, 3723, 198, 6738, 479, 62, 6344, 13, 19849, 13, 83, 557, 62, 19849, 13, 75, 10534, 62, 83, 557, 62, 19849, 1330, 406, 10534, 51, 557, 17633, 628, 198, ...
2.50365
411
from datetime import datetime from textwrap import dedent from os.path import join, dirname from django.db import connection, reset_queries from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.conf import settings from django.test import TestCase as Django...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 11, 13259, 62, 421, 10640, 198, 6738, 42625, 14208...
3.157303
178
# -*- coding: UTF8 -*- from pupylib.PupyModule import * import StringIO import SocketServer import threading import socket import logging import struct import traceback import time __class_name__="KeyloggerModule" class KeyloggerModule(PupyModule): """ a simple keylogger :-) """ #max_clients=1 daemon=True unique_...
[ 2, 532, 9, 12, 19617, 25, 41002, 23, 532, 9, 12, 198, 6738, 15552, 2645, 571, 13, 47, 929, 88, 26796, 1330, 1635, 198, 11748, 10903, 9399, 198, 11748, 47068, 10697, 198, 11748, 4704, 278, 198, 11748, 17802, 198, 11748, 18931, 198, 1...
2.928571
126
#!/usr/bin/env python """ _Pickleable_ An object that can be persisted using pickle """ __all__ = [] from WMCore.DataStructs.WMObject import WMObject
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 62, 31686, 293, 540, 62, 198, 198, 2025, 2134, 326, 460, 307, 33264, 1262, 2298, 293, 198, 198, 37811, 198, 834, 439, 834, 796, 17635, 628, 198, 6738, 370, 9655, 382, 13,...
2.90566
53
from collections import defaultdict import string from django.conf import settings from django.contrib import auth from django.core.exceptions import PermissionDenied from django.core.mail import send_mail from django.db import IntegrityError from django.db.models import Q from django.shortcuts import get_object_or_40...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 4731, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6284, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 2448, 3411, 21306, 798, ...
3.268293
697
##################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2022.03 # ##################################################### email_old_to_new_202203 = { "sutton@gte.com": None, "ww129@win.duke.edu": None, "rpa@seas.harvard.edu": "rpa@princeton.edu", "martha@indiana....
[ 29113, 14468, 4242, 2, 198, 2, 15069, 357, 66, 8, 33591, 1092, 72, 28831, 685, 38, 270, 16066, 360, 12, 55, 12, 56, 4357, 33160, 13, 3070, 1303, 198, 29113, 14468, 4242, 2, 198, 198, 12888, 62, 727, 62, 1462, 62, 3605, 62, 1238, ...
2.030899
1,068
issues = { 'compiler': [ { 'closed': u'2012-05-21T13:54:55Z', 'delta': 3, 'opened': u'2012-05-18T21:22:49Z', 'title': 'Installation on Mac OSX (update docs)', 'url': u'https://github.com/elm/compiler/issues/6'}, { 'clo...
[ 37165, 796, 1391, 705, 5589, 5329, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1391, 705, 20225, 10354, 334, 6, 6999, 12, 2713, 12, 2481, 51, 1485, 25, 4051, 25, 2816, 57, 3256, 198, 220, 220,...
1.736443
378,450
from __future__ import annotations import os import typing import toolcache import ctc.config from ctc.toolbox import search_utils from ctc.toolbox import store_utils from ctc import spec from . import networks # # # backend functions # @toolcache.cache(cachetype='memory')
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 28686, 198, 11748, 19720, 198, 198, 11748, 2891, 23870, 198, 198, 11748, 269, 23047, 13, 11250, 198, 6738, 269, 23047, 13, 25981, 3524, 1330, 2989, 62, 26791, 198, 6738, 269, 23047, ...
3.376471
85
# -*- coding:utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12 ]
1.833333
12
# Copyright (c) 2011-2022, The DART development contributors # All rights reserved. # # The list of contributors can be found at: # https://github.com/dartsim/dart/blob/master/LICENSE # # This file is provided under the "BSD-style" License import pytest import dartpy as dart if __name__ == "__main__": pytest....
[ 2, 15069, 357, 66, 8, 2813, 12, 1238, 1828, 11, 383, 360, 7227, 2478, 20420, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 383, 1351, 286, 20420, 460, 307, 1043, 379, 25, 198, 2, 220, 220, 3740, 1378, 12567, 13, 785, 14, 67, ...
3
109
# Generated by Django 3.2.3 on 2021-05-31 21:29 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2713, 12, 3132, 2310, 25, 1959, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python from __future__ import print_function from setuptools import setup, find_packages import os, re PKG='oauth2' VERSIONFILE = os.path.join('oauth2', '_version.py') verstr = "unknown" try: verstrline = open(VERSIONFILE, "rt").read() except EnvironmentError: pass # Okay, there is no version fi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 28686, 11, 302, 198, 198, 40492, 38, 11639, 12162, 1071, 17, 6...
2.397668
772
from django import forms from django.utils.translation import ugettext_lazy as _ from mayan.apps.common.forms import FilteredSelectionForm from mayan.apps.documents.models import Document from mayan.apps.templating.fields import TemplateField from .models import Index, IndexTemplateNode from .permissions import permi...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 743, 272, 13, 18211, 13, 11321, 13, 23914, 1330, 7066, 4400, 4653, 1564, 8479, 198, 6738, ...
3.632353
136
# Copyright (c) 2020 Monika Roznere, RLab @ Dartmouth College import random def random_number(): """ Simple function that returns a random number from 0 to 99 Return: random number """ return random.randrange(100)
[ 2, 15069, 357, 66, 8, 12131, 2892, 9232, 41334, 77, 567, 11, 371, 17822, 2488, 47888, 5535, 198, 198, 11748, 4738, 628, 198, 4299, 4738, 62, 17618, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17427, 2163, 326, 5860, 257, 4...
3.216216
74
import sys import pyqtgraph as pg from cnmodel.protocols.simple_synapse_test import SimpleSynapseTest from cnmodel import cells from cnmodel.synapses import Synapse if __name__ == '__main__': r = runtest() print 'runtest done' if sys.flags.interactive == 0: pg.QtGui.QApplication.exec_()
[ 11748, 25064, 198, 11748, 12972, 80, 25297, 1470, 355, 23241, 198, 6738, 269, 77, 19849, 13, 11235, 4668, 82, 13, 36439, 62, 28869, 7512, 62, 9288, 1330, 17427, 29934, 7512, 14402, 198, 6738, 269, 77, 19849, 1330, 4778, 198, 6738, 269, ...
2.644068
118
import csv import json import re from StringIO import StringIO from contextlib import contextmanager from datetime import datetime, timedelta import feedparser import flask import pytest from werkzeug.datastructures import MultiDict from werkzeug.http import dump_cookie from api.admin.controller import ( setup_a...
[ 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 302, 198, 6738, 10903, 9399, 1330, 10903, 9399, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 11748, 3745, 48610, 198, 1174...
3.081571
662
#! python3 """ pisat.comm.transceiver.comm_socket ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Socket to communicate pear to pear via transceiver. This class represents object like the socket of python, whose has a single connection. This class is not instanciated by users, but by a SocketTransceiver object. """ from typi...
[ 2, 0, 21015, 18, 198, 198, 37811, 198, 198, 79, 271, 265, 13, 9503, 13, 7645, 39729, 13, 9503, 62, 44971, 198, 27156, 27156, 4907, 198, 39105, 284, 10996, 25286, 284, 25286, 2884, 1007, 39729, 13, 198, 1212, 1398, 6870, 2134, 588, 2...
2.277338
3,155
import logging from assigner.backends import from_name from assigner.config import requires_config logger = logging.getLogger(__name__) def requires_config_and_backend(func): """Provides a backend depending on configuration.""" @requires_config return wrapper
[ 11748, 18931, 198, 198, 6738, 8333, 263, 13, 1891, 2412, 1330, 422, 62, 3672, 198, 6738, 8333, 263, 13, 11250, 1330, 4433, 62, 11250, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4299, 443...
3.378049
82
from django.contrib.auth.models import User, Group from .models import Movies,User from rest_framework import serializers
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 11, 4912, 198, 6738, 764, 27530, 1330, 27151, 11, 12982, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 628, 198 ]
3.875
32
import logging from astropy import units import bisect from dpd.kinematics import move from .pedestrian import Pedestrian class Driver(Pedestrian): """ A person driving a motor vehicle """
[ 11748, 18931, 198, 198, 6738, 6468, 28338, 1330, 4991, 198, 11748, 47457, 478, 198, 198, 6738, 288, 30094, 13, 5116, 368, 23372, 1330, 1445, 198, 6738, 764, 9124, 395, 4484, 1330, 13457, 395, 4484, 628, 198, 4871, 12434, 7, 43468, 395, ...
3.203125
64
import os from fastapi import APIRouter from fastapi.encoders import jsonable_encoder from app.application.service.mecab_parser import MeCabParser from app.controller.service.mecab_controller import get_data from app.domain.endpoint import ChatApiRequest, Request from app.domain.entity import Query from app.infrastru...
[ 11748, 28686, 198, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 6738, 3049, 15042, 13, 12685, 375, 364, 1330, 33918, 540, 62, 12685, 12342, 198, 198, 6738, 598, 13, 31438, 13, 15271, 13, 76, 721, 397, 62, 48610, 1330, 2185, 3...
2.994764
191
from tests.mysqlDemo.BaseModel import BaseModel if __name__ == '__main__': # @ModelDemo.transaction # def demo(id): # data = ModelDemo().where('id', 1).first() # ModelDemo().where('id', 2).update({'name': "5555"}) # ModelDemo().where('id', id).update({'name': "444","token_name":'111'}...
[ 198, 6738, 5254, 13, 28744, 13976, 11522, 78, 13, 14881, 17633, 1330, 7308, 17633, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 2488, 17633, 11522, 78, 13, 7645, 2673, 198, 220, 220, 22...
2.25579
1,943
# 한 번 계산된 결과를 메모이제이션(Memoization)하기 위한 리스트 초기화 d = [0] * 100 # 피보나치 함수(Fibonacci Function)를 재귀함수로 구현 (탑다운 다이나믹 프로그래밍) print(fibo(99)) # 실행결과 : 218922995834555169026
[ 2, 220, 47991, 250, 31619, 110, 230, 220, 166, 111, 226, 168, 224, 108, 167, 238, 250, 220, 166, 110, 108, 166, 111, 120, 167, 98, 120, 31619, 102, 242, 167, 103, 101, 35975, 112, 168, 254, 250, 35975, 112, 168, 227, 246, 7, 135...
0.801932
207
import pygame, random import tkinter as tk root = tk.Tk() pygame.init() while True: h = game() h.loop()
[ 11748, 12972, 6057, 11, 4738, 201, 198, 11748, 256, 74, 3849, 355, 256, 74, 201, 198, 201, 198, 15763, 796, 256, 74, 13, 51, 74, 3419, 201, 198, 9078, 6057, 13, 15003, 3419, 201, 198, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, ...
2.086207
58
modules = { "CMT102": "", "CMT103": "https://cardiff.cloud.panopto.eu/Panopto/Pages/Embed.aspx?id=9039023b-2f6a-43f1-b498-5350e711c982", "CMT104": "", "CMT105": "https://cardiff.cloud.panopto.eu/Panopto/Pages/Embed.aspx?id=acfc5ad0-c8cd-4c13-97fd-b1bc49157827", "CMT106": "", "CMT107": "https://c...
[ 18170, 796, 1391, 198, 220, 220, 220, 366, 34, 13752, 15377, 1298, 366, 1600, 198, 220, 220, 220, 366, 34, 13752, 15197, 1298, 366, 5450, 1378, 9517, 733, 13, 17721, 13, 6839, 404, 1462, 13, 12496, 14, 15730, 404, 1462, 14, 47798, 1...
1.937802
1,865
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
[ 37811, 198, 15269, 2211, 8239, 13566, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 73...
3.785276
163
import process_username as pu print str(pu.process_username("tomtomhickey"))
[ 11748, 1429, 62, 29460, 355, 47574, 198, 198, 4798, 965, 7, 19944, 13, 14681, 62, 29460, 7203, 39532, 39532, 71, 40389, 48774, 198 ]
3.391304
23
# E. Cloudmesh.Shell.2 Write a new command with your first name as the command name. from __future__ import print_function from cloudmesh import Shell from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand
[ 2, 412, 13, 10130, 76, 5069, 13, 23248, 13, 17, 19430, 257, 649, 3141, 351, 534, 717, 1438, 355, 262, 3141, 1438, 13, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 6279, 76, 5069, 1330, 17537, 198, 6738, ...
3.84375
64
# Copyright 2018-2019 Faculty Science 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ 2, 15069, 2864, 12, 23344, 35262, 5800, 15302, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
2.680171
938
"""Nozomi exceptions.""" class NozomiException(Exception): """Base Nozomi package exception.""" class InvalidTagFormat(NozomiException): """The tag is not in valid format (i.e. empty string).""" class InvalidUrlFormat(NozomiException): """The url is not in valid format."""
[ 37811, 2949, 89, 12753, 13269, 526, 15931, 198, 198, 4871, 1400, 89, 12753, 16922, 7, 16922, 2599, 198, 220, 220, 220, 37227, 14881, 1400, 89, 12753, 5301, 6631, 526, 15931, 198, 198, 4871, 17665, 24835, 26227, 7, 2949, 89, 12753, 16922...
3.211111
90
# Graphics / Turtle # Use turtle #graphics to draw paths. # Original example: https://docs.python.org/3/library/turtle.html # --- from h2o_wave import site, ui, graphics as g t = g.turtle().f(100).r(90).pd() for _ in range(36): t.f(200).l(170) spirograph = t.pu(1).path(stroke='red', fill='yellow') page = site['/d...
[ 2, 19840, 1220, 33137, 198, 2, 5765, 28699, 1303, 70, 11549, 284, 3197, 13532, 13, 198, 2, 13745, 1672, 25, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 18, 14, 32016, 14, 83, 17964, 13, 6494, 198, 2, 11420, 198, 6738, 289, 17, 78,...
2.444444
198
#!/usr/bin/env python """ Parse vt100 input and print keys. For testing terminal input. """ from __future__ import unicode_literals import sys from prompt_toolkit.input.vt100 import raw_mode from prompt_toolkit.input.vt100_parser import Vt100Parser from prompt_toolkit.keys import Keys if __name__ == '__main__': ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 10044, 325, 410, 83, 3064, 5128, 290, 3601, 8251, 13, 198, 1890, 4856, 12094, 5128, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 19...
3.055556
108
import numpy from fvm import utils from fvm import BoundaryConditions from fvm import Discretization class CylindricalDiscretization(Discretization): '''Finite volume discretization of the incompressible Navier-Stokes equations on a (possibly non-uniform) Arakawa C-grid in a cylindrical coordinate system....
[ 11748, 299, 32152, 198, 198, 6738, 277, 14761, 1330, 3384, 4487, 198, 6738, 277, 14761, 1330, 30149, 560, 25559, 1756, 198, 6738, 277, 14761, 1330, 8444, 1186, 1634, 198, 198, 4871, 327, 2645, 521, 8143, 15642, 1186, 1634, 7, 15642, 118...
2.041359
2,708
# A simple script that plots the time and the speedup # of the parallel OpenMP program as the number of available # cores increases. import matplotlib.pyplot as plt import sys import numpy as np import matplotlib matplotlib.use('Agg') t_64 = [] t_1024 = [] t_4096 = [] s_64 = [] s_1024 = [] s_4096 = [] fp = open(sys...
[ 2, 317, 2829, 4226, 326, 21528, 262, 640, 290, 262, 2866, 929, 198, 2, 286, 262, 10730, 4946, 7378, 1430, 355, 262, 1271, 286, 1695, 198, 2, 21758, 5732, 13, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, ...
2.158263
1,428
import numpy as np import ochre
[ 11748, 299, 32152, 355, 45941, 198, 11748, 267, 354, 260, 628, 628, 628, 628, 628 ]
2.733333
15
"""Test Open Peer Power config flow for BleBox devices.""" from unittest.mock import DEFAULT, AsyncMock, PropertyMock, patch import blebox_uniapi import pytest from openpeerpower import config_entries, data_entry_flow from openpeerpower.components.blebox import config_flow from openpeerpower.setup import async_setup...
[ 37811, 14402, 4946, 41139, 4333, 4566, 5202, 329, 17175, 14253, 4410, 526, 15931, 198, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 5550, 38865, 11, 1081, 13361, 44, 735, 11, 14161, 44, 735, 11, 8529, 198, 198, 11748, 7245, 3524, 62, ...
2.507429
2,692
# %% # Operador de Membro lista = [1, 2, 3, 'Ana', 'Carla'] 2 in lista 'Ana' not in lista # Operador de Identidade x = 3 y = x z = 3 x is y y is z x is not z lista_a = [1, 2, 3] lista_b = lista_a lista_c = [1, 2, 3] lista_a is lista_b lista_b is lista_c lista_a is not lista_c
[ 2, 43313, 198, 2, 6564, 7079, 390, 4942, 7957, 198, 4868, 64, 796, 685, 16, 11, 362, 11, 513, 11, 705, 2025, 64, 3256, 705, 9914, 5031, 20520, 198, 17, 287, 1351, 64, 198, 6, 2025, 64, 6, 407, 287, 1351, 64, 198, 198, 2, 6564,...
1.917808
146
""" Dynamically import a page. """ import unittest from wheezy.template.engine import Engine from wheezy.template.ext.core import CoreExtension from wheezy.template.loader import DictLoader widgets_a = """ @def say_hi(name): Hi, @name. @end """ widgets_b = """ @def say_hi(name): Hello, @name. @end """ page...
[ 37811, 14970, 1146, 1330, 257, 2443, 13, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 483, 68, 7357, 13, 28243, 13, 18392, 1330, 7117, 198, 6738, 483, 68, 7357, 13, 28243, 13, 2302, 13, 7295, 1330, 7231, 11627, 3004, ...
2.452055
365
from collections import defaultdict, namedtuple, OrderedDict from types import GeneratorType from django.db import models from django.db.models import BooleanField, Case, Q, When from django.core.exceptions import ImproperlyConfigured, MultipleObjectsReturned from django.http import HttpRequest from django.template.lo...
[ 6738, 17268, 1330, 4277, 11600, 11, 3706, 83, 29291, 11, 14230, 1068, 35, 713, 198, 6738, 3858, 1330, 35986, 6030, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 41146, 15878, 11,...
2.46876
9,363
from flask import request, render_template, redirect, url_for, session, json, send_file, send_from_directory from src import app from forms import SignUpForm, LoginForm, RecoveryForm, AdvancedSearchForm, SellAnArtworkForm from functools import wraps from sessions import verify_session, create_session, destroy_session, ...
[ 6738, 42903, 1330, 2581, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 11, 6246, 11, 33918, 11, 3758, 62, 7753, 11, 3758, 62, 6738, 62, 34945, 198, 6738, 12351, 1330, 598, 198, 6738, 5107, 1330, 5865, 4933, 8479, 11, 23093, 8...
2.756173
648
### Copyright 2014, MTA SZTAKI, www.sztaki.hu ### ### 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 applicab...
[ 21017, 15069, 1946, 11, 48824, 311, 57, 5603, 37845, 11, 7324, 13, 82, 89, 83, 8182, 13, 13415, 198, 21017, 198, 21017, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 21017, 345, 743, 407, ...
3.242634
577
import gettext import numpy from nion.data import DataAndMetadata from nion.swift.model import Symbolic from nion.typeshed import API_1_0 as API from nion.swift import Facade _ = gettext.gettext Symbolic.register_computation_type("nion.make_idpc", MakeIDPC)
[ 11748, 651, 5239, 198, 198, 11748, 299, 32152, 198, 198, 6738, 299, 295, 13, 7890, 1330, 6060, 1870, 9171, 14706, 198, 6738, 299, 295, 13, 2032, 2135, 13, 19849, 1330, 41327, 4160, 198, 6738, 299, 295, 13, 19199, 704, 1330, 7824, 62, ...
2.819149
94
TABLE_ID = 'table_id' PERSON_ID = 'person_id' RESEARCH_ID = 'research_id' ALL_DATASETS = 'all_datasets' NONE = 'none' PID_QUERY = """ (SELECT {pid} FROM `{pid_source}`) """ DE_IDENTIFIED = 'de_identified' TRUE = 'true'
[ 38148, 62, 2389, 796, 705, 11487, 62, 312, 6, 198, 47, 29086, 62, 2389, 796, 705, 6259, 62, 312, 6, 198, 19535, 17133, 3398, 62, 2389, 796, 705, 34033, 62, 312, 6, 198, 198, 7036, 62, 35, 1404, 1921, 32716, 796, 705, 439, 62, 19...
2.15534
103
import sys from PyQt5 import QtWidgets, QtCore class CryptoShill(QtWidgets.QMainWindow): """Main window of the application.""" def set_up_gui(self): """Takes care of all widgets and layouts.""" self.coin_name_input = QtWidgets.QLineEdit() self.coin_amount_input = QtWidgets.QDoubleSp...
[ 11748, 25064, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 11, 33734, 14055, 628, 198, 4871, 36579, 2484, 359, 7, 48, 83, 54, 312, 11407, 13, 48, 13383, 27703, 2599, 198, 220, 220, 220, 37227, 13383, 4324, 286, 262...
2.284091
616
import sys import logging import unittest from mock import Mock, call, patch from ina219 import INA219 logger = logging.getLogger() logger.level = logging.ERROR logger.addHandler(logging.StreamHandler(sys.stdout))
[ 11748, 25064, 198, 11748, 18931, 198, 11748, 555, 715, 395, 198, 6738, 15290, 1330, 44123, 11, 869, 11, 8529, 198, 6738, 287, 64, 28896, 1330, 3268, 32, 28896, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 3419, 198, 6404, ...
3.223881
67
import random import signal import sys import threading import time import click from tomomibot import __version__ from tomomibot.server import Server from tomomibot.session import Session from tomomibot.voice import Voice
[ 11748, 4738, 198, 11748, 6737, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 640, 198, 198, 11748, 3904, 198, 198, 6738, 16667, 296, 571, 313, 1330, 11593, 9641, 834, 198, 6738, 16667, 296, 571, 313, 13, 15388, 1330, 9652, 198, ...
3.704918
61
import warnings import httpcore import httpx import pytest from respx import AsyncMockTransport, MockTransport, SyncMockTransport @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio
[ 11748, 14601, 198, 198, 11748, 2638, 7295, 198, 11748, 2638, 87, 198, 11748, 12972, 9288, 198, 198, 6738, 1217, 87, 1330, 1081, 13361, 44, 735, 8291, 634, 11, 44123, 8291, 634, 11, 35908, 44, 735, 8291, 634, 628, 198, 198, 31, 9078, ...
2.710843
83
# -*- coding: utf-8 -*- """ Created on Thu Jul 5 14:51:56 2018 @author: SOLIL """ # PARAMETROS COMUNES A TODAS LAS ACCIONES # _______________PC______________________________ dir_org = r'C:\Users\solil\Documents\_D\_clientes\tmp\ET' db = r'C:\Users\solil\Documents\_D\BBDD\AEMET-CHS\AEMET_CHS_completed_1965-...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 5979, 220, 642, 1478, 25, 4349, 25, 3980, 2864, 201, 198, 201, 198, 31, 9800, 25, 36817, 4146, 201, 198, 37811, 201, 198, 201,...
2.217631
363
from flask import Flask from flask_restful import Api from elasticapm.contrib.flask import ElasticAPM from flask_restful_swagger import swagger from resources import custom_logger from resources.routes import initialize_routes import logging app = Flask(__name__) app.config.from_object("config.Config") # Initializing...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 2118, 913, 1330, 5949, 72, 198, 6738, 27468, 499, 76, 13, 3642, 822, 13, 2704, 2093, 1330, 48567, 2969, 44, 198, 6738, 42903, 62, 2118, 913, 62, 2032, 7928, 1330, 1509, 7928, 198, 6738, ...
2.908163
196
#Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" and its frequency is 2. #Now, given string arrays queries and words, return an integer array answer, where each answer[i...
[ 2, 5756, 338, 8160, 257, 2163, 277, 7, 82, 8, 625, 257, 1729, 12, 28920, 4731, 264, 11, 543, 43707, 262, 8373, 286, 262, 18197, 2095, 287, 264, 13, 1114, 1672, 11, 611, 264, 796, 366, 17896, 344, 1, 788, 277, 7, 82, 8, 796, 36...
2.509804
510
import os base_path = os.path.dirname(__file__) LOG_FILE_PATH = os.path.join(base_path, 'logs') if not os.path.exists(LOG_FILE_PATH): os.makedirs(LOG_FILE_PATH)
[ 11748, 28686, 198, 198, 8692, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 25294, 62, 25664, 62, 34219, 796, 28686, 13, 6978, 13, 22179, 7, 8692, 62, 6978, 11, 705, 6404, 82, 11537, 198, 361, 407, 28...
2.273973
73
import re from precise_bbcode.bbcode.placeholder import BBCodePlaceholder from precise_bbcode.placeholder_pool import placeholder_pool placeholder_pool.register_placeholder(PhoneNumberBBCodePlaceholder) placeholder_pool.register_placeholder(StartsWithBBCodePlaceholder)
[ 11748, 302, 198, 198, 6738, 7141, 62, 11848, 8189, 13, 11848, 8189, 13, 5372, 13829, 1330, 7823, 1098, 27271, 13829, 198, 6738, 7141, 62, 11848, 8189, 13, 5372, 13829, 62, 7742, 1330, 46076, 62, 7742, 628, 628, 198, 5372, 13829, 62, 7...
3.666667
75
from ._base import BodyComponent from ..lib import merge_dicts __all__ = ['MjBody']
[ 198, 6738, 47540, 8692, 1330, 12290, 21950, 198, 6738, 11485, 8019, 1330, 20121, 62, 11600, 82, 628, 198, 834, 439, 834, 796, 37250, 44, 73, 25842, 20520, 628 ]
3.142857
28
import forges
[ 11748, 329, 3212, 201 ]
3.5
4
import os import requests import json from fastapi.logger import logger from src.utils import PluginInterface
[ 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 6738, 3049, 15042, 13, 6404, 1362, 1330, 49706, 628, 198, 6738, 12351, 13, 26791, 1330, 42636, 39317, 628 ]
4.185185
27
from tastypie import fields from tastypie.resources import ModelResource, Resource, ALL, Bundle from tastypie.authentication import ApiKeyAuthentication from tastypie.authorization import Authorization from tastypie.serializers import Serializer from snappybouncer.models import Conversation, UserAccount, Ticket from sn...
[ 6738, 14854, 4464, 494, 1330, 7032, 198, 6738, 14854, 4464, 494, 13, 37540, 1330, 9104, 26198, 11, 20857, 11, 11096, 11, 25282, 198, 6738, 14854, 4464, 494, 13, 41299, 3299, 1330, 5949, 72, 9218, 47649, 3299, 198, 6738, 14854, 4464, 494...
3.3125
240
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class DashArcherContainer(Component): """A DashArcherContainer component. DashArcherContainer component is a wrapper for ArcherContainer component from react-archer module. See usage: https://github.com/p...
[ 2, 47044, 46, 24700, 1137, 11617, 45811, 532, 8410, 5626, 48483, 198, 198, 6738, 14470, 13, 31267, 13, 8692, 62, 42895, 1330, 35100, 11, 4808, 20676, 3628, 1096, 62, 22046, 628, 198, 4871, 16189, 3163, 2044, 29869, 7, 21950, 2599, 198, ...
3.613636
308
# https://projecteuler.net/problem=14 # Run with: 'python solve14.py' # using Python 3.6.9 # by Zack Sargent # Prompt: # The following iterative sequence is defined for the set of positive integers: # n → n/2 (n is even) # n → 3n + 1 (n is odd) # Using the rule above and starting with 13, we generate the followin...
[ 2, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 1415, 198, 2, 5660, 351, 25, 705, 29412, 8494, 1415, 13, 9078, 6, 198, 2, 1262, 11361, 513, 13, 21, 13, 24, 198, 2, 416, 30718, 311, 853, 298, 198, 198, 2, 45965, 25, 1...
2.986807
379
import pyspeedtest
[ 11748, 279, 893, 39492, 9288, 628, 198 ]
3
7
#!/usr/bin/python3 #coding: utf-8 # Created by iagsoncarlos on Tuesday, March 23, 2021. # Copyright (c) 2021 @iagsoncarlos. All rights reserved. import cv2 import numpy as np
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 66, 7656, 25, 3384, 69, 12, 23, 198, 198, 2, 15622, 416, 1312, 363, 1559, 66, 7063, 418, 319, 3431, 11, 2805, 2242, 11, 33448, 13, 198, 2, 15069, 357, 66, 8, 33448, 2488, 72, 3...
2.602941
68
# ElectrumSV - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # Copyright (C) 2019 ElectrumSV developers # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restricti...
[ 2, 5903, 6582, 50, 53, 532, 18700, 6185, 5456, 198, 2, 15069, 357, 34, 8, 2321, 294, 16911, 85, 31, 70, 2072, 699, 198, 2, 15069, 357, 34, 8, 13130, 5903, 6582, 50, 53, 6505, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1...
3.513208
530
import socket import sys from threading import * import time import traceback from wizard.tools import log from PyQt5.QtCore import QThread, pyqtSignal import yaml from wizard.vars import defaults logger = log.pipe_log(__name__)
[ 11748, 17802, 198, 11748, 25064, 198, 6738, 4704, 278, 1330, 1635, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 6738, 18731, 13, 31391, 1330, 2604, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 16818, 11, 12972, 39568, ...
3.239437
71
import matplotlib from matplotlib import pyplot as plt months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] visits_per_month = [9695, 7909, 10831, 12942, 12495, 16794, 14161, 12762, 12777, 12439, 10309, 8724] # numbers of limes of different species sold each month key_limes_p...
[ 11748, 2603, 29487, 8019, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 41537, 796, 14631, 12128, 1600, 366, 15146, 1600, 366, 7676, 1600, 366, 13680, 1600, 366, 6747, 1600, 366, 22396, 1600, 366, 16980, 1600, ...
2.236607
672
import math samplingRate = 2000 lengthInSeconds = 1 frequency = 440 # middle A (iirc) samples = list() for j in range(4): pointScale = samplingRate / frequency / (j + 1) * 2 * math.pi for i in range(samplingRate * lengthInSeconds): v = int((math.sin(i / pointScale) + 1) * 512) samples.append(v...
[ 11748, 10688, 198, 198, 37687, 11347, 32184, 796, 4751, 198, 13664, 818, 12211, 82, 796, 352, 198, 35324, 796, 33879, 1303, 3504, 317, 357, 72, 1980, 8, 198, 198, 82, 12629, 796, 1351, 3419, 198, 1640, 474, 287, 2837, 7, 19, 2599, 1...
2.527094
203
txt = str(input('Digite o texto: ')) escreva(txt)
[ 198, 198, 14116, 796, 965, 7, 15414, 10786, 19511, 578, 267, 2420, 78, 25, 705, 4008, 198, 3798, 260, 6862, 7, 14116, 8, 198 ]
2.166667
24
from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core import validators # Your model code here... from django.utils.translation import ugettext as _
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 1330, 4938, 2024, 198, 198, 2, 3406, 2746, 2438, 994, 98...
3.448276
58
from typing import Optional REPL_LIST = [("\r", ""), ("\n ", "\n"), (" \n", "\n"), (" ", " "), ("\t\n", "\n")] STRIP_CHARS = "\r "
[ 6738, 19720, 1330, 32233, 628, 198, 2200, 6489, 62, 45849, 796, 685, 7203, 59, 81, 1600, 366, 12340, 5855, 59, 77, 33172, 37082, 77, 12340, 5855, 3467, 77, 1600, 37082, 77, 12340, 5855, 220, 33172, 366, 366, 828, 5855, 59, 83, 59, 7...
2.288136
59
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ 2, 38093, 25609, 855, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.667774
301
#!/usr/bin/env python3 # % cat testfiles-5/predictions.tsv | sort | python3 explainer.py # In paragraph 4, sentence 2, the participant "plants" is moved from an unknown location to sediment # In paragraph 4, sentence 3, the participant "bacteria" is moved from an unknown location to sediment # In paragraph 4, sentence...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 4064, 3797, 1332, 16624, 12, 20, 14, 28764, 9278, 13, 912, 85, 930, 3297, 930, 21015, 18, 4727, 263, 13, 9078, 198, 2, 554, 7322, 604, 11, 6827, 362, 11, 262, 18399, ...
2.998374
615
#!/usr/bin/env python3 # get CI artifact download URLs by commit sha # Licensed under MIT. # https://github.com/dehesselle/gitlabci import gitlab # pip install python-gitlab from natter import IniFile from common import * from sty import fg # pip install sty import argparse if __name__ == "__main__": mai...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 651, 14514, 24127, 4321, 32336, 416, 4589, 427, 64, 198, 2, 49962, 739, 17168, 13, 198, 2, 3740, 1378, 12567, 13, 785, 14, 2934, 956, 741, 293, 14, 18300, 23912, 979, 198, 1...
3.028037
107
if __name__ == "__main__": string = input('Enter X Y, split by space: ').split() ans = solve(string[1], string[0]) for i in ans: print(i) print(f'\nAnswer: {ans[-1][-1]}')
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4731, 796, 5128, 10786, 17469, 1395, 575, 11, 6626, 416, 2272, 25, 705, 737, 35312, 3419, 198, 220, 220, 220, 9093, 796, 8494, 7, 8841, 58, 16, ...
2.163043
92
import autopy import socket import win32com.client as comclt import time from message import IRCMessage SERVER = "irc.yolo-swag.com" CHANNEL = "#pokemon" NICK = "StreamInput" wsh = comclt.Dispatch("WScript.Shell") wsh.AppActivate("VisualBoyAdvance") server = socket.socket() server.connect((SERVER, 6667)) server.sen...
[ 11748, 1960, 11081, 198, 11748, 17802, 198, 11748, 1592, 2624, 785, 13, 16366, 355, 401, 565, 83, 198, 11748, 640, 198, 6738, 3275, 1330, 30039, 12837, 198, 198, 35009, 5959, 796, 366, 1980, 13, 88, 14057, 12, 2032, 363, 13, 785, 1, ...
2.381862
419
#!/usr/bin/env python # encoding: utf-8 from django.conf.urls import url from . import views app_name = 'Downloads' urlpatterns = [ url(r'^$', views.index), url(r'^table', views.table, name='table'), url(r'^downFile', views.downFile, name='downFile'), ]
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 198, 198, 1324, 62, 3672, 796, 705, 10002, 82, ...
2.481481
108
from notionscripts.notion_api import NotionApi from config import Config notion_api = NotionApi(Config()) config = notion_api.config
[ 6738, 26226, 6519, 82, 13, 1662, 295, 62, 15042, 1330, 1892, 295, 32, 14415, 198, 198, 6738, 4566, 1330, 17056, 198, 198, 1662, 295, 62, 15042, 796, 1892, 295, 32, 14415, 7, 16934, 28955, 198, 11250, 796, 9495, 62, 15042, 13, 11250, ...
3.139535
43
import argparse import asyncio import logging import os import aiofiles from aiohttp import web if __name__ == "__main__": args = get_args() init(args.path) if args.logging: logging.basicConfig(filename="server.log", level=logging.INFO) else: logging.basicConfig(filename="server....
[ 11748, 1822, 29572, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 11748, 257, 952, 16624, 198, 6738, 257, 952, 4023, 1330, 3992, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198,...
2.31746
252
import matplotlib.pyplot as plt import pandas as pd import os from pandas.core import base dir_path = os.path.dirname(os.path.realpath(__file__)) for disease in ["Cholera","Malaria","Measles"]: baseline=pd.read_excel(f'{dir_path}/Results_Baseline_{disease}_National.xlsx') covid=pd.read_excel(f'{dir_path}/Resu...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 198, 6738, 19798, 292, 13, 7295, 1330, 2779, 198, 15908, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, ...
2.290102
293
#!/usr/bin/env python import requests import argparse import subprocess import logging as log # if the seconds_since_last_block from the # api are greater than this value the # url will be cosidered dead # 0 to disable MAX_SECONDS_SINCE_LAST_BLOCK = 1000 # if the seconds_since_last_block from the # api are greater th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 7007, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 198, 11748, 18931, 355, 2604, 198, 198, 2, 611, 262, 4201, 62, 20777, 62, 12957, 62, 9967, 422, 262, 198, 2, 40391, 389, ...
2.634703
438
#!/usr/bin/env python from avatar2.archs.arm import ARM from avatar2.protocols.gdb import GDBProtocol from nose.tools import * gdb = None if __name__ == '__main__': setup() test_discovery() teardown()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 30919, 17, 13, 34592, 13, 1670, 1330, 20359, 198, 6738, 30919, 17, 13, 11235, 4668, 82, 13, 70, 9945, 1330, 402, 11012, 19703, 4668, 198, 198, 6738, 9686, 13, 31391, 1330, 1635, ...
2.564706
85
#coding=utf-8 import os import socket import logging from logging.config import fileConfig DEFAULT_FORMAT = '[%(asctime)s] %(levelname)s jobexecute "%(message)s"' if __name__ == "__main__": logger = setup_file_logging('jobexecute','master.log') logger.info('main')
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 11748, 28686, 198, 11748, 17802, 198, 11748, 18931, 198, 6738, 18931, 13, 11250, 1330, 2393, 16934, 628, 198, 7206, 38865, 62, 21389, 1404, 796, 44438, 4, 7, 292, 310, 524, 8, 82, 60, 4064, 7, ...
2.816327
98
from django.contrib import admin from models import Problem, Solution admin.site.register(Problem, ProblemAdmin) admin.site.register(Solution, SoultionAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4981, 1330, 20647, 11, 28186, 198, 198, 28482, 13, 15654, 13, 30238, 7, 40781, 11, 20647, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 46344, 11, 22862, 2528, 295, 46787, 8 ...
3.761905
42
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import h5py, os, torch, glob, scipy import numpy as np import sigpy as sp import torch.fft as torch_fft from torch.utils.data import Dataset from scipy import ndimage import matplotlib.pyplot as plt from torch.optim.lr_scheduler import StepLR from torch.utils.data import D...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 289, 20, 9078, 11, 28686, 11, 28034, 11, 15095, 11, 629, 541, 88, 198, 11748, 299, 32152, 355, 45941, 198,...
2.794527
2,010
#!/usr/bin/env python # Written by: Steven Kay, Autonomous Systems Engineer # steven.kay@stfc.ac.uk, +44 (0)1235778759 # Autonomous Systems Group, RAL Space # May 2017 from __future__ import division import rospy import serial import sys import time from dlp_io8_g.msg import dlp_io8_msg if __name__ == "__m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 22503, 416, 25, 8239, 17356, 11, 5231, 38175, 11998, 23164, 198, 2, 2876, 574, 13, 5568, 31, 301, 16072, 13, 330, 13, 2724, 11, 1343, 2598, 357, 15, 8, 1065, 2327, 3324, 31...
2.588608
158
from __future__ import print_function from constant import * from models import * from dataset import * import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from sklearn.metrics import f1_score,precision_score,recall_score os.environ["CUDA_VISIBLE_D...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 6937, 1330, 1635, 198, 6738, 4981, 1330, 1635, 198, 6738, 27039, 1330, 1635, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471,...
2.5875
320