content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- import random from typing import Any, Dict, List from chaoslib.types import Configuration, Secrets from logzero import logger from chaoscf.api import call_api, get_app_by_name, get_app_routes_by_host, \ get_app_instances, get_bind_by_name, get_routes_by_host, get_apps_for_org __all__ = ['...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4738, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 198, 6738, 11918, 8019, 13, 19199, 1330, 28373, 11, 23561, 198, 6738, 2604, 22570, 1330, 49706, 1...
2.339384
3,636
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
[ 2, 15069, 357, 66, 8, 12131, 11, 14236, 952, 5921, 265, 382, 11, 20059, 4992, 5136, 2031, 402, 2022, 39, 11, 290, 198, 2, 20671, 2059, 286, 360, 1670, 38863, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 29...
2.906745
1,705
import bs4 from urllib.request import urlopen from bs4 import BeautifulSoup as soup ## Test Development my_url = 'https://www.bridgewaterassociates.com/people' # opening url and grabbing the web page uClient = urlopen(my_url) page_html = uClient.read() uClient.close() # html parsing page_soup = soup(page_html, 'htm...
[ 11748, 275, 82, 19, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 17141, 198, 198, 2235, 6208, 7712, 198, 198, 1820, 62, 6371, 796, 705, 5450, 1378, 2503, 13, 10236, 40...
2.91866
418
from django.shortcuts import redirect, render from django.urls.base import reverse from django.contrib.auth.decorators import login_required from rest_framework import status, viewsets, permissions from rest_framework.decorators import action from rest_framework.response import Response from api.models import Author,...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 42625, 14208, 13, 6371, 82, 13, 8692, 1330, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 198, 6738, ...
4
120
import os import torch import numpy as np import imageio import cv2 import pickle as pkl import random
[ 11748, 28686, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2939, 952, 198, 11748, 269, 85, 17, 198, 11748, 2298, 293, 355, 279, 41582, 198, 11748, 4738, 628, 628 ]
3.3125
32
lambda selectionSort: for i in range(len(arr)): minimum = 1 for j in range (i + 1, len(arr)): if arr[j] < arr[minimum]: minimum = j arr[minimum], arr[i] = arr[i], arr[minimum] return arr arr = [2,4,7,5,8,3] selectedarr = selectionSort(arr) print(selectedarr)
[ 50033, 6356, 42758, 25, 201, 198, 201, 198, 197, 1640, 1312, 287, 2837, 7, 11925, 7, 3258, 8, 2599, 201, 198, 197, 197, 39504, 796, 352, 201, 198, 201, 198, 197, 197, 1640, 474, 287, 2837, 357, 72, 1343, 352, 11, 18896, 7, 3258, ...
2.145985
137
import sqlite3
[ 11748, 44161, 578, 18, 201, 198, 201, 198 ]
2.25
8
from __future__ import division from __future__ import print_function import sys from os import path from argparse import ArgumentParser import numpy as np sys.path.append(path.dirname(path.dirname(path.dirname(path.abspath(__file__)))) + '/utils/') sys.path.append(path.dirname(path.dirname(path.dirname(path...
[ 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198, 201, 198, 11748, 25064, 201, 198, 6738, 28686, 1330, 3108, 201, 198, 6738, 1822, 29572, 1330, 45751, 46677, 201, 198, 11748, 299, 32...
2.702564
195
import sys from argparse import ArgumentParser if __name__ == '__main__': args = parse_args() filename = args.filename code = get_code_from_file(filename) spoon_interpreter = SpoonInterpreter() spoon_interpreter.interpret(code)
[ 11748, 25064, 198, 198, 6738, 1822, 29572, 1330, 45751, 46677, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 26498, 796, 21136, 62, 22046, 3419, 198, 220, 220, 220, 29472, 796, 26498, ...
2.865169
89
from ioc_fetch.api.sources import abuse_ip_db from ioc_fetch.api.sources import apivoid from ioc_fetch.api.sources import shodan from ioc_fetch.api.sources import vt all_sources = [ abuse_ip_db.AbuseIPDB(), apivoid.APIVoid(), shodan.Shodan(), vt.VT() ]
[ 6738, 1312, 420, 62, 69, 7569, 13, 15042, 13, 82, 2203, 1330, 5076, 62, 541, 62, 9945, 198, 6738, 1312, 420, 62, 69, 7569, 13, 15042, 13, 82, 2203, 1330, 2471, 452, 1868, 198, 6738, 1312, 420, 62, 69, 7569, 13, 15042, 13, 82, 22...
2.239669
121
import factory from factory.django import DjangoModelFactory from ..models import Continent, Country, Event, Person
[ 11748, 8860, 198, 6738, 8860, 13, 28241, 14208, 1330, 37770, 17633, 22810, 198, 198, 6738, 11485, 27530, 1330, 45778, 11, 12946, 11, 8558, 11, 7755, 628, 628, 198 ]
4.321429
28
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
[ 2, 15069, 357, 66, 8, 33448, 4013, 5276, 40778, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 770, 318, 11971, 3788, 422, 4013, 5276, 40778, 3457, 11, 329, 11247, 198, 2, 290, 8733, 2800, 534, 1664, 2775, 4706, 13, 198, 2, 220, 198, 2,...
3.027081
2,511
#!/usr/bin/python3 # Copyright 2020 Intel Corporation # # 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, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 15069, 12131, 8180, 10501, 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, 28...
2.440016
2,559
import pytest import numpy as np import scipy.io.wavfile from pathlib import Path from pesq import pesq, NoUtterancesError, PesqError
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 32317, 80, 1330, 32317, 80, 11, 1400, 18274, 353, 1817, 12331, 11, 38...
3.044444
45
# 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...
4.053763
372
#-*-coding:utf-8-*- from helper.dataset.pascal_voc import PascalVOC from helper.processing.roidb import prepare_roidb, add_bbox_regression_targets
[ 2, 12, 9, 12, 66, 7656, 25, 40477, 12, 23, 12, 9, 12, 198, 6738, 31904, 13, 19608, 292, 316, 13, 79, 27747, 62, 18893, 1330, 35163, 53, 4503, 198, 6738, 31904, 13, 36948, 13, 3882, 65, 1330, 8335, 62, 3882, 65, 11, 751, 62, 65...
2.666667
57
m = Main() s = StringReader("""name age Yamada 50 Tanaka 40 Wada 30""") f = open('1.tsv') t = TsvFileReader(f) m.run(s) m.run(t) f.close()
[ 198, 76, 796, 8774, 3419, 198, 82, 796, 10903, 33634, 7203, 15931, 3672, 197, 496, 198, 56, 321, 4763, 197, 1120, 198, 45557, 8130, 197, 1821, 198, 54, 4763, 197, 1270, 15931, 4943, 198, 69, 796, 1280, 10786, 16, 13, 912, 85, 11537,...
1.905405
74
from momiji.modules import permissions from discord.ext import commands class AIMod(commands.Cog): """ This module is about automatic message moderation. """ @commands.command(name="aimod_add", brief="Ban a word") @commands.check(permissions.is_admin) @commands.check(permissions.is_not_ignore...
[ 6738, 1995, 20770, 13, 18170, 1330, 21627, 198, 6738, 36446, 13, 2302, 1330, 9729, 628, 198, 4871, 317, 3955, 375, 7, 9503, 1746, 13, 34, 519, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 8265, 318, 546, 11353, 3275, 34...
2.183623
806
from db_classes import TableReference __author__ = 'Rob MacKinnon <rob.mackinnon@gmail.com>' __name__ = "overviewer_db.db_defs" __package__ = "overviewer_db" __copyright__ = "Copyright (c) 2016 Rob MacKinnon" __license__ = "MIT" WORLD_NETHER = -1 WORLD_OVERWORLD = 0 WORLD_END = 1 POI_STATE_UNDISCOVERED = -1 POI_STAT...
[ 6738, 20613, 62, 37724, 1330, 8655, 26687, 198, 198, 834, 9800, 834, 796, 705, 14350, 4100, 42, 45067, 1279, 22609, 13, 76, 441, 45067, 31, 14816, 13, 785, 29, 6, 198, 834, 3672, 834, 796, 366, 2502, 1177, 263, 62, 9945, 13, 9945, ...
2.716745
1,917
# coding:utf-8 __author__ = 'Haddy Yang(Ysh)' __start_date__ = '2016-06-12' """ likes app """ # from __future__ import unicode_literals from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey # from django.contrib.cont...
[ 2, 19617, 25, 40477, 12, 23, 198, 834, 9800, 834, 796, 705, 39, 13218, 10998, 7, 56, 1477, 33047, 198, 834, 9688, 62, 4475, 834, 796, 705, 5304, 12, 3312, 12, 1065, 6, 198, 37811, 198, 220, 220, 220, 7832, 598, 198, 37811, 198, ...
3.222222
135
from operator import concat import numpy as np import torch import torch.nn as nn from torch.nn import init from torch.autograd import Variable from scipy.special import factorial2 from torch.nn import functional as F from typing import Optional, Any from torch import Tensor # from torch import linalg as LA import math...
[ 6738, 10088, 1330, 1673, 265, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 2315, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 629...
3.755814
86
#!/usr/bin/env python command = oslc("-d test.osl")
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 21812, 796, 267, 6649, 66, 7203, 12, 67, 1332, 13, 418, 75, 4943, 198 ]
2.208333
24
@then('the output contains "{text}"') @then('the output does not contain "{text}"')
[ 198, 31, 8524, 10786, 1169, 5072, 4909, 45144, 5239, 36786, 11537, 198, 198, 31, 8524, 10786, 1169, 5072, 857, 407, 3994, 45144, 5239, 36786, 11537, 198 ]
3.307692
26
from rez.config import config from rez.resolved_context import ResolvedContext from rez.packages_ import get_latest_package_from_string, Variant from rez.exceptions import PackageNotFoundError, PackageTestError from rez.utils.colorize import heading, Printer from pipes import quote import subprocess import time import ...
[ 6738, 302, 89, 13, 11250, 1330, 4566, 198, 6738, 302, 89, 13, 411, 5634, 62, 22866, 1330, 1874, 5634, 21947, 198, 6738, 302, 89, 13, 43789, 62, 1330, 651, 62, 42861, 62, 26495, 62, 6738, 62, 8841, 11, 38215, 198, 6738, 302, 89, 13...
2.233351
3,724
#!/usr/bin/env python3 """Advent of Code 2015, Day 8: Matchsticks""" import re import aoc import pytest def parse_for_length(string): """Return the length of string once escapes and quotes are parsed Recognised escapes are the following: \\ Escaped backslash \" Escaped quote ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 2782, 1151, 286, 6127, 1853, 11, 3596, 807, 25, 13225, 34810, 37811, 198, 198, 11748, 302, 198, 198, 11748, 257, 420, 198, 11748, 12972, 9288, 628, 198, 4299, 21136, 62, 164...
2.327327
999
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CESNET. # # OARepo-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """OArepo module that adds support for communities""" from flask import g from flask_principal import UserNee...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 33448, 42700, 12884, 13, 198, 2, 198, 2, 440, 1503, 538, 78, 12, 30813, 871, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14...
2.804153
1,782
from django.utils.safestring import mark_safe from django.apps import apps from django import template # Register register = template.Library() @register.simple_tag def app_attr(name): """ Returns an attribute from the apps library to the template """ return(mark_safe(getattr(apps.get_app_config('Contactform'...
[ 6738, 42625, 14208, 13, 26791, 13, 49585, 395, 1806, 1330, 1317, 62, 21230, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 2, 17296, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 31,...
3.085106
235
from django.urls import path from . import views urlpatterns = [ path("v1/sell/add", views.get_sell), path("v1/sell/all", views.Sells_View.as_view()), path("v1/sell/<int:id_sell>", views.get_sell), path("v1/sell/delete/<int:id_sell>", views.delete_sell), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7203, 85, 16, 14, 7255, 14, 2860, 1600, 5009, 13, 1136, 62, 7255, 828, 198, 220, 220, 220, 31...
2.319328
119
import plab.lasers as lasers import plab.power_meters as power_meters import plab.config as config import plab.smu as smu import plab.measurement as measurement __all__ = ["lasers", "power_meters", "config", "smu", "measurement"] __version__ = "0.0.1"
[ 11748, 458, 397, 13, 75, 19865, 355, 34628, 198, 11748, 458, 397, 13, 6477, 62, 4164, 364, 355, 1176, 62, 4164, 364, 198, 11748, 458, 397, 13, 11250, 355, 4566, 198, 11748, 458, 397, 13, 5796, 84, 355, 895, 84, 198, 11748, 458, 39...
2.791209
91
# -*- coding: utf-8 -*- from __future__ import print_function import matplotlib import numpy import CoolProp CP = CoolProp.CoolProp SMALL = 1E-5
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 2603, 29487, 8019, 198, 11748, 299, 32152, 198, 198, 11748, 15226, 24331, 198, 8697, 796, 15226, 24331...
2.678571
56
## # CH-231-A # hw6_p2.py # Henri Sota # h.sota@jacobs-university.de ## import time import random if (__name__ == '__main__'): with open('dataHeapSort.txt', 'w') as out: for n in range(0, 500001, 25000): # Calculate time taken for Heap Sort to sort an array of length n A = case(n) ...
[ 2235, 198, 2, 197, 3398, 12, 25667, 12, 32, 198, 2, 197, 36599, 21, 62, 79, 17, 13, 9078, 198, 2, 197, 26055, 380, 311, 4265, 198, 2, 197, 71, 13, 82, 4265, 31, 30482, 8158, 12, 403, 1608, 13, 2934, 198, 2235, 198, 11748, 640,...
1.925532
282
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # 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 applicabl...
[ 2, 15069, 1853, 30446, 15503, 12, 11869, 446, 7712, 5834, 11, 406, 13, 47, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, ...
3.523962
313
# Generated by Django 2.0.4 on 2018-04-25 20:39 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 19, 319, 2864, 12, 3023, 12, 1495, 1160, 25, 2670, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#--------------------------------------------# # 该部分代码用于看网络结构 #--------------------------------------------# from nets.yolo import yolo_body from utils.utils import net_flops if __name__ == "__main__": input_shape = [640, 640] num_classes = 80 phi = 'l' model = yolo_body([input_sh...
[ 2, 3880, 10541, 2, 201, 198, 2, 220, 220, 5525, 107, 98, 32849, 101, 26344, 228, 47987, 163, 254, 223, 18796, 101, 12859, 236, 40367, 233, 163, 121, 239, 163, 119, 250, 163, 119, 241, 162, 252, 226, 201, 198, 2, 3880, 10541, 2, ...
2.302872
383
import numpy as np import os import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.cm import get_cmap import sklearn from sklearn.datasets import make_blobs from sklearn.cluster import AgglomerativeClustering ################################################## ### Agglomerative clustering on random...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 11215, 1330, 651, 62, 66, 8899, 198, ...
3.759174
436
import random import requests import demjson from bs4 import BeautifulSoup __url = 'http://fundf10.eastmoney.com/FundArchivesDatas.aspx?type=jjcc&code={}&topline=50&year=&month=&rt=' + \ str(random.random()) __url_zcpz = 'http://fundf10.eastmoney.com/zcpz_{}.html' headers = { 'User-Agent': 'Mozilla/5.0 (Window...
[ 11748, 4738, 198, 11748, 7007, 198, 11748, 1357, 17752, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 834, 6371, 796, 705, 4023, 1378, 10990, 69, 940, 13, 23316, 26316, 13, 785, 14, 24553, 19895, 1083, 27354, 292, 13, 3174...
2.447674
172
from Optimizacion.instruccion import Instruccion
[ 6738, 30011, 528, 49443, 13, 8625, 622, 535, 295, 1330, 2262, 622, 535, 295 ]
3.428571
14
from autowired import AutowireField, FromNamespace, enable_autowire from wired import ServiceRegistry from zope.interface import Interface
[ 6738, 1960, 322, 1202, 1330, 5231, 322, 557, 15878, 11, 3574, 36690, 10223, 11, 7139, 62, 2306, 322, 557, 198, 6738, 28217, 1330, 4809, 8081, 4592, 198, 6738, 1976, 3008, 13, 39994, 1330, 26491, 628, 628, 628 ]
3.891892
37
from django.urls import path from rest_framework import routers from . import views urlpatterns = routers.DefaultRouter().urls+[ path(r'key-exchange/', views.KeyExchangeView.as_view(), name='key_exchange'), path(r'api-login/', views.ApiLoginView.as_view(), name='api_login') ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 41144, 13, 19463, 49, 39605, 22446, 6371, 82, 10, 58, 198, 220, 220, 220, 3108, 7, 81...
2.831683
101
'''Tests the tools and utilities in pulsar.utils.''' import unittest import pickle from pulsar.utils.structures import AttributeDictionary
[ 7061, 6, 51, 3558, 262, 4899, 290, 20081, 287, 22271, 283, 13, 26791, 2637, 7061, 198, 11748, 555, 715, 395, 198, 11748, 2298, 293, 198, 198, 6738, 22271, 283, 13, 26791, 13, 7249, 942, 1330, 3460, 4163, 35, 14188, 628 ]
3.525
40
"""Implementation of the 'grad' operation.""" from collections import defaultdict from functools import reduce from .. import lib, operations from ..lib import ( ALIASID, About, Constant, Graph, MetaGraph, MultitypeGraph, MyiaTypeError, Named, NamedDebugInfo, Parameter, cor...
[ 37811, 3546, 32851, 286, 262, 705, 9744, 6, 4905, 526, 15931, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 198, 6738, 11485, 1330, 9195, 11, 4560, 198, 6738, 11485, 8019, 1330, 357, 198, 220, ...
2.024161
3,932
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.534759
187
ENVIRONMENT_01 = 'S_ENVIRONMENT_01' IMU_01 = 'S_IMU_01'
[ 198, 1677, 53, 4663, 1340, 10979, 62, 486, 796, 705, 50, 62, 1677, 53, 4663, 1340, 10979, 62, 486, 6, 198, 3955, 52, 62, 486, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 50, 62, 3955, 52, 62, 486, 6, 198 ]
1.511628
43
import json import os import subprocess import sys import hashlib import time import logging import threading from functools import partial import functools from TPool.TPool import Pool from threading import Lock from multiprocessing import Process, Pipe import multiprocessing import traceback from stiqueue.sqclient i...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 12234, 8019, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 1257, 310, 10141, 198, 6...
2.167313
4,381
# C:\Users\johnr\Documents\git\dtsa2scripts\test-mc3-simulate-si\test-mc3-simulate-si.py # # 2021-06-11 J.R. Minter (updated) # # at 5kV with 10000 trajectories: # import os, shutil, time import dtsa2.mcSimulate3 as mc3 start = time.time() homDir = os.environ['HOME'] homDir = homDir.replace('\\','/') wrkDir = homDir...
[ 2, 327, 7479, 14490, 59, 30686, 81, 59, 38354, 59, 18300, 59, 67, 912, 64, 17, 46521, 59, 9288, 12, 23209, 18, 12, 14323, 5039, 12, 13396, 59, 9288, 12, 23209, 18, 12, 14323, 5039, 12, 13396, 13, 9078, 198, 2, 198, 2, 33448, 12,...
2.342803
528
import logging import discord from discord.ext.commands.errors import ExtensionError from milton.core.bot import _get_prefix from milton.core.bot import Milton from milton.core.config import CONFIG log = logging.getLogger(__name__) log.debug("Making the Milton Bot instance") intents = discord.Intents.all() milton...
[ 11748, 18931, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 13, 48277, 1330, 27995, 12331, 198, 198, 6738, 1465, 1122, 13, 7295, 13, 13645, 1330, 4808, 1136, 62, 40290, 198, 6738, 1465, 1122, 13, 7295, 13, 13645, ...
2.675325
385
import orderedset
[ 11748, 6149, 2617, 198 ]
4.5
4
import os import json import time import pathlib import argparse import numpy as np import pandas as pd import multiprocessing as mp from datetime import datetime import pytorch_lightning as pl from utils import gen_door_env_data from learning import GAN from learning.data import DataModule NUM_RUNS = 15 NUM_PROCESS...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 3108, 8019, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 6738, 4818, ...
2.493397
833
import logging from flask_mail import Message from server import mail logger = logging.getLogger(__name__) DEFAULT_SENDER = "no-reply@mediacloud.org"
[ 11748, 18931, 198, 6738, 42903, 62, 4529, 1330, 16000, 198, 198, 6738, 4382, 1330, 6920, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 7206, 38865, 62, 50, 10619, 1137, 796, 366, 3919, 12, ...
3
52
from Voicelab.pipeline.Node import Node from parselmouth.praat import call from Voicelab.toolkits.Voicelab.VoicelabNode import VoicelabNode # MANIPULATE PITCH NODE # WARIO pipeline node for manipulating the pitch of a voice. # ARGUMENTS # 'voice' : sound file generated by parselmouth praat # RETURNS
[ 6738, 20687, 291, 417, 397, 13, 79, 541, 4470, 13, 19667, 1330, 19081, 198, 6738, 1582, 741, 14775, 13, 79, 430, 265, 1330, 869, 198, 6738, 20687, 291, 417, 397, 13, 25981, 74, 896, 13, 42144, 291, 417, 397, 13, 42144, 291, 417, 3...
2.914286
105
# # Copyright (c) 2019 UCT Prague. # # default_acls.py is part of Invenio Explicit ACLs # (see https://github.com/oarepo/invenio-explicit-acls). # # 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 Softw...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 471, 4177, 37079, 13, 198, 2, 198, 2, 4277, 62, 330, 7278, 13, 9078, 318, 636, 286, 554, 574, 952, 11884, 17382, 82, 198, 2, 357, 3826, 3740, 1378, 12567, 13, 785, 14, 78, 533, 7501, 14, 25...
2.522742
1,561
#Code mostly taken from sickbeard (author Nick Wolfe) #See http://code.google.com/p/sickbeard/ from __future__ import with_statement import logging import os import platform import shutil import subprocess import urllib import tarfile import markdown import requests from nzbhydra import config, backup_debug from fu...
[ 2, 10669, 4632, 2077, 422, 6639, 39433, 357, 9800, 8047, 37013, 8, 198, 2, 6214, 2638, 1378, 8189, 13, 13297, 13, 785, 14, 79, 14, 82, 624, 39433, 14, 198, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 198, 11748, 18931, ...
3.203209
187
import unittest import time from pymongo import MongoClient from moquag import MongoQueryAggregator from time import sleep from .settings import MONGO_DB_SETTINGS, logger from collections import Counter
[ 11748, 555, 715, 395, 198, 11748, 640, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 6941, 421, 363, 1330, 42591, 20746, 46384, 2301, 1352, 198, 6738, 640, 1330, 3993, 198, 6738, 764, 33692, 1330, 25000, 11230, 62, 11012, ...
3.923077
52
# Copyright 2017 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ 2, 220, 220, 15069, 2177, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11...
3.271642
335
import datetime import os from dataclasses import dataclass import asyncio import discord from discord.ext import commands import textstat from chatterbot import ChatBot from chatterbot.conversation import Statement from chatterbot.trainers import ChatterBotCorpusTrainer #Yuki Chan TOKEN = '' #put discord bot token he...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 11748, 30351, 952, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 2420, 14269, 198, 6738, 37303, 13645, 1330, 24101, 2...
3.240506
158
## function take (O(N) + O(NLogN)) time overall time --> O(NlogN) is unsorted array is given... ## Driver code...!!!!! if __name__ == "__main__": n = int(input()) arr = [] for i in range(n): temp = list(map(int,input().split())) arr.append(temp) print('before merge input list',arr) ...
[ 2235, 2163, 1011, 357, 46, 7, 45, 8, 1343, 440, 7, 45, 11187, 45, 4008, 640, 4045, 640, 14610, 440, 7, 45, 6404, 45, 8, 318, 5576, 9741, 7177, 318, 1813, 986, 198, 198, 2235, 12434, 2438, 986, 50184, 198, 361, 11593, 3672, 834, ...
2.373563
174
from datetime import datetime from os import write, close, path import math import tempfile from engines.generic.abstract import AbstractMDEngine, L32_PLATFORM from engines.generic.exception import UnsupportedFileTypeForScanner
[ 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 28686, 1330, 3551, 11, 1969, 11, 3108, 198, 11748, 10688, 198, 11748, 20218, 7753, 198, 6738, 11874, 13, 41357, 13, 397, 8709, 1330, 27741, 44, 7206, 782, 500, 11, 406, 2624, 62, 648...
3.770492
61
# -*- coding: utf-8 -*- """ Created on Sat Jun 27 17:25:21 2020 @author: WAEL """ original_sentence="بالإضافة إلى 03 ‬أغنية داخل الأحداث" inflected_sentence="بالإضافة إلى " import requests import json url = 'http://127.0.0.1:5000/ar_countable' myobj = { 'count':'30', 'noun':'أغنيات', 'gender':'', 'case':'', 'dual':...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 7653, 2681, 1596, 25, 1495, 25, 2481, 12131, 198, 198, 31, 9800, 25, 16400, 3698, 198, 37811, 198, 14986, 62, 34086, 594, 2625, 39848, 2352...
2.14053
491
#!/usr/bin/env python """ Provide Line function (y= Ax + B). Until July 10, 2016 this function provided (y= A + Bx). This however was contrary to all the other code using it which assumed (y= mx+b) or in this nomenclature (y=Ax + B). This lead to some contortions in the code and worse incorrect calculations until now...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 15946, 485, 6910, 2163, 357, 88, 28, 12176, 1343, 347, 737, 14303, 2901, 838, 11, 1584, 428, 2163, 2810, 198, 7, 88, 28, 317, 1343, 347, 87, 737, 220, 770, 2158, 373, 1...
2.317708
1,344
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: base.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 2779, 13, 1676, 1462, 198, 37811, 8645, 515, 8435, 11876, 2438, 526, 15931...
2.558667
750
import lmhash lmhash.lmhash_test()
[ 11748, 300, 76, 17831, 201, 198, 201, 198, 75, 76, 17831, 13, 75, 76, 17831, 62, 9288, 3419, 201, 198 ]
1.95
20
# # run 'python shader-compile.py' on OSX to compile # the example metal shader files into a header # with hexdumps of the shader binary code. # import subprocess, tempfile, binascii SDK = None ###-- start tmpdir = tempfile.gettempdir() vs_air_tmp = tmpdir + "/vs.air" vs_lib_tmp = tmpdir + "/vs.lib" vs_out_tmp = tm...
[ 2, 198, 2, 1057, 705, 29412, 33030, 12, 5589, 576, 13, 9078, 6, 319, 7294, 55, 284, 17632, 198, 2, 262, 1672, 6147, 33030, 3696, 656, 257, 13639, 198, 2, 351, 17910, 67, 8142, 286, 262, 33030, 13934, 2438, 13, 198, 2, 198, 198, ...
2.125612
613
from rdflib import Literal
[ 6738, 374, 67, 2704, 571, 1330, 25659, 1691, 628 ]
3.111111
9
#!/usr/bin/env python3 """ This Python script is designed to query internal repositories for the homophones associated with the given word. """ __author__ = 'John Bumgarner' __date__ = 'June 11, 2021' __status__ = 'Production' __license__ = 'MIT' __copyright__ = "Copyright (C) 2021 John Bumgarner" ###################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 1212, 11361, 4226, 318, 3562, 284, 12405, 5387, 38072, 329, 262, 198, 26452, 2522, 1952, 3917, 351, 262, 1813, 1573, 13, 198, 37811, 198, 834, 9800, 834, 796, 705,...
2.719507
2,271
# # Copyright (c) 2007-2010 Lindquist Consulting, Inc. # All rights reserved. # # Written by Dr. Kent Lindquist, Lindquist Consulting, Inc. # # This software is licensed under the New BSD license: # # Redistribution and use in source and ...
[ 2, 198, 2, 220, 220, 15069, 357, 66, 8, 4343, 12, 10333, 9329, 30062, 41005, 11, 3457, 13, 198, 2, 220, 220, 1439, 2489, 10395, 13, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.412815
5,041
import requests import sys import locale headers = { 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4083.0 Safari/537.36 Edg/82....
[ 11748, 7007, 198, 11748, 25064, 198, 11748, 36693, 198, 198, 50145, 796, 1391, 198, 220, 220, 220, 705, 32048, 10354, 705, 14894, 12, 282, 425, 3256, 198, 220, 220, 220, 705, 30562, 12, 15988, 10354, 705, 9806, 12, 496, 28, 15, 3256, ...
1.740719
3,448
from distutils.core import setup setup(name="instruments", py_modules=['adrcontrol', 'adrcontrol_mpl', 'agilent33220a', 'gpib_instrument', 'gpibinter', 'instrument', 'lakeshore370', 'lakeshore370_ser', 'lakeshore370_thermometer', 'lookup', 'lr700', 'sr7270', ...
[ 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 40406, 7, 3672, 2625, 259, 2536, 2886, 1600, 198, 220, 220, 220, 220, 220, 12972, 62, 18170, 28, 17816, 41909, 13716, 3256, 705, 41909, 13716, 62, 76, 489, 3256, 705, 363, 346, ...
1.913793
406
#! /usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, ...
3.170426
399
from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from bw_tools.common.bw_api_tool import CompNodeID from sd.api.sdproperty import SDPropertyInheritanceMethod from . import optimizer if TYPE_CHECKING: from bw_tools.common.bw_node import BWNode @dataclass
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 275, 86, 62, 31391, 13, 11321, 13, 65, 86, 62, 15042, 62, 25981, 1330, 308...
3.17
100
""" The ``fnc`` library is a functional-style utility library with an emphasis on using generators to process sequences of data. This allows one to easily build data processing pipelines to more efficiently munge data through function composition. All public functions are available from the main module. :: impor...
[ 37811, 198, 464, 7559, 69, 10782, 15506, 5888, 318, 257, 10345, 12, 7635, 10361, 5888, 351, 281, 12476, 319, 1262, 27298, 284, 198, 14681, 16311, 286, 1366, 13, 770, 3578, 530, 284, 3538, 1382, 1366, 7587, 31108, 284, 517, 198, 16814, ...
2.608949
2,749
import tkinter as tk from tkinter import ttk root = tk.Tk() root.geometry("600x300") root.title("Entry") entry_var = tk.StringVar() ttk.Entry(root, textvariable=entry_var).pack() ttk.Entry(root, show="*").pack() root.mainloop()
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, 198, 15763, 796, 256, 74, 13, 51, 74, 3419, 198, 15763, 13, 469, 15748, 7203, 8054, 87, 6200, 4943, 198, 15763, 13, 7839, 7203, 30150, 4943, 198, ...
2.468085
94
# The new config inherits a base config to highlight the necessary modification _base_ = '../mask_rcnn/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_coco.py' # We also need to change the num_classes in head to match the dataset's annotation model = dict( roi_head=dict( bbox_head=dict(num_classes=1), mask...
[ 2, 383, 649, 4566, 10639, 896, 257, 2779, 4566, 284, 7238, 262, 3306, 17613, 198, 62, 8692, 62, 796, 705, 40720, 27932, 62, 6015, 20471, 14, 27932, 62, 6015, 20471, 62, 81, 1120, 62, 66, 21223, 62, 69, 21999, 62, 76, 2536, 391, 12...
1.993213
1,326
# log21.Colors.py # CodeWriter21 import re as _re import webcolors as _webcolors from typing import Union as _Union, Sequence as _Sequence __all__ = ['Colors', 'get_color', 'get_colors', 'ansi_esc', 'get_color_name', 'closest_color'] # Regex pattern to find ansi colors in message ansi_esc = _re.compile(r'\x1b\[((?:\...
[ 2, 2604, 2481, 13, 5216, 669, 13, 9078, 198, 2, 6127, 34379, 2481, 198, 198, 11748, 302, 355, 4808, 260, 198, 11748, 3992, 4033, 669, 355, 4808, 12384, 4033, 669, 198, 6738, 19720, 1330, 4479, 355, 4808, 38176, 11, 45835, 355, 4808, ...
2.358249
2,582
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Calendar(object): """NOTE: This class is auto...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 406, 2937, 2389, 7824, 628, 220, 220, 220, 33642, 33, 11698, 12161, 8987, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 383, 2196, 286, 262, 4946, 1...
2.223324
3,327
# # (C) Copyright 2014 Enthought, Inc., Austin, TX # All right reserved. # # This file is open source software distributed according to the terms in # LICENSE.txt # import ctypes from ctypes import POINTER, Structure, c_void_p, c_wchar_p, c_char_p, cast from ctypes.wintypes import ( BOOL, DWORD, FILETIME, LPCWSTR...
[ 2, 198, 2, 357, 34, 8, 15069, 1946, 2039, 28895, 11, 3457, 1539, 9533, 11, 15326, 198, 2, 1439, 826, 10395, 13, 198, 2, 198, 2, 770, 2393, 318, 1280, 2723, 3788, 9387, 1864, 284, 262, 2846, 287, 198, 2, 38559, 24290, 13, 14116, ...
2.527682
578
from sklearn.neighbors import KNeighborsClassifier from src.decorator.logging import exception
[ 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 509, 46445, 32289, 9487, 7483, 198, 198, 6738, 12351, 13, 12501, 273, 1352, 13, 6404, 2667, 1330, 6631, 628 ]
3.592593
27
import tensorflow as tf from rltf.models.bstrap_dqn import BaseBstrapDQN class DQN_Ensemble(BaseBstrapDQN): """Ensemble policy from Boostrapped DQN"""
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 374, 2528, 69, 13, 27530, 13, 65, 26418, 62, 49506, 77, 1330, 7308, 33, 26418, 35, 48, 45, 628, 198, 4871, 360, 48, 45, 62, 4834, 15140, 7, 14881, 33, 26418, 35, 48, 45, 2599, ...
2.661017
59
#------------------------------------------------------------------------------ # Visual Browse # # Get other visually similar products in the catalog. # GET /v1/catalog/{catalog_name}/visual_search/{id}/{image_id} #------------------------------------------------------------------------------ import os import json im...
[ 2, 10097, 26171, 198, 2, 15612, 44775, 198, 2, 198, 2, 3497, 584, 22632, 2092, 3186, 287, 262, 18388, 13, 198, 2, 17151, 1220, 85, 16, 14, 9246, 11794, 14, 90, 9246, 11794, 62, 3672, 92, 14, 41464, 62, 12947, 14, 90, 312, 92, 14...
2.946296
540
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.postgres.operations import HStoreExtension, UnaccentExtension from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 3575, 602, 1330, 367, 22658, 11627, 3004, 1...
3.067797
59
from .fourier import fscale, freduce, fexpand, lp, hp, bp from .utils import rms, WindowGenerator, rises, falls, fronts
[ 6738, 764, 69, 280, 5277, 1330, 277, 9888, 11, 277, 445, 7234, 11, 730, 42372, 392, 11, 300, 79, 11, 27673, 11, 275, 79, 198, 6738, 764, 26791, 1330, 374, 907, 11, 26580, 8645, 1352, 11, 16736, 11, 8953, 11, 29324, 198 ]
2.857143
42
import morfessor io = morfessor.MorfessorIO(encoding="UTF-8", compound_separator=r'\s+', atom_separator=None, lowercase=False) model = io.read_binary_model_file("model.bin") word = "devourer" print(model.viterbi_segment(word, 0, 30)[0]) model
[ 11748, 2146, 69, 5987, 198, 198, 952, 796, 2146, 69, 5987, 13, 20044, 69, 5987, 9399, 7, 12685, 7656, 2625, 48504, 12, 23, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.937107
159
from .helper_methods import Base from .helper_methods import load_match_data from multiprocessing import Pool import requests import re from storage_config import StorageConfig from tqdm import tqdm
[ 6738, 764, 2978, 525, 62, 24396, 82, 1330, 7308, 198, 6738, 764, 2978, 525, 62, 24396, 82, 1330, 3440, 62, 15699, 62, 7890, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 7007, 198, 11748, 302, 198, 6738, 6143, 62, 11250, ...
3.666667
54
import sys, os sys.path.append(os.path.abspath(os.path.join('./backend/ReceiptGenerator'))) from flask import Flask, Markup from flask import render_template, request, redirect, flash, url_for from crnn_processor import get_html import os app = Flask(__name__, template_folder='templates') @app.route('/')...
[ 11748, 25064, 11, 28686, 201, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 4458, 14, 1891, 437, 14, 3041, 344, 10257, 8645, 1352, 6, 22305, 201, 198, 6738, 42903, 1330, 469...
2.342629
251
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
#!/usr/bin/python3 """ starts a Flask web application """ from flask import Flask, render_template from models import * from models import storage app = Flask(__name__) @app.route('/cities_by_states', strict_slashes=False) def cities_(): """display the states and cities listed in alphabetical order""" states...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 4940, 257, 46947, 3992, 3586, 37227, 198, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 6738, 4981, 1330, 1635, 198, 6738, 4981, 1330, 6143, 198, 1324, 796, 46947, 7, 83...
2.95
200
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you m...
[ 2, 198, 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 220, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 220, 5115, 6...
3.527273
275
import os os.mkdir("/opt/a.txt")
[ 11748, 28686, 198, 198, 418, 13, 28015, 15908, 7203, 14, 8738, 14, 64, 13, 14116, 4943, 198 ]
2
17
""" Fetch author emails from Europe PMC See also the `documentation for the Europe PMC webservice <https://europepmc.org/RestfulWebService#search>`_ :Author: Jonathan Karr <karr@mssm.edu> :Date: 2017-07-19 :Copyright: 2017, Karr Lab :License: MIT """ from six import StringIO import codecs import csv import datetime ...
[ 37811, 376, 7569, 1772, 7237, 422, 2031, 3122, 34, 198, 198, 6214, 635, 262, 4600, 22897, 341, 329, 262, 2031, 3122, 34, 2639, 712, 501, 1279, 5450, 1378, 44252, 431, 4426, 66, 13, 2398, 14, 19452, 913, 13908, 16177, 2, 12947, 29, 6...
2.347541
3,050
#----------------------------------# ######### ARİTMETİK İŞLEÇLER ####### #----------------------------------# # + toplama # - çıkarma # * çarpma # / bölme # ** kuvvet # % modülüs/kalan bulma # // taban bölme/ tam bölme #aritmetik işleçler sayısal işlemler yapmamızı sağlar print(45+57)#102 #yalnız + ve...
[ 2, 3880, 438, 2, 198, 7804, 2, 5923, 128, 108, 15972, 2767, 128, 108, 42, 34754, 108, 129, 252, 2538, 127, 229, 39878, 46424, 2235, 198, 2, 3880, 438, 2, 198, 198, 2, 1343, 220, 220, 284, 489, 1689, 198, 2, 532, 220, 220, 6184, ...
1.978477
9,060
# -*- coding: utf-8 -*- # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, as # published by the Free Software Foundation. # # This program is also d...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 1584, 11, 33448, 11, 18650, 290, 14, 273, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 46...
3.393082
636
import basetest import unittest import os if __name__ == '__main__': main()
[ 11748, 1615, 316, 395, 198, 11748, 555, 715, 395, 198, 11748, 28686, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.59375
32
from Blocos.Bloco import Bloco import pygame from random import randint
[ 6738, 1086, 420, 418, 13, 3629, 25634, 1330, 1086, 25634, 198, 11748, 12972, 6057, 198, 6738, 4738, 1330, 43720, 600, 628 ]
3.47619
21
# Copyright (c) OpenMMLab. All rights reserved. import copy import torch from mmfewshot.classification.models.heads import CosineDistanceHead
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 11748, 4866, 198, 198, 11748, 28034, 198, 198, 6738, 8085, 32146, 9442, 13, 4871, 2649, 13, 27530, 13, 16600, 1330, 10437, 500, 45767, 13847, 628 ]
3.625
40
from django import forms from haystack.forms import FacetedSearchForm
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 27678, 25558, 13, 23914, 1330, 13585, 316, 276, 18243, 8479, 628 ]
3.789474
19
# Auto generated by 'inv collect-airflow' from airfly._vendor.airflow.models.baseoperator import BaseOperator
[ 2, 11160, 7560, 416, 705, 16340, 2824, 12, 958, 11125, 6, 198, 6738, 1633, 12254, 13557, 85, 18738, 13, 958, 11125, 13, 27530, 13, 8692, 46616, 1330, 7308, 18843, 1352, 628 ]
3.580645
31
#!/usr/bin/env snakemake # Copyright by Daniel Loos # # Research Group Systems Biology and Bioinformatics - Head: Assoc. Prof. Dr. Gianni Panagiotou # https://www.leibniz-hki.de/en/systembiologie-und-bioinformatik.html # Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 17522, 15883, 198, 198, 2, 15069, 416, 7806, 6706, 418, 198, 2, 198, 2, 4992, 4912, 11998, 24698, 290, 16024, 259, 18982, 873, 532, 7123, 25, 2195, 420, 13, 4415, 13, 1583, 13, 30851, 8461, 5961...
1.932843
5,033
''' We can feed a ResultProxy directly into a pandas DataFrame, which is the workhorse of many Data Scientists in PythonLand. Jason demonstrated this in the video. In this exercise, you'll follow exactly the same approach to convert a ResultProxy into a DataFrame. ''' # import pandas import pandas as pd # Create a Dat...
[ 7061, 6, 198, 1135, 460, 3745, 257, 25414, 44148, 3264, 656, 257, 19798, 292, 6060, 19778, 11, 543, 318, 262, 670, 30527, 286, 867, 6060, 23782, 287, 11361, 22342, 13, 8982, 9555, 428, 287, 262, 2008, 13, 554, 428, 5517, 11, 345, 11...
3.634921
126
""" @brief The class InferenceImage aims at managing the aggregation of the patches prediction into a volume in the same space as the original input volume. @author Lucas Fidon (lucas.fidon@kcl.ac.uk) @date July 2021. """ import numpy as np SUPPORTED_FUSION = ['uniform', 'gaussian'] def _get_fus...
[ 37811, 198, 31, 65, 3796, 220, 383, 1398, 554, 4288, 5159, 12031, 379, 11149, 262, 46500, 198, 220, 220, 220, 220, 220, 220, 220, 286, 262, 16082, 17724, 656, 257, 6115, 287, 262, 976, 2272, 198, 220, 220, 220, 220, 220, 220, 220, ...
2.477925
906
import copy import traceback import logging import threading import sys if sys.version_info >= (3, 0): import queue as Queue else: import Queue import numpy as np from paddle.io import DataLoader from ppdet.core.workspace import register, serializable, create from .sampler import DistributedBatchSampler from . ...
[ 11748, 4866, 198, 11748, 12854, 1891, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 18189, 357, 18, 11, 657, 2599, 198, 220, 220, 220, 1330, 16834, 355, 4670, 518, 198, 17772, 25, 1...
3.440299
134
import discord
[ 11748, 36446 ]
7
2