content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" Weather functions. """ from ursina import color, window, time from nMap import nMap
[ 37811, 198, 41865, 5499, 13, 198, 37811, 198, 6738, 220, 1834, 1437, 1330, 3124, 11, 4324, 11, 640, 198, 6738, 299, 13912, 1330, 299, 13912, 198 ]
3.384615
26
#!/usr/bin/env python3 ''' Copyright 2016 Dave Fancella 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 7061, 6, 628, 220, 220, 15069, 1584, 9935, 376, 590, 8466, 628, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220,...
3.458466
626
# Generated by Django 2.2.7 on 2019-11-17 17:19 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 22, 319, 13130, 12, 1157, 12, 1558, 1596, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
base = int(input('Digite o valor da base: ')) expoente = 0 while expoente <= 0: expoente = int(input('Digite o valor do expoente: ')) if expoente <= 0: print('O expoente tem que ser positivo') potencia = 1 for c in range(1, expoente + 1): potencia *= base print(f'{base}^ {expoente} = {potencia}'...
[ 8692, 796, 493, 7, 15414, 10786, 19511, 578, 267, 1188, 273, 12379, 2779, 25, 705, 4008, 198, 1069, 7501, 21872, 796, 657, 198, 198, 4514, 1033, 78, 21872, 19841, 657, 25, 198, 220, 220, 220, 1033, 78, 21872, 796, 493, 7, 15414, 107...
2.333333
138
# -*- coding: utf-8 -*- # Copyright (c) 2021, Noah Jacob and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils import flt from accounting.accounting.general_ledger import make_gl_entry, make_...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 33448, 11, 18394, 12806, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 10...
3.424242
99
from django.db import models # Create your models here. # : # 2 ok # link, string-> CharField, data-> DecimalField # max_length= 100
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 2, 220, 1058, 220, 198, 2, 220, 362, 220, 220, 220, 12876, 198, 2, 2792, 11, 4731, 3784, 3178, 15878, 11, 1366, 3784, 4280, 4402, 15878, 198, 2...
2.730769
52
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys,os,time if len(sys.argv)<2: print "usage: test_snap.py <check|show>" sys.exit(2) kam_cmd=sys.argv[1] path='/var/data2/snap_store' a=os.listdir(path) a.remove('535e1a5c1ecffb2fa372fd7d') # this is a camera not used in HF system if kam_cmd=='show' or kam_cm...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 11, 418, 11, 2435, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 27, 17, 25, 198, 197, 4798, ...
1.905013
379
import functools import gc from abc import ABC from sources.datasets.client_dataset_definitions.client_dataset_loaders.client_dataset_loader import ClientDatasetLoader, DatasetComponents from sources.datasets.client_dataset_definitions.client_dataset_processors.client_dataset_processor import ClientDatasetProcessor fr...
[ 11748, 1257, 310, 10141, 198, 11748, 308, 66, 198, 6738, 450, 66, 1330, 9738, 198, 198, 6738, 4237, 13, 19608, 292, 1039, 13, 16366, 62, 19608, 292, 316, 62, 4299, 50101, 13, 16366, 62, 19608, 292, 316, 62, 2220, 364, 13, 16366, 62,...
3.305085
118
import logging import numpy import kgprim.motions as motions import kgprim.ct.frommotions as frommotions import kgprim.ct.repr.mxrepr as mxrepr import motiondsl.motiondsl as motdsl logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 299, 32152, 198, 198, 11748, 14211, 19795, 13, 27926, 507, 355, 25530, 198, 11748, 14211, 19795, 13, 310, 13, 6738, 27926, 507, 355, 422, 27926, 507, 198, 11748, 14211, 19795, 13, 310, 13, 260, 1050, 13, 36802,...
2.835443
79
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. import os import logging from multiprocessing import Process from django.conf import settings from django.core.cache import cache as django_cache from django.core.management.base import BaseCommand from django.db import connection as django_connection from komb...
[ 2, 15069, 357, 66, 8, 1853, 28038, 856, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 11748, 28686, 198, 11748, 18931, 198, 6738, 18540, 305, 919, 278, 1330, 10854, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, ...
3.404372
183
import numpy as np import torch from . import common_utils if __name__ == '__main__': pass
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 764, 1330, 2219, 62, 26791, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1208, 198 ]
2.882353
34
""" Utilities for learning pipeline.""" from __future__ import print_function import copy import dill import hashlib import itertools import third_party.deep_bingham.bingham_distribution as ms import math import numpy as np import os import scipy import scipy.integrate as integrate import scipy.special import sys impor...
[ 37811, 41086, 329, 4673, 11523, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 4866, 198, 11748, 288, 359, 198, 11748, 12234, 8019, 198, 11748, 340, 861, 10141, 198, 11748, 2368, 62, 10608, 13, 22089, 62, 46...
2.432288
3,921
import requests import os from PyInquirer import style_from_dict, Token, prompt import sys import utils.config as config import utils.ends as ends from utils.colorfy import * from auto.testing import test_trans import time import json style = style_from_dict({ Token.QuestionMark: '#E91E63 bold', Token.Selected: '#673...
[ 11748, 7007, 198, 11748, 28686, 198, 6738, 9485, 818, 29782, 81, 1330, 3918, 62, 6738, 62, 11600, 11, 29130, 11, 6152, 198, 11748, 25064, 198, 11748, 3384, 4487, 13, 11250, 355, 4566, 198, 11748, 3384, 4487, 13, 2412, 355, 5645, 198, ...
2.534426
305
# -*- coding: utf-8 -*- from maya import mel from maya import cmds from . import lang from . import common import os import json import re def transfer_weight(skinMesh, transferedMesh, transferWeight=True, returnInfluences=False, logTransfer=True): ''' skinMesh1, transferedMesh(,) transf...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 743, 64, 1330, 7758, 198, 6738, 743, 64, 1330, 23991, 82, 198, 6738, 764, 1330, 42392, 198, 6738, 764, 1330, 2219, 198, 11748, 28686, 198, 11748, 33918, 198, 11748...
1.896642
3,425
#Copyright 2010 Brian E. Chapman # #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, s...
[ 2, 15269, 3050, 8403, 412, 13, 29045, 198, 2, 198, 2, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
3.901734
346
""" Provides a class that handles the fits metadata required by PypeIt. .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ import os import io import string from copy import deepcopy import datetime from IPython import embed import numpy as np import yaml fr...
[ 37811, 198, 15946, 1460, 257, 1398, 326, 17105, 262, 11414, 20150, 2672, 416, 350, 2981, 1026, 13, 198, 198, 492, 2291, 2219, 6117, 11, 13148, 4165, 2205, 6808, 318, 510, 530, 8619, 198, 492, 2291, 3712, 11485, 14, 17256, 14, 28751, 1...
2.643817
744
import os.path import shutil import errno from aql.nodes import Builder, FileBuilder from .aql_tools import Tool __all__ = ( "ExecuteCommand", "InstallBuilder", "BuiltinTool", ) """ Unique Value - name + type value node node = ExecuteCommand('gcc --help -v') tools.cpp.cxx node ...
[ 198, 11748, 28686, 13, 6978, 198, 11748, 4423, 346, 198, 11748, 11454, 3919, 198, 198, 6738, 257, 13976, 13, 77, 4147, 1330, 35869, 11, 9220, 32875, 198, 6738, 764, 64, 13976, 62, 31391, 1330, 16984, 198, 198, 834, 439, 834, 796, 357,...
3.233677
291
from django.core.urlresolvers import reverse from django.db import models from django.utils.encoding import python_2_unicode_compatible from cms.models.fields import PlaceholderField from cms.utils import get_language_from_request from cms.utils.urlutils import admin_reverse from hvad.models import TranslatableModel,...
[ 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 12685, 7656, 1330, 21015, 62, 17, 62, 46903, 1098, 62, 38532, 198, 198, 6738, 26...
3.484848
99
# 084 # Ask the user to type in their postcode.Display the first two # letters in uppercase. # very simple print(input('Enter your postcode: ')[0:2].upper())
[ 2, 657, 5705, 198, 2, 16981, 262, 2836, 284, 2099, 287, 511, 1281, 8189, 13, 23114, 262, 717, 734, 198, 2, 7475, 287, 334, 39921, 589, 13, 198, 198, 2, 845, 2829, 198, 198, 4798, 7, 15414, 10786, 17469, 534, 1281, 8189, 25, 705, ...
3.117647
51
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys import json import urllib2 import codecs BASE_DIR = os.path.dirname(__file__) BASE_URL = 'https://www.googleapis.com/youtube/v3/' API_CHANNELS = 'channels' API_PLAYLIST = 'playlistItems' API_KEY = 'YOUR KEY' CHANNELS = [ 'videos...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 17, 198, 11748, 40481...
2.150649
385
#!/usr/bin/env python3 from sklearn.tree import DecisionTreeClassifier import pickle import numpy as np no = [b'runc:[2:INIT]', b'containerssh-ag', b'apt',b'dpkg']
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 1341, 35720, 13, 21048, 1330, 26423, 27660, 9487, 7483, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 198, 3919, 796, 685, 65, 6, 5143, 66, 33250, 17, ...
2.584615
65
import os import numpy as np from scipy.io import loadmat data = loadmat("data/hipp_2dtrack_a/smJun03p2.dat") N = 49 data = reshape(data, 3, length(data)/3); data = data'; size(data) % 43799-by-3 fclose(fid); % sampling time Ts = 0.0333; duration = size(data,1) * Ts; % in second Tmax = data(end, 3); Tmin = d...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 952, 1330, 3440, 6759, 198, 198, 7890, 796, 3440, 6759, 7203, 7890, 14, 71, 3974, 62, 17, 67, 11659, 62, 64, 14, 5796, 22396, 3070, 79, 17, 13, 19608, ...
2.324515
567
# Copyright 2017 Netflix, Inc. # # 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...
[ 2, 220, 220, 220, 220, 15069, 2177, 12074, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 220, 345, 743, 407, 779, 42...
2.633157
567
import rospy from sensor_msgs.msg import Image from std_msgs.msg import String from cv_bridge import CvBridge import cv2 import numpy as np import tensorflow as tf import classify_image if __name__ == '__main__': classify_image.setup_args() rospy.init_node('rostensorflow') tensor = RosTensorFlow() ten...
[ 11748, 686, 2777, 88, 198, 6738, 12694, 62, 907, 14542, 13, 19662, 1330, 7412, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 10903, 198, 6738, 269, 85, 62, 9458, 1330, 327, 85, 37385, 198, 11748, 269, 85, 17, 198, 11748, 299, 3...
2.781513
119
# Copyright (C) 2020-2021 by TeamSpeedo@Github, < https://github.com/TeamSpeedo >. # # This file is part of < https://github.com/TeamSpeedo/FridayUserBot > project, # and is released under the "GNU v3.0 License Agreement". # Please see < https://github.com/TeamSpeedo/blob/master/LICENSE > # # All rights reserved. imp...
[ 2, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 416, 4816, 22785, 78, 31, 38, 10060, 11, 1279, 3740, 1378, 12567, 13, 785, 14, 15592, 22785, 78, 1875, 13, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 1279, 3740, 1378, 12567, 13, 785, ...
2.742574
303
""" FEEDS Handles YouTube and Twitch feed notifications. """ import datetime as dt import discord import feedparser from apscheduler.triggers.cron import CronTrigger from discord.ext import commands from carberretta import Config from carberretta.utils import DEFAULT_EMBED_COLOUR, chron LIVE_EMBED_COLOUR = 0x9146FF...
[ 37811, 198, 15112, 1961, 50, 198, 12885, 829, 7444, 290, 23835, 3745, 19605, 13, 198, 37811, 198, 198, 11748, 4818, 8079, 355, 288, 83, 198, 198, 11748, 36446, 198, 11748, 3745, 48610, 198, 6738, 257, 862, 1740, 18173, 13, 2213, 328, ...
2.94958
119
"""Provides a GDB logging proxy. See https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html See https://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html """ from __future__ import annotations import logging import socket from typing import Optional from typing import Tuple from .pa...
[ 37811, 15946, 1460, 257, 402, 11012, 18931, 15741, 13, 198, 198, 6214, 3740, 1378, 10459, 1574, 13, 2398, 14, 70, 9945, 14, 261, 10837, 420, 82, 14, 70, 9945, 14, 36510, 12, 19703, 4668, 13, 6494, 198, 6214, 3740, 1378, 2503, 13, 36...
2.94964
139
from openems.openems import * # A simple simulation # # FDTD Simulation Setting # F = FDTD() F.add(Exc(typ='Sinus',f0=100000)) F.add(BoundaryCond(['PMC','PMC','PEC','PEC','MUR','MUR'])) # # CSX (Geometry setting) # C = CSX() # The Box is added as a property C.add(Excitation('excitation'),p=Box(P1=[-10,-10,0],P2=...
[ 6738, 1280, 5232, 13, 9654, 5232, 1330, 1635, 198, 2, 317, 2829, 18640, 198, 198, 2, 198, 2, 30002, 21016, 41798, 25700, 198, 2, 198, 198, 37, 796, 30002, 21016, 3419, 198, 37, 13, 2860, 7, 40127, 7, 28004, 11639, 50, 35237, 3256, ...
1.93653
709
import numpy as np
[ 11748, 299, 32152, 355, 45941 ]
3.6
5
import mysql.connector import random from voice import synthetize_voice, delete_wav if (__name__ == '__main__'): result = questionAI(1) tell_question(result)
[ 11748, 48761, 13, 8443, 273, 198, 11748, 4738, 198, 6738, 3809, 1330, 7419, 3202, 1096, 62, 38888, 11, 12233, 62, 45137, 628, 628, 198, 361, 357, 834, 3672, 834, 6624, 705, 834, 12417, 834, 6, 2599, 628, 220, 220, 1255, 796, 1808, 2...
3.017857
56
import numpy
[ 11748, 299, 32152, 198, 220, 220, 220, 220, 198 ]
2
9
import re import json import base64 import codecs import os.path import asyncio import subprocess _PREFIX = 'docker-credential-'
[ 11748, 302, 198, 11748, 33918, 198, 11748, 2779, 2414, 198, 11748, 40481, 82, 198, 11748, 28686, 13, 6978, 198, 11748, 30351, 952, 198, 11748, 850, 14681, 628, 198, 62, 47, 31688, 10426, 796, 705, 45986, 12, 66, 445, 1843, 19355, 628, ...
3.113636
44
""" Transform the data into a form that works with the WELL_REGISTRY_STG table. """ import re WELL_TYPES = { 'surveillance': 1, 'trend': 2, 'special': 3, } map_well_type = mapping_factory(WELL_TYPES) WELL_PURPOSE = { 'dedicated monitoring/observation': 1, 'other': 2 } map_well_purpose = mapping_...
[ 37811, 198, 41762, 262, 1366, 656, 257, 1296, 326, 198, 5225, 351, 262, 12887, 3069, 62, 31553, 1797, 40405, 62, 2257, 38, 3084, 13, 198, 37811, 198, 11748, 302, 628, 198, 198, 8845, 3069, 62, 9936, 47, 1546, 796, 1391, 198, 220, 22...
2.287494
2,007
# Created by shamilsakib at 04/10/20 BASE_MODEL = None
[ 2, 15622, 416, 23565, 4487, 461, 571, 379, 8702, 14, 940, 14, 1238, 198, 198, 33, 11159, 62, 33365, 3698, 796, 6045 ]
2.5
22
__author__ = "Zafar Ahmad, Mohammad Mahdi Javanmard" __copyright__ = "Copyright (c) 2019 Tealab@SBU" __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Zafar Ahmad" __email__ = "zafahmad@cs.stonybrook.edu" __status__ = "Development" import numpy as np import numba as nb ''' Iterative kernels '''
[ 834, 9800, 834, 796, 366, 57, 1878, 283, 24152, 11, 29674, 8882, 10989, 449, 12421, 76, 446, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 357, 66, 8, 13130, 1665, 282, 397, 31, 16811, 52, 1, 198, 834, 43085, 834, 796, 366, 3639...
2.484127
126
from terra_sdk.exceptions import LCDResponseError from terrakg import logger # Logging from terrakg.client import ClientContainer logger = logger.get_logger(__name__)
[ 6738, 1059, 430, 62, 21282, 74, 13, 1069, 11755, 1330, 23598, 31077, 12331, 198, 198, 6738, 1059, 430, 10025, 1330, 49706, 198, 198, 2, 5972, 2667, 198, 6738, 1059, 430, 10025, 13, 16366, 1330, 20985, 29869, 198, 198, 6404, 1362, 796, ...
3.226415
53
import bpy import os, glob from pathlib import Path from enum import Enum from abc import ABC, abstractmethod import csv from . import keying_module #---------------------------------------- # PROPERTIES #---------------------------------------- classes = ( TrackingExportDataOp, Tr...
[ 11748, 275, 9078, 198, 11748, 28686, 11, 15095, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 11748, 269, 21370, 198, 198, 6738, 764, 1330, 885, 1112, 62, ...
3.131579
114
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * views = UnwrapElement(IN[0]) if isinstance(IN[0], list): OUT = [GetViewTemplate(x) for x in views] else: OUT = GetViewTemplate(views)
[ 11748, 537, 81, 198, 565, 81, 13, 4550, 26687, 10786, 18009, 270, 17614, 11537, 198, 6738, 5231, 4147, 74, 13, 18009, 270, 13, 11012, 1330, 1635, 198, 198, 33571, 796, 791, 37150, 20180, 7, 1268, 58, 15, 12962, 198, 198, 361, 318, 3...
2.76
75
#!/usr/bin/python # ***************************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The A...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 41906, 17174, 4557, 35625, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, ...
2.448031
3,377
test = """forward 5 down 5 forward 8 up 3 down 8 forward 2 """ if __name__ == '__main__': part1(test.splitlines()) part1(open('in02.txt').readlines()) part2(test.splitlines()) part2(open('in02.txt').readlines())
[ 198, 9288, 796, 37227, 11813, 642, 198, 2902, 642, 198, 11813, 807, 198, 929, 513, 198, 2902, 807, 198, 11813, 362, 198, 37811, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 636, 16, 7,...
2.442105
95
# Generated by Django 3.1.3 on 2020-11-09 08:56 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1157, 12, 2931, 8487, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
"""Test PDS times modules.""" from datetime import datetime as dt from pyvims.pds.times import (cassini2utc, cassini_time, dt_date, dt_doy, dt_iso, dyear, pds_folder, pds_time, utc2cassini) from pytest import approx, raises def test_dt_iso(): """Test parsing ISO time pattern.""" ...
[ 37811, 14402, 350, 5258, 1661, 13103, 526, 15931, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 198, 6738, 12972, 85, 12078, 13, 79, 9310, 13, 22355, 1330, 357, 66, 562, 5362, 17, 315, 66, 11, 30606, 5362, 62, 243...
2.128795
2,174
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
#!/usr/bin/env python """Schema validation of ansible-core's ansible_builtin_runtime.yml and collection's meta/runtime.yml""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import datetime import os import re import sys from distutils.version import StrictVersion, LooseVersion ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 27054, 2611, 21201, 286, 9093, 856, 12, 7295, 338, 9093, 856, 62, 18780, 259, 62, 43282, 13, 88, 4029, 290, 4947, 338, 13634, 14, 43282, 13, 88, 4029, 37811, 198, 6738, 11593, ...
2.317012
4,820
#!/usr/bin/env python from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient # example import of required action from o2ac_msgs.msg import AlignBearingHolesAction, AlignBearingHolesGoal
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 7059, 1350, 62, 7295, 1330, 8558, 9012, 11, 5972, 1362, 198, 6738, 7059, 1350, 62, 7295, 13, 36436, 1330, 38027, 12502, 11792, 198, 198, 2, 1672, 1330, 286, 2672, 2223, 198, 6738...
3.343284
67
#!/usr/bin/env python3 """Find unicode control characters in source files By default the script takes one or more files or directories and looks for unicode control characters in all text files. To narrow down the files, provide a config file with the -c command line, defining a scan_exclude list, which should be a l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 16742, 28000, 1098, 1630, 3435, 287, 2723, 3696, 198, 198, 3886, 4277, 262, 4226, 2753, 530, 393, 517, 3696, 393, 29196, 290, 3073, 329, 198, 46903, 1098, 1630, 3435, 287, 4...
2.641771
1,513
import numpy as np from igibson.external.pybullet_tools.utils import aabb_union, get_aabb, get_all_links from igibson.object_states.object_state_base import CachingEnabledObjectState
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 45329, 571, 1559, 13, 22615, 13, 9078, 15065, 1616, 62, 31391, 13, 26791, 1330, 257, 6485, 62, 24592, 11, 651, 62, 64, 6485, 11, 651, 62, 439, 62, 28751, 198, 6738, 45329, 571, 1559, 13...
3.135593
59
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from __future__ import unicode_literals import time from datetime import datetime import mock import pytest from mock import MagicMock from pyVmomi import vim from datadog_checks.vsphere import VSphereCheck from...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 3050, 12, 5539, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 45157, 1431, 347, 10305, 13789, 357, 3826, 38559, 24290, 8, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874...
2.112596
6,883
MANDRILL_API_KEY = 'MANDRILL_API_KEY' UNSET_MANDRILL_API_KEY_MSG = f"Mandrill API key not set in environment variable {MANDRILL_API_KEY}" CONTACT_LIST_QUERY = """ SELECT * FROM `{{project}}.{{dataset}}.{{contact_table}}` """ EHR_OPERATIONS = 'EHR Ops' EHR_OPS_ZENDESK = 'support@aou-ehr-ops.zendesk.com' DATA_CURATION_...
[ 44, 6981, 7112, 3069, 62, 17614, 62, 20373, 796, 705, 44, 6981, 7112, 3069, 62, 17614, 62, 20373, 6, 198, 4944, 28480, 62, 44, 6981, 7112, 3069, 62, 17614, 62, 20373, 62, 5653, 38, 796, 277, 1, 49846, 20190, 7824, 1994, 407, 900, ...
2.724619
788
import os import argparse from pathlib import Path CLIP_FILE = os.path.join(Path.home(), '.clip') TEMP_FILE = '.TEMP_FILE' if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 5097, 4061, 62, 25664, 796, 28686, 13, 6978, 13, 22179, 7, 15235, 13, 11195, 22784, 45302, 15036, 11537, 198, 51, 39494, 62, 25664, 796, 45302, 51, 394...
2.560606
66
from typing import List, Tuple from gama.genetic_programming.nsga2 import ( NSGAMeta, fast_non_dominated_sort, crowding_distance_assignment, ) def _tuples_to_NSGAMeta(tuples: List[Tuple]) -> List[NSGAMeta]: """ Converts a list of tuples to NSGAMeta objects. """ # Can't declare it directly in a loo...
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 6738, 308, 1689, 13, 5235, 5139, 62, 23065, 2229, 13, 5907, 4908, 17, 1330, 357, 198, 220, 220, 220, 10896, 38, 2390, 17167, 11, 198, 220, 220, 220, 3049, 62, 13159, 62, 34475, 62, 30619...
2.60989
182
# File taken from https://github.com/Ouranosinc/pavics-vdb/blob/master/catalog/tds.py """Utility function to parse metadata from a THREDDS Data Server catalog.""" def attrs_from_ds(ds): """Extract attributes from TDS Dataset.""" url = ds.access_urls["NCML"] attrs = attrs_from_ncml(url) attrs["__serv...
[ 2, 9220, 2077, 422, 3740, 1378, 12567, 13, 785, 14, 5122, 40015, 1939, 14, 79, 615, 873, 12, 85, 9945, 14, 2436, 672, 14, 9866, 14, 9246, 11794, 14, 8671, 82, 13, 9078, 198, 198, 37811, 18274, 879, 2163, 284, 21136, 20150, 422, 25...
2.555164
852
# -*- coding: utf-8 -*- """ Module containing miscellaneous utility functions. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import collections import itertools import numpy as np def deep_update(d1, d2): """ Adds key-value pairs in d2 to...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 26796, 7268, 2984, 25673, 10361, 5499, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11,...
2.5625
1,552
import numpy as np import random from collections import namedtuple Drone = namedtuple('Drone', 'speed probability') Site = namedtuple('Site', 'location')
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 17268, 1330, 3706, 83, 29291, 628, 628, 198, 6187, 505, 796, 3706, 83, 29291, 10786, 6187, 505, 3256, 705, 12287, 12867, 11537, 198, 29123, 796, 3706, 83, 29291, 10786, 29...
3.4375
48
# Copyright 2022 The Orbit Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 15069, 33160, 383, 38161, 46665, 13, 1439, 6923, 33876, 13, 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, ...
3.673171
205
#!/usr/bin/python ################################################################################ # DOCUMENTS # # Justin Dierking # justin.l.dierking.civ@mail.mil # 614 692 2050 # # 04/22/2018 Original Construction ################################################################################ import traceback impor...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 29113, 29113, 14468, 198, 2, 37760, 5883, 15365, 198, 2, 198, 2, 10799, 360, 959, 3364, 198, 2, 655, 259, 13, 75, 13, 67, 959, 3364, 13, 66, 452, 31, 4529, 13, 25433, 198, 2, 718, 1415,...
4.591549
71
import vigra import numpy import pylab from seglib import cgp2d from seglib.preprocessing import norm01 import seglib.edge_detectors.pixel as edp import seglib.region_descriptors.pixel as rdp from seglib.preprocessing import norm01 from seglib.histogram import jointHistogram,histogram from seglib.region_descriptors.p...
[ 11748, 10539, 430, 198, 11748, 299, 32152, 198, 11748, 279, 2645, 397, 198, 198, 6738, 384, 4743, 571, 1330, 269, 31197, 17, 67, 220, 198, 6738, 384, 4743, 571, 13, 3866, 36948, 1330, 2593, 486, 198, 11748, 384, 4743, 571, 13, 14907, ...
2.197952
879
from datetime import date from django.conf import settings from django.db import models # Create your models here.
[ 6738, 4818, 8079, 1330, 3128, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.933333
30
#-*- codingutf-8 -*- # &Author AnFany # import Kmeans_AnFany as K_Af # AnFany import Kmeans_Sklearn as K_Sk # Sklearn import matplotlib.pyplot as plt from pylab import mpl # mpl.rcParams['font.sans-serif'] = ['FangSong'] # mpl.rcParams['axes.unicode_minus'] = False import numpy as np # sklearn fr...
[ 2, 12, 9, 12, 19617, 40477, 12, 23, 532, 9, 12, 201, 198, 2, 1222, 13838, 220, 1052, 37, 1092, 201, 198, 201, 198, 2, 220, 201, 198, 11748, 509, 1326, 504, 62, 2025, 37, 1092, 355, 509, 62, 17584, 220, 1303, 1052, 37, 1092, 20...
1.823423
555
#!/usr/bin/env python """ Control panel file """ import pddl_solver as pddl import ik import rospy from get_object_position import get_object_position import time from constants import * from spawn_models import reset_model_position, reset_all, spawn_model, spawn_all_models from delete_models import delete_all, de...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 220, 220, 220, 6779, 6103, 2393, 198, 37811, 198, 198, 11748, 279, 1860, 75, 62, 82, 14375, 355, 279, 1860, 75, 198, 11748, 220, 1134, 198, 11748, 686, 2777, 88, 198, 673...
3.15
120
from Enigma.Rotor import Rotor from Enigma.Reflector import Reflector from Enigma.Plugboard import Plugboard
[ 6738, 2039, 13495, 13, 49, 20965, 1330, 18481, 273, 198, 6738, 2039, 13495, 13, 8134, 801, 273, 1330, 36901, 273, 198, 6738, 2039, 13495, 13, 23257, 3526, 1330, 22689, 3526, 198 ]
3.516129
31
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 42334, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
3.47619
63
import math from django.contrib.auth import get_user_model from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail from django.template import loader from magicauth import settings as magicauth_settings from django.conf import settings as django_settings from magicauth.model...
[ 11748, 10688, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 19509, 23779, 1330, 651, 62, 14421, 62, 15654, 198, 6738, 42625, 14208, 13, 7...
3.375839
149
import os import sys ## {{{ http://code.activestate.com/recipes/52224/ (r1) def search_file(filename, search_path): """Given an os.pathsep divided `search_path`, find first occurrence of `filename`. Returns full path to file if found or None if unfound. """ file_found = False paths = search_path....
[ 11748, 28686, 198, 11748, 25064, 628, 198, 2235, 22935, 90, 2638, 1378, 8189, 13, 15791, 44146, 13, 785, 14, 8344, 18636, 14, 49542, 1731, 14, 357, 81, 16, 8, 198, 4299, 2989, 62, 7753, 7, 34345, 11, 2989, 62, 6978, 2599, 198, 220, ...
2.34981
526
import pytest import tensorflow as tf from deepctr.estimator import DCNEstimator from deepctr.models import DCN from ..utils import check_model, get_test_data, SAMPLE_SIZE, get_test_data_estimator, check_estimator, \ Estimator_TEST_TF1 # def test_DCN_invalid(embedding_size=8, cross_num=0, hidden_size=()): # ...
[ 11748, 12972, 9288, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 2769, 24087, 13, 395, 320, 1352, 1330, 6257, 12161, 42003, 1352, 198, 6738, 2769, 24087, 13, 27530, 1330, 6257, 45, 198, 6738, 11485, 26791, 1330, 2198, 62, ...
2.286585
328
import os import subprocess import backoff
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 11748, 736, 2364, 628, 628, 628, 198 ]
3.333333
15
import argparse from deploy_tix.bugzilla_rest_client import BugzillaRESTClient from deploy_tix.release_notes import ReleaseNotes from output_helper import OutputHelper
[ 11748, 1822, 29572, 198, 6738, 6061, 62, 83, 844, 13, 25456, 16496, 62, 2118, 62, 16366, 1330, 15217, 16496, 49, 6465, 11792, 198, 6738, 6061, 62, 83, 844, 13, 20979, 62, 17815, 1330, 13868, 16130, 198, 6738, 5072, 62, 2978, 525, 1330...
3.755556
45
from visual import * print(""" Click to place spheres under falling string. Right button drag or Ctrl-drag to rotate view. Middle button drag or Alt-drag to zoom in or out. On a two-button mouse, middle is left + right. """) # David Scherer scene.title = "Drape" restlength = 0.02 m = 0.010 * restlengt...
[ 6738, 5874, 1330, 1635, 201, 198, 201, 198, 4798, 7203, 15931, 201, 198, 8164, 284, 1295, 34126, 739, 7463, 4731, 13, 201, 198, 11028, 4936, 6715, 393, 19212, 12, 7109, 363, 284, 23064, 1570, 13, 201, 198, 34621, 4936, 6715, 393, 1234...
2.088116
1,237
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of sou...
[ 2, 41906, 17174, 4557, 35625, 198, 2, 15069, 357, 66, 8, 12131, 11, 8180, 10501, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 281...
2.891859
2,469
from math import sqrt # Naive method: Loop through N and check if every number is prime or not. If prime add to sum. Time complexity is O(n). Time of execution ~ 8sec for n = 1000000 s = set(prime(1000000)) for _ in range(int(input())): n = int(input()) print(sum(i for i in s if i <= n)) # Sieve implementa...
[ 6738, 10688, 1330, 19862, 17034, 198, 198, 2, 11013, 425, 2446, 25, 26304, 832, 399, 290, 2198, 611, 790, 1271, 318, 6994, 393, 407, 13, 1002, 6994, 751, 284, 2160, 13, 3862, 13357, 318, 440, 7, 77, 737, 3862, 286, 9706, 5299, 807, ...
2.273529
340
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester l1EmulatorErrorFlagClient = DQMEDHarvester("L1EmulatorErrorFlagClient", # # for each L1 system, give: # - SystemLabel: system label # - HwValLabel: system label as used in hardware validation ...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 6738, 360, 48, 5653, 712, 1063, 13, 14055, 13, 35, 48, 30733, 13587, 1158, 353, 1330, 360, 48, 30733, 13587, 1158, 353, 198, 198, 75, 16, 10161, 8927, 12331, 34227, ...
1.594019
2,441
""" The SQLAlchemy table objects for the CodaLab bundle system tables. """ # TODO: Replace String and Text columns with Unicode and UnicodeText as appropriate # This way, SQLAlchemy will automatically perform conversions to and from UTF-8 # encoding, or use appropriate database engine-specific data types for Unicode # ...
[ 37811, 198, 464, 16363, 2348, 26599, 3084, 5563, 329, 262, 327, 11329, 17822, 18537, 1080, 8893, 13, 198, 37811, 198, 2, 16926, 46, 25, 40177, 10903, 290, 8255, 15180, 351, 34371, 290, 34371, 8206, 355, 5035, 198, 2, 770, 835, 11, 163...
2.661053
6,532
# (c) 2020 Nokia # # Licensed under the BSD 3 Clause license # SPDX-License-Identifier: BSD-3-Clause # from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ --- author: - "Hans Thienpondt (@HansThienpondt)" - "Sven Wisotzky (@wisotzky)" connection: gnmi short_...
[ 2, 357, 66, 8, 12131, 26182, 198, 2, 198, 2, 49962, 739, 262, 347, 10305, 513, 28081, 5964, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 198, 198, 6738, 11593, 37443, 834, 1330, 3...
2.769204
2,838
#!/usr/bin/python # Software License Agreement (BSD License) # # Copyright (c) 2009-2011, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions # are met: # # Redistri...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 10442, 13789, 12729, 357, 21800, 13789, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 3717, 12, 9804, 11, 412, 1229, 3400, 457, 385, 11998, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, ...
3.251445
692
MAP = 1 SPEED = 1.5 VELOCITYRESET = 6 WIDTH = 1280 HEIGHT = 720 X = WIDTH / 2 - 50 Y = HEIGHT / 2 - 50 MOUSER = 325 TICKRATES = 120 nfc = False raspberry = False
[ 33767, 796, 352, 201, 198, 4303, 41841, 796, 352, 13, 20, 201, 198, 18697, 4503, 9050, 19535, 2767, 796, 718, 201, 198, 54, 2389, 4221, 796, 37674, 201, 198, 13909, 9947, 796, 26250, 201, 198, 55, 796, 370, 2389, 4221, 1220, 362, 53...
2.084337
83
# This problem was asked by Facebook. # # A builder is looking to build a row of N houses that can be of K different colors. # He has a goal of minimizing cost while ensuring that no two neighboring houses are of the same color. # # Given an N by K matrix where the nth row and kth column represents the cost to build th...
[ 2, 770, 1917, 373, 1965, 416, 3203, 13, 198, 2, 198, 2, 317, 27098, 318, 2045, 284, 1382, 257, 5752, 286, 399, 7777, 326, 460, 307, 286, 509, 1180, 7577, 13, 198, 2, 679, 468, 257, 3061, 286, 41366, 1575, 981, 13359, 326, 645, 7...
4.091837
98
import argparse import numpy as np import os import sys import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from saliency.visualizer.smiles_visualizer import SmilesVisualizer if __name__ == '__main_...
[ 11748, 1822, 29572, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 9460, 11537, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 3...
2.731707
123
# # jQuery File Tree # Python/Django connector script # By Martin Skou # import os import urllib
[ 2, 198, 2, 37420, 9220, 12200, 198, 2, 11361, 14, 35, 73, 14208, 21716, 4226, 198, 2, 2750, 5780, 3661, 280, 198, 2, 198, 11748, 28686, 198, 11748, 2956, 297, 571, 198 ]
3.03125
32
#!/usr/bin/env python3 import torch from .lazy_tensor import LazyTensor from .root_lazy_tensor import RootLazyTensor from .. import settings
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28034, 198, 198, 6738, 764, 75, 12582, 62, 83, 22854, 1330, 406, 12582, 51, 22854, 198, 6738, 764, 15763, 62, 75, 12582, 62, 83, 22854, 1330, 20410, 43, 12582, 51, 22...
2.938776
49
# File: A (Python 2.4) from pandac.PandaModules import AudioSound from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import LerpFunc, Sequence from direct.showbase.DirectObject import DirectObject
[ 2, 9220, 25, 317, 357, 37906, 362, 13, 19, 8, 198, 198, 6738, 19798, 330, 13, 47, 5282, 5841, 5028, 1330, 13491, 21369, 198, 6738, 1277, 13, 12942, 1662, 1958, 1330, 4128, 3673, 1958, 22289, 198, 6738, 1277, 13, 3849, 2100, 13, 9492...
2.744898
98
import import_target print import_target.x import import_target import_target.foo() c = import_target.C() print import_target.import_nested_target.y import_target.import_nested_target.bar() d = import_target.import_nested_target.D() print "testing importfrom:" from import_target import x as z print z import_nested...
[ 11748, 1330, 62, 16793, 198, 4798, 1330, 62, 16793, 13, 87, 198, 198, 11748, 1330, 62, 16793, 198, 11748, 62, 16793, 13, 21943, 3419, 198, 198, 66, 796, 1330, 62, 16793, 13, 34, 3419, 198, 198, 4798, 1330, 62, 16793, 13, 11748, 62, ...
3.016949
295
import numpy as np from PySide2.QtCore import QSignalBlocker, Signal from PySide2.QtWidgets import QGridLayout, QWidget from hexrd.ui.scientificspinbox import ScientificDoubleSpinBox DEFAULT_ENABLED_STYLE_SHEET = 'background-color: white' DEFAULT_DISABLED_STYLE_SHEET = 'background-color: #F0F0F0' INVALID_MATRIX_STY...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1195, 11712, 282, 12235, 263, 11, 26484, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 41339, 32517, 11, 1195, 38300, 198, ...
2.28587
920
from django.conf.urls.defaults import * urlpatterns = patterns('pytorque.views', (r'^$', 'central_dispatch_view'), (r'^browse$', 'central_dispatch_view'), (r'^monitor$', 'central_dispatch_view'), (r'^submit$', 'central_dispatch_view'), (r'^stat$', 'central_dispatch_view'), (r'^login/$', 'login...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 1635, 198, 198, 6371, 33279, 82, 796, 7572, 10786, 9078, 13165, 4188, 13, 33571, 3256, 198, 220, 220, 220, 357, 81, 6, 61, 3, 3256, 705, 31463, 62, 6381, 17147, 62, ...
2.086687
323
from typing import Tuple, Union, Any, Sequence from collections import deque, defaultdict, OrderedDict from ...validators.one import JustLen from ...functional.mixins import CompositionClassMixin from ..one import Just dict_keys = type({}.keys()) odict_keys = type(OrderedDict({}).keys()) dict_values = type({}.values()...
[ 6738, 19720, 1330, 309, 29291, 11, 4479, 11, 4377, 11, 45835, 198, 6738, 17268, 1330, 390, 4188, 11, 4277, 11600, 11, 14230, 1068, 35, 713, 198, 6738, 2644, 12102, 2024, 13, 505, 1330, 2329, 30659, 198, 6738, 2644, 45124, 13, 19816, 1...
2.674603
252
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.api.process import Process from lib.exceptions.exceptions import CuckooPackageError
[ 2, 15069, 357, 34, 8, 1946, 12, 5304, 327, 1347, 2238, 5693, 13, 198, 2, 770, 2393, 318, 636, 286, 327, 1347, 2238, 3837, 3524, 532, 2638, 1378, 2503, 13, 66, 1347, 16426, 392, 3524, 13, 2398, 198, 2, 4091, 262, 2393, 705, 31628, ...
3.316456
79
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 628 ]
3.5
26
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from main import models admin.site.register(models.User, Admin) admin.site.register(models.Document, DocumentAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 198, 6738, 1388, 1330, 4981, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 12982, 11, 3...
3.4
60
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from abc import ABCMeta, abstractmethod from collections import defaultdict from cloudshell.cli.factory.session_factory import ( CloudInfoAccessKeySessionFactory, GenericSessionFactory, SessionFactory, ) from cloudshell.cli.service.cli import CLI from cl...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 62...
2.805882
510
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
import json import logging import joblib import pandas as pd from flask import Flask, jsonify, request from flask_cors import CORS, cross_origin app = Flask(__name__) CORS(app) if __name__ == "__main__": app.run(debug=True) # To start the server # python3 app.py
[ 11748, 33918, 198, 11748, 18931, 198, 198, 11748, 1693, 8019, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 42903, 1330, 46947, 11, 33918, 1958, 11, 2581, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 11, 3272, 62, 47103, 198, 1...
2.863158
95
import pytest from PySide2.QtGui import QVector3D from nexus_constructor.model.component import Component from nexus_constructor.model.dataset import Dataset from nexus_constructor.model.instrument import Instrument from nexus_constructor.model.value_type import ValueTypes values = Dataset( name="scalar_value", ...
[ 11748, 12972, 9288, 198, 6738, 9485, 24819, 17, 13, 48, 83, 8205, 72, 1330, 1195, 38469, 18, 35, 198, 198, 6738, 45770, 62, 41571, 273, 13, 19849, 13, 42895, 1330, 35100, 198, 6738, 45770, 62, 41571, 273, 13, 19849, 13, 19608, 292, ...
2.873239
142
#!/usr/bin/env python import argparse import os.path as osp import logging import time import sys sys.path.insert(0, osp.dirname(__file__) + '/..') import torch import torch.nn as nn from fastmvsnet.config import load_cfg_from_file from fastmvsnet.utils.io import mkdir from fastmvsnet.utils.logger import setup_logger...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1822, 29572, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 267, 2777, 13, 15908...
2.953571
280
# Estrutura bsica para projetos de Machine Learning e Deep Learning # Por Adriano Santos. from torch import nn, relu import torch.nn.functional as F import torch.optim as optim import torch from torchvision import models
[ 2, 412, 2536, 315, 5330, 275, 82, 3970, 31215, 386, 31173, 418, 390, 10850, 18252, 304, 10766, 18252, 198, 2, 20139, 21462, 78, 28458, 13, 198, 198, 6738, 28034, 1330, 299, 77, 11, 823, 84, 198, 11748, 28034, 13, 20471, 13, 45124, 3...
3.639344
61
#!/usr/bin/env python # Copyright (c) 2017, Simon Brodeur # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 2177, 11, 11288, 2806, 2934, 333, 198, 2, 1439, 2489, 10395, 13, 198, 2, 220, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, ...
2.092617
1,544
import pygame from loguru import logger from somegame.osd import OSD
[ 11748, 12972, 6057, 198, 6738, 2604, 14717, 1330, 49706, 198, 198, 6738, 617, 6057, 13, 418, 67, 1330, 7294, 35, 628 ]
3.380952
21
# # Copyright 2016 The BigDL Authors. # # 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 ...
[ 2, 198, 2, 15069, 1584, 383, 4403, 19260, 46665, 13, 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...
3.472789
294
import json import tornado.gen import traceback from base64 import b64encode from tornado.httpclient import AsyncHTTPClient, HTTPRequest, HTTPError from settings import Settings from mongo_db_controller import ZoomUserDB
[ 11748, 33918, 198, 11748, 33718, 13, 5235, 198, 11748, 12854, 1891, 198, 198, 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 198, 6738, 33718, 13, 4023, 16366, 1330, 1081, 13361, 40717, 11792, 11, 14626, 18453, 11, 14626, 12331, 198, 198, ...
3.912281
57
#!/usr/bin/env python3 # 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 os from crypten.mpc import primitives # noqa: F401 from crypten.mpc import provider # noqa: F40 from .conte...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, ...
2.982699
289
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pyflakes.checke...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 1853, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 1...
3.119718
142
from django.db import models from django.contrib.auth.models import User from django.contrib import admin from django.utils.translation import ugettext_lazy as _
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 52...
3.468085
47