content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/python # # Copyright 2019 Polyaxon, 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 o...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 13130, 12280, 897, 261, 11, 3457, 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, ...
3.612245
245
import pytest from duckql.properties import Null
[ 11748, 12972, 9288, 198, 198, 6738, 22045, 13976, 13, 48310, 1330, 35886, 628, 628, 198 ]
3.6
15
# -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2010 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; eith...
[ 2, 532, 9, 12, 10363, 25, 11361, 532, 9, 12, 198, 2, 402, 10267, 12, 5317, 305, 31308, 532, 257, 9355, 329, 18951, 4443, 278, 402, 10267, 12782, 198, 2, 15069, 357, 34, 8, 3050, 220, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, ...
3.780488
246
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys import shutil import tempfile import subprocess import typing as tp from pathlib import Path from ne...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, ...
2.407736
1,241
import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname='54.165.97.91',username='ec2-user',password='paramiko123',port=22) sftp_client=ssh.open_sftp() #sftp_client.get('/home/ec2-user/paramiko_download.txt','paramiko_downloaded_file.txt') #sftp_c...
[ 11748, 5772, 12125, 201, 198, 45824, 796, 5772, 12125, 13, 5432, 39, 11792, 3419, 201, 198, 45824, 13, 2617, 62, 45688, 62, 4774, 62, 2539, 62, 30586, 7, 17143, 12125, 13, 27722, 4550, 36727, 28955, 201, 198, 45824, 13, 8443, 7, 4774,...
2.40678
236
# coding=utf-8 """ Internal tools for NimLime development & testing. """ from pprint import pprint import sublime try: from cProfile import Profile except ImportError: from profile import Profile from functools import wraps from pstats import Stats try: from StringIO import StringIO except ImportError: ...
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 198, 37693, 4899, 329, 27168, 43, 524, 2478, 1222, 4856, 13, 198, 37811, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 11748, 41674, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 269, 3704...
2.939547
397
import orjson from asynctest import TestCase, Mock, patch from freezegun import freeze_time from driftage.monitor import Monitor
[ 11748, 393, 17752, 198, 6738, 355, 2047, 310, 395, 1330, 6208, 20448, 11, 44123, 11, 8529, 198, 6738, 1479, 89, 1533, 403, 1330, 16611, 62, 2435, 198, 6738, 24260, 496, 13, 41143, 1330, 18289, 628 ]
3.714286
35
import fastarg import commands.todo as todo import commands.user as user app = fastarg.Fastarg(description="productivity app", prog="todo") app.add_fastarg(todo.app, name="todo") app.add_fastarg(user.app, name="user") if __name__ == "__main__": app.run()
[ 11748, 3049, 853, 198, 11748, 9729, 13, 83, 24313, 355, 284, 4598, 198, 11748, 9729, 13, 7220, 355, 2836, 198, 198, 1324, 796, 3049, 853, 13, 22968, 853, 7, 11213, 2625, 11167, 3458, 598, 1600, 1172, 2625, 83, 24313, 4943, 198, 198, ...
2.747368
95
import asyncio import uuid import pytest from aiomisc_pytest.pytest_plugin import TCPProxy import aiormq
[ 11748, 30351, 952, 198, 11748, 334, 27112, 198, 198, 11748, 12972, 9288, 198, 6738, 257, 29005, 2304, 62, 9078, 9288, 13, 9078, 9288, 62, 33803, 1330, 23633, 44148, 198, 198, 11748, 257, 72, 579, 80, 628, 628, 628, 628, 628 ]
2.9
40
__all__ = ['mediaclassification_stats']
[ 834, 439, 834, 796, 37250, 2379, 330, 31172, 2649, 62, 34242, 20520 ]
3.25
12
''' Problem description: Given a string, determine whether or not the parentheses are balanced ''' def balanced_parens(str): ''' runtime: O(n) space : O(1) ''' if str is None: return True open_count = 0 for char in str: if char == '(': open_count += 1 ...
[ 7061, 6, 198, 40781, 6764, 25, 198, 15056, 257, 4731, 11, 5004, 1771, 393, 407, 262, 46672, 389, 12974, 198, 7061, 6, 628, 198, 4299, 12974, 62, 11730, 82, 7, 2536, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 19124, 2...
2.146226
212
# -*- coding: utf-8 -*- """Parser for the CCleaner Registry key.""" import re from dfdatetime import time_elements as dfdatetime_time_elements from plaso.containers import events from plaso.containers import time_events from plaso.lib import definitions from plaso.parsers import winreg_parser from plaso.parsers.winr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 46677, 329, 262, 12624, 13087, 263, 33432, 1994, 526, 15931, 198, 198, 11748, 302, 198, 198, 6738, 288, 16344, 265, 8079, 1330, 640, 62, 68, 3639, 355, 288, 16344...
3.058824
136
from abc import ABCMeta, abstractmethod from dataclasses import dataclass from typing import Any, TypeVar X = TypeVar('X') _UNIT_SINGLETON = Unit()
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 5994, 19852, 628, 198, 55, 796, 5994, 19852, 10786, 55, 11537, 628, 628, 628, 198, 62, 4944, 20...
3.078431
51
import time import pytest from test import config from test.cube_utils import CubeUtils ITERATIONS_NUM = getattr(config, 'iterations_num', 1) ROUNDS_NUM = getattr(config, 'rounds_num', 10)
[ 11748, 640, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1332, 1330, 4566, 198, 6738, 1332, 13, 40296, 62, 26791, 1330, 23315, 18274, 4487, 198, 198, 2043, 1137, 18421, 62, 41359, 796, 651, 35226, 7, 11250, 11, 705, 2676, 602, 62, 22...
2.924242
66
import pytest from mindmeld.components import Conversation def assert_reply(directives, templates, *, start_index=0, slots=None): """Asserts that the provided directives contain the specified reply Args: directives (list[dict[str, dict]]): list of directives returned by application templates ...
[ 11748, 12972, 9288, 198, 6738, 2000, 1326, 335, 13, 5589, 3906, 1330, 42427, 628, 198, 4299, 6818, 62, 47768, 7, 12942, 1083, 11, 24019, 11, 1635, 11, 923, 62, 9630, 28, 15, 11, 17314, 28, 14202, 2599, 198, 220, 220, 220, 37227, 802...
2.784636
729
import os,sys import webbrowser import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.cm as cm import matplotlib.pylab as plt from matplotlib import ticker plt.rcParams['font.family'] = 'monospace' fig = plt.figure() rect = fig.add_subplot(111, aspect='equal') data0 = np.loadtxt('data0.dat', del...
[ 11748, 28686, 11, 17597, 198, 11748, 3992, 40259, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 11748, 2603, 29487, 8019, 13, 11215, 355, 12067, 198, 11748, ...
2.237221
763
from sarna.model.enums import Score, Language from sarna.report_generator import make_run from sarna.report_generator.locale_choice import locale_choice from sarna.report_generator.style import RenderStyle
[ 6738, 264, 28610, 13, 19849, 13, 268, 5700, 1330, 15178, 11, 15417, 198, 6738, 264, 28610, 13, 13116, 62, 8612, 1352, 1330, 787, 62, 5143, 198, 6738, 264, 28610, 13, 13116, 62, 8612, 1352, 13, 17946, 1000, 62, 25541, 1330, 36693, 62, ...
3.568966
58
# Open mode AP tests # Copyright (c) 2014, Qualcomm Atheros, Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import struct import subprocess import time import os import hostapd import hwsim_utils from tshark impo...
[ 2, 4946, 4235, 3486, 5254, 198, 2, 15069, 357, 66, 8, 1946, 11, 32903, 27751, 4951, 11, 3457, 13, 198, 2, 198, 2, 770, 3788, 743, 307, 9387, 739, 262, 2846, 286, 262, 347, 10305, 5964, 13, 198, 2, 4091, 20832, 11682, 329, 517, 3...
2.184765
8,021
#!/usr/bin/env python # coding: utf-8 # pylint: disable-all from __future__ import absolute_import from sklearn.preprocessing import LabelEncoder from pathlib import Path import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim def train_epoch(model, opt, criterion, X, y...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 279, 2645, 600, 25, 15560, 12, 439, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, ...
2.350296
845
"""Simulate stochastic observing weather conditions. The simulated conditions include seeing, transparency and the dome-open fraction. """ from __future__ import print_function, division, absolute_import from datetime import datetime import numpy as np import astropy.time import astropy.table import astropy.units a...
[ 37811, 8890, 5039, 3995, 354, 3477, 21769, 6193, 3403, 13, 198, 198, 464, 28590, 3403, 2291, 4379, 11, 13902, 290, 262, 29500, 12, 9654, 13390, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 11, 4112, 62...
3.626016
123
# coding=utf-8 # Copyright 2015 Google Inc. 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 ap...
[ 2, 19617, 28, 40477, 12, 23, 628, 198, 2, 15069, 1853, 3012, 3457, 13, 1439, 2489, 10395, 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, ...
3.385135
740
# -*- coding: utf-8 -*- """ @Project : RNN_Prediction @Author : Xu-Shan Zhao @Filename: stockPrediction202005201318.py @IDE : PyCharm @Time1 : 2020-05-20 13:18:46 @Time2 : 2020/5/20 13:18 @Month1 : 5 @Month2 : """ import tushare as ts import tensorflow as tf import pandas as pd from sklearn.model_selection...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 16775, 1058, 371, 6144, 62, 39156, 2867, 198, 31, 13838, 220, 1058, 33591, 12, 2484, 272, 29436, 198, 31, 35063, 25, 4283, 39156, 2867, 1238, 14315, 6390...
2.334322
1,011
#!/usr/bin/env python # -*- coding: utf-8 -*- from src import app import os import shutil from flask import Flask, render_template, session, request, flash, url_for, redirect from Forms import ContactForm, LoginForm, editForm, ReportForm, CommentForm, searchForm, AddPlaylist from flask.ext.mail import Message, Mail fro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 12351, 1330, 598, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 1...
2.605932
1,180
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 3012, 9552, 15417, 4816, 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,...
2.372157
7,298
""" test_pop_models.py Author: Jordan Mirocha Affiliation: UCLA Created on: Fri Jul 15 15:23:11 PDT 2016 Description: """ import ares import matplotlib.pyplot as pl PB = ares.util.ParameterBundle if __name__ == '__main__': test()
[ 37811, 198, 198, 9288, 62, 12924, 62, 27530, 13, 9078, 198, 198, 13838, 25, 8078, 337, 7058, 11693, 198, 35191, 15547, 25, 21750, 198, 41972, 319, 25, 19480, 5979, 1315, 1315, 25, 1954, 25, 1157, 28288, 1584, 198, 198, 11828, 25, 220,...
2.652174
92
# coding: utf-8 import time import hashlib import leancloud from leancloud._compat import to_bytes __author__ = 'asaka <lan@leancloud.rocks>'
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 640, 198, 11748, 12234, 8019, 198, 198, 11748, 10904, 17721, 198, 6738, 10904, 17721, 13557, 5589, 265, 1330, 284, 62, 33661, 198, 198, 834, 9800, 834, 796, 705, 292, 8130, 1279, 9620, ...
2.862745
51
""" mavsimPy - Chapter 4 assignment for Beard & McLain, PUP, 2012 - Update history: 12/27/2018 - RWB 1/17/2019 - RWB """ import sys sys.path.append('..') import numpy as np import parameters.simulation_parameters as SIM from chap2.mav_viewer import mav_viewer # from chap2.video_writer import ...
[ 37811, 198, 76, 615, 14323, 20519, 198, 220, 220, 220, 532, 7006, 604, 16237, 329, 41698, 1222, 18365, 391, 11, 350, 8577, 11, 2321, 198, 220, 220, 220, 532, 10133, 2106, 25, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1105, ...
2.41565
984
import os.path as osp import sys import numpy as np import mmcv from tqdm import tqdm from functools import cmp_to_key cur_dir = osp.dirname(osp.abspath(__file__)) PROJ_ROOT = osp.normpath(osp.join(cur_dir, "../../../../")) sys.path.insert(0, PROJ_ROOT) from lib.pysixd import inout, misc from lib.utils.bbox_utils impo...
[ 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 8085, 33967, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 1257, 310, 10141, 1330, 269, 3149, 62, 1462, 62, 2539, ...
1.904309
3,156
from flask import abort from guniflask.context import service from ..config.jwt_config import jwt_manager
[ 6738, 42903, 1330, 15614, 198, 6738, 2485, 361, 75, 2093, 13, 22866, 1330, 2139, 198, 198, 6738, 11485, 11250, 13, 73, 46569, 62, 11250, 1330, 474, 46569, 62, 37153, 628 ]
3.6
30
import pandas as pd I = ["A", "B", "C", "D", "E"] oneDigit = pd.Series([1, 2, 3, 4, 5], pd.Index(I)) twoDigit = pd.Series([10, 20, 30, 40, 50], pd.Index(I)) print "addends:" print oneDigit print twoDigit print print "sum:" print oneDigit + twoDigit print I2 = ["A", "B", "C"] I3 = ["B", "C", "D", "E"] X = pd.Series(...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 40, 796, 14631, 32, 1600, 366, 33, 1600, 366, 34, 1600, 366, 35, 1600, 366, 36, 8973, 198, 198, 505, 19511, 270, 796, 279, 67, 13, 27996, 26933, 16, 11, 362, 11, 513, 11, 604, 11, 642, ...
2.146341
287
# # (c) 2008-2020 Matthew Shaw # import sys import os import re import logging import nelly from .scanner import Scanner from .program import Program from .types import *
[ 2, 198, 2, 357, 66, 8, 3648, 12, 42334, 9308, 18193, 198, 2, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 18931, 198, 198, 11748, 497, 12810, 198, 198, 6738, 764, 35836, 1008, 1330, 20937, 1008, 198, 6738, ...
3.218182
55
""" This module contains helper functions that provide information about how QCoDeS is installed and about what other packages are installed along with QCoDeS """ import sys from typing import Dict, List, Optional import subprocess import json import logging import requirements if sys.version_info >= (3, 8): from ...
[ 37811, 198, 1212, 8265, 4909, 31904, 5499, 326, 2148, 1321, 546, 703, 198, 48, 7222, 5005, 50, 318, 6589, 290, 546, 644, 584, 10392, 389, 6589, 1863, 351, 198, 48, 7222, 5005, 50, 198, 37811, 198, 11748, 25064, 198, 6738, 19720, 1330,...
2.655056
890
from django.shortcuts import render from django.http import JsonResponse from .models import FieldCategory
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 198, 6738, 764, 27530, 1330, 7663, 27313, 628, 198 ]
3.928571
28
# tests/test_provider_Mongey_kafka-connect.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:11 UTC) # TODO: Shortcut imports without namespace for official and supported providers. # TODO: This has to be moved into a required_providers block. # def test_version_source(): # # import terrasc...
[ 2, 5254, 14, 9288, 62, 15234, 1304, 62, 9069, 39608, 62, 74, 1878, 4914, 12, 8443, 13, 9078, 198, 2, 17406, 4142, 7560, 416, 4899, 14, 15883, 8189, 13, 9078, 357, 1731, 12, 19117, 12, 1238, 2481, 1315, 25, 1238, 25, 1157, 18119, 8...
2.608491
212
from flask import Flask, render_template, request, redirect, jsonify, g from flask import url_for, flash, make_response from flask import session as login_session from sqlalchemy import create_engine, asc from sqlalchemy.orm import sessionmaker from models import Base, Category, Item, User from oauth2client.client impo...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 33918, 1958, 11, 308, 198, 6738, 42903, 1330, 19016, 62, 1640, 11, 7644, 11, 787, 62, 26209, 198, 6738, 42903, 1330, 6246, 355, 17594, 62, 29891, 198, 6738, 44161...
2.749267
682
from .echo import echo, set_quiet from .errors import NooException, cancel from .store import STORE, FileStore, Store __all__ = ( "FileStore", "NooException", "Store", "STORE", "cancel", "echo", "set_quiet", )
[ 6738, 764, 30328, 1330, 9809, 11, 900, 62, 39624, 198, 6738, 764, 48277, 1330, 1400, 78, 16922, 11, 14241, 198, 6738, 764, 8095, 1330, 3563, 6965, 11, 9220, 22658, 11, 9363, 198, 198, 834, 439, 834, 796, 357, 198, 220, 220, 220, 366...
2.463918
97
# Copyright Allen Institute for Artificial Intelligence 2017 """ ai2thor.server Handles all communication with Unity through a Flask service. Messages are sent to the controller using a pair of request/response queues. """ import json import logging import sys import os import os.path try: from queue import Em...
[ 2, 15069, 9659, 5136, 329, 35941, 9345, 2177, 198, 37811, 198, 1872, 17, 400, 273, 13, 15388, 198, 198, 12885, 829, 477, 6946, 351, 18714, 832, 257, 46947, 2139, 13, 220, 43534, 198, 533, 1908, 284, 262, 10444, 1262, 257, 5166, 286, ...
2.535714
784
from setuptools import setup setup(name='mydocstring', version='0.2.7', description="""A tool for extracting and converting Google-style docstrings to plain-text, markdown, and JSON.""", url='http://github.com/ooreilly/mydocstring', author="Ossian O'Reilly", license='MIT', pa...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 220, 198, 40406, 7, 3672, 11639, 1820, 15390, 8841, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 17, 13, 22, 3256, 198, 220, 220, 220, 220, 220, 6764, 2625, 15931, 32, 2891, 329,...
2.264493
276
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import bson import struct from ..err import SerializeError from ..abc import * from ..core import register_format
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 93, 1959, 2079, 532, 327, 928, 1754, 1279, 15688, 1659, 75, 86, 31, 14816, 13, 785, 29, 198, 2, 24200, 438, 198, 2, 198, 2, ...
2.802469
81
# -*- encoding: utf-8 -*- import json import os import shutil import tempfile from collections import OrderedDict from datetime import timedelta from pyparsing import ParseBaseException, ParseException, ParseSyntaxException import mock import pytest from pyhocon import (ConfigFactory, ConfigParser, ConfigSubstitution...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 4818, 8079, 1330, 28805, 125...
1.745873
24,169
#!/usr/bin/env python # Copyright (c) 2018-2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module provides the ScenarioManager implementation. It must not be modified and is for reference only! """ from __future__ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 2864, 12, 42334, 8180, 10501, 198, 2, 198, 2, 770, 670, 318, 11971, 739, 262, 2846, 286, 262, 17168, 5964, 13, 198, 2, 1114, 257, 4866, 11, 766, 1279, ...
3.548718
195
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
[ 2, 198, 2, 770, 2723, 2393, 318, 636, 286, 262, 13113, 11012, 1280, 2723, 1628, 13, 198, 2, 198, 2, 15069, 3648, 12, 25579, 6139, 25896, 3457, 13, 290, 262, 13113, 11012, 7035, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11...
2.525579
1,857
from calendar import month_name
[ 6738, 11845, 1330, 1227, 62, 3672 ]
5.166667
6
#!/usr/bin/env python # -*- coding: utf-8 -*- #__Author__ = #_PlugName_ = Shop7z /admin/lipinadd.asp import re if __name__ == '__main__': from dummy import * audit(assign('shop7z', 'http://www.99ysbjw.com/')[1])
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 834, 13838, 834, 796, 220, 201, 198, 2, 62, 23257, 5376, 62, 796, 13705, 22, 89, 1220, 28482, 14, 4071...
2.042735
117
"""Support for the Philips Hue lights.""" from __future__ import annotations from datetime import timedelta from functools import partial import logging import random import aiohue import async_timeout from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_EFFECT, ATTR_FL...
[ 37811, 15514, 329, 262, 46905, 31788, 7588, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 18931, 198, 11748, 4738, 198, 198, 11...
2.327563
2,253
# Copyright (c) 2018-2021 Manfred Moitzi # License: MIT License # source: http://www.lee-mac.com/bulgeconversion.html # source: http://www.afralisp.net/archive/lisp/Bulges1.htm from typing import Any, TYPE_CHECKING, Tuple import math from ezdxf.math import Vec2 if TYPE_CHECKING: from ezdxf.eztypes import Vertex _...
[ 2, 15069, 357, 66, 8, 2864, 12, 1238, 2481, 1869, 39193, 4270, 4224, 72, 198, 2, 13789, 25, 17168, 13789, 198, 2, 2723, 25, 2638, 1378, 2503, 13, 7197, 12, 20285, 13, 785, 14, 15065, 469, 1102, 9641, 13, 6494, 198, 2, 2723, 25, ...
2.361054
1,936
# To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. #if __name__ == "__main__": # print "Hello World" from ProgrammingEmail import ManageAttachments import jpype import os.path asposeapispath...
[ 2, 1675, 1487, 428, 5964, 13639, 11, 3853, 13789, 7123, 364, 287, 4935, 24946, 13, 198, 2, 1675, 1487, 428, 11055, 2393, 11, 3853, 20003, 930, 5825, 17041, 198, 2, 290, 1280, 262, 11055, 287, 262, 5464, 13, 198, 198, 2, 361, 11593, ...
2.921053
228
from prompt_toolkit.key_binding.bindings.named_commands import (accept_line, self_insert, backward_delete_char, beginning_of_line) from prompt_toolkit.key_binding.bindings.basic import if_no_repeat from prompt_toolkit.key_binding.bindings.basic import load_basic_bindings from prompt_toolkit.key_binding.bindings.ema...
[ 6738, 6152, 62, 25981, 15813, 13, 2539, 62, 30786, 13, 21653, 654, 13, 13190, 62, 9503, 1746, 1330, 357, 13635, 62, 1370, 11, 198, 220, 220, 220, 2116, 62, 28463, 11, 19528, 62, 33678, 62, 10641, 11, 3726, 62, 1659, 62, 1370, 8, 1...
2.439379
4,058
from biogeme import * from headers import * from loglikelihood import * from statistics import * from nested import * #import random cons_work= Beta('cons for work', 0,-10,10,0) cons_edu = Beta('cons for education',0,-50,10,0) cons_shopping = Beta('cons for shopping',0,-10,10,0) cons_...
[ 6738, 3182, 519, 34755, 1330, 1635, 201, 198, 201, 198, 6738, 24697, 1330, 1635, 201, 198, 201, 198, 6738, 2604, 2339, 11935, 1330, 1635, 201, 198, 201, 198, 6738, 7869, 1330, 1635, 201, 198, 201, 198, 6738, 28376, 1330, 1635, 201, 19...
2.071198
5,267
# from config import Config from flask import Flask from flask_sqlalchemy import SQLAlchemy # db = SQLAlchemy() # app
[ 2, 220, 198, 6738, 4566, 1330, 17056, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 198, 2, 220, 198, 9945, 796, 16363, 2348, 26599, 3419, 628, 198, 2, 598, 198 ]
3.153846
39
import json import web3
[ 11748, 33918, 198, 11748, 3992, 18, 628, 198 ]
3.25
8
"""STOCHASTIC ROSS plotting module. This module returns graphs for each type of analyses in st_rotor_assembly.py. """ import numpy as np from plotly import express as px from plotly import graph_objects as go from plotly import io as pio from plotly.subplots import make_subplots from ross.plotly_theme import tableau_...
[ 37811, 2257, 46, 3398, 11262, 2149, 371, 18420, 29353, 8265, 13, 198, 198, 1212, 8265, 5860, 28770, 329, 1123, 2099, 286, 13523, 287, 336, 62, 10599, 273, 62, 41873, 13, 9078, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 6...
3.077419
155
import os import itertools import importlib import numpy as np import random STRATEGY_FOLDER = "exampleStrats" RESULTS_FILE = "results.txt" pointsArray = [[1,5],[0,3]] # The i-j-th element of this array is how many points you receive if you do play i, and your opponent does play j. moveLabels = ["D","C"] #...
[ 11748, 28686, 201, 198, 11748, 340, 861, 10141, 201, 198, 11748, 1330, 8019, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 4738, 201, 198, 201, 198, 18601, 6158, 31212, 62, 37, 3535, 14418, 796, 366, 20688, 13290, 1381, 1, ...
2.558659
358
# Copyright (c) 2014, Stanford University # 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, this list of conditions and the ...
[ 2, 15069, 357, 66, 8, 1946, 11, 13863, 2059, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 1138, ...
3.811111
450
#!./venv/bin/python from lib.mbp32 import XKey from lib.utils import one_line_from_stdin xkey = XKey.from_xkey(one_line_from_stdin()) print(xkey) print("Version:", xkey.version) print("Depth:", xkey.depth) print("Parent FP:", xkey.parent_fp.hex()) print("Child number:", xkey.child_number_with_tick()) print("Chain cod...
[ 2, 0, 19571, 574, 85, 14, 8800, 14, 29412, 198, 198, 6738, 9195, 13, 2022, 79, 2624, 1330, 1395, 9218, 198, 6738, 9195, 13, 26791, 1330, 530, 62, 1370, 62, 6738, 62, 19282, 259, 198, 198, 87, 2539, 796, 1395, 9218, 13, 6738, 62, ...
2.545833
240
from spherical_distortion.util import * sample_order = 9 # Input resolution to examine ang_fov(sample_order)
[ 6738, 43180, 62, 17080, 5817, 13, 22602, 1330, 1635, 198, 198, 39873, 62, 2875, 796, 860, 1303, 23412, 6323, 284, 10716, 198, 198, 648, 62, 69, 709, 7, 39873, 62, 2875, 8 ]
3.4375
32
from polymath import UNSET_SHAPE, DEFAULT_SHAPES import builtins import operator from collections import OrderedDict, Mapping, Sequence, deque import functools from numbers import Integral, Rational, Real import contextlib import traceback import uuid import numpy as np import importlib from .graph import Graph from ....
[ 198, 6738, 7514, 11018, 1330, 4725, 28480, 62, 9693, 45721, 11, 5550, 38865, 62, 9693, 2969, 1546, 198, 11748, 3170, 1040, 198, 11748, 10088, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 11, 337, 5912, 11, 45835, 11, 390, 4188, 198, ...
2.321118
9,551
from django.db import models from django.utils.translation import ugettext_lazy as _ # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.454545
33
"""Build the C client docs. """ from __future__ import with_statement import os import shutil import socket import subprocess import time import urllib2 def version(): """Get the driver version from doxygenConfig. """ with open("doxygenConfig") as f: for line in f.readlines(): if line....
[ 37811, 15580, 262, 327, 5456, 34165, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 17802, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 2956, 297, 5...
2.584795
171
import glm import math from lib.opengl import RenderSettings
[ 11748, 1278, 76, 198, 11748, 10688, 198, 198, 6738, 9195, 13, 404, 1516, 75, 1330, 46722, 26232, 628, 628 ]
3.421053
19
#!/usr/bin/env python3 import argparse import json import os import statistics from collections import defaultdict from tools.stats.s3_stat_parser import ( get_previous_reports_for_branch, Report, Version2Report, ) from typing import cast, DefaultDict, Dict, List, Any from urllib.request import urlopen SL...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 7869, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4899, 13, 34242, 13, 82, 18, 62, 14269, 62, 48610, ...
2.616162
198
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import itertools import logging import numpy as np import scipy as sp import torch from ml.rl.evaluation.cpe import CpeEstimate from ml.rl.evaluation.evaluation_data_page import EvaluationDataPage logger = logging.getLogg...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 198, 11748, 340, 861, 10141, 198, 11748, 18931, 198, 198, 11748, 299, 32152, 355, 45941...
3.119658
117
# -*- coding: utf-8 -*- # @Author: # @Create Date: 2019-08-03 10:48:30 # @Last Modified by: # @Last Modified time: 2019-08-03 10:53:15 import copy import random from typing import List
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 2488, 16447, 7536, 25, 220, 220, 220, 220, 220, 220, 220, 13130, 12, 2...
2.221053
95
import numpy as np import sklearn import pandas as pd import scipy.spatial.distance as ssd from scipy.cluster import hierarchy from scipy.stats import chi2_contingency from sklearn.base import BaseEstimator from sklearn.ensemble import RandomForestClassifier from sklearn.feature_extraction.text import CountVectorizer f...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 629, 541, 88, 13, 2777, 34961, 13, 30246, 355, 264, 21282, 198, 6738, 629, 541, 88, 13, 565, 5819, 1330, 18911, 198, 6738, 629, ...
2.868966
435
from bs4 import BeautifulSoup import requests import re from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium import webdriver from seleni...
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 11748, 302, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 220, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, ...
2.70566
530
#!/usr/bin/env python3 #****************************************************************************** # (C) 2018, Stefan Korner, Austria * # * # The Space Python Library is free software; you can redi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 17174, 17174, 46068, 1174, 198, 2, 357, 34, 8, 2864, 11, 28842, 14769, 1008, 11, 17322, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.797669
944
from __future__ import unicode_literals import logging import cfgv import pytest import pre_commit.constants as C from pre_commit.clientlib import check_type_tag from pre_commit.clientlib import CONFIG_HOOK_DICT from pre_commit.clientlib import CONFIG_REPO_DICT from pre_commit.clientlib import CONFIG_SCHEMA from pre...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 18931, 198, 198, 11748, 30218, 70, 85, 198, 11748, 12972, 9288, 198, 198, 11748, 662, 62, 41509, 13, 9979, 1187, 355, 327, 198, 6738, 662, 62, 41509, 13, 163...
2.611888
858
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # IkaLog # ====== # Copyright (C) 2015 Takeshi HASEGAWA # # 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/l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 314, 4914, 11187, 198, 2, 220, 29335, 28, 198, 2, 220, 15069, 357, 34, 8, 1853, 33687, 5303, ...
3.151515
297
from setuptools import setup, find_packages with open("README.md", 'r',encoding="utf-8") as f: long_description = f.read() setup( name='LineBot', version='0.1.0', description='Simple-LINELIB', long_description=long_description, author='Tolg KR', author_email='tolgkr@cybertkr.com', url=...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 705, 81, 3256, 12685, 7656, 2625, 40477, 12, 23, 4943, 355, 277, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 1...
2.220532
263
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: CgwshDeviceDriverSetParameterECDB.py ''' Parameter module for Cgwsh driver configuration ''' import GlobalModule from EmCommonLog import decorater_log from DriverSetParameterECDB import Dr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 15069, 7, 66, 8, 13130, 399, 3974, 261, 21821, 290, 44735, 10501, 201, 198, 2, 7066, 12453, 25, 327, 7...
3.099099
111
#!/usr/bin/env python3.6 import os import subprocess import json import argparse import zipfile import shutil import requests import datetime import re import operator import unicodedata # global list of error messages to keep track of all error msgs errorMessages = [] """ Collection of Common Functions used by Buil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 19974, 7753, 198, 11748, 4423, 346, 198, 11748, 7007, 198, 11748, 4818, 807...
2.72452
5,053
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import json import cv2 import cv2.aruco as aruco import numpy as np import sys import rospy from std_msgs.msg import Bool from std_msgs.msg import Float64MultiArray from sensor_ms...
[ 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, 198, 11748, 4808, 15003, 62, 6978, 82, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 11...
2.203883
2,369
import numpy as np import cv2 import random def preprocess(img,img_size,padding=True): """[summary] Args: img (np.ndarray): images img_size (int,list,tuple): target size. eg: 224 , (224,224) or [224,224] padding (bool): padding img before resize. Prevent from image distortion. Default...
[ 11748, 299, 32152, 355, 45941, 220, 198, 11748, 269, 85, 17, 198, 11748, 4738, 198, 4299, 662, 14681, 7, 9600, 11, 9600, 62, 7857, 11, 39231, 28, 17821, 2599, 198, 220, 220, 220, 13538, 17912, 49736, 60, 628, 220, 220, 220, 943, 145...
2.214815
405
## @file # generate capsule # # Copyright (c) 2007-2017, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found a...
[ 2235, 2488, 7753, 198, 2, 7716, 27855, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 4343, 12, 5539, 11, 8180, 10501, 13, 1439, 2489, 10395, 29847, 11473, 29, 198, 2, 198, 2, 220, 770, 1430, 290, 262, 19249, 5696, 198, 2, 220, 389, 11...
3.17608
301
import matplotlib.pyplot as plt import numpy as np # Read data size = [] time = [] with open("pi_linear.txt") as file: for line in file.readlines(): x, y = line.split(',') size.append(int(x.strip())) time.append(float(y.strip())) # Plot data fig, ax = plt.subplots() ax.plot(size, tim...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 4149, 1366, 198, 7857, 796, 17635, 198, 2435, 796, 17635, 198, 4480, 1280, 7203, 14415, 62, 29127, 13, 14116, 4943, 355, 2393, 2...
2.253731
201
from typing import ClassVar, List, Optional from ...constants import ApiKey, ErrorCode from ..base import ResponseData
[ 6738, 19720, 1330, 5016, 19852, 11, 7343, 11, 32233, 198, 198, 6738, 2644, 9979, 1187, 1330, 5949, 72, 9218, 11, 13047, 10669, 198, 6738, 11485, 8692, 1330, 18261, 6601, 628, 628 ]
3.967742
31
import mock import pytest import py_zipkin.storage
[ 11748, 15290, 198, 11748, 12972, 9288, 198, 198, 11748, 12972, 62, 13344, 5116, 13, 35350, 628, 628, 628, 628, 628, 628, 628 ]
2.954545
22
from pywps import Process, LiteralInput, ComplexInput, ComplexOutput from pywps import Format import logging LOGGER = logging.getLogger('PYWPS') import matplotlib # no X11 server ... must be run first # https://github.com/matplotlib/matplotlib/issues/3466/ matplotlib.use('Agg') import matplotlib.pylab as plt import...
[ 198, 6738, 12972, 86, 862, 1330, 10854, 11, 25659, 1691, 20560, 11, 19157, 20560, 11, 19157, 26410, 198, 6738, 12972, 86, 862, 1330, 18980, 198, 198, 11748, 18931, 198, 25294, 30373, 796, 18931, 13, 1136, 11187, 1362, 10786, 47, 56, 54,...
2.757062
177
from .composed import List from .composed import IntList
[ 6738, 764, 5589, 1335, 1330, 7343, 198, 6738, 764, 5589, 1335, 1330, 2558, 8053 ]
4
14
# -*- coding: utf-8 -*- import json import os.path import random import re from flask import Flask, send_from_directory from flask import request, abort from flaskrun.flaskrun import flask_run import datab.social_database as db app = Flask(__name__) # Regular expression to only accept certain files fileChecker = r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33918, 198, 11748, 28686, 13, 6978, 198, 11748, 4738, 198, 11748, 302, 198, 198, 6738, 42903, 1330, 46947, 11, 3758, 62, 6738, 62, 34945, 198, 6738, 42903, 1...
2.80117
171
""" Copyright (c) 2020 Aiven Ltd See LICENSE for details """ from astacus.common import magic, utils from astacus.common.ipc import SnapshotFile, SnapshotHash, SnapshotState from astacus.common.progress import increase_worth_reporting, Progress from pathlib import Path from typing import Optional import base64 impo...
[ 37811, 198, 198, 15269, 357, 66, 8, 12131, 317, 1469, 12052, 198, 6214, 38559, 24290, 329, 3307, 198, 198, 37811, 198, 198, 6738, 6468, 48628, 13, 11321, 1330, 5536, 11, 3384, 4487, 198, 6738, 6468, 48628, 13, 11321, 13, 541, 66, 1330...
3.421875
128
# Copyright 2018 Esteve Fernandez # Licensed under the Apache License, Version 2.0 from distutils import dir_util import glob import os from pathlib import Path import shutil from colcon_core.environment import create_environment_scripts from colcon_core.logging import colcon_logger from colcon_core.plugin_system imp...
[ 2, 15069, 2864, 412, 4169, 303, 39692, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 198, 198, 6738, 1233, 26791, 1330, 26672, 62, 22602, 198, 11748, 15095, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, ...
3.474654
217
# Copyright 2021 Sony Semiconductors Israel, Inc. 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 b...
[ 2, 15069, 33448, 10184, 311, 5314, 12920, 669, 2692, 11, 3457, 13, 1439, 2489, 10395, 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, ...
2.357407
2,160
# -*- coding: utf-8 -*- """ pygments.lexers.tnt ~~~~~~~~~~~~~~~~~~~ Lexer for Typographic Number Theory. :copyright: Copyright 2019-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer from pygments.token import Text, Commen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 12972, 11726, 13, 2588, 364, 13, 83, 429, 198, 220, 220, 220, 220, 27156, 4907, 93, 628, 220, 220, 220, 17210, 263, 329, 17134, 6826, 7913, ...
2.819444
144
from django.urls import path from contacts.views import ( ContactsListView, CreateContactView, ContactDetailView, UpdateContactView, RemoveContactView, GetContactsView, AddCommentView, UpdateCommentView, DeleteCommentView, AddAttachmentsView, DeleteAttachmentsView) app_name = 'contacts' urlpatterns =...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 13961, 13, 33571, 1330, 357, 198, 220, 220, 220, 2345, 8656, 8053, 7680, 11, 13610, 17829, 7680, 11, 14039, 11242, 603, 7680, 11, 198, 220, 220, 220, 10133, 17829, 7680, 11, 172...
2.698031
457
import windows import ctypes import socket import struct from windows import winproxy import windows.generated_def as gdef from windows.com import interfaces as cominterfaces from windows.generated_def.winstructs import * from windows.generated_def.windef import * class TCP6Connection(MIB_TCP6ROW_OWNER_PID): ""...
[ 11748, 9168, 198, 11748, 269, 19199, 198, 11748, 17802, 198, 11748, 2878, 198, 198, 6738, 9168, 1330, 1592, 36436, 198, 11748, 9168, 13, 27568, 62, 4299, 355, 308, 4299, 198, 6738, 9168, 13, 785, 1330, 20314, 355, 401, 3849, 32186, 198,...
2.510832
877
#!/usr/bin/env python3 # Coded by Massimiliano Tomassoli, 2012. # # - Thanks to b49P23TIvg for suggesting that I should use a set operation # instead of repeated membership tests. # - Thanks to Ian Kelly for pointing out that # - "minArgs = None" is better than "minArgs = -1", # - "if args" is better than ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 327, 9043, 416, 5674, 26641, 10115, 4186, 562, 11106, 11, 2321, 13, 198, 2, 198, 2, 532, 6930, 284, 275, 2920, 47, 1954, 25621, 45119, 329, 9524, 326, 314, 815, 779, 25...
1.795875
1,406
greeting = """ --------------- BEGIN SESSION --------------- You have connected to a chat server. Welcome! :: About Chat is a small piece of server software written by Evan Pratten to allow people to talk to eachother from any computer as long as it has an internet connection. (Even an arduino!). Check out the proje...
[ 70, 2871, 278, 796, 37227, 198, 24305, 347, 43312, 311, 47621, 220, 24305, 198, 1639, 423, 5884, 284, 257, 8537, 4382, 13, 19134, 0, 198, 198, 3712, 7994, 198, 30820, 318, 257, 1402, 3704, 286, 4382, 3788, 220, 198, 15266, 416, 21523,...
4.145251
179
import cv2 import itertools, os, time import numpy as np from Model import get_Model from parameter import letters import argparse from keras import backend as K K.set_learning_phase(0) Region = {"A": " ", "B": " ", "C": " ", "D": " ", "E": " ", "F": " ", "G": " ", "H": " ", "I": " ", "J": " ", "K": " ", "L"...
[ 11748, 269, 85, 17, 198, 11748, 340, 861, 10141, 11, 28686, 11, 640, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 9104, 1330, 651, 62, 17633, 198, 6738, 11507, 1330, 7475, 198, 11748, 1822, 29572, 198, 6738, 41927, 292, 1330, 30203, ...
2.12406
1,330
# Copyright (c) Facebook, Inc. and its affiliates. from typing import List, Optional, cast # Skipping analyzing 'numpy': found module but no type hints or library stubs import numpy as np # type: ignore import numpy.ma as ma # type: ignore # Skipping analyzing 'pandas': found module but no type hints or library stu...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 3350, 198, 198, 2, 3661, 4501, 22712, 705, 77, 32152, 10354, 1043, 8265, 475, 645, 2099, 20269, 393, 5888, 17071, 82, 198, ...
2.282005
2,234
# Copyright 2017 The TensorFlow 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 applica...
[ 2, 15069, 2177, 383, 309, 22854, 37535, 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, ...
3.093842
682
#!/usr/local/bin/python import os import mysql.connector as mysql metrics_mysql_password = os.environ['METRICS_MYSQL_PWD'] sql_host = os.environ['SQL_HOST'] metrics = os.environ['QUERY_ON'] def dump_query_results(): """ This is a simple SQL table dump of a given query so we can supply users with custom ...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 198, 11748, 28686, 198, 11748, 48761, 13, 8443, 273, 355, 48761, 220, 220, 220, 220, 198, 198, 4164, 10466, 62, 28744, 13976, 62, 28712, 796, 28686, 13, 268, 2268, 17816, 47123, 49...
2.528804
677
from desktop_local_tests.local_packet_capture_test_case_with_disrupter import LocalPacketCaptureTestCaseWithDisrupter from desktop_local_tests.windows.windows_dns_force_public_dns_servers_disrupter import WindowsDNSForcePublicDNSServersDisrupter
[ 6738, 11364, 62, 12001, 62, 41989, 13, 12001, 62, 8002, 316, 62, 27144, 495, 62, 9288, 62, 7442, 62, 4480, 62, 6381, 12618, 353, 1330, 10714, 47, 8317, 49630, 14402, 20448, 3152, 7279, 12618, 353, 198, 6738, 11364, 62, 12001, 62, 4198...
3.194805
77
''' Asynchronous data loader ======================== This is the Asynchronous Loader. You can use it to load an image and use it, even if data are not yet available. You must specify a default loading image for using a such loader:: from kivy import * image = Loader.image('mysprite.png') You can also load i...
[ 7061, 6, 198, 1722, 31301, 1366, 40213, 198, 4770, 2559, 198, 198, 1212, 318, 262, 1081, 31301, 8778, 263, 13, 921, 460, 779, 340, 284, 3440, 281, 2939, 198, 392, 779, 340, 11, 772, 611, 1366, 389, 407, 1865, 1695, 13, 921, 1276, ...
3.232305
551
# 13. Join # it allows to print list a bit better friends = ['Pythobit','boy','Pythoman'] print(f'My friends are {friends}.') # Output - My friends are ['Pythobit', 'boy', 'Pythoman']. # So, the Output needs to be a bit clearer. friends = ['Pythobit','boy','Pythoman'] friend = ', '.join(friends) print(f'My friend...
[ 2, 1511, 13, 15251, 198, 2, 340, 3578, 284, 3601, 1351, 257, 1643, 1365, 198, 198, 36154, 796, 37250, 47, 5272, 672, 270, 41707, 7081, 41707, 47, 5272, 5185, 20520, 198, 4798, 7, 69, 6, 3666, 2460, 389, 1391, 36154, 92, 2637, 8, 2...
2.91875
160
# settings file for builds. # if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there. # possible fields: # resourceBaseUrl - optional - the URL base for external resources (all resources embedded in standard IITC) # distUrlBase - optional - the base URL to use for update c...
[ 2, 6460, 2393, 329, 12188, 13, 198, 198, 2, 611, 345, 765, 284, 423, 2183, 12188, 11, 4866, 428, 2393, 284, 366, 12001, 11249, 33692, 13, 9078, 1, 290, 787, 2458, 612, 13, 198, 198, 2, 1744, 7032, 25, 198, 2, 8271, 14881, 28165, ...
3.277465
710
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import int from future import standard_library standard_library.install_aliases() import os import os.path import stat import urllib.parse import paramiko...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 628, 198, 6738, 3170, 1040, 1...
3.706897
116
import os os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide" import pygame RENDER_RATIO = 2
[ 11748, 28686, 198, 198, 418, 13, 268, 2268, 14692, 47, 56, 47109, 62, 39, 14114, 62, 40331, 15490, 62, 4805, 2662, 11571, 8973, 796, 366, 24717, 1, 198, 11748, 12972, 6057, 198, 198, 49, 10619, 1137, 62, 49, 1404, 9399, 796, 362, 62...
2.186047
43
import random from internal_representation_analysis.network import ActorCriticFFNetwork from internal_representation_analysis.scene_loader import THORDiscreteEnvironment as Environment from internal_representation_analysis.constants import MINI_BATCH_SIZE
[ 11748, 4738, 198, 198, 6738, 5387, 62, 15603, 341, 62, 20930, 13, 27349, 1330, 27274, 18559, 291, 5777, 26245, 198, 6738, 5387, 62, 15603, 341, 62, 20930, 13, 29734, 62, 29356, 1330, 2320, 12532, 2304, 8374, 31441, 355, 9344, 198, 198, ...
4.316667
60
import numpy as np from models import dist_model as dm from data import data_loader as dl import argparse from IPython import embed parser = argparse.ArgumentParser() parser.add_argument("--dataset_mode", type=str, default="2afc", help="[2afc,jnd]") parser.add_argument( "--datasets", type=str, nargs="+", ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 4981, 1330, 1233, 62, 19849, 355, 288, 76, 198, 6738, 1366, 1330, 1366, 62, 29356, 355, 288, 75, 198, 11748, 1822, 29572, 198, 6738, 6101, 7535, 1330, 11525, 198, 198, 48610, 796, 1822, 29572, ...
2.445221
1,287