text
stringlengths
3
1.05M
import os import time from core import execute from core import slack from core import utils class DirBrute(object): """docstring for DirbBrute""" def __init__(self, options): utils.print_banner("Scanning Directory") utils.make_directory(options['WORKSPACE'] + '/directory') utils.make_...
""" Django settings for cocina_unicach project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ impor...
const { verify } = require("jsonwebtoken"); module.exports = { checkToken: (req, res, next) => { let token = req.get("authorization"); if (token) { token = token.slice(7); verify(token, "123456token", (err, decoded) => { if (err) { res.json({ success: 0, ...
# -*- coding: utf-8 -*- ''' :codeauthor: `Nitin Madhok <nmadhok@clemson.edu>` tests.unit.cloud.clouds.vmware_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import Python libs from __future__ import absolute_import from copy import deepcopy # Import Salt Testing Libs from tests.support.mixins import Loade...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { Component, Fragment } from 'react'; import { EuiIcon } from '...
import React, { cloneElement, Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import { linkToRecord } from 'ra-core'; import Link from '../Link'; const styles = { root: { display: 'flex', flexWrap: 'wrap' }, ...
const mongoose = require('mongoose') const Consumer = require(__base + 'models/consumer.js').consumer const applications = (req,res) => { Consumer.find({}, (err,data) => { if(err){ console.log(err); res.status(500).json(err); } else { res.send(data); } }); } module.exports = a...
function main(){ //find notice var allDivs = $$("div,span,form,#dialog") var cookieJars = [] for(var d of allDivs){ if(isFixed(d)){ d2 = getSimplestChild(d); //console.log("Fixed:") //console.log(d.innerText.toLowerCase()) // At this point 'd' is an element that scrolls with the screen if(contains...
import '../../../node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind' function LinkableTable ($module) { this.$module = $module } LinkableTable.prototype.init = function (params) { this.setupOptions(params) this.data_table = this.$module.querySelector('table') this.data_table_head = th...
import vk_orbwalker from valkyrie import * from helpers.flags import Orbwalker from helpers.targeting import * from helpers.damages import calculate_raw_spell_dmg from helpers.spells import Slot import time target_selector = None Q_Enabled = True W_Enabled = True E_Enabled = True R_Enabled = True E_Melee_Range = True...
// Server API makes it possible to hook into various parts of Gridsome // on server-side and add custom data to the GraphQL data layer. // Learn more: https://gridsome.org/docs/server-api // Changes here require a server restart. // To restart press CTRL + C in terminal and run `gridsome develop` const axios = require...
$().ready(function() { validateRule(); }); $.validator.setDefaults({ submitHandler : function() { update(); } }); function update() { $.ajax({ cache : true, type : "POST", url : "/system/config/update", data : {configItem:"pay_audit_auto_acp", configValue:$(":radio:checked").val(), parentItem:"pa...
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
"use strict"; var _mocha = require("mocha"); var _chai = require("chai"); var _user_code_runner = _interopRequireDefault(require("./user_code_runner")); var _bluebird = _interopRequireDefault(require("bluebird")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } (0, ...
var searchData= [ ['receiver_8368',['Receiver',['../class_quant_ext_1_1_average_o_i_s.html#a1d1cfd8ffb84e947f82999c682b666a7a7928a668954c57bb64a7a9d98994cbaa',1,'QuantExt::AverageOIS::Receiver()'],['../class_quant_ext_1_1_cross_ccy_fix_float_swap.html#a1d1cfd8ffb84e947f82999c682b666a7a7928a668954c57bb64a7a9d98994cbaa...
import React from "react"; import PropTypes from "prop-types"; import { Field, reduxForm } from "redux-form"; import { Paper, Typography, withStyles, Avatar, Divider, IconButton } from "@material-ui/core"; import DefaultInput from "../../../shared/components/DefaultInput"; import styles from "...
import React from "react"; import { StyleSheet, Text, View, TouchableOpacity, ImageBackground, } from "react-native"; import DefaultText from "./DefaultText"; const MealItem = (props) => { return ( <View style={{ ...styles.mealItem, ...props.style }}> <TouchableOpacity onPress={props...
#!/usr/bin/env python import io import re from setuptools import find_packages, setup with io.open('./rubicon/objc/__init__.py', encoding='utf8') as version_file: version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M) if version_match: version = version_match.group...
import ComponentBase from '../../utils/componentbase/ComponentBase.js'; import { TextType, TagTextType, BitmapTextType } from '../../utils/text/GetTextObjectType.js'; import GetTextObjectType from '../../utils/text/GetTextObjectType.js'; import TextToLines from '../../utils/text/TextToLines.js'; import Methods from...
/* jqBootstrapValidation * A plugin for automating validation on Twitter Bootstrap formatted forms. * * v1.3.6 * * License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file * * http://ReactiveRaven.github.com/jqBootstrapValidation/ */ (function ($) { var createdElements = []; var ...
var searchData= [ ['readbwrawimage',['readBWrawImage',['../fileIO_8cpp.html#aa8225a98de056e1fd6659a2acf14b258',1,'readBWrawImage(char filename[], int size):&#160;fileIO.cpp'],['../fileIO_8h.html#aa8225a98de056e1fd6659a2acf14b258',1,'readBWrawImage(char filename[], int size):&#160;fileIO.cpp']]], ['readrawimage',['r...
module.exports = { assets: { 'label-atlas': { SpriteFrameTip: 'SpriteFrame', ItemWidthTip: 'Item Width', ItemHeightTip: 'Item Height', StartCharTip: 'Start Char', FontSizeTip: 'Font Size', SpriteFrame: 'SpriteFrame', ItemWid...
/************************************************************* * * MathJax/jax/output/SVG/fonts/Latin-Modern/Size4/Regular/Main.js * * Copyright (c) 2013-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """Test desitarget.cmx. """ import unittest from pkg_resources import resource_filename import os.path from uuid import uuid4 import numbers import warnings from astropy.io import fits from astropy.table import Table import fitsio ...
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..registration import scalartransform def test_scalartransform_inputs(): input_map = dict( args=dict(argstr='%s', ), deformation=dict( argstr='--deformation %s', extensions=None, ), environ=dict( ...
import pygame from wrapText import drawText class Question: def __init__(self, quiz, prompt, answer, category): self.quiz = quiz self.prompt = prompt self.answer = answer self.category = category def display_question(self): self.display_rect = pygame.Rect(0, 0, 550, 3...
require('es6-shim'); const vows = require('vows'); const assert = require('assert'); const chroma = require('../index'); vows .describe('Some tests for random colors') .addBatch({ 'random colors': { topic: chroma.random(), 'valid hex code'(topic) { return assert(/^#[0-9a-f]{6...
/*! * OS.js - JavaScript Cloud/Web Desktop Platform * * Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com> * 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. Redistribu...
(function(){ "use strict"; let btn = document.querySelectorAll('.btn'); let contentOne = document.querySelectorAll('.contents .content-one'); let btnOne = document.querySelectorAll('.tab .btn-one'); btnOne.forEach(function(el){ el.style.backgroundColor = 'rgb(59, 59, 61'; e...
""" Copyright (c) Facebook, Inc. and its affiliates. """ # fmt: off ''' Every template contains an ordered list of TemplateObjects. TemplateObject is defined in template_objects.py Freebuild templates are written for : - either a BlockObject or a Location. and represents the intent for the action: Freebuild. This ac...
import babel from 'rollup-plugin-babel'; import pkg from './package.json'; export default [ { input: pkg.module, output: [ { file: pkg.bin.gps, format: 'cjs', sourcemap: true, banner: '#!/usr/bin/env node', }, ], external: [ 'debug', 'amqplib', ...
# -*- coding: utf-8 -*- import pandas as pd ## Uplaod Townlands CSV to dataframe dataset = pd.read_csv("townlands.csv") ## As dataset doesn't have Dublin addresses dataset = dataset[dataset.county != 'Dublin'] ## Create townlands dictionary to check against addresses townland_dict = dataset.to_dict('records') ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 6H12l-2-2H2v16h20V6zm-2 12H4V8h16v10z" /></React.Fragment> , 'FolderOpenSharp');
var debug = require('debug')('nodemon'); const statSync = require('fs').statSync; var utils = require('../utils'); var bus = utils.bus; var childProcess = require('child_process'); var spawn = childProcess.spawn; var exec = childProcess.exec; var fork = childProcess.fork; var watch = require('./watch').watch; var confi...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Ci...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const mySchema = new Schema({ username: String, password: String, }); const model = mongoose.model('Auth', mySchema); module.exports = model;
const Calc = require("./calculator.js"); class xmlconfig { constructor(){ this.join = Calc.join.orders.order; this.opdefine = (grammer, order, formula, groupid) => { return new Calc.opdefine(grammer, order, formula, groupid); }; this.ctrldefine = (grammer, formula, group...
import BaseLogic from './base.logic'; import Repository from '../repository'; class TagLogic extends BaseLogic { static model() { return Repository.TagRepository.model(); } static async get(id) { return await Repository.TagRepository.get(id, TagLogic.model()); } static async create(data) { retu...
import request from '@/utils/request' let model = '/role' export function getList(data) { return request({ url: model + '/index', method: 'get', params: data }) } export function edit(data) { return request({ url: model + '/edit', method: 'post', data }) } export function create(data...
exports.getRemainingDailyQuotaImpl = (p_) => () => { return p_.getRemainingDailyQuota(); } exports.sendEmailWithObjectBlobsourcearrayStringStringStringStringObjectStringBooleanStringStringStringImpl = (message) => (attachments) => (bcc) => (body) => (cc) => (htmlBody) => (inlineImages) => (name) => (noReply) => (re...
"use strict";(self.webpackChunkgolpes_org=self.webpackChunkgolpes_org||[]).push([[179],{30:()=>{function se(n){return"function"==typeof n}function xs(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Xo=xs(n=>function(e){n(this...
/* -----------H-ui前端框架------------- * H-ui.admin.js v2.3.1 * http://www.h-ui.net/ * Created & Modified by guojunhui * Date modified 15:42 2015.08.19 * * Copyright 2013-2015 北京颖杰联创科技有限公司 All rights reserved. * Licensed under MIT license. * http://opensource.org/licenses/MIT * */ var num=0,oUl=$("#min_title_list"),hide_n...
from utils.data_utils import next_batch from torch.optim.lr_scheduler import * from utils.eval_utils import AverageMeter import wandb _available_lr_scheduler = [LambdaLR, StepLR, MultiStepLR, ExponentialLR, ReduceLROnPlateau] class StnTrainer(object): """ A STN trainer that trains the model on a dataset.""" ...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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 use, copy, modify, merge...
(() => { angular .module('winter') .config(($routeProvider) => { $routeProvider .when('/', { templateUrl: 'views/login/login.html', controller: 'LoginController as main' }) .when('/timeline', { templateUrl: 'views/timeline/timeline.html', controller: 'TimelineController', ...
from django.views.generic import FormView from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import login from django.shortcuts import redirect, reverse, render from django import forms from user_profile.models import User class CustomUserCreationForm(UserCreationForm): avatar = form...
const redux = require('redux'); const createStore = redux.createStore; const initialState = { counter:0 } const rootReducer = (state=initialState, action) =>{ if(action.type=== "INC_COUNTER"){ return { ...state, counter:state.counter + 1 } } if(action.type=== "...
module.exports={A:{A:{"2":"H D G E A B mB"},B:{"1":"K","2":"C L q M O I J"},C:{"1":"HB IB JB KB","2":"0 1 2 3 4 5 6 8 9 jB AB F H D G E A B C L q M O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB dB cB"},D:{"1":"0 1 2 3 4 6 9 t u v w x y z LB BB CB DB EB FB HB IB JB KB bB...
// Hooks import { datasetsBeforeEnter } from 'new-dashboard/router/hooks/check-navigation'; import store from '../../store'; // Lazy Pages const Data = () => import('new-dashboard/pages/Data/Data'); const Datasets = () => import('new-dashboard/pages/Data/Datasets'); const Subscriptions = () => import('new-dashboard/pa...
const chai = require('chai'); const expect = chai.expect; describe('chai test', () => { it('should compare some values', () => { expect(1).to.equal(1); }); it('should test the object data', () => { expect({ name: 'foo' }).to.deep.equal({ name: 'foo' }); expect({ name: 'foo' }).to.have.property('name...
module.exports = require('./tslintrc')
import axios from 'axios'; const API_URL = 'https://api.pokemontcg.io/v1'; export const getPokemonCatalog = () => new Promise((resolve, reject) => { axios.get(`${API_URL}/cards?subtype=Basic`) .then((response) => { const { data } = response; const { cards } = data; if (cards.length > 0) { ...
/** * Amazon Elastic Compute Cloud * <fullname>Amazon Elastic Compute Cloud</fullname> <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster....
import Taro, {useEffect, useState} from '@tarojs/taro' import {Block, View, Text, ScrollView, Canvas, Image, Swiper, SwiperItem, Button} from '@tarojs/components' import { useSelector, useDispatch } from '@tarojs/redux' import moment from 'moment' import _ from 'lodash/lodash.min' import Core from '@antv/f2/lib/core' i...
/* 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Medium 418 51 Add to List Share Given an array of integers arr and two integers k and threshold. Return the number of sub-arrays of size k and average greater than or equal to threshold. Example 1: Input: arr = [2,2,2,2,5,5,...
import React from 'react' const AccessDenied = () => { return ( <div className="page-layout centered"> <h3>Tillträde beviljas ej</h3> <p> You don't have the required privileges to access this page. </p> </div> ) } export default AccessDenied;
""" Tests for POSIX-compatible `basename`. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/basename.html """ from helpers import check, check_version, run def test_version(): """Check that we're using Boreutil's implementation.""" assert check_version("basename") def test_missing_args(): ""...
import { createLocalVue, mount } from '@vue/test-utils'; import VueCallStore from '.'; const identifier = 'identifier'; let localVue; let wrapper; const component = { template: ` <div> <div v-call:done="'${identifier}'" class="done">Hello World</div> <div v-call:failed="['${identifier}', 'second']"...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Thenable} from 'shared/ReactTypes'; import type {Fiber} from 'react-reconciler/src/ReactInternalTypes'; i...
import test from 'ava' import m from '../../../../../' test('default', t => { t.false(m('xn--2-gtb3ad.xn--d1atc.xn--80aswg.xn--p1ai/index.asp')) t.false(m('//xn--2-gtb3ad.xn--d1atc.xn--80aswg.xn--p1ai/index.asp')) t.false(m('http://xn--2-gtb3ad.xn--d1atc.xn--80aswg.xn--p1ai/index.asp')) t.false(m('https://xn--...
'use strict'; const os = require('os'); const npmlog = require('npmlog'); const chalk = require('chalk'); const read = require('readline-sync'); const copyPaste = require('copy-paste'); const store = require('./store'); const libpick = require('./libpick'); let accumulatedOutput = ''; let cliOptions = { raw: fal...
import os import sys import numpy as np import matplotlib.pyplot as plt from sklearn import preprocessing from sklearn.naive_bayes import GaussianNB input_file = 'adult.data.txt' # Reading the data X = [] y = [] count_lessthan50k = 0 count_morethan50k = 0 num_images_threshold = 30000 with open(input_file, 'r') as f...
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import os import sys import mock import pytest from datadog_checks.kubelet import KubeletCheck, KubeletCredentials # Skip the whole tests module on Windows pytestmark = pytest.mark.skipif(sys.platfor...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vueproject.settings') try: from django.core.management import execute_from_command_line except Im...
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (C) 2017 University of Dundee. All rights reserved. # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the foll...
import aiohttp from backend import Status class DynClient(): def __init__(self, custom_checker = None): self._checker = custom_checker async def check_binding(self, libra_address, url): if self._checker is None: return True else: return await self._checker(li...
var searchData= [ ['run',['Run',['../class_server_1_1_lobby.html#a03f85d30bb1f855c4138c7f515ee1717',1,'Server::Lobby']]], ['rungame',['runGame',['../class_server_1_1_game.html#aedfb6f3fb863eb0966e0ea5fdb89fbb0',1,'Server::Game']]] ];
import pytest import capnp import os import socket import test_capability_capnp class Server(test_capability_capnp.TestInterface.Server): def __init__(self, val=1): self.val = val def foo(self, i, j, **kwargs): return str(i * 5 + self.val) def restore_func(ref_id): return Server(100) ...
import { connectToDatabase } from "../../util/mongodb"; export default async (req, res) => { if (req.method == "POST") { const { db } = await connectToDatabase(); await db .collection("contact") .insertOne({ message: req.body.message, email: req.body.email, date: new Date()...
import {fromJS, Map} from 'immutable'; import * as authUtils from '../utils/auth-utils'; import userDataReducer from './user-data-reducer'; const INITIAL_CREDENTIALS = Map({}); const INITIAL_USER_DATA = fromJS({ userSettings: {}, userSettingsUpdating: false, userSettingsError: null, flashcards: {}, repeti...
import React from "react"; import {render} from "react-dom"; import {Header} from "./components/Header"; import {Home} from "./components/Home"; class App extends React.Component { onGreet(){ alert("Hello!") }; constructor(){ super(); this.state={ homeLink:"Home", ...
// // contentblocker.js // DuckDuckGo // // Copyright © 2017 DuckDuckGo. 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/L...
/* eslint jsx-a11y/no-noninteractive-element-interactions: 0, jsx-a11y/no-noninteractive-tabindex: 0 */ import React, { Component } from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; export default class ShowMore extends Component { constructor() { super(); this.state = ...
var a = 1; module.exports = function myOtherMod(x) { return x + a; };
""" WSGI config for oh_proj_management 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from whitenoise.django i...
module.exports = new Date(2014, 2, 25)
""" Fatture in Cloud API v2 - API Reference Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. # noq...
import CSSEditor from './CSSEditor'; import './CSSEditor.scss'; export default CSSEditor;
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import queryString from 'query-string' import { Row, Col, Button } from 'antd' import { Filter } from '../../components/index' import EngineImageList from './EngineImageList' import Create...
const nav = require('./utils/nav').default const sidebar = require('./utils/sidebar').default const i18n = { path: '/', guide: '教程', changelog: '更新日志', essentials: '基础', advanced: '进阶' } // 站点配置 exports.default = { lang: 'zh-CN', title: 'Vue Router Tab', description: '基于 Vue Router 的路由页签组件' } // 主题配置...
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Ordnance Survey Grid Reference functions (c) Chris Veness 2005-2019 */ /* MIT Licence */ /* www.movable-ty...
export const featureWithScenarioTags = `@search @google Feature: Google Search As an internet user In order to find out more about Keg-Hub # Test comment in the feature meta I want to be able to search for information about the Keg-Hub @scenario Scenario: Search the web for google Giv...
const bcrypt = require('bcrypt'); const commander = require('./commander'); const Emitter = require('events').EventEmitter; const m = require('../models'); const redis = require('redis'); const roli = require('roli'); const WS = require('uws'); const reg = (message, client) => message.replace(/:([\w]+):/g, (match, p...
""" Module: libfmp.c4.c4s4_novelty_kernel Author: Meinard Müller, Julian Reck License: The MIT license, https://opensource.org/licenses/MIT This file is part of the FMP Notebooks (https://www.audiolabs-erlangen.de/FMP) """ import numpy as np from numba import jit def compute_kernel_checkerboard_box(L): ...
import numpy as np from .pymatlab import isempty, length, size from .qpcplexopt import cvxlpbnd def scale(H, f, A, Aeq, UB, idxU): # SCALE scales the part of UB indexed by 'idxU' to 1, assuming that LB(idxU)==0 m, _ = A.shape n, _ = H.shape meq, _ = Aeq.shape if idxU.size > 0: idxUc = np.s...
const PlaybackStrategy = { MSE: 'msestrategy', HYBRID: 'hybridstrategy', NATIVE: 'nativestrategy', BASIC: 'basicstrategy' } export default PlaybackStrategy
import { useState, useEffect, useContext } from 'react'; import { Box, Button, Card, CardContent, CardHeader, Divider, Grid, TextField } from '@mui/material'; import {useFormik} from 'formik'; import {useRouter} from "next/router"; import {useWarningProvider} from "../../providers/contexts/WarningContex...
import MarkInlineShortcut from '../helpers/mark-inline-shortcut' export default options => { const { onKeyDown } = MarkInlineShortcut({ type: 'bold', regex: /\*{2}([^\*]+)\*{2}/g, }) return { onKeyDown } }
#!/usr/bin/env python # Main entry point for shot manager import os from os import sys, path sys.path.append(os.path.realpath('')) import shotManager from dronekit import connect from dronekit_solo import SoloVehicle from dronekit.mavlink import MAVConnection # First get an instance of the API endpoint vehicle = co...
from datetime import ( datetime, timedelta, ) import numpy as np import pytest import pandas as pd from pandas import ( Categorical, DataFrame, DatetimeIndex, Index, NaT, Period, PeriodIndex, RangeIndex, Series, Timedelta, TimedeltaIndex, Timestamp, date_ran...
'use strict'; var tape = require('tape'); var wrtc = require('..'); var getUserMedia = wrtc.getUserMedia; var MediaStream = wrtc.MediaStream; var RTCPeerConnection = wrtc.RTCPeerConnection; var RTCSessionDescription = wrtc.RTCSessionDescription; var sdp = [ 'v=0', 'o=- 0 1 IN IP4 0.0.0.0', 's=-', 't=0 0', ...
// quarantine const fs = require('fs'); const mkdirp = require('mkdirp'); const path = require('path'); exports.register = function () { const plugin = this; plugin.load_quarantine_ini(); plugin.register_hook('queue', 'quarantine'); plugin.register_hook('queue_outbound', 'quarantine'); } ...
from django.core.management.base import BaseCommand from six import moves from auditlog.models import LogEntry class Command(BaseCommand): help = 'Deletes all log entries from the database.' def handle(self, *args, **options): answer = None while answer not in ['', 'y', 'n']: an...
var searchData= [ ['ostream',['ostream',['../classhwlib_1_1ostream.html',1,'hwlib']]] ];
"use strict"; const Path = require('path'); const File = require('fs'); const Mime = require('mime-types'); const {Octokit} = require('@octokit/rest'); async function publish(options) { options || (options = {}) const verbose = !!options.verbose function log(message) { console.log(m...
import React from 'react'; import ReactTooltip from 'react-tooltip'; import '@mu5h3r/uikit/core/help.scss'; type Props = { text: string } export default function Help(props: Props) { const id = Math.random().toString(36).substr(2, 9); return <div data-tip='' data-for={id} className="help"> ? ...
/** * @license * Copyright 2019 Google LLC. 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 a...
/** * @fileOverview This file define global objects which created by flight-framework. */ /** * Holds global scope objects which created by flight-framework. * @module flight/global */ /** * @ignore */ var flight = flight || {}; /** * @undocumented */ var __flightRoot , __projectRoot ...
describe('getSampleMigration()', () => { it.todo('test') }) describe('getPendingJobs()', () => { it.todo('test') }) describe('up()', () => { it.todo('test') })
import logging import pytest import retrying import sdk_cmd import sdk_install import sdk_marathon import sdk_plan from tests import config log = logging.getLogger(__name__) @pytest.fixture(scope='module', autouse=True) def configure_package(configure_security): try: sdk_install.uninstall(config.PACKAGE...