text
stringlengths
3
1.05M
(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{365:function(e,a,n){"use strict";n.r(a);var r=n(3),w=n(63),o=n(5),c=n(2),s=n(4);new r.a({layers:[new o.a({source:new w.a({layer:"watercolor"})}),new o.a({source:new w.a({layer:"terrain-labels"})})],target:"map",view:new c.a({center:Object(s.g)([-122.416667,37.7...
$(document).ready(function() { // Debug Button $('#btn-debug').click(function() { $('#console-debug').toggleClass('hide'); }); // Delete Button $('.btn-delete').on('click', function() { var selected = $(this).attr('id'); var postid = selected.split('del_')...
export default { methods: { genPickerButton (prop, value, content, staticClass = '') { const active = this[prop] === value; const click = event => { event.stopPropagation(); this.$emit(`update:${prop}`, value); }; return this.$createElement('div', { staticClass: `p...
/*! * jQuery postMessage - v0.5 - 9/11/2009 * http://benalman.com/projects/jquery-postmessage-plugin/ * * Copyright (c) 2009 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Script: jQuery postMessage: Cross-domain scripting goodness // // *Version: ...
var menudata={children:[ {text:"Overview",url:"index.html"}, {text:"APIs",url:"globals.html",children:[ {text:"All",url:"globals.html",children:[ {text:"d",url:"globals.html#index_d"}, {text:"m",url:"globals.html#index_m"}, {text:"s",url:"globals.html#index_s"}, {text:"x",url:"globals.html#index_x"}]}, {text:"Functions...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { BasePortalHost } from './portal'; /** * A PortalHost for attaching portals to an arbitrary DOM element outside of the Angular * application context. * * This is the only part of the portal core that ...
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import _typeof from "@babel/runtime/helpers/esm/typeof"; export var STATUS_ADD = 'add'; export var STATUS_KEEP = 'keep'; export var STATUS_REMOVE = 'remove'; export var STATUS_REMOVED = 'removed'; export function wrapKeyToObject(key) { var keyObj; ...
# -*- coding: utf-8 -*- # pylint: disable-msg=too-few-public-methods, redefined-outer-name, no-self-use """This file contains the classes used to perform integration tests on the methods in the SoCo class. They access a real Sonos system. PLEASE TAKE NOTE: All of these tests are designed to run on a Sonos system with...
import React, { useRef, useEffect, useContext } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Header from './header'; import Menu from './Menu'; import Sidebar from './Sidebar'; import { useWindowSize } from '../lib/useWindowSize'; import { mediaQueries, screenSizes }...
import { createLocalVue, mount } from '@vue/test-utils' import { Identities } from '@arkecosystem/crypto' import Vuelidate from 'vuelidate' import installI18n from '../../../__utils__/i18n' import { TransactionFormDelegateResignation } from '@/components/Transaction/TransactionForm' import CurrencyMixin from '@/mixins/...
from sklearn.decomposition import PCA import matplotlib.pyplot as plt import numpy as np N = 500 mu = [5, 4] theta = np.radians(-30) c, s = np.cos(theta), np.sin(theta) R = np.array(((c,-s), (s, c))) gnr = np.random.randn(N, 2)*[3, 1] print(gnr.shape) plt.plot(*gnr.transpose(), 'o') gnr = np.dot(gnr, R) + mu plt.plot...
import operator from typing import Optional, Any from pybm.exceptions import PybmError from pybm.logging import get_logger logger = get_logger(__name__) class StateMixin: """ State getter and setter methods based on dotted attribute access. Usage works as follows: X.get_value("a.b") returns the nested ...
import React, { useEffect, useState } from "react"; import { Layout, Menu, Breadcrumb, Typography, Button, Spin } from 'antd'; import { MenuUnfoldOutlined, MenuFoldOutlined, GithubOutlined, WechatOutlined, UserOutlined } from '@ant-design/icons'; import _service from '@netuno/service-client'; import ChatContainer f...
var mdb = require('../services/database'); module.exports = (app) => { app.get("/food", function(req,res){ console.log("entering /food route"); if (!(req.session && req.session.userID)){ console.log("no active session found."); return res.redirect("/"); } var isLogged = true; console...
'use strict'; window.gameState = flyd.stream(); function getLoadCommand() { return { tag: 'Load' }; } function getPlaceCommand(row, column) { return { tag: 'Place', contents: [row, column] }; } function getDebugCommand(text) { return { tag: 'Debug', contents: text }; } function getC...
# -*- coding: utf-8 -*- import pytest from tests.utils import Rule, CorrectedCommand from thefuck import corrector, const from thefuck.system import Path from thefuck.types import Command from thefuck.corrector import get_corrected_commands, organize_commands @pytest.fixture def glob(mocker): results = {} mo...
# -*- coding: utf-8 -*- # import json import boto3 import json from .zebra_utils import FourfrontStarter from tibanna import create_logger logger = create_logger(__name__) def start_run(input_json): ''' this is generic function to run awsem workflow based on the data passed in workflow_uuid : for n...
var values = [0, null, true, "foo", false, -1 / 0, void 0]; values.forEach(function (x) { values.forEach(function (y) { values.forEach(function (z) { console.log(x ? y || z : z); }); }); });
(function () { 'use strict'; angular .module('qorDash.configurations', [ 'qorDash.configurations.services', 'qorDash.configurations.services.state', 'qorDash.configurations.services.state.files', 'qorDash.configurations.services.state.files.files-view', ...
var gulp = require("gulp"); var sourcemaps = require("gulp-sourcemaps"); var babel = require("gulp-babel"); var concat = require("gulp-concat"); var minify = require("gulp-minify"); const eslint = require('gulp-eslint'); var webpackStream = require('webpack-stream'); var webpack2 = require('webpack'); gulp.task("defa...
""" @brief test log(time=2s) """ import unittest from logging import getLogger import copy import json import base64 import lzma import numpy from pandas import DataFrame from pyquickhelper.pycode import ExtTestCase try: from pyquickhelper.pycode.unittest_cst import decompress_cst except ImportError: deco...
/** * @fileoverview added by tsickle * Generated from: src/cdk/a11y/a11y-module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is gov...
$.extend({ menuInWidth: 1240, hideOnMask: [], minWidth: 760, fixedClick: function() { FastClick.attach(document.body); }, page: function () { var $elements = $('.fade, .fade-scale'); var visible = false; return { loaded: function () { $elements.each(function () { $(this).addClass('in') });...
function editorOnLoad(){ if(localStorage[this.questionID]!=null){ this.setMarkdown(localStorage[this.questionID]); } } function editorOnChange(){ localStorage[this.questionID] = this.getMarkdown(); }
const express = require('express'); const cors = require('cors'); const db = require('./models'); const response = require('./middlewares/response'); const checkJwt = require('./middlewares/jwt'); const authController = require('./controllers/auth'); const linkController = require('./controllers/link'); const app = e...
import Vue from 'vue' function format(n) { return Math.round(n).toLocaleString() } Vue.filter('format', format) // test
# -------------------------------------------------------------------------- # 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 cause incor...
function p2kwiet2060628854968_button1181029310123343_onClick_seq0(eventobject) { frmCrypto.show(); }
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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...
Search.setIndex({docnames:["afterword","appendix","bibliography","index","interactive_shell","interfaces","introduction","latex","programming","sagetex","tour","tour_advanced","tour_algebra","tour_assignment","tour_coercion","tour_functions","tour_groups","tour_help","tour_linalg","tour_numtheory","tour_plotting","tour...
import os import subprocess import tkinter filename_noext = input(']>> ') filename_text = filename_noext.replace('.txt', '') filename_text = filename_noext + '.txt' filename_ghost = filename_noext + '_render.ps' filea = open(filename_text, 'r') lines = filea.read() lines_split = lines.split('\n') lines_height = len...
// @ts-check import '../../exported'; import { assert, details } from '@agoric/assert'; import { makePromiseKit } from '@agoric/promise-kit'; import { E } from '@agoric/eventual-send'; import { assertProposalShape, depositToSeat, natSafeMath, trade, assertUsesNatMath, } from '../contractSupport'; const { su...
# -*- coding: utf-8 -*- """File generated according to pyleecan/Generator/ClassesRef/Machine/Machine.csv WARNING! All changes made in this file will be lost! """ from os import linesep from logging import getLogger from ._check import check_var, raise_ from ..Functions.get_logger import get_logger from ..Functions.sav...
/* * Copyright (C) 2008 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...
# 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 # distributed under th...
(function (vc) { var DEFAULT_ROWS = 10; vc.extends({ propTypes: { emitListener: vc.propTypes.string, emitFunction: vc.propTypes.string }, data: { chooseInspectionRoutePointInfo: { points: [], inspectionName: '', ...
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # import datetime import logging from typing import Callable, Iterable, List, Type from volatility3.framework import renderers, inter...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _SvgContainer = require('./SvgContainer'); var _SvgContainer2 = _interopRequireDefault(_SvgContainer); function _interopRequireDefault(obj) { return obj &...
#!/usr/bin/env node /* jshint esversion: 6 */ /* eslint "no-console": off */ const fs = require('fs'); const path = require('path'); const process = require('process'); const http = require('http'); const https = require('https'); const util = require('util'); const xmldom = require('@xmldom/xmldom'); const json = r...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _User = _interopRequireDefault(require("./User")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default"...
import React from "react" const Send = props => { return ( <button type={props.type}> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g data-name="Layer 2"> <g data-name="paper-plane"> <rect width="24" height="24" opacity="0" /> <path d="M21 4a1.31 1....
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+ZDr":function(t,e,n){"use strict";n("2Spj"),n("0l/t"),n("8+KV"),n("pIFo");var r=n("TqRt");e.__esModule=!0,e.withPrefix=h,e.withAssetPrefix=function(t){return[""].concat([t.replace(/^\//,"")]).join("/")},e.navigateTo=e.replace=e.push=e.navigate=e.default=void 0;...
export const setSearchTerm = (state, searchPattern) => ({ search: {...state.search, pattern: searchPattern} })
#!/usr/bin/env python3 # arp_spoof.py # Goal -> Perform man-in-the-middle via ARP spoofing # steps: Craft Packets to Victim and Gateway # Get MAC address for targets # Keep sending packets until finished with attack # Restore ARP tables of Victim and Gateway import argparse import time import subpr...
const call2 = (a,b,c) => (() => a(b,c)); const smoothYScrool = (diff, time) => { window.scrollBy(0, Math.ceil(diff/time)) if (time > 0) setTimeout(call2(smoothYScrool, diff - Math.ceil(diff/time), time-1), 1) } const smooth = (id) => { let origin = window.pageYOffset let destination = document...
import request from '@/utils/request' export function fetchList(query) { return request({ url: '/backstage-service/channel/getChannel', method: 'get', params: query }) } export function fetchArticle(id) { return request({ url: '/vue-element-admin/company/detail', method: 'get', params: {...
/** * Copyright (c) 2015, 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. * * @providesModule F...
/** * Copyright 2015 Google Inc. 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...
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import components from './components'; // import services from './server' // import commonComponents from './commonComponents'; // import 'bootstrap/dist/css/bootstrap.css' import appRouter from './config/app.router'; import './assets/css/main.le...
jQuery(document).ready(function($){function n(n){var i=e();t.offset().top>$(window).scrollTop()&&"mobile"!=i?$("body,html").animate({scrollTop:t.offset().top},100,function(){o(n,!0)}):t.offset().top+t.height()<$(window).scrollTop()+$(window).height()&&"mobile"!=i?$("body,html").animate({scrollTop:t.offset().top+t.heigh...
var searchData= [ ['util_20functions',['Util functions',['../group__UTIL.html',1,'']]] ];
const Command = require("../../structures/Command"); const Discord = require("discord.js"); const Emotes = require("../../emotes.json"); module.exports = class extends Command { constructor(...args) { super(...args, { description: "Returns the amount of badges in the server", category: "Bot", usage: "!badg...
import * as React from "react"; var ClrKeyAlerted = function() { return React.createElement( "svg", { version: "1.1", viewBox: "0 0 36 36", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", focusable: "false", role: "img", xmlnsXlink: "http://...
import { SET_PATIENT, SET_GOALS, CHANGE_GOAL } from "./actionType"; import defaultGoals from "../defaultGoals.js"; export const initialState = { googleId: "", firstname: "", lastname: "", fullname: "", email: "", datasets: [ { name: "55423-8", measurements: [] }, { name: "29463-7", measurements: []...
import React, { PureComponent } from 'react' import Table from 'components/tables/Table/Table' import styles from 'components/tables/Table/Table.scss' import RowHistory from './RowHistory/RowHistory' export default class SwapsHistory extends PureComponent { render() { let { orders } = this.props const tit...
import sphinx from sphinx.ext.autosummary import * from distutils.version import LooseVersion class FixedAutosummary(Autosummary): def get_items(self, names): """Try to import the given names, and return a list of ``[(name, signature, summary_string, real_name), ...]``. """ env = ...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /****...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getControllers = getControllers; exports.getLoggerController = getLoggerController; exports.getFilesController = getFilesController; exports.getUserController = getUserController; exports.getCacheController = getCacheController; exp...
/** @typedef {import("..").Incident} Incident */ /** * Returns the correct incident list for the provided status * * @param {'pending' | 'approved' | 'form-responses'} status * @param {import("..").AllIncidentsState} state * @returns {Incident[]} */ export function selectListByStatus(status, state) { switch (s...
import * as THREE from 'three'; const ctx = document.createElement('canvas').getContext('2d'); const Canvas_measureText = function(font, text) { ctx.font = font; return ctx.measureText(text); } const Array_max = function(array, iteratee) { if (array.length > 0) { return array.map(iteratee).reduce((previousValue...
const localLogger = require('../logger/')(); /** * Checks if the accessDenied callback or error text responded to an event * If so, log an error * Returns true or false in case the calling function needs to do more gating * Currently this function is only used to check permission results. * @param {*} re...
# Copyright 2020 The Merlin Authors # # 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 w...
read page
""" Classe Jogo que tem a responsabilidade de representar um jogo do mundo real """ class Jogo(object): """ construtor da classe com os seguintes parâmetros nomeJogo : string, categoria : string, idadeMinima: número, imagem : string, descricao: string """ d...
import jwt from 'jsonwebtoken'; /** * @typedef {Object<string, any>} Profile * @typedef {{ * id: string, uniqueId: string, email: string, fullname: string * phone: string, level: string, secretKey:string * }} UserData * * @typedef {{ * id: string, uniqueId: string, email: string, * phone: string, accountT...
'use strict'; const Prompt = require('../prompt'); const { isPrimitive, hasColor } = require('../utils'); class BooleanPrompt extends Prompt { constructor(options) { super(options); this.cursorHide(); } async initialize() { let initial = await this.resolve(this.initial, this.state); this.input ...
module.exports = { preset: 'jest-expo', setupFilesAfterEnv: ['./jest.setup.js'], transformIgnorePatterns: [ 'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-ba...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { Provider } from './createContext'; // const LocalStorage = typeof window !== 'undefined' && window.localStorage; // The provider, which holds the page-wide store and its actions. // Feel free to abstract actions and state away from t...
"""Verify that the PyTorch power normalization works. """ __author__ = "Bryse Flowers <brysef@vt.edu>" # External Includes from itertools import product import numpy as np import torch from unittest import TestCase # Internal Includes from rfml.nn.layers import PowerNormalization class TestPowerNormalization(TestCa...
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * from app import app @app.route('/custom_views') def index(): return 'hello cust'
""" Annalist record field description """ from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import logging log...
const { environment } = require('@rails/webpacker') const webpack = require("webpack") environment.plugins.append("Provide", new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', Popper: ['popper.js', 'default'] })) module.exports = environment
/* * OpenSeadragon - Drawer * * Copyright (C) 2009 CodePlex Foundation * Copyright (C) 2010-2013 OpenSeadragon contributors * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * - Redistributions of source cod...
''' UploadedBundle is a abstract Bundle supertype that represents a bundle that is directly uploaded to the bundle store. Uploaded bundles are constructed with just a bundle store data hash and a metadata dict, and never need to be run. ''' from codalab.bundles.named_bundle import NamedBundle from codalab.objects.metad...
// DOM 查询, 对 document.querySelector 的简单封装,添加了 id 查询, // getElementById 和 getElementsByClassName 查询性能更好 // jsPerf: https://jsperf.com/getelementbyid-vs-queryselector/25 exports.query = function (container, elStr) { var d , el if(container && container.COMMENT_NODE) d = container else d = document if (elStr[0] ...
# Copyright S.CARLIOZ - 2018 # MIT licence. Use, share, improve, cheers ! """ Module for the background of the loading bar: - ILoadingBackground is an interface class which represents the background of the loading bar; - StandardLoadingBackground inherits from ILoadingBackground and has the default...
const checks = require('../../checks'); const evaluateConstantSum = require('./evaluateConstantSum'); const ChangeTypes = require('../../ChangeTypes'); const Node = require('../../node'); // If possible, adds together a list of nodes . Returns a Node.Status object. function addLikeTerms(node, polynomialOnly=false) { ...
export default class Interval { constructor (delay, type) { this.delay = delay this.id = null this.startTime = null this.type = type } code () { console.log('Interval code') } set () { this.id = setInterval(this.code.bind(this), this.delay) this.startTime = new Date().getTime() ...
for (var i of foo) { switch (i) { case 1: break; } }
import { requestedCluster, retrievedCluster } from "../features/clusterlist/slice"; import { doRetryOnTokenExpiration } from "../authSlice"; import { apiUrl } from "../const"; export default (clusterId): AppThunk => async (dispatch, getState) => { dispatch(requestedCluster({ clusterId })); const result = await doR...
import React, { useEffect, useRef } from "react"; import { Link } from "gatsby"; // STYLED-COMPONENT import { HeaderNav, Logo, Menu } from "../styles/headerStyles"; import { Container, Flex } from "../styles/globalStyles"; // CUSTOM-HOOK import useElementPosition from "../hooks/useElementPosition"; // Context import...
// Do not edit this file; automatically generated by build.py. 'use strict'; // Copyright 2014 Google Inc. Apache License 2.0 Blockly.C=new Blockly.Generator("C");Blockly.C.type="wink";Blockly.C.addReservedWords("auto","else","long","switch","break","enum","register","typedef","case","extern","return","union","char"...
var plugin = { register: function (server, options, next) { var routes = [ { method: 'POST', path: '/', handler: function (request, reply) { var payload = request.payload server.log('info', payload) reply(payload) } } ] // add de...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk"),require("@angular/common"),require("@angular/cdk/coercion"),require("rxjs"),require("@angular/cdk/platform"),require("rxjs/operators"),...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56ee6c4f"],{3047:function(e,s,t){},7115:function(e,s,t){"use strict";t.r(s);var A=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page flex-col"},[t("Header"),t("div",{staticClass:"page-box",on:{click:e.openApp}},[e....
import { CREATE_USER, CREATE_USER_SUCCESS, CREATE_USER_FAIL } from './constants'; export const addUser = () => ({ type: CREATE_USER }) export const addUserSuccess = (data) => ({ type: CREATE_USER_SUCCESS, data, }) export const addUserFail = (error) => ({ type: CREATE_USER_FAIL, error, })
const dotenv = require("dotenv") if (process.env.NODE_ENV !== "production") { dotenv.config() } module.exports = { siteMetadata: { title: `NKS`, description: `Full Stack Web Engineer React | Node | Mongo | Express`, author: `@nicolaskao`, siteUrl: "https://wizardly-nightingale-07f855.netlify.com/"...
_base_ = [ './base_cfg.py', './model_cfgs/transloc3d_cfg.py', './dataset_cfgs/university_cfg.py' ] task_type = 'default_me' optimizer_type = 'Adam' optimizer_cfg = dict( lr=2e-5, weight_decay=0, betas=(0.9, 0.999), ) scheduler_type = 'MultiStepLR' scheduler_cfg = dict( gamma=0.2, mil...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * @providesModule DocsSidebar * @jsx React.DOM */ var Metadata = require('Metadata'); var React = require('React'); var Container = require('Container'); var SideNav = require('SideNav'); var DocsSidebar = React.createClass({ getCategories: function...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Emoji implementation. */ goog.provide('goog.ui.emoji.Emoji'); /** * Creates an emoji. * * A simple wrapper for an emoji. * * @param {string} url URL pointing to the source image for the e...
const playwright = require('playwright'); const path = require('path'); const serverProcess = require('child_process').fork(path.resolve(__dirname, '..', 'web_server'), { env: { PLAYWRIGHT_TEST: 1 }, }); const port = process.env.PORT || 3000; const host = 'localhost'; const browserEnv = process.env.PLAYWRIGHT_BROWS...
# -*- coding: utf-8 -*- """ This subpackage is the collection of some usefully utils :Author: Verf :Email: verf@protonmail.com :License: MIT """ from .logger import logger __all__ = [ 'logger', ]
const generateBufferPosition1 = require('./generateBufferPosition1.js'); const [,, input,] = process.argv; const pos1Generator = generateBufferPosition1({ steps: parseInt(input, 10) }); const pos1AtElement = (element) => { for(const { currentElement, pos1 } of pos1Generator) { if (currentElement === element) { ...
import {registry} from '@jahia/ui-extender'; import register from './PersonalApiTokens.register'; export default function () { window.jahia.i18n.loadNamespaces('personal-api-tokens'); registry.add('callback', 'personal-api-tokens', { targets: ['jahiaApp-init:99'], callback: register }); }
import copy import logging import mxnet as mx from mxnet import gluon, nd from ...core.optimizer import * from ...core.loss import * from ...core import * from ...searcher import * from ...scheduler import * from ...scheduler.resource import get_cpu_count, get_gpu_count from ..base import BaseTask from ...utils impor...
const request = require('supertest') const app = require('../../../app') const TicTacToe = require('../logic/tictactoe') const game = new TicTacToe() describe('GET /api/update/:cell', () => { it('should return an object with a updated game (new move has been made)', async () => { const cell = '0,0' const res...
# Generated by Django 2.1.2 on 2018-12-05 09:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Camelot', '0006_product_shoppingcart'), ] operations = [ migrations.AddField( model_name='product', name='shopid', ...
var util = require('util'); var async = require('async'); var assert = require('assert'); var Connector = require('./connector'); var debug = require('debug')('loopback:connector:sql'); var ParameterizedSQL = require('./parameterized-sql'); var Transaction = require('./transaction'); var assign = require('./utils').ass...