content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import from collections import deque import bkt from bkt import dotnet Drawing = dotnet.import_drawing() from . import helpers as pplib def button_get_label(self, index): try: ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 41972, 319, 7816, 13, 1157, 13, 5539, 198, 198, 31, 9800, 25, 277, 32989, 9038, 198, 7061, 6, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, ...
2.071746
1,575
from __future__ import annotations import warnings from typing import Any, Dict, List, Optional, Set, Tuple, Union, TYPE_CHECKING from .cache import property_immutable_cache, property_mutable_cache from .constants import ( transforming, IS_STRUCTURE, IS_LIGHT, IS_ARMORED, IS_BIOLOGICAL, IS_MECH...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 14601, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 11, 5345, 11, 309, 29291, 11, 4479, 11, 41876, 62, 50084, 2751, 198, 198, 6738, 764, 23870, 1330, 3119, 62, 8608...
2.53898
3,707
from .load import load_data, NUTRI_COLS, load_clean_rel_to_nutri
[ 6738, 764, 2220, 1330, 3440, 62, 7890, 11, 399, 3843, 7112, 62, 25154, 50, 11, 3440, 62, 27773, 62, 2411, 62, 1462, 62, 14930, 380, 198 ]
2.5
26
# from .noise_gen import CGMNoiseGenerator from .noise_gen import CGMNoise import pandas as pd import logging logger = logging.getLogger(__name__) if __name__ == '__main__': pass
[ 2, 422, 764, 3919, 786, 62, 5235, 1330, 327, 15548, 2949, 786, 8645, 1352, 198, 6738, 764, 3919, 786, 62, 5235, 1330, 327, 15548, 2949, 786, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, ...
2.671429
70
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 42334, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
3.47619
63
#!/usr/bin/env python # # Copyright 2012-2016 VMware, 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 220, 2321, 12, 5304, 37754, 11, 3457, 13, 220, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 13789, 177...
3.237154
506
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.405488
1,312
from abc import ABCMeta, abstractmethod import numpy as np
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 11748, 299, 32152, 355, 45941, 628, 628 ]
3.647059
17
# # @lc app=leetcode id=290 lang=python3 # # [290] Word Pattern # # https://leetcode.com/problems/word-pattern/description/ # # algorithms # Easy (35.86%) # Likes: 825 # Dislikes: 113 # Total Accepted: 164K # Total Submissions: 455.9K # Testcase Example: '"abba"\n"dog cat cat dog"' # # Given a pattern and a stri...
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 24369, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 24369, 60, 9678, 23939, 198, 2, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 4775, 12, 33279, 14, ...
2.833333
378
from torch import nn
[ 6738, 28034, 1330, 299, 77, 628, 198 ]
3.285714
7
import unittest from musket_core import coders import numpy as np import pandas as pd import os import math fl=__file__ fl=os.path.dirname(fl)
[ 11748, 555, 715, 395, 201, 198, 6738, 1928, 7126, 62, 7295, 1330, 14873, 364, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 28686, 201, 198, 11748, 10688, 201, 198, 201, 198, 2704...
2.483871
62
#!/usr/bin/env python3 import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import scripts.lib.setup_path_on_import if __name__ == "__main__": if 'posix' in os.name and os.geteuid() == 0: print("manage.py should not be run as root. Use `su zulip` to drop ro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 17597,...
2.472464
690
import json, requests from bs4 import BeautifulSoup if __name__ == '__main__': """ This scripts fetches the contents of a webpage that contains nicely formatted data about the Z80 opcodes and outputs it to JSON. """ page = fetch() if page is not None: opcodes = parse_tables(page) with open...
[ 11748, 33918, 11, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 37227, 198, 220, 770, 14750, 11351, 2052, 262, 10154, 286, 257, 35699, 326...
3.022901
131
from ..dojo_test_case import DojoTestCase from dojo.models import Test from dojo.tools.intsights.parser import IntSightsParser
[ 6738, 11485, 4598, 7639, 62, 9288, 62, 7442, 1330, 2141, 7639, 14402, 20448, 198, 6738, 466, 7639, 13, 27530, 1330, 6208, 198, 6738, 466, 7639, 13, 31391, 13, 29503, 2337, 13, 48610, 1330, 2558, 50, 2337, 46677, 628 ]
3.368421
38
#!/usr/bin/env python # Copyright 2013-present Barefoot Networks, Inc. # Copyright 2018 VMware, 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/LIC...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 2211, 12, 25579, 38234, 5898, 27862, 11, 3457, 13, 198, 2, 15069, 2864, 37754, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1...
2.65873
1,512
cycle = True heap = Heap() while cycle: try: line = input() cmd = line.split(' ', 2) try: if len(cmd) == 1 and cmd[0] == '': continue if len(cmd) == 2 and cmd[0] == '' and cmd[1] == '': continue if cmd[0] == 'add': ...
[ 198, 198, 13696, 796, 6407, 198, 258, 499, 796, 679, 499, 3419, 198, 198, 4514, 6772, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 5128, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 23991, ...
1.656598
629
from __future__ import unicode_literals try: from unittest.mock import patch except ImportError: from mock import patch from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.urls import reverse from rest_framework.t...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 15290, 1330, 8529, 198, 198, 67...
3.490909
165
''' @file momentum_kinematics_optimizer.py @package momentumopt @author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de) @license License BSD-3-Clause @copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft. @date 2019-10-08 ''' import os import numpy as np from momentumopt.kinoptpy.qp import...
[ 7061, 6, 198, 31, 7753, 12858, 62, 5116, 368, 23372, 62, 40085, 7509, 13, 9078, 198, 31, 26495, 12858, 8738, 198, 31, 9800, 36415, 323, 321, 26345, 261, 357, 65, 11392, 323, 321, 13, 79, 756, 261, 31, 83, 518, 4623, 268, 13, 3149,...
2.934307
274
import logging from gullveig import bootstrap_default_logger # Configure default logging _configure_default_web_logger()
[ 11748, 18931, 198, 198, 6738, 43289, 303, 328, 1330, 6297, 26418, 62, 12286, 62, 6404, 1362, 628, 198, 2, 17056, 495, 4277, 18931, 628, 198, 62, 11250, 495, 62, 12286, 62, 12384, 62, 6404, 1362, 3419, 198 ]
3.405405
37
import json import urllib import os import jupyterhub from tornado.httpclient import HTTPRequest, AsyncHTTPClient from traitlets import Unicode from jupyterhub.auth import Authenticator from tornado import gen
[ 11748, 33918, 198, 11748, 2956, 297, 571, 198, 11748, 28686, 198, 11748, 474, 929, 88, 353, 40140, 198, 6738, 33718, 13, 4023, 16366, 1330, 14626, 18453, 11, 1081, 13361, 40717, 11792, 198, 6738, 1291, 2578, 912, 1330, 34371, 198, 6738, ...
3.719298
57
import torch import torch.nn as nn import numpy as np import matplotlib.pyplot as plt # NOT -> ParameterModule # NOT -> children_and_parameters # NOT -> flatten_model # NOT -> lr_range # NOT -> scheduling functions # NOT -> SmoothenValue # YES -> lr_find # NOT -> plot_lr_find # NOT TO BE MODIFIED # NOT TO BE MODIFI...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 5626, 4613, 25139, 2357, 26796, 198, 2, 5626, 4613, 1751, 62, 392...
2.349915
3,518
""" Test the lldb disassemble command on each call frame when stopped on C's ctor. """ from __future__ import print_function import os import time import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil
[ 37811, 198, 14402, 262, 32660, 9945, 595, 292, 15140, 3141, 319, 1123, 869, 5739, 618, 5025, 319, 327, 338, 269, 13165, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 628, 198, 11748, 28686, 198, 11748, 640, ...
3.077778
90
''' All the reserved, individual words used in MAlice. ''' A = "a" ALICE = "Alice" AND = "and" ATE = "ate" BECAME = "became" BECAUSE = "because" BUT = "but" CLOSED = "closed" COMMA = "," CONTAINED = "contained" DOT = "." DRANK = "drank" EITHER = "either" ENOUGH = "enough" EVENTUALLY = "eventually" FOUND = "found" H...
[ 7061, 6, 198, 220, 220, 1439, 262, 10395, 11, 1981, 2456, 973, 287, 337, 44484, 13, 198, 7061, 6, 198, 198, 32, 796, 366, 64, 1, 198, 1847, 8476, 796, 366, 44484, 1, 198, 6981, 796, 366, 392, 1, 198, 6158, 796, 366, 378, 1, 19...
2.158607
517
# !/usr/bin/env python3 # Author: C.K # Email: theck17@163.com # DateTime:2021-04-12 18:35:15 # Description: import os import sys if __name__ == "__main__": pass
[ 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 6434, 25, 327, 13, 42, 198, 2, 9570, 25, 262, 694, 1558, 31, 24136, 13, 785, 198, 2, 7536, 7575, 25, 1238, 2481, 12, 3023, 12, 1065, 1248, 25, 2327, 25, 1314, 198, 2,...
2.297297
74
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from pymortests.base import runmodule if __name__ == "__main__": runmodule(filename=__file__...
[ 2, 770, 2393, 318, 636, 286, 262, 12972, 44, 1581, 1628, 357, 4023, 1378, 2503, 13, 9078, 4491, 13, 2398, 737, 198, 2, 15069, 2211, 12, 42334, 12972, 44, 1581, 6505, 290, 20420, 13, 1439, 2489, 10395, 13, 198, 2, 13789, 25, 347, 1...
3.066667
105
from ..utils import SyncClient, __version__ from .bucket import SyncStorageBucketAPI from .file_api import SyncBucketProxy __all__ = [ "SyncStorageClient", ]
[ 6738, 11485, 26791, 1330, 35908, 11792, 11, 11593, 9641, 834, 198, 6738, 764, 27041, 316, 1330, 35908, 31425, 33, 38811, 17614, 198, 6738, 764, 7753, 62, 15042, 1330, 35908, 33, 38811, 44148, 198, 198, 834, 439, 834, 796, 685, 198, 220,...
3.215686
51
# The MIT License # # Copyright 2014, 2015 Piotr Dabkowski # # 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, modif...
[ 2, 383, 17168, 13789, 198, 2, 198, 2, 15069, 1946, 11, 1853, 350, 5151, 81, 360, 397, 26216, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 198, 2, 257, 4866, 286, 428, 3788, 290, 3...
3.427734
512
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2020, Sandflow Consulting LLC # # 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, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 12131, 11, 3837, 11125, 41005, 11419, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, ...
3.28937
508
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 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, 198, 2, 5964, 1321...
5.354167
96
import torch def expanded_pairwise_distances(x, y): ''' Input: x is a bxNxd matrix y is an optional bxMxd matirx Output: dist is a bxNxM matrix where dist[i,j] is the square norm between x[i,:] and y[j,:] if y is not given then use 'y=x'. i.e. dist[i,j] = ||x[i,:]-y[j,:]||^2 ...
[ 11748, 28034, 198, 198, 4299, 9902, 62, 24874, 3083, 62, 17080, 1817, 7, 87, 11, 331, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 23412, 25, 2124, 318, 257, 275, 87, 45, 24954, 17593, 198, 220, 220, 220, 220, 220, 220...
1.917582
910
from __future__ import absolute_import from __future__ import print_function from __future__ import division from __future__ import unicode_literals from django.http import HttpResponse, HttpResponseRedirect, JsonResponse, QueryDict #, HttpResponseForbidden, Http404, , JsonResponse from django.shortcuts import get_obj...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, ...
3.527197
239
#!/usr/bin/env python3 # coding: utf8 # /*########################################################################## # # Copyright (c) 2015-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 3384, 69, 23, 198, 2, 11900, 29113, 29113, 7804, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 12, 1238, 2481, 3427, 16065, 354, 10599, 1313, 47532, 29118, 198, ...
2.792435
2,168
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 220, 15069, 3648, 12, 4626, 26182, 23555, 290, 27862, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
3.242775
692
from dedupe.api import StaticDedupe, Dedupe from dedupe.api import StaticRecordLink, RecordLink from dedupe.api import StaticGazetteer, Gazetteer from dedupe.core import randomPairs, randomPairsMatch, frozendict from dedupe.convenience import consoleLabel, trainingDataDedupe, trainingDataLink, canonicalize
[ 6738, 4648, 48722, 13, 15042, 1330, 36125, 35, 15532, 431, 11, 360, 15532, 431, 198, 6738, 4648, 48722, 13, 15042, 1330, 36125, 23739, 11280, 11, 13266, 11280, 198, 6738, 4648, 48722, 13, 15042, 1330, 36125, 38, 1031, 5857, 263, 11, 387...
3.54023
87
import unittest from unittest import TestCase from misc import verify if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 12747, 1330, 11767, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.880952
42
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7358, 12, 42334, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 3...
2.86771
1,406
import numpy as np import math extraNumber = 4 * math.pi * pow(10,-7) avgEMF()
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 10688, 201, 198, 201, 198, 26086, 15057, 796, 604, 1635, 10688, 13, 14415, 1635, 7182, 7, 940, 12095, 22, 8, 201, 198, 201, 198, 615, 70, 3620, 37, 3419, 201, 198 ]
2.230769
39
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Computes the spectrogram of a test signal using cupy and cuFFT. Author: Jan Schlter """ import sys import os import timeit import numpy as np import cupy as cp INPUT_ON_GPU = True OUTPUT_ON_GPU = True from testfile import make_test_signal def spectrogram(signal,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 7293, 1769, 262, 5444, 39529, 286, 257, 1332, 6737, 1262, 6508, 88, 290, 18912, 5777, 51, 13, 198, 1...
2.58156
423
test = { 'name': 'q2b3', 'points': 5, 'suites': [ { 'cases': [ { 'code': '>>> ' 'histories_2b[2].model.count_params()\n' '119260', 'hidden': False, ...
[ 9288, 796, 1391, 220, 220, 705, 3672, 10354, 705, 80, 17, 65, 18, 3256, 198, 220, 220, 220, 705, 13033, 10354, 642, 11, 198, 220, 220, 220, 705, 2385, 2737, 10354, 685, 220, 220, 1391, 220, 220, 705, 33964, 10354, 685, 220, 220, 1...
1.285829
1,242
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig from django.contrib.auth.apps import AuthConfig from django.contrib.contenttypes.apps import ContentTypesConfig from django.contrib.sessions.apps import SessionsConfig from django.db.models.signals import post_migrate from django_celery...
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 28482, 13, 18211, 1330, 32053, 16934, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 18211, 1330, 26828, 16934, 198, 6738, 42625, 14208,...
3.419847
131
""" To avoid any issues of memory hanging around between inputs, we run each input as a separate process. A little ugly but effective """ import gc import glob import json import os import random import time import numpy as np import torch from common import invoke_main, read_json, write_json, prepare_out_file, chec...
[ 37811, 198, 2514, 3368, 597, 2428, 286, 4088, 10938, 1088, 1022, 17311, 11, 198, 732, 1057, 1123, 5128, 355, 257, 4553, 1429, 13, 198, 198, 32, 1310, 13400, 475, 4050, 198, 37811, 198, 11748, 308, 66, 198, 11748, 15095, 198, 11748, 33...
2.483422
1,870
import sys, os from subprocess import call try: from downloadPdb import downloadPDB except ImportError: from .downloadPdb import downloadPDB pdbListFile="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/117_dimers_list.tsv" outPath="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/pdbFiles/rawPDBs" USE_BIO_...
[ 11748, 25064, 11, 28686, 198, 6738, 850, 14681, 1330, 869, 198, 198, 28311, 25, 198, 220, 422, 4321, 47, 9945, 1330, 4321, 5760, 33, 198, 16341, 17267, 12331, 25, 198, 220, 422, 764, 15002, 47, 9945, 1330, 4321, 5760, 33, 198, 220, ...
2.136594
593
#!/usr/bin/env python import json import sys import xapian import support ### End of example code. if len(sys.argv) < 3: print("Usage: %s DBPATH QUERYTERM..." % sys.argv[0]) sys.exit(1) search(dbpath = sys.argv[1], querystring = " ".join(sys.argv[2:]))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 2124, 499, 666, 198, 11748, 1104, 198, 21017, 5268, 286, 1672, 2438, 13, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1279, 513, ...
2.444444
108
import re from rest_framework import serializers from .models import Collection, CollectionIcon
[ 11748, 302, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 764, 27530, 1330, 12251, 11, 12251, 19578, 628, 198 ]
4.5
22
# Time: O(n*2^n) # Space: O(2^n) # Time: O(k^(n-k) * k!) # Space: O(n) # DFS solution with pruning.
[ 2, 3862, 25, 220, 440, 7, 77, 9, 17, 61, 77, 8, 198, 2, 4687, 25, 440, 7, 17, 61, 77, 8, 628, 198, 2, 3862, 25, 220, 440, 7, 74, 61, 7, 77, 12, 74, 8, 1635, 479, 8133, 198, 2, 4687, 25, 440, 7, 77, 8, 198, 2, 360, ...
1.810345
58
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * # See also: AspellDictPackage
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.350649
77
# # Copyright (C) 2001 greg Landrum # """ unit testing code for compound descriptors """ from __future__ import print_function import unittest import Parser from rdkit.six.moves import xrange if __name__ == '__main__': suite = TestSuite() unittest.TextTestRunner().run(suite)
[ 2, 198, 2, 220, 15069, 357, 34, 8, 5878, 220, 308, 2301, 6379, 6582, 198, 2, 198, 198, 37811, 4326, 4856, 2438, 329, 13061, 12145, 669, 198, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 555, 715, 395, ...
2.881188
101
from setuptools import setup, find_packages import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / "readme.md").read_text(encoding="utf-8") setup( name="data_dashboard", version="0.1.1", description="Dashboard to explore the data and to create baseline Machine Learning m...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 3108, 8019, 628, 198, 1456, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 13, 411, 6442, 3419, 198, 6511, 62, 11213, 796, 357, 1456, 1220, 366, 961, 1...
2.285922
689
# Copyright 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 accompanyin...
[ 2, 15069, 6186, 13, 785, 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, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, ...
3.300532
376
from flask_wtf import FlaskForm from wtforms import Form, StringField, PasswordField, BooleanField, SubmitField, IntegerField, validators, FileField, \ MultipleFileField, SelectField, RadioField, HiddenField, DecimalField, TextAreaField from wtforms.fields.html5 import DateField from wtforms.validators import DataR...
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 5178, 11, 10903, 15878, 11, 30275, 15878, 11, 41146, 15878, 11, 39900, 15878, 11, 34142, 15878, 11, 4938, 2024, 11, 9220, 15878, 11, 3467, 198, 220, 220, ...
3.758065
124
#coding: utf-8 import sys import os import asyncio import websockets import json import socket import xlrd #global vars phd_data = None pro_data = None #json port = 5678 if len(sys.argv) >=2: port = sys.argv[1] ws_server = websockets.serve(main_logic, '0.0.0.0', port) asyncio.get_event_loop().run_until_compl...
[ 2, 66, 7656, 25, 3384, 69, 12, 23, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 11748, 30351, 952, 198, 11748, 2639, 11603, 198, 11748, 33918, 198, 11748, 17802, 198, 11748, 2124, 75, 4372, 198, 198, 2, 20541, 410, 945, 198, 746, ...
2.412903
155
# # Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. # Use of this file is governed by the BSD 3-clause license that # can be found in the LICENSE.txt file in the project root. #/ # A DFA walker that knows how to dump them to serialized strings.#/ from io import StringIO from antlr4 import DFA from antl...
[ 2, 198, 2, 15069, 357, 66, 8, 2321, 12, 5539, 383, 3537, 14990, 49, 4935, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2393, 318, 21825, 416, 262, 347, 10305, 513, 12, 565, 682, 5964, 326, 198, 2, 460, 307, 1043, 287, 262,...
3.198347
121
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Calibration Controller Performs calibration for hue, center of camera position, and servo offsets """ import os import cv2 import time import json import argparse import datetime import numpy as np import logging as log from env import Moa...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 37811, 198, 9771, 571, 1358, 22741, 198, 198, 5990, 23914, 36537, 329, 37409, 11, 3641, 286, 4676, 2292, 11, 290, 1113, 78, 49005, 198, 3781...
2.310358
2,713
from datetime import datetime, timedelta from django.test import TestCase from django.test.utils import override_settings from marketing.tasks import ( delete_multiple_contacts_tasks, list_all_bounces_unsubscribes, run_all_campaigns, run_campaign, send_campaign_email_to_admin_contact, send_sch...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 20957, 62, 33692, 198, 198, 6738, 7124, 13, 83, 6791, 1330, 357, 198, ...
2.900709
141
from py2html.main import * page = web() page.create() # Header Parameters # text = header text # n = title level page.header(text='My Site', n=1) # Label Parameters # text = label text # color = label color page.label(text='', color='') page.compile()
[ 6738, 12972, 17, 6494, 13, 12417, 1330, 1635, 198, 198, 7700, 796, 3992, 3419, 198, 7700, 13, 17953, 3419, 198, 198, 2, 48900, 40117, 198, 2, 220, 220, 2420, 796, 13639, 2420, 198, 2, 220, 220, 299, 796, 3670, 1241, 198, 7700, 13, ...
2.797872
94
import unittest from JorGpi.pickup.pickup import SmartPickUp,Reference,CommandLineOptions
[ 11748, 555, 715, 395, 198, 198, 6738, 449, 273, 38, 14415, 13, 27729, 929, 13, 27729, 929, 1330, 10880, 31686, 4933, 11, 26687, 11, 21575, 13949, 29046, 198 ]
3.25
28
from django.contrib import admin from django.contrib.auth import get_user_model User = get_user_model() admin.site.register(User)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 198, 12982, 796, 651, 62, 7220, 62, 19849, 3419, 198, 28482, 13, 15654, 13, 30238, 7, 12982, 8, ...
3.046512
43
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from django.conf import settings from django.test.client import Client from spotseeker_server.models import Spot import simplejson as json from decimal import * from django.test.utils import override...
[ 2, 15069, 33448, 33436, 12, 2043, 11, 2059, 286, 2669, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 10414, 1330, 64...
3.833333
102
# this python script makes a rest call to Juniper Northstar to get active LSPs # usage: python get_active_LSPs.py import json import requests from requests.auth import HTTPBasicAuth from pprint import pprint import yaml from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3...
[ 2, 428, 21015, 4226, 1838, 257, 1334, 869, 284, 7653, 9346, 2258, 7364, 284, 651, 4075, 406, 4303, 82, 220, 198, 2, 8748, 25, 21015, 651, 62, 5275, 62, 43, 4303, 82, 13, 9078, 198, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 7...
2.897129
418
# Copyright 2018 Adrien Guinet <adrien@guinet.me> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 2864, 1215, 15355, 1962, 42504, 1279, 324, 15355, 31, 5162, 42504, 13, 1326, 29, 198, 2, 220, 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.993031
287
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 3012, 4992, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
3.873303
221
# Generated by Django 3.2.5 on 2021-07-11 23:51 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 20, 319, 33448, 12, 2998, 12, 1157, 2242, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import logging import os from decimal import Decimal from time import sleep import requests from hexbytes import HexBytes from web3 import Web3 from web3 import contract from web3.contract import Contract from config.constants import BASE_CURRENCIES from config.constants import GAS_LIMITS from config.constants import...
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 7007, 198, 6738, 17910, 33661, 1330, 22212, 45992, 198, 6738, 3992, 18, 1330, 5313, 18, 198, 6738, 3992, 18, 1330, 2775, 1...
3.175824
364
#!/usr/bin/env python # License: Apache-2.0 # Copyright (C) 2020 Mikhail f. Shiryaev
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 13789, 25, 24843, 12, 17, 13, 15, 198, 2, 15069, 357, 34, 8, 12131, 42040, 277, 13, 21972, 3972, 1990, 628 ]
2.71875
32
#!/usr/bin/env python3 import os import sys MAX = 8 fpath = sys.argv[1] name = sys.argv[2] with open(fpath, "rb") as fh: sys.stdout.write("char %s[] = {" % (name,) ) i = 0 while True: if i > 0: sys.stdout.write(", ") if i % MAX == 0: sys.stdout.write("\n\t") ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 22921, 796, 807, 198, 198, 69, 6978, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 3672, 796, 25064, 13, 853, 85, 58, 17, 60, 198, ...
1.808777
319
import unittest from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disp...
[ 11748, 555, 715, 395, 198, 198, 6738, 32242, 87, 1330, 12879, 355, 39628, 198, 6738, 32242, 87, 13, 33407, 1330, 797, 5275, 14402, 11, 6208, 50, 1740, 18173, 198, 198, 261, 62, 19545, 796, 797, 5275, 14402, 13, 261, 62, 19545, 198, ...
3.147287
129
if __name__ == "__main__": T = int(input()) for t in range(T): n = int(input()) red = input() blue = input() solve(n, red, blue)
[ 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 309, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 329, 256, 287, 2837, 7, 51, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 299, 796, 493, ...
1.965517
87
# Copyright 2014 Scopely, 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 writing...
[ 2, 15069, 1946, 41063, 306, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, ...
2.44581
895
import autograd.numpy as np from pyCHAMP.wavefunction.wf_base import WF from pyCHAMP.optimizer.minimize import Minimize from pyCHAMP.sampler.metropolis import Metropolis from pyCHAMP.sampler.hamiltonian import Hamiltonian from pyCHAMP.solver.vmc import VMC if __name__ == "__main__": wf = Hydrogen(nelec=1, ndim...
[ 11748, 1960, 519, 6335, 13, 77, 32152, 355, 45941, 198, 198, 6738, 12972, 3398, 23518, 13, 19204, 8818, 13, 86, 69, 62, 8692, 1330, 370, 37, 198, 6738, 12972, 3398, 23518, 13, 40085, 7509, 13, 1084, 48439, 1330, 1855, 48439, 198, 6738...
2.186937
444
from braintree.configuration import Configuration from braintree.resource import Resource
[ 6738, 865, 2913, 631, 13, 11250, 3924, 1330, 28373, 198, 6738, 865, 2913, 631, 13, 31092, 1330, 20857, 198 ]
4.736842
19
import pygame import pygame.gfxdraw from constants import Constants
[ 11748, 12972, 6057, 198, 11748, 12972, 6057, 13, 70, 21373, 19334, 198, 6738, 38491, 1330, 4757, 1187, 628, 198 ]
3.684211
19
from pyqtgraph.Qt import QtCore, QtGui import numpy as np from scipy.spatial import distance as dist import glob import re import os from PyQt5 import QtGui from PyQt5.QtCore import * from PyQt5.QtGui import * import sys import cv2 import pandas as pd from PyQt5.Qt import * import pyqtgraph as pg #from PyQt4.Qt import ...
[ 6738, 12972, 80, 25297, 1470, 13, 48, 83, 1330, 33734, 14055, 11, 33734, 8205, 72, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 2777, 34961, 1330, 5253, 355, 1233, 198, 11748, 15095, 198, 11748, 302, 198, 11748, 28...
2.394438
1,762
frase = input('Digite uma frase: ').upper().strip().replace(' ', '') tamanho = int(len(frase)) inverso = '' #Opo mais simples: # inverso = frase[::-1] for contador in range(tamanho-1, -1, -1): inverso += frase[contador] print('O inverso de {} {}'.format(frase, inverso)) if frase == inverso: print('Temos um...
[ 8310, 589, 796, 5128, 10786, 19511, 578, 334, 2611, 1216, 589, 25, 705, 737, 45828, 22446, 36311, 22446, 33491, 10786, 46083, 10148, 8, 198, 83, 10546, 8873, 796, 493, 7, 11925, 7, 8310, 589, 4008, 198, 259, 332, 568, 796, 10148, 198,...
2.374233
163
from unittest import TestCase from options.pricing.binomial_trees import BinomialTreePricer from options.option import OptionType, Option
[ 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 3689, 13, 1050, 6345, 13, 8800, 49070, 62, 83, 6037, 1330, 20828, 49070, 27660, 47, 1173, 263, 198, 6738, 3689, 13, 18076, 1330, 16018, 6030, 11, 16018, 628 ]
3.615385
39
import atexit import os import sys import platform import json import glob import datetime import time import threading import tkinter as tk from pynput import mouse from pathlib import Path from playsound import playsound from enum import Enum import copy #"THE BEER-WARE LICENSE" (Revision 42): #bleach86 wrote this ...
[ 11748, 379, 37023, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 3859, 198, 11748, 33918, 198, 11748, 15095, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 279, 20...
2.452075
1,325
""" Other useful structs """ from __future__ import absolute_import from collections import namedtuple """A topic and partition tuple Keyword Arguments: topic (str): A topic name partition (int): A partition id """ TopicPartition = namedtuple("TopicPartition", ["topic", "partition"]) """A Kafka broker...
[ 37811, 3819, 4465, 2878, 82, 37227, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 17268, 1330, 3706, 83, 29291, 628, 198, 37811, 32, 7243, 290, 18398, 46545, 198, 198, 9218, 4775, 20559, 2886, 25, 198, 220, 220, ...
3.117146
939
import cv2 from trackers.tracker import create_blob, add_new_blobs, remove_duplicates import numpy as np from collections import OrderedDict from detectors.detector import get_bounding_boxes import uuid import os import contextlib from datetime import datetime import argparse from utils.detection_roi import get_roi_fra...
[ 11748, 269, 85, 17, 198, 6738, 2610, 364, 13, 2213, 10735, 1330, 2251, 62, 2436, 672, 11, 751, 62, 3605, 62, 2436, 8158, 11, 4781, 62, 646, 489, 16856, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 14230, 1068, 35, 713...
2.321553
3,169
from flask import request from resources.api_view import ApiView from exceptions.invalid_usage_exception import InvalidUsageException from models.user.user import User from models.user.authenticated_user import AuthenticatedUser
[ 6738, 42903, 1330, 2581, 198, 6738, 4133, 13, 15042, 62, 1177, 1330, 5949, 72, 7680, 198, 6738, 13269, 13, 259, 12102, 62, 26060, 62, 1069, 4516, 1330, 17665, 28350, 16922, 198, 6738, 4981, 13, 7220, 13, 7220, 1330, 11787, 198, 6738, ...
4.259259
54
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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, 15069, 2864, 25767, 669, 284, 15079, 992, 1362, 19882, 1462, 849, 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, ...
3.762238
286
import cv2 import os import numpy as np from PIL import Image if __name__ == '__main__': im_dir = '/media/hy/Seagate Expansion Drive/Results/merge_dir/' # video_dir = '/media/hy/Seagate Expansion Drive/Results/sandy.mp4' # fps = 15 # frame2video(im_dir, video_dir, fps)
[ 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 545, 62, 15908, 796, 31051, 1143...
2.478992
119
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 14 17:38:48 2020 @author: luke """ import sys from functools import partial import torch import torch.nn as nn import prettytable as pt from .basic_hook import MODULES_MAPPING def compute_average_compute_cost(self): """ A method tha...
[ 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, 4280, 1478, 1596, 25, 2548, 25, 2780, 12131, 198, 198, 31, 9800, 25, 300, 4649, 198...
2.819672
671
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from ..scraper import _ParserScraper from ..helpers import indirectStarter
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 2, 15069, 357, 34, 8, 13130, 12, 42334, 46675, 25665, 23773, 76, 3493, 198, 2, 15069, 357, 34, 8, 13130, 12, 42334, 7806, 12569, 198, 6738, 11485, 1416, 38545, 1330, 4808, 46...
3.472727
55
""" Function are subprograms which are used to compute a value or perform a task. Type of Functions:- Built in Functions: print(), upper() User define functions Advantage of Functions 1. Write once and use it as many time as you need. This provides code reusability 2. Function facilitates ease of code maint...
[ 37811, 198, 22203, 389, 850, 23065, 82, 543, 389, 973, 284, 24061, 257, 1988, 393, 1620, 257, 4876, 13, 198, 198, 6030, 286, 40480, 21912, 198, 198, 39582, 287, 40480, 25, 198, 220, 220, 220, 220, 220, 220, 3601, 22784, 6727, 3419, ...
3.330508
590
# coding: utf-8 import click if __name__ == "__main__": main()
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 3904, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.333333
30
from enum import Enum, auto from subprocess import CalledProcessError, run from pitop.common.command_runner import run_command from pitop.common.logger import PTLogger def send_notification( title: str, text: str, icon_name: str = "", timeout: int = 0, app_name: str = "", notification_id: ...
[ 6738, 33829, 1330, 2039, 388, 11, 8295, 198, 6738, 850, 14681, 1330, 34099, 18709, 12331, 11, 1057, 198, 198, 6738, 6028, 404, 13, 11321, 13, 21812, 62, 16737, 1330, 1057, 62, 21812, 198, 6738, 6028, 404, 13, 11321, 13, 6404, 1362, 13...
2.3534
897
# xy to location # # Gismo is a plugin for GIS environmental analysis (GPL) started by Djordje Spasic. # # This file is part of Gismo. # # Copyright (c) 2019, Djordje Spasic <djordjedspasic@gmail.com> # Gismo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
[ 2, 2124, 88, 284, 4067, 201, 198, 2, 201, 198, 2, 402, 44126, 318, 257, 13877, 329, 402, 1797, 6142, 3781, 357, 38, 6489, 8, 2067, 416, 19307, 585, 18015, 1338, 292, 291, 13, 201, 198, 2, 201, 198, 2, 770, 2393, 318, 636, 286, ...
2.794983
1,156
# pylint: disable-msg=C0103 """ SentinelAnomalyLookup: This package is developed for Azure Sentinel Anomaly lookup """ # __init__.py from .anomaly_lookup_view_helper import AnomalyLookupViewHelper from .anomaly_finder import AnomalyQueries, AnomalyFinder
[ 2, 279, 2645, 600, 25, 15560, 12, 19662, 28, 34, 486, 3070, 198, 37811, 198, 31837, 20538, 2025, 24335, 8567, 929, 25, 770, 5301, 318, 4166, 329, 22134, 26716, 1052, 24335, 35847, 198, 37811, 198, 198, 2, 11593, 15003, 834, 13, 9078, ...
3.2
80
import pygame from pygame.sprite import Sprite
[ 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 34975, 578, 1330, 33132, 628 ]
3.692308
13
from geo.calc import Calc from geo.calc import Distance from geo.geosp import Wt from geo.geosp import Gh from geo.files.csv_file import check
[ 6738, 40087, 13, 9948, 66, 1330, 2199, 66, 198, 6738, 40087, 13, 9948, 66, 1330, 34600, 198, 6738, 40087, 13, 469, 2117, 1330, 370, 83, 198, 6738, 40087, 13, 469, 2117, 1330, 11972, 198, 6738, 40087, 13, 16624, 13, 40664, 62, 7753, ...
3.227273
44
from pathlib import Path from nb_helpers.clean import clean_all, clean_one from tests import TEST_PATH TEST_PATH TEST_NB = Path("test_nb.py") def test_clean_one(): "clean just one nb" clean_one(TEST_NB) def test_clean_all(): "clean all test nbs" clean_all(path=TEST_PATH)
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 299, 65, 62, 16794, 364, 13, 27773, 1330, 3424, 62, 439, 11, 3424, 62, 505, 198, 6738, 5254, 1330, 43001, 62, 34219, 198, 198, 51, 6465, 62, 34219, 198, 51, 6465, 62, 32819, 796, 10644, 7203...
2.483051
118
import streamlit as st
[ 11748, 4269, 18250, 355, 336, 198 ]
3.833333
6
from __future__ import absolute_import from mock import patch from django.db import IntegrityError from sentry.mediators.sentry_apps import Creator from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, ApiApplication, IntegrationFeature, SentryApp, SentryAppComponent, User, ) from...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 15290, 1330, 8529, 198, 6738, 42625, 14208, 13, 9945, 1330, 39348, 12331, 198, 198, 6738, 1908, 563, 13, 2379, 2024, 13, 82, 13000, 62, 18211, 1330, 21038, 198, 6738, 1908,...
3.114035
114
# This file was automatically created by FeynRules 2.3.32 # Mathematica version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) # Date: Sat 21 Apr 2018 20:48:39 from object_library import all_parameters, Parameter from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot # This is a defau...
[ 2, 770, 2393, 373, 6338, 2727, 416, 5452, 2047, 37766, 362, 13, 18, 13, 2624, 198, 2, 6550, 23380, 64, 2196, 25, 1367, 13, 18, 13, 15, 329, 4100, 7294, 1395, 2124, 4521, 357, 2414, 12, 2545, 8, 357, 16192, 767, 11, 2864, 8, 198,...
1.59673
11,191
import time musicLrc = """ [00:03.50] [00:19.10] [00:20.60] [00:26.60] [04:40.75][02:39.90][00:36.25] [04:49.00] [02:47.44][00:43.69] [02:54.83][00:51.24] [03:02.32][00:58.75] [03:08.15][01:04.30] [03:09.35][01:05.50] [03:16.90][01:13.13] [03:24.42][01:20.92] [03:31.85][01:28.44] [03:38.67][01:35.05] [04:09.96][03:39...
[ 11748, 640, 198, 198, 28965, 43, 6015, 796, 37227, 198, 58, 405, 25, 3070, 13, 1120, 60, 198, 58, 405, 25, 1129, 13, 940, 60, 220, 198, 58, 405, 25, 1238, 13, 1899, 60, 198, 58, 405, 25, 2075, 13, 1899, 60, 198, 58, 3023, 25, ...
1.805464
915
# coding=utf-8 from __future__ import absolute_import import datetime import logging import sys import flask import octoprint.plugin from octoprint.events import eventManager, Events from octoprint.server import user_permission from octoprint.util import RepeatedTimer from .bed_notifications import BedNotifications ...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 42903, 198, 11748, 19318, 404, 22272, 13, 33803, 198, 6738, 19318, 404...
3.793651
378
from cspatterns.datastructures import buffer
[ 6738, 269, 2777, 265, 759, 82, 13, 19608, 459, 1356, 942, 1330, 11876 ]
3.384615
13
# Generated by Django 2.1.7 on 2019-02-17 14:50 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 2999, 12, 1558, 1478, 25, 1120, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.colors as colors from numpy import array from numpy import max map = Basemap(llcrnrlon=-0.5,llcrnrlat=39.8,urcrnrlon=4.,urcrnrlat=43., resolution='i', projection='tmerc', lat_0 = 39.5, lon_0 = 1) map.readshapefil...
[ 6738, 285, 489, 62, 25981, 74, 896, 13, 12093, 368, 499, 1330, 6455, 368, 499, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 7577, 198, 6738, 299, 32152, 1330, 7177, ...
2.384932
730
from nonebot import on_keyword, on_command from nonebot.typing import T_State from nonebot.adapters.cqhttp import Message, Bot, Event # from nonebot.adapters.cqhttp.message import MessageSegment import requests from nonebot.permission import * from nonebot.rule import to_me from aiocqhttp.exceptions import Err...
[ 6738, 4844, 13645, 1330, 319, 62, 2539, 4775, 11, 319, 62, 21812, 201, 198, 6738, 4844, 13645, 13, 774, 13886, 1330, 309, 62, 9012, 201, 198, 6738, 4844, 13645, 13, 324, 12126, 13, 66, 80, 4023, 1330, 16000, 11, 18579, 11, 8558, 220...
2.976
125
import html from collections import namedtuple from pathlib import Path from typing import List, Dict import requests from bs4 import BeautifulSoup from lxml import etree from lxml.etree import XPath Emoji = namedtuple('Emoji', 'char name')
[ 11748, 27711, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 300, 19875, 1330, ...
3.388889
72