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 # -*- coding: utf-8 -*- from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException DOCUMENTATION = ''' module: openshift_v1_build_config_list short_description: OpenShift BuildConfigList description: - Retrieve a list of build_configs. List operations provide...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 44813, 29323, 62, 11321, 1330, 4946, 33377, 2025, 82, 856, 26796, 11, 4946, ...
1.763511
54,641
import json import logging import os import inspect import urllib import urllib.request from urllib.error import HTTPError # logger logger = logging.getLogger() logger_level = logging.getLevelName(os.environ['LOGGER_LEVEL']) logger.setLevel(logger_level) # validate access # create response # download json file # e...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 10104, 198, 11748, 2956, 297, 571, 198, 11748, 2956, 297, 571, 13, 25927, 198, 6738, 2956, 297, 571, 13, 18224, 1330, 14626, 12331, 198, 198, 2, 49706, 198, 6404, 1362, 796...
3.254098
122
import math import torch import torch.nn as nn from models.neural import MultiHeadedAttention, PositionwiseFeedForward from models.rnn import LayerNormLSTM
[ 11748, 10688, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 4981, 13, 710, 1523, 1330, 15237, 13847, 276, 8086, 1463, 11, 23158, 3083, 18332, 39746, 198, 6738, 4981, 13, 81, 20471, 1330, 34398, 3539...
3.4375
48
import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import DropboxOAuth2Provider oauth_login = OAuth2LoginView.adapter_view(DropboxOAuth2Adapter) oauth_callback = OAuth2CallbackView.adapter_view(DropboxOAuth2Ada...
[ 11748, 7007, 198, 198, 6738, 477, 18439, 13, 14557, 23317, 13, 15234, 4157, 13, 12162, 1071, 17, 13, 33571, 1330, 357, 198, 220, 220, 220, 440, 30515, 17, 47307, 11, 198, 220, 220, 220, 440, 30515, 17, 47258, 7680, 11, 198, 220, 220...
2.834783
115
# SPDX-License-Identifier: MIT # pylint: disable=redefined-builtin,invalid-name """See https://www.sphinx-doc.org/en/master/usage/configuration.html""" from typing import Sequence import os import sys # region Path setup sys.path.insert(0, os.path.abspath('..')) # endregion # region Project information project = 'Upk...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 2, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 18780, 259, 11, 259, 12102, 12, 3672, 198, 37811, 6214, 3740, 1378, 2503, 13, 82, 746, 28413, 12, 15390, 13, 2398, 14, 268...
3.409382
469
import os import platform import shutil import sys from collections import Counter from collections import defaultdict, OrderedDict from os.path import join from typing import List, Dict, Set from CppHeaderParser import CppHeaderParser from CppHeaderParser.CppHeaderParser import CppMethod import generators.dependency...
[ 11748, 28686, 198, 11748, 3859, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 6738, 17268, 1330, 15034, 198, 6738, 17268, 1330, 4277, 11600, 11, 14230, 1068, 35, 713, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 6738, 19720, 1330, 7343, ...
2.551797
1,892
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # All params from IdM is stored in environment and you can get them by os.environ["paramName"] import sys, os # this is needed for importing file winrm_wrapper from parent dir sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import winrm_wrapper import codecs...
[ 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, 1439, 42287, 422, 5121, 44, 318, 8574, 287, 2858, 290, 345, 460, 651, 606, 416, 28686, 13, 268, 2268, 14692, ...
2.761628
344
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import unittest from aenum import Enum, auto from dace import registry if __name__ == '__main__': unittest.main()
[ 2, 15069, 13130, 12, 1238, 2481, 35920, 43412, 290, 262, 9637, 34, 68, 7035, 13, 1439, 2489, 10395, 13, 198, 11748, 555, 715, 395, 198, 6738, 257, 44709, 1330, 2039, 388, 11, 8295, 198, 6738, 288, 558, 1330, 20478, 628, 628, 628, 19...
3.125
64
import asyncio import logging from json import loads import pytest from aiologstash2 import create_tcp_handler logging.getLogger().setLevel(logging.DEBUG)
[ 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 33918, 1330, 15989, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 257, 72, 928, 301, 1077, 17, 1330, 2251, 62, 83, 13155, 62, 30281, 628, 198, 6404, 2667, 13, 1136, 11187, 1362, 22446, ...
3.134615
52
"""TcEx Framework Playbook module""" # standard library import base64 import json import re from collections import OrderedDict from collections.abc import Iterable def _is_tc_entity_array(self, data): """Return True if provided data has proper structure for TC Entity Array.""" for d in data: ...
[ 37811, 51, 66, 3109, 25161, 3811, 2070, 8265, 37811, 198, 2, 3210, 5888, 198, 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 302, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 17268, 13, 39305, 1330, 40806, 540, 628, 198, ...
2.233194
4,790
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # 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...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 357, 66, 8, 13130, 15127, 23929, 44680, 6234, 13, 1439, 2489, 10395, 13, 198, 2, 15069, 2864, 383, 3012, 9552, 15417, 4816, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, ...
2.487469
5,666
import datetime import json import os import xlrd import logging from io import BytesIO from xlsxwriter.workbook import Workbook from xhtml2pdf import pisa from itertools import chain from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.short...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 2124, 75, 4372, 198, 11748, 18931, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 2124, 7278, 87, 16002, 13, 1818, 2070, 1330, 5521, 2070, 198, 6738, 2124, 6494, ...
2.297855
7,460
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, ...
3.539604
202
# -*- coding: utf-8 -*- # marketanalysis # ---------------- # A fast, efficient Python library for generating country, province and state # specific sets of marketmarketholidayss on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: MichealO...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 1910, 20930, 198, 2, 220, 34400, 198, 2, 220, 317, 3049, 11, 6942, 11361, 5888, 329, 15453, 1499, 11, 8473, 290, 1181, 198, 2, 220, 2176, 5621, 286, 191...
3.103448
261
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['rosmsg'], package_dir={'': 'src'}, scripts=['scripts/rosmsg', 'scripts/rosmsg-proto', 'scripts/rossrv'], requires=['genmsg', 'rosbag', 'roslib', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 6738, 3797, 5116, 62, 35339, 13, 29412, 62, 40406, 1330, 7716, 62, 17080, 26791, 62, 40406, 198, 198, 67, 796, 7716, 62, 17080, 26791...
2.606061
132
#!/usr/bin/env python # linked_list.py - Linked list implementation in Python by Sergey 2015 """ Linked list implementation in Python """ # Standard modules import unittest import sys import os import argparse import re import random import subprocess import getpass import shutil # Additional modules ############...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 6692, 62, 4868, 13, 9078, 532, 7502, 276, 1351, 7822, 287, 11361, 416, 36106, 1853, 198, 198, 37811, 198, 11280, 276, 1351, 7822, 287, 11361, 198, 198, 37811, 198, 198, 2, 8997, 1...
4.377119
236
from devito import VectorTimeFunction, TimeFunction, NODE from devito.tools import memoized_meth from examples.seismic import PointSource from examples.seismic.viscoacoustic.operators import (ForwardOperator, AdjointOperator) def adjoint(self, rec, srca=None, va=None, pa=None, vp=None, qp=None, b=None, r=None, ...
[ 6738, 1614, 10094, 1330, 20650, 7575, 22203, 11, 3862, 22203, 11, 399, 16820, 198, 6738, 1614, 10094, 13, 31391, 1330, 16155, 1143, 62, 76, 2788, 198, 6738, 6096, 13, 325, 1042, 291, 1330, 6252, 7416, 198, 6738, 6096, 13, 325, 1042, 2...
2.109987
1,482
import pandas as pd import os from tqdm import tqdm from collections import defaultdict from mlxtend.preprocessing import TransactionEncoder from mlxtend.frequent_patterns import apriori dataPath = "data/static" itemSetList = [] if __name__ == '__main__': dataInit() loadDataSet() df = myApriori() ...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 25962, 742, 437, 13, 3866, 36948, 1330, 45389, 27195, 12342, 198, 6738, 25962, 742, 437...
2.804124
194
import os from tonclient.client import TonClient from tonclient.types import Abi, CallSet, Signer, ClientConfig, \ ParamsOfEncodeMessage, ParamsOfProcessMessage BASE_DIR = os.path.dirname(__file__) SAMPLES_DIR = os.path.join(BASE_DIR, 'samples') GIVER_ADDRESS = '0:f5c2510bfe407363cb1db6b9d7bc1184a05f8b343aeaa8281...
[ 11748, 28686, 198, 198, 6738, 5680, 16366, 13, 16366, 1330, 16859, 11792, 198, 6738, 5680, 16366, 13, 19199, 1330, 2275, 72, 11, 4889, 7248, 11, 5865, 263, 11, 20985, 16934, 11, 3467, 198, 220, 220, 220, 2547, 4105, 5189, 4834, 8189, ...
2.616822
214
from kajiki import i18n from flask import request from flask_kajiki import render_template # N. B. settting i18n.gettext would affect tests from all modules, # so we test for request path that only functions from this module could set i18n.gettext = gettext def test_does_translations(app): """Callback interface...
[ 6738, 479, 1228, 5580, 1330, 1312, 1507, 77, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 74, 1228, 5580, 1330, 8543, 62, 28243, 628, 198, 2, 399, 13, 347, 13, 2970, 889, 1312, 1507, 77, 13, 1136, 5239, 561, 2689, 5254, 422, ...
2.929293
198
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule, build_upsample_layer from mmcv.ops import Conv2d from mmcv.ops.carafe import CARAFEPack from mmcv.runner import auto_fp16, force_fp32 from torch.nn.modules.utils import _pair from mmdet.core import ma...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 8085, 33967, 13, 66, 20471, 1330, 34872, 26796, 11, 1382, 62, 4739, 1403, 62, ...
2.26298
1,483
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 201, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198, 201, ...
3.043478
46
import torch.nn as nn import torch as torch import math import torch.utils.model_zoo as model_zoo ########################################################### # # U-ResNet # U-net witih ResNet modules # # Semantic segmentation network used by MicroBooNE # to label track/shower pixels # # resnet implementation from pyto...
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 355, 28034, 198, 11748, 10688, 198, 11748, 28034, 13, 26791, 13, 19849, 62, 89, 2238, 355, 2746, 62, 89, 2238, 198, 198, 29113, 14468, 7804, 21017, 198, 2, 198, 2, 471, 12, 4...
2.978166
229
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The HuggingFace Inc. team. # # 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/licen...
[ 2, 15069, 357, 66, 8, 12131, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 15069, 2864, 383, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 11...
2.192726
3,217
# Credit to https://medium.com/emergent-future/simple-reinforcement-learning-with-tensorflow-part-0-q-learning-with-tables-and-neural-networks-d195264329d0 import gym import tensorflow as tf import numpy as np import matplotlib.pyplot as plt env = gym.make('FrozenLake-v0') # NEURAL NETWORK IMPLEMENTATION tf.reset_d...
[ 2, 10504, 284, 3740, 1378, 24132, 13, 785, 14, 368, 6422, 298, 12, 37443, 14, 36439, 12, 260, 259, 13442, 12, 40684, 12, 4480, 12, 83, 22854, 11125, 12, 3911, 12, 15, 12, 80, 12, 40684, 12, 4480, 12, 83, 2977, 12, 392, 12, 710, ...
2.200509
1,965
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ 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, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
1.960314
4,334
#!/usr/bin/env python3 ######################################################### # Written by Carl Youngblood, carl@blockscale.net # Copyright (c) 2018 Blockscale LLC # released under the MIT license ######################################################### from flask import Flask, request, Response, json, jsonify fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 29113, 14468, 7804, 2, 198, 2, 22503, 416, 8124, 6960, 18041, 11, 1097, 75, 31, 27372, 38765, 13, 3262, 198, 2, 15069, 357, 66, 8, 2864, 35111, 38765, 11419, 198, 2, 2716, ...
2.442341
581
from binaryninja import log from .utils import BinjaStruct, read_pe_header, split_bits, update_percentage # https://msdn.microsoft.com/en-us/library/ft9x1kdx.aspx RUNTIME_FUNCTION_t = BinjaStruct('<III', names = ('BeginAddress', 'EndAddress', 'UnwindData')) UNWIND_INFO_t = BinjaStruct('<BBBB', names = ('VersionAndF...
[ 6738, 13934, 35073, 6592, 1330, 2604, 198, 6738, 764, 26791, 1330, 20828, 6592, 44909, 11, 1100, 62, 431, 62, 25677, 11, 6626, 62, 9895, 11, 4296, 62, 25067, 496, 198, 198, 2, 3740, 1378, 907, 32656, 13, 40485, 13, 785, 14, 268, 12,...
2.538793
232
""" 3D visualization primitives based on Plotly. We might want to instead use a more powerful library like Open3D. Plotly however supports animations, buttons and sliders. 1) Initialize a figure with `fig = init_figure()` 2) Plot points, cameras, lines, or create a slider animation. 3) Call `fig.show()` to render the ...
[ 37811, 198, 18, 35, 32704, 2684, 20288, 1912, 319, 28114, 306, 13, 198, 1135, 1244, 765, 284, 2427, 779, 257, 517, 3665, 5888, 588, 4946, 18, 35, 13, 198, 43328, 306, 2158, 6971, 22407, 11, 12163, 290, 1017, 4157, 13, 198, 198, 16, ...
2.129195
1,192
import numpy as np GRID_SIZE = 5 def check_victory(check_grids: np.ndarray) -> set[int]: """return empty set if no victory, else set of id of the wining grids""" return set(np.where(check_grids.sum(axis=1).max(axis=1) == 5)[0]).union( np.where(check_grids.sum(axis=2).max(axis=1) == 5)[0] ) ...
[ 11748, 299, 32152, 355, 45941, 198, 198, 10761, 2389, 62, 33489, 796, 642, 628, 628, 198, 4299, 2198, 62, 32433, 652, 7, 9122, 62, 2164, 2340, 25, 45941, 13, 358, 18747, 8, 4613, 900, 58, 600, 5974, 198, 220, 220, 220, 37227, 7783, ...
2.339869
153
''' US Population Pyramid Over Time =============================== A population pyramid shows the distribution of age groups within a population. It uses a slider widget that is bound to the year to visualize the age distribution over time. ''' # category: case studies import altair as alt from altair.expr import datu...
[ 7061, 6, 198, 2937, 20133, 41450, 3827, 3862, 198, 4770, 25609, 18604, 198, 32, 3265, 27944, 2523, 262, 6082, 286, 2479, 2628, 1626, 257, 3265, 13, 198, 1026, 3544, 257, 28982, 26295, 326, 318, 5421, 284, 262, 614, 284, 38350, 262, 24...
2.697297
555
from django.db import migrations, models import django.utils.timezone import model_utils.fields
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 198, 11748, 2746, 62, 26791, 13, 25747, 628 ]
3.592593
27
from palm_tree import db # # class Logs(db.Model): # id = db.Column(db.Integer, primary_key=True) # uuid = db.Column(db.Integer) # payload = db.Column(db.Text) # datetime = db.Column(db.DateTime) # # def __init__(self, uuid, payload, datetime): # self.uuid = uuid # self.payload = p...
[ 6738, 18057, 62, 21048, 1330, 20613, 628, 198, 2, 198, 2, 1398, 5972, 82, 7, 9945, 13, 17633, 2599, 198, 2, 220, 220, 220, 220, 4686, 796, 20613, 13, 39470, 7, 9945, 13, 46541, 11, 4165, 62, 2539, 28, 17821, 8, 198, 2, 220, 220,...
2.117073
205
# Copyright 2013 Mirantis, 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 or ...
[ 2, 220, 220, 220, 15069, 2211, 7381, 20836, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, ...
2.661093
897
from ma import ma from models.johnson_scanner_data import JohnsonScannerDataModel from schemas.brand import BrandSchema from schemas.category import CategorySchema from schemas.facts_in_data import FactsInDataSchema from schemas.market import MarketSchema from schemas.period import PeriodSchema
[ 6738, 17266, 1330, 17266, 198, 6738, 4981, 13, 30686, 1559, 62, 35836, 1008, 62, 7890, 1330, 5030, 33351, 1008, 6601, 17633, 198, 6738, 3897, 5356, 13, 17938, 1330, 13512, 27054, 2611, 198, 6738, 3897, 5356, 13, 22872, 1330, 21743, 27054,...
3.75
80
#!/usr/bin/env python # coding: utf-8 # In[ ]: ################################################################################ # CSE 253: Programming Assignment 3 # Winter 2019 # Code author: Jenny Hamer (+ modifications by Tejash Desai) # # Filename: baseline_cnn.py # # Description: # # This file contains the star...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 2361, 25, 628, 198, 29113, 29113, 14468, 198, 2, 327, 5188, 32056, 25, 30297, 50144, 513, 198, 2, 10633, 13130, 198, 2, 6127, ...
3.867647
272
import json import urllib.request import credentials from datetime import datetime, timedelta api = NewsAPI(credentials.NYT_API) date_time_obj = datetime.now() api.get_nyt_last_week_articles('election', date_time_obj)
[ 11748, 33918, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 18031, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 15042, 796, 3000, 17614, 7, 66, 445, 14817, 13, 12805, 51, 62, 17614, 8, 198, 4475, 62, 2435,...
3.027778
72
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
[ 2, 15069, 13130, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 198, 2, 743, 407, 779, 428, 2393, ...
3.710383
183
from cadnano.cnproxy import UndoCommand from cadnano.strand import Strand from cadnano import getBatch import cadnano.preferences as prefs import random # end class # end class
[ 6738, 20603, 77, 5733, 13, 31522, 36436, 1330, 13794, 78, 21575, 198, 6738, 20603, 77, 5733, 13, 2536, 392, 1330, 4285, 392, 198, 6738, 20603, 77, 5733, 1330, 651, 33, 963, 198, 11748, 20603, 77, 5733, 13, 3866, 69, 4972, 355, 7694, ...
3.259259
54
from w1thermsensor import W1ThermSensor sensor = W1ThermSensor() temperature_in_celsius = sensor.get_temperature() temperature_in_fahrenheit = sensor.get_temperature(W1ThermSensor.DEGREES_F) temperature_in_all_units = sensor.get_temperatures([W1ThermSensor.DEGREES_C, W1ThermSensor.DEGREES_F, W1ThermSensor.KELVIN]) pri...
[ 6738, 266, 16, 490, 907, 22854, 1330, 370, 16, 35048, 76, 47864, 198, 198, 82, 22854, 796, 370, 16, 35048, 76, 47864, 3419, 198, 11498, 21069, 62, 259, 62, 5276, 82, 3754, 796, 12694, 13, 1136, 62, 11498, 21069, 3419, 198, 11498, 21...
2.543624
149
# Generated by Django 3.1.1 on 2020-09-01 17:04 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 2931, 12, 486, 1596, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#Copyright ReportLab Europe Ltd. 2000-2016 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/__init__.py __version__='3.3.0' __doc__='''Business charts'''
[ 2, 15269, 6358, 17822, 2031, 12052, 13, 4751, 12, 5304, 198, 2, 3826, 5964, 13, 14116, 329, 5964, 3307, 198, 2, 23569, 2638, 1378, 2503, 13, 13116, 23912, 13, 1073, 13, 2724, 14, 37157, 12, 8800, 14, 1177, 66, 14259, 13, 37157, 14, ...
2.806818
88
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
2.544177
2,705
import re import httplib2 from bs4 import BeautifulSoup from scraping.faqscrapperutil import stripExtra, removeDuplicates, removeBlackListedQuestions, getBlackListedQuestions, convertToJsonList, saveToMongo from scraping.Constants import ENABLE_CUSTOM_QUESTIONS_FILTER, FAQ_LINKS, COLLECTION_NAME ...
[ 11748, 302, 198, 11748, 1841, 489, 571, 17, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 6738, 46743, 13, 13331, 80, 1416,...
2.364341
387
"""Terminal utilities specific to message archives. Creates colored text and helps write Messages output. """ from contextlib import contextmanager import itertools import readline FG_COLORS = dict(itertools.chain( zip(("black", "red", "green", "yellow", "blue", "mage...
[ 37811, 44798, 282, 20081, 2176, 284, 3275, 22415, 13, 198, 198, 16719, 274, 16396, 2420, 290, 5419, 3551, 43534, 5072, 13, 198, 37811, 198, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 340, 861, 10141, 198, 11748, 1100, 1370, 1...
2.277555
998
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
[ 2, 15069, 12131, 532, 33448, 25000, 20185, 42727, 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...
2.393909
985
from staticfg import CFGBuilder userCfg = CFGBuilder().build_from_file('user.py', './auction/user.py') bidCfg = CFGBuilder().build_from_file('bid.py', './auction/bid.py') auctionCfg = CFGBuilder().build_from_file('auction.py','./auction/auction.py') #auctionEventCfg = CFGBuilder().build_from_file('auction_event.py','...
[ 6738, 9037, 40616, 1330, 18551, 4579, 3547, 263, 198, 198, 7220, 34, 40616, 796, 18551, 4579, 3547, 263, 22446, 11249, 62, 6738, 62, 7753, 10786, 7220, 13, 9078, 3256, 705, 19571, 559, 596, 14, 7220, 13, 9078, 11537, 198, 14065, 34, 4...
2.497462
197
total_budget = 0 while True: destination = input() if destination == "End": break minimal_budget = float(input()) while True: command = input() if command == "End": break money = float(command) total_budget += money if total_budge...
[ 23350, 62, 37315, 796, 657, 201, 198, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, 220, 10965, 796, 5128, 3419, 201, 198, 220, 220, 220, 611, 10965, 6624, 366, 12915, 1298, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 201, ...
2.075829
211
from footmark.regioninfo import RegionInfo
[ 6738, 2366, 4102, 13, 36996, 10951, 1330, 17718, 12360, 628 ]
4.4
10
from __future__ import absolute_import, division, print_function import os import json from glue.core import Subset DISPATCH = {} def save_page(page, page_number, label, subset): """ Convert a tab of a glue session into a D3PO page :param page: Tuple of data viewers to save :param label: Tab label ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 6738, 22749, 13, 7295, 1330, 3834, 2617, 628, 198, 26288, 47, 11417, 796, 23884, 628, 198, 4299, 3613, ...
2.368608
3,657
print('Crie sua P.A. de 10 termos') n1 = int(input('Digite o primeiro termo da P.A.: ')) r = int(input('Digite a razo: ')) termo = n1 c = 1 print('A P.A. (', end='') while c <= 10: print('{}'.format(termo), end='') print(', ' if c < 10 else '', end='') termo += r c += 1 print(')')
[ 4798, 10786, 34, 5034, 424, 64, 350, 13, 32, 13, 390, 838, 3381, 418, 11537, 198, 198, 77, 16, 796, 493, 7, 15414, 10786, 19511, 578, 267, 6994, 7058, 3381, 78, 12379, 350, 13, 32, 11207, 705, 4008, 198, 81, 796, 493, 7, 15414, ...
2.119718
142
from __future__ import unicode_literals import codecs import logging try: from http.client import HTTPConnection, HTTPSConnection except ImportError: # pylint: disable=import-error from httplib import HTTPConnection, HTTPSConnection try: from urllib.parse import urlparse except ImportError: # py...
[ 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 40481, 82, 198, 11748, 18931, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 2638, 13, 16366, 1330, 14626, 32048, 11, 38288, 32048, 198, 16341, 17267, 1233...
3.015544
193
price = float(input()) puzzles = int(input()) dolls = int(input()) bears = int(input()) minions = int(input()) trucks = int(input()) total_toys = puzzles + dolls + bears + minions + trucks price_puzzles = puzzles * 2.6 price_dolls = dolls * 3 price_bears = bears * 4.1 price_minions = minions * 8.2 pric...
[ 20888, 796, 12178, 7, 15414, 28955, 201, 198, 201, 198, 79, 4715, 829, 796, 493, 7, 15414, 28955, 201, 198, 67, 33421, 796, 493, 7, 15414, 28955, 201, 198, 65, 4127, 796, 493, 7, 15414, 28955, 201, 198, 1084, 507, 796, 493, 7, 154...
2.473154
298
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # -*- encoding: utf-8 -*- # # 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 # # Un...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
3.054475
257
import datetime from flask_wtf import FlaskForm from wtforms import ( StringField, TextAreaField, DateTimeField, HiddenField, PasswordField, ) from wtforms.validators import DataRequired, ValidationError, Email, EqualTo
[ 11748, 4818, 8079, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 357, 198, 220, 220, 220, 10903, 15878, 11, 198, 220, 220, 220, 8255, 30547, 15878, 11, 198, 220, 220, 220, 7536, 7575, 15878, 11, ...
3.012346
81
# -*- coding: utf-8 -*- """Proiect.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1TR1Frf0EX4PtFZkLlVdGtMTINqhoQwRw """ # Importarea librariilor import numpy as np import pandas as pd # pandas pentru citirea fisierelor from sklearn import prepr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 2964, 72, 478, 13, 541, 2047, 65, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, 220, 3740, 1378,...
2.858351
946
from .logger import Logger from .logger_supervised import LoggerSupervised
[ 6738, 764, 6404, 1362, 1330, 5972, 1362, 198, 6738, 764, 6404, 1362, 62, 16668, 16149, 1330, 5972, 1362, 12442, 16149, 198 ]
3.571429
21
from __future__ import annotations import collections import inspect from dataclasses import dataclass from enum import Enum from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union from flytekit.common import constants as _common_constants from flytekit.common.exceptions.user import FlyteValidation...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 17268, 198, 11748, 10104, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 360, 713, 11, 7343...
2.592108
11,150
# Copyright (c) 2021, NVIDIA CORPORATION. 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, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 220, 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.423562
3,565
import numpy as np import math from dataset_specifications.dataset import Dataset
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 198, 6738, 27039, 62, 16684, 6637, 13, 19608, 292, 316, 1330, 16092, 292, 316, 628, 198 ]
3.4
25
#!/usr/bin/env python import time from package.oss.cov_json import get_json_report from package.oss.init import initialization from package.tool.summarize_jsons import summarize_jsons from package.util.setting import TestPlatform if __name__ == "__main__": report_coverage()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 640, 198, 198, 6738, 5301, 13, 793, 13, 66, 709, 62, 17752, 1330, 651, 62, 17752, 62, 13116, 198, 6738, 5301, 13, 793, 13, 15003, 1330, 37588, 198, 6738, 5301, 13, 25981, 13, ...
3.252874
87
import numpy as np from sklearn.linear_model import LogisticRegression from .models import User from .twitter import vectorize_tweet def predict_user(user1_name, user2_name, tweet_text): """ Determine and return which user is more likely to say a given Tweet. Example: predict_user('ausen', 'elonmusk'...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 5972, 2569, 8081, 2234, 198, 6738, 764, 27530, 1330, 11787, 198, 6738, 764, 6956, 1330, 15879, 1096, 62, 83, 7277, 628, 198, 4299, 4331, 62, 7220, 7, 7...
2.477958
431
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of groupthink. # https://github.com/emanuelfeld/groupthink # This project is in the public domain within the United States. # Additionally, the Government of the District of Columbia waives # copyright and related rights in the work worldwide through t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 318, 636, 286, 1448, 14925, 13, 198, 2, 3740, 1378, 12567, 13, 785, 14, 8463, 2731, 16265, 14, 8...
3.398305
118
# sys import os import sys import numpy as np import random import pickle import json # torch import torch import torch.nn as nn from torchvision import datasets, transforms # operation from . import tools
[ 2, 25064, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 2298, 293, 198, 11748, 33918, 198, 2, 28034, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 280...
3.714286
56
# Generated by Django 4.0.2 on 2022-03-02 03:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 3070, 12, 2999, 7643, 25, 1959, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
import os import subprocess import time import grpc import tests.rpc.proto.schema_registry_pb2 as pb2 import tests.rpc.proto.schema_registry_pb2_grpc as pb2_grpc from tests.common.postgres import PostgresConfig EXE = os.getenv('SCHEMA_REGISTRY_EXE') or 'schema-registry'
[ 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 640, 198, 198, 11748, 1036, 14751, 198, 11748, 5254, 13, 81, 14751, 13, 1676, 1462, 13, 15952, 2611, 62, 2301, 4592, 62, 40842, 17, 355, 279, 65, 17, 198, 11748, 5254, 13, 81, 14751, ...
2.584906
106
""" When a routing policy is set with an empty condition, it should be loaded correctly and should route all the requests to a correct backend. """ from urllib.parse import urlparse import pytest from packaging.version import Version # noqa # pylint: disable=unused-import from testsuite import TESTED_VERSION, rawobj ...
[ 37811, 198, 2215, 257, 28166, 2450, 318, 900, 351, 281, 6565, 4006, 11, 340, 815, 307, 9639, 9380, 290, 815, 6339, 477, 198, 1169, 7007, 284, 257, 3376, 30203, 13, 198, 37811, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, ...
3.145897
329
# Copyright (c) 2014 Mirantis 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 or agreed to in writ...
[ 2, 15069, 357, 66, 8, 1946, 7381, 20836, 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, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
3.190141
284
import os import time from selenium.webdriver.support.select import Select from Data.parameters import Data from get_dir import pwd from reuse_func import GetData
[ 11748, 28686, 198, 11748, 640, 198, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 19738, 1330, 9683, 198, 198, 6738, 6060, 13, 17143, 7307, 1330, 6060, 198, 6738, 651, 62, 15908, 1330, 279, 16993, 198, 6738, 32349, 62, ...
3.574468
47
import contextlib import ctypes import json import os import shutil import struct import subprocess import sys import tempfile from datetime import datetime, timedelta, timezone from enum import Enum, auto from hashlib import pbkdf2_hmac from .aes import ( aes_cbc_decrypt_bytes, aes_gcm_decrypt_and_verify_byte...
[ 11748, 4732, 8019, 198, 11748, 269, 19199, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 2878, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 288...
2.44234
3,538
import os import pytest from hgtools import managers def touch(filename): with open(filename, 'a'): pass
[ 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 289, 13655, 10141, 1330, 11663, 628, 628, 628, 198, 4299, 3638, 7, 34345, 2599, 198, 220, 220, 220, 351, 1280, 7, 34345, 11, 705, 64, 6, 2599, 198, 220, 220, 220, 220, 220,...
2.659574
47
#coding:utf8 ''' Created on 2013-8-21 @author: lan (www.9miao.com) ''' import itertools import datetime def safeunicode(obj, encoding='utf-8'): r""" Converts any given object to unicode string. >>> safeunicode('hello') u'hello' >>> safeunicode(2) u'2' >>> safeunic...
[ 2, 66, 7656, 25, 40477, 23, 198, 7061, 6, 198, 41972, 319, 2211, 12, 23, 12, 2481, 198, 198, 31, 9800, 25, 26992, 357, 2503, 13, 24, 76, 13481, 13, 785, 8, 198, 7061, 6, 198, 11748, 340, 861, 10141, 198, 11748, 4818, 8079, 628, ...
1.964053
3,227
""" Django settings for dddppp project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
[ 37811, 198, 35, 73, 14208, 6460, 329, 288, 1860, 381, 79, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 352, 13, 23, 13, 17, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, ...
2.267116
1,928
#!/usr/bin/env python from setuptools import setup import os __doc__ = """ Command line tool and library wrappers around iwlist and /etc/network/interfaces. """ install_requires = [ 'setuptools', 'pbkdf2', ] try: import argparse except: install_requires.append('argparse') version = '1.0.0' setup( ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 28686, 198, 198, 834, 15390, 834, 796, 37227, 198, 21575, 1627, 2891, 290, 5888, 7917, 11799, 1088, 1312, 86, 4868, 290, 198, 14, 14784, ...
2.479303
459
# Copyright 2019 Province of British Columbia # # 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 agre...
[ 2, 15069, 220, 13130, 22783, 286, 3517, 9309, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 705, 34156, 24036, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
3.698276
348
import logging from collections import Counter from django.core.management.base import BaseCommand from django.db.models import Q from TWLight.applications.models import Application from TWLight.resources.models import Partner from TWLight.applications.signals import Reminder from TWLight.users.models import Editor l...
[ 11748, 18931, 198, 6738, 17268, 1330, 15034, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 198, 6738, 17306, 15047, 13, 1324, 677, 602, 13, 2753...
3.83871
93
# pvtrace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # pvtrace is distributed in the hope that it will be useful, # but WITHOUT...
[ 2, 279, 85, 40546, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 355, 3199, 416, 198, 2, 262, 3232, 10442, 5693, 26, 2035, 2196, 513, 286, 26...
3.815261
249
"""Embedded DSL for assembling logic circuits. Embedded domain-specific combinator library for assembling abstract definitions of logic circuits and synthesizing circuits from those definitions. """ from __future__ import annotations from typing import Sequence import doctest from parts import parts from circuit impo...
[ 37811, 31567, 47238, 32643, 329, 40525, 9156, 24907, 13, 198, 198, 31567, 47238, 7386, 12, 11423, 1974, 20900, 5888, 329, 198, 34455, 1359, 12531, 17336, 286, 9156, 24907, 198, 392, 24983, 2890, 24907, 422, 883, 17336, 13, 198, 37811, 198...
1.908203
17,822
import discord import random from datetime import datetime import pandas as pd import matplotlib.pyplot as plt import csv
[ 11748, 36446, 201, 198, 11748, 4738, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748, 269, 21370, 201, 198, 20...
3.023256
43
#!/usr/bin/env python3 import os from setuptools import setup setup( name="fastnode2vec", version="0.0.5", author="Louis Abraham", license="MIT", author_email="louis.abraham@yahoo.fr", description="Fast implementation of node2vec", long_description=read("README.md"), long_description...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 7217, 17440, 17, 35138, 1600, 198, 220, 220, 220, 2196, 2625, ...
2.696154
260
import os basedir = os.path.abspath(os.path.dirname(__file__)) config_by_name = dict( dev=DevelopmentConfig, test=TestingConfig, prod=ProductionConfig ) key = Config.SECRET_KEY
[ 11748, 28686, 198, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 628, 628, 198, 198, 11250, 62, 1525, 62, 3672, 796, 8633, 7, 198, 220, 220, 220, 1614, 28, ...
2.545455
77
#!/usr/bin/env python import pwd from ansible.module_utils.basic import AnsibleModule if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 279, 16993, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 35487, 1330, 28038, 856, 26796, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220...
2.73913
46
"""Methods for working with ontologies and the OLS.""" from urllib.parse import quote_plus import requests OLS_API_ROOT = "http://www.ebi.ac.uk/ols/api" # Curie means something like CL:0000001 def _ontology_name(curie): """Get the name of the ontology from the curie, CL or UBERON for example.""" return cur...
[ 37811, 46202, 329, 1762, 351, 39585, 5823, 290, 262, 440, 6561, 526, 15931, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 62, 9541, 198, 198, 11748, 7007, 198, 198, 3535, 50, 62, 17614, 62, 13252, 2394, 796, 366, 4023, 1378, 2503,...
2.658489
1,019
# Copyright (c) 2020, DjaoDjin inc. # 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 t...
[ 2, 15069, 357, 66, 8, 12131, 11, 19307, 5488, 35, 18594, 753, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 32...
3.503448
580
from __future__ import print_function import httplib2 import os import sys import pickle from apiclient import discovery from apiclient import errors from oauth2client import client from oauth2client import tools from oauth2client.file import Storage try: import argparse flags = argparse.ArgumentParser(parents...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 1841, 489, 571, 17, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 2298, 293, 198, 198, 6738, 2471, 291, 75, 1153, 1330, 9412, 198, 6738, 2471, 291, 75, 1153, 1330, 85...
2.94148
581
import numpy as np import sys ## ROCKSTAR ## halostruct1 = np.dtype([('id',np.int64), ('pos',np.float32,(6,)), ('corevel',np.float32,(3,)), ('bulkvel',np.float32,(3,)), ('m',np.float32), ('r',np.floa...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 198, 2235, 41320, 46678, 22492, 198, 14201, 455, 1356, 16, 796, 45941, 13, 67, 4906, 26933, 10786, 312, 3256, 37659, 13, 600, 2414, 828, 198, 220, 220, 220, 220, 220, 220, 220, 22...
1.367942
4,941
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ics2entropiawiki Read an ics file with the entropia events and insert them in to the entropia homepage wiki. Example: $ ics2entropiawiki.py --config /etc/ics2entropiawiki/config.ini Inserts events not in the past to the "Termine" Wiki page and appends past ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 873, 17, 298, 1773, 544, 15466, 198, 198, 5569, 281, 220, 873, 2393, 351, 262, 920, 1773, 544, 2995, ...
2.181761
3,158
#!/bin/python3 import math import os import random import re import sys # Complete the rotLeft function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') nd = input().split() n = int(nd[0]) d = int(nd[1]) a = list(map(int, input().rstrip().split(...
[ 2, 48443, 8800, 14, 29412, 18, 201, 198, 201, 198, 11748, 10688, 201, 198, 11748, 28686, 201, 198, 11748, 4738, 201, 198, 11748, 302, 201, 198, 11748, 25064, 201, 198, 201, 198, 2, 13248, 262, 5724, 18819, 2163, 2174, 13, 201, 198, ...
2.109524
210
import os import cflearn import platform import unittest from cfdata.tabular import TabularDataset num_jobs = 0 if platform.system() == "Linux" else 2 logging_folder = "__test_zoo__" if __name__ == "__main__": unittest.main()
[ 11748, 28686, 198, 11748, 269, 27919, 1501, 198, 11748, 3859, 198, 11748, 555, 715, 395, 198, 198, 6738, 30218, 7890, 13, 8658, 934, 1330, 16904, 934, 27354, 292, 316, 198, 198, 22510, 62, 43863, 796, 657, 611, 3859, 13, 10057, 3419, ...
2.764706
85
# # Data Structures: Linked List Merge Sort: The Conquer Step # Python Techdegree # # Created by Dulio Denis on 3/24/19. # Copyright (c) 2019 ddApps. All rights reserved. # ------------------------------------------------ from linked_list import Node, LinkedList def merge_sort(linked_list): ''' Sorts a lin...
[ 2, 198, 2, 220, 6060, 32112, 942, 25, 7502, 276, 7343, 39407, 33947, 25, 383, 40963, 5012, 198, 2, 220, 11361, 9634, 16863, 198, 2, 198, 2, 220, 15622, 416, 42148, 952, 33089, 319, 513, 14, 1731, 14, 1129, 13, 198, 2, 220, 15069, ...
2.495088
1,527
# -*- coding: utf-8 -*- # Copyright (c) 2013 Ole Krause-Sparmann # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 2211, 30093, 21553, 1904, 12, 50, 1845, 9038, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 2...
3.716667
360
from discord.ext import commands, tasks # Bot Commands Framework import traceback # import os import discord import r TOKEN = os.environ['DISCORD_BOT_TOKEN'] prefix = os.environ['DISCORD_BOT_PREFIX'] # # INITIAL_EXTENSIONS = [ 'cogs.eval', 'cogs.glchat', 'cogs.gladd', 'cogs.gldel' ] # ClientBot ...
[ 6738, 36446, 13, 2302, 1330, 9729, 11, 8861, 1303, 18579, 49505, 25161, 198, 11748, 12854, 1891, 1303, 220, 198, 11748, 28686, 198, 11748, 36446, 198, 11748, 374, 198, 198, 10468, 43959, 796, 28686, 13, 268, 2268, 17816, 26288, 34, 12532,...
2.392157
204
""" ================================================================= Spectral Unmixing ================================================================= Suhas Somnath, Rama K. Vasudevan, Stephen Jesse * Institute for Functional Imaging of Materials * Center for Nanophase Materials Sciences Oak Ridge National Labora...
[ 37811, 198, 23926, 28, 198, 49738, 1373, 791, 19816, 278, 198, 23926, 28, 198, 198, 5606, 10134, 9995, 77, 776, 11, 371, 1689, 509, 13, 23663, 463, 1990, 272, 11, 7970, 18033, 198, 198, 9, 5136, 329, 44224, 48656, 286, 24310, 198, 9...
3.448859
2,718
import shutil from pathlib import Path from unittest import TestCase from unittest.mock import Mock from unittest.mock import patch from foliant.config.downloadfile import download_file from foliant.config.downloadfile import get_file_ext_from_url from foliant.config.downloadfile import get_file_name_from_url
[ 11748, 4423, 346, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 5955, 301...
3.434783
92
import discord client = discord.Client() # # # # id # Text # 0 def getTargetChannelId() -> int: # () target_channel = {'id': 0, 'position': 99999999} # *********************************************************** # () category_id = 711238137598181396 # id target_category_name = clien...
[ 11748, 36446, 198, 198, 16366, 796, 36446, 13, 11792, 3419, 220, 1303, 220, 628, 198, 2, 220, 628, 198, 2, 220, 628, 198, 2, 4686, 198, 2, 8255, 198, 2, 657, 198, 4299, 651, 21745, 29239, 7390, 3419, 4613, 493, 25, 198, 220, 220, ...
2.515464
388
import matplotlib.pyplot as plt import numpy as np from fears.utils import results_manager, plotter, dir_manager import os suffix = '07212021_0001' data_folder = 'results_' + suffix exp_info_file = 'experiment_info_' + suffix + '.p' exp_folders,exp_info = results_manager.get_experiment_results(data_folder, ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10251, 13, 26791, 1330, 2482, 62, 37153, 11, 7110, 353, 11, 26672, 62, 37153, 198, 11748, 28686, 198, 198, 37333, 844, 796, 705, 2...
1.505858
2,902
from __future__ import absolute_import import types from collections import defaultdict from rpython.tool.ansi_print import AnsiLogger from rpython.tool.pairtype import pair from rpython.tool.error import (format_blocked_annotation_error, gather_error, source_lines) from rpython.flowspace...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 3858, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 374, 29412, 13, 25981, 13, 504, 72, 62, 4798, 1330, 1052, 13396, 11187, 1362, 198, 6738, 374, 29412, 13, 25981, ...
3.325792
221
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
5.971963
107
import abc from utils import LogMixin
[ 11748, 450, 66, 198, 6738, 3384, 4487, 1330, 5972, 35608, 259, 628, 198 ]
3.076923
13
load("//python:compile.bzl", "py_proto_compile", "py_grpc_compile") load("@grpc_py_deps//:requirements.bzl", "all_requirements")
[ 2220, 7203, 1003, 29412, 25, 5589, 576, 13, 65, 48274, 1600, 366, 9078, 62, 1676, 1462, 62, 5589, 576, 1600, 366, 9078, 62, 2164, 14751, 62, 5589, 576, 4943, 198, 2220, 7203, 31, 2164, 14751, 62, 9078, 62, 10378, 82, 1003, 25, 8897,...
2.37037
54