content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
DEFAULT_MIRRORS = { "bitbucket": [ "https://bitbucket.org/{repository}/get/{commit}.tar.gz", ], "buildifier": [ "https://github.com/bazelbuild/buildtools/releases/download/{version}/{filename}", ], "github": [ "https://github.com/{repository}/archive/{commit}.tar.gz", ], ...
[ 7206, 38865, 62, 44, 4663, 16411, 50, 796, 1391, 198, 220, 220, 220, 366, 2545, 27041, 316, 1298, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5450, 1378, 2545, 27041, 316, 13, 2398, 14, 90, 260, 1930, 37765, 92, 14, 1136, 14...
2.125
208
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Jun 6 21:15:23 2017 @author: yolandatiao """ import csv import glob import os from astropy.io import ascii # For using ascii table to open csv from astropy.table import Table, Column # For using astropy table functions os.chdir("/Volumes/Huitian/...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 7653, 220, 718, 2310, 25, 1314, 25, 1954, 2177, 198, 198, 31, 9800, 25, 331, 23573...
2.069347
995
import unittest from vendcrawler.scripts.vendcrawler import VendCrawler if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 10817, 66, 39464, 13, 46521, 13, 85, 437, 66, 39464, 1330, 44220, 34, 39464, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 341...
2.75
44
#!/usr/bin/python3 # -*- coding: utf-8 -*- import time import json import os import sys import time import urllib import socket import argparse import requests import lib.common as common base_url = 'http://localhost:24879/player/' #------------------------------------------------------------------------------# # ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 2956, 297, 571, 198, 117...
3.301408
1,065
# from tensorflow.keras import Model, Input # from tensorflow.keras.applications import vgg16, resnet50 # from tensorflow.keras.layers import (Conv2D, Conv2DTranspose, Cropping2D, add, Dropout, Reshape, Activation) # from tensorflow.keras import layers # import tensorflow as tf # # """ # FCN-8: # 1(fc)(full...
[ 2, 422, 11192, 273, 11125, 13, 6122, 292, 1330, 9104, 11, 23412, 201, 198, 2, 422, 11192, 273, 11125, 13, 6122, 292, 13, 1324, 677, 602, 1330, 410, 1130, 1433, 11, 581, 3262, 1120, 201, 198, 2, 422, 11192, 273, 11125, 13, 6122, 29...
1.978022
3,367
def binom(n, k): """Quickly adapted from https://stackoverflow.com/questions/26560726/python-binomial-coefficient""" if k < 0 or k > n: return 0 if k == 0 or k == n: return 1 total_ways = 1 for i in range(min(k, n - k)): total_ways = total_ways * (n - i) // (i + 1) return...
[ 4299, 9874, 296, 7, 77, 11, 479, 2599, 198, 220, 220, 220, 37227, 21063, 306, 16573, 422, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 22980, 31980, 2075, 14, 29412, 12, 8800, 49070, 12, 1073, 16814, 37811, 198, 220, ...
2.093103
580
# Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ) # # 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 #...
[ 2, 15069, 2177, 7458, 286, 8366, 7412, 38589, 11, 2679, 15523, 4992, 3337, 357, 48510, 37, 57, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428...
3.44868
341
import argparse import time from kubernetes.client.rest import ApiException from polyaxon_client.client import PolyaxonClient from polyaxon_k8s.manager import K8SManager from sidecar import settings from sidecar.monitor import is_pod_running if __name__ == '__main__': parser = argparse.ArgumentParser() pars...
[ 11748, 1822, 29572, 198, 11748, 640, 198, 198, 6738, 479, 18478, 3262, 274, 13, 16366, 13, 2118, 1330, 5949, 72, 16922, 198, 198, 6738, 7514, 897, 261, 62, 16366, 13, 16366, 1330, 12280, 897, 261, 11792, 198, 6738, 7514, 897, 261, 62,...
2.091731
774
#! /usr/bin/env python import rospy from nav_msgs.msg import Odometry if __name__ == "__main__": rospy.init_node('odom_topic_subscriber') odom_reader_object = OdomTopicReader() rate = rospy.Rate(10) while not rospy.is_shutdown(): rate.sleep()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 6738, 6812, 62, 907, 14542, 13, 19662, 1330, 10529, 15748, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 68...
2.245902
122
"""Tests for quantization""" import numpy as np import unittest import os import shutil import yaml import tensorflow as tf if __name__ == "__main__": unittest.main()
[ 37811, 51, 3558, 329, 5554, 1634, 37811, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 555, 715, 395, 201, 198, 11748, 28686, 201, 198, 11748, 4423, 346, 201, 198, 11748, 331, 43695, 201, 198, 11748, 11192, 273, 11125, 355, ...
2.43038
79
# Copyright 2020 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 15069, 12131, 383, 21239, 80, 34152, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921...
3.50152
329
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v0.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2 from google.ads.google_ads.v0.proto.services import media_file_service_pb2 as google_dot...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 6738, 23645, 13, 5643, 13, 13297, 62, 5643, 13, 85, 15, 13, 1676, 1462, 13, 37540, 1330, 2056, 62, 7753, ...
2.583045
578
import importlib import math import os from pathlib import Path from typing import Optional, Tuple import cv2 import numpy as np import requests import torch import kornia as K if __name__ == "__main__": main()
[ 11748, 1330, 8019, 198, 11748, 10688, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 7007, 198, 11748, ...
3.25
68
# Copyright 2020 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ 2, 15069, 12131, 383, 6401, 68, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 2...
3.509158
273
from __future__ import print_function, absolute_import from sentry import analytics from sentry.signals import join_request_created, join_request_link_viewed
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 198, 6738, 1908, 563, 1330, 23696, 198, 6738, 1908, 563, 13, 12683, 874, 1330, 4654, 62, 25927, 62, 25598, 11, 4654, 62, 25927, 62, 8726, 62, 1177, 276, 628, 1...
3.744186
43
from django.conf.urls import url, include from django.contrib import admin from django.views.generic import RedirectView from django.views.generic import TemplateView from django.contrib.sitemaps.views import sitemap from django.conf import settings from blog.sitemaps import ArticleSitemap urlpatterns = [ url(r'^...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 2297, 1060, 7680, 198, 6738, 42625, 14208, 13, 33571, 13, 4135...
2.657993
269
#!/usr/bin/env python """ @package ion_functions.qc_functions @file ion_functions/qc_functions.py @author Christopher Mueller @brief Module containing QC functions ported from matlab samples in DPS documents """ from ion_functions.qc.qc_extensions import stuckvalues, spikevalues, gradientvalues, ntp_to_month import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 31, 26495, 22088, 62, 12543, 2733, 13, 80, 66, 62, 12543, 2733, 198, 31, 7753, 22088, 62, 12543, 2733, 14, 80, 66, 62, 12543, 2733, 13, 9078, 198, 31, 9800, 12803, ...
2.424337
13,091
"""Backward compatibility for version 0.8 API.""" from __future__ import absolute_import import inspect import datatest from datatest._compatibility import itertools from datatest._compatibility.collections.abc import Sequence from datatest._load.get_reader import get_reader from datatest._load.load_csv import load_cs...
[ 37811, 7282, 904, 17764, 329, 2196, 657, 13, 23, 7824, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 10104, 198, 198, 11748, 4818, 265, 395, 198, 6738, 4818, 265, 395, 13557, 5589, 25901, 1330, 340, 861, ...
2.544508
1,921
# Copyright 2008 Owen Taylor # # This file is part of Reinteract and distributed under the terms # of the BSD license. See the file COPYING in the Reinteract # distribution for full details. # ######################################################################## import os import gobject import gtk import pango fr...
[ 2, 15069, 3648, 22605, 8121, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 797, 3849, 529, 290, 9387, 739, 262, 2846, 198, 2, 286, 262, 347, 10305, 5964, 13, 4091, 262, 2393, 27975, 45761, 287, 262, 797, 3849, 529, 198, 2, 6082, 329, ...
4.483333
120
""" This script compares events from two ETLs to highlight differences in elapsed times or row counts. * Pre-requisites You need to have a list of events for each ETL. Arthur can provide this using the "query_events" command. For example: ``` arthur.py query_events -p development 37ACEC7440AB4620 -q > 37ACEC7440AB46...
[ 37811, 198, 1212, 4226, 23008, 2995, 422, 734, 12152, 43, 82, 284, 7238, 5400, 287, 42118, 1661, 393, 5752, 9853, 13, 198, 198, 9, 3771, 12, 34075, 198, 198, 1639, 761, 284, 423, 257, 1351, 286, 2995, 329, 1123, 12152, 43, 13, 13514...
2.51928
1,945
# Augur: A Step Towards Realistic Drift Detection in Production MLSystems - Code # Copyright 2022 Carnegie Mellon University. # # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITH...
[ 2, 2447, 333, 25, 317, 5012, 49953, 6416, 2569, 39819, 46254, 287, 19174, 13981, 6781, 82, 532, 6127, 201, 198, 2, 15069, 33160, 33976, 49808, 2059, 13, 198, 2, 220, 201, 198, 2, 8005, 34764, 56, 13, 12680, 17368, 45, 7156, 10008, 1...
3.149083
872
SURVEY_POST = { 'tags': [' '], 'description': ' ', 'parameters': [ { 'name': 'Authorization', 'description': 'JWT Token', 'in': 'header', 'type': 'str', 'required': True }, { 'name': 'title', 'descrip...
[ 50, 4261, 6089, 56, 62, 32782, 796, 1391, 198, 220, 220, 220, 705, 31499, 10354, 37250, 705, 4357, 198, 220, 220, 220, 705, 11213, 10354, 705, 46083, 198, 220, 220, 220, 705, 17143, 7307, 10354, 685, 198, 220, 220, 220, 220, 220, 22...
1.630499
1,364
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import math from functools import partial import logging import os try: from . import initializer from .utils import load_state except: import initializer from utils import load_state __all__ = ['Re...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 10688, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 18...
2.424908
546
import pytest from inference_logic import Rule, Variable, search from inference_logic.data_structures import Assert, Assign
[ 11748, 12972, 9288, 198, 198, 6738, 32278, 62, 6404, 291, 1330, 14330, 11, 35748, 11, 2989, 198, 6738, 32278, 62, 6404, 291, 13, 7890, 62, 7249, 942, 1330, 2195, 861, 11, 2195, 570, 628 ]
3.705882
34
#!/usr/bin/env python # # Copyright 2015 Airbus # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) # # 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 # # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 1853, 39173, 198, 2, 15069, 2177, 39313, 403, 71, 30288, 5136, 329, 32760, 14044, 290, 17406, 341, 357, 4061, 32, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, ...
3.181053
475
from flask_wtf import FlaskForm from wtforms import SubmitField, TextAreaField from wtforms.validators import DataRequired
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 39900, 15878, 11, 8255, 30547, 15878, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 6060, 37374, 628 ]
3.875
32
import numpy as np from ..transform import DenseTransform from ..decorators import multiple from ..transform import Transform __all__ = ['onehot', 'Onehot']
[ 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 6738, 11485, 35636, 1330, 360, 1072, 41762, 201, 198, 6738, 11485, 12501, 273, 2024, 1330, 3294, 201, 198, 6738, 11485, 35636, 1330, 26981, 201, 198, 201, 198, 834, 439, 834, 796, 37250...
3.148148
54
"""Handles data storage for Users, rides and requests """ # pylint: disable=E1101 import datetime from flask import make_response, jsonify, current_app from werkzeug.security import generate_password_hash import psycopg2 import config from databasesetup import db
[ 37811, 12885, 829, 1366, 6143, 329, 18987, 11, 17445, 290, 7007, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 36, 1157, 486, 198, 11748, 4818, 8079, 198, 198, 6738, 42903, 1330, 787, 62, 26209, 11, 33918, 1958, 11, 1459, 62, 1...
3.573333
75
import configparser ''' config = configparser.ConfigParser() config.read('db.ini') print(config.sections()) print(dict(config['mysqld'])['symbolic-links']) ''' result, ok = ReadConfig('db.ini', 'mysqld', 'socket') print(ok) print(result) if __name__ == '__main__': ReadConfig('db.ini','mysqld','socket')
[ 11748, 4566, 48610, 198, 7061, 6, 198, 11250, 796, 4566, 48610, 13, 16934, 46677, 3419, 628, 198, 11250, 13, 961, 10786, 9945, 13, 5362, 11537, 198, 4798, 7, 11250, 13, 23946, 28955, 198, 198, 4798, 7, 11600, 7, 11250, 17816, 28744, 8...
2.698276
116
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Forms wrapper # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ------------------------------------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 30934, 198, 2, 39196, 29908, 198, 2, 16529, 30934, 198, 2, 15069, 357, 34, 8, 4343, 12, 23344, 383, 399, 4503, 4935, 198, 2, 4091, 38559, 24290, 329, 3307, ...
5.164835
91
import json from django.shortcuts import get_object_or_404 from django.core import serializers from django.http import HttpResponse from .models import Unit from .utils import UNIT_LIST_FIELD BAD_REQUEST = HttpResponse(json.dumps({'error': 'Bad Request'}), status=400, content_type='application/json') def unit_json_li...
[ 11748, 33918, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 42625, 14208, 13, 7295, 1330, 11389, 11341, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 764, 27530, ...
2.45679
810
''' ex029: Escreva um programa que leia a velocidade de uma carro. Se ele ultrapassar 80 km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite. ''' from colorise import set_color, reset_color cor = { 'limpa':'\033[m', 'white':'\033[1;97m' } set_color(fg='...
[ 7061, 6, 198, 1069, 48891, 25, 16319, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 257, 11555, 420, 312, 671, 390, 334, 2611, 1097, 305, 13, 1001, 9766, 3789, 2416, 562, 283, 4019, 10571, 14, 71, 11, 749, 260, 334, 2611, 285, 641, ...
2.2263
327
#!/usr/bin/env python3.4 # coding: utf-8
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 19, 198, 2, 19617, 25, 3384, 69, 12, 23, 628 ]
2.1
20
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os from django.conf import settings from django.shortcuts import reverse from django.core.management import call_command import test from dataops import pandas_db from workflow.models import Workflow
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 4...
3.464286
84
from attrdict import AttrDefault import asyncio def current_distance(self): return self.current_step / self.milli_meter_step_count def _get_step_instructions(self): return self._step_instructions[self._step_type]
[ 6738, 708, 4372, 713, 1330, 3460, 81, 19463, 198, 198, 11748, 30351, 952, 628, 220, 220, 220, 825, 1459, 62, 30246, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 14421, 62, 9662, 1220, 2116, 13, 17805, 72, ...
2.715909
88
input_num = raw_input() print(str(eval(input_num)))
[ 15414, 62, 22510, 796, 8246, 62, 15414, 3419, 198, 4798, 7, 2536, 7, 18206, 7, 15414, 62, 22510, 22305, 198 ]
2.6
20
from django.contrib import admin from django.db.models import Count from reversion.admin import VersionAdmin from website.apps.lexicon.models import Lexicon from website.apps.entry.models import Task, TaskLog, Wordlist, WordlistMember from website.apps.core.admin import TrackedModelAdmin admin.sit...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 2764, 198, 6738, 302, 9641, 13, 28482, 1330, 10628, 46787, 198, 6738, 3052, 13, 18211, 13, 2588, 4749, 13, 27530, 1330, 17210, 4749, 198...
3.202899
138
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import sys sys.dont_write_bytecode = True from pprint import pprint from base import BaseFest2Bash
[ 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, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 17597, 13, 67, 756, 62, 13564, 62, 26327, 8189, 796, ...
2.640625
64
#!/usr/bin/env python """ Srapyd control methods """ import logging from typing import Any, Dict, List from urllib.parse import urljoin from opennem.settings import settings from opennem.utils.http import http from opennem.utils.scrapy import get_spiders logger = logging.getLogger("scrapyd.client")
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 50, 2416, 5173, 1630, 5050, 198, 198, 37811, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 221...
3.111111
99
from abaqusConstants import * from .FailStrain import FailStrain from .FailStress import FailStress
[ 6738, 450, 30188, 385, 34184, 1187, 1330, 1635, 198, 6738, 764, 39044, 1273, 3201, 1330, 18448, 1273, 3201, 198, 6738, 764, 39044, 1273, 601, 1330, 18448, 1273, 601, 628 ]
3.482759
29
# setup.py for pyscrabble from distutils.core import setup try: import py2exe HAS_PY2EXE = True except ImportError: HAS_PY2EXE = False import glob import os import pkg_resources import sys from pyscrabble.constants import VERSION from pyscrabble import util from pyscrabble import dist kwargs...
[ 2, 9058, 13, 9078, 329, 279, 893, 6098, 397, 903, 201, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 201, 198, 28311, 25, 201, 198, 220, 220, 220, 1330, 12972, 17, 13499, 201, 198, 220, 220, 220, 33930, 62, 47, 56, 17, 6369, 36, ...
1.984533
1,487
def integrate_exponential(a, x0, dt, T): """Compute solution of the differential equation xdot=a*x with initial condition x0 for a duration T. Use time step dt for numerical solution. Args: a (scalar): parameter of xdot (xdot=a*x) x0 (scalar): initial condition (x at time 0) dt (scalar): timeste...
[ 4299, 19386, 62, 11201, 35470, 7, 64, 11, 2124, 15, 11, 288, 83, 11, 309, 2599, 198, 220, 37227, 7293, 1133, 4610, 286, 262, 22577, 16022, 2124, 26518, 28, 64, 9, 87, 351, 220, 198, 220, 4238, 4006, 2124, 15, 329, 257, 9478, 309, ...
2.460888
473
import json import geojson import geopandas as gpd
[ 11748, 33918, 198, 11748, 4903, 13210, 1559, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.458333
24
import requests import ssbio.utils import os.path as op # #### PDB stats # Request flexibility data about one particular PDB. # # http://pdbflex.org/php/api/PDBStats.php?pdbID=1a50&chainID=A # # pdbID of structure you are interested in # chainID of chain you are interested in # # [{"pdbID":"1a50", # ...
[ 11748, 7007, 198, 11748, 264, 36299, 952, 13, 26791, 198, 11748, 28686, 13, 6978, 355, 1034, 628, 198, 2, 1303, 21017, 350, 11012, 9756, 198, 2, 19390, 13688, 1366, 546, 530, 1948, 350, 11012, 13, 198, 2, 198, 2, 2638, 1378, 79, 994...
2.324812
665
""" Modify Notes """ # pylint: disable=too-few-public-methods from ...mysql.mysql_connection import MySqlConnection from ...mysql.orm.autogen_entities import Task
[ 37811, 198, 3401, 1958, 11822, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 198, 6738, 2644, 28744, 13976, 13, 28744, 13976, 62, 38659, 1330, 2011, 50, 13976, 32048, 198, 6738, 2644, 2...
3.055556
54
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys try: import unittest2 as unittest except ImportError: import unittest from tests.base import BaseTestCase from pyasn1.type import namedval ...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 12972, 292, 77, 16, 3788, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 5075, 12, 23344, 11, 49804, 64, 412, 889, 1659, 1279, 13629, 1659, 31, 14816, 13, 785, 29, 198, 2, 13789, 25, 2638, 1378, 16...
2.638889
180
#!/usr/bin/env python from setuptools import setup, find_packages from pymemcache import __version__ setup( name = 'pymemcache', version = __version__, author = 'Charles Gordon', author_email = 'charles@pinterest.com', packages = find_packages(), tests_require = ['nose>=1.0'], install_req...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 6738, 279, 4948, 368, 23870, 1330, 11593, 9641, 834, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 705, ...
2.72381
315
import torch from plyfile import PlyData from torch_geometric.data import Data
[ 11748, 28034, 198, 6738, 35960, 7753, 1330, 36526, 6601, 198, 6738, 28034, 62, 469, 16996, 13, 7890, 1330, 6060, 628 ]
4
20
from mlagents.trainers.brain import BrainInfo, BrainParameters, CameraResolution from mlagents.envs.base_env import BatchedStepResult, AgentGroupSpec from mlagents.envs.exception import UnityEnvironmentException import numpy as np from typing import List
[ 6738, 25962, 49638, 13, 27432, 364, 13, 27825, 1330, 14842, 12360, 11, 14842, 48944, 11, 20432, 4965, 2122, 198, 6738, 25962, 49638, 13, 268, 14259, 13, 8692, 62, 24330, 1330, 6577, 1740, 8600, 23004, 11, 15906, 13247, 22882, 198, 6738, ...
3.953846
65
from setuptools import find_packages, setup from glob import glob import os package_name = 'mrdc_serial' setup( name=package_name, version='1.0.0', packages=find_packages(), data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + p...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 6738, 15095, 1330, 15095, 198, 11748, 28686, 198, 198, 26495, 62, 3672, 796, 705, 76, 4372, 66, 62, 46911, 6, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 28, 26495, 62...
2.409605
354
from django.core.urlresolvers import reverse_lazy from django.views import generic from django.shortcuts import redirect, render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from . import forms from . import models from custommixins import mixins
[ 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 62, 75, 12582, 198, 6738, 42625, 14208, 13, 33571, 1330, 14276, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330...
3.666667
81
""" This file defines some simple experiments to illustrate how Pytorch-Routing functions. """ import numpy as np import tqdm import torch from PytorchRouting.DecisionLayers import REINFORCE, QLearning, SARSA, ActorCritic, GumbelSoftmax, PerTaskAssignment, \ WPL, AAC, AdvantageLearning, RELAX, EGreedyREINFORCE, EGr...
[ 37811, 198, 1212, 2393, 15738, 617, 2829, 10256, 284, 19418, 703, 9485, 13165, 354, 12, 49, 13660, 5499, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 256, 80, 36020, 198, 11748, 28034, 198, 6738, 9485, 13165, 354, 49,...
2.473952
787
from output.models.ms_data.regex.re_g22_xsd.re_g22 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
[ 6738, 5072, 13, 27530, 13, 907, 62, 7890, 13, 260, 25636, 13, 260, 62, 70, 1828, 62, 87, 21282, 13, 260, 62, 70, 1828, 1330, 357, 198, 220, 220, 220, 797, 25636, 11, 198, 220, 220, 220, 14432, 11, 198, 8, 198, 198, 834, 439, 8...
1.833333
66
#!/usr/bin/env python from skimage.color import rgb2gray from skimage.io import imread, imsave from scipy.misc import toimage import numpy as np import wrapper as wr ########################################################### # IMAGE IO ########################################################### def imload_rgb(pa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1341, 9060, 13, 8043, 1330, 46140, 17, 44605, 198, 6738, 1341, 9060, 13, 952, 1330, 545, 961, 11, 545, 21928, 198, 6738, 629, 541, 88, 13, 44374, 1330, 284, 9060, 198, 117...
2.728016
2,445
from django.db.models import fields from main.models import RoomReservation, UserRoom from django import forms from django.core.exceptions import ValidationError from django.contrib.auth import authenticate, login from django.contrib.auth import get_user_model
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 7032, 198, 6738, 1388, 13, 27530, 1330, 10096, 4965, 13208, 11, 11787, 41178, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331...
3.742857
70
""" Module to define various calculation types as Enums for VASP """ import datetime from itertools import groupby, product from pathlib import Path from typing import Dict, Iterator, List import bson import numpy as np from monty.json import MSONable from monty.serialization import loadfn from pydantic import BaseMod...
[ 37811, 19937, 284, 8160, 2972, 17952, 3858, 355, 2039, 5700, 329, 569, 1921, 47, 37227, 198, 11748, 4818, 8079, 198, 6738, 340, 861, 10141, 1330, 1448, 1525, 11, 1720, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 360, 713...
2.234238
2,173
from mono_left import MonoLeft from mono_right import MonoRight from mono_rear import MonoRear from stereo_left import StereoLeft from stereo_right import StereoRight from stereo_centre import StereoCentre
[ 198, 6738, 33361, 62, 9464, 1330, 34879, 18819, 198, 6738, 33361, 62, 3506, 1330, 34879, 11028, 198, 6738, 33361, 62, 260, 283, 1330, 34879, 49, 451, 198, 6738, 24820, 62, 9464, 1330, 520, 32934, 18819, 198, 6738, 24820, 62, 3506, 1330,...
3.696429
56
import sys import pandas as pd from sqlalchemy import create_engine import nltk nltk.download(['punkt', 'wordnet', 'averaged_perceptron_tagger']) import re from nltk.tokenize import word_tokenize from nltk.stem import WordNetLemmatizer from sklearn.metrics import classification_report from sklearn.metrics import confus...
[ 11748, 25064, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 11748, 299, 2528, 74, 198, 77, 2528, 74, 13, 15002, 7, 17816, 30354, 83, 3256, 705, 4775, 3262, 3256, 705, 8770, 1886, 62, ...
2.40404
1,683
import os from datetime import date from django.conf import settings from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils import translation from django.utils.translation import ugettext as _ from mailchimp3 import MailChimp def notify(subject, body='.'): ...
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462...
2.957746
142
# coding=utf-8 # Copyright 2019 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 13130, 383, 10443, 17, 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.681648
267
from flask import Blueprint, render_template from flask_babel import format_number import critiquebrainz.db.users as db_users import critiquebrainz.db.review as db_review from bs4 import BeautifulSoup from markdown import markdown DEFAULT_CACHE_EXPIRATION = 10 * 60 # seconds frontend_bp = Blueprint('frontend', __nam...
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 65, 9608, 1330, 5794, 62, 17618, 198, 11748, 19976, 27825, 89, 13, 9945, 13, 18417, 355, 20613, 62, 18417, 198, 11748, 19976, 27825, 89, 13, 9945, 13, 19023, 355, 20...
3.381443
97
import strawberryfields as sf from strawberryfields import ops from strawberryfields.utils import random_interferometer from strawberryfields.apps import data, sample, subgraph, plot import plotly import networkx as nx import numpy as np
[ 11748, 41236, 25747, 355, 264, 69, 198, 6738, 41236, 25747, 1330, 39628, 198, 6738, 41236, 25747, 13, 26791, 1330, 4738, 62, 3849, 2232, 15635, 198, 6738, 41236, 25747, 13, 18211, 1330, 1366, 11, 6291, 11, 850, 34960, 11, 7110, 198, 117...
4.175439
57
#!/usr/bin/env python # # Copyright (c) 2015-2017 Nest Labs, 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/licen...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 1853, 12, 5539, 21420, 23500, 11, 3457, 13, 198, 2, 220, 220, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 220, 220, 49962, ...
3.245413
436
# -*- coding: utf-8 -*- """ Modules to support data reduction in Python. The main purpose of the base module ``Data_Reduction`` is to provide a suplerclass with a good set of attributes and methods to cover all common needs. The base module is also able to read data from a text file as a ``numpy`` structured array. ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 5841, 5028, 284, 1104, 1366, 7741, 287, 11361, 13, 198, 198, 464, 1388, 4007, 286, 262, 2779, 8265, 7559, 6601, 62, 7738, 8110, 15506, 318, 284, 2148, 257, ...
2.575362
2,833
""" PyGRB. A GRB light-curve analysis package. """ __version__ = "0.0.5" __author__ = 'James Paynter' from . import backend from . import fetch from . import main from . import postprocess from . import preprocess
[ 37811, 198, 20519, 10761, 33, 13, 198, 198, 32, 10863, 33, 1657, 12, 22019, 303, 3781, 5301, 13, 198, 37811, 198, 198, 834, 9641, 834, 796, 366, 15, 13, 15, 13, 20, 1, 198, 834, 9800, 834, 220, 197, 28, 705, 14731, 7119, 77, 353...
2.92
75
import os from dotenv import load_dotenv load_dotenv()
[ 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26518, 24330, 3419, 628 ]
3.111111
18
import numpy as np from wordreps import WordReps from algebra import cosine, normalize import tensorflow as tf import random from dataset import DataSet import CGRE_Model from Eval import eval_SemEval import sklearn.preprocessing # ============ End Imports ============ # ============ End of the Evaluation class ====...
[ 11748, 299, 32152, 355, 45941, 220, 198, 6738, 1573, 260, 862, 1330, 9678, 6207, 82, 198, 6738, 37139, 1330, 8615, 500, 11, 3487, 1096, 198, 11748, 11192, 273, 11125, 355, 48700, 220, 198, 11748, 4738, 198, 6738, 27039, 1330, 6060, 7248...
2.656878
647
from radtrans_integrate import radtrans_integrate from polsynchemis import polsynchemis import numpy as np import scipy.integrate # calculate synchrotron emissivity for given coefficients
[ 6738, 2511, 7645, 62, 18908, 4873, 1330, 2511, 7645, 62, 18908, 4873, 198, 6738, 755, 28869, 15245, 271, 1330, 755, 28869, 15245, 271, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 18908, 4873, 198, 198, 2, 15284, ...
3.634615
52
""" Copyright 2016 Brocade Communications Systems, 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 i...
[ 37811, 198, 15269, 1584, 2806, 46395, 14620, 11998, 11, 3457, 13, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.976048
167
import os __all__ = ['DATA_FOLDER', 'load_data'] DATA_FOLDER = os.path.dirname(os.path.abspath(__file__)) def load_data(name): """ Loads an Excel form from the data folder with the specified name. Parameters ---------- name : str The name of the form without file extension. """ ...
[ 11748, 28686, 198, 198, 834, 439, 834, 796, 37250, 26947, 62, 37, 3535, 14418, 3256, 705, 2220, 62, 7890, 20520, 628, 198, 26947, 62, 37, 3535, 14418, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, ...
2.634286
175
var = "Docker" print(f"Hello {var} world!")
[ 7785, 796, 366, 35, 12721, 1, 198, 198, 4798, 7, 69, 1, 15496, 1391, 7785, 92, 995, 2474, 8, 198 ]
2.25
20
""" Model mixin classes for auth, category and recipe modules """ from app import db # pylint: disable=C0103 # pylint: disable=E1101
[ 37811, 9104, 5022, 259, 6097, 329, 6284, 11, 6536, 290, 8364, 13103, 37227, 198, 198, 6738, 598, 1330, 20613, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 34, 486, 3070, 198, 2, 279, 2645, 600, 25, 15560, 28, 36, 1157, 486, 198 ]
3.139535
43
import dash_core_components as dcc import dash_html_components as html from config import strings def make_tab_port_map_controls( port_arr: list, port_val: str, vessel_types_arr: list, vessel_type_val: str, year_arr: list, year_val: int, month_arr: list, month_val: int, ) -> html.Div: ...
[ 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 6738, 4566, 1330, 13042, 628, 198, 4299, 787, 62, 8658, 62, 634, 62, 8899, 62, 13716, 82, 7, 198, 220, 220, 220, ...
1.631012
2,599
from typing import List from subs2srs.core.preview_item import PreviewItem
[ 6738, 19720, 1330, 7343, 198, 6738, 6352, 17, 82, 3808, 13, 7295, 13, 3866, 1177, 62, 9186, 1330, 22217, 7449, 628, 198 ]
3.5
22
import sys sys.path.append("..") from src.sync_ends_service import SyncEnd from src.parser import Parser if __name__ == "__main__": main()
[ 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 198, 6738, 12351, 13, 27261, 62, 2412, 62, 15271, 1330, 35908, 12915, 198, 6738, 12351, 13, 48610, 1330, 23042, 263, 628, 198, 198, 361, 11593, 3672, 834, 6624, ...
2.792453
53
# Copyright 2018-present Kensho Technologies, LLC. """Workarounds for OrientDB scheduler issue that causes poor query planning for certain queries. For purposes of query planning, the OrientDB query planner ignores "where:" clauses that hit indexes but do not use the "=" operator. For example, "CONTAINS" can be used t...
[ 2, 15069, 2864, 12, 25579, 29018, 8873, 21852, 11, 11419, 13, 198, 37811, 12468, 283, 3733, 329, 35275, 11012, 6038, 18173, 2071, 326, 5640, 3595, 12405, 5410, 329, 1728, 20743, 13, 198, 198, 1890, 4959, 286, 12405, 5410, 11, 262, 35275...
2.554265
8,781
from enum import IntEnum import functools import usb.core import usb.util from traffic_light.error import TrafficLightError, MultipleTrafficLightsError BM_REQUEST_TYPE = 0x21 B_REQUEST = 0x09 W_VALUE = 0x200 W_INDEX = 0x00 ID_VENDOR = 0x0d50 ID_PRODUCT = 0x0008 INTERFACE = 0 def __getattr__(self, name): ...
[ 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 11748, 1257, 310, 10141, 198, 11748, 38551, 13, 7295, 198, 11748, 38551, 13, 22602, 198, 198, 6738, 4979, 62, 2971, 13, 18224, 1330, 23624, 15047, 12331, 11, 20401, 15721, 2108, 43, 2337, 12...
2.228261
460
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: sample_analyze_orchestration_app_luis_response_async.py DESCRIPTION: This sample demonstrates how to analyze user query using an orchestra...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 20368, 650, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 2, 20368, 650, 198, 198, 37811, 198, 25664, 25, 6291, 62, 38200, 2736, 62, 273, 2395, 1...
3.018041
388
# flake8: noqa from schemas.client_credentials import * from schemas.message import * from schemas.token import * from schemas.user import *
[ 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 3897, 5356, 13, 16366, 62, 66, 445, 14817, 1330, 1635, 198, 6738, 3897, 5356, 13, 20500, 1330, 1635, 198, 6738, 3897, 5356, 13, 30001, 1330, 1635, 198, 6738, 3897, 5356, 13, 7220, 1330, 16...
3.204545
44
import json from web3 import Web3 from solcx import compile_standard, install_solc with open("./SimpleStorage.sol", "r") as file: simple_storage_src = file.read() # install solcx install_solc("0.8.0") # compile the source compiled_sol = compile_standard( { "language": "Solidity", "sources": ...
[ 11748, 33918, 198, 6738, 3992, 18, 1330, 5313, 18, 198, 6738, 1540, 66, 87, 1330, 17632, 62, 20307, 11, 2721, 62, 34453, 66, 628, 198, 4480, 1280, 7, 1911, 14, 26437, 31425, 13, 34453, 1600, 366, 81, 4943, 355, 2393, 25, 198, 220, ...
2.393678
1,044
from noise.dh.dh import DH from noise.cipher.cipher import Cipher from noise.hash.hash import Hash from noise.processing.handshakepatterns.handshakepattern import HandshakePattern from noise.processing.impl.handshakestate import HandshakeState from noise.processing.impl.symmetricstate import SymmetricState from noise....
[ 6738, 7838, 13, 34985, 13, 34985, 1330, 23809, 198, 6738, 7838, 13, 66, 10803, 13, 66, 10803, 1330, 44334, 198, 6738, 7838, 13, 17831, 13, 17831, 1330, 21059, 198, 6738, 7838, 13, 36948, 13, 4993, 32431, 33279, 82, 13, 4993, 32431, 33...
2.609337
407
import urllib.parse import webbrowser import json from xml.etree import ElementTree import sublime import SublimeHaskell.sublime_haskell_common as Common import SublimeHaskell.internals.utils as Utils import SublimeHaskell.internals.unicode_opers as UnicodeOpers import SublimeHaskell.symbols as symbols import Sublim...
[ 11748, 2956, 297, 571, 13, 29572, 198, 198, 11748, 3992, 40259, 198, 11748, 33918, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 198, 198, 11748, 41674, 198, 198, 11748, 3834, 27299, 19242, 17164, 13, 7266, 27299, 62, 10134, 17164, ...
2.865672
268
#!/usr/bin/env python # Copyright (C) 2017 Seeed Technology Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 34, 8, 2177, 1001, 2308, 8987, 15302, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407...
2.712941
425
""" Nonnegative CP decomposition by Hierarchical alternating least squares (HALS). With support for missing data. """ import numpy as np import scipy as sci from scipy import linalg from tensortools.operations import unfold, khatri_rao from tensortools.tensors import KTensor from tensortools.optimize import FitResult...
[ 37811, 198, 15419, 31591, 16932, 26969, 9150, 416, 36496, 998, 605, 39623, 1551, 24438, 357, 39, 23333, 737, 198, 3152, 1104, 329, 4814, 1366, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 355, 20681...
2.740984
1,830
""" @author: Jonas Eschle "Mayou36" DEPRECEATED! USE OTHER MODULES LIKE rd.data, rd.ml, rd.reweight, rd.score and rd.stat DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED! Contains several tools to convert, load, save and plot data """ import warnings import os import copy import pandas as pd import...
[ 37811, 198, 198, 31, 9800, 25, 40458, 8678, 354, 293, 366, 6747, 280, 2623, 1, 628, 198, 46162, 2200, 5222, 11617, 0, 23210, 25401, 19164, 6239, 1546, 34178, 374, 67, 13, 7890, 11, 374, 67, 13, 4029, 11, 374, 67, 13, 260, 6551, 11...
2.379442
7,598
from direct.directnotify import DirectNotifyGlobal import DistributedBoardOfficeAI from toontown.toonbase import ToontownGlobals from toontown.coghq.boardbothq import BoardOfficeLayout from direct.showbase import DirectObject import random
[ 6738, 1277, 13, 12942, 1662, 1958, 1330, 4128, 3673, 1958, 22289, 198, 11748, 4307, 6169, 29828, 27743, 20185, 198, 6738, 284, 756, 593, 13, 1462, 261, 8692, 1330, 1675, 756, 593, 9861, 672, 874, 198, 6738, 284, 756, 593, 13, 1073, 45...
3.75
64
from typing import Union def key_value_list(d: Union[dict, list], key=None) -> list: """ This function iterates over all the key-value pairs of a dictionary and returns a list of tuple (key, value) where the key contain only primitive value (i.e., no list or dict), e.g., string, number etc. d -- a diction...
[ 6738, 19720, 1330, 4479, 628, 198, 4299, 1994, 62, 8367, 62, 4868, 7, 67, 25, 4479, 58, 11600, 11, 1351, 4357, 1994, 28, 14202, 8, 4613, 1351, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163, 11629, 689, 625, 477, 262...
2.226376
963
from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans from yampy.models import extract_id
[ 6738, 331, 696, 88, 13, 499, 271, 13, 26791, 1330, 45751, 3103, 332, 353, 11, 4844, 62, 24455, 11, 4731, 1958, 62, 2127, 2305, 504, 198, 6738, 331, 696, 88, 13, 27530, 1330, 7925, 62, 312, 628 ]
3.162162
37
# -*- coding: utf-8 -*- """Actions and snippets.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import inspect from functools import partial, wraps import logging import re import sys import...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 32, 2733, 290, 45114, 526, 15931, 628, 198, 2, 16529, 32501, 198, 2, 1846, 3742, 198, 2, 16529, 32501, 198, 198, 11748, 10104, 198, 6738, 1257, 310, 10141, ...
2.570377
3,261
""" delete all .pyc bytecode files in a directory tree: use the command line arg as root if given, else current working dir """ import os, sys findonly = False rootdir = os.getcwd() if len(sys.argv) == 1 else sys.argv[1] found = removed = 0 for (thisDirLevel, subsHere, filesHere) in os.walk(rootdir): for filename...
[ 37811, 198, 33678, 477, 764, 9078, 66, 18022, 8189, 3696, 287, 257, 8619, 5509, 25, 779, 262, 198, 21812, 1627, 1822, 355, 6808, 611, 1813, 11, 2073, 1459, 1762, 26672, 198, 37811, 198, 198, 11748, 28686, 11, 25064, 198, 19796, 8807, ...
2.10705
383
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import boto3 from logger import logger
[ 11748, 275, 2069, 18, 198, 198, 6738, 49706, 1330, 49706, 628 ]
3.727273
11
from typing import Any, Dict, Optional, Type, Union from cx_const import Light, PredefinedActionsMapping from cx_core.color_helper import get_color_wheel from cx_core.controller import action from cx_core.feature_support.light import LightSupport from cx_core.integration import EventData from cx_core.integration.decon...
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 5994, 11, 4479, 198, 198, 6738, 43213, 62, 9979, 1330, 4401, 11, 14322, 18156, 32, 2733, 44, 5912, 198, 6738, 43213, 62, 7295, 13, 8043, 62, 2978, 525, 1330, 651, 62, 8043, 62, ...
3.111406
377
from typing import Union import pandas as pd from kts.core.frame import KTSFrame AnyFrame = Union[pd.DataFrame, KTSFrame]
[ 6738, 19720, 1330, 4479, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 479, 912, 13, 7295, 13, 14535, 1330, 509, 4694, 19778, 198, 198, 7149, 19778, 796, 4479, 58, 30094, 13, 6601, 19778, 11, 509, 4694, 19778, 60, 198 ]
2.97619
42
from app import db from flask.ext.login import UserMixin
[ 6738, 598, 1330, 20613, 198, 6738, 42903, 13, 2302, 13, 38235, 1330, 11787, 35608, 259, 628, 198 ]
3.470588
17
import markdown from comments.forms import CommentForm,BookCommentForm,MovieCommentForm from django.shortcuts import render, get_object_or_404 from.models import Post,Category,Tag, Book,Movie #from django.http import HttpResponse from django.views.generic import ListView, DetailView from django.utils.text import slugif...
[ 11748, 1317, 2902, 198, 6738, 3651, 13, 23914, 1330, 18957, 8479, 11, 10482, 21357, 8479, 11, 25097, 21357, 8479, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 13, 27530, 1330,...
2.152632
1,140
# -------------------------------------------------------------------------------------------- # 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,...
3.409283
711
import sys IMAGES_PATH = sys.path[1] + "/Images" BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background' USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg" SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite' PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile' CONFIGURATION_FILES_PATH = sys.path[1] + "/configur...
[ 11748, 25064, 628, 198, 3955, 25552, 62, 34219, 796, 25064, 13, 6978, 58, 16, 60, 1343, 12813, 29398, 1, 198, 31098, 46025, 62, 3955, 25552, 62, 34219, 796, 45325, 62, 34219, 1343, 31051, 25249, 6, 198, 29904, 62, 10778, 62, 31098, 46...
2.789916
119
import unittest import torch from parameterized import parameterized from src.constructor import create_backbone from src.models.backbones.utils import list_models from .test_segmentation import example_backbones
[ 11748, 555, 715, 395, 198, 198, 11748, 28034, 198, 6738, 11507, 1143, 1330, 11507, 1143, 198, 198, 6738, 12351, 13, 41571, 273, 1330, 2251, 62, 1891, 15992, 198, 6738, 12351, 13, 27530, 13, 1891, 35095, 13, 26791, 1330, 1351, 62, 27530,...
3.875
56
import typing from . import base from . import fields from .inline_query_result import InlineQueryResult from .location import Location from .user import User
[ 11748, 19720, 198, 198, 6738, 764, 1330, 2779, 198, 6738, 764, 1330, 7032, 198, 6738, 764, 45145, 62, 22766, 62, 20274, 1330, 554, 1370, 20746, 23004, 198, 6738, 764, 24886, 1330, 13397, 198, 6738, 764, 7220, 1330, 11787, 628 ]
4.128205
39