content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/python3 """ RobotArm API service config file """ import pathlib from robotarm.armservice.views import api_views from flask import ( Flask, make_response, jsonify ) from robotarm.armservice import getenv # initialize flask app app = Flask(__name__) # register/mount blueprint app.register_bluepri...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 198, 14350, 313, 26560, 7824, 2139, 4566, 2393, 198, 37811, 198, 11748, 3108, 8019, 198, 6738, 9379, 1670, 13, 8357, 712, 501, 13, 33571, 1330, 40391, 62, 33571, 198, 6738, 42903, ...
2.69802
202
from xbrr.base.reader.base_element_schema import BaseElementSchema from bs4.element import NavigableString, Tag import bs4
[ 6738, 2124, 1671, 81, 13, 8692, 13, 46862, 13, 8692, 62, 30854, 62, 15952, 2611, 1330, 7308, 20180, 27054, 2611, 198, 6738, 275, 82, 19, 13, 30854, 1330, 13244, 328, 540, 10100, 11, 17467, 198, 11748, 275, 82, 19, 198 ]
3.075
40
from datetime import datetime
[ 6738, 4818, 8079, 1330, 4818, 8079, 628 ]
4.428571
7
# Generated by Django 3.1 on 2020-10-18 11:51 from django.conf import settings from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 12131, 12, 940, 12, 1507, 1367, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
3.166667
36
from .transcript_day import * EXAMPLE_DATA = r''' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Charcoal HQ - 2017-11-17 (page 2 of 4)</title> <link rel="shortcut icon" h...
[ 6738, 764, 7645, 6519, 62, 820, 1330, 1635, 628, 628, 198, 6369, 2390, 16437, 62, 26947, 796, 374, 7061, 6, 628, 198, 27, 0, 18227, 4177, 56, 11401, 27711, 44731, 27444, 1003, 54, 18, 34, 1003, 35, 21016, 1395, 28656, 352, 13, 15, ...
1.954758
35,962
""" A set of functions required to pre-process TRNSYS simulation input files """ # Common imports import os import sys import shutil import re # Custom imports from pybps import util # Handle Python 2/3 compatibility from six.moves import configparser import six if six.PY2: ConfigParser = configparser.SafeConfigP...
[ 37811, 198, 32, 900, 286, 5499, 2672, 284, 662, 12, 14681, 7579, 8035, 16309, 18640, 5128, 3696, 198, 37811, 198, 198, 2, 8070, 17944, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4423, 346, 198, 11748, 302, 198, 198, 2, 8562, 17...
2.191252
2,149
#!/usr/bin/env python # -*- coding: utf-8 -*- """Game of Life console. small play ground for leanning python, or just having fun. To use the console with an empty grid: python -i -mgof.console or bpython -i -mgof.console To use the console with a pseudo animation: python -i -mgof.demo Avalailble varia...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 8777, 286, 5155, 8624, 13, 220, 198, 17470, 711, 2323, 329, 10904, 768, 21015, 11, 393, 655, 1719, 1257, 13, 1...
3.072581
496
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # StreamOnDemand-PureITA / XBMC Plugin # Canal para italiafilmvideohd # http://www.mimediacenter.info/foro/viewtopic.php?f=36&t=7808 # ------------------------------------------------------------ import base64 import re import urlpar...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 20368, 1783, 10541, 198, 2, 13860, 2202, 42782, 12, 49548, 2043, 32, 1220, 1395, 33, 9655, 42636, 198, 2, 31314, 31215, 340, 9752, 26240, 85, 485, 1219, 67, 198, 2,...
5.721805
399
"""Tests Tier Data""" import numpy as np from covid.data import TierData
[ 37811, 51, 3558, 15917, 6060, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 39849, 312, 13, 7890, 1330, 15917, 6601, 628 ]
3.26087
23
import pyautogui import time import pyperclip import pandas as pd #pyautogui.displayMousePosition() pyautogui.PAUSE = 1 #Passo 1 #Abrir uma nova aba time.sleep(2) pyautogui.hotkey('ctrl', 't') #Entrar no link do sistema link = "https://drive.google.com/drive/folders/149xknr9JvrlEnhNWO49zPcw0PW5icxga" py...
[ 11748, 12972, 2306, 519, 9019, 201, 198, 11748, 640, 201, 198, 11748, 12972, 525, 15036, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 2, 9078, 2306, 519, 9019, 13, 13812, 39643, 26545, 3419, 201, 198, 9078, 2306, 519...
2.139503
724
import tkinter import json from math import * from random import * from tkinter import *
[ 11748, 256, 74, 3849, 198, 11748, 33918, 198, 6738, 10688, 1330, 1635, 198, 6738, 4738, 1330, 1635, 198, 6738, 256, 74, 3849, 1330, 1635, 198 ]
3.56
25
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ path('', views.index, name='home'), url(r'^artist/(?P<inputID>.*?)/$', views.showArtistPage, name='showArtistPage'), url(r'^album/(?P<inputID>.*?)/$', views.showAlbumPage, name='showAlbumPage'), url(r'^so...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 9630, ...
2.606164
292
"""Table CLI formatter. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import yaml from treadmill.formatter import tablefmt def _sort(unsorted): """Sort list.""" unsorted.sort() return '\n'.join(un...
[ 37811, 10962, 43749, 1296, 1436, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, ...
2.270092
759
r="" for _ in range(int(input())): s=input();tn=s[-2]+s[-1] if tn=='ne': r+=s[:-2]+'anes\n' else: t=s[-1] if t=='a' or t=='o' or t=='u': r+=s+'s\n' elif t=='i' or t=='y': r+=s[:-1]+'ios\n' elif t=='l' or t=='r' or t=='v': r+=s+'es\n...
[ 81, 33151, 198, 1640, 4808, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 264, 28, 15414, 9783, 34106, 28, 82, 58, 12, 17, 48688, 82, 58, 12, 16, 60, 198, 220, 220, 220, 611, 256, 77, 855, 6, 710, 10354, 198, 2...
1.395954
346
from __future__ import print_function """Updates database json representation """ import argparse import itertools import logging import relstorage.adapters.postgresql import relstorage.options import sys from . import pg_connection from . import follow from .jsonpickle import Jsonifier from ._adapter import DELETE_T...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 37811, 4933, 19581, 6831, 33918, 10552, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 340, 861, 10141, 198, 11748, 18931, 198, 11748, 823, 35350, 13, 324, 12126, 13, 7353, 34239,...
3.308219
1,022
import string ALPHABET = set(string.ascii_lowercase)
[ 11748, 4731, 198, 1847, 11909, 6242, 2767, 796, 900, 7, 8841, 13, 292, 979, 72, 62, 21037, 7442, 8 ]
2.736842
19
#!/usr/bin/env python """Merge multiple evaluation files into one with prefixed measure names If directories are given, and --out-dir, will group by filename. Example usage: ./scripts/merge_evaluations.py --label-re='[^/]+/?$' -x eval_merged -l =TEDL2015_neleval-no1331 --out-dir /tmp/foobar tac15data/TEDL2015_nel...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 13102, 469, 3294, 12660, 3696, 656, 530, 351, 7694, 2966, 3953, 3891, 198, 198, 1532, 29196, 389, 1813, 11, 290, 1377, 448, 12, 15908, 11, 481, 1448, 416, 29472, 13, 198, 198, ...
2.234918
1,409
from __future__ import absolute_import, division, print_function import os import numpy as np import theano.tensor as T from .model_basis import ModelBasis from .model_record import Record from ..layers import layers
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 262, 5733, 13, 83, 22854, 355, 309, 201, 198, 201, 198, 6738, ...
3.194444
72
import csv import os import json from string import join from scrapy import log from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, HtmlResponse, FormRequest from scrapy.utils.url import urljoin_rfc from product_spiders.items import Product, ProductLo...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 198, 11748, 33918, 220, 220, 198, 6738, 4731, 1330, 4654, 198, 198, 6738, 15881, 88, 1330, 2604, 198, 6738, 15881, 88, 13, 2777, 1304, 1330, 7308, 41294, 198, 6738, 15881, 88, 13, 19738, 273, ...
3.300813
123
import streamlit as st title = st.text_input("Search:", "") st.write("You search for: ", title)
[ 11748, 4269, 18250, 355, 336, 198, 198, 7839, 796, 336, 13, 5239, 62, 15414, 7203, 18243, 25, 1600, 366, 4943, 198, 301, 13, 13564, 7203, 1639, 2989, 329, 25, 33172, 3670, 8, 198 ]
2.939394
33
#!/usr/bin/env python # WS client example to test server import asyncio import websockets import json import time asyncio.get_event_loop().run_until_complete(hello())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 25290, 5456, 1672, 284, 1332, 4382, 198, 198, 11748, 30351, 952, 198, 11748, 2639, 11603, 198, 11748, 33918, 198, 11748, 640, 198, 198, 292, 13361, 952, 13, 1136, 62, 15596, 62, 262...
3.294118
51
#NOT YET WORKING PROPERLY #NOT INTEGRATED WITH THE ASSISTANT YET from pytrends.request import TrendReq # Only need to run this once, the rest of requests will use the same session. pytrend = TrendReq() if __name__ == '__main__': console_trends()
[ 201, 198, 2, 11929, 575, 2767, 30936, 2751, 4810, 31054, 11319, 201, 198, 2, 11929, 17828, 7156, 49, 11617, 13315, 3336, 24994, 8808, 8643, 575, 2767, 201, 198, 201, 198, 6738, 12972, 83, 10920, 82, 13, 25927, 1330, 22836, 3041, 80, 2...
2.617647
102
import os import asyncio import re import requests import time import lottie import PIL.ImageOps from os.path import basename from PIL import Image from typing import Optional from .. import LOGS from ..config import Config from ..utils.extras import edit_or_reply as eor from .progress import * from .runner import r...
[ 11748, 28686, 198, 11748, 30351, 952, 198, 11748, 302, 198, 11748, 7007, 198, 11748, 640, 198, 11748, 300, 1252, 494, 220, 198, 11748, 350, 4146, 13, 5159, 41472, 198, 198, 6738, 28686, 13, 6978, 1330, 1615, 12453, 198, 6738, 350, 4146,...
2.403125
640
from __future__ import absolute_import import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.'+os.environ.get('APP_ENV', 'local')) app = Celery('app') app.config_from_object('django.conf:settings') app.autodiscover_t...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 28686, 198, 6738, 18725, 1924, 1330, 15248, 1924, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 628, 198, 418, 13, 268, 2268, 13, 2617, 12286, 10786, 35028, 1565, 11230, 62, ...
2.620438
137
import time from typing import cast, Dict, Any from flask import request from assemblyline.common import forge from assemblyline.common.constants import SERVICE_STATE_HASH, ServiceStatus from assemblyline.common.dict_utils import flatten, unflatten from assemblyline.common.forge import CachedObject from assemblyline....
[ 11748, 640, 198, 198, 6738, 19720, 1330, 3350, 11, 360, 713, 11, 4377, 198, 6738, 42903, 1330, 2581, 198, 198, 6738, 10474, 1370, 13, 11321, 1330, 28325, 198, 6738, 10474, 1370, 13, 11321, 13, 9979, 1187, 1330, 47453, 62, 44724, 62, 3...
2.458013
2,989
# Copyright (c) 2017 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
[ 2, 15069, 357, 66, 8, 2177, 34198, 10442, 3457, 13, 198, 2, 198, 2, 7102, 37, 25256, 12576, 5357, 4810, 3185, 7112, 2767, 13153, 198, 2, 198, 2, 770, 670, 318, 2810, 366, 1921, 3180, 1, 290, 2426, 284, 262, 34198, 37709, 16984, 15...
3.722689
238
__all__ = ['Elastix', 'Resampling'];
[ 834, 439, 834, 796, 37250, 9527, 459, 844, 3256, 705, 4965, 321, 11347, 6, 11208 ]
2.4
15
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-01 23:52 from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 22, 319, 1584, 12, 2931, 12, 486, 2242, 25, 4309, 628, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.454545
44
# -------- BEGIN LICENSE BLOCK -------- # Copyright 2022 FZI Forschungszentrum Informatik # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # n...
[ 2, 220, 24200, 347, 43312, 38559, 24290, 9878, 11290, 24200, 198, 2, 15069, 33160, 376, 48926, 27325, 354, 2150, 82, 89, 298, 6582, 554, 18982, 1134, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 3...
2.793023
1,290
from gaffer import Plugin __all__ = ['DummyPlugin'] from .app import DummyApp
[ 6738, 308, 31183, 1330, 42636, 198, 198, 834, 439, 834, 796, 37250, 35, 13513, 37233, 20520, 198, 198, 6738, 764, 1324, 1330, 360, 13513, 4677, 628 ]
3.115385
26
import numpy as np import cv2 from preprocessing.utils import get_original_with_fakes from tqdm import tqdm from multiprocessing.pool import Pool from functools import partial # from skimage.measure import compare_ssim from skimage import metrics import argparse import os os.environ["MKL_NUM_THREADS"] = "1" os.environ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 6738, 662, 36948, 13, 26791, 1330, 651, 62, 14986, 62, 4480, 62, 69, 1124, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330...
2.636364
187
import ast import community import datetime import lightgbm as lgb import math import matplotlib.pyplot as plt import networkx as nx import numpy as np import pandas as pd import pickle import plotly.express as px import os from sklearn.metrics import accuracy_score, confusion_matrix, roc_auc_score from tqdm import tqd...
[ 11748, 6468, 198, 11748, 2055, 198, 11748, 4818, 8079, 198, 11748, 1657, 70, 20475, 355, 300, 22296, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, ...
3.231481
108
from django import forms from recipe_app.models import Author from django.contrib.auth.forms import UserCreationForm # Create two forms: RecipeForm & AuthorForm """ Author: - Name: CharField - Bio: TextField Recipe: - Title: CharField - Author: ForeignKey - Description: TextField - Time Requ...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 8364, 62, 1324, 13, 27530, 1330, 6434, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, 341, 8479, 628, 198, 2, 13610, 734, 5107, 25, 26694, 8479, 1222, 6434, ...
3.11811
127
from typing import * import collections import copy import hashlib import math import numpy as np from pathlib import Path import random import re from tqdm import tqdm import traceback import sys from seutil import LoggingUtils, IOUtils, BashUtils from seutil.project import Project from roosterize.data.CoqDocument ...
[ 6738, 19720, 1330, 1635, 198, 198, 11748, 17268, 198, 11748, 4866, 198, 11748, 12234, 8019, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 4738, 198, 11748, 302, 198, 6738, 256, 80, ...
3.501805
277
""" This package contains implementations of pairwise similarity queries. """ # bring classes directly into package namespace, to save some typing import warnings try: import Levenshtein # noqa:F401 except ImportError: msg = ( "The gensim.similarities.levenshtein submodule is disabled, because the opt...
[ 37811, 198, 1212, 5301, 4909, 25504, 286, 5166, 3083, 26789, 20743, 13, 198, 37811, 198, 198, 2, 2222, 6097, 3264, 656, 5301, 25745, 11, 284, 3613, 617, 19720, 198, 11748, 14601, 198, 28311, 25, 198, 220, 220, 220, 1330, 1004, 574, 14...
2.880597
335
from tpucolab.core import *
[ 6738, 256, 79, 1229, 349, 397, 13, 7295, 1330, 1635 ]
2.7
10
import time
[ 11748, 640, 198 ]
4
3
# -*- coding: utf-8 -*- """ SQLite emitter """ import logging import sqlite3 LOGGER = logging.getLogger()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 16363, 578, 795, 1967, 37227, 198, 11748, 18931, 198, 11748, 44161, 578, 18, 198, 198, 25294, 30373, 796, 18931, 13, 1136, 11187, 1362, 3419, 628, 198 ]
2.658537
41
import cv2 import numpy as np from numpy.linalg import norm import math import csv from operator import itemgetter from datetime import datetime import VideoEnhancement import fishpredictor import detector import kmeancluster import preproccesing import randomforst cluster = kmeancluster.kmeans() classifier = randomfo...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 2593, 198, 11748, 10688, 198, 11748, 269, 21370, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 6738, 4818, 8079, 1330, 4818, 8079, ...
1.831767
3,299
""" --- geometry parameters for Wei et al stochastic sensing --- """ nm = 1e-0 # @TODO maybe include tolc in parent file tolc = 1e-2*nm # tolerance for coordinate comparisons dim = 3 # molecule radius rMolecule = 5*nm # effective pore radius ~ d^SAM_p/2 r0 = 13*nm # aperture angle in degrees angle = 40 # SiN mem...
[ 37811, 11420, 22939, 10007, 329, 29341, 2123, 435, 3995, 354, 3477, 34244, 11420, 37227, 198, 198, 21533, 796, 352, 68, 12, 15, 198, 198, 2, 2488, 51, 3727, 46, 3863, 2291, 284, 44601, 287, 2560, 2393, 198, 83, 349, 66, 796, 352, 68...
3.044521
292
import requests sample_user = {"latitude" : 42.2561110, "longitude" : -71.0741010, "uid" : "0" , "first_name" : "alex", "last_name" : "iansiti"} send_url = "http://flask-macoder.rhcloud.com/near" r = requests.post(send_url, sample_user) print(r.json())
[ 11748, 7007, 198, 198, 39873, 62, 7220, 796, 19779, 15460, 3984, 1, 1058, 5433, 13, 11645, 1157, 940, 11, 366, 6511, 3984, 1, 1058, 532, 4869, 13, 2998, 3901, 20943, 11, 366, 27112, 1, 1058, 366, 15, 1, 837, 366, 11085, 62, 3672, ...
2.466019
103
#!/usr/bin/python # -*- coding: utf-8 -*- # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 10, 357, 3826, 27975, 45761, 393, 3740, 1378, 2503, 13, 41791, 13, 2...
2.58
850
from functools import total_ordering
[ 6738, 1257, 310, 10141, 1330, 2472, 62, 34555, 628, 628, 198 ]
3.727273
11
from typing import Tuple, Pattern from urllib.request import urlopen import os from ftplib import FTP from tempfile import TemporaryDirectory from hashlib import sha256 import re from course_valve.valve_defs import ( TARGET_FTP, ENCRYPTED_PASSWORD, TARGET_FILE_NAME, IDENTIFIER, NO_IDENTIFIER, F...
[ 6738, 19720, 1330, 309, 29291, 11, 23939, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 11748, 28686, 198, 6738, 10117, 489, 571, 1330, 45854, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 6738, 12234, 8019, 1330, 427, ...
2.435294
170
""" Tests for the base module """ from vlnm.normalizers.base import ( FormantGenericNormalizer, FormantSpecificNormalizer, FormantsTransformNormalizer, Normalizer) from tests.helpers import Helper
[ 37811, 198, 51, 3558, 329, 262, 2779, 8265, 198, 37811, 198, 198, 6738, 410, 18755, 76, 13, 11265, 11341, 13, 8692, 1330, 357, 198, 220, 220, 220, 5178, 415, 46189, 26447, 7509, 11, 198, 220, 220, 220, 5178, 415, 32419, 26447, 7509, ...
3.042254
71
#!/usr/bin/env python3 import os import sys import time import traceback from itertools import combinations from multiprocessing.pool import ThreadPool from exchangebase import ExchangeBase from exchangepair import ExchangePair from gdaxapi import Gdax from krakenapi import Kraken if __name__ == "__main__": arb...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198...
2.71978
182
import boto3 import sys import numpy as np import random import time # endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com' endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com' ##Remember to put the AWS credential in ~/.aws/credential like below: ####### #[default] #aws_access_key_id = ...
[ 11748, 275, 2069, 18, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 220, 198, 11748, 640, 198, 2, 36123, 62, 6371, 796, 705, 5450, 1378, 16762, 333, 74, 12, 8897, 7834, 12, 38142, 3524, 13, 385, 12, 23316, ...
2.774545
825
# def get_param_traj_file_path(dir_name, net_name, index): # return f'{dir_name}/{net_name}_{index}.txt' import os from datetime import datetime if __name__ == '__main__': print(get_log_dir("a", 1, "s", False, 0))
[ 2, 825, 651, 62, 17143, 62, 9535, 73, 62, 7753, 62, 6978, 7, 15908, 62, 3672, 11, 2010, 62, 3672, 11, 6376, 2599, 198, 2, 220, 220, 220, 220, 1441, 277, 6, 90, 15908, 62, 3672, 92, 14, 90, 3262, 62, 3672, 92, 23330, 9630, 2742...
2.36
100
from __future__ import print_function import pytest from tempfile import mkdtemp from glob import glob import shutil import fnmatch import os import os.path import sami TEST_DIR = os.path.join(os.path.split(__file__)[0], "test_data") # Note: if the test data is changed, then these lists must be updated # (too hard...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 20218, 7753, 1330, 33480, 67, 29510, 198, 6738, 15095, 1330, 15095, 198, 11748, 4423, 346, 198, 11748, 24714, 15699, 198, 11748, 28686, 198, 1174...
2.353271
535
# -*- coding: utf-8 -*- from model.contact import Contact # def test_add_empty_contact(app): # old_contacts = app.contact.get_contact_list() # contact = Contact(firstname='', middlename='', lastname='', nickname='', title='', company='', address='', home='', mobile='', work='', fax='', email='', email2='', e...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 2746, 13, 32057, 1330, 14039, 628, 198, 198, 2, 825, 1332, 62, 2860, 62, 28920, 62, 32057, 7, 1324, 2599, 198, 2, 220, 220, 220, 220, 1468, 62, 3642, 8656, 796...
2.627737
274
# -*- coding:utf-8 -*- """ Description: Inventory Class Usage: from AntShares.Network.Inventory import Inventory """ from AntShares.IO.MemoryStream import MemoryStream from AntShares.IO.BinaryWriter import BinaryWriter from AntShares.Cryptography.Helper import * from AntShares.Helper import * import binascii...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 11828, 25, 198, 220, 220, 220, 35772, 5016, 198, 28350, 25, 198, 220, 220, 220, 422, 3738, 43566, 13, 26245, 13, 818, 17158, 1330, 35772, 198, 37811, 198, 198, ...
3.354167
96
#!/usr/bin/python # Copyright (c) 2015-2017 Martin F. Falatic # # 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 # # Unl...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 201, 198, 2, 220, 220, 15069, 357, 66, 8, 1853, 12, 5539, 5780, 376, 13, 9596, 1512, 201, 198, 2, 201, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357,...
2.116155
749
#!/usr/bin/env python3 import os.path import random from pathlib import Path from random import randint from pymongo import MongoClient from web3.logs import DISCARD from broker import cfg from broker._utils import _log from broker._utils._log import console_ruler from broker._utils.tools import _time, _timestamp, c...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 13, 6978, 198, 11748, 4738, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738,...
2.002157
2,781
from torch.autograd import Variable import torch.nn.functional as F import torch.nn as nn import torch as th from components.transforms import _to_batch, _from_batch, _check_inputs_validity, _tdim, _vdim
[ 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 355, 294, 198, 198, 6738, 6805, 13, 7645, 23914, 1330, 4808, 1462, 62, 43...
3.136364
66
from datetime import date nascimento = int(input('Digite o ano de nascimento: ')) idade = date.today().year - nascimento print(f'Ele tem {idade} anos.') if idade <= 9: lugar = 'mirim' elif idade <= 14: lugar = 'infantil' elif idade <= 19: lugar = 'junior' elif idade <= 25: lugar = 'snior' ...
[ 6738, 4818, 8079, 1330, 3128, 201, 198, 201, 198, 77, 3372, 3681, 78, 796, 493, 7, 15414, 10786, 19511, 578, 267, 281, 78, 390, 299, 3372, 3681, 78, 25, 705, 4008, 201, 198, 312, 671, 796, 3128, 13, 40838, 22446, 1941, 532, 299, 3...
2.173913
184
from .utils import add_weight_decay, AverageMeter, label_img_to_color, check_mkdir
[ 6738, 764, 26791, 1330, 751, 62, 6551, 62, 12501, 323, 11, 13475, 44, 2357, 11, 6167, 62, 9600, 62, 1462, 62, 8043, 11, 2198, 62, 28015, 15908 ]
3.037037
27
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 27 18:11:58 2021 @author: TSAI, TUNG-CHEN @update: 2021/10/05 """ MODEL_NAME = 'PhysicalCNN' DIRECTORY = r"../dataset/preprocessed/data/" WALK = True SUBSET = 'all' from wtbd.infer import infer from wtbd.utils import print_info from wtbd.data_c...
[ 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, 2892, 8621, 2681, 1248, 25, 1157, 25, 3365, 33448, 198, 198, 31, 9800, 25, 32453, 40, 11,...
2.845426
317
""" """ from lottery import get_history import pandas as pd import dash import dash_html_components as html import dash_core_components as dcc CODE = '' MIN = 1 COUNT = 200 def _calc_prob(num, datas): """ numdatas e.g.: num = 1 data = [[2,3],[1,7],[3,6]] retunr 1/3 """ ...
[ 37811, 198, 198, 37811, 198, 198, 6738, 22098, 1330, 651, 62, 23569, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 14470, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 2...
2.027726
541
""" Copyright [2013] [Rackspace] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
[ 37811, 198, 15269, 685, 6390, 60, 685, 49, 441, 13200, 60, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
2.888128
438
from datetime import datetime today = datetime.today().strftime('%Y-%m-%d %H-%M-%S')
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 40838, 796, 4818, 8079, 13, 40838, 22446, 2536, 31387, 10786, 4, 56, 12, 4, 76, 12, 4, 67, 4064, 39, 12, 4, 44, 12, 4, 50, 11537 ]
2.428571
35
Import("env") import hashlib import os import shutil env.AddPostAction("$BUILD_DIR/firmware.bin", after_build)
[ 20939, 7203, 24330, 4943, 198, 11748, 12234, 8019, 198, 11748, 28686, 198, 11748, 4423, 346, 628, 198, 24330, 13, 4550, 6307, 12502, 7203, 3, 19499, 26761, 62, 34720, 14, 69, 2533, 1574, 13, 8800, 1600, 706, 62, 11249, 8, 198 ]
2.825
40
import re import os from bs4 import BeautifulSoup from . import settings def html2list(html_string, level='word'): """ :param html_string: any ol' html string you've got level: either 'word' or 'character'. If level='word', elements will be words. If level='character', elem...
[ 11748, 302, 198, 11748, 28686, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 764, 1330, 6460, 628, 198, 4299, 27711, 17, 4868, 7, 6494, 62, 8841, 11, 1241, 11639, 4775, 6, 2599, 198, 220, 220, 220, 37227, 198,...
2.263158
2,774
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import os import...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 23241, 46787, 604, 532, 2947, 47701, 20003, 198, 2, 198, 2, 15069, 357, 34, 8, 2211, 532, 12131, 11, 383, 23241, 46787, 7712, 4816, 198, 2, 770, 3788, 318, 2716, 739, 262, 2947, 47701, 10483...
2.012309
1,706
#!/usr/bin/env python # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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 # # Unl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 1946, 11, 36763, 14318, 74, 296, 13077, 532, 46779, 357, 51, 12, 43, 8937, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, ...
3.714286
175
import frappe # print("///////////******///////******////******///**") # print(user) # print(frappe.session.user) # return """(`tabValiant`.`native`='Salem' )""" # return "(`tabValiant`.owner = 'i am')".format(user=frappe.db.escape(user))
[ 11748, 5306, 27768, 198, 198, 2, 3601, 7203, 16150, 20379, 2466, 1174, 9705, 20379, 2466, 1174, 9705, 2466, 1174, 20379, 1174, 4943, 198, 2, 3601, 7, 7220, 8, 198, 2, 3601, 7, 69, 430, 27768, 13, 29891, 13, 7220, 8, 198, 198, 2, 1...
2.641304
92
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.conf import settings from Book.models import PictureInfo,AreaInfo from django.core.paginator import Paginator # Create your views here. def sheng(request): """,JSON,ajax""" # sheng_list = [AreaInfo,AreaInfo,Are...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 41, 1559, 31077, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 4897, 13, 27530, 1330, 17741, 12360, 11, 30547, ...
2.33018
1,057
""" File: add2.py Name: ------------------------ TODO: """ import sys ####### DO NOT EDIT CODE BELOW THIS LINE ######## def traversal(head): """ :param head: ListNode, the first node to a linked list ------------------------------------------- This function prints out the linked list starting wit...
[ 37811, 198, 8979, 25, 751, 17, 13, 9078, 198, 5376, 25, 198, 22369, 198, 51, 3727, 46, 25, 198, 37811, 198, 198, 11748, 25064, 628, 628, 198, 4242, 21017, 8410, 5626, 48483, 42714, 45339, 12680, 48920, 46424, 21017, 628, 198, 4299, 33...
2.862069
174
import obelisk import logging import bitcoin from twisted.internet import reactor _log = logging.getLogger('trust') TESTNET = False
[ 11748, 909, 417, 1984, 198, 11748, 18931, 198, 11748, 8550, 198, 6738, 19074, 13, 37675, 1330, 21905, 198, 198, 62, 6404, 796, 18931, 13, 1136, 11187, 1362, 10786, 38087, 11537, 198, 198, 51, 6465, 12884, 796, 10352, 628, 628 ]
3.512821
39
# Collage Generator Backend Application import logging.config from starlette.applications import Starlette from starlette.middleware import Middleware from starlette.middleware.authentication import AuthenticationMiddleware from starlette.middleware.gzip import GZipMiddleware from starlette_context import plugins from...
[ 2, 7778, 496, 35986, 5157, 437, 15678, 198, 11748, 18931, 13, 11250, 198, 198, 6738, 3491, 21348, 13, 1324, 677, 602, 1330, 2907, 21348, 198, 6738, 3491, 21348, 13, 27171, 1574, 1330, 6046, 1574, 198, 6738, 3491, 21348, 13, 27171, 1574,...
3.247093
344
""" [Golf](https://www.codechef.com/MAY21C/problems/LKDNGOLF) It's a lockdown. Youre bored in your house and are playing golf in the hallway. The hallway has N+2 tiles numbered from 0 to N+1 from left to right. There is a hole on tile number x. You hit the ball standing on tile 0. When you hit the ball, it bounces at...
[ 37811, 198, 58, 38, 4024, 16151, 5450, 1378, 2503, 13, 19815, 721, 258, 69, 13, 785, 14, 44, 4792, 2481, 34, 14, 1676, 22143, 14, 43, 42, 35, 10503, 3535, 37, 8, 198, 198, 1026, 338, 257, 47955, 13, 921, 260, 17533, 287, 534, 21...
2.837469
806
""" Application logger """ import logging import os import sys from yogit import get_name, get_version from yogit.yogit.paths import get_log_path, SETTINGS_DIR def get_logger(stdout=False, logger_name=get_name(), version=get_version()): """ Create and configure a logger using a given name. """ os.ma...
[ 37811, 198, 23416, 49706, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 27423, 270, 1330, 651, 62, 3672, 11, 651, 62, 9641, 198, 6738, 27423, 270, 13, 88, 519, 270, 13, 6978, 82, 1330, 651, ...
2.374384
609
# coding: utf-8 """ Connect Statistics API Connect Statistics API provides statistics about other cloud services through defined counters. OpenAPI spec version: 3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import models into m...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 8113, 14370, 7824, 628, 220, 220, 220, 8113, 14370, 7824, 3769, 7869, 546, 584, 6279, 2594, 832, 5447, 21154, 13, 628, 220, 220, 220, 4946, 17614, 1020, 2196, 25, ...
3.728682
129
import logging, sys if __name__ == '__main__': logger = sane_logger(logging.DEBUG) logger.info('test log')
[ 11748, 18931, 11, 25064, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 49706, 796, 33241, 62, 6404, 1362, 7, 6404, 2667, 13, 30531, 8, 198, 220, 49706, 13, 10951, 10786, 9288, 2604, 11537, 198 ]
2.825
40
from core_tools.data.SQL.SQL_connection_mgr import SQL_database_manager from core_tools.drivers.hardware.hardware_SQL_backend import virtual_gate_queries import time import numpy as np def lamda_invert(matrix): return np.linalg.inv(matrix) def lamda_norm(matrix_norm): matrix_no_norm = np.empty(matrix_norm.sh...
[ 6738, 4755, 62, 31391, 13, 7890, 13, 17861, 13, 17861, 62, 38659, 62, 76, 2164, 1330, 16363, 62, 48806, 62, 37153, 198, 198, 6738, 4755, 62, 31391, 13, 36702, 13, 10424, 1574, 13, 10424, 1574, 62, 17861, 62, 1891, 437, 1330, 7166, 6...
2.135013
1,548
from django.shortcuts import render from django.shortcuts import get_object_or_404 from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from rest_framework import generics from .models import kotoUser from .models import transaction from .models import ...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 6738, 1334, 62, 30604, 1330, 3722,...
3.88015
267
import sys import re import json import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import MultiLabelBinarizer from scipy.spatial.distance import cdist from colorama import Fore, Style from kneed impo...
[ 11748, 25064, 198, 11748, 302, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 509, ...
2.036725
25,242
import json from collections import OrderedDict import pprint import json import sys # prons = sys.argv prons = ['pron1.json', 'pron2.json','pron3.json','pron4.json'] for pron in prons: synset = war(pron) print(json.dumps(synset, indent=2, ensure_ascii=False))
[ 11748, 33918, 201, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 201, 198, 11748, 279, 4798, 201, 198, 11748, 33918, 201, 198, 11748, 25064, 201, 198, 201, 198, 2, 778, 684, 796, 25064, 13, 853, 85, 201, 198, 1050, 684, 796, 37250, ...
2.482456
114
from flask import Blueprint,Flask main = Blueprint('main',__name__) from app.main import views from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy bootstrap= Bootstrap() db = SQLAlchemy()
[ 6738, 42903, 1330, 39932, 11, 7414, 2093, 198, 12417, 796, 39932, 10786, 12417, 3256, 834, 3672, 834, 8, 198, 6738, 598, 13, 12417, 1330, 5009, 198, 6738, 42903, 62, 18769, 26418, 1330, 18892, 26418, 198, 6738, 42903, 62, 25410, 282, 26...
3.47619
63
#!/usr/bin/env python3 '''set frame height 10%, 80%, 10%''' import tkinter as tk root = tk.Tk() root.geometry('400x300') header = tk.Frame(root, bg='green') content = tk.Frame(root, bg='red') footer = tk.Frame(root, bg='green') root.columnconfigure(0, weight=1) # 100% root.rowconfigure(0, weight=1) # 10% root.rowc...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 7061, 6, 2617, 5739, 6001, 838, 7441, 4019, 7441, 838, 4, 7061, 6, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 198, 15763, 796, 256, 74, 13, 51, 74, 3419, 198, 15763, ...
2.364486
214
from lib import * generate_bins("./bld/bits/vex_pb0_partial.bit","./bld/bins/vex_pb0.bin",0x8D) generate_bins("./bld/bits/vex_pb1_partial.bit","./bld/bins/vex_pb1.bin",0x8D) generate_bins("./bld/bits/vex_pb2_partial.bit","./bld/bins/vex_pb2.bin",0x8D) generate_bins("./bld/bits/vex_tmr_pb0_partial.bit","./bld/bins/vex...
[ 6738, 9195, 1330, 1635, 198, 198, 8612, 378, 62, 65, 1040, 7, 1911, 14, 65, 335, 14, 9895, 14, 303, 87, 62, 40842, 15, 62, 47172, 13, 2545, 2430, 19571, 65, 335, 14, 65, 1040, 14, 303, 87, 62, 40842, 15, 13, 8800, 1600, 15, 87...
1.787535
1,412
import unittest from pysie.dsl.set import TernarySearchTrie if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 279, 893, 494, 13, 67, 6649, 13, 2617, 1330, 309, 1142, 560, 18243, 51, 5034, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, ...
2.477273
44
from sanic import Blueprint from sanic import response from sanic.log import logger from sanic_openapi import doc from .user import get_user, get_routes user_svc = Blueprint('user_svc')
[ 6738, 5336, 291, 1330, 39932, 198, 6738, 5336, 291, 1330, 2882, 198, 6738, 5336, 291, 13, 6404, 1330, 49706, 198, 6738, 5336, 291, 62, 9654, 15042, 1330, 2205, 198, 198, 6738, 764, 7220, 1330, 651, 62, 7220, 11, 651, 62, 81, 448, 27...
3.220339
59
from opentrons import protocol_api # Rename to 'purification_template' and paste into 'template_ot2_scripts' folder in DNA-BOT to use metadata = { 'apiLevel': '2.8', 'protocolName': 'purification_template', 'description': 'Implements magbead purification reactions for BASIC assembly usin...
[ 6738, 1034, 298, 12212, 1330, 8435, 62, 15042, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 2, 7152, 480, 284, 705, 14225, 2649, 62, 28243, 6, 290, 17008, 656, 705, 28243, 62, 313, 17, 62, 46521, 6, 9483, 287, 7446,...
2.919075
173
# Generated by Django 3.2.4 on 2021-08-15 12:55 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 2919, 12, 1314, 1105, 25, 2816, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import pytest import json from django.urls import reverse
[ 11748, 12972, 9288, 198, 11748, 33918, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198 ]
3.625
16
''' Created on Nov 16, 2011 @author: jcg ''' from Features.Feature import Feature import Functions from uuid import uuid4 import Solution
[ 7061, 6, 198, 41972, 319, 5267, 1467, 11, 2813, 198, 198, 31, 9800, 25, 474, 66, 70, 198, 7061, 6, 198, 198, 6738, 17571, 13, 38816, 1330, 27018, 198, 11748, 40480, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 220, 220, 220, ...
2.865385
52
from django.urls import path from .views import portfolio_view urlpatterns = [ path('', portfolio_view, name='projects_view') ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 33571, 1330, 15320, 62, 1177, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 15320, 62, 1177, 11, 1438, 11639, 42068, 62, 1177, 11537, 198, 60 ...
3.142857
42
#! /usr/bin/env python ''' This node uses the detection_info topic and performs the actual Ur5 arm manipulation ''' import rospy import random from math import pi, sin, cos from geometry_msgs.msg import Point, Quaternion, Pose, PointStamped, PoseStamped from std_msgs.msg import Header from object_msgs.msg import Obj...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 1212, 10139, 3544, 262, 13326, 62, 10951, 7243, 290, 17706, 262, 4036, 8799, 20, 3211, 17512, 198, 7061, 6, 198, 198, 11748, 686, 2777, 88, 198, 11748, 4738, 198...
2.192521
4,332
import tensorflow as tf from cleverhans.attacks import FastGradientMethod from cleverhans.utils_keras import KerasModelWrapper from keras.utils import to_categorical import keras.backend as K import numpy as np from functools import lru_cache from pickle import loads, dumps from models import filter_correctly_class...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 14169, 71, 504, 13, 38458, 1330, 12549, 42731, 1153, 17410, 198, 6738, 14169, 71, 504, 13, 26791, 62, 6122, 292, 1330, 17337, 292, 17633, 36918, 2848, 198, 198, 6738, 41927, 292, 13,...
3.44898
98
from urlparse import urlparse from re import match def get_redirect(req_path, ref_url): ''' >>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/') '/tree/foo/view/style.css' >>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/quux.html') '/tree/foo/view/style.css' ...
[ 6738, 19016, 29572, 1330, 19016, 29572, 198, 6738, 302, 1330, 2872, 198, 198, 4299, 651, 62, 445, 1060, 7, 42180, 62, 6978, 11, 1006, 62, 6371, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 13163, 651, 62, 445, 1060, 1078...
2.496575
876
from flask import Blueprint, render_template home_bp = Blueprint( "home_bp", __name__, )
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 628, 198, 11195, 62, 46583, 796, 39932, 7, 198, 220, 220, 220, 366, 11195, 62, 46583, 1600, 198, 220, 220, 220, 11593, 3672, 834, 11, 198, 8, 628 ]
2.777778
36
from p3ui import * import matplotlib.pyplot as plt import numpy as np
[ 6738, 279, 18, 9019, 1330, 1635, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 628, 628 ]
2.92
25
from collections import deque """ Operations * Enqueue * Dequeue * Peek (first element) * Size * IsEmpty * Print """ if __name__ == '__main__': demo_queue_operation_using_deque() pass """ deque([1, 2, 3, 4, 5]) deque([3, 4, 5]) 3 """
[ 6738, 17268, 1330, 390, 4188, 198, 198, 37811, 198, 18843, 602, 198, 9, 2039, 36560, 198, 9, 1024, 36560, 198, 9, 2631, 988, 357, 11085, 5002, 8, 198, 9, 12849, 198, 9, 1148, 40613, 198, 9, 12578, 198, 37811, 628, 198, 198, 361, 1...
2.375
104
mask = 255 print(mask == 255) blue_mask = mask == 255 print(mask) print(blue_mask)
[ 27932, 796, 14280, 198, 198, 4798, 7, 27932, 6624, 14280, 8, 198, 198, 17585, 62, 27932, 796, 9335, 6624, 14280, 198, 198, 4798, 7, 27932, 8, 198, 4798, 7, 17585, 62, 27932, 8 ]
2.575758
33
''' Contains the implementation of the FindSongs class. ''' from re import compile as rcompile from zipfile import ZipFile from os.path import dirname import pandas as pd from tensorflow.keras.models import load_model from sklearn.neighbors import NearestNeighbors from joblib import load DIR = dirname(__file__) rex =...
[ 7061, 6, 198, 4264, 1299, 262, 7822, 286, 262, 9938, 50, 28079, 1398, 13, 198, 7061, 6, 198, 6738, 302, 1330, 17632, 355, 374, 5589, 576, 198, 6738, 19974, 7753, 1330, 38636, 8979, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 198, ...
2.391534
378
import tweepy import time import pandas as pd import datetime import re from auth import consumer_key,consumer_secret,key,secret,user_ID # twitter auth process auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(key, secret) api = tweepy.API(auth) bot_id = api.me().id #1382664940587261954 #...
[ 11748, 4184, 538, 88, 198, 11748, 640, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 198, 11748, 302, 198, 198, 6738, 6284, 1330, 7172, 62, 2539, 11, 49827, 62, 21078, 11, 2539, 11, 21078, 11, 7220, 62, 2389, 198, 2,...
2.206246
1,537
#!/usr/bin/env python import rosbag import numpy as np import matplotlib.pyplot as plt import sys import os args = sys.argv print(len(args)) assert len(args)>=2, "you must specify the argument." # get path filename=os.path.normpath(os.path.join(os.getcwd(),args[1])) print(filename) # read from bag file bag = rosbag....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 686, 82, 21454, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 22046, 796, 25064...
1.998435
639
''' Created on Dec 21, 2014 @author: Alina Maria Ciobanu ''' import numpy import re TOKEN_NER_TAGS = ['DATE', 'NUMBER'] WIKI_NER_TAGS = ['PERSON', 'ORGANIZATION', 'LOCATION'] DEFAULT_YEAR_VALUE = 1858 # the mean of the lowest and highest value for all possible intervals, hardcoded for now def get_tem...
[ 7061, 6, 201, 198, 41972, 319, 4280, 2310, 11, 1946, 201, 198, 201, 198, 31, 9800, 25, 978, 1437, 14200, 37685, 672, 42357, 201, 198, 7061, 6, 201, 198, 201, 198, 11748, 299, 32152, 201, 198, 11748, 302, 201, 198, 201, 198, 10468, ...
2.228111
434
"""This module handles classifier calculation.""" from academia_tag_recommender.definitions import MODELS_PATH from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSearchCV from sklearn.metrics import make_scorer, recall_score from sklearn.model_selection import StratifiedKFold f...
[ 37811, 1212, 8265, 17105, 1398, 7483, 17952, 526, 15931, 198, 6738, 34326, 62, 12985, 62, 47335, 2194, 13, 4299, 50101, 1330, 19164, 37142, 62, 34219, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6...
3.17561
205
from node.behaviors import Adopt from node.behaviors import DefaultInit from node.behaviors import Nodespaces from node.behaviors import Nodify from node.behaviors import OdictStorage from node.tests import NodeTestCase from odict import odict from plumber import plumbing #############################################...
[ 6738, 10139, 13, 20709, 615, 12706, 1330, 1215, 8738, 198, 6738, 10139, 13, 20709, 615, 12706, 1330, 15161, 31768, 198, 6738, 10139, 13, 20709, 615, 12706, 1330, 399, 4147, 43076, 198, 6738, 10139, 13, 20709, 615, 12706, 1330, 399, 375, ...
5.429752
121