text
stringlengths
3
1.05M
"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arg...
// Expects classNames to be an object mapping feature-bit -> className export default function featureClassNames(stateObj, classNames) { if (!stateObj || !stateObj.attributes.supported_features) return ""; const features = stateObj.attributes.supported_features; return Object.keys(classNames) .map((feature)...
const axios = require("axios"); const { test } = require("tap"); const fixtures = require("../../.."); test("Get archive", async (t) => { const mock = fixtures.mock("api.github.com/get-archive"); // https://developer.github.com/v3/repos/#edit const redirectLocation = await axios({ method: "get", url: ...
"""Base TestCase class for testing Exporters""" #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software...
YUI.add('graphics-vml', function (Y, NAME) { var IMPLEMENTATION = "vml", SHAPE = "shape", SPLITPATHPATTERN = /[a-z][^a-z]*/ig, SPLITARGSPATTERN = /[\-]?[0-9]*[0-9|\.][0-9]*/g, Y_LANG = Y.Lang, IS_NUM = Y_LANG.isNumber, IS_ARRAY = Y_LANG.isArray, Y_DOM = Y.DOM, Y_SELECTOR = Y.Selector, ...
/** * Created by edcarlo lima on 12/01/2017. */ /** * jquery.mask.js * @version: v1.14.8 * @author: Igor Escobar * * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com * * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com * * The MIT License (http://www.ope...
import React from 'react' import Tooltip from 'rambler-ui/Tooltip' import * as icons from 'rambler-ui/icons/forms' const styles = { display: 'inline-block', margin: 10 } export default function FormIconsExamples() { return ( <div> {Object.keys(icons) .filter(iconName => iconName.indexOf('Icon'...
import React, { Component } from 'react'; import Image from 'grommet/components/Image'; import GoogleMapReact from 'google-map-react'; const AnyReactComponent = () => { return <Image src={require('../img/marker32.png')} size={{width: 1, height: 1}} style={{position: 'absolute', bottom: -16, left: -16}}/> }; clas...
const openDSU = require("opendsu"); const crypto = openDSU.loadApi("crypto"); const keySSISpace = openDSU.loadApi("keyssi"); const brickTransforms = require("./brick-transforms"); function Brick(options) { options = options || {}; if (typeof options.encrypt === "undefined") { options.encrypt = true; ...
var Sequelize = originalRequire('sequelize'); var Umzug = originalRequire('umzug'); var jetpack = originalRequire('fs-jetpack'); var modelsDir = jetpack.cwd(__dirname); var migrationFiles = modelsDir.list('./production'); var dummyMigrationFiles = modelsDir.list('./dummy'); migrationFiles = migrationFiles.sort(); dum...
""" Self-learning Tic Tac Toe Made by Lorenzo Mambretti and Hariharan Sezhiyan """ import random import numpy as np import tensorflow as tf import time import datetime class State: board = np.zeros((3,3)) terminal = False def is_valid(action, state): if state.board[int(np.floor(action / 3))][action % 3] !...
""" # Data Structures and Algorithms - Part B # Created by Reece Benson (16021424) """ from tennis import Match from tennis import MatchGender from tennis.Menu import Menu from tennis.Menu import Builder from functools import partial class Round(): # Variables id = None name = None game = None pa...
import sys from random import uniform import pytest from PySide2 import QtWidgets from PySide2.QtTest import QTest from pyleecan.Classes.CondType11 import CondType11 from pyleecan.Classes.CondType12 import CondType12 from pyleecan.Classes.LamSlotWind import LamSlotWind from pyleecan.Classes.MachineSCIM import Machine...
module.exports = { transform: { '^.+\\.ts?$': 'ts-jest' }, testEnvironment: 'node', testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx|js)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'] }
import os import pytest from tests.integration_tests.validation.validation_util import get_test_data CONFORMANCE_SUITE = 'tests/resources/conformance_suites/esef_conformance_suite_2021.zip/esef_conformance_suite_2021/esef_conformance_suite_2021' TAXONOMY_PACKAGE = 'tests/resources/taxonomy_packages/esef_taxonomy_20...
import deepFreeze from 'deep-freeze'; import outboxReducers from '../outboxReducers'; import { MESSAGE_SEND_START, EVENT_NEW_MESSAGE } from '../../actionConstants'; import { streamNarrow } from '../../utils/narrow'; describe('outboxReducers', () => { describe(MESSAGE_SEND_START, () => { test('add a new message ...
import datetime import flask import json import pytest from bs4 import BeautifulSoup import dash_dangerously_set_inner_html import dash_flow_example from dash import Dash, html, dcc, Input, Output from dash.exceptions import PreventUpdate from dash.testing.wait import until def test_inin004_wildcard_data_attribut...
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from ngraph.opset1.ops import absolute from ngraph.opset1.ops import absolute as abs from ngraph.opset1.ops import acos from ngraph.opset4.ops import acosh from ngraph.opset8.ops import adaptive_avg_pool from ngraph.opset8.ops import ada...
export const noteBody = "https://face.baby/vocab#noteBody" export const refs = "https://face.baby/vocab#refs" export const hasFeedItem = "https://face.baby/vocab#hasFeedItem" export const Credit = "https://face.baby/vocab#Credit" export const Debit = "https://face.baby/vocab#Debit" export const amount = "https://face.b...
const ArgumentType = require('./base'); /** * A type for command arguments that handles multiple other types * @extends {ArgumentType} */ class ArgumentUnionType extends ArgumentType { constructor(client, id) { super(client, id); /** * Types to handle, in order of priority * @type {ArgumentType[]} */...
import { applyMiddleware } from "redux"; import { logger } from "./logger"; export default applyMiddleware(logger);
""" Functions connected to signing and verifying. Based on the use of xmlsec1 binaries and not the python xmlsec module. """ from OpenSSL import crypto import base64 import hashlib import logging import os import ssl import six from time import mktime from binascii import hexlify from future.backports.urllib.parse i...
'use strict'; module.exports = app => { app.beforeStart(async () => { }); };
import axios from "axios"; import React from "react"; import { useState, } from "react"; import PayToCompany from "../models/PayToCompany"; const DealerPayBillToCompany = () => { const [newPayToCompanyObj, setNewPayToCompanyObj] = useState(new PayToCompany()); const [dispPayToCompanyObj, setDispPayToCompan...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | If B = 11110xxx (n = 4) and C != 10xxxxxx (C - first of octets after B), throw URIError esid: sec-decodeuricomponent-encodeduricomponent description: Complex tests. ...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
// FIT - Flexible and Interoperable Data Transfer // Strava strives to comply with the FIT Activity File (FIT_FILE_TYPE = 4) spec as defined in the official FIT SDK. // // Many, many, attributes are defined by FIT. Below is an overview of those used by Strava. // // MESSAGE TYPES ATTRIBUTES // file_id manufactu...
# -*- coding: utf-8 -*- ''' Use the minion cache on the master to derive IP addresses based on minion ID. Currently only contains logic to return an IPv4 address; does not handle IPv6, or authentication (passwords, keys, etc). It is possible to configure this roster to prefer a particular type of IP over another. To ...
function start() { document.write(" ") }
import 'ui/tree_list/ui.tree_list'; import $ from 'jquery'; import { DataSource } from 'data/data_source/data_source'; import ArrayStore from 'data/array_store'; import Guid from 'core/guid'; import query from 'data/query'; import { setupTreeListModules } from '../../helpers/treeListMocks.js'; var createDataSource = f...
/* COPYRIGHT 2009 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions. For additional information, contact: Environmental Systems Research Institute, Inc. Att...
/** * @fileoverview Module for Time.Resize effect while dragging. * @author NHN Ent. FE Development Team <dl_javascript@nhnent.com> */ 'use strict'; var util = require('tui-code-snippet'); var config = require('../../config'); var domutil = require('../../common/domutil'); var reqAnimFrame = require('../../common/r...
var NAVTREEINDEX3 = { "class_schrodinger__atom__1_d.html#ad700a7899b82f2564549eb62a640afe4":[1,0,16,17], "class_schrodinger__atom__1_d.html#adc61281595c97685c4561805e91e2fc9":[1,0,16,8], "class_schrodinger__atom__1_d.html#add2762038510414449a7e6f022babcb2":[1,0,16,41], "class_schrodinger__atom__1_d.html#addcc887557d598...
/** * Copyright Schrodinger, LLC * 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. * * This is to be used with t...
import numpy as np from baselines.common.runners import AbstractEnvRunner class Runner(AbstractEnvRunner): """ We use this object to make a mini batch of experiences __init__: - Initialize the runner run(): - Make a mini batch """ def __init__(self, *, env, model, nsteps, gamma, lam): ...
import React from 'react'; import { storiesOf } from '@storybook/react'; import styled from 'styled-components'; import { Select, Window, WindowContent, Cutout } from 'react95'; const items = [ { value: 1, label: '⚡ Pikachu' }, { value: 2, label: '🌿 Bulbasaur' }, { value: 3, label: '💦 Squirtle' }, { value: ...
#HCF numbers = int(input("Kitne numbers do ge:")) inputs = [] for number in range(numbers): inputs.append(int(input('Number:'))) a = max(inputs) dictionary = {} for i in range(1,a): dictionary[i] = 0 for number in inputs: for x in range(1,number//2 + 2): if number % x == 0: dictionary[x] += 1 factors = [] for ...
import { css } from 'styled-components' const resetBtn = css` appearance: none; border: none; border-radius: 0; background: none; margin: 0; padding: 0; font: inherit; line-height: inherit; color: inherit; cursor: pointer; outline: none; ` export default resetBtn
import xlrd import numpy as np def get_data(): wb = xlrd.open_workbook("data.xlsx") sheet = wb.sheet_by_index(0) rows = sheet.nrows data = [] for i in range(1, rows): x = np.array([[sheet.cell_value(i, 0)]]) y = np.array([[sheet.cell_value(i, 1)]]) data.append((...
/** * Created by onlyfu on 2020/03/28. */ App.module.extend('navigation', function() { // let self = this, navigation = [ { name: 'Client', is_focus: true }, // { // name: 'Document', // is_focus: fals...
var test = require('tap').test; var removeOverlaps = require('../'); test('it can remove circuar overalps', function(t) { var circles = [ {x: 0, y: 0, r: 10}, {x: 1, y: 0, r: 3} ] var lastMove = removeOverlaps(circles); var dist = distance(circles[0], circles[1]); t.ok(dist >= 13, 'it moved circles ...
# -*- coding: utf-8 -*- """ pygments.lexers.apl ~~~~~~~~~~~~~~~~~~~ Lexers for APL. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer from pygments.token import Text, Comment, Operator, Keyword, Nam...
sap.ui.define([ "sap/ui/model/json/JSONModel" ], function (JSONModel) { "use strict"; return new JSONModel({ selectedKey: 'learnGettingStarted', navigation: [ { title: 'Card Types', icon: 'sap-icon://overview-chart', key: 'types', target: 'exploreOverview', hasExpander: false, items: ...
""" This module responds to notifications by polling the twitter api for notifications It responds to both regular tweet and DM events, and responds to each in kind. """ from __future__ import print_function import sys import os # regular include stuff import json import boto3 import email import requests import re i...
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { settings } from '...
import reddit from './reddit-api.js'; //Delay all three calls to public reddit API searchReddit(getSubreddit("subreddit1"), "10", "results1"); setTimeout(() => { searchReddit(getSubreddit("subreddit2"), "10", "results2"); }, 500); setTimeout(() => { searchReddit(getSubreddit("subreddit3"), "10", "results3"); }, 1000);...
import Vue from 'vue' import Router from 'vue-router' import MSite from '../pages/MSite/MSite' import Order from '../pages/Order/Order' import Profile from '../pages/Profile/Profile' import Search from '../pages/Search/Search' Vue.use(Router) export default new Router({ routes: [ { path: '/msite', c...
module.exports={A:{A:{"2":"I D F pB","132":"E A B"},B:{"1":"C N O Q J K L b KB NB R S T M V W G bB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J K L d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB eB IB TB P LB MB X OB PB QB RB JB HB a Z UB VB WB XB SB b KB NB oB R S T M V W G","2":"iB YB","260":"H c I D F E A B C...
/* Copyright (c) 1994-2018 Sage Software, Inc. All rights reserved. */ "use strict"; var sessionDateSetup = sessionDateSetup || {}; sessionDateSetup = { init: function () { var setSessionDate = false; var sessionDateCookie = $.cookie(sg.utls.SessionCookieName); if (!sessionDateCookie) {...
import React from 'react'; import TwitterSVG from '../svg/twitter.svg'; import InstagramSVG from '../svg/instagram.svg'; const socialLinks = [ { Component: TwitterSVG, href: 'https://twitter.com/shrapdaily', title: 'Twitter', }, { Component: InstagramSVG, href: 'https://www.instagram.com/shr...
import axios from "utils/axios"; export const getIncomeExpense = (data) => { return { type: "GET_INCOME_EXPENSE", payload: axios.get(`/dashboard/${data}`), }; }; export const getTransactionHistory = (data) => { return { type: "GET_TRANSACTION_HISTORY", payload: axios.get( `/transaction/his...
var COLORS={'red1':'#6C2315','red2':'#A23520','red3':'#D8472B','red4':'#E27560','red5':'#ECA395','red6':'#F5D1CA','orange1':'#714616','orange2':'#AA6A21','orange3':'#E38D2C','orange4':'#EAAA61','orange5':'#F1C696','orange6':'#F8E2CA','yellow1':'#77631B','yellow2':'#B39429','yellow3':'#EFC637','yellow4':'#F3D469','yello...
/* Copyright [2016] [Relevance Lab] 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...
""" 第一个Python程序 - hello, world! 向伟大的Dennis M. Ritchie先生致敬 Version: 0.1 Author: 骆昊 """ print('hello, world!') # print("你好,世界!") print('你好', '世界') print('hello', 'world', sep=', ', end='!') print('goodbye, world', end='!\n')
show dbs use m101p_week1 db.hw1_2.find()
import DateTime, { friendlyDateTime } from "./datetime.js"; import Duration from "./duration.js"; import Settings from "./settings.js"; import { InvalidArgumentError, InvalidIntervalError } from "./errors.js"; import Invalid from "./impl/invalid.js"; const INVALID = "Invalid Interval"; // checks if the start is equal...
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{EgHj:function(e,t,n){"use strict";n.r(t),n.d(t,"_frontmatter",(function(){return s})),n.d(t,"default",(function(){return p}));var o=n("k1TG"),r=n("8o2o"),a=(n("q1tI"),n("7ljp")),c=n("hhGP"),s=(n("qKvR"),{});void 0!==s&&s&&s===Object(s)&&Object.isExtensible(s)&&!...
!function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):a(jQuery,moment)}(function(a,b){function c(a,b,c,d){var e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" const IndexPage = () => ( <Layout> <SEO title="Home" /> <h1>Hi people</h1> <p>Welcome to your new site gvm</p> <p>Now go build...
""" Structures for PDB2PQR This module contains the structure objects used in PDB2PQR and their associated methods. ---------------------------- PDB2PQR -- An automated pipeline for the setup, execution, and analysis of Poisson-Boltzmann electrostatics calculations Copyright (c) 2002-...
/*The MIT License, Copyright (c) 2010-2016 Google, Inc.*/ describe('angularjs homepage', function() { it('should greet the named user', function() { browser.get('http://www.angularjs.org'); element(by.model('yourName')).sendKeys('Julie'); var greeting = element(by.binding('yourName')); expect(gree...
const { normalize } = require('path') const { promisify } = require('util') const glob = require('glob') const pGlob = promisify(glob) const { getDependencyNamesAndPathsForDependencies, listFilesUsingLegacyBundler } = require('../../node_dependencies') const { JS_BUNDLER_ZISI } = require('../../utils/consts') const...
/** * @license * Copyright 2017 The Lighthouse 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 * * ...
# -*- coding: utf-8 -*- """ ymir.schema.validators """ import os from voluptuous import Invalid def nested_vagrant_validator(dct, ): """ """ if not isinstance(dct, dict): err = ("expected hash for key @ `vagrant`") raise Invalid(err) for key in 'name boot_timeout box box_check_update sync_...
/*!CK:73429512!*//*1439331784,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["pGqeT"]); } __d("AdminSignatureConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={SETTING_ATTACH_TO_POST:"shouldAttachToPost",SETTING_ATTACH_TO_COMMENT:"shouldAttachToComment",SETTING_ATTACH_TO_MESSA...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
var searchData= [ ['info',['Info',['../namespace_nakama.html#a1cda621bf2e5189661567a7e07f3da21a4059b0251f66a18cb56f544728796875',1,'Nakama']]], ['internalerror',['InternalError',['../namespace_nakama.html#accc7b4ac5f52cab6b3b903d7c5fa378ba8462b58246e70e5c83e5b939a9332cb5',1,'Nakama']]], ['invalidargument',['Inval...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } function _interopNamespace(e) { if (e && e.__esModule) { return e; } else { var n = {}; if (e) { Object.keys(...
import React from "react" import { graphql } from "gatsby" import Post from "../templates/post-template" const PostQuery = ({ data }) => { const { previous, next } = data return <Post data={{ ...data }} previous={previous} next={next} /> } export const query = graphql` query SanityPostQuery($id: String!, $previ...
// @flow import { connect } from 'react-redux' import { getStudent, setActiveStudentDetails } from 'routes/Users/modules/students' import { toggleTicketsInfoMenu } from 'routes/Users/modules/userui' import LeftSide from './LeftSide' const mapActionCreators = { getStudent, toggleTicketsInfoMenu, setActiveStudentD...
module.exports = { AGALMiniAssembler: require("./AGALMiniAssembler").default, AssetCache: require("./AssetCache").default, AssetLibrary: require("./AssetLibrary").default, AssetManifest: require("./AssetManifest").default, Assets: require("./Assets").default, AssetType: require("./AssetType").default, ByteArray:...
/* * Copyright (C) 2013 Apple 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 list of conditions a...
(window.webpackJsonp=window.webpackJsonp||[]).push([[932],{lu35:function(n,t){!function(n){n.ng=n.ng||{},n.ng.common=n.ng.common||{},n.ng.common.locales=n.ng.common.locales||{};var t=void 0;n.ng.common.locales["de-li"]=["de-LI",[["AM","PM"],t,t],[["vm.","nm."],["AM","PM"],t],[["S","M","D","M","D","F","S"],["So.","Mo.",...
/*! This file is auto-generated */ !function(s,l,o){var c,e,t,n,i,h=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},a={},r="ontouchend"in document;function d(){return c?c.$('a[data-wplink-edit="true"]'):null}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDurat...
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; module.exports = { /** * Parse an array * ```ebnf * array ::= T_ARRAY '(' array_pair_list ')' | * '[' array_pair_list ']' * ``` */...
/* global QUnit */ sap.ui.define([ "sap/ui/thirdparty/sinon-4", "sap/ui/fl/Layer", "sap/ui/fl/write/_internal/StorageFeaturesMerger" ], function( sinon, Layer, StorageFeaturesMerger ) { "use strict"; var sandbox = sinon.sandbox.create(); QUnit.module("Basic functions", { beforeEach : function () { }, ...
/** * @param {Array} array */ export const bubbleSort = array => { for (let i = array.length; i >= 0; i -= 1) { let swapped = false; for (let j = 0; j < i - 1; j += 1) { if (array[j] > array[j + 1]) { [array[j], array[j + 1]] = [array[j + 1], array[j]]; swapped = true; } } ...
#!/usr/bin/env python3 # Copyright 2017 Th!nk Inc. # # 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 agr...
# -*- coding: utf-8 -*- import sys import shutil import tempfile import os import logging import unittest from anima.env.testing import TestEnvironment logger = logging.getLogger('anima.ui.version_updater') logger.setLevel(logging.DEBUG) from anima.ui import IS_PYSIDE, IS_PYQT4, SET_PYSIDE, version_updater SET_PY...
import { createActions } from 'redux-actions'; const scopedActions = createActions({ BOARD_ACTIONS: { /** Action creator for the board business to start calculating valid moves from a single square */ CALC_VALID_MOVES_FROM_SQUARE: (row, col) => ({ r: row, c: col }), /** * Action creator to find a...
/** * Module dependencies. */ var request = require('request'); var citizen = require('citizen'); var empty = require('empty'); var page = require('page'); var Article = require('proposal-article'); var Options = require('proposal-options'); var Comments = require('comments-view'); var sidebar = require('sidebar'); ...
import { module, test } from 'qunit'; import { visit, currentURL, findAll } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { get } from '@ember/object'; module('Acceptance | asset map', function(hooks) { setupApplicationTest(hooks); test('asset map is correctly built', asyn...
module.exports = function(file, api) { const j = api.jscodeshift; const root = j(file.source); const TOP_LEVEL_TYPES = [ 'Function', 'FunctionDeclaration', 'FunctionExpression', 'ArrowFunctionExpression', 'Program', ]; const FOR_STATEMENTS = [ 'ForStatement', 'ForOfStatement', ...
// Copy of definition from @atlaskit/mention // NOTE: if this is changed in the original package, this must also be modified var HttpError = /** @class */ (function () { function HttpError(statusCode, statusMessage) { this.statusCode = statusCode; this.message = statusMessage; this.name = 'H...
/** * @class Ext4.ux.grid.column.ActionButtonColumn * @extends Ext4.grid.column.Column * @version 0.5 * @author Lucian Lature (lucian.lature@gmail.com) * @author Kathrn Reeve (k.reeve@ctidigital.com) * * <p>A Grid header type which renders a button, or a series of buttons in a grid cell, and offers a scoped clic...
// Import dependencies const axios = require('axios'); const moment = require('moment'); const Fish = {}; Fish.getSensorData = (req, res, next) => { axios({ method: 'GET', url: 'https://passive_iuu_detection_device.data.thethingsnetwork.org/api/v2/query/mcci_4550?last=5m', headers: { Authorization: 'key ttn...
YUI.add('datasource-cache', function (Y, NAME) { /** * Plugs DataSource with caching functionality. * * @module datasource * @submodule datasource-cache */ /** * DataSourceCache extension binds Cache to DataSource. * @class DataSourceCacheExtension */ var DataSourceCacheExtension = function() { }; Y.mix(Data...
import _ from 'lodash/fp'; import { isValidDateRange } from '../../platform/forms/validations'; import { convertToDateField } from 'platform/forms-system/src/js/validation'; import { isValidCentralMailPostalCode } from '../../platform/forms/address/validations'; export function validateAfterMarriageDate(errors, dateOf...
let express = require('express'); let bodyParser = require('body-parser'); let path = require('path'); let database = require('./helper/database'); let fs = require('fs'); let config = require('./config.json'); let cors = require('cors'); var fbadmin = require("firebase-admin"); var serviceAccount = require("./serviceA...
import dataclasses import datetime import re import time from collections import defaultdict from typing import Optional from apps.address.models import City, Country from apps.announcement.models import Announcement, EmployeeType from django.core.management import BaseCommand from selenium.common.exceptions import No...
import React from "react"; import { connect } from "react-redux"; import { withRouter } from "react-router"; import AdRevExport from "../MetaDataExportFunctions/ReleasesFunctions/AdRevExport"; import AlterKExport from "../MetaDataExportFunctions/ReleasesFunctions/AlterKExport"; import ATempoExport from "../MetaDataExp...
class dustbin { constructor(x,y) { this.x=x; this.y=y; this.dustbinWidth=200; this.dustbinHeight=100; this.wallThickness=20; this.angle=0; this.bottomBody=Bodies.rectangle(this.x, this.y, this.dustbinWidth, this.wallThickness, {isStatic:true}) this.leftWallBody=Bodies.rectangle(this.x-...
const Generator = require('../../helper/generator') module.exports = class extends Generator { constructor (args, options) { super(args, options, 'validator', []) } prompting() { return super.prompting() } writing() { console.log(this.answers) Promise.all([ this.fs.copyTpl(this.templ...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlAppCmd(PerlPackage): """Write command line apps with less suffering""" homepage =...
'use strict' // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { "/sso": { target: "http://101.251.70.142:8888",...
import React, { Component } from 'react'; import { withStyles, Button, Card, CardContent, TextField, Typography } from '@material-ui/core'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import api from '../../ApiConfig'; import _ from 'lodash'; const styles = theme => ({ root: { b...
# -*- coding: utf-8 """Steps for behavioral style tests are defined in this module. Each step is defined by the string decorating it. This string is used to call the step in "*.feature" file. """ from __future__ import unicode_literals from behave import when from textwrap import dedent import tempfile import wrappe...
Ext.define('CR.app.model.AnnotationTaskModelByProcessId', { extend: 'CR.app.model.CRModelBase', fields: ['task'], proxy: { type: 'rest', url : 'annotation/getTask', reader: { type: 'xml', record: 'tasks' } } });
import { BookReducer } from './BookReducer'; // import { OtherReducer } from './otherReducer'; import { combineReducers } from 'redux'; export const Reducers = combineReducers({ BookState: BookReducer // , otherState: otherReducer });
function show_loading_skeleton(){ show_results() document.getElementById("results-pannel").style.display = 'none' document.getElementById("results-pannel-loading").style.display = '' } function show_results(){ document.getElementById("show-tec").style.color = "#f0f1f670" document.getElement...