content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from conway import *
[ 6738, 369, 1014, 1330, 1635, 198 ]
3.5
6
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: __init__.py @time: 2018-03-06 00:00 """ from __future__ import unicode_literals import eventlet eventlet.monkey_patch() from logging.config import dictConfig from config import current_config from flask import Flask from flask_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 31, 9800, 25, 1976, 33255, 258, 198, 31, 43776, 25, 9485, 1925, 1670, 198, 31, 7753, 25, 11593, 15003, 834, 13, 9078, 198, 31,...
2.834236
1,846
#!/usr/bin/env python3 ########################################################################## # USAGE: import N50 # help(N50) # N50.main(~/stanford_swc/fasta-o-matic/fasta/normal.fa) # DESCRIPTION: Function that calculates N50 for a FASTA file # Created by Jennifer M Shelton ################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 29113, 29113, 7804, 2235, 198, 2, 197, 2937, 11879, 25, 1330, 399, 1120, 198, 2, 220, 220, 1037, 7, 45, 1120, 8, 198, 2, 220, 220, 399, 1120, 13, 12417, 7, 93, 14, 14192, 384...
2.649471
756
#!/usr/bin/env python3 __all__ = ('main_by_args','latex_main','latex_uuid','latex_tree') cmd_help=""" Command help: blob compile the blob(s) with --uuid=UUID, tree compile all the blobs starting from --uuid=UUID main_public compile the whole document, for the general public ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 834, 439, 834, 796, 19203, 12417, 62, 1525, 62, 22046, 41707, 17660, 87, 62, 12417, 41707, 17660, 87, 62, 12303, 312, 41707, 17660, 87, 62, 21048, 11537, 198, 198, 28758, 62, ...
2.032809
12,527
# this script generates visualizer header import os visualizer_dir = 'extension/visualizer' visualizer_css = os.path.join(visualizer_dir, 'visualizer.css') visualizer_d3 = os.path.join(visualizer_dir, 'd3.js') visualizer_script = os.path.join(visualizer_dir, 'script.js') visualizer_header = os.path.join(visualizer_dir...
[ 2, 428, 4226, 18616, 5874, 7509, 13639, 198, 11748, 28686, 198, 198, 41464, 7509, 62, 15908, 796, 705, 2302, 3004, 14, 41464, 7509, 6, 198, 41464, 7509, 62, 25471, 796, 28686, 13, 6978, 13, 22179, 7, 41464, 7509, 62, 15908, 11, 705, ...
2.94697
132
__all__ = ('KXAspectRatio', ) from kivy.uix.layout import Layout from kivy.properties import BoundedNumericProperty, OptionProperty HALIGN_TO_ATTR = { 'center': 'center_x', 'middle': 'center_x', 'left': 'x', 'right': 'right', } VALIGN_TO_ATTR = { 'center': 'center_y', 'middle': 'center_y', ...
[ 834, 439, 834, 796, 19203, 42, 55, 1722, 806, 29665, 952, 3256, 1267, 198, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 39786, 1330, 47639, 198, 6738, 479, 452, 88, 13, 48310, 1330, 347, 6302, 45, 39223, 21746, 11, 16018, 21746, 198, ...
2.265823
158
import cv2 import numpy as np from matplotlib import pyplot as plt brightness = {"DARK": 0, "NORMAL": 1, "LIGHT": 2} contrast = {"HIGH": 2, "NORMAL": 1, "LOW": 0}
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 29199, 1108, 796, 19779, 35, 14175, 1298, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
1.821138
123
import random from models.game.bots.Bot import Bot from models.game.Board import Board
[ 11748, 4738, 198, 6738, 4981, 13, 6057, 13, 42478, 13, 20630, 1330, 18579, 198, 6738, 4981, 13, 6057, 13, 29828, 1330, 5926, 628 ]
3.826087
23
#!/usr/bin/env python #-*- encoding:UTF-8 -*- """ Background: JJ and MM want to have a fine dinner, celebrating their annual bonuses. They make this rule: This dinner is on the person who gets more annual bonus. And the cost of the dinner is the diff of money they make mod 300, per capita. Requirement: Decide the mo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 21004, 25, 48504, 12, 23, 532, 9, 12, 198, 37811, 198, 21756, 25, 220, 198, 32178, 290, 20806, 765, 284, 423, 257, 3734, 8073, 11, 17499, 511, 5079, 17568, 13, 1119, ...
2.816984
683
#!/usr/bin/python from pytvmaze.tvmaze import *
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 12972, 83, 14761, 6201, 13, 83, 14761, 6201, 1330, 1635, 198 ]
2.333333
21
from flask import Flask, request, jsonify from connection import get_sql_connection from product import get_all_products, insert_product, delete_product import json from flask_cors import CORS app = Flask(__name__) CORS(app) cnx = get_sql_connection() if __name__ == '__main__': app.run(host= '0.0.0.0', port=505...
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 6738, 4637, 1330, 651, 62, 25410, 62, 38659, 198, 6738, 1720, 1330, 651, 62, 439, 62, 29498, 11, 7550, 62, 11167, 11, 12233, 62, 11167, 198, 11748, 33918, 198, 6738, 42903, 62,...
2.964602
113
import random from api.config import restaurant_collection as restaurants
[ 11748, 4738, 198, 6738, 40391, 13, 11250, 1330, 7072, 62, 43681, 355, 10808 ]
5.615385
13
""" code to call the snow model for a simple test case using brewster glacier data """ from __future__ import division import numpy as np import matplotlib.pylab as plt import datetime as dt from nz_snow_tools.util.utils import resample_to_fsca, nash_sut, mean_bias, rmsd, mean_absolute_error, coef_determ seb_dat = np...
[ 37811, 198, 8189, 284, 869, 262, 6729, 2746, 329, 257, 2829, 1332, 1339, 1262, 9059, 1706, 44539, 1366, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 79, 264...
1.898263
3,224
from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations stations = build_station_list() incon_station=inconsistent_typical_range_stations(stations) incon_names=[] for station in incon_station: incon_names.append(station.name) incon_names.sort() prin...
[ 6738, 6947, 10057, 13, 17529, 7890, 1330, 1382, 62, 17529, 62, 4868, 198, 6738, 6947, 10057, 13, 17529, 1330, 18326, 62, 28004, 605, 62, 9521, 62, 301, 602, 198, 301, 602, 796, 1382, 62, 17529, 62, 4868, 3419, 198, 259, 1102, 62, 17...
3.2
105
from typing import Generic, TypeVar from typing_extensions import Final from yaga_ga.evolutionary_algorithm.individuals import IndividualStructure IndividualType = TypeVar("IndividualType") GeneType = TypeVar("GeneType")
[ 6738, 19720, 1330, 42044, 11, 5994, 19852, 198, 198, 6738, 19720, 62, 2302, 5736, 1330, 8125, 198, 198, 6738, 331, 8126, 62, 4908, 13, 1990, 2122, 560, 62, 282, 42289, 13, 43129, 82, 1330, 18629, 1273, 5620, 628, 198, 198, 35392, 6030...
3.783333
60
# -*- coding: utf-8 -*- """ Created on Wed Dec 1 13:21:44 2021 This file holds the stimuli that are used in the world to represent cues. obs_time --> Stimulus representing time match_cifar --> Natural scenes for phase 1 learning obs_cifar --> Natural scenes for phase 2 learning match_alp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 4280, 220, 352, 1511, 25, 2481, 25, 2598, 33448, 201, 198, 201, 198, 1212, 2393, 6622, 262, 25973, 326, 389, 973, 287, 262, 995...
2.664655
1,491
print('ingrese el monto a pagar en aseo urbano') aseo=float(input()) print('ingrese el valor de lectura del mes anterior') ant=float(input()) print('ingrese el valor de lectura del mes actual') act=float(input()) cons=act-ant if 0<cons<=100: pago=cons*4600 print('debera pagar $',pago,'en luz electrica y',aseo,'...
[ 4798, 10786, 278, 260, 325, 1288, 285, 5957, 257, 279, 32452, 551, 257, 325, 78, 7876, 78, 11537, 198, 589, 78, 28, 22468, 7, 15414, 28955, 198, 4798, 10786, 278, 260, 325, 1288, 1188, 273, 390, 11042, 5330, 1619, 18842, 32700, 11537,...
2.351916
287
import time import meilisearch from meilisearch.tests import BASE_URL, MASTER_KEY
[ 11748, 640, 198, 11748, 502, 346, 271, 3679, 198, 6738, 502, 346, 271, 3679, 13, 41989, 1330, 49688, 62, 21886, 11, 32337, 5781, 62, 20373, 198 ]
3.153846
26
from lexer import Lexer from parser import Parser if __name__ == "__main__": lexer = Lexer("exemplos/teste2.pasc") parser = Parser(lexer) parser.executa()
[ 6738, 31191, 263, 1330, 17210, 263, 198, 6738, 30751, 1330, 23042, 263, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 31191, 263, 796, 17210, 263, 7203, 1069, 18856, 418, 14, 9288, 68, 17, 13, ...
2.545455
66
from .mqtt import MQTTClient from .sql import * from .redis import *
[ 6738, 764, 76, 80, 926, 1330, 337, 48, 15751, 11792, 198, 6738, 764, 25410, 1330, 1635, 198, 6738, 764, 445, 271, 1330, 1635, 198 ]
2.875
24
from marshmallow import Schema, fields
[ 6738, 22397, 42725, 1330, 10011, 2611, 11, 7032, 628, 628, 628 ]
4
11
"""Collection of tools for changing the text of your terminal.""" from coloredterm.coloredterm import ( Back, bg, colored, colors, cprint, fg, Fore, names, pattern_input, pattern_print, rand, Style ) __version__ = "0.1.9" __all__ = [ 'Back', 'bg', 'colored', ...
[ 37811, 36307, 286, 4899, 329, 5609, 262, 2420, 286, 534, 12094, 526, 15931, 198, 6738, 16396, 4354, 13, 25717, 4354, 1330, 357, 198, 220, 220, 220, 5157, 11, 198, 220, 220, 220, 275, 70, 11, 198, 220, 220, 220, 16396, 11, 198, 220, ...
2.112676
213
# Run from GAE remote API: # {GAE Path}\remote_api_shell.py -s {YourAPPName}.appspot.com # import export_as_csv import csv from google.appengine.ext import db from google.appengine.ext.db import GqlQuery # Query for items query = GqlQuery("SELECT * FROM Trend WHERE name = '#JeSuisCharlie'") exportToCsv(query, ...
[ 2, 5660, 422, 402, 14242, 6569, 7824, 25, 198, 2, 220, 197, 90, 9273, 36, 10644, 32239, 47960, 62, 15042, 62, 29149, 13, 9078, 532, 82, 1391, 7120, 24805, 5376, 27422, 1324, 20485, 13, 785, 198, 2, 220, 197, 11748, 10784, 62, 292, ...
2.795276
127
import plotly.figure_factory as figure_factory import statistics import random import pandas df = pandas.read_csv("data.csv") data = df["reading_time"].tolist() population_mean = statistics.mean(data) print("Population mean :", population_mean) setup()
[ 11748, 7110, 306, 13, 26875, 62, 69, 9548, 355, 3785, 62, 69, 9548, 201, 198, 11748, 7869, 201, 198, 11748, 4738, 201, 198, 11748, 19798, 292, 201, 198, 201, 198, 7568, 796, 19798, 292, 13, 961, 62, 40664, 7203, 7890, 13, 40664, 494...
2.76
100
from sqlite3 import Connection from ddtrace.util import deprecated
[ 6738, 44161, 578, 18, 1330, 26923, 198, 198, 6738, 49427, 40546, 13, 22602, 1330, 39224, 198 ]
4.25
16
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Define function used on logging.""" import logging __KAFKA_DECORATOR_DEBUG__ = None def set_debug_level(level): """Set the level of log. Set logging level for all loggers create by get_logger function Parameters ---------- level: log level def...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 7469, 500, 2163, 973, 319, 18931, 526, 15931, 198, 198, 11748, 18931, 198, 198, 834, 42, 8579, 25123, 62, 41...
2.479876
323
#!/usr/bin/env python # coding:utf8 """ this module reads strings.csv, which contains all the strings, and lets the main app use it """ import sys import csv import os from flask import Markup import configparser config = configparser.RawConfigParser() path = '../hseling_api_diachrony_webvectors/hseling_api_diachron...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 40477, 23, 198, 198, 37811, 198, 5661, 8265, 9743, 13042, 13, 40664, 11, 543, 4909, 477, 198, 1169, 13042, 11, 290, 8781, 262, 1388, 598, 779, 340, 198, 37811, 198, 198...
2.68381
525
mylist=LinkedList() mylist.insertLast(10) mylist.insertLast(20) mylist.insertLast(17) mylist.insertLast(18) mylist.insertLast(60) mylist.viewList() print() mylist.deleteFirst() mylist.viewList()
[ 198, 1820, 4868, 28, 11280, 276, 8053, 3419, 198, 198, 1820, 4868, 13, 28463, 5956, 7, 940, 8, 198, 1820, 4868, 13, 28463, 5956, 7, 1238, 8, 198, 1820, 4868, 13, 28463, 5956, 7, 1558, 8, 198, 1820, 4868, 13, 28463, 5956, 7, 1507, ...
2.45679
81
# -*- coding: utf-8 -*- """ Created on Thu Nov 10 20:21:46 2015 @author: derrick """ from __future__ import print_function, absolute_import, unicode_literals, division import glob import itertools import json import os import random import numpy as np import obspy import pandas as pd from six import string_types im...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 5267, 838, 1160, 25, 2481, 25, 3510, 1853, 198, 198, 31, 9800, 25, 4587, 5557, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, ...
2.267741
7,821
from tarfile import SUPPORTED_TYPES import requests import re from bs4 import BeautifulSoup import json import HouseHunter.globals as Globals from HouseHunter.ad import * from pathlib import Path
[ 6738, 13422, 7753, 1330, 43333, 1961, 62, 9936, 47, 1546, 198, 11748, 7007, 198, 11748, 302, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 33918, 198, 11748, 2097, 38803, 13, 4743, 672, 874, 355, 40713, 874, 198, 6738, 2...
3.62963
54
# nice and clean closure notation # traditional, not_so_neat closure notation #### EXAMPLE ########################################################### cnt_a = get_counter_neat() cnt_b = get_counter_neat() print cnt_a() # >>> 1 print cnt_a() # >>> 2 print cnt_a() # >>> 3 print cnt_b() # >>> 1 print cnt_a() ...
[ 2, 3621, 290, 3424, 16512, 33274, 198, 198, 2, 4569, 11, 407, 62, 568, 62, 710, 265, 16512, 33274, 198, 198, 4242, 7788, 2390, 16437, 1303, 29113, 14468, 7804, 2235, 198, 198, 66, 429, 62, 64, 796, 651, 62, 24588, 62, 710, 265, 34...
2.636364
143
# coding: utf-8 # funcions for quick testing import numpy as np # helper functions def normalization(arr, normalize_mode, norm_range = [0,1]): """ Helper function: Normalizes the image based on the specified mode and range Args: arr: numpy array normalize_mode: either "whiten", "normalize_cl...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 25439, 507, 329, 2068, 4856, 198, 11748, 299, 32152, 355, 45941, 198, 2, 31904, 5499, 198, 4299, 3487, 1634, 7, 3258, 11, 3487, 1096, 62, 14171, 11, 2593, 62, 9521, 796, 685, 15, 11, 16, 6...
2.745853
1,507
import datetime t = (3, 30, 2019, 9, 25) x = datetime.datetime(t[2], t[3], t[4], t[0], t[1]) print(x.strftime("%m/%d/%Y %H:%M"))
[ 11748, 4818, 8079, 198, 198, 83, 796, 357, 18, 11, 1542, 11, 13130, 11, 860, 11, 1679, 8, 198, 87, 796, 4818, 8079, 13, 19608, 8079, 7, 83, 58, 17, 4357, 256, 58, 18, 4357, 256, 58, 19, 4357, 256, 58, 15, 4357, 256, 58, 16, ...
1.857143
70
# Autoencoder based on: https://towardsdatascience.com/predictive-maintenance-of-turbofan-engine-64911e39c367 import argparse import pandas as pd import numpy as np import itertools import logging import random import os from scipy.spatial.distance import pdist, squareform from sklearn.metrics import confusion_matrix...
[ 2, 5231, 6571, 66, 12342, 1912, 319, 25, 3740, 1378, 83, 322, 1371, 19608, 292, 4234, 13, 785, 14, 79, 17407, 425, 12, 12417, 8219, 12, 1659, 12, 83, 5945, 1659, 272, 12, 18392, 12, 33300, 1157, 68, 2670, 66, 27824, 198, 198, 1174...
2.602452
571
#! /usr/bin/env python # vim: set fileencoding=utf-8 import sys import json main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 900, 2393, 12685, 7656, 28, 40477, 12, 23, 198, 198, 11748, 25064, 198, 11748, 33918, 628, 198, 198, 12417, 3419, 198 ]
2.558824
34
# -*- coding: utf-8 -*- import os import datetime import time import MySQLdb as mdb LIB_INDEXES = 'D:\\TEMP\\librusec' MYSQL_HOST = '127.0.0.1' MYSQL_BASE = 'books100' MYSQL_LOGIN = 'root' MYSQL_PASSW = 'qwerty' SQL_CHECK_BASE = "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '%s'" SQL_CREATE...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 33476, 9945, 355, 285, 9945, 198, 198, 40347, 62, 12115, 6369, 1546, 796, 705, 35, 25, 6852, 51, 39494...
2.27241
859
# -*- coding: utf-8 -*- import Shift as shi import Enum as enu def evalShift(individual): """ This method is grobal method. This method is evaluation. If you need new evaluation method, you must define it as follows. RETURN: evaluation values """ shift = shi.Shift(individual) # Get indiviaual of ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15576, 355, 427, 72, 198, 11748, 2039, 388, 355, 551, 84, 198, 198, 4299, 5418, 33377, 7, 43129, 2599, 198, 197, 37811, 198, 197, 1212, 2446, 318, 7128, 6893, 2...
1.990276
617
from .version import __version__ __version__
[ 6738, 764, 9641, 1330, 11593, 9641, 834, 198, 198, 834, 9641, 834, 198 ]
3.538462
13
from sqlalchemy import Column, Integer, String from app.database import Base
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 198, 198, 6738, 598, 13, 48806, 1330, 7308, 628 ]
4.157895
19
from PIL import Image import matplotlib.pyplot as plt import numpy as np import bdlb import torch import json # path_img = './data/test_result/t5/' # path_img = './results_18_ce_noshuffle/2_' # # image = Image.open(path_img + '100.png') # plt.imshow(image) # plt.show() # # overlay = Image.open(path_img + 'overlay.png'...
[ 6738, 350, 4146, 1330, 7412, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 275, 67, 23160, 198, 11748, 28034, 198, 11748, 33918, 198, 198, 2, 3108, 62, 9600, 796, 705, 19...
2.229829
409
import telebot bot = telebot.TeleBot("879497357:AAHxUAZR2ZMy7q1dsC12NoFOmvBnKo9a3FA") bot.polling( none_stop = True )
[ 11748, 5735, 13645, 198, 198, 13645, 796, 5735, 13645, 13, 31709, 20630, 7203, 23, 3720, 38073, 27277, 25, 3838, 39, 87, 52, 22778, 49, 17, 57, 3666, 22, 80, 16, 9310, 34, 1065, 2949, 6080, 76, 85, 33, 77, 48735, 24, 64, 18, 7708,...
2.068966
58
# -*- coding: utf-8 -*- from model.address import Address import random import string import os.path import json import getopt import sys import jsonpickle try: opts, args = getopt.getopt(sys.argv[1:], 'n:f:', ['number of address', 'file']) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 2746, 13, 21975, 1330, 17917, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 28686, 13, 6978, 198, 11748, 33918, 198, 11748, 651, 8738, 198, 11748, 25064, 198, 1174...
1.686776
1,641
"""``phyphy`` package for automating and parsing HyPhy (>=2.3.7) standard analyses. Written by Stephanie J. Spielman. Test modules ---------------- * phyphy_test """ from phyphy import *
[ 37811, 15506, 6883, 6883, 15506, 5301, 329, 3557, 803, 290, 32096, 6707, 2725, 88, 45160, 28, 17, 13, 18, 13, 22, 8, 3210, 13523, 13, 198, 25354, 416, 26085, 449, 13, 34841, 805, 13, 198, 198, 14402, 13103, 198, 1783, 628, 198, 9, ...
3.254237
59
import scripts.screen_interface as si import scripts.game_interface as gi import ctypes import os import keyboard import uuid GI = gi.GameInterface() # find center of screen user32 = ctypes.windll.user32 screenSize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1) centerPoint = tuple(i/2 for i in screenSize) p...
[ 11748, 14750, 13, 9612, 62, 39994, 355, 33721, 198, 11748, 14750, 13, 6057, 62, 39994, 355, 308, 72, 198, 11748, 269, 19199, 198, 11748, 28686, 198, 11748, 10586, 198, 11748, 334, 27112, 198, 198, 18878, 796, 308, 72, 13, 8777, 39317, ...
2.864486
214
import json import queue from control.WorkerQueue import WorkerQueue as WQ from data.StorageIO import StorageIO ''' The WorkerControl coordinates workers and assigns jobs. Worker register themself at startup. The controller queues workers as well as jobs in two seperate queues. As soon as a worker and a job are availa...
[ 11748, 33918, 198, 11748, 16834, 198, 6738, 1630, 13, 12468, 263, 34991, 1330, 35412, 34991, 355, 370, 48, 198, 6738, 1366, 13, 31425, 9399, 1330, 20514, 9399, 198, 198, 7061, 6, 198, 464, 35412, 15988, 22715, 3259, 290, 46974, 3946, 13...
4.08547
117
import discord import sys import random import aiohttp import logging token = sys.argv[1] group = sys.argv[2] tokenno = sys.argv[3] msgtxt = sys.argv[4] useproxies = sys.argv[5] logging.basicConfig(filename='RTB.log', filemode='w', format='Token {}'.format(str(tokenno))+' - %(levelname)s - %(message)s',le...
[ 11748, 36446, 201, 198, 11748, 25064, 201, 198, 11748, 4738, 201, 198, 11748, 257, 952, 4023, 201, 198, 11748, 18931, 201, 198, 201, 198, 30001, 796, 25064, 13, 853, 85, 58, 16, 60, 201, 198, 8094, 796, 25064, 13, 853, 85, 58, 17, ...
2.43949
314
# Generated by Django 3.1.7 on 2021-05-07 03:50 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 2713, 12, 2998, 7643, 25, 1120, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from model.gpt import gpt import tensorflow as tf import numpy as np
[ 6738, 2746, 13, 70, 457, 1330, 308, 457, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.181818
22
import os # Codigo de pruebas para gcat print("Fichero linea a linea") print("-----------------------------") for line in gcat([os.path.join(os.path.dirname(os.path.realpath(__file__)), 'quijote.txt')]): print(line) print("-----------------------------") print() print() # Codigo de pruebas para ggrep print("L...
[ 11748, 28686, 628, 628, 198, 2, 18720, 14031, 390, 778, 518, 12093, 31215, 308, 9246, 198, 4798, 7203, 37, 291, 11718, 1627, 64, 257, 1627, 64, 4943, 198, 4798, 7203, 1783, 32501, 4943, 198, 1640, 1627, 287, 308, 9246, 26933, 418, 13,...
2.927835
194
import binaryninja from .breach_arch import BreachArch BreachArch.register() from .breach_programview import BreachProgramView BreachProgramView.register() from .breach_calling_convention import BreachCallingConvention from .breach_platform import BreachPlatform
[ 11748, 13934, 35073, 6592, 198, 198, 6738, 764, 4679, 620, 62, 998, 1330, 46148, 19895, 198, 12679, 620, 19895, 13, 30238, 3419, 198, 198, 6738, 764, 4679, 620, 62, 23065, 1177, 1330, 46148, 15167, 7680, 198, 12679, 620, 15167, 7680, 13...
3.84058
69
from django.core.exceptions import ObjectDoesNotExist from django.db import IntegrityError from rest_framework.decorators import api_view from rest_framework import status from swot_item_vote.models import Vote from swot_item.models import SwotItem from .serializers import serialize, get_item_confidence from swot.m...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 42625, 14208, 13, 9945, 1330, 39348, 12331, 198, 198, 6738, 1334, 62, 30604, 13, 12501, 273, 2024, 1330, 40391, 62, 1177, 198, 6738, 1334, 62,...
3.615385
117
#!/usr/bin/env python3 ################################################################################# ################# Helper Module ################################################# ################# Provides abstraction to car sensors and PHY layer ############# ##################################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 29113, 29113, 14468, 2, 198, 14468, 2, 5053, 525, 19937, 1303, 29113, 14468, 198, 14468, 2, 47081, 34651, 284, 1097, 15736, 290, 9370, 56, 7679, 1303, 7804, 4242, 198, 29113, ...
3.100579
1,899
if __name__ == '__main__': li = [65, 72, 23, 36, 99, 20, 1, 44] # [8, 2, 5, 13, 4, 19, 12, 6, 3, 11, 10, 7, 9] print("Unsorted list: ", li) quick_sort(li, 0, len(li) - 1) print("Sorted list: ", li)
[ 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 7649, 796, 685, 2996, 11, 7724, 11, 2242, 11, 4570, 11, 7388, 11, 1160, 11, 352, 11, 5846, 60, 201, 198, 220, 1303, 685, 23, 11, 362, 11, 642, 11...
1.929825
114
""" Copyright (c) 2021 Aiven Ltd See LICENSE for details Algorithms to help with redistributing parts across servers for tables using the Replicated family of table engines. This does not support shards, but this is the right place to add support for them. """ from astacus.common.ipc import SnapshotFile from astacus....
[ 37811, 198, 15269, 357, 66, 8, 33448, 317, 1469, 12052, 198, 6214, 38559, 24290, 329, 3307, 198, 198, 2348, 7727, 907, 284, 1037, 351, 17678, 2455, 278, 3354, 1973, 9597, 329, 8893, 1262, 262, 198, 39232, 3474, 1641, 286, 3084, 11874, ...
2.590781
2,126
# -*- coding: utf-8 -*- # This file is part of the Rocket Web Server # Copyright (c) 2012 Timothy Farrell # # See the included LICENSE.txt file for licensing details. # Import System Modules import sys import unittest # Import Custom Modules import rocket # Define Constants PY3K = sys.version_info[0] > 2 # Define T...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 318, 636, 286, 262, 16920, 5313, 9652, 198, 2, 15069, 357, 66, 8, 2321, 22283, 37568, 198, 2, 198, 2, 4091, 262, 3017, 38559, 24290, 13, 14116, 23...
2.968254
126
from setuptools import setup setup( name='Unet', version='', packages=['models'], url='', license='', author='hemanth sharma', author_email='', description='' )
[ 6738, 900, 37623, 10141, 1330, 9058, 201, 198, 201, 198, 40406, 7, 201, 198, 220, 220, 220, 1438, 11639, 3118, 316, 3256, 201, 198, 220, 220, 220, 2196, 11639, 3256, 201, 198, 220, 220, 220, 10392, 28, 17816, 27530, 6, 4357, 201, 19...
2.215054
93
import pygame from side_scroller.constants import BLACK from side_scroller.settings import GameSettings, Fonts from side_scroller.player import Player, Hitbox from side_scroller.constants import GAME_NAME
[ 11748, 12972, 6057, 198, 6738, 1735, 62, 1416, 10646, 13, 9979, 1187, 1330, 31963, 198, 6738, 1735, 62, 1416, 10646, 13, 33692, 1330, 3776, 26232, 11, 24060, 82, 198, 6738, 1735, 62, 1416, 10646, 13, 7829, 1330, 7853, 11, 7286, 3524, ...
3.727273
55
# Tests assert get_min_drops(20, 2) == 6 assert get_min_drops(15, 3) == 5
[ 198, 198, 2, 30307, 198, 30493, 651, 62, 1084, 62, 49253, 7, 1238, 11, 362, 8, 6624, 718, 198, 30493, 651, 62, 1084, 62, 49253, 7, 1314, 11, 513, 8, 6624, 642, 198 ]
2.30303
33
#coding=utf-8 import sys, os import socket import hashlib import virus_total_apis from PyQt4 import QtCore sys.path.append("..") from publicfunc.fileanalyze import PEFileAnalize, getFileInfo
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 198, 11748, 25064, 11, 28686, 198, 11748, 17802, 198, 11748, 12234, 8019, 198, 11748, 9471, 62, 23350, 62, 499, 271, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 14055, 198, 17597, 13, 6978, 13, 332...
2.984375
64
import smtplib server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login("tt0815550@gmail.com", "AureliaK1609") msg = "YOUR MESSAGE!" server.sendmail("e.kaczmarek01@gmail.com", "tt0815550@gmail.com", msg) server.quit()
[ 11748, 895, 83, 489, 571, 198, 198, 15388, 796, 895, 83, 489, 571, 13, 12310, 7250, 10786, 5796, 34788, 13, 14816, 13, 785, 3256, 642, 5774, 8, 198, 15388, 13, 9688, 83, 7278, 3419, 198, 15388, 13, 38235, 7203, 926, 2919, 18742, 112...
2.285714
105
#!/usr/bin/env python # -*- coding: utf-8 -*- import string
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4731, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220 ]
1.829268
41
# Informe um n e mostre sua tabuada print('-' * 36) n = int(input('Digite um n e veja sua tabuada: ')) print('=' * 36) for i in range(1, 11): print(n, 'x', i, '=', n * i) print('=' * 36)
[ 2, 45255, 68, 23781, 299, 304, 749, 260, 424, 64, 7400, 84, 4763, 198, 4798, 10786, 19355, 1635, 4570, 8, 198, 77, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 304, 1569, 6592, 424, 64, 7400, 84, 4763, 25, 705, 4008, 198, 47...
2.195402
87
""" Split: dividir string Join: juntar uma lista (str) Enumerate: enumerar elementos da lista (iterveis) """ string ='O Brasil o pais do futebol, o Brasil penta.' lista_1 = string.split(' ') lista_2 = string.split(',') print(lista_1) print(lista_2) palavra = '' contagem = 0 for valor in lista_1: print(f'A palavr...
[ 37811, 198, 41205, 25, 13576, 343, 4731, 198, 18234, 25, 474, 2797, 283, 334, 2611, 1351, 64, 357, 2536, 8, 198, 4834, 6975, 378, 25, 27056, 283, 5002, 418, 12379, 1351, 64, 357, 2676, 303, 271, 8, 198, 37811, 198, 8841, 796, 6, 4...
2.227488
211
import pytest from commitizen import cmd
[ 11748, 12972, 9288, 198, 198, 6738, 725, 36958, 1330, 23991, 628, 198 ]
3.666667
12
list = [3, 4] "{3}".format(*[1, 2, *list]) "{4}".format(*[1, 2, *list]) "{1}".format(*[1, 2, *list]) "{3}".format(*[*list, 1, 2]) "{4}".format(*[*list, 1, 2]) "{1}".format(*[*list, 1, 2])
[ 4868, 796, 685, 18, 11, 604, 60, 198, 1, 90, 18, 92, 1911, 18982, 46491, 58, 16, 11, 362, 11, 1635, 4868, 12962, 198, 1, 90, 19, 92, 1911, 18982, 46491, 58, 16, 11, 362, 11, 1635, 4868, 12962, 198, 1, 90, 16, 92, 1911, 18982, ...
1.807692
104
import sys import re from typing import Any, Optional, IO, Sequence from argparse import ArgumentParser as CoreArgumentParser, Namespace, _SubParsersAction from .markdown import MarkdownFormatter, MarkdownHelpAction from .bashcompletion import BashCompletionAction, hook as bashcompletion_hook ArgumentSubParser = _S...
[ 11748, 25064, 198, 11748, 302, 198, 198, 6738, 19720, 1330, 4377, 11, 32233, 11, 24418, 11, 45835, 198, 6738, 1822, 29572, 1330, 45751, 46677, 355, 7231, 28100, 1713, 46677, 11, 28531, 10223, 11, 4808, 7004, 47, 945, 364, 12502, 198, 19...
3.829545
88
from flask import Flask, render_template, request, redirect,Blueprint, json, url_for, session from modules import dataBase,usuario import psycopg2, os, subprocess, bcrypt # #def getData(): # DATABASE_URL = os.environ['DATABASE_URL'] # con = psycopg2.connect(DATABASE_URL, sslmode='require') # return con ###...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 14573, 4798, 11, 33918, 11, 19016, 62, 1640, 11, 6246, 198, 6738, 13103, 1330, 1366, 14881, 11, 385, 84, 4982, 198, 11748, 17331, 22163, 70, 17, 11, 28686, 11, ...
2.729167
192
import plistlib from pathlib import Path from datetime import datetime, timezone, timedelta def extract_plist(self): """ Extracts information from the Info.plist file :return: Dictionary representation of Info.plist contents """ with self._plist_file.open('rb') as plist_fp:...
[ 11748, 458, 396, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 11, 28805, 12514, 628, 198, 220, 220, 220, 825, 7925, 62, 489, 396, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220,...
2.281211
1,618
import pandas import rtree import networkx import numpy as np import cv2 from skimage.measure import regionprops from merlin.core import analysistask from merlin.util import imagefilters
[ 11748, 19798, 292, 198, 11748, 374, 21048, 198, 11748, 3127, 87, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 6738, 1341, 9060, 13, 1326, 5015, 1330, 3814, 1676, 862, 198, 198, 6738, 4017, 2815, 13, 7295, 1330, 11...
3.392857
56
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from nornir.core.task import Task from netests import log from netests.tools.file import open_file from netests.protocols.facts import Facts from netests.select_vars import select_host_vars from netests.comparators.log_compare import log_compare, log_no_yaml_data from net...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 299, 1211, 343, 13, 7295, 13, 35943, 1330, 15941, 198, 6738, 2010, 3558, 1330, 2604, 198, 6738, 2010, ...
2.858824
170
# from tkinter import Tk, Button, X, Frame, GROOVE, W, E, Label, Entry, END import numpy as np import os from matplotlib import pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg # # # if __name__ == '__main__': # tkinter root = Tk() # 1 ...
[ 2, 201, 198, 6738, 256, 74, 3849, 1330, 309, 74, 11, 20969, 11, 1395, 11, 25184, 11, 10863, 6684, 6089, 11, 370, 11, 412, 11, 36052, 11, 21617, 11, 23578, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28686, 201, 198, ...
1.902597
462
# coding=utf-8 """ """ from . import mutation from . import crossover from . import base
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 628, 198, 37811, 198, 198, 6738, 764, 1330, 15148, 198, 6738, 764, 1330, 27668, 198, 6738, 764, 1330, 2779, 628, 198 ]
3.241379
29
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging import os # TODO: Remove entirely if you don't register GStreamer elements below import pygst pygst.require('0.10') import gst import gobject from mopidy import config, ext __version__ = '0.1.0' # TODO: If you ne...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 2...
2.971631
141
"""Farmer class tests. :author: Someone :email: someone@pnnl.gov License: BSD 2-Clause, see LICENSE and DISCLAIMER files """ import unittest from im3agents import FarmerOne if __name__ == '__main__': unittest.main()
[ 37811, 21428, 647, 1398, 5254, 13, 198, 198, 25, 9800, 25, 220, 220, 17877, 198, 25, 12888, 25, 220, 220, 220, 2130, 31, 79, 20471, 75, 13, 9567, 198, 198, 34156, 25, 220, 347, 10305, 362, 12, 2601, 682, 11, 766, 38559, 24290, 290...
2.6
90
from tool.runners.python import SubmissionPy WHITE = 0 BLACK = 1 DIRECTIONS = { "e": (-1, 0), # (x, y) with axes right/bottom "se": (-0.5, 1), "sw": (0.5, 1), "w": (1, 0), "nw": (0.5, -1), "ne": (-0.5, -1), } def test_th_ch(): """ Run `python -m pytest ./day-24/part-1/th-ch.py` to t...
[ 6738, 2891, 13, 36740, 13, 29412, 1330, 42641, 20519, 198, 198, 12418, 12709, 796, 657, 198, 9148, 8120, 796, 352, 198, 17931, 23988, 11053, 796, 1391, 198, 220, 220, 220, 366, 68, 1298, 13841, 16, 11, 657, 828, 220, 1303, 357, 87, ...
1.935252
556
n = int(input()) l1 = list() l2 = list() for _ in range(n): t, v = input().split() l1.append(int(t)) l2.append(float(v)) result = 0 for i in range(len(l1) - 1): result += ((l2[i] + l2[i + 1]) / 2) * (l1[i + 1] - l1[i]) print(result / 1000)
[ 77, 796, 493, 7, 15414, 28955, 198, 198, 75, 16, 796, 1351, 3419, 198, 75, 17, 796, 1351, 3419, 198, 1640, 4808, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 256, 11, 410, 796, 5128, 22446, 35312, 3419, 198, 220, 220, 220, 300, 1...
1.977099
131
__version__ = '3.1.0rc1' __license__ = "Apache Software License"
[ 834, 9641, 834, 796, 705, 18, 13, 16, 13, 15, 6015, 16, 6, 198, 834, 43085, 834, 796, 366, 25189, 4891, 10442, 13789, 1, 628 ]
2.64
25
n = int(input()) a, l, p = map(int, input().split()) if a >= n and l >= n and p >= n: print("S") else: print("N")
[ 77, 796, 493, 7, 15414, 28955, 201, 198, 64, 11, 300, 11, 279, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 201, 198, 361, 257, 18189, 299, 290, 300, 18189, 299, 290, 279, 18189, 299, 25, 201, 198, 220, 220, 220, 3601, 7203, ...
2.135593
59
"""---------------------------------------------------------------------------- This is the core of the parsing stage: *re_find comments will search for everything between the $$ and EOL *re_findDataLabels will search for everything between the start of a tag (##) and the start of the next tag ignoring the...
[ 37811, 10097, 10541, 198, 1212, 318, 262, 4755, 286, 262, 32096, 3800, 25, 198, 220, 220, 220, 1635, 260, 62, 19796, 3651, 481, 2989, 329, 2279, 1022, 262, 32382, 290, 412, 3535, 628, 220, 220, 220, 1635, 260, 62, 19796, 6601, 17822, ...
3.348958
192
# This is a lightweight ML agent trained by self-play. # After sharing this notebook, # we will add Hungry Geese environment in our HandyRL library. # https://github.com/DeNA/HandyRL # We hope you enjoy reinforcement learning! import pickle import bz2 import base64 import numpy as np import torch import torch.nn as ...
[ 198, 2, 770, 318, 257, 18700, 10373, 5797, 8776, 416, 2116, 12, 1759, 13, 198, 2, 2293, 7373, 428, 20922, 11, 198, 2, 356, 481, 751, 42939, 2269, 2771, 2858, 287, 674, 7157, 88, 7836, 5888, 13, 198, 2, 3740, 1378, 12567, 13, 785, ...
1.301759
465,262
# -*- coding: utf-8 -*- # # Copyright: (c) 2019, F5 Networks Inc. # 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 import os import json import pytest import sys if sys.version_info < (2...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 25, 357, 66, 8, 13130, 11, 376, 20, 27862, 3457, 13, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 357, 3826, 27975, 45761, 393, 3740, 1378, ...
2.930636
346
############################################################################ # # Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). # Contact: http://www.qt-project.org/legal # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # ...
[ 29113, 29113, 7804, 4242, 198, 2, 198, 2, 15069, 357, 34, 8, 1946, 7367, 544, 1345, 66, 290, 14, 273, 663, 22347, 32590, 444, 737, 198, 2, 14039, 25, 2638, 1378, 2503, 13, 39568, 12, 16302, 13, 2398, 14, 18011, 198, 2, 198, 2, 7...
3.48503
835
from ..open_oas.builder.builder import OasBuilder from unittest import TestCase from ..tests.schemas.schemas import PaginationSchema from ..open_oas.decorators import Deferred, path_parameter
[ 6738, 11485, 9654, 62, 78, 292, 13, 38272, 13, 38272, 1330, 440, 292, 32875, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 11485, 41989, 13, 1416, 4411, 292, 13, 1416, 4411, 292, 1330, 31525, 1883, 27054, 2611, 198, 6738, 11...
3.271186
59
from load import * from _2048 import _2048 from numpy import * from pybrain.datasets import ClassificationDataSet from pybrain.utilities import percentError from pybrain.tools.shortcuts import buildNetwork from pybrain.supervised.trainers import BackpropTrainer from pybrain.structure.modules ...
[ 6738, 3440, 1330, 1635, 198, 6738, 4808, 1238, 2780, 1330, 4808, 1238, 2780, 198, 6738, 299, 32152, 1330, 1635, 220, 198, 198, 6738, 12972, 27825, 13, 19608, 292, 1039, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1330, 4098...
2.434874
476
#!/usr/bin/env python3.8 from passwords import Credentials from login import accounts import random #create credentials func #delete ''' function to delete credentials & accounts ''' ''' save credentials & accounts ''' ''' search credentials ''' ''' check if contact exist ''' ''' display ''' if __name__ == '...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 23, 198, 6738, 21442, 1330, 327, 445, 14817, 198, 6738, 17594, 1330, 5504, 198, 11748, 4738, 198, 2, 17953, 18031, 25439, 198, 198, 2, 33678, 198, 7061, 6, 198, 8818, 284, 12233, ...
3.071429
112
from django.test import TestCase from django.test.client import RequestFactory from django.template import Template, Context from django.template.loader import render_to_string from .models import Author, Book expected_headers = ''' <tr> <th>Name</th><th>The title</th><th>Comment</th><th>Stars</th><th>AuthorID</th> <...
[ 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 19390, 22810, 198, 6738, 42625, 14208, 13, 28243, 1330, 37350, 11, 30532, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543,...
3.12037
108
#!/usr/bin/env python import sys import copy import rospy import tf_conversions import tf.transformations as transform import tf from math import pi import math import thread import os import random import geometry_msgs.msg from geometry_msgs.msg import Pose, PoseArray from trajectory_msgs.msg import JointTrajectory, J...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 4866, 198, 11748, 686, 2777, 88, 198, 11748, 48700, 62, 1102, 47178, 198, 11748, 48700, 13, 35636, 602, 355, 6121, 198, 11748, 48700, 198, 6738, 10688, 1330, 31...
1.826816
4,296
from workflow import web
[ 6738, 30798, 1330, 3992, 628, 198 ]
4.5
6
from setuptools import setup, find_packages setup( name='CosmOrc', version='0.1', include_package_data=True, packages=find_packages(), python_requires='>=3.6', install_requires=[ 'Click==7.0', 'numpy==1.16.2', 'pandas==0.24.2', 'pyaml==19.4.1', 'PySnooper...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 36734, 76, 5574, 66, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 2291, 62, 26495, 62, ...
1.761905
315
from ralph.admin.filters import DateListFilter
[ 6738, 374, 17307, 13, 28482, 13, 10379, 1010, 1330, 7536, 8053, 22417, 628 ]
3.692308
13
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 14468, 7804, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39410, 25, ...
3.096654
269
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_eda.ipynb (unless otherwise specified). __all__ = ['palet', 'seed_everything', 'print_competition_data', 'get_train_pivot', 'get_train_df', 'count_pct', 'get_classification_df', 'rle2mask', 'make_mask', 'mask2rle', 'plot_mask_image', 'plot_defected_image', ...
[ 2, 47044, 7730, 1677, 1137, 11617, 0, 8410, 5626, 48483, 0, 9220, 284, 4370, 25, 299, 1443, 14, 486, 62, 18082, 13, 541, 2047, 65, 357, 25252, 4306, 7368, 737, 198, 198, 834, 439, 834, 796, 37250, 18596, 316, 3256, 705, 28826, 62, ...
2.314432
3,915
import pickle import zlib from django.core.cache import cache from fila_da_creche.queries.dt_atualizacao import get_dt_atualizacao from rest_framework.response import Response from rest_framework.views import APIView from vaga_remanescente.queries.distrito import get_distritos from vaga_remanescente.queries.dr...
[ 11748, 2298, 293, 201, 198, 11748, 1976, 8019, 201, 198, 201, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 12940, 201, 198, 6738, 1226, 64, 62, 6814, 62, 7513, 2395, 13, 421, 10640, 13, 28664, 62, 265, 723, 528, 330, 5488, 13...
2.693989
183
import glob from flask import Markup SERVER_OPTIONS = [{'text': 'Local Host', 'value': '127.0.0.1'}, {'text': 'Test weved23962', 'value': '10.201.144.167'}, {'text': 'Stage weves31263', 'value': '10.50.8.130'}, {'text': 'Prod wevep31172', 'value': '10.48.164.198'} ...
[ 11748, 15095, 198, 6738, 42903, 1330, 2940, 929, 198, 198, 35009, 5959, 62, 3185, 51, 11053, 796, 685, 90, 6, 5239, 10354, 705, 14565, 14504, 3256, 705, 8367, 10354, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 5512, 198, 220, 220, 220, ...
2.299278
969
import streamlit as st from xkcd import xkcd_plot from shared import translate, LANGUAGE_DICT # Set page properties for the app st.set_page_config( page_title="Streamlit & XKCD", layout="wide", initial_sidebar_state="expanded", ) # Initialize the session states - f_list has functions and colors if 'f_list...
[ 11748, 4269, 18250, 355, 336, 198, 6738, 2124, 74, 10210, 1330, 2124, 74, 10210, 62, 29487, 198, 6738, 4888, 1330, 15772, 11, 406, 15567, 52, 11879, 62, 35, 18379, 198, 198, 2, 5345, 2443, 6608, 329, 262, 598, 198, 301, 13, 2617, 62...
2.243731
997
""" * Copyright (c) 2008, Flagon Slayer Brewery * All rights reserved. * * 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 * notice, this list of ...
[ 37811, 198, 9, 15069, 357, 66, 8, 3648, 11, 1610, 1840, 27076, 31003, 198, 9, 1439, 2489, 10395, 13, 198, 9, 198, 9, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 9, 17613, 11, 389, 10431, 2810, ...
3.463563
494
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-12-16 02:43 from __future__ import unicode_literals from django.db import migrations, models import oidc_provider.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 19, 319, 2864, 12, 1065, 12, 1433, 7816, 25, 3559, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.746269
67
""" This module masks faces using kpts already detected """ import numpy as np import argparse import cv2 #from RCN.preprocessing.tools import BGR2Gray from PIL import Image import h5py if __name__ == "__main__": #parser = argparse.ArgumentParser(description='Getting keypoint prediction\ # ...
[ 37811, 198, 1212, 8265, 20680, 6698, 1262, 479, 457, 82, 1541, 12326, 220, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 2, 6738, 13987, 45, 13, 3866, 36948, 13, 31391, 133...
2.020202
1,188
import cv2 as cv import numpy as np img = cv.imread('test.png') # 1920*1080h,s,v = cv.split(hsvimg) img = cv.resize(img, dsize=(1920, 1080), fx=1, fy=1, interpolation=cv.INTER_NEAREST) # hsv hsvimg = cv.cvtColor(img, cv.COLOR_BGR2HSV) lower_y = np.array([20, 43, 46]) upper_y = np.array([34, 255, 220]) mask = cv.inRa...
[ 11748, 269, 85, 17, 355, 269, 85, 198, 11748, 299, 32152, 355, 45941, 198, 198, 9600, 796, 269, 85, 13, 320, 961, 10786, 9288, 13, 11134, 11537, 198, 198, 2, 14062, 9, 24045, 71, 11, 82, 11, 85, 796, 269, 85, 13, 35312, 7, 11994...
1.993056
288
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-26 00:00 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2177, 12, 3023, 12, 2075, 3571, 25, 405, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738,...
2.791045
67