content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import logging import asyncio import os from pyrogram import Client, filters logging.basicConfig( format='%(levelname)5s - %(name)s - %(message)s', level=0 ) LOGGER = logging.getLogger("root") LOGGER.setLevel(logging._nameToLevel[os.environ.get("log_level", "NOTSET").upper()]) string_session = os.environ.g...
[ 11748, 18931, 198, 11748, 30351, 952, 198, 11748, 28686, 198, 198, 6738, 12972, 39529, 1330, 20985, 11, 16628, 628, 198, 6404, 2667, 13, 35487, 16934, 7, 198, 220, 220, 220, 5794, 11639, 4, 7, 5715, 3672, 8, 20, 82, 532, 4064, 7, 36...
2.539043
397
# Copyright 2020 Red Hat, 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 applicable law or agr...
[ 2, 15069, 12131, 2297, 10983, 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, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
3.674641
209
import sys, os, shutil import subprocess from osgeo import gdal from osgeo.gdalconst import * import tempfile import numpy as np sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)) + '/../') from GeoRefPars import GeoRefPars # Removes vertical offset for an for a ground point cloud with uncertain g...
[ 11748, 25064, 11, 28686, 11, 4423, 346, 201, 198, 11748, 850, 14681, 201, 198, 6738, 28686, 469, 78, 1330, 308, 31748, 201, 198, 6738, 28686, 469, 78, 13, 21287, 282, 9979, 1330, 1635, 201, 198, 11748, 20218, 7753, 201, 198, 11748, 29...
2.444887
3,012
import unittest from unittest import mock from kinto.core.testing import DummyRequest from kinto.plugins.openid import OpenIDConnectPolicy from kinto.plugins.openid.utils import fetch_openid_config from .. import support
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 6738, 479, 20424, 13, 7295, 13, 33407, 1330, 360, 13513, 18453, 198, 6738, 479, 20424, 13, 37390, 13, 9654, 312, 1330, 4946, 2389, 13313, 36727, 198, 6738, 479, 20...
3.462687
67
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 47, 7252, 50, 33176, 111, 2...
1.986059
4,232
x = 1 f() print("globally, x={}".format(x))
[ 87, 796, 352, 198, 198, 69, 3419, 198, 4798, 7203, 4743, 672, 453, 11, 2124, 34758, 92, 1911, 18982, 7, 87, 4008, 198 ]
1.956522
23
import socket if __name__ == "__main__": try: echo() except KeyboardInterrupt: exit()
[ 11748, 17802, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9809, 3419, 198, 220, 220, 220, 2845, 31973, 9492, 3622, 25, 198, 220, 220, 220, ...
2.265306
49
try: __import__('pkg_resources').declare_namespace(__name__) except: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__)
[ 28311, 25, 198, 220, 220, 220, 11593, 11748, 834, 10786, 35339, 62, 37540, 27691, 32446, 533, 62, 14933, 10223, 7, 834, 3672, 834, 8, 198, 16341, 25, 198, 220, 220, 220, 1330, 279, 10025, 22602, 198, 220, 220, 220, 11593, 6978, 834, ...
2.409836
61
import os.path import ConfigFile from Constants import * BLOCK = 'block' SLOPE = 'slope' CORNER = 'corner' EXTERIOR_DEFAULT = "Light Armor" EXTERIOR_CONFIG = { TYPE_SM: { BLOCK: "1 2", SLOPE: "1 2", CORNER: "1 2", }, TYPE_LG: { BLOCK: "1 2", SLOPE: "1 2", CORNER: "1 2", }, } INTERIOR_DEFAULT = "Int...
[ 11748, 28686, 13, 6978, 198, 198, 11748, 17056, 8979, 198, 198, 6738, 4757, 1187, 1330, 1635, 198, 198, 9148, 11290, 796, 705, 9967, 6, 198, 8634, 32135, 796, 705, 6649, 3008, 6, 198, 44879, 21479, 796, 705, 10215, 1008, 6, 198, 198, ...
2.063107
206
from os import environ from typing import ContextManager, Optional, Union from aiohttp import request from discord.ext.commands.core import guild_only from src.data_clusters.configuration.server_vars import server from discord import Member, Reaction, Embed, channel, colour from discord.ext.commands import Cog, bot, c...
[ 6738, 28686, 1330, 551, 2268, 198, 6738, 19720, 1330, 30532, 13511, 11, 32233, 11, 4479, 198, 6738, 257, 952, 4023, 1330, 2581, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 13, 7295, 1330, 19806, 62, 8807, 198, 198, 6738, 12351, 13, 78...
3.805556
108
# http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html from __future__ import absolute_import # This will make sure the app is always imported when # Django starts so that shared_task will use this app. from .celery import app as celery_app
[ 2, 2638, 1378, 31628, 13, 7015, 88, 16302, 13, 2398, 14, 268, 14, 42861, 14, 28241, 14208, 14, 11085, 12, 20214, 12, 4480, 12, 28241, 14208, 13, 6494, 201, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 201, 198, 2, ...
3.320988
81
import logging import time import torch from typing import Optional from chatty_goose.settings import NtrSettings from spacy.lang.en import English from transformers import T5ForConditionalGeneration, T5Tokenizer from .cqr import ConversationalQueryRewriter __all__ = ["Ntr"] class Ntr(ConversationalQueryRewriter):...
[ 11748, 18931, 198, 11748, 640, 198, 11748, 28034, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 8537, 774, 62, 2188, 577, 13, 33692, 1330, 399, 2213, 26232, 198, 6738, 599, 1590, 13, 17204, 13, 268, 1330, 3594, 198, 6738, 6121, 364, ...
3.574074
108
import collections import torch import PIL import pytorch_lightning as pl import numpy as np import torchvision.transforms.functional as F import webdataset as wds from pathlib import Path from torchvision import transforms as T from random import randint, choice from torch.utils.data import DataLoader from PIL import...
[ 11748, 17268, 198, 11748, 28034, 198, 11748, 350, 4146, 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 10178, 13, 7645, 23914, 13, 45124, 355, 376, 198, 11748, 3992, 19608, ...
2.193578
1,090
#! /usr/bin/env python """Londiste launcher. """ import sys, os, optparse, signal, skytools # python 2.3 will try londiste.py first... import sys, os.path if os.path.exists(os.path.join(sys.path[0], 'londiste.py')) \ and not os.path.isdir(os.path.join(sys.path[0], 'londiste')): del sys.path[0] from londiste...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 43, 623, 40833, 24008, 13, 198, 37811, 198, 198, 11748, 25064, 11, 28686, 11, 2172, 29572, 11, 6737, 11, 6766, 31391, 198, 198, 2, 21015, 362, 13, 18, 481, 1949, 300, ...
2.778061
784
# python3 import json import socket import sys from email.parser import Parser from functools import lru_cache from urllib.parse import parse_qs, urlparse, urlencode, quote import re # for regulars MAX_LINE = 64 * 1024 MAX_HEADERS = 100 if __name__ == '__main__': serv = Server() try: serv.serv...
[ 2, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 17802, 198, 11748, 25064, 198, 6738, 3053, 13, 48610, 1330, 23042, 263, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 21136, 62, 4...
2.717391
138
#!/usr/bin/env python3 import json import urllib3 import boto3 from botocore.exceptions import ClientError from boto3 import Session f = open("config.json", "r+") configObj = json.loads(f.read()) f.close() headers = { "Content-Type": "application/json", "api-secret-key": configObj["c1wsApiKey"], "api-vers...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 18, 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 6738, 275, 2069, 18, 1330, 23575, 198...
2.554795
146
#!/usr/bin/env python3 # Note: This file became necessary as a workaround # since pyttsx3 is not thread-safe. # See https://github.com/nateshmbhat/pyttsx3/issues/8 # for further details. import pyttsx3 # id: 3 is french, 4 is german, 10 & 28 is english import sys text = str(sys.argv[1]) try: language = str(s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 5740, 25, 770, 2393, 2627, 3306, 355, 257, 46513, 198, 2, 1201, 12972, 83, 912, 87, 18, 318, 407, 4704, 12, 21230, 13, 198, 2, 4091, 3740, 1378, 12567, 13, 785, 14, 7...
2.586207
203
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-11-22 17:13 from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 17, 319, 2177, 12, 1157, 12, 1828, 1596, 25, 1485, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
from rest_framework import generics from .serializers import TweetModelSerializer from ..models import Tweet from django.db.models import Q from rest_framework import permissions from .pagination import TweetsSetPagination from rest_framework.views import APIView from rest_framework.response import Response
[ 6738, 1334, 62, 30604, 1330, 1152, 873, 198, 6738, 764, 46911, 11341, 1330, 18752, 17633, 32634, 7509, 198, 6738, 11485, 27530, 1330, 18752, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 1334, 62, 30604, 1330, 21627...
4.219178
73
from nltk.corpus import treebank from nltk.tree import Tree from nltk.stem import WordNetLemmatizer wnl = WordNetLemmatizer() from nltk.corpus import wordnet as wn import VerbMorph import PTBdata import pickle #selects first synonym import create2koriginal import copy if __name__ == "__main__": f = open...
[ 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 5509, 17796, 198, 6738, 299, 2528, 74, 13, 21048, 1330, 12200, 198, 6738, 299, 2528, 74, 13, 927, 1330, 9678, 7934, 43, 368, 6759, 7509, 198, 675, 75, 796, 9678, 7934, 43, 368, 6759, ...
2.057315
663
import sys import os import json import time import post_to_server import argparse if __name__ == "__main__": main(sys.argv[1:])
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 1281, 62, 1462, 62, 15388, 198, 11748, 1822, 29572, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 7, 17597, ...
2.734694
49
import os import mysql.connector import json from jinja2 import Template config_sql = { 'host':os.environ['HOST_SQL_AZURE'], 'user':os.environ['USER_SQL_AZURE'], 'password':os.environ['PASSWORD_SQL_AZURE'], 'database':os.environ['DATABASE_SQL_AZURE'], 'client_flags': [mysql.connector.ClientFlag.SSL], 'ssl...
[ 11748, 28686, 198, 11748, 48761, 13, 8443, 273, 198, 11748, 33918, 198, 6738, 474, 259, 6592, 17, 1330, 37350, 628, 198, 11250, 62, 25410, 796, 1391, 198, 220, 705, 4774, 10354, 418, 13, 268, 2268, 17816, 39, 10892, 62, 17861, 62, 227...
2.43617
188
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Sep 25 08:55:11 2018 @author: gotamist """ def clean_and_move_up_poi(df): ''' Make 'poi' the first feature, remove lines having just nans ''' import pandas as pd import numpy as np f_list = list(df) x_list = f_list #I need the ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 8621, 1679, 8487, 25, 2816, 25, 1157, 2864, 198, 198, 31, 9800, 25, 1392, 321, 396...
2.24058
345
import vcr from copper_sdk.activities import Activities @vcr.use_cassette('tests/vcr_cassettes/activities-list.yml', filter_headers=['X-PW-AccessToken', 'X-PW-UserEmail']) def test_activities_list(copper): '''Test list activities''' response = copper.activities().list({ 'page_size': 10, }) ass...
[ 11748, 410, 6098, 198, 6738, 15317, 62, 21282, 74, 13, 15791, 871, 1330, 36270, 198, 198, 31, 85, 6098, 13, 1904, 62, 66, 562, 5857, 10786, 41989, 14, 85, 6098, 62, 66, 562, 23014, 14, 15791, 871, 12, 4868, 13, 88, 4029, 3256, 810...
2.460784
408
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 3 18:47:55 2020 @author: qwang """ import os import json import torch from torchtext import data import torchtext.vocab as vocab #%% Process for qanet only #%% # %% Instance # args = { # 'batch_size': 32, # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2447, 220, 513, 1248, 25, 2857, 25, 2816, 12131, 198, 198, 31, 9800, 25, 10662, 475...
2.150927
1,186
from kivy.app import App from kivy.uix.button import Button MainApp().run()
[ 6738, 479, 452, 88, 13, 1324, 1330, 2034, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 16539, 1330, 20969, 198, 220, 220, 220, 220, 198, 13383, 4677, 22446, 5143, 3419 ]
2.580645
31
import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin __all__ = [ 'DatetimeConverter1D', 'DatetimeConverter', 'CyclicEncoder', ] class CyclicEncoder(BaseEstimator, TransformerMixin): """Cyclic Encoder Convert x to the [cos(2*pi*t), sin(2*pi*t)] pair...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1341, 35720, 13, 8692, 1330, 7308, 22362, 320, 1352, 11, 3602, 16354, 35608, 259, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 27354, ...
2.480583
206
from node import Node from random import randint from math import sqrt, pi, e import pygame as pg if __name__ == '__main__': pass
[ 6738, 10139, 1330, 19081, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 10688, 1330, 19862, 17034, 11, 31028, 11, 304, 198, 11748, 12972, 6057, 355, 23241, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 22...
3.044444
45
#!/usr/bin/python # Copyright 2016 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 appli...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 1584, 3012, 3457, 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...
2.770111
2,797
# -*- coding: utf-8 -*- import sys sys.path.append("..") from src.seq2seq import setting import re import collections import json # 将下载得到的数据进行预处理,处理结果放置到到workdir目录中 # 获取GitHub和StackOverflow的数据,并将处理后的数据放到workdir目录下 if __name__ == '__main__': buildVocab("so","java") buildVocab("so","csharp")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 6738, 12351, 13, 41068, 17, 41068, 1330, 4634, 198, 11748, 302, 198, 11748, 17268, 198, 11748, 33918, ...
1.545455
198
# # Copyright (c) 2018 Juniper Networks, Inc. All rights reserved. # from vnc_api.gen.resource_common import PortProfile from vnc_cfg_api_server.resources._resource_base import ResourceMixin
[ 2, 198, 2, 15069, 357, 66, 8, 2864, 7653, 9346, 27862, 11, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 198, 6738, 410, 10782, 62, 15042, 13, 5235, 13, 31092, 62, 11321, 1330, 4347, 37046, 198, 198, 6738, 410, 10782, 62, 37581, 6...
3.344828
58
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.397783
812
import sys sys.path.insert(0,'..') import pickle import sys import copy import numpy as np from argparse import Namespace from data import Data #from acquisition_functions import acq_fn #from bo.bo.probo import ProBO #from bo.dom.list import ListDomain from bo.pp.pp_gp_my_distmat import MyGpDistmatPP #from argparse i...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 4032, 492, 11537, 198, 198, 11748, 2298, 293, 198, 11748, 25064, 198, 11748, 4866, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1822, 29572, 1330, 28531, 10223, 198, 198, 6738, 136...
2.039121
2,684
"""Settings used by the tests in this submodule.""" import torch from tests.settings import SETTINGS as GLOBAL_SETTINGS from tests.utils.data import load_toy_data from tests.utils.models import load_toy_model from tests.utils.problem import make_problems_with_ids LOCAL_SETTINGS = [ { "data_fn": lambda: l...
[ 37811, 26232, 973, 416, 262, 5254, 287, 428, 850, 21412, 526, 15931, 198, 198, 11748, 28034, 198, 198, 6738, 5254, 13, 33692, 1330, 25823, 51, 20754, 355, 10188, 9864, 1847, 62, 28480, 51, 20754, 198, 6738, 5254, 13, 26791, 13, 7890, ...
2.427119
295
BINANCE_API_KEY = "BINANCE_API_KEY" BINANCE_MAX_WEIGHT = "BINANCE_MAX_WEIGHT" API_URL = "https://api.binance.com/api/v3" MAX_RESULTS = 1000 # Response 429, when x-mbx-used-weight-1m is 1200 MAX_WEIGHT = 1200 MIN_ELAPSED_PER_REQUEST = 0
[ 33, 1268, 19240, 62, 17614, 62, 20373, 796, 366, 33, 1268, 19240, 62, 17614, 62, 20373, 1, 198, 33, 1268, 19240, 62, 22921, 62, 8845, 9947, 796, 366, 33, 1268, 19240, 62, 22921, 62, 8845, 9947, 1, 198, 198, 17614, 62, 21886, 796, ...
2.266667
105
##This code is to prepare audio for pure kaldi prototype, it assumes audios are in wav format """ Command-line usage: python PrepareAudio.py Audio_folder wav_rspecifier spk2utt_rspecifier """ import os import re import shutil from sys import exit import sys import getopt import subprocess if __name__ == '__main__...
[ 2235, 1212, 2438, 318, 284, 8335, 6597, 329, 5899, 479, 37566, 14879, 11, 340, 18533, 2709, 4267, 389, 287, 266, 615, 5794, 198, 37811, 9455, 12, 1370, 8748, 25, 198, 220, 220, 220, 220, 220, 21015, 43426, 21206, 13, 9078, 13491, 62, ...
1.935404
805
""" Get the release information from a specific repository curl 'https://api.github.com/repos/sosey/testbot/releases' testbot.rel is example response for the sosey/testbot repo # used to render the markdown to HTML which can be walked # or used in the html page as-is pip install mistune # Use bs4 to walk the html tre...
[ 37811, 198, 3855, 262, 2650, 1321, 422, 257, 2176, 16099, 198, 66, 6371, 705, 5450, 1378, 15042, 13, 12567, 13, 785, 14, 260, 1930, 14, 568, 4397, 14, 9288, 13645, 14, 260, 29329, 6, 198, 9288, 13645, 13, 2411, 318, 1672, 2882, 329,...
2.53428
3,311
# mypy: disallow-untyped-defs # mypy: disallow-any-decorated import os import re from textwrap import dedent import mypy.api from pathlib import Path from typing import List, Tuple import attr import pytest @attr.s(auto_attribs=True) class _Result: """ Encapsulates the result of a call to ``mypy.api``, prov...
[ 2, 616, 9078, 25, 595, 12154, 12, 403, 774, 9124, 12, 4299, 82, 198, 2, 616, 9078, 25, 595, 12154, 12, 1092, 12, 12501, 273, 515, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 198, 11748, 616, 9...
2.985507
276
from collections import namedtuple from numbers import Real _LayoutOptions = namedtuple( '_LayoutOptions', ['width', 'height', 'top', 'right', 'bottom', 'left']) class LayoutOptions(_LayoutOptions): """ :param LayoutOptionValue width: width spec :param LayoutOptionValue height: height spec :...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 3146, 1330, 6416, 628, 198, 62, 32517, 29046, 796, 3706, 83, 29291, 7, 198, 220, 220, 220, 705, 62, 32517, 29046, 3256, 198, 220, 220, 220, 37250, 10394, 3256, 705, 17015, 3256, 705, 4852...
2.645967
1,401
from pseudo.pseudo_tree import Node class TreeTransformer: ''' visits recursively nodes of the tree with defined transform_<node_type> methods and transforms in place ''' before = None after = None whitelist = None # if a set, transform only those nodes, optimization current_class = ...
[ 6738, 24543, 13, 7752, 12003, 62, 21048, 1330, 19081, 628, 198, 4871, 12200, 8291, 16354, 25, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 11864, 664, 1834, 2280, 13760, 286, 262, 5509, 198, 220, 220, 220, 351, 5447, 6121, 62, ...
2.883117
154
import sys if __name__ == '__main__': main(*sys.argv[1:])
[ 11748, 25064, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 46491, 17597, 13, 853, 85, 58, 16, 25, 12962, 198 ]
2.2
30
import matplotlib.pyplot as plt import sklearn.metrics import networkx as nx import numpy as np import pandas as pd fontsize=16 minor_size=14
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 1341, 35720, 13, 4164, 10466, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 10331, 785...
2.803922
51
from ..classes.pareto import pareto import random def Pareto(model, objectives, objdirec, runs, GetPoints=True, tol=1e-10): """ pre: objectives = [["reac"],{"reac2":x}] post: turning points of Pareto front """ state = model.GetState() rv = pareto() model.SetObjDirec(objdirec) anchor = [] ...
[ 6738, 11485, 37724, 13, 79, 533, 1462, 1330, 279, 533, 1462, 198, 11748, 4738, 198, 198, 4299, 350, 533, 1462, 7, 19849, 11, 15221, 11, 26181, 67, 557, 66, 11, 4539, 11, 3497, 40710, 28, 17821, 11, 284, 75, 28, 16, 68, 12, 940, ...
1.757295
1,405
import json import numpy as np import pandas as pd import networkx as nx from texttable import Texttable def data_reader(input_path): """ Function to read a csv edge list and transform it to a networkx graph object. """ data = np.array(pd.read_csv(input_path)) return data def log_setup(args_in...
[ 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 3127, 87, 355, 299, 87, 198, 6738, 2420, 11487, 1330, 8255, 11487, 198, 198, 4299, 1366, 62, 46862, 7, 15414, 62, 6978, 2599, 198, 220...
2.487524
521
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.test_program_numbers import TestSaleCouponProgramNumbers from odoo.addons.website.tools import MockRequest from odoo.exceptions import UserError from odoo.tests import tagged @tagged('-at_install', 'post_ins...
[ 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 6738, 16298, 2238, 13, 39996, 13, 21378, 62, 66, 10486, 261, 13, 41989, 13, 9288, 62, 23065, 62, 77, 17024, 1330, 6208, 50, 10...
3.371134
97
import json import redis from celery import Celery import pandas as pd import math import pymysql app = Celery( 'get_key_words', backend='redis://localhost:6379/8' ) @app.task def get_key(user_api_key, api_key): """ :param user_api_key: :param api_key: :return: """ conn = pymysql.conn...
[ 11748, 33918, 198, 11748, 2266, 271, 198, 6738, 18725, 1924, 1330, 15248, 1924, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 10688, 198, 11748, 279, 4948, 893, 13976, 198, 198, 1324, 796, 15248, 1924, 7, 198, 220, 220, 220, 705, ...
1.813738
2,373
#%% [markdown] # # Matching when including the contralateral connections #%% [markdown] # ## Preliminaries #%% import datetime import os import time from pathlib import Path import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from giskard.plot import adjplot, matched_stripplot,...
[ 2, 16626, 685, 4102, 2902, 60, 198, 2, 1303, 13225, 278, 618, 1390, 262, 542, 1373, 10534, 8787, 198, 2, 16626, 685, 4102, 2902, 60, 198, 2, 22492, 28887, 320, 259, 3166, 198, 2, 16626, 198, 11748, 4818, 8079, 198, 11748, 28686, 198...
2.204571
1,750
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from dateutil.relativedelta import relativedelta from odoo import api, fields, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 3128, 22602, 1...
3.460317
63
v1 = int(input('Digite o primeiro valor: ')) v2 = int(input('Digite o segundo valor: ')) v3 = int(input('Digite o terceiro valor: ')) v4 = int(input('Digite o quarto valor: ')) v5 = int(input('Digite o quinto valor: ')) lista = (v1, v2, v3, v4, v5) print(f'O 9 apareceu {lista.count(9)} vezes.') if lista.count(3) > 0: ...
[ 85, 16, 796, 493, 7, 15414, 10786, 19511, 578, 267, 6994, 7058, 1188, 273, 25, 705, 4008, 198, 85, 17, 796, 493, 7, 15414, 10786, 19511, 578, 267, 384, 70, 41204, 1188, 273, 25, 705, 4008, 198, 85, 18, 796, 493, 7, 15414, 10786, ...
2.100806
248
import os import cv2 import paddle from tqdm import tqdm # from paddle.io import DataLoader from ppcd.datasets import DataLoader from ppcd.tools import splicing_list, save_tif # 进行滑框预测
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 39517, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 2, 422, 39517, 13, 952, 1330, 6060, 17401, 198, 6738, 9788, 10210, 13, 19608, 292, 1039, 1330, 6060, 17401, 198, 6738, 978...
2.527027
74
from models import Admin, UserProxy, Customer from db_models import db, db_session, UserDB, AppointmentsDB, InsurancePlanDB from insurance_plan import BasicHealthPlan, CancerCare, CardiacCare, BasicLifePlan, ULIPBenefits, ComboPlan if __name__ == "__main__": # Add new user new_user = add_user() # Fe...
[ 6738, 4981, 1330, 32053, 11, 11787, 44148, 11, 22092, 198, 6738, 20613, 62, 27530, 1330, 20613, 11, 20613, 62, 29891, 11, 11787, 11012, 11, 2034, 1563, 902, 11012, 11, 17541, 20854, 11012, 198, 6738, 5096, 62, 11578, 1330, 14392, 18081, ...
2.875648
193
#!/usr/bin/env python """Python-Pinboard Python script for downloading your saved stories and saved comments on Hacker News. """ __version__ = "1.1" __license__ = "BSD" __copyright__ = "Copyright 2013-2014, Luciano Fiandesio" __author__ = "Luciano Fiandesio <http://fiandes.io/> & John David Pressman <http://jdpressman...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 37906, 12, 28348, 3526, 198, 37906, 4226, 329, 22023, 534, 7448, 3923, 290, 7448, 3651, 319, 34399, 3000, 13, 198, 37811, 198, 198, 834, 9641, 834, 796, 366, 16, 13, 16, 1, 19...
2.420611
1,669
# Copyright 2020 Google LLC # # 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, ...
[ 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.123457
324
import functools import collections # ---------------------------------------------------------------------------- # Memoization/Caching # ---------------------------------------------------------------------------- class cached(object): """Last 100 value memoization for functions of any arguments""" def __in...
[ 11748, 1257, 310, 10141, 198, 11748, 17268, 198, 198, 2, 16529, 10541, 198, 2, 4942, 78, 1634, 14, 34, 8103, 198, 2, 16529, 10541, 198, 4871, 39986, 7, 15252, 2599, 198, 220, 220, 220, 37227, 5956, 1802, 1988, 16155, 1634, 329, 5499, ...
3.410628
207
import wheel import pandas as pd import nltk import numpy import sklearn as skl import pickle f = open('./mypkg/bananoulli_20k.pickle', 'rb') classifier = pickle.load(f) f.close df = pd.DataFrame(pd.read_csv('./mypkg/testingdataset.csv')) sentiment_column = (df.iloc[:, [1]]) sentiment_array = sentiment_column.value...
[ 11748, 7825, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 2528, 74, 198, 11748, 299, 32152, 198, 11748, 1341, 35720, 355, 1341, 75, 198, 11748, 2298, 293, 198, 198, 69, 796, 1280, 7, 4458, 14, 1820, 35339, 14, 3820, 272, 2...
3.384774
486
# -*- coding: utf-8 -*- from django import forms
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 1330, 5107, 198 ]
2.380952
21
""" Exceptions that are specific to the dynamodb module. """ from boto.exception import BotoServerError, BotoClientError class DynamoDBExpiredTokenError(BotoServerError): """ Raised when a DynamoDB security token expires. This is generally boto's (or the user's) notice to renew their DynamoDB security tok...
[ 37811, 198, 3109, 11755, 326, 389, 2176, 284, 262, 6382, 375, 65, 8265, 13, 198, 37811, 198, 6738, 275, 2069, 13, 1069, 4516, 1330, 347, 2069, 10697, 12331, 11, 347, 2069, 11792, 12331, 628, 198, 4871, 41542, 11012, 3109, 6474, 30642, ...
3.170616
211
# Count-Min Sketch - вероятностная структура данных для быстрого примерного подсчёта частоты встречаемости элементов import random from collections import Counter if __name__ == '__main__': data = [random.randint(0, 5) for i in range(100)] print(Counter(data)) cms = CountMinSketch(top_k=3) for i in ...
[ 2, 2764, 12, 9452, 17001, 532, 12466, 110, 16843, 21169, 15166, 40623, 20375, 22177, 15166, 21727, 20375, 22177, 16142, 40623, 220, 21727, 20375, 21169, 35072, 31583, 20375, 35072, 21169, 16142, 12466, 112, 16142, 22177, 22177, 45035, 141, 22...
1.822222
360
""" Generate spatial gratings ========================= Stimulus presentation based on gratings of different spatial frequencies for generating ERPs, high frequency oscillations, and alpha reset. Inspired from: > Hermes, Dora, K. J. Miller, B. A. Wandell, and Jonathan Winawer. "Stimulus dependence of gamma oscillati...
[ 37811, 198, 8645, 378, 21739, 14586, 654, 198, 4770, 2559, 28, 198, 198, 1273, 320, 23515, 10470, 1912, 319, 14586, 654, 286, 1180, 21739, 19998, 198, 1640, 15453, 13793, 12016, 11, 1029, 8373, 24969, 602, 11, 290, 17130, 13259, 13, 198...
2.555981
1,045
#!/usr/bin/env python # EQUAL PARTS VINEGAR AND WATER # # https://www.goodhousekeeping.com/home/cleaning/tips/a26565/cleaning-coffee-maker/ # # Fill the reservoir with equal parts vinegar and water, and place a paper filter # into the machine's empty basket. Position the pot in place, and "brew" the solution # halfway...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 46886, 1847, 29463, 4694, 569, 1268, 7156, 1503, 5357, 370, 23261, 198, 2, 198, 2, 3740, 1378, 2503, 13, 11274, 4803, 19934, 13, 785, 14, 11195, 14, 2375, 7574, 14, 41315, 14...
2.369553
1,767
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest from hmalib.common.actioner_models import Label
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 198, 11748, 555, 715, 395, 198, 6738, 289, 7617, 571, 13, 11321, 13, 2673, 263, 62, 27530, 1330, 36052, 628 ]
3.702703
37
from __future__ import print_function import tensorflow as tf import sys
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 25064, 628 ]
3.75
20
from django.shortcuts import render # Create your views here. from oosc.absence.models import Absence from oosc.absence.serializers import AbsenceSerializer from rest_framework import generics from oosc.attendance.models import Attendance from django.db.models import Count,Case,When,IntegerField,Q,Value,CharField,Text...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 267, 17500, 13, 8937, 594, 13, 27530, 1330, 13051, 594, 198, 6738, 267, 17500, 13, 8937, 594, 13, 46911, 11341, 1330, 13051, 594, 326...
3.418719
203
# References: # http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch38.html # https://github.com/PavelDoGreat/WebGL-Fluid-Simulation # https://www.bilibili.com/video/BV1ZK411H7Hc?p=4 # https://github.com/ShaneFX/GAMES201/tree/master/HW01 import argparse import numpy as np import taichi as ti ti.init(ar...
[ 2, 31458, 25, 198, 2, 2638, 1378, 16244, 263, 13, 15002, 13, 77, 21744, 13, 785, 14, 12106, 14, 28656, 14, 31197, 1018, 5232, 14, 31197, 1018, 5232, 62, 354, 2548, 13, 6494, 198, 2, 3740, 1378, 12567, 13, 785, 14, 28875, 626, 5211...
1.811634
3,610
""" AGN spectral model generation functions Copyright: Adam Hill (2020) """ import numpy as np import pandas as pd from tqdm import tqdm from scipy.interpolate import RegularGridInterpolator def merge_dict_dfs(d, common_column): """ Main purpose: - merges all the dataframes collected in the ...
[ 37811, 198, 4760, 45, 37410, 2746, 5270, 5499, 198, 15269, 25, 7244, 3327, 357, 42334, 8, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198,...
2.193013
3,492
from django.conf.urls import patterns, include, url from django.contrib import admin from tastypie.api import Api from centros.api import * from clientes.api import * from compras.api import * from contactos.api import * from cotizaciones.api import * from equipos.api import * from familias.api import * from historial...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 14854, 4464, 494, 13, 15042, 1330, 5949, 72, 198, 198, 6738, 1247, 4951, 13, 15042, 1330, 16...
2.862647
597
import pytest from pyntcloud.samplers import RandomMeshSampler @pytest.mark.parametrize("n", [ 1, 5, 10, 50, 100 ]) @pytest.mark.usefixtures("diamond") @pytest.mark.parametrize("rgb,normals", [ (False, False), (True, False), (True, True), (False, True) ]) @pytest.mark.usefixture...
[ 11748, 12972, 9288, 198, 198, 6738, 12972, 429, 17721, 13, 37687, 489, 364, 1330, 14534, 37031, 16305, 20053, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 77, 1600, 685, 198, 220, 220, 220, 352, 11, 198, 220, ...
2.089202
213
from notifications.tests.factories import SupplierEmailNotificationFactory
[ 6738, 19605, 13, 41989, 13, 22584, 1749, 1330, 8105, 2505, 15333, 3673, 2649, 22810, 628 ]
5.066667
15
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import warnings from time import time as timestamp import requests from six import string_types from urllib3.exceptions import InsecureRequestWarning from datadog_checks.checks import AgentCheck from datadog_che...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 2864, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 357, 3826, 38559, 24290, 8, 198, 11748, 14601, 198, 6738, 640, 1330, 640, 355, 4103...
3.568
125
import os from problem_3.load_data import load_data from problem_3.problem_3a import problem_3a from problem_3.problem_3b import problem_3b # Create results directory os.makedirs('results', exist_ok=True) # Problem 3a X_train, Y_train, X_test, Y_test = load_data('a') problem_3a(X_train, Y_train, X_test, Y_test) # P...
[ 11748, 28686, 198, 6738, 1917, 62, 18, 13, 2220, 62, 7890, 1330, 3440, 62, 7890, 198, 6738, 1917, 62, 18, 13, 45573, 62, 18, 64, 1330, 1917, 62, 18, 64, 198, 6738, 1917, 62, 18, 13, 45573, 62, 18, 65, 1330, 1917, 62, 18, 65, 6...
2.52381
168
import glob from setuptools import setup, find_packages try: import pypandoc long_description = pypandoc.convert("README.md", "rst") except(IOError, ImportError): long_description = open("README.md").read() setup( name="pybenzinaparse", version="0.2.2", packages=find_packages(exclude=["test_*"...
[ 11748, 15095, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 279, 4464, 392, 420, 198, 220, 220, 220, 890, 62, 11213, 796, 279, 4464, 392, 420, 13, 1102, 1851, 7203, 156...
2.534328
335
#Author: Usama Munir Sheikh #The following code implements an LSTM recurrent neural network #for classifying tweets as positive or negative #in the sentiment140 dataset http://help.sentiment140.com/for-students/ #It was written for my Intro to Deep Learning Course #taught by Professor Qiang Ji in Spring 2017 import...
[ 2, 13838, 25, 4021, 1689, 12107, 343, 30843, 198, 2, 464, 1708, 2438, 23986, 281, 406, 2257, 44, 42465, 17019, 3127, 198, 197, 2, 1640, 1398, 4035, 12665, 355, 3967, 393, 4633, 198, 197, 2, 259, 262, 15598, 15187, 27039, 2638, 1378, ...
3.464286
140
# Copyright 2021 The NetKet 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 ...
[ 2, 15069, 33448, 383, 3433, 42, 316, 46665, 532, 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, 2845, 287, 11846, ...
2.012941
850
""" Tests for state.orchestrate """ import os import pytest pytestmark = [ pytest.mark.slow_test, ] def test_orchestrate_output(salt_run_cli, salt_minion, salt_master): """ Ensure the orchestrate runner outputs useful state data. In Issue #31330, the output only contains ['outputter:', ' highsta...
[ 37811, 198, 51, 3558, 329, 1181, 13, 273, 2395, 23104, 198, 37811, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 198, 9078, 9288, 4102, 796, 685, 198, 220, 220, 220, 12972, 9288, 13, 4102, 13, 38246, 62, 9288, 11, 198, 60, 6...
2.173687
7,502
import numpy as np import pandas as pd import matplotlib.pyplot as plt # Local import weio def vel_bump(time, A=1, half=False): """ velocity bump, position goes from 0 to A between time[0] and time[-1] half is false: velocity 0 -> max -> 0 half is True: velocity 0 -> max """ time-=tim...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 2, 10714, 220, 198, 11748, 356, 952, 628, 198, 4299, 11555, 62, 65, 931, 7, 2435, 11, 317, 28, ...
1.983596
1,524
from .batch_converter import BatchConverter from .data_reader import DataReader
[ 6738, 764, 43501, 62, 1102, 332, 353, 1330, 347, 963, 3103, 332, 353, 198, 6738, 764, 7890, 62, 46862, 1330, 6060, 33634 ]
3.590909
22
import os import re import sys import time from pysqvd import SQVD ''' Simple loading script from directory structure root/<group>/workflow/panelid+version/sample/BAM+VCF+BEDGRAPH ''' if __name__ == "__main__": # grab username and password user = os.environ.get("SQVDUSER", default="admin") passwd = os.en...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 279, 893, 80, 20306, 1330, 49747, 8898, 198, 198, 7061, 6, 198, 26437, 11046, 4226, 422, 8619, 4645, 198, 15763, 14, 27, 8094, 29, 14, 1818, 11125, 14, 3533...
2.269547
486
# THIS FILE DON'T DO ANYTHING EXCEPT GIVE ME THE PROJECT PATH (i'm listening for better ideas) if __name__ == '__main__': print("DO NOTHING")
[ 2, 12680, 45811, 23917, 6, 51, 8410, 15529, 39356, 7788, 42006, 402, 9306, 11948, 3336, 21965, 23680, 46490, 357, 72, 1101, 8680, 329, 1365, 4213, 8, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 2...
2.94
50
import airsim
[ 11748, 1633, 14323, 220, 628, 220, 220, 220, 220, 198 ]
2.1
10
# Python modules import os import io import base64 import traceback import datetime import pathlib # 3rd party modules import matplotlib matplotlib.use('Agg') import numpy as np from pydicom import Dataset, FileDataset, dcmread, read_file # Our modules import vespa.interfaces.inline.vespa_inline_engine as vie impor...
[ 198, 2, 11361, 13103, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 2779, 2414, 198, 11748, 12854, 1891, 198, 11748, 4818, 8079, 198, 11748, 3108, 8019, 198, 198, 2, 513, 4372, 2151, 13103, 198, 11748, 2603, 29487, 8019, 198, 6759, ...
2.019035
6,777
# -*- coding: utf-8 -*- # # Copyright 2018 Data61, CSIRO # # 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, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 2864, 6060, 5333, 11, 9429, 43708, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345...
3.220641
281
# -*- coding: utf-8 -*- import base64 from keywordgroup import KeywordGroup from appium.webdriver.connectiontype import ConnectionType
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2779, 2414, 198, 198, 6738, 21179, 8094, 1330, 7383, 4775, 13247, 198, 6738, 598, 1505, 13, 12384, 26230, 13, 38659, 4906, 1330, 26923, 6030, 198 ]
3.4
40
import time from owlracer.env import Env as Owlracer_Env from owlracer import owlParser @owlParser if __name__ == '__main__': main_loop()
[ 11748, 640, 198, 6738, 39610, 11510, 263, 13, 24330, 1330, 2039, 85, 355, 37007, 11510, 263, 62, 4834, 85, 198, 6738, 39610, 11510, 263, 1330, 39610, 46677, 628, 198, 31, 4883, 46677, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 1...
2.754717
53
### channel configuration CHANNEL_NAME = 'ThreatWire' CHANNEL_PLAYLIST_ID = 'PLW5y1tjAOzI0Sx4UU2fncEwQ9BQLr5Vlu' ITEMS_TO_SCAN = 5 FG_YOUTUBE = 'https://www.youtube.com/channel/UC3s0BtrBJpwNDaflRSoiieQ' # channel link FG_AUTHOR = {'name':'Shannon Morse','email':'shannon@hak5.org'} ### data storage and history ITEMS...
[ 21017, 6518, 8398, 198, 198, 3398, 22846, 3698, 62, 20608, 796, 705, 817, 630, 29451, 6, 198, 3398, 22846, 3698, 62, 31519, 45849, 62, 2389, 796, 705, 6489, 54, 20, 88, 16, 83, 73, 32, 46, 89, 40, 15, 50, 87, 19, 30100, 17, 69, ...
2.311346
379
# -*- coding: utf-8 -*- ### # (C) Copyright (2012-2019) Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 21017, 198, 2, 357, 34, 8, 15069, 357, 6999, 12, 23344, 8, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, ...
2.696296
1,350
from __future__ import annotations import json import logging from contextlib import AsyncExitStack, closing from datetime import datetime, timedelta, timezone from json import JSONDecodeError from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union from uuid import UUID import sniffi...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 4732, 8019, 1330, 1081, 13361, 30337, 25896, 11, 9605, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 640, 11340, 198, 6738, 33918...
3.520833
384
#!/usr/bin/env python # coding: utf-8 """ run consensus analysis to identify overall pattern analysis method developed by T Nichols and J Mumford """ import os import sys import glob import numpy import nibabel import nilearn.plotting import nilearn.input_data import matplotlib.pyplot as plt from statsmodels.stats.mu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 5143, 11529, 3781, 284, 5911, 4045, 3912, 198, 20930, 2446, 4166, 416, 309, 38403, 290, 449, 38367, 3841, 198, 37811, 628, 198, 11748, ...
2.344937
948
"""PyTest configuration.""" from __future__ import annotations from typing import Any from _pytest.assertion import truncate truncate.DEFAULT_MAX_LINES = 40 truncate.DEFAULT_MAX_CHARS = 40 * 80
[ 37811, 20519, 14402, 8398, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 4808, 9078, 9288, 13, 30493, 295, 1330, 40122, 378, 198, 198, 2213, 19524, 378, 13, 7206, 38865, 62, 22...
3.142857
63
"""Module which extends the scenepic Mesh type.""" # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import numpy as np from ._scenepic import Mesh, MeshUpdate class VertexBuffer: """Class which provides dictionary access to vertex buffer blocks. Description: The different p...
[ 37811, 26796, 543, 14582, 262, 4408, 538, 291, 47529, 2099, 526, 15931, 198, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 47540, 1416, ...
2.661515
1,294
from django.contrib import admin from django.db import models from django import forms from bespeak_meal.models import Person, Person_category, Week_menu admin.site.register(Person, PersonAdmin) admin.site.register(Person_category, Person_categoryAdmin) admin.site.register(Week_menu, Week_menuAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 7284, 36729, 62, 28208, 13, 27530, 1330, 7755, 11, 7755, 62, 22872, 11, 6119, 62, 26272,...
3.494253
87
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='admin-home'), path('tables/', views.tables, name='tables'), path('get_tenant', views.get_tenant), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 11195, 11, 1438, 11639, 28482, 12, 11195, 33809, 198, 220, 220, 220, 3108,...
2.649351
77
#!/usr/bin/env python import sys import time import math import numpy from scipy import ndimage from pyami import imagefun from appionlib import apDisplay from appionlib.apImage import imagefile #========================= def classicradon(image, stepsize=2): """ computes Radon transform of image """ radonlist = ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 10688, 198, 11748, 299, 32152, 198, 6738, 629, 541, 88, 1330, 299, 67, 9060, 198, 6738, 12972, 6277, 1330, 2939, 12543, 198, 6738, 598, ...
2.729041
1,491
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # ua_list = [ # 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0', # ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 19230, 3504, 1574, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 3740, 1378, 31628, 13, 1416, 2416, 88, 13, 2398, 14, ...
1.940232
1,121
from ..candles_providers import CandlesProvider from ..candle_properties import CandleProperties from ..timeframes import Timeframes from .timeframe_values import TimeframeValues from .float_generator import FloatGenerator class MarketDataStorage: """ Stores historical market data that was reserved b...
[ 6738, 11485, 46188, 829, 62, 15234, 4157, 1330, 15518, 829, 29495, 201, 198, 6738, 11485, 46188, 293, 62, 48310, 1330, 44973, 2964, 18200, 201, 198, 6738, 11485, 2435, 37805, 1330, 3862, 37805, 201, 198, 6738, 764, 2435, 14535, 62, 27160,...
2.393661
978
import datetime from django.http import HttpResponseRedirect from django.utils.deprecation import MiddlewareMixin from users.models import UserSession
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 26791, 13, 10378, 8344, 341, 1330, 6046, 1574, 35608, 259, 628, 198, 6738, 2985, 13, 27530, 1330, 11787, 36044, ...
3.780488
41
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1946, 12, 7908, 383, 9485, 6173, 37, 34152, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, ...
2.136604
1,325
from setuptools import setup, find_packages config = { 'description':'fingerid-package', 'author':'Huibin Shen', 'url':'project https://github.com/icdishb/fingerid', 'author_email':'huibin.shen@aalto.fi', 'version':'1.4', 'install_requires':['nose'], 'packages':find_packages(), 'name'...
[ 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 11250, 796, 1391, 198, 220, 220, 220, 705, 11213, 10354, 6, 35461, 312, 12, 26495, 3256, 198, 220, 220, 220, 705, 9800, 10354, 6, 38202, 571, 259, 22323, ...
2.394558
147
""" Basic functions on surface meshes. """ # Author: Oualid Benkarim <oualid.benkarim@mcgill.ca> # License: BSD 3 clause import warnings import numpy as np from vtk import (vtkDataObject, vtkThreshold, vtkGeometryFilter, vtkAppendPolyData) from .array_operations import get_connected_components fro...
[ 37811, 198, 26416, 5499, 319, 4417, 48754, 13, 198, 37811, 198, 198, 2, 6434, 25, 440, 723, 312, 3932, 21070, 320, 1279, 280, 10751, 13, 11722, 21070, 320, 31, 23209, 70, 359, 13, 6888, 29, 198, 2, 13789, 25, 347, 10305, 513, 13444,...
2.478482
4,136
import psycopg2 import networkx import logging import math from datetime import datetime, timezone def log_info(msg): """ Print info log message. :params msg: message text. """ logging.info(' ' + msg) def log_debug(msg): """ Print debug log message. :params msg: message text. """...
[ 11748, 17331, 22163, 70, 17, 198, 11748, 3127, 87, 198, 11748, 18931, 198, 11748, 10688, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 628, 198, 4299, 2604, 62, 10951, 7, 19662, 2599, 198, 220, 220, 220, 37227, 198, 220, 22...
2.226607
2,458
#!/usr/bin/env python3 import sys sys.path.append(r'/home/felix/git/gym-jsbsim-eee/') #TODO: Is this a good idea? Dunno! It works! import gym import numpy as np import math import random import markov_pilot.environment.properties as prp from abc import ABC, abstractmethod from markov_pilot.environment.pr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 17597, 13, 6978, 13, 33295, 7, 81, 26488, 11195, 14, 69, 417, 844, 14, 18300, 14, 1360, 76, 12, ...
2.467406
1,442