content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from geomdl import BSpline import numpy as np import math import ezdxf import burin.types
[ 6738, 4903, 296, 25404, 1330, 24218, 489, 500, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 304, 89, 67, 26152, 198, 198, 11748, 4356, 259, 13, 19199, 628, 628, 198 ]
2.878788
33
API_ROOT = 'http://localhost:6000' #'https://bookbeat.herokuapp.com' TOKEN_VALIDATION_ABS_ENDPOINT = API_ROOT + '/validate-token' REQ_USER_ID_KEY_NAME = 'id'
[ 17614, 62, 13252, 2394, 796, 705, 4023, 1378, 36750, 25, 43434, 6, 1303, 6, 5450, 1378, 2070, 12945, 13, 11718, 23063, 1324, 13, 785, 6, 201, 198, 201, 198, 10468, 43959, 62, 23428, 2389, 6234, 62, 32, 4462, 62, 1677, 6322, 46, 1239...
2.267606
71
from output.models.nist_data.list_pkg.date.schema_instance.nistschema_sv_iv_list_date_min_length_3_xsd.nistschema_sv_iv_list_date_min_length_3 import NistschemaSvIvListDateMinLength3 __all__ = [ "NistschemaSvIvListDateMinLength3", ]
[ 6738, 5072, 13, 27530, 13, 77, 396, 62, 7890, 13, 4868, 62, 35339, 13, 4475, 13, 15952, 2611, 62, 39098, 13, 77, 1023, 2395, 2611, 62, 21370, 62, 452, 62, 4868, 62, 4475, 62, 1084, 62, 13664, 62, 18, 62, 87, 21282, 13, 77, 1023,...
2.333333
102
#!/usr/bin/env python #********************************************************************* # Software License Agreement (BSD License) # # Copyright (c) 2011 andrewtron3000 # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 17174, 17174, 35625, 198, 2, 10442, 13789, 12729, 357, 21800, 13789, 8, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2813, 290, 1809, 83, 1313, 23924, 198, 2, 220, 1439, 2489, 10395, ...
3.424427
655
# coding:utf-8 import matplotlib.pyplot as plt import matplotlib as mpl # Def # HP # CriDef # CriDec # Dodge # Yuling if __name__ == "__main__": print mpl.matplotlib_fname() DEF_CONST = 120 HP_CONST = 432 CRI_DEF_CONST = 54 DODGE_CONST = 54 YULING_CONST = 54 fig = plt.figure() ax1 =...
[ 2, 19617, 25, 40477, 12, 23, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 2, 2896, 198, 2, 6574, 198, 198, 2, 327, 380, 7469, 198, 198, 2, 327, 380, 10707, 198, ...
1.854926
1,289
# Generated by Django 3.1.7 on 2021-03-09 16:06 from django.db import migrations, models import djrichtextfield.models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 2931, 1467, 25, 3312, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 7527, 5239, 3245, 13, 27530, 628 ]
3.025
40
"""Demo for latent factor model""" from __future__ import division import numpy as np import numpy.random as nr import matplotlib.pyplot as plt from IBPFM import IBPFM from utils.tracePlot import trace from utils.scaledimage import scaledimage N = 100 chain = 1000 K_finite = 6 # # read the keyboard input for the num...
[ 37811, 11522, 78, 329, 41270, 5766, 2746, 37811, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 25120, 355, 299, 81, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83...
2.223133
2,196
# ######################### Nin = 784 Nh_l = [100, 50] number_of_class = 10 Nout = number_of_class # DNN ######################## from keras import layers, models # ############################## import numpy as np from keras import datasets from keras.utils import np_utils (X_train...
[ 2, 220, 220, 220, 1303, 14468, 7804, 198, 36091, 796, 767, 5705, 198, 45, 71, 62, 75, 796, 685, 3064, 11, 2026, 60, 198, 17618, 62, 1659, 62, 4871, 796, 838, 198, 45, 448, 796, 1271, 62, 1659, 62, 4871, 198, 220, 198, 2, 220, ...
2.391304
368
""" The exceptions for the crosslang module """
[ 37811, 198, 464, 13269, 329, 262, 3272, 17204, 8265, 198, 37811, 198 ]
4
12
from sqlalchemy import Column, Sequence from sqlalchemy import Integer, String, Text from meirin.db.base_class import Base
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 45835, 198, 6738, 44161, 282, 26599, 1330, 34142, 11, 10903, 11, 8255, 198, 6738, 502, 47388, 13, 9945, 13, 8692, 62, 4871, 1330, 7308, 198 ]
3.84375
32
from .bn import ABN, InPlaceABN, InPlaceABNSync from .functions import ACT_RELU, ACT_LEAKY_RELU, ACT_ELU, ACT_NONE
[ 6738, 764, 9374, 1330, 9564, 45, 11, 554, 27271, 6242, 45, 11, 554, 27271, 6242, 8035, 13361, 198, 6738, 764, 12543, 2733, 1330, 11741, 62, 16448, 52, 11, 11741, 62, 2538, 10206, 56, 62, 16448, 52, 11, 11741, 62, 3698, 52, 11, 11741...
2.446809
47
import os import pkg_resources from mitba import cached_function
[ 11748, 28686, 198, 11748, 279, 10025, 62, 37540, 198, 198, 6738, 10255, 7012, 1330, 39986, 62, 8818, 628 ]
3.722222
18
import sys import lief import json import struct import os if __name__ == "__main__": if len(sys.argv) != 2: print("Usage: %s <binary>" % sys.argv[0]) else: main(sys.argv[1])
[ 11748, 25064, 198, 11748, 300, 2086, 198, 11748, 33918, 198, 11748, 2878, 198, 11748, 28686, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 8, 14512, 362,...
2.134021
97
"""Generic regex-based parser.""" import re from collections import deque from typing import Union, Any, List, Deque, Tuple, Dict, Callable from scoff.parsers.linematch import MatcherError, LineMatcher EMPTY_LINE = re.compile(b"\s*$") def _state_change_handler(self, old_state, new_state): """State chan...
[ 37811, 46189, 40364, 12, 3106, 30751, 526, 15931, 198, 198, 11748, 302, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 19720, 1330, 4479, 11, 4377, 11, 7343, 11, 1024, 4188, 11, 309, 29291, 11, 360, 713, 11, 4889, 540, 198, 6738, 39247...
2.540541
370
#!/usr/bin/python3 ''' @author: snellenbach Config sequence model ''' from enum import Enum, unique import re from cfg.model.RegModelWrapper import RegModelWrapper from cfg.model.Utils import MsgUtils from cfg.output.OutBuilder import OutBuilder as ob # ------- config model node classes def resolvePaths(self): ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 7061, 6, 198, 31, 9800, 25, 3013, 40635, 19496, 198, 198, 16934, 8379, 2746, 198, 7061, 6, 198, 6738, 33829, 1330, 2039, 388, 11, 3748, 198, 11748, 302, 198, 6738, 30218, 70, 13, 19849,...
2.626586
1,655
# Exerccio Python 097: Faa um programa que tenha uma funo chamada escreva(), # que receba um texto qualquer como parmetro e mostre uma mensagem com tamanho adaptvel. # Ex: # escreva(Ol, Mundo!) Sada: ...
[ 2, 1475, 263, 535, 952, 11361, 657, 5607, 25, 376, 7252, 23781, 1430, 64, 8358, 3478, 3099, 334, 2611, 1257, 78, 442, 321, 4763, 3671, 260, 6862, 22784, 220, 198, 2, 8358, 1407, 7012, 23781, 2420, 78, 4140, 10819, 401, 78, 1582, 416...
1.271293
634
#!/usr/bin/env python # vim: ai:sw=4:ts=4:sta:et:fo=croql # coding=utf-8 import pytest # Uncomment to run test in debug mode # import pudb; pudb.set_trace() from reinforcement_learning.dict_qtable import DictQTable from test_qaction import QActionTest from test_qstate import QStateTest """ DictQTable """
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 257, 72, 25, 2032, 28, 19, 25, 912, 28, 19, 25, 38031, 25, 316, 25, 6513, 28, 19915, 13976, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 12972, 9288, 198, 2, ...
2.719298
114
import tornado.web import tornado.gen import json import io import logging import motor from bson.objectid import ObjectId import mickey.userfetcher from mickey.basehandler import BaseHandler
[ 11748, 33718, 13, 12384, 198, 11748, 33718, 13, 5235, 198, 11748, 33918, 198, 11748, 33245, 198, 11748, 18931, 198, 198, 11748, 5584, 198, 198, 6738, 275, 1559, 13, 15252, 312, 1330, 9515, 7390, 198, 11748, 12314, 2539, 13, 7220, 34045, ...
3.75
52
from typing import Optional from dataclasses import dataclass from .InvoiceAppearance import InvoiceAppearance from .InvoiceCategory import InvoiceCategory from .PaymentMethod import PaymentMethod from .Source import Source
[ 6738, 19720, 1330, 32233, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 764, 19904, 2942, 48231, 1330, 10001, 2942, 48231, 198, 6738, 764, 19904, 2942, 27313, 1330, 10001, 2942, 27313, 198, 6738, 764, 19197, 434, 17410, ...
4.591837
49
# # GDELT data will be published to Kafka # Topics will be created - one topic per country using the Alpha-2 country codes # from kafka import KafkaProducer from datetime import datetime import pickle # # Initialize the producer # brokerlist='ec2-54-186-208-110.us-west-2.compute.amazonaws.com:9092,ec2-52-11-172-126.u...
[ 2, 198, 2, 27044, 3698, 51, 1366, 481, 307, 3199, 284, 46906, 198, 2, 34440, 481, 307, 2727, 532, 530, 7243, 583, 1499, 1262, 262, 12995, 12, 17, 1499, 12416, 198, 2, 198, 198, 6738, 479, 1878, 4914, 1330, 46906, 11547, 2189, 198, ...
2.365741
432
from src.infra.config import * from src.infra.db_entities import * from src.main.utils import hash_password db_conn = DBConnectionHandler() engine = db_conn.get_engine() Base.metadata.create_all(engine) with DBConnectionHandler() as db: try: new_user = Users(name='admin', role=1, email='admin@suzy.com', p...
[ 6738, 12351, 13, 10745, 430, 13, 11250, 1330, 1635, 198, 6738, 12351, 13, 10745, 430, 13, 9945, 62, 298, 871, 1330, 1635, 198, 6738, 12351, 13, 12417, 13, 26791, 1330, 12234, 62, 28712, 198, 198, 9945, 62, 37043, 796, 360, 2749, 261, ...
2.449074
216
import logging.config import random import re from collections import defaultdict from datetime import datetime from enum import Enum import requests from example.util import log_call from icq.bot import ICQBot, FileNotFoundException from icq.constant import TypingStatus from icq.filter import MessageFilter from icq....
[ 11748, 18931, 13, 11250, 198, 11748, 4738, 198, 11748, 302, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 11748, 7007, 198, 198, 6738, 1672, 13, 22602, 1330, 2...
2.220588
2,652
#! /usr/bin/python3 import curses import sys import subprocess if __name__ == "__main__": main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 43878, 198, 11748, 25064, 198, 11748, 850, 14681, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 628 ]
2.692308
39
import plotly.graph_objects as go import numpy as np def multi_trace(x, y, color, label=None, fig=None, insert_nans=False): """Create multiple traces that are associated with a single legend label Parameters ---------- x: array-like y: array-like color: str label: str, optional fig: g...
[ 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 5021, 62, 40546, 7, 87, 11, 331, 11, 3124, 11, 6167, 28, 14202, 11, 2336, 28, 14202, 11, 7550, 62, 77, 504, 28, 25101, 2599, 198...
1.924824
1,277
from django.conf import settings
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198 ]
4.125
8
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicab...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 2...
2.213191
7,111
from typing import List from please_conform import PleaseConform from structures import Interval
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 3387, 62, 1102, 687, 1330, 4222, 3103, 687, 198, 6738, 8573, 1330, 4225, 2100, 628 ]
4.5
22
from django import forms from .models import *
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 1635, 628, 628, 628, 628, 628, 198 ]
3.222222
18
# -*- coding: utf-8 -*- """ Created on Mon Mar 2 16:43:45 2020 @author: micha """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from MD_Analysis import Angle_Calc from pydmd import DMD pdb="pdbs/WT_295K_200ns_50ps_0_run.pdb" #Extract phi, psi angles A...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 2892, 1526, 220, 362, 1467, 25, 3559, 25, 2231, 12131, 201, 198, 201, 198, 31, 9800, 25, 285, 488, 64, 201, 198, 37811, 201, 198, 2...
1.966963
787
# Generated by Django 4.0.1 on 2022-02-18 10:26 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 16, 319, 33160, 12, 2999, 12, 1507, 838, 25, 2075, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 7295, 13, 12102, 2024, 198, 6738, 42625, 14208, 13, 994...
3.065574
61
from telegram.ext import Updater, CommandHandler import re import os import logging from model import Anime from gateway import * if __name__ == '__main__': main()
[ 6738, 573, 30536, 13, 2302, 1330, 3205, 67, 729, 11, 9455, 25060, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 18931, 198, 198, 6738, 2746, 1330, 27812, 198, 6738, 24308, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
3.333333
51
from dataclasses import dataclass, field from typing import Optional from xml.etree.ElementTree import QName from .t_event_definition import TEventDefinition __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 32233, 198, 6738, 35555, 13, 316, 631, 13, 20180, 27660, 1330, 1195, 5376, 198, 6738, 764, 83, 62, 15596, 62, 46758, 1330, 309, 9237, 36621, 198, 198, 8...
3.083333
72
import html from googletrans import Translator from slackbot.bot import default_reply, respond_to, listen_to translator = Translator()
[ 11748, 27711, 198, 6738, 467, 519, 1616, 26084, 1330, 3602, 41880, 198, 6738, 30740, 13645, 13, 13645, 1330, 4277, 62, 47768, 11, 3031, 62, 1462, 11, 6004, 62, 1462, 198, 198, 7645, 41880, 796, 3602, 41880, 3419, 198 ]
3.578947
38
from . import database
[ 6738, 764, 1330, 6831 ]
5.5
4
import collections import os from pathlib import Path from typing import List import streamlit as st from sentence_transformers import SentenceTransformer from search.engine import Engine, Result from search.model import load_minilm_model from search.utils import get_memory_usage os.environ["TOKENIZERS_PARALLELISM"]...
[ 11748, 17268, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 4269, 18250, 355, 336, 198, 6738, 6827, 62, 35636, 364, 1330, 11352, 594, 8291, 16354, 198, 198, 6738, 2989, 13, 18392, ...
2.936639
363
from tkinter import * if __name__=="__main__": root = Tk() myapp = EditBoxWindow(root)
[ 6738, 256, 74, 3849, 1330, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 6808, 796, 309, 74, 3419, 198, 220, 220, 220, 616, 1324, 796, 5312, 14253, 277...
2.170213
47
import psycopg from flask import Flask, render_template from flask_compress import Compress app = Flask(__name__) DATABASE_URL = "" Compress(app)
[ 11748, 17331, 22163, 70, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 5589, 601, 1330, 3082, 601, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 35, 1404, 6242, 11159, 62, 21886, 796, 13538, 198, ...
3.083333
48
import re input_lines = [] with open('input.txt') as f: input_lines = f.readlines() input_lines = list(filter(None, input_lines)) bags = {} for i in input_lines: bag, contents = re.search(r'^((?:[\w]+ ){2})bags contain ([\S\s]+)', i).groups() if contents.strip() == "no other bags.": bag = bag.strip() bags[ba...
[ 11748, 302, 198, 198, 15414, 62, 6615, 796, 17635, 198, 4480, 1280, 10786, 15414, 13, 14116, 11537, 355, 277, 25, 198, 197, 15414, 62, 6615, 796, 277, 13, 961, 6615, 3419, 198, 198, 15414, 62, 6615, 796, 1351, 7, 24455, 7, 14202, 11...
2.457413
317
from datetime import datetime, timedelta from io import BytesIO from pathlib import Path from time import altzone, daylight, localtime, timezone from pydrive.auth import GoogleAuth, AuthenticationRejected from pydrive.drive import GoogleDrive as Drive, GoogleDriveFile as File from requests import patch from .auth impor...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 640, 1330, 5988, 11340, 11, 26010, 11, 1957, 2435, 11, 640, 11340, 198, 6738, 279, 5173, 1159...
3.357143
182
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import pkg_resources import pytest import string import yaml definition_yamls = { fn for fn in pkg_resources.resource_listdir("dials_data", "definitions") if fn.endswith(".yml") } hashinfo_yamls = { fn for fn...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 279, 10025, 62, 37540, 198, 11748, 12972, 9288, 198, 11748, 4731, 198...
2.533742
163
# -*- coding: utf-8 -*- # This program is designed to create XML sidecar files for harvesting metadata into Mediaflux. # # Author: Jay van Schyndel # Date: 02 May 2017. # # Significant modifications done by: Daniel Baird # Date: 2018 and early 2019 # # Scenario. Metadata is stored in an MS Excel file in various colu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 1430, 318, 3562, 284, 2251, 23735, 1735, 7718, 3696, 329, 34102, 20150, 656, 6343, 69, 22564, 13, 198, 2, 198, 2, 6434, 25, 9180, 5719, 3059, 88, 358, 4...
1.865496
9,509
from django.shortcuts import render from django.shortcuts import HttpResponse from .forms import FoodFitnessForm from django.contrib.auth.models import User # function to test with # function to create new user # function to confirm new user
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 367, 29281, 31077, 198, 6738, 764, 23914, 1330, 7318, 37, 3659, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, ...
3.772727
66
# Conta somente nmeros pares for c in range(2, 51, 2): print(c, end=' ') print("Acabou!")
[ 2, 2345, 64, 3870, 21872, 299, 647, 418, 279, 3565, 220, 198, 198, 1640, 269, 287, 2837, 7, 17, 11, 6885, 11, 362, 2599, 198, 220, 220, 220, 3601, 7, 66, 11, 886, 11639, 705, 8, 198, 4798, 7203, 12832, 397, 280, 2474, 8, 628 ]
2.155556
45
from __future__ import print_function # A script to help you with manipulating CSV-files. This is especially necessary when dealing with # CSVs that have more than 65536 lines because those can not (yet) be opened in Excel or Numbers. # This script works with two files from ourworldindata.org: # https://ourworldindat...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 2, 317, 4226, 284, 1037, 345, 351, 29349, 44189, 12, 16624, 13, 770, 318, 2592, 3306, 618, 7219, 351, 220, 198, 2, 9429, 23266, 326, 423, 517, 621, 45021, 2623, 3951, 780, 883...
2.653482
1,795
go_to_tender_page = "Live Tenders" search_bar = "#sr_buyer_chzn > a > span" all_dept_names = "#sr_buyer_chzn > div > ul > li:nth-of-type(n+1)" search_button = '#frm_sr > div.actionBtn > input[type="button"]:nth-child(1)' type_name = '#sr_buyer_chzn > div > div > input[type="text"]' scroll_down = "window.scrollTo(0, doc...
[ 2188, 62, 1462, 62, 83, 2194, 62, 7700, 796, 366, 18947, 309, 7338, 1, 198, 12947, 62, 5657, 796, 25113, 27891, 62, 17846, 263, 62, 354, 47347, 1875, 257, 1875, 11506, 1, 198, 439, 62, 2934, 457, 62, 14933, 796, 25113, 27891, 62, ...
2.443652
701
""" Module serializes `Profile` model :generates JSON from fields in `Profile` model """ import logging from rest_framework import serializers from authors.apps.authentication.serializers import UserSerializer from authors.apps.profiles.models import Profile, Following logger = logging.getLogger(__name__) ...
[ 37811, 198, 220, 220, 220, 19937, 11389, 4340, 4600, 37046, 63, 2746, 198, 220, 220, 220, 1058, 8612, 689, 19449, 422, 7032, 287, 4600, 37046, 63, 2746, 198, 37811, 198, 11748, 18931, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198,...
3.659091
88
from django import forms import cass
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 11748, 30606, 628 ]
3.9
10
import os # os.environ["OMP_NUM_THREADS"] = "16" import logging logging.basicConfig(filename=snakemake.log[0], level=logging.INFO) import pandas as pd import numpy as np # seak imports from seak.data_loaders import intersect_ids, EnsemblVEPLoader, VariantLoaderSnpReader, CovariatesLoaderCSV from seak.scoretest impo...
[ 11748, 28686, 198, 2, 28686, 13, 268, 2268, 14692, 2662, 47, 62, 41359, 62, 4221, 15675, 50, 8973, 796, 366, 1433, 1, 198, 198, 11748, 18931, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 34345, 28, 16184, 539, 15883, 13, 6404, 58, 15,...
2.40763
3,329
#!/bin/env python # 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 # d...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 2...
2.815965
451
from abc import ABC, abstractmethod # This time, PizzaStore is abstract nyPizzaStore = NYPizzaStore() chPizzaStore = ChicagoPizzaStore() nyPizzaStore.orderPizza('Greek') print("\n") chPizzaStore.orderPizza('Cheese')
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 628, 628, 628, 198, 198, 2, 770, 640, 11, 20952, 22658, 318, 12531, 628, 628, 198, 3281, 47, 9990, 22658, 796, 6645, 47, 9990, 22658, 3419, 198, 354, 47, 9990, 22658, 796, 4842, 47, 9990,...
2.923077
78
from flask import Flask from flask_sqlalchemy import SQLAlchemy db_url = 'postgresql://postgres:postgres@localhost:5432/postgres' db = SQLAlchemy()
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 628, 198, 9945, 62, 6371, 796, 705, 7353, 34239, 13976, 1378, 7353, 34239, 25, 7353, 34239, 31, 36750, 25, 4051, 2624, 14, 7353, 34239, 6, 198,...
3.145833
48
#!/usr/bin/python # -*- coding: utf8 -*- # 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 i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, ...
2.424819
1,104
"""Describe how you could use a single array to implement three stacks."""
[ 37811, 24564, 4892, 703, 345, 714, 779, 257, 2060, 7177, 284, 3494, 1115, 24285, 526, 15931, 198 ]
4.411765
17
__author__ = 'chenshuai' cast = ["Cleese", "Plain", "Jones", "Idle"] print cast print len(cast) print cast[1] cast.append("Gilliam") print cast cast.pop() print cast cast.extend(["Gilliam", "Chapman"]) print cast cast.remove("Chapman") print cast cast.insert(0, "Chapman") print cast movies = ["The Holy Grail", "The L...
[ 834, 9800, 834, 796, 705, 6607, 1477, 84, 1872, 6, 198, 198, 2701, 796, 14631, 34349, 2771, 1600, 366, 3646, 391, 1600, 366, 25784, 1600, 366, 7390, 293, 8973, 198, 4798, 3350, 198, 4798, 18896, 7, 2701, 8, 198, 4798, 3350, 58, 16, ...
2.413897
1,655
from SQLPythonGenerator import SQLPythonGenerator
[ 6738, 16363, 37906, 8645, 1352, 1330, 16363, 37906, 8645, 1352, 628 ]
4.636364
11
from toee import *
[ 6738, 284, 1453, 1330, 1635 ]
3.6
5
from OMIEData.Downloaders.general_omie_downloader import GeneralOMIEDownloader
[ 198, 6738, 440, 8895, 1961, 1045, 13, 10002, 364, 13, 24622, 62, 296, 494, 62, 15002, 263, 1330, 3611, 2662, 19767, 593, 29356, 628 ]
3.375
24
from struct import unpack from os.path import getsize # out def un_sub_400CC0() -> tuple: """ :return: , out """ # out outFilePath = "./out" outLength = getsize(outFilePath) with open(outFilePath, 'rb') as outFile: # B = unsigned char return unpack(''.join(['B' * ou...
[ 6738, 2878, 1330, 555, 8002, 198, 6738, 28686, 13, 6978, 1330, 3011, 1096, 628, 198, 2, 220, 220, 503, 220, 220, 220, 198, 4299, 555, 62, 7266, 62, 7029, 4093, 15, 3419, 4613, 46545, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 2...
1.658544
3,160
from textblob import TextBlob from textblob import Word import nltk nltk.download('punkt') nltk.download('wordnet') #getting correct sentences words = ['Machin','Learnin','corect'] corrected_words = [] for i in words: corrected_words.append(TextBlob(i)) print('worng words :', words) print('Corrected words :') for...
[ 6738, 2420, 2436, 672, 1330, 8255, 3629, 672, 198, 6738, 2420, 2436, 672, 1330, 9678, 198, 11748, 299, 2528, 74, 198, 77, 2528, 74, 13, 15002, 10786, 30354, 83, 11537, 198, 77, 2528, 74, 13, 15002, 10786, 4775, 3262, 11537, 628, 198, ...
2.982262
451
import os from os import path old_sample_rate = float(input("What was the original sample rate? ")) new_sample_rate = float(input("What is the new sample rate? ")) for file in os.listdir(os.getcwd()): name = file.rsplit(".",1)[0] if file.rsplit(".",1)[-1] == "opus" and path.exists(name + ".opus.txt"): ...
[ 11748, 28686, 198, 6738, 28686, 1330, 3108, 198, 198, 727, 62, 39873, 62, 4873, 796, 12178, 7, 15414, 7203, 2061, 373, 262, 2656, 6291, 2494, 30, 366, 4008, 198, 3605, 62, 39873, 62, 4873, 796, 12178, 7, 15414, 7203, 2061, 318, 262, ...
2.07947
453
from django import template from django.conf import settings from django.template.loader import render_to_string from djblets.util.decorators import basictag from reviewboard.extensions.hooks import DiffViewerActionHook, \ NavigationBarHook, \ ...
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 6738, 42625, 903, 912, 13, 22602, 13, 12501, 273, 2024, 1330, 1615, 713...
2.131466
464
from abc import ABC, abstractmethod from typing import Dict, Any import tensorflow as tf import numpy as np from opengnn.utils.data import diverse_batch, batch_and_bucket_by_size from opengnn.utils.data import filter_examples_by_size, truncate_examples_by_size
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 201, 198, 6738, 19720, 1330, 360, 713, 11, 4377, 201, 198, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 6738, 1280, 4593, 77,...
2.864583
96
from pathlib import Path from .ast import NodeVisitor
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 764, 459, 1330, 19081, 15854, 2072, 628 ]
3.733333
15
import imp import os from functools import wraps from ansible.errors import AnsibleAuthenticationFailure from ansible.plugins import connection # HACK: workaround to import the SSH connection plugin _ssh_mod = os.path.join(os.path.dirname(connection.__file__), "ssh.py") _ssh = imp.load_source("_ssh", _ssh_mod) # Us...
[ 11748, 848, 198, 11748, 28686, 198, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 9093, 856, 13, 48277, 1330, 28038, 856, 47649, 3299, 50015, 198, 6738, 9093, 856, 13, 37390, 1330, 4637, 628, 198, 2, 367, 8120, 25, 46513, 284, ...
2.866485
367
import os import json
[ 11748, 28686, 198, 11748, 33918, 628, 198 ]
3.428571
7
""" This file aims to simulate the BelousovZhabotinsky reaction, is a chemical mixture which, when heated, undergoes a series of reactions that cause the chemical concentrations in the mixture to oscillate between two extremes (x, y). """ import numpy as np import matplotlib.pyplot as plt ## Constants a = 1 b = 3 x...
[ 37811, 198, 1212, 2393, 12031, 284, 29308, 262, 3944, 516, 709, 57, 5976, 313, 19870, 6317, 11, 220, 198, 271, 257, 5931, 11710, 543, 11, 618, 16968, 11, 17777, 274, 257, 2168, 198, 1659, 12737, 326, 2728, 262, 5931, 14587, 287, 262, ...
2.092411
1,634
import pysolr from django.conf import settings from django.core.management import call_command from django.test import TestCase from haystack import indexes from haystack.sites import SearchSite from core.models import MockModel
[ 11748, 279, 893, 349, 81, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 27678, 25558, 1330, 39199, 19...
3.915254
59
""" Copyright 2020 Jackpine Technologies Corporation 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 ...
[ 37811, 198, 220, 220, 15069, 12131, 3619, 23908, 21852, 10501, 628, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 26...
3.003515
569
from __future__ import print_function import json import boto3 print('Loading function') s3 = boto3.client('s3') bucket_of_interest = "secretcatpics" # For a PutObjectAcl API Event, gets the bucket and key name from the event # If the object is not private, then it makes the object private by making a # PutObjectA...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33918, 198, 11748, 275, 2069, 18, 198, 198, 4798, 10786, 19031, 2163, 11537, 198, 198, 82, 18, 796, 275, 2069, 18, 13, 16366, 10786, 82, 18, 11537, 198, 198, 27041, 316, ...
3.477941
136
import unittest from apiclient.errors import HttpError from google.appengine.ext import testbed, ndb from mock import patch, Mock from src.commons.big_query.copy_job_async.copy_job.copy_job_request \ import CopyJobRequest from src.commons.big_query.copy_job_async.copy_job.copy_job_service \ import CopyJobServ...
[ 11748, 555, 715, 395, 198, 198, 6738, 2471, 291, 75, 1153, 13, 48277, 1330, 367, 29281, 12331, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 1332, 3077, 11, 299, 9945, 198, 6738, 15290, 1330, 8529, 11, 44123, 198, 198, 6738, 1235...
2.996283
269
import cv2 import numpy as np import matplotlib.pyplot as plt image = np.flip(cv2.imread('../img/dog_muffin.jpg'), axis=2) mask = np.zeros(image.shape[:2], dtype="uint8") cv2.rectangle(mask, (90, 120), (160, 190), 255, -1) masked = cv2.bitwise_and(image, image, mask=mask) plt.figure(figsize=(20, 10)) plt.imshow(np.fl...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 9060, 796, 45941, 13, 2704, 541, 7, 33967, 17, 13, 320, 961, 10786, 40720, 9600, 14, 9703, 62, 76, 1648,...
2.267045
176
from __future__ import annotations from typing import Any, Dict, List from abc import ABC, abstractmethod from datetime import datetime from collections import namedtuple from lazy_property import LazyProperty from .sqlalchemy_tables import ObjectDefinition import wysdom from jetavator.services import ComputeServ...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 17268, 1330, 3706, 83, 29291, ...
3.59854
137
from .abstract import Kernel from .auto import AutoKernel from .numpy import *
[ 6738, 764, 397, 8709, 1330, 32169, 198, 6738, 764, 23736, 1330, 11160, 42, 7948, 198, 6738, 764, 77, 32152, 1330, 1635, 198 ]
3.590909
22
from django import forms from .models import Announcement # from .models import Role from .models import Assignment from .models import CourseMaterial from .models import Grade from .models import StudentUploadFile from .models import Syllabus from .models import Assistant from django.forms import ClearableFileInput #...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 43470, 434, 198, 2, 422, 764, 27530, 1330, 20934, 198, 6738, 764, 27530, 1330, 50144, 198, 6738, 764, 27530, 1330, 20537, 17518, 198, 6738, 764, 27530, 1330, 22653, 198, 6738, ...
3.64
150
# # plots.py -- classes for plots added to Ginga canvases. # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import sys import numpy as np from ginga.canvas.CanvasObject import (CanvasObjectBase, _color, register_canva...
[ 2, 198, 2, 21528, 13, 9078, 1377, 6097, 329, 21528, 2087, 284, 26169, 64, 39614, 1386, 13, 198, 2, 198, 2, 770, 318, 1280, 12, 10459, 3788, 11971, 739, 257, 347, 10305, 5964, 13, 198, 2, 4222, 766, 262, 2393, 38559, 24290, 13, 141...
2.478088
251
import csv import os import sys from collections import defaultdict PERSONS_OUTPUT_FILENAME_TEMPLATE = "persons_data_%s.csv" DISQUALIFICATIONS_FILENAME_TEMPLATE = "disqualifications_data_%s.csv" EXEMPTIONS_FILENAME_TEMPLATE = 'exemptions_data_%s.csv' SNAPSHOT_HEADER_IDENTIFIER = "DISQUALS" TRAILER_RECORD_IDENTIFIER = ...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 47, 4877, 19213, 62, 2606, 7250, 3843, 62, 46700, 1677, 10067, 62, 51, 3620, 6489, 6158, 796, 366, 19276, 684, 62, 7890, 62, 4, 82...
2.263581
497
from os import makedirs, errno from os.path import exists, join import numpy as np from matplotlib import pyplot as plt import itertools from sklearn import preprocessing def makeDir(path): ''' To create output path if doesn't exist see: https://stackoverflow.com/questions/273192/how-can-i-create...
[ 6738, 28686, 1330, 285, 4335, 17062, 11, 11454, 3919, 201, 198, 6738, 28686, 13, 6978, 1330, 7160, 11, 4654, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 201, 198, 11748, ...
2.203936
1,118
import os import torch import torch.utils.data from PIL import Image import sys import numpy as np if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: import xml.etree.ElementTree as ET from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.bound...
[ 11748, 28686, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 25064, 13, 9641, 62, 10951, 58, 15, 60, 6624, 362, 2...
3.04386
114
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 5816, 12, 42334, 416, 383, 2059, 286, 21105, 198, 2, 2638, 1378, 2503, 13, 84, 80, 13, 15532, 13, 559, 198, 2, 198, 2, 21087, 7320, 25, 21105, 11, 4505, 198, 2, ...
3.71547
362
""" :copyright: (c)Copyright 2013, Intel Corporation All Rights Reserved. The source code contained or described here in and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and lic...
[ 37811, 628, 198, 25, 22163, 4766, 25, 357, 66, 8, 15269, 2211, 11, 8180, 10501, 1439, 6923, 33876, 13, 198, 464, 2723, 2438, 7763, 393, 3417, 994, 287, 290, 477, 4963, 3519, 198, 1462, 262, 2723, 2438, 5855, 17518, 4943, 389, 6898, ...
4.171512
344
''' Austin Richards 4/14/21 excel_to_csv.py automates the conversion of many xlsx files into csv files. This program names the csv file in the format <filename>_<sheetname>.csv ''' import logging import os, csv, openpyxl from pathlib import Path from openpyxl.utils import get_column_letter logging.basicConfig(level=...
[ 7061, 6, 198, 40245, 14743, 604, 14, 1415, 14, 2481, 198, 198, 1069, 5276, 62, 1462, 62, 40664, 13, 9078, 3557, 689, 262, 11315, 286, 867, 2124, 7278, 87, 198, 16624, 656, 269, 21370, 3696, 13, 220, 770, 1430, 3891, 262, 269, 21370,...
2.597902
286
# Checks for an XXX error ### @replace "XXX", ('absolute/relative' if has_rel else 'absolute') # with an error of at most 1e-XXX ### @replace "XXX", prec # Don't edit this file. Edit real_abs_rel_template.py instead, and then run _real_check_gen.py # Oh, actually, you're editing the correct file. Go on. ...
[ 2, 47719, 329, 281, 27713, 4049, 44386, 2488, 33491, 366, 43145, 1600, 19203, 48546, 14, 43762, 6, 611, 468, 62, 2411, 2073, 705, 48546, 11537, 198, 2, 351, 281, 4049, 286, 379, 749, 352, 68, 12, 43145, 44386, 2488, 33491, 366, 43145,...
2.591781
365
import time import os import subprocess import threading
[ 11748, 640, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 4704, 278 ]
4.307692
13
import os from setuptools import setup readme = open('README.md').read() requirements = ['click', 'feedparser', 'beautifulsoup4'] setup( name = "whatsnew", version = "0.13", author = "Patrick Tyler Haas", author_email = "patrick.tyler.haas@gmail.com", description = ("A lightweight, convenient too...
[ 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 961, 1326, 796, 1280, 10786, 15675, 11682, 13, 9132, 27691, 961, 3419, 198, 198, 8897, 18883, 796, 37250, 12976, 3256, 705, 12363, 48610, 3256, 705, 40544, 4135, 82, 10486,...
2.524548
387
import argparse import logging import sys from timeswitch.switch.manager import SwitchManager from timeswitch.app import setup_app from timeswitch.api import setup_api from timeswitch.model import setup_model # ###################################### # # parsing commandline args # #####################################...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 1661, 42248, 13, 31943, 13, 37153, 1330, 14645, 13511, 198, 6738, 1661, 42248, 13, 1324, 1330, 9058, 62, 1324, 198, 6738, 1661, 42248, 13, 15042, 1330, 9058, 62, ...
4.153153
111
import sys, os, time from pathlib import Path import pickle import datetime as dt import glob import h5py import numpy as np from matplotlib import pyplot as plt from multiprocessing import Pool from functools import partial import torch from torchvision import datasets, transforms def _get_tstamp_string(tstamp_...
[ 11748, 25064, 11, 28686, 11, 640, 220, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 2298, 293, 198, 11748, 4818, 8079, 355, 288, 83, 198, 11748, 15095, 198, 198, 11748, 289, 20, 9078, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6...
2.673729
236
from django.views.generic import DeleteView, DetailView, UpdateView, CreateView from django.forms.models import BaseInlineFormSet from django.forms.models import inlineformset_factory from braces.views import LoginRequiredMixin, UserFormKwargsMixin, SelectRelatedMixin from ..models import Letter, Attachment from ..form...
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 23520, 7680, 11, 42585, 7680, 11, 10133, 7680, 11, 13610, 7680, 198, 6738, 42625, 14208, 13, 23914, 13, 27530, 1330, 7308, 818, 1370, 8479, 7248, 198, 6738, 42625, 14208, 13, 23914, 13, 27...
3.135542
332
import numpy as np from pychunkedgraph.backend import chunkedgraph, chunkedgraph_utils import cloudvolume def initialize_chunkedgraph(cg_table_id, ws_cv_path, chunk_size, cg_mesh_dir, fan_out=2, instance_id=None, project_id=None): """ Initalizes a chunkedgraph on BigTable :param ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 354, 2954, 276, 34960, 13, 1891, 437, 1330, 16058, 276, 34960, 11, 16058, 276, 34960, 62, 26791, 198, 198, 11748, 6279, 29048, 628, 198, 4299, 41216, 62, 354, 2954, 276, 34960, 7, 66, 7...
2.156863
816
#!/usr/bin/env python3 from guizero import App, Text, Slider, Combo, PushButton, Box, Picture pause = True app = App(title="Brew GUI", width=1280, height=768, layout="grid") vertPad = Picture(app, image="blank_vert.gif", grid=[0,0]) hltBox = Box(app, layout="grid", grid=[1,0]) hltPad = Picture(hltBox, image="blank.g...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 915, 528, 3529, 1330, 2034, 11, 8255, 11, 3454, 1304, 11, 34257, 11, 23691, 21864, 11, 8315, 11, 17741, 198, 198, 32125, 796, 6407, 198, 198, 1324, 796, 2034, 7, 7839, 2625...
2.505869
852
from click.testing import CliRunner from resolos.interface import ( res_remote_add, res_remote_remove, res_init, res_sync, res ) from resolos.remote import read_remote_db, list_remote_ids, delete_remote from tests.common import verify_result import logging from pathlib import Path import os log...
[ 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 6738, 581, 349, 418, 13, 39994, 1330, 357, 198, 220, 220, 220, 581, 62, 47960, 62, 2860, 11, 198, 220, 220, 220, 581, 62, 47960, 62, 28956, 11, 198, 220, 220, 220, 581, 62, 15003,...
2.717791
163
# -*- coding: utf-8 -*- from builtins import * from model.group import Group import pytest import allure #@pytest.mark.parametrize("group", testdata, ids=[repr(x) for x in testdata])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 3170, 1040, 1330, 1635, 198, 6738, 2746, 13, 8094, 1330, 4912, 198, 11748, 12972, 9288, 198, 11748, 477, 495, 198, 198, 2, 31, 9078, 9288, 13, 4102, 13, 17143, 3...
2.7
70
import urllib3 import lxml.etree as etree import lxml.objectify as objectify # Declare IP Address ip_address = "192.168.0.123" # Generate XML and XSD Validation genius_schema = etree.XMLSchema(file='Genius.xsd') xml_parser = objectify.makeparser(schema=genius_schema) # Send Status Request genius_comm = urllib3.PoolMan...
[ 11748, 2956, 297, 571, 18, 198, 11748, 300, 19875, 13, 316, 631, 355, 2123, 631, 198, 11748, 300, 19875, 13, 15252, 1958, 355, 2134, 1958, 198, 198, 2, 16691, 533, 6101, 17917, 198, 541, 62, 21975, 796, 366, 17477, 13, 14656, 13, 15...
2.941406
256
#!/usr/bin/env python __description__ =\ """ editNames.py Goes through a file looking for a set of strings, replacing each one with a specific counterpart. The strings are defined in a delimited text file with columns naemd "key" and "value". """ __author__ = "Michael J. Harms" __date__ = "091205" __usage__ = "editT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 834, 11213, 834, 796, 59, 198, 37811, 198, 19312, 36690, 13, 9078, 198, 198, 38, 3028, 832, 257, 2393, 2045, 329, 257, 900, 286, 13042, 11, 13586, 1123, 530, 351, 257, 220, 198, 1142...
2.452069
1,909
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """Test docx2python.docx_context.py author: Shay Hill created: 6/26/2019 """ import os import shutil import zipfile from collections import defaultdict from typing import Any, Dict import pytest from docx2python.docx_context import ( collect_docProps, collect_nu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 4808, 9, 62, 19617, 25, 3384, 69, 12, 23, 4808, 9, 62, 198, 37811, 14402, 2205, 87, 17, 29412, 13, 15390, 87, 62, 22866, 13, 9078, 198, 198, 9800, 25, 34760, 3327, 198, 25...
2.43617
658
import transporters.approximator.runner as ra from data.parameters_names import ParametersNames as Parameters def transport(approximator, particles): """matrix in format returned by data.particles_generator functions""" segments = dict() segments["start"] = particles matrix_for_transporter = partic...
[ 11748, 1007, 1819, 1010, 13, 1324, 13907, 320, 1352, 13, 16737, 355, 2179, 198, 6738, 1366, 13, 17143, 7307, 62, 14933, 1330, 40117, 36690, 355, 40117, 628, 198, 4299, 4839, 7, 1324, 13907, 320, 1352, 11, 13166, 2599, 198, 220, 220, 2...
2.732
250
from .embeddings import BertEmbeddings from .encoder import BertEncoder from .pooler import Pooler from .pertrained_hooks import pretrained_bert_hook, pretrained_bert_classifier_hook
[ 6738, 764, 20521, 67, 654, 1330, 22108, 31567, 6048, 654, 198, 6738, 764, 12685, 12342, 1330, 22108, 27195, 12342, 198, 6738, 764, 7742, 263, 1330, 19850, 263, 198, 6738, 764, 525, 35311, 62, 25480, 82, 1330, 2181, 13363, 62, 4835, 62, ...
3.45283
53
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-06-26 20:22 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb 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, 1157, 13, 940, 319, 2864, 12, 3312, 12, 2075, 1160, 25, 1828, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.757143
70
import example_problem.analyst.dialogue_functions as analyst import example_problem.engineer.dialogue_functions as engineer import example_problem.critic.dialogue_functions as critic
[ 11748, 1672, 62, 45573, 13, 272, 21470, 13, 38969, 5119, 62, 12543, 2733, 355, 12499, 198, 11748, 1672, 62, 45573, 13, 18392, 263, 13, 38969, 5119, 62, 12543, 2733, 355, 11949, 198, 11748, 1672, 62, 45573, 13, 22213, 291, 13, 38969, 5...
3.795918
49
#!/usr/bin/env python3 # Copyright 2021 Alibaba Group Holding Limited. # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 2, 15069, 33448, 41992, 4912, 31703, 15302, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, ...
3.671069
1,590
import graph.bfs as bfs import graph.dfs as dfs
[ 11748, 4823, 13, 65, 9501, 355, 275, 9501, 198, 11748, 4823, 13, 7568, 82, 355, 288, 9501 ]
2.764706
17