content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- ''' author: Soizic Laguitton organization: I2BM, Neurospin, Gif-sur-Yvette, France organization: CATI, France organization: IFR 49 License: `CeCILL version 2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>`_ ''' # # Soma-workflow constants # # ''' Job status: ''' NOT_SUBMITTED ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 9800, 25, 1406, 528, 291, 406, 11433, 47304, 198, 198, 9971, 1634, 25, 314, 17, 12261, 11, 13782, 39706, 11, 402, 361, 12, 11793, 12, 56, 33573, 1...
1.84199
1,829
# expected: fail # - this particular check isn't implemented yet # I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global" print "first" x = 1 print "calling" f(2) print x
[ 2, 2938, 25, 2038, 198, 2, 532, 428, 1948, 2198, 2125, 470, 9177, 1865, 198, 198, 2, 314, 561, 423, 2938, 428, 284, 307, 4938, 11, 475, 269, 37906, 290, 279, 4464, 88, 11454, 503, 2282, 366, 3672, 705, 87, 6, 318, 1957, 290, 329...
3.152778
72
res_words = [] seps = [] ops = []
[ 198, 411, 62, 10879, 796, 17635, 198, 325, 862, 796, 17635, 198, 2840, 796, 17635, 628, 198 ]
2.176471
17
# encoding=utf-8 """ Auth: coco369 Email: 779598160@qq.com CreateTime: 2021/07/30 Desc: fastspider, Item """
[ 2, 21004, 28, 40477, 12, 23, 198, 37811, 198, 30515, 25, 8954, 78, 30803, 198, 15333, 25, 767, 3720, 41292, 14198, 31, 38227, 13, 785, 198, 198, 16447, 7575, 25, 33448, 14, 2998, 14, 1270, 198, 198, 24564, 25, 3049, 2777, 1304, 11, ...
2.354167
48
#!/usr/bin/env python # # Public Domain 2014-present MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a com...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 5094, 20021, 1946, 12, 25579, 42591, 11012, 11, 3457, 13, 198, 2, 5094, 20021, 3648, 12, 4967, 39721, 51, 8254, 11, 3457, 13, 198, 2, 198, 2, 770, 318, 1479, 290, 555, ...
2.155972
8,431
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'SumDialog.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 13065, 44204, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, ...
3.117647
119
from dataclasses import dataclass, field from typing import Optional from .t_expression import TExpression from .t_gateway import TGateway __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 32233, 198, 6738, 764, 83, 62, 38011, 1330, 309, 16870, 2234, 198, 6738, 764, 83, 62, 10494, 1014, 1330, 309, 22628, 1014, 198, 198, 834, 45, 29559, 47,...
2.942029
69
# -*- coding: utf-8 -*- __author__ = 'M.Novikov' from model.project import Project # Mantis from pony.orm import * # from pymysql.converters import decoders #
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 44, 13, 20795, 1134, 709, 6, 198, 198, 6738, 2746, 13, 16302, 1330, 4935, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.510101
198
# Generated by Django 2.1.7 on 2019-02-23 18:47 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 2999, 12, 1954, 1248, 25, 2857, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
from bs4 import BeautifulSoup from threading import Thread import requests from urllib.parse import urlparse,urljoin from urllib import parse
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 7007, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 11, 6371, 22179, 198, 6738, 2956, 297, 571, 1330, 21136, 628 ]
3.763158
38
from factories.celery import create_celery from factories.application import create_application celery = create_celery(create_application())
[ 6738, 17590, 13, 7015, 88, 1330, 2251, 62, 7015, 88, 198, 6738, 17590, 13, 31438, 1330, 2251, 62, 31438, 198, 198, 7015, 88, 796, 2251, 62, 7015, 88, 7, 17953, 62, 31438, 28955 ]
4.272727
33
# MIT License # # Copyright (c) 2020 Anderson Vitor Bento # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
[ 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 9918, 569, 2072, 20421, 78, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 1...
3.791411
326
import socket import os from _thread import start_new_thread ip = "localhost" port = 1234 global number_of_connections number_of_connections = 0 server = socket.socket() server.bind((ip, port)) server.listen(5) engine()
[ 11748, 17802, 198, 11748, 28686, 198, 6738, 4808, 16663, 1330, 923, 62, 3605, 62, 16663, 198, 220, 220, 220, 220, 220, 198, 541, 796, 366, 36750, 1, 198, 634, 796, 1105, 2682, 198, 198, 20541, 1271, 62, 1659, 62, 8443, 507, 198, 176...
2.817073
82
#coding=utf-8 import os delete_files=["RCCall.mm","RCCXCall.m"] start_key = "RCCallKit_Delete_Start" end_key = "RCCallKit_Delete_end" for root,dirs,files in os.walk("./CallKit"): for file in files: if file in delete_files: print("will delete %s" % file) delete_used(os.path.join(root,file))
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 198, 11748, 28686, 198, 198, 33678, 62, 16624, 28, 14692, 49, 4093, 439, 13, 3020, 2430, 49, 4093, 55, 14134, 13, 76, 8973, 198, 198, 9688, 62, 2539, 796, 366, 49, 4093, 439, 20827, 62, 38727, ...
2.318182
132
#!/usr/bin/python #-*- coding: utf-8 -*- #--------------------------------------- # # Copyright(c) Aixi Wang 2014-2015 #--------------------------------------- # v1 -- initial version #--------------------------------------- #----------------------- # mail #----------------------- global mail_sender,mail_smtpserver,ma...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 3880, 26866, 198, 2, 198, 2, 15069, 7, 66, 8, 317, 844, 72, 15233, 1946, 12, 4626, 198, 2, 3880, 26866, 198, 2, 410, ...
3.181818
165
#-*- coding:utf-8 _*- """ @author:charlesXu @file: urls.py @desc: url @time: 2019/05/10 """ # =============== # # apis # # =============== from django.urls import path from intent_rest_controller import intent_controller from entity_extraction_controller import entity_ext_controller from bot_controller impo...
[ 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 4808, 9, 12, 220, 220, 198, 37811, 220, 198, 31, 9800, 25, 10641, 829, 55, 84, 198, 31, 7753, 25, 2956, 7278, 13, 9078, 220, 198, 31, 20147, 25, 19016, 198, 31, 2435, 25, 13130, 14, 2713...
2.57265
234
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2020 from __future__ import absolute_import import time import urllib3 import unittest import tests.apps.flask_app from ..helpers import testenv from instana.singletons import agent, tracer
[ 2, 357, 66, 8, 15069, 19764, 11421, 13, 33448, 198, 2, 357, 66, 8, 15069, 2262, 2271, 3457, 13, 12131, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 640, 198, 11748, 2956, 297, 571, 18, 198, 11748, 555, ...
3.25641
78
import math import os import random import cv2 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torchvision def box_iou(box1, box2): # https://github.com/pytorch/vision/blob/master/torchvision/ops/boxes.py """ Return intersection-over-union (Jaccard index)...
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, ...
2.022844
2,145
#!/usr/bin/env python # encoding: utf-8 # # 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 Licens...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 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, 26...
2.741111
1,800
# -*- coding:utf-8 -*- """ Test module docstring. """ import threading from typing import Type Unset = UnsetType() # pylint: disable=invalid-name
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 14402, 8265, 2205, 8841, 13, 198, 37811, 198, 11748, 4704, 278, 198, 6738, 19720, 1330, 5994, 628, 198, 198, 3118, 2617, 796, 791, 2617, 6030, 3419, 220, 1303, ...
2.777778
54
""" Event handler decorators for common Lambda events """ from .api_gateway import ApiGatewayResolver from .appsync import AppSyncResolver __all__ = ["AppSyncResolver", "ApiGatewayResolver"]
[ 37811, 198, 9237, 21360, 11705, 2024, 329, 2219, 21114, 6814, 2995, 198, 37811, 198, 198, 6738, 764, 15042, 62, 10494, 1014, 1330, 5949, 72, 22628, 1014, 4965, 14375, 198, 6738, 764, 1324, 27261, 1330, 2034, 28985, 4965, 14375, 198, 198, ...
3.271186
59
import itertools as it from torch.optim import Optimizer
[ 11748, 340, 861, 10141, 355, 340, 198, 6738, 28034, 13, 40085, 1330, 30011, 7509, 198 ]
3.8
15
from tkinter import * # import expdate import mysql.connector db_connect=mysql.connector.connect(host="localhost",user="root",password="maan",database="expense") db_cursor=db_connect.cursor()
[ 6738, 256, 74, 3849, 1330, 1635, 198, 2, 1330, 1033, 4475, 198, 11748, 48761, 13, 8443, 273, 198, 9945, 62, 8443, 28, 28744, 13976, 13, 8443, 273, 13, 8443, 7, 4774, 2625, 36750, 1600, 7220, 2625, 15763, 1600, 28712, 2625, 2611, 272, ...
3.112903
62
from __future__ import division from BlackJack.UserInterface import tk from BlackJack.UserInterface import tkFont from BlackJack.UserInterface import BlackJackWindows from BlackJack.UserInterface import SelectGameType from BlackJack.UserInterface import Helpers
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 2619, 14295, 13, 12982, 39317, 1330, 256, 74, 198, 6738, 2619, 14295, 13, 12982, 39317, 1330, 256, 74, 23252, 198, 6738, 2619, 14295, 13, 12982, 39317, 1330, 2619, 14295, 11209, 198, ...
4.327869
61
from .country import Country from .game import Game from .game import Bid from .user import User from .grape import Grape from .wine import Wine from .base import new_id __all__ = [ "new_id", "Country", "Game", "Grape", "User", "Wine", ]
[ 6738, 764, 19315, 1330, 12946, 198, 6738, 764, 6057, 1330, 3776, 198, 6738, 764, 6057, 1330, 43484, 198, 6738, 764, 7220, 1330, 11787, 198, 6738, 764, 70, 13484, 1330, 48315, 198, 6738, 764, 39002, 1330, 20447, 198, 6738, 764, 8692, 133...
2.63
100
import random p = str(input('digite o nome do primeiro aluno :')) s = str(input('o nome do segundo aluno :')) t = str(input('o nome do terceiro aluno :')) q = str(input('o nome do quato aluno :')) lista = [p, s, t, q] aluno = random.choice(lista) print('o aluno sorteado foi {}'.format(aluno))
[ 11748, 4738, 198, 79, 796, 965, 7, 15414, 10786, 12894, 578, 267, 299, 462, 466, 6994, 7058, 435, 36909, 1058, 6, 4008, 198, 82, 796, 965, 7, 15414, 10786, 78, 299, 462, 466, 384, 70, 41204, 435, 36909, 1058, 6, 4008, 198, 83, 796...
2.418033
122
#!/usr/bin/env python3 import gym import torch import numpy as np import multiprocessing as mp import os import pickle import sys import time import logging import cma import argparse from torchmodel import StandardFCNet def fitness_shift(x): x = np.asarray(x).flatten() ranks = np.empty(len(x)) ranks[x.ar...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 11550, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 25064, 198, 1...
2.322564
1,919
""" """ import numpy as np def get_corrected_TMP(TMP: np.ndarray, ele_gap: float) -> np.ndarray: """ Args: TMP (np.ndarray): [] ele_gap (np.ndarray): [m] Returns: np.ndarray: [C] Notes: 0.0065/m """ return TMP + ele_gap * -0.0065
[ 37811, 198, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 651, 62, 30283, 276, 62, 51, 7378, 7, 51, 7378, 25, 45941, 13, 358, 18747, 11, 9766, 62, 43554, 25, 12178, 8, 4613, 45941, 13, 358, 18747, 25, 198, 2...
1.861635
159
from abc import (ABC, abstractmethod) import os import rastervision as rv
[ 6738, 450, 66, 1330, 357, 24694, 11, 12531, 24396, 8, 198, 11748, 28686, 198, 198, 11748, 374, 1603, 10178, 355, 374, 85, 628, 628, 198 ]
3.16
25
import sys import os from flask import Flask, flash, redirect, render_template, request, url_for, session from flaskext.mysql import MySQL from flask_login import LoginManager from flask_bcrypt import Bcrypt from flask_session import Session from database import Database from makedb import MakeDB from helpers import ge...
[ 11748, 25064, 198, 11748, 28686, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 11, 19016, 62, 1640, 11, 6246, 198, 6738, 781, 292, 365, 742, 13, 28744, 13976, 1330, 33476, 198, 6738, 42903, 62, 382...
3.108014
287
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 201, 198, 2, 13610, 534, 4981, 994, 13, 201 ]
3.277778
18
#!/usr/bin/env python # coding: utf-8 # In[2]: import numpy as np import pandas as pd import random import tensorflow as tf import matplotlib.pyplot as plt from tensorflow.keras.layers import Dense,Flatten,GlobalAveragePooling2D,Input,Lambda from tensorflow.keras.models import Model,load_model import tensorflow.kera...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 17, 5974, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4738, 198, 11748, 11192, ...
2.332382
2,452
import numpy as np import astropy.units as u def snr(signal, detector): """ Calculate the SNR of a signal in a given detector, assuming that it has been detected with an optimal filter. See e.g. arxiv.org/abs/1408.0740 Parameters ---------- signal : Source A Source object which ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 6468, 28338, 13, 41667, 355, 334, 198, 4299, 3013, 81, 7, 12683, 282, 11, 31029, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27131, 378, 262, 11346, 49, 286, 257, 6737, 287, 257, 1...
2.399533
428
''' Script to plot the accuracy and the fairness measures for different algorithms from the log files ''' import matplotlib matplotlib.use('agg') from matplotlib import pyplot as plt import os print(os.getcwd()) import numpy as np plt.style.use('ggplot') if __name__ == "__main__": gen_all_plots()
[ 7061, 6, 198, 7391, 284, 7110, 262, 9922, 290, 262, 22692, 5260, 329, 1180, 16113, 198, 6738, 262, 2604, 3696, 198, 7061, 6, 198, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 9460, 11537, 198, 6738, 2603, 29...
2.872727
110
import requests from satella.coding.decorators import retry
[ 11748, 7007, 198, 6738, 8983, 64, 13, 66, 7656, 13, 12501, 273, 2024, 1330, 1005, 563, 628 ]
3.588235
17
# Copyright (c) Microsoft Corporation # # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
[ 2, 15069, 357, 66, 8, 5413, 10501, 198, 2, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866, 286, 428, ...
3.349922
643
import tkinter as tk import sys if __name__ == '__main__': while True: try: print("qiaulfskhdnliukf") root = tk.Tk() t = tk.Text() t.pack() # create instance of file like object pl = PrintLogger(t) # replace sys.stdout ...
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 628, 220, 220, 220, 22...
1.872483
298
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================ # ByteWeiser - Byte comparison and replacement tool # Main script # Copyright (C) 2021 by Ralf Kilian # Distributed under the MIT License (https://opensource.org/licenses/MIT) # # GitHub: https...
[ 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, 2, 38093, 2559, 18604, 198, 2, 30589, 1135, 5847, 532, 30589, 7208, 290, 9014, 2891, 198, 2, 8774, 4226, 198...
3.556962
158
import altair as alt import os import pandas as pd import streamlit as st import sys from datetime import datetime from dateutil.relativedelta import relativedelta from dotenv import load_dotenv from plaid.api_client import ApiClient from plaid.exceptions import ApiException from pathlib import Path from traceback imp...
[ 11748, 5988, 958, 355, 5988, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4269, 18250, 355, 336, 198, 11748, 25064, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3128, 22602, 13, 2411, 265, 1572, 12514...
2.343029
1,994
import yaml import argparse import sys import os import subprocess import time def get_nodes(yml_dict, host_index_map): nodes = [] shard_index = yml_dict['shard_index'] try: host_index_map = yml_dict['host_index_map'] print("Using shard's {} for shard {}".format(host_index_map, shard_...
[ 11748, 331, 43695, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 640, 628, 628, 628, 198, 198, 4299, 651, 62, 77, 4147, 7, 88, 4029, 62, 11600, 11, 2583, 62, 9630, 62, 8899, 2599, ...
2.163848
2,838
#!/usr/bin/env python # coding: utf-8 # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. ''' This tool submits a QASM file to any backend and show the result. It requires 'Qconfig.py' to set a token o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 15069, 2864, 11, 19764, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 1043, 287, 1...
2.74187
492
"""adding usrname column Revision ID: 175f5441bd46 Revises: 186abcf43cae Create Date: 2021-11-20 22:54:04.157131 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '175f5441bd46' down_revision = '186abcf43cae' branch_labels = None depends_on = None
[ 37811, 26872, 514, 81, 3672, 5721, 198, 198, 18009, 1166, 4522, 25, 19038, 69, 20, 39710, 17457, 3510, 198, 18009, 2696, 25, 28481, 397, 12993, 3559, 66, 3609, 198, 16447, 7536, 25, 33448, 12, 1157, 12, 1238, 2534, 25, 4051, 25, 3023,...
2.623932
117
from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from nucleus.models import ( AbstractBaseModel, EmailRecord, TeamMember, ) User = get_user_model() INVITE_TEMPLATE = """Hello, You've been invited to join a team on push.gg. Click the link belo...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 29984, 13, 27530, 1330, 357, 198, 220, 220, 2...
2.928571
126
""" Lazy loading modules """ import sys import importlib.util def lazyImport(modulename): """ This will allow us to lazy import various modules Parameters ---------- modulename : `str` The name of the module in question Returns ------- module : `importlib.LazyModule` A...
[ 37811, 406, 12582, 11046, 13103, 37227, 198, 198, 11748, 25064, 198, 11748, 1330, 8019, 13, 22602, 628, 628, 198, 4299, 16931, 20939, 7, 4666, 377, 12453, 2599, 198, 220, 220, 220, 37227, 770, 481, 1249, 514, 284, 16931, 1330, 2972, 131...
2.482109
531
import numpy as np from keras.optimizers import Adam, SGD from tensorflow.keras.metrics import AUC import metrics from networks.unet_nn import unet from networks.unet_res_se_nn import unet_res_se from networks.focus import get_focusnetAlpha from networks.resnet import get_res from data_processing.generate_new_dataset...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 41927, 292, 13, 40085, 11341, 1330, 7244, 11, 26147, 35, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 4164, 10466, 1330, 317, 9598, 198, 198, 11748, 20731, 198, 6738, 7686, 13, 403, 3...
2.158367
2,229
""" An implementation of Bohnanza @author: David Kelley, 2018 """ import random from collections import defaultdict
[ 37811, 198, 2025, 7822, 286, 347, 1562, 35819, 198, 198, 31, 9800, 25, 3271, 34560, 11, 2864, 198, 37811, 198, 198, 11748, 4738, 220, 198, 6738, 17268, 1330, 4277, 11600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 2...
2.795918
49
"""Tests for calling other functions, and the corresponding checks.""" from pytype import utils from pytype.tests import test_inference if __name__ == "__main__": test_inference.main()
[ 37811, 51, 3558, 329, 4585, 584, 5499, 11, 290, 262, 11188, 8794, 526, 15931, 628, 198, 6738, 12972, 4906, 1330, 3384, 4487, 198, 6738, 12972, 4906, 13, 41989, 1330, 1332, 62, 259, 4288, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366...
3.428571
56
import unittest import lecture1_code00 as dl from sklearn.datasets.samples_generator import make_blobs
[ 11748, 555, 715, 395, 198, 11748, 19143, 16, 62, 8189, 405, 355, 288, 75, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 13, 82, 12629, 62, 8612, 1352, 1330, 787, 62, 2436, 8158, 628 ]
3.058824
34
#-*-coding: utf-8 -*- """ /dms/edumediaitem/views_manage.py .. enthaelt den View fuer die Management-Ansicht des Medienpaketes Django content Management System Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. ...
[ 2, 12, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14, 67, 907, 14, 276, 388, 5507, 9186, 14, 33571, 62, 805, 496, 13, 9078, 198, 198, 492, 920, 3099, 2120, 2853, 3582, 14035, 263, 4656, 8549, 12, 2025,...
2.506803
294
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .feature_engineering import get_features_for_deep_gaussian from .convnet import ConvModel from .rnn import RNNModel...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287,...
3
138
from django.http import HttpResponse, JsonResponse, Http404 from django.core.exceptions import PermissionDenied from rest_framework.parsers import JSONParser, FormParser, MultiPartParser from rest_framework.permissions import IsAuthenticatedOrReadOnly from rest_framework import generics from rest_framework.response im...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 449, 1559, 31077, 11, 367, 29281, 26429, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 2448, 3411, 21306, 798, 198, 198, 6738, 1334, 62, 30604, 13, 79, 945, 364, 1...
4.054688
128
import ddt import mock from unittest import TestCase from muduapiclient.client import MuduApiClient, gen_signed_params import time
[ 11748, 288, 28664, 198, 11748, 15290, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 17492, 84, 499, 291, 75, 1153, 13, 16366, 1330, 32878, 84, 32, 14415, 11792, 11, 2429, 62, 32696, 62, 37266, 198, 11748, 640, 198 ]
3.275
40
from django.conf.urls import url, include from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from productapp.views import product_list from reviewapp.views import index urlpatterns = [ url(r'^$', index, name='index'), url(r'^admin/', admin.site.urls), ...
[ 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, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, ...
2.712963
216
__doc__ = ''' ''' from threading import Thread from time import process_time if 'enums': OK = 0 # ENDGAME = 1 # DRAW = 2 # INVALID = -1 # / CONFILCT = -2 # ERROR = -3 # TIMEOUT = -4 # def match(self): """ : """ self.board = Bo...
[ 834, 15390, 834, 796, 705, 7061, 628, 198, 7061, 6, 198, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 640, 1330, 1429, 62, 2435, 198, 198, 361, 705, 268, 5700, 10354, 198, 220, 220, 220, 7477, 796, 657, 220, 1303, 220, 198, 220, ...
1.742498
1,033
"""Escreva um programa que leia o valor em metros e o exiba convertido em centmetros e milmetros""" from utilidadescev.dado import leia_real n = leia_real('Digite a metragem: ') km = n / 1000 hec = n / 100 dam = n / 10 dec = n * 10 cent = n * 100 mil = n * 1000 print(f'{km:.3f}km') print(f'{hec:.2f}hm') print(f'{dam:...
[ 37811, 47051, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 267, 1188, 273, 795, 1138, 4951, 304, 267, 409, 23718, 10385, 17305, 795, 1247, 4164, 4951, 304, 1465, 4164, 4951, 37811, 198, 198, 6738, 7736, 312, 2367, 344, 85, 13, 67, 4533...
2.10582
189
import os import pyowm from datetime import datetime from timezone_conversion import gmt_to_eastern #API_KEY = os.environ['API_KEY'] owm=pyowm.OWM('0833f103dc7c2924da06db624f74565c') mgr=owm.weather_manager() if __name__ == '__main__': get_temperature()
[ 11748, 28686, 198, 11748, 12972, 322, 76, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 640, 11340, 62, 1102, 9641, 1330, 308, 16762, 62, 1462, 62, 68, 6470, 198, 198, 2, 17614, 62, 20373, 796, 28686, 13, 268, 2268, 17816, 17614...
2.333333
114
import copy import datetime import json import math import multiprocessing import numpy as np import os import pandas as pd import pydotplus import random import re import time from math import * from sklearn import metrics _CLUSTER_DATA = './bike_sharing_data/mydata' RATEDATA = './bike_sharing_data/my...
[ 11748, 4866, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 33918, 201, 198, 11748, 10688, 201, 198, 11748, 18540, 305, 919, 278, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28686, 201, 198, 11748, 19798, 292, 355, 279, 67,...
1.926667
2,700
## @ingroup Components-Energy-Storages-Batteries-Constant_Mass # Lithium_Ion_LiFePO4_18650.py # # Created: Feb 2020, M. Clarke # Modified: Sep 2021, R. Erhard # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- ...
[ 2235, 2488, 278, 3233, 36109, 12, 28925, 12, 1273, 273, 1095, 12, 33, 1436, 444, 12, 3103, 18797, 62, 20273, 198, 2, 19730, 1505, 62, 40, 261, 62, 32304, 14304, 16402, 19, 62, 1507, 17544, 13, 9078, 198, 2, 220, 198, 2, 15622, 25,...
3.510345
145
# Copyright 2011-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 2813, 12, 6999, 838, 5235, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
2.779145
3,414
''' Created on Oct 20, 2015 @author: bardya ''' import os import argparse from Bio import SeqIO if __name__ == '__main__': args = parse_args() try: inputfile = open(args.infilepath.name, 'r') outputfile = open(args.outfilepath.name, 'w') # if not os.path.basename(args.outfilepa...
[ 7061, 6, 198, 41972, 319, 2556, 1160, 11, 1853, 198, 198, 31, 9800, 25, 275, 446, 3972, 198, 7061, 6, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 16024, 1330, 1001, 80, 9399, 628, 198, 198, 361, 11593, 3672, 834, 6624, 70...
2.240113
354
def log_improvement(value): """function to log improvements to the command line. Parameters ---------- value : int or float The value for the improvement """ print("Improvement : " + str(value)) def log_passed_worse(value): """function to log the passing of worse solutions...
[ 198, 198, 4299, 2604, 62, 49453, 434, 7, 8367, 2599, 198, 220, 220, 220, 37227, 8818, 284, 2604, 8561, 284, 262, 3141, 1627, 13, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 1988, 1058, 493, 393, ...
2.871345
171
# https://github.com/pokidovea/immobilus/issues/30 from immobilus import immobilus # noqa from immobilus.logic import fake_time, fake_localtime, fake_gmtime, fake_strftime, fake_mktime from datetime import datetime
[ 2, 3740, 1378, 12567, 13, 785, 14, 79, 482, 312, 659, 64, 14, 8608, 25898, 385, 14, 37165, 14, 1270, 198, 198, 6738, 47800, 385, 1330, 47800, 385, 220, 1303, 645, 20402, 198, 6738, 47800, 385, 13, 6404, 291, 1330, 8390, 62, 2435, ...
2.986667
75
import abc
[ 11748, 450, 66, 628 ]
3
4
#!/usr/bin/env python import re from param import * from emit import Emit # Emit docs in a form acceptable to the APM wiki site
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 302, 198, 6738, 5772, 1330, 1635, 198, 6738, 27588, 1330, 2295, 270, 198, 198, 2, 2295, 270, 34165, 287, 257, 1296, 10909, 284, 262, 3486, 44, 22719, 2524, 198, 220, 220, ...
2.978261
46
#!/usr/bin/env python from PIL import Image import os, os.path import cv2 import sys # Detect faces, then returns number of faces. # Moves pictures based on detection of faces. if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28686, 11, 28686, 13, 6978, 198, 11748, 269, 85, 17, 198, 11748, 25064, 198, 198, 2, 35874, 6698, 11, 788, 5860, 1271, 286, 6698, 13, 19...
3.070423
71
from.Model import Model import numpy as np
[ 6738, 13, 17633, 1330, 9104, 198, 11748, 299, 32152, 355, 45941, 628, 198 ]
3.461538
13
#!/usr/bin/env python """pygto900 contains commands to interface with a astro-physics gto900 mount """ import serial import io import sys import string import math import time from binutils import * from datetime import datetime from astropy.coordinates import Angle def status(g): """Chck the values for the t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 9078, 70, 1462, 12865, 4909, 9729, 284, 7071, 351, 257, 6468, 305, 12, 746, 23154, 308, 1462, 12865, 3817, 198, 37811, 198, 198, 11748, 11389, 198, 11748, 33245, 198, 11748, 25064...
2.057536
1,599
# -*- coding: utf-8 -*- """ Created on Wed Jun 23 15:56:55 2021 @author: Kathryn Haske Create plotly graphs for webpage """ import pandas as pd import plotly.graph_objs as go def line_graph(x_list, df, name_col, y_cols, chart_title, x_label, y_label): """ Function to create plotly line graph Args: ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 7653, 2242, 1315, 25, 3980, 25, 2816, 33448, 198, 198, 31, 9800, 25, 48674, 7875, 365, 198, 198, 16447, 7110, 306, 28770, 329, 35699, 198, ...
2.133234
1,336
import jax.numpy as jnp from jax import vmap from jax.scipy.optimize import minimize import chex import typing_extensions from typing import Any, NamedTuple import warnings from jsl.experimental.seql.agents.agent_utils import Memory from jsl.experimental.seql.agents.base import Agent from jsl.experimental.seql.util...
[ 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 198, 6738, 474, 897, 1330, 410, 8899, 198, 6738, 474, 897, 13, 1416, 541, 88, 13, 40085, 1096, 1330, 17775, 198, 198, 11748, 1125, 87, 198, 11748, 19720, 62, 2302, 5736, 198, 6738, 19...
2.465753
292
from .abusech import AbuseCh from collections import namedtuple from datetime import datetime
[ 6738, 764, 47158, 354, 1330, 24221, 1925, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628 ]
4.318182
22
# Copyright 2021 John Reese # Licensed under the MIT license from .cli import CliTest from .core import CoreTest
[ 2, 15069, 33448, 1757, 39929, 198, 2, 49962, 739, 262, 17168, 5964, 198, 198, 6738, 764, 44506, 1330, 1012, 72, 14402, 198, 6738, 764, 7295, 1330, 7231, 14402, 198 ]
3.931034
29
"""eafm fixtures.""" import pytest from tests.async_mock import patch
[ 37811, 68, 1878, 76, 34609, 526, 15931, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 5254, 13, 292, 13361, 62, 76, 735, 1330, 8529, 628, 198 ]
2.846154
26
import os from django.conf import settings from django.core.checks import Error, register from thorbanks.settings import configure, parse_banklinks
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 42116, 1330, 13047, 11, 7881, 198, 198, 6738, 294, 27688, 2283, 13, 33692, 1330, 17425, 11, 21136, 62, 17796, 28751, 628, 198 ]
3.8
40
"""Defining and analysing axisymmetric optical systems.""" import itertools from functools import singledispatch from dataclasses import dataclass from abc import ABC, abstractmethod from typing import Sequence, Tuple, Mapping import numpy as np import scipy.optimize from . import abcd, paraxial, functions, ri from .fu...
[ 37811, 7469, 3191, 290, 11090, 278, 7877, 13560, 3020, 19482, 18480, 3341, 526, 15931, 198, 11748, 340, 861, 10141, 198, 6738, 1257, 310, 10141, 1330, 31958, 8802, 963, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 450, ...
2.63089
764
from sys import argv, exit from os.path import expanduser as expu, expandvars as expv from os.path import basename, dirname, abspath, isdir, exists from subprocess import Popen, PIPE from builtins import input from rm_protection.config import Config c = Config() evaledpaths = [] if __name__ == "__main__": ...
[ 6738, 25064, 1330, 1822, 85, 11, 8420, 198, 6738, 28686, 13, 6978, 1330, 4292, 7220, 355, 1033, 84, 11, 4292, 85, 945, 355, 1033, 85, 198, 6738, 28686, 13, 6978, 1330, 1615, 12453, 11, 26672, 3672, 11, 2352, 6978, 11, 318, 15908, 11...
3.074766
107
""" """ import logging import re import string from enum import IntEnum from functools import lru_cache from typing import Tuple, Iterator from nltk.corpus import stopwords from nltk.tokenize import ToktokTokenizer from nltk.tokenize.api import TokenizerI from ..config import RegexConfigType, PipelineConfigType,...
[ 37811, 220, 220, 220, 220, 220, 37227, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 4731, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 198, 6738, 19720, 1330, 309, 29291, 11, 40806,...
2.303328
1,322
from array import array import rx import rxsci as rs
[ 6738, 7177, 1330, 7177, 198, 11748, 374, 87, 198, 11748, 374, 34223, 979, 355, 44608, 628 ]
3.375
16
#!/usr/bin/env python3 """============================================================================= los for Little-Oven. los (Little Oven Setup) prepares a Raspberry Pi for Little-Oven development. This module does the actual work. los (no extension) is a bash script that creates a service that runs this...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 23926, 25609, 28, 628, 220, 22346, 329, 7703, 12, 46, 574, 13, 220, 22346, 357, 22253, 440, 574, 31122, 8, 25978, 257, 24244, 13993, 329, 198, 220, 7703, 12, 46, 574, 2478...
2.328605
7,614
from django.contrib.auth.models import User from django.db.models import Model, CharField, TextField, ForeignKey, CASCADE
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 9104, 11, 3178, 15878, 11, 8255, 15878, 11, 8708, 9218, 11, 35106, 34, 19266, 628 ]
3.416667
36
import streamlit as st import yaml from load_css import local_css import tensorflow as tf import tensorflow_hub as hub import tensorflow_text as text import numpy as np from random import sample import os local_css("style.css") prediction_key = { 0:'Gastroenterology', 1:'Neurology', 2:'Orthope...
[ 11748, 4269, 18250, 355, 336, 198, 11748, 331, 43695, 198, 6738, 3440, 62, 25471, 1330, 1957, 62, 25471, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 62, 40140, 355, 12575, 198, 11748, 11192, 273, 11125, 62, ...
2.475336
223
#!/usr/bin/env python # -*- coding: utf-8 -*- """Python Team Awareness Kit (PyTAK) Module Tests.""" import asyncio import urllib import pytest import pytak __author__ = 'Greg Albrecht W2GMD <oss@undef.net>' __copyright__ = 'Copyright 2022 Greg Albrecht' __license__ = 'Apache License, Version 2.0'
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 37906, 4816, 36735, 10897, 357, 20519, 5603, 42, 8, 19937, 30307, 526, 15931, 198, 198, 11748, 30351, 952, ...
2.686957
115
# test_aoc_day_02.py import pytest import solution.aoc_day_02 as aoc def test_parse_test_solution(test_solution): """Test that input is parsed properly""" assert test_solution.data == [ ("forward", 5), ("down", 5), ("forward", 8), ("up", 3), ("down", 8), ("fo...
[ 2, 1332, 62, 64, 420, 62, 820, 62, 2999, 13, 9078, 198, 198, 11748, 12972, 9288, 198, 11748, 4610, 13, 64, 420, 62, 820, 62, 2999, 355, 257, 420, 628, 628, 198, 4299, 1332, 62, 29572, 62, 9288, 62, 82, 2122, 7, 9288, 62, 82, 2...
2.555556
351
from operator import add, sub import numpy as np from scipy.stats import norm
[ 6738, 10088, 1330, 751, 11, 850, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 2593, 628 ]
3.478261
23
s=input() print(s+'s' if s[-1]!='s' else s+'es')
[ 82, 28, 15414, 3419, 198, 4798, 7, 82, 10, 6, 82, 6, 611, 264, 58, 12, 16, 60, 0, 11639, 82, 6, 2073, 264, 10, 6, 274, 11537 ]
1.714286
28
from __future__ import annotations import operator from enum import Enum from itertools import product from typing import Dict, Union import numpy as np #################################################################################################### def h(x, fx): """helper function as in the PLoS article,...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 10088, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 6738, 19720, 1330, 360, 713, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 198,...
3.034188
1,170
# Copyright 2021 PingCAP, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
[ 2, 15069, 33448, 34263, 33177, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
3.707182
181
import numpy as np import sys import glob rbp=sys.argv[1] kmer=sys.argv[2] pfile_list=glob.glob("result_VDM3_"+rbp+"_positive_"+kmer+"_*.npy") pfile1=np.load(pfile_list[0]) psha=np.shape(pfile1) pmatrix=np.zeros(psha) for pfile in pfile_list: file=np.load(pfile) # file=np.fromfile(pfile,dtype=np.float32) p...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 15095, 198, 26145, 79, 28, 17597, 13, 853, 85, 58, 16, 60, 198, 74, 647, 28, 17597, 13, 853, 85, 58, 17, 60, 198, 198, 79, 7753, 62, 4868, 28, 4743, 672, 13, 4743, 67...
1.985849
212
'''A common interface to FGVC datasets. Currently supported datasets are - CUB Birds - CUB Birds with expert labels - NA Birds - Stanford Cars - Stanford Dogs - Oxford Flowers - Oxford FGVC Aircraft - Tsinghua Dogs Datasets are constructed and used following the pytorch data.utils.data.Dataset paradigm, and have the ...
[ 7061, 6, 32, 2219, 7071, 284, 25503, 15922, 40522, 13, 198, 198, 21327, 4855, 40522, 389, 198, 12, 327, 10526, 27124, 198, 12, 327, 10526, 27124, 351, 5887, 14722, 198, 12, 11746, 27124, 198, 12, 13863, 25277, 198, 12, 13863, 21367, 1...
3.31016
374
from typing import List from celery.result import AsyncResult from fastapi import APIRouter, status, Depends, Form, UploadFile, File, Request, WebSocket from fastapi.responses import RedirectResponse from app.auth import service from app.auth.models import User from app.auth.permission import is_active from app.auth....
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 18725, 1924, 13, 20274, 1330, 1081, 13361, 23004, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 3722, 11, 2129, 2412, 11, 5178, 11, 36803, 8979, 11, 9220, 11, 19390, 11, 5313, 39105, 198, ...
3.083682
239
# Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed # under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
[ 2, 15069, 357, 66, 8, 13130, 48323, 7946, 393, 281, 48323, 17375, 1664, 13, 1439, 2489, 10395, 13, 770, 2393, 318, 11971, 198, 2, 739, 262, 24843, 10442, 13789, 11, 410, 13, 362, 2845, 355, 4367, 4306, 287, 262, 38559, 24290, 2393, ...
3.545714
350
import cv2 import numpy as np height = 500 width = 700 gray = np.zeros((height, width), dtype=np.uint8) # fourcc = cv2.VideoWriter_fourcc(*"MJPG") # filename = "output.avi" fourcc = cv2.VideoWriter_fourcc(*"MP4V") filename = "output.mp4" writer = cv2.VideoWriter( filename, fourcc, fps=30, frameSize=(width, height...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 17015, 796, 5323, 198, 10394, 796, 13037, 198, 44605, 796, 45941, 13, 9107, 418, 19510, 17015, 11, 9647, 828, 288, 4906, 28, 37659, 13, 28611, 23, 8, 198, 198, 2, 144...
2.51751
257
from po.base import BasePage from po.base import InvalidPageException
[ 198, 6738, 745, 13, 8692, 1330, 7308, 9876, 198, 6738, 745, 13, 8692, 1330, 17665, 9876, 16922 ]
4.117647
17
from lib import Scrape from typing import List from os import environ main()
[ 6738, 9195, 1330, 1446, 13484, 198, 6738, 19720, 1330, 7343, 198, 6738, 28686, 1330, 551, 2268, 198, 198, 12417, 3419, 198 ]
3.714286
21
var1 = "hello world" # left what you get from the right for character in var1: print(character)
[ 7785, 16, 796, 366, 31373, 995, 1, 198, 198, 2, 1364, 644, 345, 651, 422, 262, 826, 198, 1640, 2095, 287, 1401, 16, 25, 198, 220, 220, 220, 3601, 7, 22769, 8 ]
3.125
32
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2019-03-07 12:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 23, 319, 13130, 12, 3070, 12, 2998, 1105, 25, 2816, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
# Generated by Django 3.1.7 on 2021-04-08 11:12 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3023, 12, 2919, 1367, 25, 1065, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
''' ---------------------------------------------------------------------------------------- This script will update the Prescribed Burn System's ePFP data according to txt input files found in the relevant scripts folder. It requires user input of the Corporate Executive Approval date, which it will then use to set PR...
[ 7061, 6, 16529, 22369, 198, 1212, 4226, 481, 4296, 262, 1763, 32968, 8942, 4482, 338, 304, 47, 5837, 1366, 1864, 284, 256, 742, 5128, 198, 16624, 1043, 287, 262, 5981, 14750, 9483, 13, 198, 1026, 4433, 2836, 5128, 286, 262, 26040, 103...
2.705009
2,156
import numpy as np from scipy.stats import binom from sklearn.ensemble import IsolationForest from sklearn.preprocessing import MinMaxScaler from scipy.special import erf from learnware.algorithm.anomaly_detect.base import BaseAnomalyDetect
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 9874, 296, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 1148, 21417, 34605, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 198, 6738, 6...
3.471429
70
from nox import session
[ 6738, 645, 87, 1330, 6246, 628 ]
4.166667
6
""" Data manipulations """
[ 37811, 198, 6601, 7704, 5768, 198, 37811, 198 ]
3.375
8