content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# =============================================================================== # Created: 1 Nov 2021 # @author: Jesse Wilson (Anaplan Asia Pte Ltd) # Description: Abstract Anaplan Authentication Class # Input: Username & Password, or SHA keypair # Output: Anaplan JWT and token expiry time # ================...
[ 2, 38093, 25609, 855, 198, 2, 15622, 25, 197, 197, 197, 16, 5267, 33448, 198, 2, 2488, 9800, 25, 197, 197, 197, 22290, 325, 8127, 357, 2025, 64, 11578, 7229, 350, 660, 12052, 8, 198, 2, 12489, 25, 197, 197, 23839, 17639, 11578, 48...
4.262774
137
import Adafruit_PCA9685 pwm = Adafruit_PCA9685.PCA9685() pwm.set_pwm_freq(50) initPWM = 320 setPWM = initPWM ctrlPort = 11 try: main() except KeyboardInterrupt: pwm.set_pwm(ctrlPort, 0, initPWM)
[ 11748, 1215, 1878, 4872, 62, 5662, 32, 24, 35978, 201, 198, 201, 198, 79, 26377, 796, 1215, 1878, 4872, 62, 5662, 32, 24, 35978, 13, 5662, 32, 24, 35978, 3419, 201, 198, 79, 26377, 13, 2617, 62, 79, 26377, 62, 19503, 80, 7, 1120, ...
1.928571
112
#cred.py, python script with my client ID and my client secret import cred import spotipy from spotipy.oauth2 import SpotifyClientCredentials import pandas as pd client_credential_manager = SpotifyClientCredentials(client_id= cred.client_ID, client_secret= cred.client_SECRET) sp = spotipy.Spotify(client_credentials_ma...
[ 2, 66, 445, 13, 9078, 11, 21015, 4226, 351, 616, 5456, 4522, 290, 616, 5456, 3200, 198, 11748, 2600, 198, 11748, 4136, 541, 88, 198, 6738, 4136, 541, 88, 13, 12162, 1071, 17, 1330, 26778, 11792, 34, 445, 14817, 198, 11748, 19798, 29...
3.44
125
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Perl # 2012 / 11 / 14 # jskny # http://d.hatena.ne.jp/iacctech/20110429/1304090609 import sys, tweepy, urllib, urllib2 import os, time, subprocess, socket import re from tweepy.streaming import StreamListener, Stream from tweepy.auth import OAuthHandler from da...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 198, 2, 24316, 220, 198, 2, 2321, 1220, 1367, 1220, 1478, 198, 2, 474, 8135, 3281, 628, 198, 2, 2638, 1...
2.199588
486
from django.test import TestCase from django.urls import reverse from rest_framework.test import APIClient from ...factories import UserFactory
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 6738, 2644, 22584, 1749, 1330, 11787, 22810, 628 ]
3.815789
38
ports = { "ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",}, "udp/netbios-dgm": {"type": "PortLiteral", "port": "138", "protocol": "17",}, "udp/netbios-ns": {"type": "PortLiteral", "port": "137", "protocol": "17",}, "tcp/ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",}, ...
[ 3742, 796, 1391, 201, 198, 220, 220, 220, 366, 45824, 1298, 19779, 4906, 1298, 366, 13924, 43, 270, 1691, 1600, 366, 634, 1298, 366, 1828, 1600, 366, 11235, 4668, 1298, 366, 21, 1600, 5512, 201, 198, 220, 220, 220, 366, 463, 79, 14,...
2.116864
1,352
# -*- coding: utf-8 -*- """ Created on Mon Mar 18 18:38:38 2019 @author: Oshikuru """ import numpy as np import matplotlib.pyplot as plt import random import data import pdb import IPython param_delta = 0.5 param_niter = 100 param_lambda = 0.01 def binlogreg_train(X,Y_): ''' Argumenti X: podatci, np.a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 1526, 1248, 1248, 25, 2548, 25, 2548, 13130, 198, 198, 31, 9800, 25, 46614, 1134, 14717, 198, 37811, 198, 198, 11748, 299, 32152, 355, 4594...
2.070896
1,072
from collections import Counter
[ 6738, 17268, 1330, 15034, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.5
18
from _ast import In, NotIn, Is, IsNot from collections import deque, Counter from decimal import Decimal from fractions import Fraction from safe_eval.rules import BinOpRule, CallableTypeRule, CallableRule, GetattrTypeRule, CallableMethodRule k_view_type = type({}.keys()) v_view_type = type({}.values()) it_view_type ...
[ 6738, 4808, 459, 1330, 554, 11, 1892, 818, 11, 1148, 11, 1148, 3673, 198, 6738, 17268, 1330, 390, 4188, 11, 15034, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 49876, 1330, 376, 7861, 198, 198, 6738, 3338, 62, 18206, 13, 38785, 1330...
2.518036
998
#!/usr/bin/env mayapy # # Copyright 2021 Autodesk # # 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 a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 743, 12826, 198, 2, 198, 2, 15069, 33448, 5231, 4147, 74, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, ...
3.277567
263
# -*- coding: utf-8 -*- import numpy as np import talib as ta from abc import ABC, abstractproperty, abstractclassmethod, abstractmethod
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3305, 571, 355, 20486, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 26745, 11, 12531, 4871, 24396, 11, 12531, 24396, 628 ]
3.285714
42
from django.contrib import admin from core import models from .category import CategoryAdmin from .trait import TraitAdmin from .user import UserAdmin admin.site.register(models.User, UserAdmin) admin.site.register(models.Ability) admin.site.register(models.Category, CategoryAdmin) admin.site.register(models.Trait, ...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4755, 1330, 4981, 198, 198, 6738, 764, 22872, 1330, 21743, 46787, 198, 6738, 764, 9535, 270, 1330, 4759, 270, 46787, 198, 6738, 764, 7220, 1330, 11787, 46787, 628, 198, 28482, 1...
3.464789
142
import numpy as np import sys import caffe import glob import uuid import cv2 from util import transform_img from mouth_detector_dlib import mouth_detector from caffe.proto import caffe_pb2 import os import shutil from util import histogram_equalization from teeth_cnn import teeth_cnn mouth_detector_instance = mouth_d...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 21121, 198, 11748, 15095, 198, 11748, 334, 27112, 198, 11748, 269, 85, 17, 198, 6738, 7736, 1330, 6121, 62, 9600, 198, 6738, 5422, 62, 15255, 9250, 62, 67, 8019, 1330, 5422, ...
1.97482
1,112
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.436792
1,147
import sys import omfgp as gp import time if gp.USES_USCARD: import uscard from machine import Pin def get_default_reader(): """Return default smart card reader.""" if gp.USES_USCARD: return uscard.Reader(name="Smart card reader", ifaceId=2, ...
[ 11748, 25064, 198, 11748, 39030, 69, 31197, 355, 27809, 198, 11748, 640, 198, 361, 27809, 13, 2937, 1546, 62, 2937, 34, 9795, 25, 198, 220, 220, 220, 1330, 514, 9517, 198, 220, 220, 220, 422, 4572, 1330, 13727, 628, 198, 4299, 651, ...
2.210256
585
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: Desc : """ from timeit import timeit __author__ = 'Xiong Neng' if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 47373, 25, 220, 198, 220, 220, 220, 39373, 1058, 220, 198, 37811, 198, 6738, 640, 270, 133...
2.17284
81
from dataclasses import dataclass from typing import Optional import matplotlib.pyplot as plt import numpy as np def build_tree(pts, radii, min_pts_per_box=10): # The tree construction process receives three parameters: # # pts: the center of each element. # # radii: the radius of each element....
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 628, 628, 198, 4299, 1382, 62, 21048, 7, 457, 82, 11...
2.427467
2,716
file = open('corruptionChecksum_input.txt', 'r') spreadsheet = file.readlines() checksum = 0 for line in spreadsheet: cells = line.split() minimum = find_smallest(cells) maximum = find_largest(cells) checksum += maximum - minimum print(checksum)
[ 7753, 796, 1280, 10786, 46260, 7376, 4657, 388, 62, 15414, 13, 14116, 3256, 705, 81, 11537, 198, 43639, 21760, 796, 2393, 13, 961, 6615, 3419, 628, 628, 198, 42116, 388, 796, 657, 198, 198, 1640, 1627, 287, 30117, 25, 198, 220, 220, ...
2.934066
91
# Copyright 2020 ByteDance 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, 12131, 30589, 35, 590, 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.538462
221
from django.db import migrations, transaction
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 8611, 201, 198, 201, 198 ]
3.5
14
import cv2 import numpy as np from matplotlib import pyplot as plt from util import resize_min_dim, smart_hsv_range IMAGE_FILENAME = '/Users/ryanbrott/Desktop/36.jpg' MIN_DIMENSION = 480 # LOWER_HSV, UPPER_HSV = (170, 80, 0), (7, 255, 255) LOWER_HSV, UPPER_HSV = (175, 80, 80), (22, 255, 255) image = cv2.imread(IMAGE_...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 7736, 1330, 47558, 62, 1084, 62, 27740, 11, 4451, 62, 11994, 85, 62, 9521, 198, 198, 3955, 11879, 62, ...
1.993464
612
from django.db import models from dashboard.models import projects
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 30415, 13, 27530, 1330, 4493, 628, 198 ]
4.3125
16
""" ToDo: convert to proper format Tests for modules in this directory """ from __future__ import print_function # Author: Vladan Lucic, last modified 05.04.07 import scipy import scipy.ndimage import numpy import pyto.util.numpy_plus as np_plus # define test arrays aa = numpy.arange(12, dtype='int32') aa = aa.resh...
[ 37811, 198, 2514, 5211, 25, 10385, 284, 1774, 5794, 198, 198, 51, 3558, 329, 13103, 287, 428, 8619, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 2, 6434, 25, 13080, 272, 7598, 291, 11, 938, 9518, 8870, 13, 30...
2.678082
146
#coding=utf-8 __author__ = 'zxlee' __github__ = 'https://github.com/SmileZXLee/GithubRepositoryStatistics'
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 834, 9800, 834, 796, 705, 42592, 7197, 6, 198, 834, 12567, 834, 796, 705, 5450, 1378, 12567, 13, 785, 14, 7556, 576, 40692, 24338, 14, 38, 10060, 6207, 13264, 48346, 6, 628, 198 ]
2.658537
41
#!/bin/python3 # author: Jan Hybs import enum import pathlib from bson import objectid from flask import Flask, redirect, session, render_template, url_for import flask.json from flask_cors import CORS from loguru import logger from entities.crates import ICrate from env import Env from functools import wraps ...
[ 2, 48443, 8800, 14, 29412, 18, 198, 2, 1772, 25, 2365, 6707, 1443, 198, 198, 11748, 33829, 198, 11748, 3108, 8019, 198, 198, 6738, 275, 1559, 1330, 2134, 312, 198, 6738, 42903, 1330, 46947, 11, 18941, 11, 6246, 11, 8543, 62, 28243, ...
2.642857
406
import base64 from collections import deque from io import BytesIO import os import time from PIL import Image import pandas as pd from pandas.core.arrays import boolean import praw import requests import streamlit as st import datetime import pytesseract pytesseract.pytesseract.tesseract_cmd ='context/tesseract' impo...
[ 11748, 2779, 2414, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 13, 7295,...
3.309524
126
from npt import log from . import search as Search from . import download as Download from . import processing as Processing from . import mosaic as Mosaic
[ 6738, 299, 457, 1330, 2604, 198, 198, 6738, 764, 1330, 2989, 355, 11140, 198, 6738, 764, 1330, 4321, 355, 10472, 198, 6738, 764, 1330, 7587, 355, 28403, 198, 6738, 764, 1330, 47076, 355, 5826, 18452, 198 ]
4.361111
36
token = 'Mzc5NTc3MDc1NTU3NzI4MjU2.DXixQA.DLLB8b81nSyB1IGNJ6WeEeukAQU' #Put Your bots token here prefix = '^^' #put prefix here link = 'https://discordapp.com/oauth2/authorize?client_id=379577075557728256&scope=bot&permissions=134659080' #put bot invite link here ownerid = '227860415709708288' #put your id here...
[ 30001, 796, 705, 44, 89, 66, 20, 11251, 66, 18, 12740, 66, 16, 11251, 52, 18, 45, 89, 40, 19, 44, 73, 52, 17, 13, 36227, 844, 48, 32, 13, 35, 3069, 33, 23, 65, 6659, 77, 13940, 33, 16, 16284, 41, 21, 1135, 36, 68, 2724, 32...
2.204082
147
# Copyright (c) 2021 John Carrino import struct from dataclasses import dataclass import numpy as np from scipy.spatial.transform import Rotation
[ 2, 220, 15069, 357, 66, 8, 33448, 1757, 20765, 2879, 198, 11748, 2878, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 35636, 1330, 371, 14221, 198...
3.5
42
import unittest import vnmrjpy as vj import numpy as np import matplotlib.pyplot as plt import time #import cupy as cp RP={'rcvrs':4,'filter_size':(11,7),'virtualcoilboost':False} PLOTTING = False
[ 11748, 555, 715, 395, 198, 11748, 410, 21533, 81, 73, 9078, 355, 410, 73, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 640, 198, 2, 11748, 6508, 88, 355, 31396, 198, 1...
2.618421
76
#setup import docx2txt # extract text text = docx2txt.process("../documents/ambev.docx") text2 = docx2txt.process("../documents/ambev2.docx") text3 = docx2txt.process("../documents/ambev3.docx") from whoosh.fields import Schema, TEXT schema = Schema(title=TEXT, content=TEXT) import os, os.path from whoosh import i...
[ 2, 40406, 198, 198, 11748, 2205, 87, 17, 14116, 198, 198, 2, 7925, 2420, 198, 5239, 796, 2205, 87, 17, 14116, 13, 14681, 7203, 40720, 15390, 2886, 14, 321, 1350, 85, 13, 15390, 87, 4943, 198, 5239, 17, 796, 2205, 87, 17, 14116, 13...
2.629353
402
from django.urls import path from .views import FileList, FileDetail urlpatterns = [ path('',FileList.as_view()), path('<int:pk>/',FileDetail.as_view()), # individual items from django ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 9220, 8053, 11, 9220, 11242, 603, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 8979, 8053, 13, 292, 62, 1177, 3419, 828, ...
2.684932
73
""" Generate barcode images with various encodings TODO - Include text at bottom - DXF instead """ #======================================================== # Imports #======================================================== from dxfwrite import DXFEngine as dxf #=====================================================...
[ 37811, 198, 8645, 378, 2318, 8189, 4263, 351, 2972, 2207, 375, 654, 198, 198, 51, 3727, 46, 198, 12, 40348, 2420, 379, 4220, 198, 12, 19393, 37, 2427, 198, 37811, 198, 2, 10052, 4770, 2559, 198, 2, 1846, 3742, 198, 2, 10052, 4770, ...
3.366162
396
from django.contrib import admin from cheeseshop.apps.catalog.models import Brand admin.site.register(Brand)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 27384, 5069, 404, 13, 18211, 13, 9246, 11794, 13, 27530, 1330, 13512, 198, 198, 28482, 13, 15654, 13, 30238, 7, 38416, 8, 198 ]
3.333333
33
# 373: K # leetcode submit region begin(Prohibit modification and deletion) from heapq import heappop, heappush from typing import List # leetcode submit region end(Prohibit modification and deletion)
[ 2, 47946, 25, 509, 220, 198, 2, 443, 316, 8189, 9199, 3814, 2221, 7, 2964, 26964, 17613, 290, 39948, 8, 198, 6738, 24575, 80, 1330, 339, 1324, 404, 11, 339, 1324, 1530, 198, 6738, 19720, 1330, 7343, 628, 198, 2, 443, 316, 8189, 91...
3.777778
54
# Core Django imports. from django.urls import path from django.shortcuts import redirect, render # LMS app imports from lms.views.course.course_views import ( CourseListView,fetch_questions,compute_stats,display_lp,Edit_quiz,preview_quiz,fetch_questions_oneatatime,compute_html,enter_comment,quiz_lp ) ...
[ 2, 7231, 37770, 17944, 13, 201, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 201, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 201, 198, 201, 198, 2, 406, 5653, 598, 17944, 201, 198, 201, 198, 6738, 300, 9...
2.108586
1,188
"""A module of errors."""
[ 37811, 32, 8265, 286, 8563, 526, 15931, 628, 198 ]
3.111111
9
import socket import threading helpMessage = '-q -- close connection\n-l -- list of connected devices\n-t -- server time \n-s "arduino/client ""reciever name" "message" -- send message (messages can be max 100 character) \nif reciever is an arduino board it can be controlled by this messsage:\n -s arduino "arduino ...
[ 11748, 17802, 201, 198, 11748, 4704, 278, 201, 198, 201, 198, 16794, 12837, 796, 705, 12, 80, 1377, 1969, 4637, 59, 77, 12, 75, 1377, 1351, 286, 5884, 4410, 59, 77, 12, 83, 1377, 4382, 640, 3467, 77, 12, 82, 366, 446, 84, 2879, ...
2.780769
260
from torchvision import datasets, transforms from base import BaseDataLoader from torch.utils.data import Dataset, DataLoader import pandas as pd import torch from skimage import io#, transform import numpy as np
[ 6738, 28034, 10178, 1330, 40522, 11, 31408, 198, 6738, 2779, 1330, 7308, 6601, 17401, 198, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28034, 198, 6738...
3.875
56
import evaluation_script import argparse parser = argparse.ArgumentParser(description='Evaluation script used in the eBay SIGIR 2019 eCommerce Search Challenge.') parser.add_argument('-g', '--ground-truth-file', required=True, help="Ground truth file") parser.add_argument('-p', '--prediction-file', required=True, help...
[ 11748, 12660, 62, 12048, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 36, 2100, 2288, 4226, 973, 287, 262, 21698, 33993, 4663, 13130, 304, 47662, 11140, 13879, 2637, 8, 198, 48610, ...
3.396552
174
from .core.starfish import starfish starfish()
[ 6738, 764, 7295, 13, 7364, 11084, 1330, 3491, 11084, 198, 198, 7364, 11084, 3419, 198 ]
3.2
15
# Generated by Django 2.2 on 2020-04-26 08:18 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 12131, 12, 3023, 12, 2075, 8487, 25, 1507, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import logging from server.singleton_meta import SingletonMeta log = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 4382, 13, 12215, 10565, 62, 28961, 1330, 5573, 10565, 48526, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8 ]
3.37931
29
# (10,2,20,4,30,6,40,8,50) n=int(input("enter no--")) i=1 c=10 while i<=n: if i%2==0: c+=10 print(i,end=",") i+=1 i+=1 print(c,end=",") # (1+10=11, 11+20=31, 31+30=61, 61+40=101) n=int(input("enter no,-")) i=0 d=1 s=10 while i<n: print(d,end=",") d...
[ 2, 220, 357, 940, 11, 17, 11, 1238, 11, 19, 11, 1270, 11, 21, 11, 1821, 11, 23, 11, 1120, 8, 201, 198, 201, 198, 77, 28, 600, 7, 15414, 7203, 9255, 645, 438, 48774, 201, 198, 72, 28, 16, 201, 198, 66, 28, 940, 201, 198, 45...
1.471976
339
import os import time from os import mkdir from os.path import isdir from threading import Lock import cv2 import imutils from modules.Camera import Detect from modules.Camera.CameraHandler import CameraHandler from modules.Config import Config from modules.Fusion import Fusion from modules.Logger.Logger import Logge...
[ 11748, 28686, 198, 11748, 640, 198, 6738, 28686, 1330, 33480, 15908, 198, 6738, 28686, 13, 6978, 1330, 318, 15908, 198, 6738, 4704, 278, 1330, 13656, 198, 198, 11748, 269, 85, 17, 198, 11748, 545, 26791, 198, 198, 6738, 13103, 13, 35632...
3.947368
95
import torch from torch.autograd import Variable import time import os import sys import numpy as np from utils import AverageMeter, calculate_accuracy, save_gif, accuracy from models.binarized_modules import binarizef
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 3384, 4487, 1330, 13475, 44, 2357, 11, 15284, 62, 4134, 23843, ...
3.622951
61
from django.contrib.contenttypes import fields from django.shortcuts import render from .forms import MessageForm, ContactForm from django.views.generic import DetailView, ListView, FormView
[ 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 1330, 7032, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 6738, 764, 23914, 1330, 16000, 8479, 11, 14039, 8479, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, ...
3.918367
49
# Modules import discord from datetime import date from discord import Embed from json import loads, dumps from assets.prism import Tools from discord.ext import commands # Main Command Class # Link to bot def setup(bot): bot.add_cog(Settings(bot))
[ 2, 3401, 5028, 198, 11748, 36446, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 36446, 1330, 13302, 276, 198, 6738, 33918, 1330, 15989, 11, 45514, 198, 198, 6738, 6798, 13, 1050, 1042, 1330, 20003, 198, 6738, 36446, 13, 2302, 1330,...
3.381579
76
import torch from .mcts import MCTS, Node from .utils import select_action
[ 11748, 28034, 198, 198, 6738, 764, 76, 310, 82, 1330, 337, 4177, 50, 11, 19081, 198, 6738, 764, 26791, 1330, 2922, 62, 2673, 628 ]
3.208333
24
# coding=utf-8 import torch
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 28034, 198 ]
2.8
10
import math ballArray_one=[] ballArray_two=[]
[ 11748, 10688, 201, 198, 201, 198, 1894, 19182, 62, 505, 28, 21737, 201, 198, 1894, 19182, 62, 11545, 28, 21737, 201, 198 ]
2.318182
22
import asyncio import logging import discord from carim_discord_bot import managed_service, config from carim_discord_bot.discord_client import discord_service log = logging.getLogger(__name__) service = None
[ 11748, 30351, 952, 198, 11748, 18931, 198, 198, 11748, 36446, 198, 198, 6738, 1097, 320, 62, 15410, 585, 62, 13645, 1330, 5257, 62, 15271, 11, 4566, 198, 6738, 1097, 320, 62, 15410, 585, 62, 13645, 13, 15410, 585, 62, 16366, 1330, 364...
3.323077
65
#!/usr/bin/env python3 from GAReport import GAReport VIEW_ID = 'PutViewIDHere' DIMENSIONS = ["Page", ] METRICS = ["Pageviews", "Unique Pageviews", "Avg. Time on Page", "Entrances", "Bounce Rate", "% Exit", "Page Value"] # Use these instructions for creating single and multiple filters: https://developers.google.com...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 402, 1503, 45813, 1330, 402, 1503, 45813, 198, 198, 28206, 62, 2389, 796, 705, 11588, 7680, 2389, 4342, 6, 198, 198, 35, 3955, 16938, 11053, 796, 14631, 9876, 1600, 2361...
2.968586
191
from resnet import resnet18_,resnet34_,resnet50_,resnet101_, resnet152_ from keras.layers import Input, Dense, Lambda,Dropout,Conv2D,Activation,Bidirectional,GlobalAveragePooling1D,\ BatchNormalization,Reshape from keras_layer_normalization import LayerNormalization from keras.layers.cudnn_recurrent import CuDN...
[ 6738, 581, 3262, 1330, 581, 3262, 1507, 62, 11, 411, 3262, 2682, 62, 11, 411, 3262, 1120, 62, 11, 411, 3262, 8784, 62, 11, 581, 3262, 17827, 62, 201, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 23412, 11, 360, 1072, 11, 21114, 6814...
1.788721
1,259
from .literals import booleans from .models import (readable_web_streams, web_streams, writeable_web_streams) from .paths import web_url_strings
[ 6738, 764, 17201, 874, 1330, 1489, 2305, 504, 198, 6738, 764, 27530, 1330, 357, 46155, 62, 12384, 62, 5532, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 62,...
2.125
88
# -*- coding: utf-8 -*- import os cudaid = 0 os.environ["CUDA_VISIBLE_DEVICES"] = str(cudaid) import sys import time import numpy as np import cPickle as pickle import copy import random from random import shuffle import math import torch import torch.nn as nn from torch.autograd import Variable import data as datar...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 66, 463, 1698, 796, 657, 198, 418, 13, 268, 2268, 14692, 43633, 5631, 62, 29817, 34563, 62, 39345, 34444, 8973, 796, 965, 7, 66, 463, 1698, 8, 198, ...
2.75
240
# Generated by Django 2.1.5 on 2019-02-14 14:25 from django.db import migrations import imagekit.models.fields
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 20, 319, 13130, 12, 2999, 12, 1415, 1478, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 11748, 2939, 15813, 13, 27530, 13, 25747, 628 ]
2.973684
38
from collections import MutableMapping, MutableSet, namedtuple from operator import itemgetter NULL = Node(None, None, None, False) from unittest import TestCase
[ 6738, 17268, 1330, 13859, 540, 44, 5912, 11, 13859, 540, 7248, 11, 3706, 83, 29291, 198, 6738, 10088, 1330, 2378, 1136, 353, 628, 198, 33991, 796, 19081, 7, 14202, 11, 6045, 11, 6045, 11, 10352, 8, 628, 628, 198, 6738, 555, 715, 395...
3.5625
48
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files
[ 6738, 220, 844, 27349, 62, 2118, 9078, 13, 8692, 1330, 7308, 198, 6738, 220, 844, 27349, 62, 2118, 9078, 13, 16624, 1330, 13283, 628 ]
3.375
24
from flask import current_app from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flask_login import current_user from memos.m...
[ 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 42903, 62, 86, 27110, 13, 7753, 1330, 9220, 15878, 11, 9220, 3237, 6972, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 30275, 15878, ...
3.713178
129
import rsa
[ 11748, 374, 11400, 628 ]
3
4
import paramiko,time,sys,json,os,pandas ######################################################################################################################## ################################################### parms ############################################################# proxy = None Port = 22 Username = open...
[ 11748, 5772, 12125, 11, 2435, 11, 17597, 11, 17752, 11, 418, 11, 79, 392, 292, 198, 29113, 29113, 29113, 14468, 7804, 198, 29113, 14468, 21017, 1582, 907, 220, 1303, 29113, 14468, 7804, 4242, 198, 36436, 796, 6045, 198, 13924, 796, 2534...
4.213992
243
import importlib import logging from volttron.platform.agent import utils _log = logging.getLogger(__name__) utils.setup_logging() __version__ = "0.1" __all__ = ['Model']
[ 11748, 1330, 8019, 198, 11748, 18931, 198, 6738, 2322, 926, 1313, 13, 24254, 13, 25781, 1330, 3384, 4487, 198, 198, 62, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 26791, 13, 40406, 62, 6404, 2667, 3419, 198, ...
2.852459
61
import draft import os run()
[ 198, 11748, 4538, 198, 11748, 28686, 198, 198, 5143, 3419, 198 ]
2.818182
11
# https://open.kattis.com/problems/honey print(*(lambda x: [x[int(input())] for _ in range(int(input()))])([1, 0, 6, 12, 90, 360, 2040, 10080, 54810, 290640, 1588356, 8676360, 47977776, 266378112, 1488801600]), sep="\n")
[ 2, 3740, 1378, 9654, 13, 74, 1078, 271, 13, 785, 14, 1676, 22143, 14, 71, 1419, 198, 198, 4798, 46491, 7, 50033, 2124, 25, 685, 87, 58, 600, 7, 15414, 3419, 15437, 329, 4808, 287, 2837, 7, 600, 7, 15414, 3419, 4008, 60, 5769, 58...
2.19802
101
# -*- coding: utf-8 -*- """File containing a Windows Registry plugin to parse the USBStor key.""" import logging from plaso.events import windows_events from plaso.lib import eventdata from plaso.parsers import winreg from plaso.parsers.winreg_plugins import interface __author__ = 'David Nides (david.nides@gmail.co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 8979, 7268, 257, 3964, 33432, 13877, 284, 21136, 262, 8450, 1273, 273, 1994, 526, 15931, 198, 198, 11748, 18931, 198, 198, 6738, 458, 292, 78, 13, 31534, 1330, 91...
3.056
125
from collections import defaultdict from discord.ext.commands import Cog, command from discord.utils import get from ...utils import check_restricted from ... import exceptions from ... import messagemanager cogs = [Help]
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 327, 519, 11, 3141, 198, 6738, 36446, 13, 26791, 1330, 651, 198, 6738, 2644, 26791, 1330, 2198, 62, 49343, 198, 6738, 2644, 1330, 13269, 198, 198, 6738, ...
4.054545
55
"Update a Flatpak repository for new versions of components" import argparse import asyncio import datetime from functools import total_ordering import hashlib from itertools import zip_longest import json from pathlib import Path import re import httpx import jinja2 import yaml GITHUB_DATE_FORMAT = "%Y-%m-%dT%H:%M:...
[ 1, 10260, 257, 21939, 41091, 16099, 329, 649, 6300, 286, 6805, 1, 198, 11748, 1822, 29572, 198, 11748, 30351, 952, 198, 11748, 4818, 8079, 198, 6738, 1257, 310, 10141, 1330, 2472, 62, 34555, 198, 11748, 12234, 8019, 198, 6738, 340, 861,...
2.520446
1,345
from unittest import TestCase import base.env.pre_process as pre_process import pandas as pd from sklearn.preprocessing import MinMaxScaler from helper.util import get_attribute from base.env.pre_process_conf import active_stragery, get_strategy_analyze import base.env.pre_process
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 2779, 13, 24330, 13, 3866, 62, 14681, 355, 662, 62, 14681, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 198, 67...
3.380952
84
#!/usr/bin/env python2.5 #encoding:utf-8 #author:dbr/Ben #project:themoviedb #forked by ccjensen/Chris #http://github.com/ccjensen/themoviedb """An interface to the themoviedb.org API """ __author__ = "dbr/Ben" __version__ = "0.2b" config = {} config['apikey'] = "a8b9f96dde091408a03cb4c78477bd14" config['urls'] = {...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 20, 198, 2, 12685, 7656, 25, 40477, 12, 23, 198, 2, 9800, 25, 67, 1671, 14, 11696, 198, 2, 16302, 25, 18855, 709, 798, 65, 198, 2, 32523, 276, 416, 36624, 73, 18756, 14, 15645...
2.52638
815
import numpy import numpy.linalg def distance_sum(inputs, references): """Sum of all distances between inputs and references Each element should be in a row! """ norms = numpy.zeros(inputs.shape[0]) for i in xrange(references.shape[0]): norms += numpy.apply_along_axis(numpy.linalg.norm, 1...
[ 11748, 299, 32152, 198, 11748, 299, 32152, 13, 75, 1292, 70, 628, 198, 4299, 5253, 62, 16345, 7, 15414, 82, 11, 10288, 2599, 198, 220, 220, 220, 37227, 13065, 286, 477, 18868, 1022, 17311, 290, 10288, 628, 220, 220, 220, 5501, 5002, ...
2.022
1,500
# # PySNMP MIB module CABH-QOS2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CABH-QOS2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:26:31 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 327, 6242, 39, 12, 48, 2640, 17, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67...
2.349314
7,655
from django.shortcuts import redirect, render from .models import * from datetime import date from brain import ipfunc
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 764, 27530, 1330, 1635, 198, 6738, 4818, 8079, 1330, 3128, 198, 6738, 3632, 1330, 20966, 20786, 628, 628 ]
4.066667
30
from django.db import models from django.utils import timezone from sizefield.models import FileSizeField # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 264, 528, 891, 1164, 13, 27530, 1330, 9220, 10699, 15878, 198, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.621622
37
import os.path import json from astral import Astral appdata_folder = os.path.join(os.environ["LOCALAPPDATA"], "Nightshift")
[ 11748, 28686, 13, 6978, 198, 11748, 33918, 198, 6738, 6468, 1373, 1330, 34496, 198, 198, 1324, 7890, 62, 43551, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 268, 2268, 14692, 29701, 1847, 2969, 5760, 13563, 33116, 366, 24732, 30846, 494...
3
43
# BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import numpy import awkward1._util import awkward1._connect._numpy import awkward1.layout import awkward1.operations.convert ### The following are not strictly reducers, but are defined in...
[ 2, 347, 10305, 513, 12, 2601, 682, 13789, 26, 766, 3740, 1378, 12567, 13, 785, 14, 34523, 452, 945, 4106, 14, 707, 12378, 12, 16, 13, 15, 14, 2436, 672, 14, 9866, 14, 43, 2149, 24290, 198, 198, 6738, 11593, 37443, 834, 1330, 4112,...
2.206135
2,445
import os import re import sys import warnings __version__ = '1.4.3' line_re = re.compile(r""" ^ (?:export\s+)? # optional export ([\w\.]+) # key (?:\s*=\s*|:\s+?) # separator ( # optional value begin '(?:\'|[^'])*' # single quoted value | ...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 14601, 628, 198, 834, 9641, 834, 796, 705, 16, 13, 19, 13, 18, 6, 628, 198, 1370, 62, 260, 796, 302, 13, 5589, 576, 7, 81, 37811, 198, 220, 220, 220, 10563, 198, 220, ...
1.941463
1,230
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.2.4post1), on October 27, 2020, at 14:06 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Hchenberger R, Sogo H, Kastman E, L...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 6306, 373, 2727, 1262, 38955, 20519, 18, 29544, 35869, 357, 85, 42334, 13, 17, 13, 19, 7353, 16, 82...
2.575008
6,506
grammar = r""" start: (item ";")+ item: import | coords | playlist | step import : "import" string coords : "coords" coords_body coords_body : "{" coord_def ("," coord_def)* "}" coord_def: string ":" "{" coord_body ("," coord_body)* "}" coord_body: string ":" "[" int "," int "]" playlist : "playlist" string playli...
[ 4546, 3876, 796, 374, 37811, 198, 9688, 25, 357, 9186, 366, 26, 4943, 10, 198, 198, 9186, 25, 1330, 930, 763, 3669, 930, 33178, 930, 2239, 198, 198, 11748, 1058, 366, 11748, 1, 4731, 198, 198, 1073, 3669, 1058, 366, 1073, 3669, 1, ...
2.600267
748
import configparser import os import shutil import traceback
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 12854, 1891, 628, 220, 220, 220, 220, 220, 220, 220, 220 ]
3.043478
23
#!/usr/bin/env python # __BEGIN_LICENSE__ #Copyright (c) 2015, United States Government, as represented by the #Administrator of the National Aeronautics and Space Administration. #All rights reserved. # __END_LICENSE__ """ Takes as input a CSV file in the format: 37 46 29.2080,-122 25 08.1336,San Francisco 37 27 1...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 11593, 33, 43312, 62, 43, 2149, 24290, 834, 198, 2, 15269, 357, 66, 8, 1853, 11, 1578, 1829, 5070, 11, 355, 7997, 416, 262, 220, 198, 2, 41862, 12392, 286, 262, 2351, 15781, 261...
2.931624
234
from torchvision.datasets import CIFAR10 from torchvision.datasets import CIFAR100 import os root = '/database/cifar10/' from PIL import Image dataset_train = CIFAR10(root) for k, (img, label) in enumerate(dataset_train): print('processsing' + str(k)) if not os.path.exists(root + 'CIFAR10_image/' + ...
[ 6738, 28034, 10178, 13, 19608, 292, 1039, 1330, 327, 5064, 1503, 940, 201, 198, 6738, 28034, 10178, 13, 19608, 292, 1039, 1330, 327, 5064, 1503, 3064, 201, 198, 11748, 28686, 201, 198, 15763, 796, 31051, 48806, 14, 66, 361, 283, 940, ...
2.27619
210
from toapi import Item, XPath
[ 6738, 284, 15042, 1330, 9097, 11, 11961, 776, 628 ]
3.444444
9
''' Failure tests ''' import os from typing import Any import pytest from helpers.github import API api = API() pass_token = Any fail_token = os.getenv('FAIL_TOKEN') fail_org = os.getenv('FAIL_ORG') fail_repo = os.getenv('FAIL_REPO') def test_fail_auth(): ''' Fail 'auth' to Github ''' with pytest.r...
[ 7061, 6, 198, 50015, 5254, 198, 7061, 6, 198, 198, 11748, 28686, 198, 6738, 19720, 1330, 4377, 198, 11748, 12972, 9288, 198, 6738, 49385, 13, 12567, 1330, 7824, 198, 198, 15042, 796, 7824, 3419, 198, 6603, 62, 30001, 796, 4377, 198, 3...
2.329032
310
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licensed under the ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 492, 8265, 3712, 39080, 9078, 198, 220, 220, 1058, 24254, 25, 33501, 11, 3964, 198, 220, 220, 1058, 28869, 24608, 25, 17427, 16645, 5139, 32329, 287, 11361, ...
2.063772
1,474
from enum import Enum, unique, auto if __name__ == '__main__': main()
[ 198, 6738, 33829, 1330, 2039, 388, 11, 3748, 11, 8295, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
2.714286
28
# Import packages import os import cv2 import numpy as np import tensorflow as tf import sys from imutils.object_detection import non_max_suppression # This is needed since the notebook is stored in the object_detection folder. sys.path.append("..") # Import utilites from utils import label_map_util
[ 198, 2, 17267, 10392, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 25064, 198, 6738, 545, 26791, 13, 15252, 62, 15255, 3213, 1330, 1729, 62, 9806,...
3.395604
91
# Handle client-side action for an IBM Watson Assistant chatbot # # The code requires my Watson Conversation Tool. For details see # https://github.com/data-henrik/watson-conversation-tool # # # Setup: Configure your credentials # - for Watson Assistant see instructions for the tool # - for Discovery change username / ...
[ 2, 33141, 5456, 12, 1589, 2223, 329, 281, 19764, 14959, 15286, 8537, 13645, 198, 2, 198, 2, 383, 2438, 4433, 616, 14959, 42427, 16984, 13, 1114, 3307, 766, 198, 2, 3740, 1378, 12567, 13, 785, 14, 7890, 12, 831, 12602, 14, 86, 13506,...
3.769912
113
import numpy as np import matplotlib.pyplot as plt from cycler import cycler from source.solving_strategies.strategies.residual_based_newton_raphson_solver import ResidualBasedNewtonRaphsonSolver from source.solving_strategies.strategies.residual_based_picard_solver import ResidualBasedPicardSolver from source.model.s...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 11700, 263, 1330, 11700, 263, 198, 198, 6738, 2723, 13, 82, 10890, 62, 2536, 2397, 444, 13, 2536, 2397, 444, 13, 411, 312, 723, ...
1.868298
858
from typing import Dict from objects.base import BaseModel
[ 6738, 19720, 1330, 360, 713, 201, 198, 201, 198, 6738, 5563, 13, 8692, 1330, 7308, 17633, 201, 198, 201, 198 ]
3.25
20
from copy import deepcopy from django.contrib import admin from cartridge.shop.admin import OrderAdmin from cartridge.shop.models import Order order_fieldsets = deepcopy(admin.site._registry[Order].fieldsets) order_fieldsets[2][1]["fields"] = list(order_fieldsets[2][1]["fields"]) order_fieldsets[2][1]["fields"].ins...
[ 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 26904, 13, 24643, 13, 28482, 1330, 8284, 46787, 198, 6738, 26904, 13, 24643, 13, 27530, 1330, 220, 8284, 198, 198, 2875, 62, 25747,...
3.116788
137
#!/usr/bin/env python # -*- coding:utf-8 -*- import copy
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 11748, 4866, 628, 628, 628, 198 ]
2.25
28
""" Author: Amanda Ortega de Castro Ayres Created in: September 19, 2019 Python version: 3.6 """ from Least_SRMTL import Least_SRMTL import libmr from matplotlib import pyplot, cm from matplotlib.patches import Circle from mpl_toolkits.mplot3d import Axes3D, art3d import numpy as np import numpy.matlib impo...
[ 37811, 198, 220, 220, 220, 6434, 25, 23040, 1471, 660, 4908, 390, 21193, 13709, 411, 198, 220, 220, 220, 15622, 287, 25, 2693, 678, 11, 13130, 198, 220, 220, 220, 11361, 2196, 25, 513, 13, 21, 198, 37811, 198, 6738, 1004, 459, 62, ...
2.840336
119
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2013-2016 BigML # # 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 requi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 2211, 12, 5304, 4403, 5805, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15...
3.305
400
import os,time import torch from larcv import larcv import numpy as np import ROOT as rt from array import array if __name__=="__main__": device = torch.device("cuda:0") #device = torch.device("cpu") IntersectUB.load_intersection_data() IntersectUB.set_img_dims(512,832) IntersectUB.print_interse...
[ 11748, 28686, 11, 2435, 198, 11748, 28034, 198, 6738, 300, 5605, 85, 1330, 300, 5605, 85, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 15107, 2394, 355, 374, 83, 198, 6738, 7177, 1330, 7177, 628, 198, 361, 11593, 3672, 834, 855, 1,...
1.966022
3,208
from inspect import isclass
[ 6738, 10104, 1330, 318, 4871, 628, 628, 628, 628, 628 ]
3.7
10
# Faa um algoritmo que leia o preo de um produto e mostre o novo preo com um desconto. preco = float(input('Digite o preo atual do produto: R$ ')) desconto = float(input('Digite o valor do desconto (0.X): ')) novopreco = preco * desconto print('O novo preo R$ {}.'.format(novopreco))
[ 2, 376, 7252, 23781, 435, 7053, 270, 5908, 8358, 443, 544, 267, 662, 78, 390, 23781, 40426, 9390, 304, 749, 260, 267, 645, 13038, 662, 78, 401, 23781, 1715, 5957, 13, 198, 3866, 1073, 796, 12178, 7, 15414, 10786, 19511, 578, 267, 66...
2.581818
110
from draw_control import DrawControl if __name__ == '__main__': zotter = DrawControl() test = input("track, rail, pen, hor, ver, diag: ") while(test): if test == "track": dir_in = input('dir step: ') dir = dir_in.split(" ") zotter.track.spin_fixed_step(int(dir[...
[ 6738, 3197, 62, 13716, 1330, 15315, 15988, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1976, 313, 353, 796, 15315, 15988, 3419, 628, 220, 220, 220, 1332, 796, 5128, 7203, 11659, 11, 6787, 11...
1.894737
627
import pathlib import logging from torch import nn import numpy as np import torch import torch.functional as F import torchvision.transforms as T from torch.utils.data import Dataset from torchvision.datasets.cityscapes import Cityscapes import cv2 from torchvision.transforms import ToPILImage from torch.utils.data ...
[ 11748, 3108, 8019, 198, 11748, 18931, 198, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 45124, 355, 376, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 309, 198, 6738, 2...
2.317156
886
from flask import Flask, render_template, request, jsonify from flask import request from flask import Response from flask import url_for from flask import jsonify import GetOldTweets3 as got import pandas as pd import datetime import numpy as np import requests import json from pyquery import PyQuery as pq app = Fla...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 33918, 1958, 198, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 1330, 18261, 198, 6738, 42903, 1330, 19016, 62, 1640, 198, 6738, 42903, 1330, 33918, 1958, 198, 11748, 3497, ...
3.398305
118