content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import pytest from rampwf.utils.sanitize import _sanitize_input
[ 11748, 12972, 9288, 198, 198, 6738, 10454, 86, 69, 13, 26791, 13, 12807, 270, 1096, 1330, 4808, 12807, 270, 1096, 62, 15414, 628 ]
2.869565
23
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from Parser import Parser from LexicalAnalyzer import LexicalAnalyzer
[ 6738, 23042, 263, 1330, 23042, 263, 220, 220, 220, 220, 220, 220, 198, 6738, 17210, 605, 37702, 9107, 1330, 17210, 605, 37702, 9107 ]
3.26087
23
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import numpy as np import torch def to_tensor(data): """ Convert numpy array to PyTorch tensor. For complex arrays, the real and im...
[ 37811, 198, 15269, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 1212, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 43, 2149, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.472577
4,613
import doctest from migrate_exblog import entries_to_mt
[ 11748, 10412, 395, 198, 198, 6738, 32492, 62, 1069, 14036, 1330, 12784, 62, 1462, 62, 16762, 628 ]
3.411765
17
from .server import get_server_params, get_ssl_params, redirect_root_to_docs, start_model_server
[ 6738, 764, 15388, 1330, 651, 62, 15388, 62, 37266, 11, 651, 62, 45163, 62, 37266, 11, 18941, 62, 15763, 62, 1462, 62, 31628, 11, 923, 62, 19849, 62, 15388, 198 ]
3.233333
30
import os import tempfile from types import TracebackType from typing import Any, BinaryIO, Optional, TextIO, Type, Union import yaml
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 6738, 3858, 1330, 34912, 1891, 6030, 198, 6738, 19720, 1330, 4377, 11, 45755, 9399, 11, 32233, 11, 8255, 9399, 11, 5994, 11, 4479, 198, 198, 11748, 331, 43695, 628, 198 ]
3.702703
37
import numpy as np import cv2 def rem_multi_lines(lines, thresh): """ to remove the multiple lines with close proximity :param lines: initial list with all the lines(multiple in place of singular) :param thresh: dist between two lines for them to be considered as same :return: final list with sin...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 628, 198, 4299, 816, 62, 41684, 62, 6615, 7, 6615, 11, 294, 3447, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 284, 4781, 262, 3294, 3951, 351, 1969, 20387, 220, 198, ...
2.120101
791
# Before running this command, you should firstly run: # pip install fairseq # pip install fastBPE # wget https://dl.fbaipublicfiles.com/fairseq/models/lm/wmt19.en.tar.gz # tar zxvf wmt19.en.tar.gz import argparse from itertools import islice import numpy as np from fairseq.models.transformer_lm import TransformerLang...
[ 2, 7413, 2491, 428, 3141, 11, 345, 815, 717, 306, 1057, 25, 198, 2, 7347, 2721, 3148, 41068, 198, 2, 7347, 2721, 3049, 33, 11401, 198, 2, 266, 1136, 3740, 1378, 25404, 13, 69, 7012, 541, 841, 16624, 13, 785, 14, 22043, 41068, 14, ...
2.338855
664
import warnings from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin from aioli.service import BaseService from aioli.controller import BaseHttpController from aioli.exceptions import NoMatchFound
[ 11748, 14601, 198, 198, 6738, 2471, 271, 43106, 1330, 3486, 1797, 43106, 198, 6738, 2471, 271, 43106, 13, 2302, 13, 76, 5406, 42725, 1330, 9786, 42725, 37233, 198, 198, 6738, 257, 1669, 72, 13, 15271, 1330, 7308, 16177, 198, 6738, 257, ...
3.693548
62
import pandas as pd import plotly.graph_objs as go
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 7110, 306, 13, 34960, 62, 672, 8457, 355, 467, 628, 198 ]
2.789474
19
import factory from faker import Faker from popup.models import Popup fake = Faker()
[ 11748, 8860, 198, 6738, 277, 3110, 1330, 376, 3110, 198, 198, 6738, 46207, 13, 27530, 1330, 8099, 929, 198, 198, 30706, 796, 376, 3110, 3419, 628 ]
3.384615
26
import os import glob import shutil import logging # logging.basicConfig(level=logging.DEBUG) # DEBUG:root:Skipping file /Users/hygull/Projects/Python3/DjangoTenantOracleSchemas/django-tenant-oracle-schemas/src/tenants/models.py # logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG) # 2019-06-2...
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 4423, 346, 198, 11748, 18931, 198, 198, 2, 18931, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 8, 198, 2, 16959, 25, 15763, 25, 50, 4106, 2105, 2393, 1220, 14490, 14, 12114, 70, ...
2.422392
393
from typing import Callable, List, Union, Optional, Dict, Tuple import re import spacy import logging import math from enum import Enum logger = logging.getLogger(__name__) Preprocessor = PreprocessorBase dots = re.compile(r"[\.\'\"\?, ]{2,}[\w ]*")
[ 6738, 19720, 1330, 4889, 540, 11, 7343, 11, 4479, 11, 32233, 11, 360, 713, 11, 309, 29291, 198, 11748, 302, 198, 11748, 599, 1590, 198, 11748, 18931, 198, 11748, 10688, 198, 6738, 33829, 1330, 2039, 388, 198, 6404, 1362, 796, 18931, 1...
2.857143
91
""" ===== Distributed by: Notre Dame SCAI Lab (MIT Liscense) - Associated publication: url: https://arxiv.org/abs/2010.03957 doi: github: https://github.com/zabaras/transformer-physx ===== """ import logging import h5py import torch from .dataset_phys import PhysicalDataset from ..embedding.embedding_model import Embe...
[ 37811, 198, 1421, 28, 198, 20344, 6169, 416, 25, 23382, 20377, 6374, 20185, 3498, 357, 36393, 406, 2304, 1072, 8, 198, 12, 10575, 9207, 25, 198, 6371, 25, 3740, 1378, 283, 87, 452, 13, 2398, 14, 8937, 14, 10333, 13, 15, 2670, 3553, ...
2.928571
126
import FWCore.ParameterSet.Config as cms #from ..modules.hltL1TkMuons_cfi import * from ..modules.hltL1TkSingleMuFiltered22_cfi import * from ..sequences.HLTBeginSequence_cfi import * from ..sequences.HLTEndSequence_cfi import * L1T_SingleTkMuon_22 = cms.Path( HLTBeginSequence + # hltL1TkMuons + hltL1TkSin...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 2, 6738, 11485, 18170, 13, 71, 2528, 43, 16, 51, 74, 33239, 684, 62, 66, 12463, 1330, 1635, 198, 6738, 11485, 18170, 13, 71, 2528, 43, 16, 51, 74, 28008, 33...
2.286624
157
import os import math import argparse import dbh_util as util from sklearn.ensemble import RandomForestClassifier parser = argparse.ArgumentParser() parser.add_argument('--n-estimators', type=int, default=10, help='The number of trees in the forest') parser.add_argument('--max-depth', type=int, default=5, help='Max d...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 1822, 29572, 198, 11748, 20613, 71, 62, 22602, 355, 7736, 198, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 14534, 34605, 9487, 7483, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677...
3.344828
145
# Copyright 2017 - Nokia # # 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, sof...
[ 2, 15069, 2177, 532, 26182, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2,...
2.733164
787
import json import os import subprocess import sys TEST_FILENAME = "tmp_py_file" TEST_FOLDER = "clone_tests" TESTS = [ ("clone!( => move || {})", "If you have nothing to clone, no need to use this macro!"), ("clone!(|| {})", "If you have nothing to clone, no need to use this macro!"), ("cl...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 628, 198, 51, 6465, 62, 46700, 1677, 10067, 796, 366, 22065, 62, 9078, 62, 7753, 1, 198, 51, 6465, 62, 37, 3535, 14418, 796, 366, 21018, 62, 41989, 1, 198, ...
2.653775
543
from __future__ import unicode_literals from django.http import HttpRequest from django.template import Context, Template, TemplateSyntaxError from django.test import TestCase from snakeoil.models import SeoUrl from .models import TestModel
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 18453, 198, 6738, 42625, 14208, 13, 28243, 1330, 30532, 11, 37350, 11, 37350, 13940, 41641, 12331, 198, 6738, 42625, 142...
3.769231
65
from .trainers import * from .predictors import *
[ 6738, 764, 27432, 364, 1330, 1635, 198, 6738, 764, 79, 17407, 669, 1330, 1635, 198 ]
3.333333
15
import torch from torch_geometric.nn import GravNetConv
[ 11748, 28034, 198, 6738, 28034, 62, 469, 16996, 13, 20471, 1330, 32599, 7934, 3103, 85, 628 ]
3.5625
16
from datetime import datetime from hootpy import HootPy if __name__ == "__main__": cfg = { 'forecast_hours':[0, 3, 6, 9, 12], 'product_title':"NAM Forecast Cross Section KDRT-KGRB", 'image_file_name':"nam_fcross_KDRT-KGRB_f%02d.png" } hpc = CrossPlotter(cfg) hpc.loadData() ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 289, 1025, 9078, 1330, 367, 1025, 20519, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30218, 70, 796, 1391, 198, 220, 220, 220, 220, 220, ...
2.03681
163
import logging import ldap from django.conf import settings from django.contrib.auth.models import Group from django.core.management.base import BaseCommand from django_auth_ldap.backend import LDAPBackend from chiffee.models import User logger = logging.getLogger('syncldap') # This command synchronizes local data...
[ 11748, 18931, 198, 198, 11748, 300, 67, 499, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, ...
3.503876
129
from ols import * from diagnostics import * from diagnostics_sp import * from user_output import * from twosls import * from twosls_sp import * from error_sp import * from error_sp_het import * from error_sp_hom import * from ols_regimes import * from twosls_regimes import * from twosls_sp_regimes import * from error_s...
[ 6738, 267, 7278, 1330, 1635, 198, 6738, 6689, 34558, 1330, 1635, 198, 6738, 6689, 34558, 62, 2777, 1330, 1635, 198, 6738, 2836, 62, 22915, 1330, 1635, 198, 6738, 665, 418, 7278, 1330, 1635, 198, 6738, 665, 418, 7278, 62, 2777, 1330, 1...
3.114583
192
from pytest import fixture from encountertk.e_model import EncounterModel, ps_encounter, mean_vol_encountered
[ 6738, 12972, 9288, 1330, 29220, 198, 6738, 8791, 30488, 13, 68, 62, 19849, 1330, 40998, 17633, 11, 26692, 62, 12685, 6828, 11, 1612, 62, 10396, 62, 268, 9127, 1068, 628 ]
3.7
30
import sys from collections import deque a, b, c = sys.stdin.read().split() if __name__ == "__main__": ans = main() print(ans)
[ 11748, 25064, 201, 198, 6738, 17268, 1330, 390, 4188, 201, 198, 201, 198, 64, 11, 275, 11, 269, 796, 25064, 13, 19282, 259, 13, 961, 22446, 35312, 3419, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, ...
2.257576
66
""" Runs LightGBM using distributed (mpi) training. to execute: > python src/pipelines/azureml/lightgbm_training.py --exp-config conf/experiments/lightgbm_training/cpu.yaml """ # pylint: disable=no-member # NOTE: because it raises 'dict' has no 'outputs' member in dsl.pipeline construction import os import sys import ...
[ 37811, 198, 10987, 82, 4401, 4579, 44, 1262, 9387, 357, 3149, 72, 8, 3047, 13, 198, 198, 1462, 12260, 25, 198, 29, 21015, 12351, 14, 79, 541, 20655, 14, 1031, 495, 4029, 14, 2971, 70, 20475, 62, 34409, 13, 9078, 1377, 11201, 12, 1...
2.795853
1,881
from xml.etree import ElementTree as Et import pandas as pd import requests from twinfield.core import Base from twinfield.exceptions import ServerError from twinfield.messages import METADATA_XML
[ 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 355, 17906, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 7007, 198, 198, 6738, 15203, 3245, 13, 7295, 1330, 7308, 198, 6738, 15203, 3245, 13, 1069, 11755, 1330, 9652, 12331, 198, ...
3.636364
55
# Author: Artem Skiba # Created: 20/01/2020 from .dataset import FastDataset from .dataloader import get_dataloader __all__ = [ 'FastDataset', 'get_dataloader' ]
[ 2, 220, 220, 6434, 25, 3683, 368, 3661, 23718, 198, 2, 220, 220, 15622, 25, 1160, 14, 486, 14, 42334, 198, 198, 6738, 764, 19608, 292, 316, 1330, 12549, 27354, 292, 316, 198, 6738, 764, 67, 10254, 1170, 263, 1330, 651, 62, 67, 102...
2.324324
74
INIT = 1 REST = ['START_MODSAFE',[0,0]] NEUTRAL = ['START_MODSAFE',[1,INIT]] FDBK = ['START_MODSAFE',[2,INIT]] LIN = ['START_MODSAFE',[3,INIT]] SIN = ['START_MODSAFE',[4,INIT]] TYPES = {'Vconst':LIN,'Fconst':FDBK,'Zconst':NEUTRAL} try: import epz as tempEpz import inspect _,_,keys,_ = inspect.getargspec(...
[ 1268, 2043, 796, 352, 198, 198, 49, 6465, 796, 37250, 2257, 7227, 62, 33365, 4090, 15112, 3256, 58, 15, 11, 15, 11907, 198, 12161, 3843, 35296, 796, 37250, 2257, 7227, 62, 33365, 4090, 15112, 3256, 58, 16, 11, 1268, 2043, 11907, 198, ...
2.169753
648
import pytest from mock import patch from app.device.brakes import Brakes from app.utils.servo import Servo from app.utils.exceptions import InvalidArguments
[ 11748, 12972, 9288, 198, 6738, 15290, 1330, 8529, 198, 198, 6738, 598, 13, 25202, 13, 16057, 5209, 1330, 9718, 5209, 198, 6738, 598, 13, 26791, 13, 3168, 78, 1330, 3116, 78, 198, 6738, 598, 13, 26791, 13, 1069, 11755, 1330, 17665, 281...
3.613636
44
from collections import Counter
[ 6738, 17268, 1330, 15034, 198 ]
6.4
5
'''Test package for robosync'''
[ 7061, 6, 14402, 5301, 329, 220, 3857, 418, 13361, 7061, 6, 198 ]
2.75
12
#!/usr/bin/env python # coding: utf-8 """ create at 2017/11/22 by allen """ import re from flask import request, session, current_app from app.lib.constant import ResourceType from app.models.auth import Resource, role_resource, Role, user_role, User from app.lib.exceptions import AuthError, PermissionError ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 2251, 379, 2177, 14, 1157, 14, 1828, 416, 477, 268, 198, 37811, 198, 198, 11748, 302, 198, 6738, 42903, 1330, 2...
3.007042
142
if __name__ == '__main__': s = Solution() print(s.plus_one([9,9,9]))
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 264, 796, 28186, 3419, 198, 220, 220, 220, 3601, 7, 82, 13, 9541, 62, 505, 26933, 24, 11, 24, 11, 24, 60, 4008, 198 ]
2
39
from django.conf import settings from django.template.loader import render_to_string from vms import models def test_accept(client_admin_invite_factory, user_factory): """ Accepting the invitation should create a new client admin for the user who accepts. """ invite = client_admin_invite_factory(...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 198, 6738, 410, 907, 1330, 4981, 628, 198, 4299, 1332, 62, 13635, 7, 16366, 62, 28482, 62, 16340, 578, 62, ...
2.819298
570
import base64 import os import asyncio from pbx_gs_python_utils.utils.Process import Process from osbot_aws.Dependencies import load_dependency
[ 11748, 2779, 2414, 198, 11748, 28686, 198, 11748, 30351, 952, 198, 198, 6738, 279, 65, 87, 62, 14542, 62, 29412, 62, 26791, 13, 26791, 13, 18709, 1330, 10854, 198, 198, 6738, 28686, 13645, 62, 8356, 13, 35, 2690, 3976, 1330, 3440, 62,...
3.217391
46
""" Filter to convert results from network device show commands obtained from ios_command, eos_command, et cetera to structured data using TextFSM templates. """ from __future__ import unicode_literals from __future__ import print_function import os from textfsm.clitable import CliTableError import textfsm.clitable a...
[ 37811, 198, 22417, 284, 10385, 2482, 422, 3127, 3335, 905, 9729, 6492, 422, 1312, 418, 62, 21812, 11, 198, 68, 418, 62, 21812, 11, 2123, 269, 2357, 64, 284, 20793, 1366, 1262, 8255, 10652, 44, 24019, 13, 198, 37811, 198, 6738, 11593, ...
2.640172
931
#!/usr/bin/python import threading import Queue import serial import time from datetime import datetime from firebase import firebase import sqlite3 from datetime import datetime, timedelta from gpiozero import Button, LED #/////////////////////////////////////////// import firebase_admin from firebase_admin import c...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 4704, 278, 198, 11748, 4670, 518, 198, 11748, 11389, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 2046, 8692, 1330, 2046, 8692, 198, 11748, 44161, 578, 18, 198, ...
2.581062
697
#-------------------------------------------------------------------------------------------------- # Function: look-for # Purpose: Loops through all AWS accounts and regions within an Organization to find a specific resource # Inputs: # # { # "view_only": "true|false", # "regions": ["us-east-1", ...] # } #...
[ 2, 10097, 3880, 438, 198, 2, 15553, 25, 804, 12, 1640, 198, 2, 32039, 25, 220, 6706, 2840, 832, 477, 30865, 5504, 290, 7652, 1626, 281, 12275, 284, 1064, 257, 2176, 8271, 198, 2, 23412, 82, 25, 220, 220, 220, 198, 2, 198, 2, 220...
5.199029
206
import logging from typing import Any, Dict from pydantic import ValidationError from scrapy import Spider from scrapy.http import Response from opennem.pipelines.aemo.downloads import DownloadMonitorPipeline from opennem.schema.aemo.downloads import AEMOFileDownloadSection from opennem.utils.dates import parse_date ...
[ 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 6738, 279, 5173, 5109, 1330, 3254, 24765, 12331, 198, 6738, 15881, 88, 1330, 12648, 198, 6738, 15881, 88, 13, 4023, 1330, 18261, 198, 198, 6738, 1280, 77, 368, 13, 79...
3.455285
123
import wiringpi as pi pi.wiringPiSetupGpio() pi.pinMode(18, pi.PWM_OUTPUT) pi.pwmSetMode(pi.PWM_MODE_MS) pi.pwmSetClock(2) pi.pwmSetRange(192000) while True: for i in list(range(-90, 90, 10)) + list(range(90, -90, -10)): pi.pwmWrite(18, int(((i + 90) / 180 * (2.4 - 0.5) + 0.5) / 20 * 192000)) pi.delay(200)
[ 11748, 29477, 14415, 355, 31028, 198, 14415, 13, 86, 3428, 38729, 40786, 38, 79, 952, 3419, 198, 198, 14415, 13, 11635, 19076, 7, 1507, 11, 31028, 13, 47, 22117, 62, 2606, 7250, 3843, 8, 198, 14415, 13, 79, 26377, 7248, 19076, 7, 14...
2.018987
158
import cv2 as cv from geometry_msgs.msg import Pose2D from vision_msgs.msg import (BoundingBox2D, Detection2D, Detection2DArray, ObjectHypothesisWithPose) THRESHOLD_MAX = 255 THRESHOLD = 240
[ 11748, 269, 85, 17, 355, 269, 85, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 37557, 17, 35, 198, 6738, 5761, 62, 907, 14542, 13, 19662, 1330, 357, 33, 9969, 14253, 17, 35, 11, 46254, 17, 35, 11, 46254, 17, 35, 19182, 11, ...
2.242424
99
from setuptools import find_packages, setup setup( name="triplet-reid", version="0.1.0", description="Triplet-based Person Re-Identification", packages=find_packages(), )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 28461, 37069, 12, 260, 312, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 13, 15, 1600, 198, 220, 220, 220, 6764, 26...
2.80597
67
import csv import sys from KafNafParserPy import KafNafParser from naflib import * woorden = [r['original'] for r in csv.DictReader(open("klimaatwoorden.csv"))] o = csv.writer(sys.stdout) o.writerow(["file", "sentence", "term", "text"]) for fn in sys.argv[1:]: naf = KafNafParser(fn) for klimaterm in find_te...
[ 11748, 269, 21370, 198, 11748, 25064, 198, 6738, 33913, 45, 1878, 46677, 20519, 1330, 33913, 45, 1878, 46677, 198, 198, 6738, 299, 1878, 8019, 1330, 1635, 198, 198, 21638, 585, 268, 796, 685, 81, 17816, 14986, 20520, 329, 374, 287, 269,...
2.255319
235
# coding=utf-8 from flask import Blueprint, render_template, redirect from controlers.user import UserCtr from libs.login import login_user, logout_user, current_user bp = Blueprint("user", __name__, url_prefix="/user")
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 18941, 198, 6738, 1630, 364, 13, 7220, 1330, 11787, 34, 2213, 198, 6738, 9195, 82, 13, 38235, 1330, 17594, 62, 7220, 11, 2604, 448, 62, 7220, 11, ...
3.373134
67
#!/usr/bin/env python import vector import math, types, operator """ A sparse matrix class based on a dictionary, supporting matrix (dot) product and a conjugate gradient solver. In this version, the sparse class inherits from the dictionary; this requires Python 2.2 or later. """ #############################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 15879, 198, 11748, 10688, 11, 3858, 11, 10088, 198, 198, 37811, 198, 32, 29877, 17593, 1398, 1912, 319, 257, 22155, 11, 6493, 17593, 357, 26518, 8, 198, 11167, 290, 257, 11...
2.06158
1,835
import re
[ 11748, 302, 628 ]
3.666667
3
#https://www.youtube.com/watch?v=f9PR1qcwOyg #create global convention import mysql.connector __cnx=None
[ 2, 5450, 1378, 2503, 13, 11604, 13, 785, 14, 8340, 30, 85, 28, 69, 24, 4805, 16, 80, 66, 86, 46, 35641, 201, 198, 2, 17953, 3298, 9831, 220, 201, 198, 11748, 48761, 13, 8443, 273, 201, 198, 834, 31522, 87, 28, 14202, 201 ]
2.477273
44
import matplotlib.pyplot as plt
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198 ]
2.833333
12
#!_PYTHONLOC # # (C) COPYRIGHT 2004-2021 Al von Ruff, Bill Longley and Ahasuerus # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision$ # Date: $Date$ from isfdb import * from isfdblib impor...
[ 2, 0, 62, 47, 56, 4221, 1340, 29701, 198, 2, 198, 2, 220, 220, 220, 220, 357, 34, 8, 27975, 38162, 9947, 5472, 12, 1238, 2481, 220, 220, 978, 18042, 42409, 11, 3941, 5882, 1636, 290, 7900, 292, 15573, 385, 198, 2, 220, 220, 220,...
2.701652
1,029
import pyaudio import numpy as np import mixer
[ 11748, 12972, 24051, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33938, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.619048
21
""" From https://github.com/brechtm/rinohtype/blob/master/noxutil.py https://github.com/cjolowicz/nox-poetry/discussions/289 """ import json from collections.abc import Iterable from pathlib import Path from typing import Optional from urllib.request import urlopen, Request from poetry.core.factory import Factory f...
[ 37811, 198, 198, 4863, 3740, 1378, 12567, 13, 785, 14, 4679, 354, 17209, 14, 12769, 1219, 4906, 14, 2436, 672, 14, 9866, 14, 35420, 22602, 13, 9078, 198, 5450, 1378, 12567, 13, 785, 14, 66, 73, 349, 47982, 14, 35420, 12, 7501, 11973...
2.899417
686
from django.contrib import admin from tbutton_web.tbutton_maker.models import Application, Button, DownloadSession, UpdateSession admin.site.register(DownloadSession, DownloadSessionAdmin) admin.site.register(UpdateSession, UpdateSessionAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 256, 16539, 62, 12384, 13, 83, 16539, 62, 10297, 13, 27530, 1330, 15678, 11, 20969, 11, 10472, 36044, 11, 10133, 36044, 198, 28482, 13, 15654, 13, 30238, 7, 10002, 36044, 11, ...
4.118644
59
#PASCALS TRIANGLE USING RECURSION if __name__ == "__main__": print("Enter the number of rows:") n=int(input()) #getting user input print(pascal(n)) #call the pascal triangle function ''' OUTPUT:Enter the number of rows:5 [[1], [1, 1], [1, 2, 1], [...
[ 2, 47, 42643, 23333, 37679, 15567, 2538, 1294, 2751, 19644, 4261, 50, 2849, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 4798, 7203, 17469, 262, 1271, 286, 15274, 25, 4943, 198, 197, 77, 28, 600, 7, 1...
1.913978
186
#!/usr/bin/env python2.7 from __future__ import division import roslib import rospy import tf from nav_msgs.msg import Odometry from nav_msgs.msg import Path from geometry_msgs.msg import PoseStamped import numpy as np import pdb from message_filters import Subscriber, ApproximateTimeSynchronizer if __name__ == '__m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 686, 6649, 571, 198, 11748, 686, 2777, 88, 198, 11748, 48700, 198, 6738, 6812, 62, 907, 14542, 13, 19662, 1330, 10529, 1574...
2.84
150
from datetime import datetime from gpiozero import DistanceSensor from garage_door import garage_door from garage_camera import garage_camera import MQTT_Config import paho.mqtt.client as mqtt from temp_sensor import temp_sensor from time import sleep """ GPIO pin assignments: relays range finder sensor (echo...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 27809, 952, 22570, 1330, 34600, 47864, 198, 6738, 15591, 62, 9424, 1330, 15591, 62, 9424, 198, 6738, 15591, 62, 25695, 1330, 15591, 62, 25695, 198, 11748, 337, 48, 15751, 62, 16934, 198, 11...
2.017294
983
# encoding: utf-8 import os import time from multiprocessing import Pool, cpu_count from selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exceptions import T...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 42804, 62, 9127, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, ...
2.616438
1,606
from .hola import *
[ 6738, 764, 3937, 64, 1330, 1635, 198 ]
2.857143
7
import collections
[ 11748, 17268, 198 ]
6.333333
3
import numpy as np if __name__ == '__main__': try: f = open('test_file.txt', 'w') f.write('this is exception finally') except Exception as e: pass finally: f.close pass
[ 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 1280, 10786, 9288, 62, 7753, 13, 14116, 3256, 705, 86...
2.148515
101
import os store.set_global_value("ctrl-space", False) with open(os.path.expanduser("~/.config/polybar/keys.fifo"), "wb") as f: f.write(b"TITLE:\n") store.set_global_value("emacs-chain-keys", [])
[ 11748, 28686, 198, 8095, 13, 2617, 62, 20541, 62, 8367, 7203, 44755, 12, 13200, 1600, 10352, 8, 198, 4480, 1280, 7, 418, 13, 6978, 13, 11201, 392, 7220, 7203, 93, 11757, 11250, 14, 35428, 5657, 14, 13083, 13, 32041, 78, 12340, 366, ...
2.475
80
from .field import Field # NOQA from .datetime_field import DateTime # NOQA from .date import Date # NOQA from .string import String # NOQA from .object import Object # NOQA from .list import List # NOQA from .polymorphic_object import PolymorphicObject # NOQA from .polymorphic_list import PolymorphicList # NOQ...
[ 6738, 764, 3245, 1330, 7663, 220, 1303, 8005, 48, 32, 198, 6738, 764, 19608, 8079, 62, 3245, 1330, 7536, 7575, 220, 1303, 8005, 48, 32, 198, 6738, 764, 4475, 1330, 7536, 220, 1303, 8005, 48, 32, 198, 6738, 764, 8841, 1330, 10903, 22...
2.971429
175
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ path('', views.index, name='index'), path('logout/', views.logoutView, name='logout'), path('signup/', views.signup, name='signup'), url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 9630, ...
2.431034
232
__version__ = "0.2" import threading import numpy as np import pygame from expyriment.stimuli import Canvas, Rectangle, TextLine from expyriment.stimuli._visual import Visual from expyriment.misc import constants lock_expyriment = threading.Lock() Numpy_array_type = type(np.array([])) def data2pixel(self, value...
[ 834, 9641, 834, 796, 366, 15, 13, 17, 1, 198, 198, 11748, 4704, 278, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 6057, 198, 6738, 1033, 2417, 3681, 13, 42003, 32176, 1330, 1680, 11017, 11, 48599, 9248, 11, 8255, 13949, 198,...
2.158383
3,018
# -*- coding: utf-8 -*- ################################################################################ # Copyright 2014, Distributed Meta-Analysis System ################################################################################ """ This file provides methods for handling weighting across GCMs under delta meth...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 14468, 198, 2, 15069, 1946, 11, 4307, 6169, 30277, 12, 32750, 4482, 198, 29113, 29113, 14468, 198, 198, 37811, 198, 1212, 2393, 3769, 5050, 329, 9041, 3463, ...
2.305585
949
from rest_framework import status from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.response import Response from ecojunk.users.api.v1.serializers import UserSerializer
[ 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 4990, 30227, 10260, 2969, 3824, 769, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 198, 6738, 34286, 73, 2954, 13, 18417, 13, 15042, 13, 85...
3.901961
51
# encoding: utf-8 # pylint: disable=bad-continuation """ RESTful API Payments resources -------------------------- """ import logging from flask_login import current_user from flask_restplus_patched import Resource from flask_restplus._http import HTTPStatus from app.extensions import db from app.extensions.api impo...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 279, 2645, 600, 25, 15560, 28, 14774, 12, 18487, 2288, 198, 37811, 198, 49, 6465, 913, 7824, 41318, 4133, 198, 22369, 438, 198, 37811, 198, 198, 11748, 18931, 198, 198, 6738, 42903, 62, 38235,...
3.548571
175
import msgraphy_util import argparse from msgraphy import GraphApi if __name__ == "__main__": parser = argparse.ArgumentParser( description='List or search for MS team' ) parser.add_argument("name", type=str, nargs="?", help="show only teams which contains [name]") parser.add_argument("--sta...
[ 11748, 31456, 1470, 88, 62, 22602, 198, 11748, 1822, 29572, 198, 6738, 31456, 1470, 88, 1330, 29681, 32, 14415, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 2...
2.92963
270
import pygame as p from math import floor from copy import deepcopy import Tkinter, tkFileDialog root = Tkinter.Tk() root.withdraw() p.init() running = True tileWidth = 16 tileHeight = 16 mapWidth = 100 mapHeight = 100 camX = 0 camY = 0 scale = 2 uiScale = 2 hand = 1 layerStack = True file_path = '' file_path = t...
[ 11748, 12972, 6057, 355, 279, 198, 6738, 10688, 1330, 4314, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 309, 74, 3849, 11, 256, 74, 8979, 44204, 198, 15763, 796, 309, 74, 3849, 13, 51, 74, 3419, 198, 15763, 13, 4480, 19334, 3419, ...
2.13498
8,542
import tkinter as tk from tkinter.colorchooser import askcolor from tkinter import ttk from Scrollable import Scrollable from ViewLedgerWidget import ViewLedgerWidget from List import ListView from Group import Group # window for editing a group prevLens = [ 10, 25, 100 ]
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 13, 8043, 6679, 13416, 1330, 1265, 8043, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, 6738, 17428, 540, 1330, 17428, 540, 198, 6738, 3582, 42416, 1362, 38300, 1330, 358...
3.605263
76
crabs = sorted(map(int, open("input.txt", "r").readline().strip().split(","))) # position with minimal fuel usage is at the median position median_pos = crabs[len(crabs) // 2] min_fuel = sum([abs(crab_pos - median_pos) for crab_pos in crabs]) print(min_fuel)
[ 6098, 8937, 796, 23243, 7, 8899, 7, 600, 11, 1280, 7203, 15414, 13, 14116, 1600, 366, 81, 11074, 961, 1370, 22446, 36311, 22446, 35312, 7, 2430, 22305, 198, 198, 2, 2292, 351, 10926, 5252, 8748, 318, 379, 262, 14288, 2292, 198, 1150, ...
2.9
90
# Author: Matej Mik from ..component import Component from ..da import DAI import re
[ 2, 6434, 25, 24787, 73, 17722, 198, 198, 6738, 11485, 42895, 1330, 35100, 198, 6738, 11485, 6814, 1330, 17051, 40, 198, 11748, 302, 198 ]
3.583333
24
from SSstache import * from plumbum.path.utils import delete from plumbum.cmd import ls, touch, mkdir #prepareHTMLdir(dirName='xyz') #test_makeHTMLdir()
[ 6738, 6723, 301, 4891, 1330, 1635, 198, 6738, 458, 2178, 388, 13, 6978, 13, 26791, 1330, 12233, 198, 6738, 458, 2178, 388, 13, 28758, 1330, 43979, 11, 3638, 11, 33480, 15908, 628, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 19...
2.311688
77
import matplotlib.pyplot as plt x = [1, 2, 5] y = [2, 3, 7] plt.title("1 grafico com python") # Eixos plt.xlabel("Eixo X") plt.ylabel("Eixo Y") plt.plot(x,y) plt.show()
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 87, 796, 685, 16, 11, 362, 11, 642, 60, 198, 88, 796, 685, 17, 11, 513, 11, 767, 60, 198, 198, 489, 83, 13, 7839, 7203, 16, 7933, 69, 3713, 401, 21015, 4943, 1...
1.860215
93
import cv2 import numpy import glob import os images = [] path = os.getcwd()+"\\frames\\" myVideo = cv2.VideoWriter("quicksort-1.mkv", cv2.VideoWriter_fourcc(*"DIVX"), 60, (1920,1080)) for filename in range(len(os.listdir(path))): filename = f"frame-{filename}.png" img = cv2.imread(f"{path}{f...
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 201, 198, 11748, 15095, 201, 198, 11748, 28686, 201, 198, 201, 198, 201, 198, 17566, 796, 17635, 201, 198, 6978, 796, 28686, 13, 1136, 66, 16993, 3419, 10, 1, 6852, 37805, 6852, 1, 20...
2.251337
187
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from model.layers import * from model.build import * import cv2 from model.utils import * model = Darknet("cfg/yolov3.cfg") model.load_weights("yolov3.weights") inp = get_test_input() pred = mod...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2746, 13, 75, 6962, 1330, ...
2.958333
120
from icemac.addressbook.browser.search.result.handler.manager import ( SearchResultHandler) def makeSRHandler(viewName): """Create a `SearchResultHandler` with the specified `viewName`.""" handler = SearchResultHandler(None, None, None, None) handler.viewName = viewName return handler def test_m...
[ 6738, 14158, 368, 330, 13, 21975, 2070, 13, 40259, 13, 12947, 13, 20274, 13, 30281, 13, 37153, 1330, 357, 198, 220, 220, 220, 11140, 23004, 25060, 8, 628, 198, 4299, 787, 12562, 25060, 7, 1177, 5376, 2599, 198, 220, 220, 220, 37227, ...
3.124309
362
import json import pymysql import random import string import time # def get_data(): # with open('E:\\QQ\\1420944066\\FileRecv\\Code (2)\\data\\nice looking data\\gooddata\\20_30(1).json', 'r') as f: # camera_text = json.load(f) # # print(camera_text) # return camera_text # def data_insert(...
[ 11748, 33918, 198, 11748, 279, 4948, 893, 13976, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 640, 198, 198, 2, 825, 651, 62, 7890, 33529, 198, 2, 220, 220, 220, 220, 351, 1280, 10786, 36, 25, 6852, 48, 48, 6852, 1415, 1238, 5824...
2.110927
604
import os import random import cv2 import numpy as np import torch from Experiments.all import load_models, embedd_data, save_batch from GenerativeModels.utils.data_utils import get_dataset device = torch.device("cuda") def sample_latent_neighbors(outputs_dir, models_dir): """Find nearest latent neighbors of d...
[ 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 198, 6738, 8170, 6800, 13, 439, 1330, 3440, 62, 27530, 11, 11525, 67, 62, 7890, 11, 3613, 62, 43501, 198, 6738, ...
2.571924
577
def decode(to_be_decoded): """ Decodes a run-length encoded string. :param to_be_decoded: run-length encoded string :return: run-length decoded string """ to_be_decoded_list = list(to_be_decoded) decoded_str_as_list = list() num_to_print_as_list = list() for c in to_be_decoded_list:...
[ 4299, 36899, 7, 1462, 62, 1350, 62, 12501, 9043, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4280, 4147, 257, 1057, 12, 13664, 30240, 4731, 13, 628, 220, 220, 220, 1058, 17143, 284, 62, 1350, 62, 12501, 9043, 25, 1057, 12, ...
1.940615
943
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import operator_benchmark as op_bench import torch import torch.nn as nn """ Microbenchmarks for Conv1d and ConvTranspose1d operators. """ # Configs for conv-1d ops ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 628, 198, 11748, 10088, 62, 2...
2.249012
759
import requests as R
[ 11748, 7007, 355, 371, 628 ]
4.4
5
#from distutils.core import setup #from distutils.extension import Extension #from Cython.Distutils import build_ext #import numpy #setup( #cmdclass = {'build_ext': build_ext}, #ext_modules = [Extension("Z_shooting", ["Z_shooting.c"],)], #include_dirs=[numpy.get_include(),'.', ], #) from dist...
[ 2, 6738, 1233, 26791, 13, 7295, 1330, 9058, 201, 198, 2, 6738, 1233, 26791, 13, 2302, 3004, 1330, 27995, 201, 198, 2, 6738, 327, 7535, 13, 20344, 26791, 1330, 1382, 62, 2302, 201, 198, 2, 11748, 299, 32152, 201, 198, 201, 198, 2, ...
2.476879
346
import numpy as np import pandas as pd import os from sklearn.preprocessing import MinMaxScaler from data_processing.helpers import Config
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 198, 6738, 1366, 62, 36948, 13, 16794, 364, 1330, 17056, 198 ]
3.657895
38
import math speedofLight = 2.9979*pow(10,8) timeIntervalBlinks()
[ 11748, 10688, 198, 12287, 1659, 15047, 796, 362, 13, 2079, 3720, 9, 79, 322, 7, 940, 11, 23, 8, 628, 220, 220, 220, 220, 198, 2435, 9492, 2100, 33, 28751, 3419, 198 ]
2.21875
32
import json from upload.common.upload_area import UploadArea # This lambda function is invoked by messages in the the area_deletion_queue (AWS SQS). # The queue and the lambda function are connected via aws_lambda_event_source_mapping
[ 11748, 33918, 198, 6738, 9516, 13, 11321, 13, 25850, 62, 20337, 1330, 36803, 30547, 628, 198, 2, 770, 37456, 2163, 318, 24399, 416, 6218, 287, 262, 262, 1989, 62, 2934, 1616, 295, 62, 36560, 357, 12298, 50, 49747, 50, 737, 198, 2, 3...
3.761905
63
from ..overlap_detection_2d import detect_overlap_2d from unittest.mock import call, Mock, patch import unittest
[ 6738, 11485, 2502, 37796, 62, 15255, 3213, 62, 17, 67, 1330, 4886, 62, 2502, 37796, 62, 17, 67, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 869, 11, 44123, 11, 8529, 198, 11748, 555, 715, 395, 628 ]
3
38
teste = list() teste.append('Matheus') teste.append(17) galera = [teste[:]] # Cria uma copia de teste dentro de galera teste[0] = 'Oliver' teste[1] = 22 galera.append(teste) # Cria um vnculo entre teste e galera print(galera) pessoas = [['Harvey', 23], ['Madeleine', 19], ['Roger', 250], ['Mark', 20]] print(pessoas[...
[ 9288, 68, 796, 1351, 3419, 198, 198, 9288, 68, 13, 33295, 10786, 19044, 258, 385, 11537, 198, 9288, 68, 13, 33295, 7, 1558, 8, 198, 13528, 8607, 796, 685, 9288, 68, 58, 25, 11907, 220, 1303, 327, 7496, 334, 2611, 2243, 544, 390, 1...
2.187675
357
# -*- coding: utf-8 -*- """Bio2BEL custom errors."""
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 42787, 17, 33, 3698, 2183, 8563, 526, 15931, 628, 628, 628 ]
2.185185
27
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2177, 12, 1238, 2481, 2320, 43, 317, 1959, 15302, 11, 257, 9368, 1087, 1664, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 137...
2.834621
647
from django.contrib.auth import get_user_model from django.test import TestCase from django.contrib.staticfiles import finders from django.urls import reverse from .models import StudentProfileInfo, User from .forms import UserForm, ContactForm, UserProfileInfoForm
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 12708, 16624, 1330, 1064, 364, 198, 6738, 42625, 14208, 13, ...
3.61039
77
# # Module to support the pickling of different types of connection # objects and file objects so that they can be transferred between # different processes. # # processing/reduction.py # # Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt # __all__ = [] import os import sys import socket import t...
[ 2, 201, 198, 2, 19937, 284, 1104, 262, 2298, 1359, 286, 1180, 3858, 286, 4637, 201, 198, 2, 5563, 290, 2393, 5563, 523, 326, 484, 460, 307, 11172, 1022, 201, 198, 2, 1180, 7767, 13, 201, 198, 2, 201, 198, 2, 7587, 14, 445, 8110,...
2.823427
572
""" Print elements of a linked list in reverse order as standard output head could be None as well for empty list Node is defined as class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next = next_node """
[ 37811, 198, 12578, 4847, 286, 257, 6692, 1351, 287, 9575, 1502, 355, 3210, 5072, 198, 1182, 714, 307, 6045, 355, 880, 329, 6565, 1351, 198, 19081, 318, 5447, 355, 198, 220, 198, 1398, 19081, 7, 15252, 2599, 198, 220, 198, 220, 220, ...
2.504132
121
# MIT License # # Copyright (c) 2020 Aleksandr Zhuravlyov and Zakhar Lanets # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
[ 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 9300, 591, 46273, 10511, 333, 615, 306, 709, 290, 32605, 9869, 14730, 1039, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 2...
2.303676
3,945
import struct ascii_glyphs = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, 0x00, 0x6c, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x7f, 0x36, 0x7f, 0x36, 0x36, 0x00, 0x0c, 0x3f, 0x68, 0x3e, 0x0b, 0x7e, 0x18, 0x00, 0x60, 0...
[ 11748, 2878, 198, 198, 292, 979, 72, 62, 10853, 746, 82, 796, 685, 198, 15, 87, 405, 11, 220, 657, 87, 405, 11, 220, 657, 87, 405, 11, 220, 657, 87, 405, 11, 220, 657, 87, 405, 11, 220, 657, 87, 405, 11, 220, 657, 87, 405, ...
1.339554
4,126
from .sdm import Sdm __red_end_user_data_statement__ = ( "This cog does not persistently store data or metadata about users." )
[ 6738, 764, 21282, 76, 1330, 311, 36020, 198, 198, 834, 445, 62, 437, 62, 7220, 62, 7890, 62, 26090, 834, 796, 357, 198, 220, 220, 220, 366, 1212, 43072, 857, 407, 21160, 1473, 3650, 1366, 393, 20150, 546, 2985, 526, 198, 8, 628 ]
3.116279
43
#!/usr/bin/python """ ************************************************* * @Project: Self Balance * @Description: GPIO Mapping * @Owner: Guilherme Chinellato * @Email: guilhermechinellato@gmail.com *************************************************...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 37811, 198, 17174, 8412, 9, 198, 9, 2488, 16775, 25, 12189, 22924, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.976226
673
# Copyright (C) 2019 by geehalel@gmail.com # This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) import platform _WIN32 = (platform.system() == 'Windows') VK_USE_PLATFORM_WIN32_KHR = _WIN32 VK_USE_PLATFORM_ANDROID_KHR = False VK_USE_PLATFORM_WAYLAND_KHR = False _DIRECT2DISPLAY = Fal...
[ 2, 15069, 357, 34, 8, 13130, 416, 308, 1453, 14201, 417, 31, 14816, 13, 785, 198, 2, 770, 2438, 318, 11971, 739, 262, 17168, 5964, 357, 36393, 8, 357, 4023, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 36393, 8, 198, 198, 11748...
2.480663
181