text
stringlengths
3
1.05M
CKEDITOR.plugins.add('closed', { init: function (editor) { editor.ui.addButton('Closed', { label: 'Fechar', command: 'closed', icon: this.path + 'cancel.gif', toolbar: 'Fechar' }); ...
from tir import Webapp import unittest class JURA219(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup('SIGAJURI','24/10/2018','T1','D MG 01 ','76') def test_JURA219_CT001(self): self.oHelper.Program('JURA219') self.oHelper.SetButton("Perguntas") self.oHel...
from datetime import datetime from enum import Enum from typing import Optional from pydantic import BaseModel class TaskStatus(str, Enum): DONE = "done" IN_PROGRESS = "in_progress" SELECTED_FOR_DEVELOPMENT = "selected_for_development" class TaskPriority(str, Enum): MINOR = "minor" NORMAL = "no...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 import functools import hashlib import httplib import urllib import json import glance.openstack.common.log as logging from glance.openstack.common import timeutils LOG = logging.getLogger(__name__) IMAGES_CACHE = [] def log_call(func): @functools.wraps(func) de...
import Typography from 'typography' import theme from 'typography-theme-fairy-gates' import { css } from 'styled-components' import { theme as defaultTheme } from '../utils/theme/theme'; theme.overrideThemeStyles = () => ({ h1: { color: defaultTheme.colors.header, }, h2: { color: defaultTheme.colors.hea...
// @flow export type CamState = { primaryMapState?: Object, primaryMapComponent?: Object, alertMapState?: Object, alertMapComponent?: Object, searchResults: Array<Object> } const initialCamState: CamState = { searchResults: [] } const cam = (state: CamState = initialCamState, action: Object): CamState => { ...
import aiohttp import asyncio async def download(session, i): payload = { 'username': f'并发测试用户_{i:05}', 'email': f'binfa_{i:05}@binfa.com', 'password': '123', 'individual': 'individual' } await session.post('729222.iterator-traits.com/auth/register', json=payload) async d...
#!/usr/bin/env python # coding: utf-8 """ This script has to be executed after hi_freq_data_to_csv.py and get_interval.py have succesfully run. This script should be called with 1 (or 2) arguments. The 1st mandatory argument is the ABSOLUTE path of the top directory for the flight campaign. /media/sp...
// Animation names #define BOOKHOLDER_ANIM_DEFAULT 0 // Color names // Patch names // Names of collision boxes #define BOOKHOLDER_COLLISION_BOX_PART_NAME 0 // Attaching position names // Sound names
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } e...
(function() { 'use strict'; angular .module('sidcasoft', [ 'ngRoute', 'ui.bootstrap', 'ngResource', 'smart-table', 'ui.materialize' ]); })();
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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 appli...
/************************************************************************************ * arch/arm/src/stm32/stm32_i2c_alt.c * STM32 I2C Hardware Layer - Device Driver * * Copyright (C) 2011 Uros Platise. All rights reserved. * Author: Uros Platise <uros.platise@isotel.eu> * * With extensions, modifications by...
export const moment = /*#__PURE__*/ momentlib => { const m = momentlib; const isUnitless = a => { const keys = Object.keys(a); return keys.length === 1 && keys[0] === "unitless"; }; return ( { NATIVEDATE, DATEXPRESION, DURATIONEXPRESSION, DURATIONOBJECT }, { console } ) => { return ...
const fs = require('fs') const path = require('path') const Config = require('../../../classes/config') exports.index = async (req, res) => { // Bounce the user is they are not an admin user if (!req.user || !req.user.roles || !req.user.roles.isAdmin) return res.render('main/redirect', req.templateValues) // ...
export const orirockOffset = 10; export const sugarOffset = 20; export const polyesterOffset = 30; export const orironOffset = 40; export const ketonOffset = 50; export const deviceOffset = 60; export const kohlOffset = 70; export const manganeseOffset = 80; export const grindstoneOffset = 90; export const rmaOffset = ...
import asyncio from datetime import datetime import inspect import sys import os import json import time import csv import decimal from decimal import Decimal from typing import Sequence, Optional from aiorpcx.curio import timeout_after, TaskTimeout, TaskGroup import aiohttp from . import util from .bitcoin import CO...
#- # Copyright (c) 2012 Michael Roe # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BER...
import { Vector2, DoubleSide } from "../third_party/three.module.js"; import { LineMaterial, generateParams } from "./lineMaterial.js"; import * as dat from "../third_party/dat.gui.module.js"; import { initScene, update } from "../js/scene.js"; import { renderer, scene, camera, resize } from "../js/renderer.js"; import...
import React from 'react' import { StyleSheet, View, TextInput, TouchableOpacity, Text, Image } from 'react-native' import { Button, Card, Toast, Container } from 'native-base' import { borrowInfo, returnInfo, orderInfo, confirmBorrow, confirmOrder, confirmReturn } from '../../Config/APIs' export default class BookIn...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace HttpSe...
webpackJsonp([43],{159:function(e,t){},160:function(e,t){},161:function(e,t){},162:function(e,t){},163:function(e,t){},164:function(e,t){},174:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"index_footer"},[n("nav",e._l(e.proData&&e.proData.home_b...
# This example requires the 'members' and 'message_content' privileged intents import random import discord from discord.ext import commands description = """An example bot to showcase the discord.ext.commands extension module. There are a number of utility commands being showcased here.""" intents = discord.Inten...
import 'cypress-file-upload'; describe('DCAT-US Export', () => { const dataset_title = 'test-dataset-2'; beforeEach(() => { cy.logout(); cy.login(); cy.delete_dataset('test-dataset-1') cy.delete_dataset('test-dataset-2') cy.delete_dataset('test-sub-dataset-1') c...
# coding: utf-8 # # Copyright 2021 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
''' @description 2019/09/25 22:41 ''' from hashlib import md5 from functools import reduce # 密码本功能 # 密码本文件 password_filename = 'password_book.txt' # 密码 password = None # TODO: 是否首次使用密码本 def is_first_use(): try: with open(password_filename, 'r', encoding='utf-8') as fp: # 读取首行用户密码行 ...
const { promisify } = require('util') const path = require('path') const read_file = promisify(require('fs').readFile) const write_file = promisify(require('fs').writeFile) const mkdir = promisify(require('fs').mkdir) /** * The blacklist contains package names (from package.json) which should * not have struts defi...
// // DSClaimMasternodeViewController.h // DashSync_Example // // Created by Sam Westrich on 6/15/18. // Copyright © 2018 Dash Core Group. All rights reserved. // #import <UIKit/UIKit.h> #import <DashSync/DashSync.h> @interface DSClaimMasternodeViewController : UIViewController @property (nonatomic,strong) DSSim...
from . import FixtureTest # Adds tests for OSM features (but not NE features) class SortKeyBoundary(FixtureTest): def test_usa_country_boundary(self): import dsl z, x, y = 8, 39, 95 # country boundary of USA self.generate_fixtures( # https://www.openstreetmap.org/rel...
#!/usr/bin/python import getopt import sys from Bio import SeqIO from Bio.SeqUtils import GC import time# import time, gmtime, strftime import os import shutil import pandas from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq import csv from datetime import datetime import numpy as np from scipy import stats ...
from __future__ import absolute_import from time import time from datetime import timedelta import logging import six from sentry import analytics, features from sentry.models import ( Activity, ExternalIssue, Group, GroupLink, GroupStatus, Integration, Organization, ObjectStatus, ...
import board import busio import time import usb_hid from adafruit_hid.keycode import Keycode from adafruit_hid.keyboard import Keyboard from adafruit_hid.keyboard_layout_jp import KeyboardLayoutJP from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS import board import digitalio import config import displayio ...
import React from "react"; import { PageHeader, PageLoading, NotImplemented } from "../components"; import { useSelector } from "react-redux"; import "twin.macro"; export default () => { const { isLoaded } = useSelector((state) => state.chats); return ( <> <PageHeader title="数据统计" /> {isLoaded ? <...
var searchData= [ ['value_5ftype_0',['value_type',['../structdaw_1_1sv2_1_1basic__string__view.html#a2779c905165170b3022468d073160862',1,'daw::sv2::basic_string_view']]] ];
import decorator from './decorator' import {ensureBehavior} from './helpers' /** * Give the side-effects of a function call a specific name. * * Use `@FX` with the `@guard` or `this.guard` to disable specific * side-effects temporarily. * * @observer('value') * @FX('save') * valueChanged(val) { * ...
import mock from django.test import TestCase from django.test.utils import override_settings from readthedocs.projects.constants import PRIVATE from readthedocs.projects.models import Project, Domain from readthedocs.rtd_tests.utils import create_user from readthedocs.core.resolver import resolve_path, resolve, resol...
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
import boto3 import botocore import os import datetime import re target_bucket = os.environ['TARGET_BUCKET'] instances = os.environ['DB_INSTANCES'] print('Loading function') def byTimestamp(snap): return datetime.datetime.isoformat(snap['NodeSnapshots'][0]['SnapshotCreateTime']) def lambda_handler(event, conte...
#!/usr/local/bin/python import urllib2 import json import base64 import re import datetime import argparse #vars parser = argparse.ArgumentParser() parser.add_argument("-u", "--Username", help="State your username(your email)") parser.add_argument("-p", "--Password", help="State your password") parser.add_argument("...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const QuestionsSchema = new Schema({}, { strict: false }); QuestionsSchema.index({ product_id: 1, question_id: 1 }); const QuestionsModel = mongoose.model('QuestionsModel', QuestionsSchema, 'questions'); module.exports = QuestionsModel;
# Generated by Django 3.2.10 on 2022-02-07 05:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crudapp', '0099_auto_20220207_1014'), ] operations = [ migrations.AlterField( model_name='atmimage', name='title', ...
# -*- coding: utf-8 -*- # The above line is so that UTF-8 comments won't break Py2. # This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson. # All rights reserved. # # Redistribution and use in source and binary forms, with or without #...
import six import numpy as np from scipy import ndimage as ndi from ._geometric import (SimilarityTransform, AffineTransform, ProjectiveTransform, _to_ndimage_mode) from ._warps_cy import _warp_fast from ..measure import block_reduce from .._shared.utils import (get_bound_method_class, safe_a...
# -*- coding: utf-8 -*- """Consolidates all necessary models from the framework and website packages. """ from framework.auth.core import User from framework.guid.model import Guid, BlacklistGuid from framework.sessions.model import Session from website.project.model import ( Node, NodeLog, Tag, WatchConfig, ...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
/* eslint-env mocha */ 'use strict'; var request = require('supertest'); var assert = require('assert'); var _ = require('lodash'); var chance = new (require('chance'))(); var formioUtils = require('formiojs/utils').default; var async = require('async'); var docker = process.env.DOCKER; var customer = process.env.CUST...
from datetime import datetime, timedelta from random import choice from discord import Embed from discord.ext.commands import Cog from discord.ext.commands import command, has_permissions from ..db import db # Here are all the number emotes. # 0⃣ 1️⃣ 2⃣ 3⃣ 4⃣ 5⃣ 6⃣ 7⃣ 8⃣ 9⃣ numbers = ("1️⃣", "2⃣", "3⃣", "4⃣", "5⃣",...
import os import PIL.Image import numpy import torch from torch import Tensor def is_power2(x): return x != 0 and ((x & (x - 1)) == 0) def torch_save(content, file_name): os.makedirs(os.path.dirname(file_name), exist_ok=True) with open(file_name, 'wb') as f: torch.save(content, f) def torch_l...
class node: # this class infor testing # Do Not Modify def __init__(self, value): self.value = value self.right = self self.left = self def __repr__(self): return 'Node{}'.format(self.value).strip() class stack: def __init__(self): self.num_element ...
module.exports = function(UserIdentity) { UserIdentity.observe('before save', function setDefaultCreated(ctx, next) { if (ctx.instance) { ctx.instance.created = Date.now(); ctx.instance.modified = Date.now(); } if (ctx.currentInstance) { ctx.data.modified = Date.now(); } next();...
# # Copyright (c) 2019 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
# -*- coding: utf-8 -*- from django.contrib.auth.models import User from shop.models.clientmodel import Client, Country, Address from django.test.testcases import TestCase class ClientTestCase(TestCase): def create_fixtures(self): self.user = User.objects.create(username="test", ...
/* * SELinux support for the XFRM LSM hooks * * Author : Trent Jaeger, <jaegert@us.ibm.com> * Updated : Venkat Yekkirala, <vyekkirala@TrustedCS.com> */ #ifndef _SELINUX_XFRM_H_ #define _SELINUX_XFRM_H_ #include <net/flow.h> int selinux_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_c...
""" A collection of all appliances available. Each appliance has a consumption mean and standard deviation, as well as a list of houses containing the appliance. """ appliance_data = { "kettle": { "mean": 700, "std": 1000, "houses": [2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 19, 20], "channe...
/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); const Template = require("../Template"); const chunkHasJs = require("../javascript/JavascriptModulesPlugin").chunkHasJs; const com...
MOCK_FEATURE_RESPONSE = { "version": 1, "features": [ { "name": "testFlag", "description": "This is a test!", "enabled": True, "strategies": [ { "name": "default", "parameters": {} } ...
import time import numpy as np import tqdm import torch from torch.utils.data import DataLoader, Dataset import matplotlib.pyplot as plt from datasets import baseline_dataset, nn_filling_dataset from utils import utils, metrics_utils, keys from options import options training = True opt = options.set_options(traini...
/* * Copyright 2012 Amadeus s.a.s. * 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...
import React from "react"; import * as bd from "react-basic-design"; import { Example, SourceCode } from "./demo-components"; export const FormDemo = () => { return ( <div style={{ maxWidth: 800 }}> <h1>Form</h1> <p className="mb-5">responsive horizontal, vertical and inline forms.<...
# -*- coding: utf-8 -*- """ @author: Hiromasa Kaneko """ import matplotlib.pyplot as plt import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.gaussian_process import GaussianProcessRegressor # GPR モデル構築に使用 from sklearn.gaussian_process.kernels import White...
import app from '../bin/server' import supertest from 'supertest' import { expect, should } from 'chai' import { cleanDb } from './utils' should() const request = supertest.agent(app.listen()) const context = {} describe('Users', () => { before((done) => { cleanDb() done() }) describe('POST /users', ()...
import json import flask_restful from flask import send_file from models.entity import Entity from utils import logger_utils from utils.enums.status import Status from utils.generators.python_generator import PythonGenerator from utils.managers.download_manager import DownloadManager from utils.managers.project_manag...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import unicode_literals class_handlers = [] def register_method_handler(cls, method, parser_args, arg...
/** * @license Angular v12.2.5 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ import { Location, LocationStrategy, ViewportScroller, PlatformLocation, APP_BASE_HREF, HashLocationStrategy, PathLocationStrategy, LOCATION_INITIALIZED } from '@angular/common'; import { ɵisObservable, ɵisPromise, Com...
from decimal import Decimal as D from izi.core.loading import get_model from django.test import TestCase from izi.test import factories Partner = get_model('partner', 'Partner') PartnerAddress = get_model('partner', 'PartnerAddress') Country = get_model('address', 'Country') class TestStockRecord(TestCase): d...
import _ from 'lodash'; import printMe from './print.js'; import './style.css'; function component() { let element = document.createElement('div'); element.innerHTML = _.join(['Hello', 'webpack'], ' '); element.classList.add('hello'); var btn = document.createElement('button'); btn.innerHTML = 'C...
import styled from 'styled-components'; var RevealOuter = styled.div.withConfig({ displayName: "RevealOuter", componentId: "sc-3n70n6-0" })(["\n position: relative;\n"]); RevealOuter.displayName = 'RevealOuter'; export default RevealOuter;
/* * Human Interface Device (HID) USB class core * * Copyright (c) 2018 Intel Corporation * Copyright (c) 2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #define LOG_LEVEL CONFIG_USB_HID_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(usb_hid); #include <sys/byteorder.h> #includ...
/** * 问卷页面的主JS脚本 */ (function($){ $(function(){ /** * 定义问卷应用对象 */ questionnaire = new Object({ /* 问卷元属性 */ id: null, type: null, //string, 调研卷还是考试卷 name: null, description: null, create_date: null, expire_date: null, marked: null, //bool, 用户是否已作答过该问卷 signimagesList: null, //签名图列表 questionsList: null, ...
import torch import torch.nn as nn import hdvw.models.layers as layers class BasicBlock(nn.Module): def __init__(self, in_channels, channels, kernel_size, stride=1, padding=0, **block_kwargs): super(BasicBlock, self).__init__() self.conv = layers.convnxn(in_channels, channels, kernel_size, stride...
"""Mobjects representing point clouds.""" __all__ = ["PMobject", "Mobject1D", "Mobject2D", "PGroup", "PointCloudDot", "Point"] from ...constants import * from ...mobject.mobject import Mobject from ...utils.bezier import interpolate from ...utils.color import ( BLACK, WHITE, YELLOW, YELLOW_C, col...
# Выполнить команды в influxdb клиенте в терминале # - Просмотр баз # show databases # - Создание базы # create database first # - Выбор базы данных # use first # - просмотр измерений # show measurements # - запись данных # insert test_m,p1=40,p2=50,data=20 value=1 # insert test_m,p1=40,p2=50,data=20 value=2 # - просмо...
# importing some useful packages import os import matplotlib.image as mpimg import matplotlib.pyplot as plt import numpy as np from moviepy.editor import VideoFileClip from process import process_image def process_images(path): files = os.listdir(path) images = [] titles = [] for file in files: ...
import Icon from 'vue-awesome/components/Icon' Icon.register({ rotate_90_degrees_ccw_rounded: { paths: [ { d: 'M5.93 7.83l-3.65 3.66c-.78.78-.78 2.05 0 2.83l3.66 3.66c.78.78 2.05.78 2.83 0l3.66-3.65c.78-.78.78-2.05 0-2.83L8.76 7.82c-.79-.78-2.05-.78-2.83.01zM4.4 12.19l2.25-2.25c.39-.39 1.02-.39 1.4...
import itertools import json import os import random import unicodedata import uuid from collections import defaultdict from typing import Type, Union from unittest.mock import patch from django.conf import settings from django.contrib.auth.models import Group, Permission from django.contrib.sites.models import Site f...
const fs = require('fs') const path = require('path') class PagingTokenDiskAdaptor { constructor(options = {}) { this.path = options.path } load() { return new Promise(async (resolve, reject) => { try { const token = fs.readFileSync(this.path, 'utf8') resolve(token) } ...
import logging import json from sanic import Blueprint, response from sanic.request import Request from typing import Text, Optional, List, Dict, Any from rasa.core.channels.channel import UserMessage, OutputChannel from rasa.core.channels.channel import InputChannel from rasa.core.channels.channel import CollectingOu...
'use strict' /** * adonis-websocket * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const cuid = require('cuid') const Emittery = require('emittery') const debug = require('debug')('adoni...
import { mount } from '@vue/test-utils'; import { getTimeago } from '~/lib/utils/datetime_utility'; import ArtifactsBlock from '~/jobs/components/artifacts_block.vue'; import { trimText } from '../../helpers/text_helper'; describe('Artifacts block', () => { let wrapper; const createWrapper = propsData => moun...
export const LOCALATION = { GET: { URL: "localization/messages/v1/_search", ACTION: "_search", }, }; export const COMPLAINT = { GET: { URL: "rainmaker-pgr/v1/requests/_search", ACTION: "_search", }, }; export const FILE_UPLOAD = { POST: { URL: "filestore/v1/files", }, }; export const ...
import template from './signup.html'; export default { template, bindings: { success: '<', cancel: '<' }, controller }; controller.$inject = ['userService']; function controller (userService) { this.credentials = { email: '', password: '', token: '' }; this.authenticate = () => { ...
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * * 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 requir...
$(document).ready(function(){ /* $('#form').on('submit',function(e){ e.preventDefault(); var data =$(this).serialize();*/ var text = document.getElementById('xd').value; var excel= document.getElementById('valorBuscar').value = text; console.log(excel); /* var form = $(this); var url = form.attr('action'); $.pos...
class Solution: def simplifyPath(self, path: str) -> str: strs = [] splitStr = path.split('/') res = "" for temp in splitStr: if temp == "" or temp == '.': continue elif temp == '..' and strs: strs.pop(-1) elif temp...
/* * deflate_decompress.c - a decompressor for DEFLATE * * Originally public domain; changes after 2016-09-07 are copyrighted. * * Copyright 2016 Eric Biggers * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"...
# -*- python -*- # Copyright (C) 2009-2020 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later versio...
"""Support for Modern Forms Binary Sensors.""" from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback...
#!/usr/bin/env python # # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Uploads a number of episodes and photos and tests query of episodes by episode, with limits and start keys. """ __author__ = 'spencer@emailscrubbed.com (Spencer Kimball)' import random import time from copy import copy from functools i...
[ [ "100", "A Time to Kill", "John Grisham", "12.99", "1", "05/01/1998"], [ "1000", "Blood and Smoke", "Stephen King", "0", "1", "01/01/2000"], [ "-200", "The Rainmaker", "John Grisham", "7.99"...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import os import random import sys import tensorflow as tf from datasets import dataset_utils import datasets.source as src # The folder contains source files and labels. SOURCE_DIR = '/data/peop...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Servi...
# -*- coding: utf-8 -*- """ OneLogin_Saml2_Auth class Copyright (c) 2014, OneLogin, Inc. All rights reserved. Main class of OneLogin's Python Toolkit. Initializes the SP SAML instance """ from base64 import b64encode from urllib import quote_plus from defusedxml.lxml import tostring from onelogin.saml2.settings ...
import unittest from unittest.mock import Mock, patch from app.game.field_outputter import FieldOutputter from app.game.field import Field class FieldOutputterTest(unittest.TestCase): def setUp(self): pass @patch("app.game.field_outputter.slacker") def test_outputter_send_new_message(self, mock...
import pandas, os, sys, json import movement.config as CONFIG data_path = CONFIG.data.dir csv_path = CONFIG.data.movement.dir files = os.listdir(data_path) if not os.path.exists(csv_path): os.makedirs(csv_path) count = 0 movement_headers = ["team_id", "player_id", "x_loc", "y_loc", "radius", "game_clock", "shot_...
def input_to_bool(txt): '''This function converts a raw_input string to a booolean''' return txt.lower() in ['yes', 'true', 'y', 't', '1']