content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from .pandas_profiling import ModulePandasProfiling from .bias import ModuleBias from .performance import ModulePerformance from .interpretability import ModuleInterpretability from .sustainable import ModuleSustainable
[ 6738, 764, 79, 392, 292, 62, 5577, 4386, 1330, 19937, 47206, 292, 15404, 4386, 198, 6738, 764, 65, 4448, 1330, 19937, 33, 4448, 198, 6738, 764, 26585, 1330, 19937, 32273, 198, 6738, 764, 27381, 1799, 1330, 19937, 9492, 5310, 1799, 198, ...
4.469388
49
import asyncio import importlib.resources import aioconsole from playsound import playsound import niescraper.resources
[ 11748, 30351, 952, 198, 11748, 1330, 8019, 13, 37540, 198, 198, 11748, 257, 72, 36221, 6753, 198, 6738, 5341, 633, 1330, 5341, 633, 198, 198, 11748, 299, 444, 66, 38545, 13, 37540, 628, 628 ]
3.676471
34
# Exercise 5 : Cross-Validation ## Set up code checking import os if not os.path.exists("../input/train.csv"): os.symlink("../input/home-data-for-ml-course/train.csv", "../input/train.csv") os.symlink("../input/home-data-for-ml-course/test.csv", "../input/test.csv") from learntools.core import binder binder.bi...
[ 2, 32900, 642, 1058, 6372, 12, 7762, 24765, 198, 198, 2235, 5345, 510, 2438, 10627, 198, 11748, 28686, 198, 361, 407, 28686, 13, 6978, 13, 1069, 1023, 7203, 40720, 15414, 14, 27432, 13, 40664, 1, 2599, 198, 220, 220, 220, 28686, 13, ...
3.247619
735
# coding:utf-8 # real mirror script # 1) duplicate special ( world | input graph) # 2) unparent offsets to world # 3) create a null for each offset # 4) match Translate each null on his respective offset # 5) *(-1) translate X on each null # 6) rotation 180° on Y and Z axis on each null # 7) unparent offsets an...
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 2, 1103, 10162, 4226, 198, 198, 2, 352, 8, 23418, 2041, 357, 995, 930, 5128, 4823, 8, 198, 198, 2, 362, 8, 555, 8000, 49005, 284, 995, 198, 198, 2, 513, 8, 2251, 257, 9242, 329, 1123, 116...
2.437228
2,294
QUERY_PARAM_QUERY = 'q' QUERY_PARAM_SORT = 's' QUERY_PARAM_FILTER = 'f' QUERY_PARAM_SIZE = 'size' QUERY_PARAM_PAGE = 'page' QUERY_PARAM_FIELDS = 'fields' QUERY_PARAM_OFFSET = 'offset' QUERY_PARAM_INCLUDE = 'include' QUERY_PARAM_EXCLUDE = 'exclude' QUERY_PARAM_WAIT_UNTIL_COMPLETE = 'wuc' QUERY_PARAM_FORMAT = 'format'
[ 10917, 19664, 62, 27082, 2390, 62, 10917, 19664, 796, 705, 80, 6, 198, 10917, 19664, 62, 27082, 2390, 62, 50, 9863, 796, 705, 82, 6, 198, 10917, 19664, 62, 27082, 2390, 62, 46700, 5781, 796, 705, 69, 6, 198, 10917, 19664, 62, 27082,...
2.038462
156
from django.shortcuts import render,redirect from django.http import HttpResponse,Http404,HttpResponseRedirect from django.contrib.auth.decorators import login_required from .models import Enquiry,Vitabu from .forms import EnquiryForm # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 43481, 26429, 11, 43481, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 2...
3.434211
76
import time import uuid from kubernetes import client, config import os from fastapi.testclient import TestClient import json from typing import List from pydantic import EmailStr from fastapi import HTTPException from app.api.models.auth0 import Auth0User from .helper_functions import ( generate_user, genera...
[ 11748, 640, 198, 11748, 334, 27112, 198, 6738, 479, 18478, 3262, 274, 1330, 5456, 11, 4566, 198, 11748, 28686, 198, 6738, 3049, 15042, 13, 9288, 16366, 1330, 6208, 11792, 198, 11748, 33918, 198, 6738, 19720, 1330, 7343, 198, 6738, 279, ...
3.03869
336
# -*- coding: utf-8 -*- from .limbdark import LimbDarkOp from .get_cl import GetClOp
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 2475, 17457, 668, 1330, 7576, 65, 17367, 18257, 198, 6738, 764, 1136, 62, 565, 1330, 3497, 2601, 18257, 198 ]
2.428571
35
from __future__ import absolute_import import numpy as np from desicos.abaqus.apply_imperfections import change_thickness_ABAQUS from desicos.conecylDB import update_imps class TI(object): """Thickness Imperfection Assumes that a percentage variation of the laminate thickness can be represented by the ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 748, 291, 418, 13, 15498, 45260, 13, 39014, 62, 320, 25833, 507, 1330, 1487, 62, 400, 624, 1108, 62, 32, 4339, 48, 2937, 198, 6...
2.039801
2,010
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME mmtbx.development.aev import sys import time import mmtbx import iotbx.pdb import mmtbx.model from libtbx.utils import null_out import mmtbx.atomic_environment_vectors as aev if __name__ == '__main__': main(*tuple(sys.argv[...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 2, 45651, 22737, 55, 62, 28480, 62, 26288, 47, 11417, 1137, 62, 20608, 8085, 83, 65, 87, 13, 31267, 13, 64, 1990, 198, 11748, 25064, 198, 11748, 640,...
2.672131
122
#!/usr/bin/env python import pika #credentials = pika.PlainCredentials('guest', 'guest') #parameters = pika.ConnectionParameters('amqp.k8sd.pax.ch', 80, '/', credentials) #parameters = pika.URLParameters('amqp://guest:guest@localhost:5672/%2F') #connection = pika.BlockingConnection(parameters) connection = pika.Block...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 279, 9232, 198, 198, 2, 66, 445, 14817, 796, 279, 9232, 13, 3646, 391, 34, 445, 14817, 10786, 5162, 395, 3256, 705, 5162, 395, 11537, 198, 2, 17143, 7307, 796, 279, 9232,...
2.527897
233
import mysql.connector from mysql.connector import errorcode try: con = mysql.connector.connect(user='niminimda', password='123456', host='127.0.01', database='test') except mysql.connector.Error as err: if err.errno == errorcode.ER_ACCESS_DENIED_ERROR: print("something is wrong with user or password...
[ 11748, 48761, 13, 8443, 273, 198, 6738, 48761, 13, 8443, 273, 1330, 4049, 8189, 628, 198, 198, 28311, 25, 198, 220, 220, 220, 369, 796, 48761, 13, 8443, 273, 13, 8443, 7, 7220, 11639, 77, 320, 259, 320, 6814, 3256, 9206, 11639, 1016...
2.578378
185
import numpy as np # A simple generator wrapper, not sure if it's good for anything at all. # With basic python threading import threading # from threading import Thread import multiprocessing as mp import time try: from queue import Queue except ImportError: from Queue import Queue # ... or use multiprocess...
[ 198, 11748, 299, 32152, 355, 45941, 198, 2, 317, 2829, 17301, 29908, 11, 407, 1654, 611, 340, 338, 922, 329, 1997, 379, 477, 13, 198, 2, 2080, 4096, 21015, 4704, 278, 198, 11748, 4704, 278, 198, 2, 422, 4704, 278, 1330, 14122, 198, ...
3.659794
194
import sys sys.setrecursionlimit(100000) m,n=map(int,input().split()) dp=[[-1]*(n+2) for i in range(m+2)] visit=[[False]*(n+2) for i in range(m+2)] field=[0]*(m+2) field[0]=[11111]*(n+2) field[m+1]=[11111]*(n+2) for i in range(1,m+1): field[i]=[11111] field[i].extend([*map(int,input().split())]) field[i].appe...
[ 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 3064, 830, 8, 628, 198, 76, 11, 77, 28, 8899, 7, 600, 11, 15414, 22446, 35312, 28955, 198, 26059, 28, 30109, 12, 16, 60, 9, 7, 77, 10, 17, 8, 329, 1312, 287, 2837, 7, ...
1.932961
179
# ref https://www.youtube.com/watch?v=2p3kwF04xcA&index=24&list=PLi01XoE8jYohWFPpC17Z-wWhPOSuh8Er- import math import time ''' for n in range(1,21): print(n, is_prime_v2(n)) ''' t0 = time.time() for n in range(1,1000000): is_prime_v2(n) t1 = time.time() print("time required for 1000000 :", t1-t0) #print("t...
[ 2, 1006, 3740, 1378, 2503, 13, 11604, 13, 785, 14, 8340, 30, 85, 28, 17, 79, 18, 46265, 37, 3023, 25306, 32, 5, 9630, 28, 1731, 5, 4868, 28, 6489, 72, 486, 55, 78, 36, 23, 73, 56, 1219, 54, 5837, 79, 34, 1558, 57, 12, 86, ...
2.316547
278
################################################################# # # Round for Python # # Copyright (C) Satoshi Konno 2016 # # This is licensed under BSD-style license, see file COPYING. # ################################################################## from __future__ import absolute_import import json from .. i...
[ 29113, 29113, 2, 198, 2, 198, 2, 10485, 329, 11361, 198, 2, 198, 2, 15069, 357, 34, 8, 40824, 17431, 3919, 1584, 198, 2, 198, 2, 770, 318, 11971, 739, 347, 10305, 12, 7635, 5964, 11, 766, 2393, 27975, 45761, 13, 198, 2, 198, 291...
4.941176
68
import os import sys from os.path import join, dirname sys.path.insert(0, join(dirname(__file__), '..')) import simulator simulator.load('/home/wang/CARLA_0.9.9.4') from simulator import config import carla import argparse import time from tqdm import tqdm MAX_SPEED = 40 TRAJ_LENGTH = 25#25 vehicle_width = 2.0 longi...
[ 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 4654, 7, 15908, 3672, 7, 834, 7753, 834, 828, 705, 492, 6, 4008, 198, 198, 11748, 35375, 198,...
2.435811
592
# -*- coding: Windows-1251 -*- ''' find_dll_name.py List all python dll names in DLL/PYD/etc file. Author: Denis Barmenkov <denis.barmenkov@gmail.com> Copyright: this code is free, but if you want to use it, please keep this multiline comment along with source. Thank you. 2009-08-09 ''' impo...
[ 2, 532, 9, 12, 19617, 25, 3964, 12, 1065, 4349, 532, 9, 12, 198, 7061, 6, 198, 19796, 62, 12736, 62, 3672, 13, 9078, 198, 198, 8053, 477, 21015, 288, 297, 3891, 287, 360, 3069, 14, 47, 35755, 14, 14784, 2393, 13, 198, 198, 13838...
2.432049
493
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Dec 8 08:21:19 2018 @author: alkesha """ import cv2 import numpy as np #function to draw sketch camera=cv2.VideoCapture(0) while True: ret,frame=camera.read() cv2.imshow("sketch live",sketching(frame)) if cv2.waitKey(1)==ord('q'): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 4280, 220, 807, 8487, 25, 2481, 25, 1129, 2864, 198, 198, 31, 9800, 25, 435, 5209, ...
2.306748
163
""" The pytoil new command. Author: Tom Fleet Created: 25/06/2021 """ from typing import List import httpx import typer from cookiecutter.main import cookiecutter from wasabi import msg from pytoil.api import API from pytoil.cli import utils from pytoil.config import Config from pytoil.environments import Conda, En...
[ 37811, 198, 464, 12972, 1462, 346, 649, 3141, 13, 198, 198, 13838, 25, 4186, 20001, 198, 41972, 25, 1679, 14, 3312, 14, 1238, 2481, 198, 37811, 198, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 2638, 87, 198, 11748, 1259, 525, 198, ...
2.465521
4,075
# -*- coding: utf-8 -*- import os import re import sys from werkzeug import utils try: from os import scandir except: from scandir import scandir def parents_path(path): """ :param path: :return: return parents_path which does not contain the end '/', that is remove the end '/' """ r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 198, 6738, 266, 9587, 2736, 1018, 1330, 3384, 4487, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 28686, 1330...
2.358663
1,316
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. import sys import os.path from os.path import join as jp here = os.path.dirname(__file__) sys.path.append(jp(here, '../..')) from multiconf import ConfigRoot, ConfigItem, ConfigBuilder fro...
[ 2, 15069, 357, 66, 8, 2321, 31239, 367, 929, 16265, 83, 31154, 11, 367, 929, 16265, 83, 7283, 198, 2, 1439, 2489, 10395, 13, 770, 670, 318, 739, 257, 347, 10305, 5964, 11, 766, 38559, 24290, 13, 51, 25010, 13, 198, 198, 11748, 250...
3.662539
323
expected = [ { "id": "con1", "text": "<p>RAA, Conception and design, Acquisition of data, Analysis and interpretation of data, Drafting or revising the article</p>", "fn-type": "con", }, { "id": "con2", "text": "<p>LWB, Conception and design, Acquisition of data, Anal...
[ 40319, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 312, 1298, 366, 1102, 16, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5239, 1298, 33490, 79, 29, 49, 3838, 11, 1482, 4516, 290, 1486, ...
2.248227
705
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Oct 25 13:08:45 2019 @author: briere """ import logging import argparse import os from neo4j import GraphDatabase descr = ('This script instanciate a Neo4j graph database from the metadata ' 'file and the various clustering results to integra...
[ 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, 19480, 2556, 1679, 1511, 25, 2919, 25, 2231, 13130, 198, 198, 31, 9800, 25, 31013, 567, 1...
2.304168
3,623
import math from helper import Point
[ 11748, 10688, 198, 6738, 31904, 1330, 6252, 628 ]
4.75
8
from skimage import io import matplotlib.pyplot as plt import sys image = io.imread(sys.argv[1]) _ = plt.hist(image.ravel(), bins = 256, color = 'orange', ) _ = plt.hist(image[:, :, 0].ravel(), bins = 256, color = 'red', alpha = 0.5) _ = plt.hist(image[:, :, 1].ravel(), bins = 256, color = 'Green', alpha = 0.5) _ = pl...
[ 6738, 1341, 9060, 1330, 33245, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 25064, 198, 9060, 796, 33245, 13, 320, 961, 7, 17597, 13, 853, 85, 58, 16, 12962, 198, 198, 62, 796, 458, 83, 13, 10034, 7, 9...
2.530806
211
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RJpeg(RPackage): """Read and write JPEG images. This package provides an easy and sim...
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
2.459538
346
# coding:utf-8 # Produced by Jiaxin Zhang # Start Data: 20_May_2020 # Data processing module. # # For GOD I Trust. # 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/...
[ 2, 19617, 25, 40477, 12, 23, 198, 2, 21522, 771, 416, 449, 544, 87, 259, 19439, 198, 2, 7253, 6060, 25, 1160, 62, 6747, 62, 42334, 198, 2, 6060, 7587, 8265, 13, 198, 2, 198, 2, 1114, 29562, 314, 9870, 13, 198, 2, 49962, 739, 2...
2.850277
541
#!/usr/bin/env python3 import os import re import sys import pandas as pd import pyarrow as pa from pyarrow import csv, feather in_file = sys.argv[1] in_df = csv.read_csv(in_file).to_pandas() if 'datetime' in in_df.columns.values.tolist(): in_df['datetime'] = pd.to_datetime(in_df.datetime, utc=True) #out_file = re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 6018, 355, 14187, 198, 6738, 12972, 6018, 1330, 269, 21370, 11, 17972, 198,...
2.369272
371
from setuptools import setup setup( name="Vnode", version="0.1.0", description="A fast wheel to build a node network.", author="Tatersic&Ovizro", author_email="Tatersic@qq.com", maintainer="Ovizro", maintainer_email="Ovizro@hypercol.com", license="MIT", url="https://github.com/Tate...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 53, 17440, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 13, 15, 1600, 198, 220, 220, 220, 6764, 2625, 32, 3049, 7825, 284, 1382, 257, 10...
2.377682
233
import os import re import time import struct import serial import threading import crcmod COMMAND_GET = struct.pack('B', 0xf0) COMMAND_SET = struct.pack('B', 0xf1) DS18B20 = struct.pack('B', 0xf1) HEATER = struct.pack('B', 0xf2) STIRRER = struct.pack('B', 0xf3) # Contrary to crcmod's definition, brewslave expects...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 640, 198, 11748, 2878, 198, 11748, 11389, 198, 11748, 4704, 278, 198, 11748, 1067, 66, 4666, 628, 198, 9858, 44, 6981, 62, 18851, 796, 2878, 13, 8002, 10786, 33, 3256, 657, 26152, 15, 8, 198,...
2.543046
151
import glob, os, sys, json, datetime import pandas as pd import numpy as np sys.path.insert(0, os.path.dirname(__file__) + '../2_helpers') import re, nltk from dateutil import parser from Fact import Fact from User import User from Transaction import Transaction from decoder import decoder from sklearn.model_selectio...
[ 11748, 15095, 11, 28686, 11, 25064, 11, 33918, 11, 4818, 8079, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753...
3.375367
341
from pibootcmdline.parse import parse_parameter, Parameter def add_parameters(cmdline, *parameters): """ Parameters ---------- cmdline: list[Parameter] parsed command line to which to add parameters. *parameters: str list of string parameters. For example: 'key=value' or 'key' or ...
[ 6738, 279, 571, 1025, 28758, 1370, 13, 29572, 1330, 21136, 62, 17143, 2357, 11, 25139, 2357, 628, 198, 4299, 751, 62, 17143, 7307, 7, 28758, 1370, 11, 1635, 17143, 7307, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 40117, 198,...
2.774786
817
from enum import IntEnum
[ 6738, 33829, 1330, 2558, 4834, 388 ]
4
6
from django.db import models from django.db.models import permalink from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from datetime import datetime from tagging.models import Tag from tagging.fields import TagField from autofields.fields import AutoSlugField from t...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 583, 31000, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 1919...
2.674617
587
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import functools import torch import torch.nn as nn
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 21004, 25, 3384, 69, 12, 23, 201, 198, 201, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, ...
2.9375
80
from app import app import requests, sys, eventlet, socket from datetime import datetime, timedelta from .db import Server, Record, transaction, db from .notify import notify_state_changed from blinker import Namespace def handle_active_http(server): """ Handler for Active HTTP checking """ config ...
[ 6738, 598, 1330, 598, 198, 11748, 7007, 11, 25064, 11, 1785, 1616, 11, 17802, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 764, 9945, 1330, 9652, 11, 13266, 11, 8611, 11, 20613, 198, 6738, 764, 1662, 1958, 133...
2.557171
1,032
#! /usr/bin/env python2.7 """ This file contain Ur5Moveit class to control bot and rviz planning scene. """ import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg import actionlib from pkg_vb_sim.srv import conveyorBeltPowerMsg import math import sys import copy from std_srvs.srv import Em...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 37811, 198, 1212, 2393, 3994, 8799, 20, 21774, 270, 1398, 284, 1630, 10214, 290, 374, 85, 528, 5410, 3715, 13, 198, 37811, 198, 11748, 686, 2777, 88, 198, 11748, 1445, ...
2.290418
6,439
""" Implementation of the Nelson rules https://en.wikipedia.org/wiki/Nelson_rules """ from collections import deque import numpy as np from ..diligent import registry from ..utils import is_numeric __all__ = ['nelson_rule_%d' % i for i in range(1, 9)] @registry.register(name='Nelson Rule 1', tags='nelson') @reg...
[ 37811, 198, 3546, 32851, 286, 262, 12996, 3173, 198, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 45, 10151, 62, 38785, 198, 198, 37811, 198, 6738, 17268, 1330, 390, 4188, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 673...
2.934959
246
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: lib.coginvasion.holiday.HolidayManager from panda3d.core import VirtualFileSystem, Filename from direct.distributed.DistributedObjectGlo...
[ 2, 34318, 2349, 21, 2196, 513, 13, 17, 13, 19, 198, 2, 11361, 18022, 8189, 362, 13, 22, 357, 21, 1828, 1157, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 362, 13, 22, 13, 1314, 357, 85, 17, 13, 22, 13, 1314, 25, 6888, 2998, ...
2.978723
141
import unittest import numpy as np import Orange from disco.core import result_iterator import datasets if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11942, 198, 6738, 4655, 13, 7295, 1330, 1255, 62, 48727, 198, 198, 11748, 40522, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, ...
3.058824
51
# Copyright 2021 Google LLC # # 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 writing,...
[ 2, 15069, 33448, 3012, 11419, 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, 743, 733...
3.632867
286
import tensorflow as tf import numpy as np from ops import * flags = tf.app.flags FLAGS = flags.FLAGS def fmnet_model(phase, part_shot, model_shot, part_dist_map , model_dist_map, part2model_ind_gt, part_evecs, part_evecs_trans, model_evecs, model_evecs_trans): """Build FM-net model. Args: phase: train\test. ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 39628, 1330, 1635, 198, 198, 33152, 796, 48700, 13, 1324, 13, 33152, 198, 38948, 50, 796, 9701, 13, 38948, 50, 628, 198, 4299, 277, 76, 3262, 62...
2.390816
980
from random import shuffle import tensorflow as tf from xcenternet.datasets.dataset import Dataset class TfExampleFields(object): """TF-example proto feature names Holds the standard feature names to load from an Example proto Attributes: image_encoded: image encoded as string image_format...
[ 6738, 4738, 1330, 36273, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 2124, 1087, 1142, 316, 13, 19608, 292, 1039, 13, 19608, 292, 316, 1330, 16092, 292, 316, 628, 198, 198, 4871, 309, 69, 16281, 15878, 82, 7, 15252, 259...
2.627561
1,611
#!/usr/bin/env python3 """Intinor Direkt API Python tutorial Example 1: Send a request to a Direkt unit using the "direkt" module and obtain API information as a JSON string """ import sys # The "direkt" module wraps the "requests" library with some convenient # functionality for the Intinor Direkt API. ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 5317, 259, 273, 34177, 21841, 7824, 11361, 11808, 198, 198, 16281, 352, 25, 16290, 257, 2581, 284, 257, 34177, 21841, 4326, 1262, 262, 366, 67, 557, 21841, 1, 8265, 198...
3.472384
688
#!/usr/bin/env python """ Created by howie.hu at 08/04/2018. """ import asyncio import time from hproxy.database import DatabaseSetting from hproxy.spider.base_spider import ProxySpider from hproxy.spider.proxy_spider import MimvpItem from hproxy.spider.proxy_tools import request_url_by_aiohttp, get_proxy_info db_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 15622, 416, 703, 494, 13, 13415, 379, 8487, 14, 3023, 14, 7908, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, 11748, 640, 198, 198, 6738, 289, 36436, 13, 48806, 1330, ...
2.104428
1,197
from functools import wraps from flask import request
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 42903, 1330, 2581, 628, 198 ]
4.307692
13
#!/hint/python3 import re import subprocess from typing import Any, List from os import getenv import subprocess from .gitutil import git_check_clean as git_check_clean # Stop mypy complaining about implicit reexport from .uiutil import run_txtcapture from .gitutil import git_add as git_add # Stop mypy complaining a...
[ 2, 48443, 71, 600, 14, 29412, 18, 198, 198, 11748, 302, 198, 11748, 850, 14681, 198, 6738, 19720, 1330, 4377, 11, 7343, 198, 6738, 28686, 1330, 651, 24330, 198, 11748, 850, 14681, 198, 198, 6738, 764, 18300, 22602, 1330, 17606, 62, 91...
2.498489
662
import torch import torch.nn as nn if __name__ == '__main__': batchsize =10 # stlstm_cell = STLSTMCell(4, 10) # x = torch.randn([1, 4]) # h = torch.randn([1, 10]) # c = torch.randn([1, 10]) # m = torch.randn([1, 10]) # # h_t, c_t, m_t = stlstm_cell(x, h, c, m) stlstm = STLSTM(4, ...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 15458, 7857, 796, 940, 198, 220, 220, 220, 1303, 336, 75, 301, 76, 62, 3846, 796,...
1.873362
229
from flask import Flask, render_template from flask_googlemaps import GoogleMaps, Map, icons from dynaconf import FlaskDynaconf app = Flask(__name__) GoogleMaps(app) FlaskDynaconf(app) @app.route("/") if __name__ == "__main__": app.run(port=5050)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 13297, 31803, 1330, 3012, 47010, 11, 9347, 11, 17149, 198, 6738, 37860, 7807, 69, 1330, 46947, 35, 2047, 7807, 69, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, ...
2.752688
93
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import find_packages from setuptools import setup # Load package veersion number. with open("csdmpy/__init__.py", "r") as f: for line in f.readlines(): if "__version__" in line: before_keyword, keyword, after_keyword = lin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, ...
2.514754
915
from src.message_broker.rabbitmq.rabbitmq_api import RabbitMQApi
[ 6738, 12351, 13, 20500, 62, 7957, 6122, 13, 81, 14229, 76, 80, 13, 81, 14229, 76, 80, 62, 15042, 1330, 25498, 49215, 32, 14415, 198 ]
2.6
25
import geojson import requests fileName = input("Enter Filename:") parameterName = input("Enter Parameter Name:") parameterName = parameterName.lower().capitalize() typeOfLevelName = input("Enter type of level:") levelName = input("Enter level:") levelVal = int(levelName) foreCastHourName = input("Enter forecast hour:"...
[ 11748, 4903, 13210, 1559, 198, 11748, 7007, 198, 7753, 5376, 796, 5128, 7203, 17469, 7066, 12453, 25, 4943, 198, 17143, 2357, 5376, 796, 5128, 7203, 17469, 25139, 2357, 6530, 25, 4943, 198, 17143, 2357, 5376, 796, 11507, 5376, 13, 21037, ...
2.857778
225
import asyncio from asyncio import Task from typing import List from base_logger import logging logger = logging.getLogger(__name__) from Dolphin.dolphinGameHandler import DolphinGameHandler from Model.itemDto import ItemDto from util.abstractGameHandler import AbstractGameHandler from PySide6.QtCore import Signal
[ 11748, 30351, 952, 198, 6738, 30351, 952, 1330, 15941, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 2779, 62, 6404, 1362, 1330, 18931, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 6738, 44576, 1...
3.72093
86
from __future__ import print_function import sys, os sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o def h2odownload_csv(): """ Python API test: h2o.download_csv(data, filename) """ training_data = h2o.import_file(pyunit_utils.locate("smalldata/logreg/benign.csv")) try: ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 11, 28686, 198, 17597, 13, 6978, 13, 28463, 7, 16, 553, 40720, 40720, 40720, 4943, 198, 6738, 5254, 1330, 12972, 20850, 62, 26791, 198, 11748, 289, 17, 78, 198, 198, 42...
2.461153
399
import math import torch from torch import nn as nn from models.archs.arch_util import make_layer class Upsample(nn.Sequential): """Upsample module. Args: scale (int): Scale factor. Supported scales: 2^n and 3. num_feat (int): Channel number of intermediate features. """ class ChannelAt...
[ 11748, 10688, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 355, 299, 77, 198, 198, 6738, 4981, 13, 34592, 13, 998, 62, 22602, 1330, 787, 62, 29289, 628, 198, 4871, 35949, 1403, 7, 20471, 13, 44015, 1843, 2599, 198, 220, 220, ...
2.386854
1,065
# python3 import argparse from Bio import SeqIO from Bio.Alphabet import generic_dna, generic_protein # imput parameters ap = argparse.ArgumentParser() ap.add_argument("-fa","--fasta", required=True, help="input fasta file") ap.add_argument("-gb", "--genbank", required=True, help="output genbank file") args = vars(ap.p...
[ 2, 21015, 18, 198, 11748, 1822, 29572, 198, 6738, 16024, 1330, 1001, 80, 9399, 198, 6738, 16024, 13, 2348, 19557, 1330, 14276, 62, 67, 2616, 11, 14276, 62, 48693, 198, 2, 848, 315, 10007, 198, 499, 796, 1822, 29572, 13, 28100, 1713, ...
2.836
250
#!/usr/bin/env python # Created by BBruceyuan on 18-7-9. from flask_script import Manager from flask_script import Shell from flask_migrate import Migrate, MigrateCommand from flask import current_app from app import create_app from app import db blog = create_app('develop') manager = Manager(blog) # with blog.app...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15622, 416, 12597, 26524, 88, 7258, 319, 1248, 12, 22, 12, 24, 13, 628, 198, 6738, 42903, 62, 12048, 1330, 9142, 198, 6738, 42903, 62, 12048, 1330, 17537, 198, 6738, 42903, 62, 76...
3.036458
192
#!/usr/bin/env python # -*- coding: utf-8 -*- """ : Project - Dialted CRF : Network frameworks and helpers : Author - Xi Mo : Institute - University of Kansas : Date - 6/24/2021 : Last Update - 7/10/2021 : License: Apache 2.0 """ import torch import torch.nn as nn import torch.nn.functional as ops imp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 37811, 201, 198, 25, 4935, 532, 21269, 1513, 8740, 37, 201, 198, 25, 7311, 29251, 290, 49385, 201...
2.703488
172
import psycopg2 from psycopg2 import sql import string import os from .row import Row from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine Base = declarative_base() from .harvester import ( HarvesterRow, MonitoredPathRow, )
[ 11748, 17331, 22163, 70, 17, 198, 6738, 17331, 22163, 70, 17, 1330, 44161, 198, 11748, 4731, 198, 11748, 28686, 198, 6738, 764, 808, 1330, 11314, 198, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, ...
2.978947
95
from aztk import models from aztk.utils import azure_api class CoreClient: """The base AZTK client that all other clients inherit from. **This client should not be used directly. Only software specific clients should be used.** """
[ 6738, 35560, 30488, 1330, 4981, 198, 6738, 35560, 30488, 13, 26791, 1330, 35560, 495, 62, 15042, 628, 198, 4871, 7231, 11792, 25, 198, 220, 220, 220, 37227, 464, 2779, 26253, 51, 42, 5456, 326, 477, 584, 7534, 16955, 422, 13, 628, 220...
3.5
72
import asyncio import re import discord from discord.ext import commands
[ 11748, 30351, 952, 198, 11748, 302, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 628, 198 ]
4
19
# -*- coding: utf-8 -*- # # Unless explicitly stated otherwise all files in this repository are licensed # under the Apache 2 License. # # This product includes software developed at Datadog # (https://www.datadoghq.com/). # # Copyright 2018 Datadog, Inc. # """api/lists.py Exposed lists for autocomplete. """ from f...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 198, 2, 17486, 11777, 5081, 4306, 477, 3696, 287, 428, 16099, 389, 11971, 198, 2, 739, 262, 24843, 362, 13789, 13, 198, 2, 198, 2, 770, 1720, 3407, 3788, 416...
3.192308
156
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2017 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 317, 5888, 326, 3769, 257, 11361, 7071, 284, 262, 50203, 18579, 7824, 198, 2, 15069, 357, 34, 8, 1853, 12, 5539, 198, 2, 1004, 28092, 36026, 390, 22862, 4496, 1279, 7959, ...
3.364672
351
from typing import Iterable, Union from neuralogic.core.constructs.predicate import Predicate from neuralogic.core.constructs import rule, factories AtomType = Union["BaseAtom", "WeightedAtom"] BodyAtomType = Union["BaseAtom", "WeightedAtom"] Head = AtomType Body = Union[Iterable[BodyAtomType], BodyAtomType]
[ 6738, 19720, 1330, 40806, 540, 11, 4479, 198, 198, 6738, 17019, 519, 291, 13, 7295, 13, 41571, 82, 13, 28764, 5344, 1330, 14322, 5344, 198, 6738, 17019, 519, 291, 13, 7295, 13, 41571, 82, 1330, 3896, 11, 17590, 628, 198, 2953, 296, ...
3.16
100
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'sphinx-php', version = '1.0', author = 'Fabien Potencier', author_email = 'fabien@symfony.com', description = 'Sphinx Extensions for PHP and Symfony', license = 'MIT', packages = find_packages(), install...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 705, 82, 746, 28413, 12, 10121, 3256, 198, 220, 220, ...
2.454545
143
import argparse import logging import random import socket import ssl import sys import time lista_de_sockets = [] configuracao_agente = [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" ] if __name__ == "__main__": if len(sys.argv)> ...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 17802, 198, 11748, 264, 6649, 198, 11748, 25064, 198, 11748, 640, 198, 198, 4868, 64, 62, 2934, 62, 82, 11603, 796, 17635, 198, 11250, 333, 330, 5488, 62, 363, 21872, ...
2.478261
184
import secrets from django.db import models from django.contrib.auth.models import User, Group # Authentication user group models.signals.post_save.connect(create_auth_group, sender=Group) # User configuration settings models.signals.post_save.connect(create_user_config, sender=User)
[ 11748, 13141, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 11, 4912, 628, 198, 2, 48191, 2836, 1448, 628, 198, 198, 27530, 13, 12683, 874, 13, 7353, 62, 2192...
3.430233
86
from pandac.PandaModules import * from panda3d.core import * from DNAProp import DNAProp
[ 6738, 19798, 330, 13, 47, 5282, 5841, 5028, 1330, 1635, 198, 6738, 279, 5282, 18, 67, 13, 7295, 1330, 1635, 198, 6738, 45080, 2969, 1773, 1330, 45080, 2969, 1773 ]
3.034483
29
""" Author: Ramiz Raja Created on: 11/01/2020 Problem: Search in a Rotated Sorted Array You are given a sorted array which is rotated at some random pivot point. Example: [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2] You are given a target value to search. If found in the array return its index, otherwise return -1. ...
[ 37811, 198, 13838, 25, 7431, 528, 13308, 64, 198, 41972, 319, 25, 1367, 14, 486, 14, 42334, 198, 198, 40781, 25, 11140, 287, 257, 18481, 515, 311, 9741, 15690, 198, 1639, 389, 1813, 257, 23243, 7177, 543, 318, 38375, 379, 617, 4738, ...
2.499373
797
import contextlib from flask_frozen import UrlForLogger, Freezer from naucse.utils.routes import absolute_urls_to_freeze class AllLinksLogger(UrlForLogger): """ AllLinksLogger primarily logs ``url_for`` calls, but yields urls from ``absolute_urls_to_freeze`` as well. """ def iter_calls(self): ...
[ 11748, 4732, 8019, 198, 198, 6738, 42903, 62, 69, 42005, 1330, 8799, 75, 1890, 11187, 1362, 11, 3232, 9107, 198, 198, 6738, 299, 14272, 325, 13, 26791, 13, 81, 448, 274, 1330, 4112, 62, 6371, 82, 62, 1462, 62, 5787, 2736, 628, 198, ...
2.518234
521
import ipaddress import socket range = ipaddress.IPv4Network('10.7.0.0/22') for x in range: try: print(socket.gethostbyaddr(str(x))[0]) except socket.herror: pass
[ 11748, 20966, 21975, 198, 11748, 17802, 198, 198, 9521, 796, 20966, 21975, 13, 4061, 85, 19, 26245, 10786, 940, 13, 22, 13, 15, 13, 15, 14, 1828, 11537, 198, 1640, 2124, 287, 2837, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, ...
2.238095
84
# # Get points witin admissible parameter space import planarfibers import pandas as pd pd.set_option('display.max_columns', 100) pd.set_option('display.width', 1000) df = planarfibers.discretization.get_points_on_slices( radii=["0", "1/2", "9/10"], la1s=["1/2", "4/6", "5/6", "1"], numeric=False, ) print...
[ 2, 1303, 3497, 2173, 20868, 259, 512, 21597, 11507, 2272, 198, 198, 11748, 1410, 37595, 571, 364, 198, 11748, 19798, 292, 355, 279, 67, 198, 30094, 13, 2617, 62, 18076, 10786, 13812, 13, 9806, 62, 28665, 82, 3256, 1802, 8, 198, 30094,...
2.338129
139
#!/usr/bin/env python import sys import threading import time from oslo.config import cfg from virtman import compute from virtman.openstack.common import log as logging #TODO: Auto determine host ip if not filled in conf file CONF = cfg.CONF if __name__ == '__main__': CONF(sys.argv[1:], proje...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 201, 198, 11748, 25064, 201, 198, 11748, 4704, 278, 201, 198, 11748, 640, 201, 198, 201, 198, 6738, 28686, 5439, 13, 11250, 1330, 30218, 70, 201, 198, 201, 198, 6738, 4118, 805, ...
2.563536
181
import lxml.html class QuickTag: """ Callable to quickly create lxml element and access it. """ def __call__(self, as_element=True): """If `as_element` is `False`, return tuple of content, tag. Otherwise, lxml.html.Element class is returned. """ if as_element: r...
[ 11748, 300, 19875, 13, 6494, 198, 198, 4871, 12029, 24835, 25, 198, 220, 220, 220, 37227, 4889, 540, 284, 2952, 2251, 300, 19875, 5002, 290, 1895, 340, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 13345, 834, 7, 94...
2.653422
453
import warnings from django.conf import settings from django.core.exceptions import FieldError from django.db import models from django.db.models.constants import LOOKUP_SEP from django.db.models.expressions import Expression from django.db.models.fields import FieldDoesNotExist from django.db.models.fields.related im...
[ 11748, 14601, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 7663, 12331, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 9...
2.500414
2,416
#!/usr/bin/env python3 from sys import stderr, exit import re from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors from magic_indexes_lib import * # METADATA OF THIS TAL_SERVICE: args_list = [ ('config',str), ('moves',str), ('goal',str), ('feedback',str) ] ENV =Env(args_list...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 25064, 1330, 336, 1082, 81, 11, 8420, 198, 11748, 302, 198, 198, 6738, 309, 1847, 15414, 82, 1330, 309, 1847, 15414, 198, 6738, 1963, 346, 9000, 1330, 2039, 85, 11, 16332, ...
2.465164
976
""" NOTE: https://stackoverflow.com/questions/25467288/pils-imagegrab-is-capturing-at-the-wrong-resolution !! This widget is not currently supported on Mac OS """ import tkinter as tk import ttkbootstrap as ttk from ttkbootstrap.constants import * from ttkbootstrap import colorutils, utility from PIL import Im...
[ 37811, 198, 220, 220, 220, 24550, 25, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 1495, 24669, 25270, 14, 79, 4487, 12, 9060, 32393, 12, 271, 12, 27144, 870, 12, 265, 12, 1169, 12, 36460, 12, 29268, 628, 220, 220, ...
2.239919
2,951
import numpy as np import cv2 #from sort.py import rama import time cap = cv2.VideoCapture('Night.mp4') fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (1280,720)) while(cap.isOpened()): ret, frame = cap.read() frame = cv2.line(frame, (100,360), (1200,360), (0,0,255), ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 2, 6738, 3297, 13, 9078, 1330, 374, 1689, 198, 11748, 640, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 10786, 24732, 13, 3149, 19, 11537, 198, 198, 14337, 535, 79...
2.144578
249
sparsetwittermysqlpw = "" # mySQL Database Password # Details for Mailgun email_to_notify = "" mailgun_default_smtp_login = "" mailgun_api_base_url = "" mailgun_api_key = ""
[ 2777, 945, 316, 86, 1967, 28744, 13976, 79, 86, 796, 13538, 220, 1303, 616, 17861, 24047, 30275, 198, 198, 2, 14890, 329, 11099, 7145, 198, 12888, 62, 1462, 62, 1662, 1958, 796, 13538, 198, 4529, 7145, 62, 12286, 62, 5796, 34788, 62, ...
2.666667
66
## ********************************************************* ## ## File autogenerated for the libuvc_camera package ## by the dynamic_reconfigure package. ## Please do not edit. ## ## ********************************************************/ from dynamic_reconfigure.encoding import extract_params inf = float('inf') ...
[ 2235, 41906, 8412, 4557, 9, 198, 2235, 198, 2235, 9220, 1960, 519, 877, 515, 329, 262, 9195, 14795, 66, 62, 25695, 5301, 198, 2235, 416, 262, 8925, 62, 260, 11250, 495, 5301, 13, 198, 2235, 4222, 466, 407, 4370, 13, 198, 2235, 198, ...
2.725266
7,156
VALIDATE = True
[ 23428, 2389, 6158, 796, 6407, 198 ]
2.666667
6
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'log-in.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, QtGui...
[ 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, 6404, 12, 259, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13,...
2.563981
211
import tensorflow as tf
[ 11748, 11192, 273, 11125, 355, 48700, 220, 198 ]
3.125
8
#!/usr/bin/python ####################################################################################################################################################################### #The MIT License (MIT) #Copyright (c) Copyright 2016, f0xd3v1lsw1ld@gmail.com #Permission is hereby granted, free of charge, to any p...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 29113, 29113, 29113, 29113, 29113, 4242, 21017, 198, 2, 464, 17168, 13789, 357, 36393, 8, 198, 2, 15269, 357, 66, 8, 15069, 1584, 11, 277, 15, 24954, 18, 85, 16, 75, 2032, 16, 335, 3...
4.145455
550
import pytest from jacquard.odm import Session from jacquard.buckets import Bucket from jacquard.constraints import Constraints from jacquard.buckets.utils import release from jacquard.buckets.constants import NUM_BUCKETS from jacquard.buckets.exceptions import NotEnoughBucketsException @pytest.mark.parametrize('div...
[ 11748, 12972, 9288, 198, 198, 6738, 474, 43561, 446, 13, 375, 76, 1330, 23575, 198, 6738, 474, 43561, 446, 13, 27041, 1039, 1330, 48353, 198, 6738, 474, 43561, 446, 13, 1102, 2536, 6003, 1330, 1482, 2536, 6003, 198, 6738, 474, 43561, ...
2.614865
148
#!/usr/bin/env python """ autonomous.py - Version 1.0 2016-10-12 General framework based on Patrick Goebel's nav_test.py Initial version based on ccam-navigation by Chris Mobley Autonomous movement added by Jonathan Hodges Define waypoint destinations for a robot to move autonomously within a map...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 18284, 13, 9078, 532, 10628, 352, 13, 15, 1584, 12, 940, 12, 1065, 628, 220, 220, 220, 3611, 9355, 1912, 319, 9925, 1514, 1765, 417, 338, 6812, 62, 9288, 13, 9078, 198, ...
3.206349
441
#!/usr/bin/env python # encoding: utf-8 """ @description: //TODO @version: 1.0 @author: BaoQiang @license: Apache Licence @contact: mailbaoqiang@gmail.com @site: http://www.github.com/githubao @software: PyCharm @file: answer.py @time: 2016/10/5 22:54 """ from .base import Base from .normal import normal_attr fro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 628, 198, 37811, 198, 31, 11213, 25, 3373, 51, 3727, 46, 220, 198, 198, 31, 9641, 25, 352, 13, 15, 198, 31, 9800, 25, 347, 5488, 48, 15483, 198, ...
2.876543
162
import cv2 import numpy as np
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941 ]
2.9
10
from flask import Flask, redner_template app = Flask(__name__) @app.route('/') @app.route('/users/<string:username>') if __name__ == '__main__': app.run()
[ 6738, 42903, 1330, 46947, 11, 2266, 1008, 62, 28243, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 31, 1324, 13, 38629, 10786, 14, 11537, 198, 198, 31, 1324, 13, 38629, 10786, 14, 18417, 14, 27, 8841, 25, 29460, 29, 11537, ...
2.546875
64
""" 48. Majority Number III """ # O(n) time # O(n) extra space class Solution: """ @param nums: A list of integers @param k: An integer @return: The majority number """
[ 37811, 198, 220, 220, 220, 4764, 13, 22171, 7913, 6711, 198, 37811, 198, 198, 2, 440, 7, 77, 8, 640, 198, 2, 440, 7, 77, 8, 3131, 2272, 198, 198, 4871, 28186, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2488, 17143, 997, ...
2.532468
77
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. # def create_profile(sender, **kwargs): # user = kwargs["instance"] # if kwargs["created"]: # user_profile = UserPro...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, 21928, 198, 6738, 42625, 14208, 13, 6381,...
2.752941
170
import os
[ 11748, 28686, 628, 198 ]
3
4
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 12905, 2667, 32388, 3457, 13, 1074, 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, ...
2.250439
10,821
import os from nonebot.default_config import * # bot profile BOT_NAME = "布洛妮娅" COMMAND_START = {'', '/', '!', '/', '!'} # paths PROJECT_BRONYA = os.path.dirname(os.path.abspath(__file__)) # 本文件所在目录 ASSETS = os.path.join(PROJECT_BRONYA, "assets") DATA = os.path.join(PROJECT_BRONYA, "data") # super users ...
[ 11748, 28686, 201, 198, 6738, 4844, 13645, 13, 12286, 62, 11250, 1330, 1635, 201, 198, 201, 198, 2, 10214, 7034, 201, 198, 33, 2394, 62, 20608, 796, 366, 30585, 225, 162, 112, 249, 36685, 106, 161, 101, 227, 1, 201, 198, 9858, 44, ...
1.637987
616
from .plots import (PlotIGraphModules,PlotIGraphCoclass,PlotIGraphConjCoclass)
[ 6738, 764, 489, 1747, 1330, 357, 43328, 3528, 1470, 5841, 5028, 11, 43328, 3528, 1470, 34, 420, 31172, 11, 43328, 3528, 1470, 3103, 73, 34, 420, 31172, 8 ]
2.785714
28
import cv2 import open_model_zoo_toolkit as omztk omz = omztk.openvino_omz() model = omz.imageClassifier() img = cv2.imread('resources/car.png') res = model.run(img) print(res) # Example: res = [[479, 'car wheel', 0.5016654], [817, 'sports car, sport car', 0.31316656], [436, 'beach wagon, station wagon, wagon, estate...
[ 11748, 269, 85, 17, 198, 11748, 1280, 62, 19849, 62, 89, 2238, 62, 25981, 15813, 355, 39030, 89, 30488, 198, 198, 296, 89, 796, 39030, 89, 30488, 13, 9654, 85, 2879, 62, 296, 89, 3419, 198, 19849, 796, 39030, 89, 13, 9060, 9487, 7...
2.52
150
from class_decorators import debugmethods b = B() b.m()
[ 6738, 1398, 62, 12501, 273, 2024, 1330, 14257, 24396, 82, 628, 628, 628, 198, 198, 65, 796, 347, 3419, 198, 65, 13, 76, 3419, 198 ]
2.52
25
from twisted.test import proto_helpers from twisted.trial import unittest from talkback.bot import TalkBackBotFactory QUOTE = "Nobody minds having what is too good for them. ~ Jane Austen" class FakePicker(object): """ Always return the same quote. """
[ 6738, 19074, 13, 9288, 1330, 44876, 62, 16794, 364, 198, 6738, 19074, 13, 45994, 1330, 555, 715, 395, 198, 198, 6738, 1561, 1891, 13, 13645, 1330, 12167, 7282, 20630, 22810, 198, 198, 10917, 23051, 796, 366, 24795, 9017, 1719, 644, 318,...
3.308642
81
from bottle import route, run, template, debug # http://localhost:8068/ @route("/") @route("/hello") @route("/hello/<name>") debug(True) run(host="localhost", port=8068)
[ 6738, 9294, 1330, 6339, 11, 1057, 11, 11055, 11, 14257, 198, 198, 2, 2638, 1378, 36750, 25, 1795, 3104, 14, 198, 198, 31, 38629, 7203, 14, 4943, 198, 198, 31, 38629, 7203, 14, 31373, 4943, 198, 31, 38629, 7203, 14, 31373, 14, 27, ...
2.703125
64