text
stringlengths
3
1.05M
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(l){"use strict";return l.effects.define("bounce",function(e,r){var t,i,n=l(this),o=e.mode,c="hide"===o,o="show"===o,f=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(o||c?1:0),s=e.duratio...
import template from './template.html!text'; const { clipboard } = require('electron'); export default [() => { return { controller: ['shadertoy', '$scope', (shadertoy, $scope) => { $scope.shadertoy = shadertoy; const text = clipboard.readText(); if (shadertoy.isValidURL(text)) { $scope.url = text; ...
import numpy as np def load_file(fn): result = np.load(fn) print(result.shape) if __name__ == '__main__': load_file('./feature/4944644486.npy')
/* * Copyright (c) 2020 Squirrel Chat, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditio...
/*!build time : 2014-03-31 10:55:57 AM*/ KISSY.add("gallery/uploader/1.5/plugins/paste/paste",function(a,b,c){function d(a){var b=this;d.superclass.constructor.call(b,a)}var e=b.all;return a.extend(d,c,{pluginInitializer:function(b){if(!b)return!1;var c=this,d=c.get("target");return d.length?(d.on("paste",function(c){v...
from typing import List import xml.etree.ElementTree as et from pathlib import Path import os import json import platform import sys import traceback def exit_with_err(err: Exception): """ Exit the current step and display the err. :param: err, the error/exception encountered. """ traceback.print_...
# -*- coding:utf-8 -*- # Copyright (c) 2013, Theo Crevon # Copyright (c) 2013, Greg Leclercq # # See the file LICENSE for copying permission. from swf.models.base import BaseModel # NOQA from swf.models.activity import ActivityType, ActivityTask # NOQA from swf.models.domain import Domain # NOQA from swf.models.wo...
import React from 'react'; import ReactDOM from 'react-dom'; import * as serviceWorker from './serviceWorker'; import { Provider } from 'react-redux'; // import thunk from 'redux-thunk'; // import { createStore, applyMiddleware } from 'redux'; // import reducer from './reducer'; import store from './store'; import { Ap...
import math import numpy as np def compute_change(x, y): return np.abs(x-y) import httplib, urllib, base64 headers = { # Request headers. Replace the placeholder key below with your subscription key. 'Content-Type': 'application/json', 'Ocp-Apim-Subscription-Key': '217bc233c2864995bd51a1f3f9710aef', ...
import axios from "axios"; import { toastOnError } from "../../utils/Utils"; import { GET_NOTES, ADD_NOTE, DELETE_NOTE, UPDATE_NOTE } from "./NoteTypes"; export const getNotes = () => dispatch => { axios .get("/api/v1/notes/") .then(response => { dispatch({ type: GET_NOTES, payload: res...
import requests import string def get_names(): input('Separate each name with Space:') names = input() return names.split(' ') def check_repos(names): repo_api = 'https://api.github.com/search/repositories?q=' ecosys_api = 'https://api.github.com/search/repositories?q=topic:' for name in name...
# 035 - Write a Python program that will return true if the two given integer values are equal or their sum or difference is 5. def verifyValues(pNum1, pNum2): return (pNum1 == pNum2) or (pNum1 + pNum2) == 5 or abs(pNum1 - pNum2) == 5 print(verifyValues(7, 2), verifyValues(3, 2), verifyValues(2, 2))
class QueryComponentType { static typeName = 'Query'; static injectTypeWhitelist = []; static verify() { } } export default QueryComponentType;
import pytest from pytest import mark from pytest import raises def test_single(benchmark): runs = [] benchmark.pedantic(runs.append, args=[123]) assert runs == [123] def test_setup(benchmark): runs = [] def stuff(foo, bar=123): runs.append((foo, bar)) def setup(): return [...
import WorkCard from './subcomponents/WorkCard'; function Work ({ projects }) { return <div className="flex flex-col items-start w-full"> <div className="w-full flex justify-between items-baseline"> <h1 className="text-lg text-black dark:text-cullen font-medium mb-4 mt-6">Work</h1> <div className="fl...
# -*- coding: utf-8 -*- import pytest import offshoot from pluggable import TestPluggable from plugins.TestPlugin.plugin import TestPlugin from plugins.TestPlugin2.plugin import TestPlugin2 from plugins.TestInvalidPlugin.plugin import TestInvalidPlugin import yaml import subprocess import types import os import os...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TPV = void 0; const mongoose_1 = require("mongoose"); class TPV { constructor() { const EmpleadoSchema = new mongoose_1.Schema({ nombre: { type: String, requiered: true }, apellidos: { type: String, ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .baseagent import BaseAgent from .maze import ACTION as ACTION from .maze import SHOW as SHOW from .maze import Maze as Maze # from .maze import ActionProbsTable from .maze import ProbsRoulette as ProbsRoulette from .gym_wrapper import InfEasyMaze from .gym_wrapper i...
var Reflux = require("reflux"); var SurveyActions = Reflux.createActions([ "load", // initial data load "blockDropped", // when block is dropped "questionDropped", // when question is dropped "optionGroupDropped", // when optionGroup is dro...
export function timeFix() { const time = new Date() const hour = time.getHours() return hour < 9 ? '早上好' : hour <= 11 ? '上午好' : hour <= 13 ? '中午好' : hour < 20 ? '下午好' : '晚上好' } export function welcome() { const arr = ['休息一会儿吧', '准备吃什么呢?', '要不要打一把 DOTA', '我猜你可能累了'] const index = Math.floor(Math.random() * arr...
"use strict";(self.webpackChunkmy_project=self.webpackChunkmy_project||[]).push([[6460],{63490:e=>{e.exports=JSON.parse('{"BoundRoute.title":"Bound route to","EditForm.inputSelect.description.role":"It will attach the new authenticated user to the selected role.","EditForm.inputSelect.label.role":"Default role for auth...
/* * Copyright (C) 2018 Synopsys, Inc. All rights reserved. * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <config.h> #include <linux/printk.h> #include <linux/kernel.h> #include <linux/io.h> #include <asm/arcregs.h> #include <fdt_sup...
# -*- coding: utf-8 -*- import datetime import math import arrow import pandas as pd import tzlocal from zvdata import IntervalLevel CHINA_TZ = 'Asia/Shanghai' TIME_FORMAT_ISO8601 = "YYYY-MM-DDTHH:mm:ss.SSS" TIME_FORMAT_DAY = 'YYYY-MM-DD' TIME_FORMAT_DAY1 = 'YYYYMMDD' TIME_FORMAT_MINUTE = 'YYYYMMDDHHmm' TIME_FO...
#Crie um programa que leia dois valores e mostre um menu na tela: '''[ 1 ] somar [ 2 ] multiplicar [ 3 ] maior [ 4 ] novos números [ 5 ] sair do programa''' #Seu programa deverá realizar a operação solicitada em cada caso. from time import sleep print('MENU') v1 = float(input('Digite um valor:')) v2 = float(input('Digi...
#!/usr/bin/env python import shutil from framesource import VideoFrameSource import tempfile import decimal import rateconverter import os """ extractframes package - extract frames from a video. The top level module contains only one function, extract() which is the main way you'd accomplish frame extractions. """ ...
// users-model.js - The users model // // See http://mongoosejs.com/docs/models.html // for more of what you can do here. module.exports = function (app) { const mongooseClient = app.get('mongooseClient'); const { Schema } = mongooseClient; const users = new Schema({ fName: { type: String, required: true }, ...
#!/usr/bin/python """ test_functional.py Functional tests for homebysix-recipes. """ import os import plistlib import shutil import subprocess from nose.tools import * # pylint: disable=W0401, W0614 # Desired identifier prefix, with few exceptions. IDENTIFIER_PREFIX = "com.github.homebysix." IDENTIFIER_EXEMPTIONS...
module.exports = { env: { browser: true, es6: true, }, extends: [ 'standard', ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly' }, parserOptions: { ecmaVersion: 2020, sourceType: 'module', }, rules: { 'no-unused-vars': ['warn', { vars: 'all', args: ...
import React, { useState } from "react" import GetStartDataArlingtonDental from "../../data/getStart/arlingtonDental/index" import GetStartDataCrownDental from "../../data/getStart/crownDental/index" import GetStartDataCrystalCreek from "../../data/getStart/crystalCreek/index" import GetStartDataDenstar from "../../dat...
webpackJsonp([1],{150:function(n,t,e){"use strict";function sequence(n,t){return void 0===t&&(t=null),{type:2,steps:n,options:t}}function style(n){return{type:6,styles:n,offset:null}}function scheduleMicroTask(n){Promise.resolve(null).then(n)}e.d(t,"b",function(){return r}),e.d(t,"c",function(){return o}),e.d(t,"g",fun...
""" Docstrings with line continuation characters should be handled correctly. """ def add(x, y): """ Adds two \ values. >>> add(1, 1) 3 >>> add("ab", "c") 'cab' """ return x + y
# -*- coding: utf-8 -*- # Tom van Steijn, Royal HaskoningDHV # Erik van Onselen, Deltares from xsboringen.borehole import Borehole, Segment from collections import namedtuple class CPT(Borehole): '''CPT class inherits from borehole''' _keys = 'cone_resistance', 'friction_ratio' Row = namedtuple('Row', (...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
import { connect } from 'react-redux' import { compose } from 'redux' import { withRouter } from 'react-router-dom' import { contractExchangeRateSelector, transactionFeeSelector, } from '../../selectors' import { getTokens } from '../../ducks/tronmask/tronmask' import { getTokenData, } from '../../helpers/utils/t...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import Page from 'components/Page'; import InputField from '../../components/InputField'; import Form from 'reactstrap/lib/Form'; import Label from 'reactstrap/lib/Label'; import { adminResetPassword } from '.....
import { useState, useEffect, useContext } from 'react'; import { useParams, useNavigate } from 'react-router-dom'; import { AuthContext } from '../../contexts/AuthContext'; import { db } from '../../firebase'; import { getDoc, setDoc, doc, deleteDoc } from 'firebase/firestore' import MemoryDetailsItem from './Memory...
#ifndef NMWORKERBASE_H #define NMWORKERBASE_H #include "nmcommanddata.h" class NmWorkerBase { public: virtual ~NmWorkerBase() {} virtual NmScope getScope() = 0; virtual json execCmd(NmCommandData*) = 0; virtual bool isValidCmd(NmCommandData*) = 0; }; #endif // NMWORKERBASE_H
from typing import List from connexion.exceptions import OAuthProblem """ controller generated to handled auth operation described at: https://connexion.readthedocs.io/en/latest/security.html ''.join([secrets.choice(string.ascii_letters + string.digits) for _ in range(50)]) """ def check_ReadKey(api_key, required_scope...
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --no-enable-one-shot-optimization Debug = debug.Debug var exception = null; var object_with_symbol_key = {[Symbol("a")]: 1}; var object_with...
import os import sys import codecs import glob base_path = os.path.split(__file__)[0] if os.path.exists(os.path.join(base_path, 'testdata')): #release test_dir = os.path.join(base_path, 'testdata') else: #development test_dir = os.path.abspath( os.path.join(base_path, os.p...
""" WSGI config for ddns_clienter project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO...
/* Copyright (c) 2017, ARM Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "config.h" #include <odp_queue_if.h> #include <odp_init_internal.h> #include <odp_debug_internal.h> #include <stdlib.h> #include <string.h> #include <odp/api/align.h> #include <odp/api/plat/queue_...
""" Copyright (c) 2016, Brendan Shillingford All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
# 윈도우에서는 한글 인코딩 오류가 발생할 수 있습니다. # 한글 인코딩 오류가 발생한다면 # Message.log(message_type="info", msg="데이터를 저장했습니다.") # 위의 코드 부분의 msg를 영어로 수정해서 사용해주세요. import json import sys from eliot import Message, start_action, to_file, write_traceback import requests # 로그 출력을 표준 출력으로 설정(터미널에 출력하기) to_file(sys.stdout) # 크롤링 대상...
'''Schema class and related code.''' import keyword import textwrap from collections import OrderedDict from lima import abc from lima import exc from lima import registry from lima import util # Helper functions ############################################################ def _fields_from_bases(bases): '''Retu...
import csdl.operations as ops from csdl.core.variable import Variable from csdl.core.output import Output def tanh(var): if not isinstance(var, Variable): raise TypeError(var, " is not an Variable object") op = ops.tanh(var) op.outs = (Output( None, op=op, shape=op.dependen...
import tensorflow as tf from net_util import conv_2d, max_pool_2d, avg_pool_2d, fully_connected class SiamCRNN(object): def get_model(self, Input_X, Input_Y, data_format='NHWC', is_training=True): net_X = self._feature_extract_layer(inputs=Input_X, name='Fea_Ext_', ...
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo...
""" Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
angular.module('starter', ['starter.controllers','starter.services','ngIdle', 'ngMap', 'angularUtils.directives.dirPagination','ngCsv','ngFileUpload','ngSanitize']) .config(function (KeepaliveProvider, IdleProvider) { IdleProvider.idle(1800); //dalam detik => 5 = 5 detik IdleProvider.timeout(1800); KeepaliveProvide...
# stdlib import json import multiprocessing import os workers_per_core_str = os.getenv("WORKERS_PER_CORE", "1") max_workers_str = os.getenv("MAX_WORKERS") use_max_workers = None if max_workers_str: use_max_workers = int(max_workers_str) web_concurrency_str = os.getenv("WEB_CONCURRENCY", None) host = os.getenv("HO...
import re from collections import OrderedDict, defaultdict from copy import deepcopy import numpy as np import pandas as pd from lib.monomer_alignment_generation.alignment import * class Species_interact: def read_species_annotation_table(annotation): SPECIES_ANNOTATION_COLUMNS = ["OS", "Tax"] ...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/lixh/ue_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/lixh/ue_folder/cmake_targets/lte_b...
# coding:utf-8 # Copyright (c) 2019 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 req...
#ifndef GYM_PUYOPUYO_BITBOARD_H_GUARD #define GYM_PUYOPUYO_BITBOARD_H_GUARD #define WIDTH (8) #define HEIGHT (8) #define CLEAR_THRESHOLD (4) #define H_SHIFT (1) #define V_SHIFT (WIDTH) #define TOP_TO_BOTTOM (V_SHIFT * (HEIGHT - 1)) #define TOP (0xFFULL) #define BOTTOM (0xFF00000000000000ULL) #define RIGHT_BLOCK (0xFEF...
import React, { Component } from 'react'; import { View } from 'react-native'; import { Topo, Resultado, Painel } from './components'; export default class App extends Component { constructor(props) { super(props); this.state = { num1: '', num2: '', operacao: 'soma', resultado: '' }; this.calcular = this.ca...
const Utils = require('../utils'); const Event = require('../core/event'); const Assets = require('./assets'); /* @BUG: Space has not effect when no letter comes after. @TODO: <progress value="70" max="100">70 %</progress> */ AFRAME.registerComponent('text-label', { schema: { value: { type: "string", ...
/*! * bootstrap-fileinput v4.4.0 * http://plugins.krajee.com/file-input * * Author: Kartik Visweswaran * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com * * Licensed under the BSD 3-Clause * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md */ (function (factory) { "u...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[157],{ /***/ "./frontend/node_modules/animate.css/animate.css": /*!*******************************************************!*\ !*** ./frontend/node_modules/animate.css/animate.css ***! \*******************************************************/ /*! no sta...
import collections import itertools import os import typing from qtpy import QtCore as QC from qtpy import QtWidgets as QW from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusExceptions from hydrus.core import HydrusGlobals as HG from hydrus.core import Hydru...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
import { graphql, useStaticQuery } from 'gatsby' export const useSiteMetadata = () => { const { site } = useStaticQuery( graphql` query SITE_METADATA_QUERY { site { siteMetadata { title description url } } } ` ) return si...
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2018-2021 Dmitriy Yefremov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
/** * Shell type. * @typedef {'bash'|'powershell'|'cmd'} ShellType */ /** * Shell options. * * The `program` refers to the script or executable * being run. * * ### Expansion * * When `expansion` is `true`, uses double * quote to allow expansion of special characters. * Be careful to escape all special...
"use strict"; (function(window) { var photo = window.photo; // var table = $('#datatable-fixed-header').DataTable({ // fixedHeader: true // }); var dom = { form_user : $(".form_user"), user_del : $(".form_user_delete"), apply_pass : $(".agent_apply_pass")...
#!/usr/bin/python from fence_testing import test_action def main(): DEVICE = "devices.d/apc-v2.cfg" ACT_STATUS = "actions.d/status.cfg" ACT_ONOFF = "actions.d/power-on-off.cfg" ACT_LIST = "actions.d/list.cfg" test_action(DEVICE, ACT_STATUS, "getopt") test_action(DEVICE, ACT_ONOFF, "stdin") test_action(DEVICE...
# pylint: disable=C0103,C0111,W0614 from __future__ import print_function import ida_idaapi from ida_hexrays import * class CXorOptimizer(optinsn_t): def __init__(self): optinsn_t.__init__(self) def func(self, blk, ins, _optflags): if blk.mba.maturity != MMAT_GLBOPT1: return 0 ...
import ctypes import pytest c_lib = ctypes.CDLL('../solutions/0852-peak-index/peak-index.so') @pytest.mark.parametrize('array, ans', [([0,1,0], 1), ([0,2,1,0], 1), ([0,10,5,2], 1), ([3,4,5,1], 2), ([24,69,100,99,79,78,67,36,26,19], 2)]) def test_peak_index(array, ans): arr = (ctypes.c_int * len(array))(*array...
// // NSObject+CheckIsLegal.h // XiuXiuTuanGou // // Created by 张敬 on 2018/10/4. // Copyright © 2018年 XiuXiuTuanGou. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSObject (CheckIsLegal) //剔除卡号里的非法字符 -(NSString *)getDigitsOnly:(NSString*)s; //检查银行卡是否合法 -(BOOL)isVa...
var _nameless_core_8hpp = [ [ "GLSL_AU", "struct___n_l_1_1_core_1_1_g_l_s_l___a_u.html", "struct___n_l_1_1_core_1_1_g_l_s_l___a_u" ], [ "Component", "class___n_l_1_1_core_1_1_component.html", "class___n_l_1_1_core_1_1_component" ], [ "Element", "class___n_l_1_1_core_1_1_element.html", "class___n_l_1_1_core_...
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
from wagtail.core.blocks import CharBlock, ListBlock, StructBlock, TextBlock, URLBlock from wagtail.images.blocks import ImageChooserBlock from .base import SectionBlock from .material_icons import IconChoiceBlock class FeatureBlock(StructBlock): feature_name = CharBlock( required=True, max_lengt...
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http...
#!/usr/bin/python3 from pwn import * from pwnlib.gdb import binary from six import int2byte import codecs #yeah our dev env adds imports automatically for us. Increased attack vector intended. Thank you io = remote('pwn-2021.duc.tf', 31905) #io.sendline("\n") test = io.recvuntil("...") print(test) io.sendline(" ") ...
from re import split def camelize(string): s = ''.join([a.capitalize() for a in split('([^a-zA-Z0-9])', string) if a.isalnum()]) return s[0].lower() + s[1:] cols = ['Team Name', 'Hero', 'All Damage Done', "Enemies EMP'd"] res = [camelize(c) for c in cols] print(res)
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
/* * resource/file */ "use strict"; const fs = require('fs').promises; const { basename } = require('path'); const mime = require('mime'); const HTML = require('../html/file'); module.exports = class File { constructor(req, path, stat, location, openFile) { this._req = req; this._path = path...
(function(e,t){function n(e){var t=dt[e]={};return Y.each(e.split(tt),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(mt,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:vt.test(r)?Y.parseJSON(r...
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest....
#!/usr/bin/env python ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['arm_control'], package_dir={'': 'src'}, ) setup(*...
########################################################################################## # # This file contains classes for controlling FW102C Thorlabs Motorized Filter Wheel # ########################################################################################## import wx import functools import ctypes import ...
sexo = input("Digite seu sexo ").lower() if (sexo == "masculino"): print("M - Masculino") elif (sexo == "feminino"): print("F - Feminino") else: print("Valor invalido")
#!/usr/bin/python import xgboost as xgb from xgboost import DMatrix from sklearn.datasets import load_svmlight_file # This script demonstrate how to do ranking with xgboost.train x_train, y_train = load_svmlight_file("mq2008.train") x_valid, y_valid = load_svmlight_file("mq2008.vali") x_test, y_test = load_svmlight_...
'use strict'; const express = require('express'); const router = express.Router(); const controller = require('./system.config.controller'); router.get('/getSystemInfo',controller.getSystemInfo); module.exports = router;
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
// repair with --directoryperdb // `--repairpath` is mmap only. // @tags: [requires_mmapv1] var baseName = "jstests_disk_repair2"; function check() { files = listFiles(dbpath); for (f in files) { assert(!new RegExp("^" + dbpath + "backup_").test(files[f].name), "backup dir " + files[f]...
import matplotlib.pylab as plt import os import glob import numpy as np import pickle import scipy.io from fit import * from equation_builder import * class timeseries(object): ''' timeseries is an object for holding individual components of GPS timeseries Attributes: component : component name ...
export const waves = {"viewBox":"0 0 512 512","children":[{"name":"g","attribs":{},"children":[{"name":"path","attribs":{"d":"M256,0C114.625,0,0,114.609,0,256s114.625,256,256,256c141.406,0,256-114.609,256-256S397.406,0,256,0z M256,472\r\n\t\tc-119.281,0-216-96.703-216-216S136.719,40,256,40c119.312,0,216,96.703,216,216S...
from oscar.core.loading import get_class EventHandler = get_class('order.processing', 'EventHandler') class EventHandlerMixin: handler_class = EventHandler def get_handler_class(self): return self.handler_class def get_handler(self, user=None, **kwargs): handler_kwargs = self.get_handle...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ module.exports = { "extends": [ require.resolve("@fluidframework/eslint-config-fluid") ], "parserOptions": { "project": [ "./tsconfig.json", "./src/test/mocha/tsconfig.js...
from django.apps import AppConfig class ContemplationConfig(AppConfig): name = 'contemplation'
from torchio import Interpolation from torchio.transforms import RandomElasticDeformation from ...utils import TorchioTestCase class TestRandomElasticDeformation(TorchioTestCase): """Tests for `RandomElasticDeformation`.""" def test_random_elastic_deformation(self): transform = RandomElasticDeformati...
import hashlib import json import re import fnmatch from enum import Enum import os from os import listdir, makedirs from os.path import dirname, isfile, join, realpath import jsonschema import yaml from jinja2 import Environment, PackageLoader from yaml import MarkedYAMLError from binary import FixedEntryListTypes, ...
/*- * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this...
function PT_typeahead() {} PT_typeahead.prototype = { init:function(oWin,oDoc,oForm,url_up,url_dn,url_close,nDelayTime){ this.oWin = oWin; this.oDoc = oDoc; this.oForm = oForm; this.url_up = url_up; this.url_dn = url_dn; this.url_close = url_close; this.arrOptions=new Array();...
'use strict'; /* global loadBodyHTML */ /* global MocksHelper */ /* global contacts */ /* global asyncStorage */ /* global MockContactsListObj */ /* global ICEData */ requireApp('communications/contacts/test/unit/mock_navigation.js'); requireApp('communications/contacts/test/unit/mock_asyncstorage.js'); requireApp('c...
import MlBacktop from "./main"; MlBacktop.install = function (Vue) { Vue.component(MlBacktop.name, MlBacktop); }; export default MlBacktop;