text
stringlengths
3
1.05M
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
/** * @license * Copyright 2018-2022 Streamlit 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 applicab...
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 kyuupichan@gmail # # 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 withou...
class Solution: def XXX(self, nums: List[int]) -> bool: pos=len(nums)-1 while pos>0: pre=pos-1 while pre>=0: if nums[pre]+pre>=pos: pos=pre break else: pre-=1 if pre<0:...
import React from "react"; import "./styles/App.css"; import firebase from "firebase/app"; import "firebase/firestore"; import "firebase/auth"; import { useAuthState } from "react-firebase-hooks/auth"; import ChatRoom from "./components/ChatRoom"; import SignIn from "./components/SignIn"; import SignOut from "./compone...
// This is a convenience wrapper for reading and writing files in the 'refs' directory. import { InvalidOidError } from '../errors/InvalidOidError.js' import { NoRefspecError } from '../errors/NoRefspecError.js' import { NotFoundError } from '../errors/NotFoundError.js' import { GitPackedRefs } from '../models/GitPacke...
var tape = require("tape"), topojson = require("../"); tape("merge ignores null geometries", function(test) { var topology = { "type": "Topology", "objects": {}, "arcs": [] }; test.deepEqual(topojson.merge(topology, [{type: null}]), { type: "MultiPolygon", coordinates: [] }); test.end...
import $ from "../constructor"; $.prototype.first = function() { return this.get(0) || null; };
const { AuthenticationError } = require("apollo-server-express"); const { MusicianUser, Venue } = require("../models"); const { tokenise } = require("../utils/tokenise"); const login = async (_, { input }) => { const { email, password } = input; const musicianUser = await MusicianUser.findOne({ email }); if ...
import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from 'src/redux/reducers'; import { persistStore, persistReducer } from 'redux-persist' import storage from 'redux-persist/lib/storage' // defaults to localStorage for web const persistConfig = { key: 'root', ...
""" Copyright 2013 Steven Diamond 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...
/** * @license * Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris) * * This sofware is provided under multiple licenses. Please see below for * links to appropriate usage. * * Free amCharts linkware license. Details and conditions: * https://github.com/amcharts/amcharts4/blob/master/LICENSE *...
import { combineReducers } from 'redux' let defaultConfig = { hueIP: '192.168.0.18', hueUser: 'gDiIztNg3YZOQF3ASNLHlrDj7SppTwLT-12-C-cs' } defaultConfig["apiUrl"] = `http://${defaultConfig.hueIP}/api/${defaultConfig.hueUser}`; function config (state = defaultConfig, action) { switch (action.type) { ...
//>>built define("dojox/sketch/Figure","dojo/_base/kernel dojo/_base/lang dojo/_base/connect dojo/_base/html ../gfx ../xml/DomParser ./UndoStack".split(" "),function(d){d.experimental("dojox.sketch");var e=dojox.sketch;e.tools={};e.registerTool=function(a,b){e.tools[a]=b};e.Figure=function(a){var b=this;this.annCounter...
"use strict" const os = require(`os`) const fs = require(`fs-extra`) const { cli } = require(`@nodeguy/cli`) var path = require(`path`) const homeDir = require(`os`).homedir() const appDir = path.resolve(__dirname + `/../../../`) let { spawn, exec } = require(`child_process`) const optionsSpecification = { overwri...
const hex = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "A", "B", "C", "D", "E", "F"] let state = false //? color picker let picker = () => { if (state == false) { let second = document.querySelector(".second") second.style.display = "flex" state = true } else { let second = document.querySelector(".second") second.st...
import { bundleMDX } from 'mdx-bundler' import fs from 'fs' import matter from 'gray-matter' import path from 'path' import readingTime from 'reading-time' import { visit } from 'unist-util-visit' import getAllFilesRecursively from '@/lib/utils/files' // Remark packages import remarkGfm from 'remark-gfm' import remarkF...
const mongoose = require('mongoose'); const { Schema, model } = mongoose; const Job = require('./Job'); const bcrypt = require('bcrypt'); const userSchema = new Schema( { username: { type: String, required: true, unique: true, trim: true }, email: { type: String, requi...
import {join} from 'path' import http from 'http' import Koa from 'koa' import koaBodyParser from 'koa-bodyparser' import R from 'ramda' import chalk from 'chalk' import {sequelize} from "./middleware/database"; import {socket} from "./middleware/websocket"; import { systemLogger } from "../config/logger"; const MIDDL...
import { module, skip /* test */ } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Controller | admin/slots', function(hooks) { setupTest(hooks); // Replace this with your real tests. skip('it exists', function(assert) { let controller = this.owner.lookup('controller:admin/slots'); ...
define([ 'dojo/_base/declare', 'dojo/_base/array', 'dojo/_base/lang', 'dojo/on', 'dojo/Evented', './LayerInfos/LayerInfos' ], function(declare, array, lang, on, Evented, LayerInfos) { var clazz = declare([Evented], { declaredClass: "jimu.LayerStructure", map: null, _layerInfos: null...
import test from 'ava' import { hashAnything } from './digest.js' test('Test hash anything - mix of variables, objects, arrays, strings etc.', async (t) => { const a = 'test' const b = [11, 22, 33] const c = { a: 1, b: [1, 2, 3], c: 'test' } const d = 123213 const hash = await hashAnything(a, b, c, d) t.is...
module.exports = new Date(2011, 6, 10)
import dayjs from 'dayjs/esm' import localeData from 'dayjs/plugin/localeData' import minMax from 'dayjs/plugin/minMax' import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' import isSameOrAfter from 'dayjs/plugin/isSameOrAfter' dayjs.extend(localeData) dayjs.extend(minMax) dayjs.extend(isSameOrBefore) dayjs.extend...
const path = require('path'); module.exports = { description: 'disallows duplicate imports', error: { code: 'PARSE_ERROR', message: `Identifier 'a' has already been declared`, parserError: { loc: { column: 9, line: 2 }, message: "Identifier 'a' has already been declared (2:9)", pos: 36, ...
"""Changing recording to input, and moving tags to json Revision ID: 93a369d8ac64 Revises: 928495730715 Create Date: 2018-05-28 17:14:59.127304 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '93a369d8ac64' down_revision = 'c872ccb5ecf2' branch_labels = None de...
const foreach = require('guld-fs-foreach') const spawn = require('guld-spawn').getSpawn() async function strReplace (oldstr, newstr, args) { return foreach(args[0], async f => { if (f === '') return var resp = await spawn('sed', '', ['-i', `s/${oldstr}/${newstr}/g`, f], true) return resp }, args.slice(...
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) Greg Davill <greg.davill@gmail.com> # SPDX-License-Identifier: BSD-2-Clause import os import sys import argparse from migen import * from migen.genlib.misc import WaitTimer from migen.genlib.resetsync import AsyncResetSynchronizer from ...
import { combineReducers } from 'redux'; import commandHistoryStorage from './commandHistoryStorage'; import fileStorage from './fileStorage'; import workspaceStorage from './workspaceStorage'; export default combineReducers({ commandHistoryStorage, fileStorage, workspaceStorage, });
import GroupService from '@baserow/modules/core/services/group' /** * Mixin that fetches a group invitation based on the `groupInvitationToken` query * parameter. If the token is not found, null will be added as invitation data value. */ export default { async asyncData({ route, app }) { const token = route.q...
import axios from 'axios'; export default { all() { return axios.get('/api/orders'); }, find(id) { return axios.get(`/api/orders/${id}`); }, update(id, data, config) { return axios.post(`/api/orders/${id}`, data, config); }, updateAll(data) { return axios.pos...
import {TestResults} from '@cdo/apps/constants'; module.exports = { app: 'turtle', levelFile: 'levels', levelId: '4_10', tests: [ { description: 'Top Solve: Repeat 9x', expected: { result: true, testResult: TestResults.ALL_PASS }, timeout: 30000, missingBlocks:...
import os import pika import sys import pyowm import json from pika import PlainCredentials OWM_API_KEY = os.getenv("OWM_API_KEY", "") RAW_GEOLOCATION_QUEUE = "rawGeoLocations" WETTER_QUEUE = "gefundenesWetter" owm = pyowm.OWM(OWM_API_KEY) connection = pika.BlockingConnection( pika.ConnectionParameters('192.168....
"use strict"; exports.__esModule = true; exports.CmdButton = exports.CmdDiv = exports.CmdSwitch = exports.CmdCheckbox = exports.withCommand = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prot...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.1.1 (2019-10-28) */ !function(){"use strict";function e(...
define({ "map": { "error": "Impossível criar mapa" }, "tools": { "search": { "error": "A localização não pode ser encontrada", "notWhatYouWanted": "Não é o que queria?", "selectAnother": "Selecionar outra localização", "currentLocation": "Localização Atual", "title": "localiz...
// (C) Copyright 2015 Martin Dougiamas // // 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 agre...
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div className="search-bar"> <input value={this.state.term} onChange={event => this.onInputChange(event.target.value)} /> </...
import React from "react" import { graphql } from "gatsby" import contentParser from "gatsby-wpgraphql-inline-images" const Post = props => { const pluginOptions = { wordPressUrl: `http://wpgraphql.local/`, uploadsUrl: `http://wpgraphql.local/wp-content/uploads/`, } const { // location, pageConte...
// app.js App({ onLaunch() { // 在应用程序启动时获取系统信息 const systemInfo = wx.getSystemInfoSync() // 屏幕宽度、高度不会变,没有必要去使用响应式的全局状态管理 hy-event-store,直接存在 app 的 globalData 中即可 this.globalData.screenWidth = systemInfo.screenWidth this.globalData.screenHeight = systemInfo.screenHeight }, globalData: { scr...
import React, { useState } from 'react' import { useSelector, useDispatch } from 'react-redux' import { useNavigation } from '@react-navigation/native' import { View, ScrollView, VStack, FormControl, Input, Button, Text, Avatar } from 'native-base' import { updateUser } from '../features/auth' import Container from '.....
global.scriptsFolder = __dirname + "/../scripts/"; global.pagesFolder = __dirname + "/../gh-pages/"; global.winston = require('winston'); winston.remove(winston.transports.Console); winston.add(winston.transports.Console, { colorize: true, timestamp: true }); var express = require('express'); var path = requir...
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Story from './../Story/index'; import { switchMode } from './actions'; import SplashScreen from '../Story/StoryLoader'; const editMode = () => <Story storyMode="edit" />; const viewMode = () => <Story s...
function tabuada() { let num = document.getElementById('txtn') let tab = document.getElementById('seltab') if (num.value.length == 0) { window.alert(' Por favor digite um número') } else { let n = Number(num.value) lent = c = 1 tab.innerHTML = ' ' while (c <= 10) ...
export class StarRatingView { constructor(element) { this.element = element; this.inputElement = element.querySelector("input"); this.createUI(); this.listenForStarMouseEvents(); } createUI() { const min = parseInt(this.inputElement.min, 10); const max = p...
(function () { function d(a, b) { l.call(this, a, b); this.actualConfig = this.originalConfig = this.removedButtons = null; this.emptyVisible = !1; this.state = "edit"; this.toolbarButtons = [{ text: {active: "Hide empty toolbar groups", inactive: "Show empty too...
# Copyright (c) 2018 Cisco and/or its affiliates. # 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 ag...
''' Compute concordance index ''' # Modules # ======================================================================================================================= import os import sys import glob import subprocess import tqdm import importlib os.chdir('/nfs/research1/gerstung/sds/sds-ukb-cancer/projects/ProbCox/')...
/** * Main JS file for Paperleaf behaviours */ /* globals jQuery, document */ (function ($, undefined) { "use strict"; var $document = $(document); $document.ready(function () { /** * FitVids.js for responsive videos */ var $postContent = $(".post-content"); $postContent.fitVids(); ...
/* eslint-disable react/jsx-no-bind */ import React, { Component } from 'react'; import { render } from 'react-dom'; import FrequencyMeter from 'react-fm'; class App extends Component { static propTypes = { audioContext: React.PropTypes.object, fileName: React.PropTypes.string }; static d...
export default "<meta charset=\"utf-8\"><span style=\"font-size:14px;font-family:Arial;color:#252525;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;\" id=\"docs-internal-guid-af43648c-43e0-a996-6b08-68384b28b868\">XXX</span>";
const HashTagModel = require("./hashTagModel"); const HashTagMaster = require("../hashTagMaster/hashTagMasterModel"); const HashTagMasterService = require("../hashTagMaster/hashTagMasterService"); const createHashTag = (body,callback)=>{ if(body.hashTagId != null || body.hashTagId != undefined){ let newT...
// Copyright 2018 Bartosz Jaroszewski // SPDX-License-Identifier: GPL-2.0-or-later // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) a...
import mock from libmproxy import controller class TestMaster: def test_default_handler(self): m = controller.Master(None) msg = mock.MagicMock() m.handle("type", msg) assert msg.reply.call_count == 1
import PropTypes from 'prop-types'; import React from 'react'; import { Grid } from 'react-flexbox-grid/lib'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { sendPasswordReset } from '../../actions/userActions'; import ChangePasswordForm from './ChangePasswordForm'; import { a...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// TODO: in future try to replace most inline compability checks with polyfills for code readability // element.textContent polyfill. // Unsupporting browsers: IE8 if (Object.defineProperty && Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(Element.prototype, "textContent") && !Object.getOwnProper...
var Dotenv = require('dotenv-webpack'); module.exports = { entry: './src/main/js/app.jsx', devtool: 'sourcemaps', cache: true, mode: 'development', output: { path: __dirname, filename: './src/main/resources/static/built/bundle.js' }, node: { net: 'empty',...
const jwt = require('jsonwebtoken'); const secret = process.env.NODE_ENV === 'production' ? process.env.JWT_SECRET : 'secret'; const authService = () => { const issue = payload => jwt.sign(payload, secret, { expiresIn: 10800 }); const verify = (token, cb) => jwt.verify(token, secret, {}, cb); return { issu...
// Module dependencies const logger = require('../../config/logger'); const manager = require('./news.manager'); const rockol = require('../../sources/rockol/rockol.wrapper'); const rollingStone = require('../../sources/rollingstone/rollingstone.wrapper'); const soundsBlog = require('../../sources/soundsblog/soundsblo...
""" Dialogs that query users and verify the answer before accepting. Query is the generic base class for a popup dialog. The user must either enter a valid answer or close the dialog. Entries are validated when <Return> is entered or [Ok] is clicked. Entries are ignored when [Cancel] or [X] are clicked. The 'return va...
'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin; }); process.stdin.on('end', _ => { inputString = inputString.trim().split('\n').map(string => { retur...
/** * @license AngularJS v1.3.10 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function() {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows: * * var exampleMinErr = minErr('example'); *...
/* * Copyright 2018 TWO SIGMA OPEN SOURCE, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
var a = require("../lib/actions") var sq = require("../lib/spawnQueue") var motion = require("../lib/motion") const u = require("../lib/utils") const settings = require("../config/settings") var rM = { name: "remoteMiner", type: "miner", /** @param {Creep} creep **/ run: function(creep) { if(c...
const merge = require('webpack-merge'); const distCommonWebpackConfig = require('./webpack.dist.common.conf'); module.exports = merge(distCommonWebpackConfig, { entry: { "/lib.rem/actionsheet/index": "./src/components/actionsheet/index.js", "/lib.rem/badge/index": "./src/components/badge/index.js",...
(function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory ); } else { // Browser globals factory( jQuery ); } }(function( $ ) { /*! * jQuery UI AreaSelector 1.0.0 * https://github.com/borgboyone/jquery-ui-areaselector...
from setuptools import setup setup( name="timekeeper", version="0.1.1", description="Send runtime measurements of your code to InfluxDB", author="Torsten Rehn", author_email="torsten@rehn.email", license="ISC", url="https://github.com/trehn/timekeeper", keywords=["profiling", "profile"...
/* * /MathJax/jax/element/mml/optable/BasicLatin.js * * Copyright (c) 2009-2013 The MathJax Consortium * * 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...
var Users = function () { grid = null; responseUsers = []; return { init: function() { grid = new Datatable(); grid.init({ src: $("#users-table"), onSuccess: function (e) { }, onError: function (e) { }, loadingMessage: "Loading...", dataTable: ...
""" Copyright (c) 2015-2022 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from collections import namedtuple import json from pathlib import Path from typing import Any, Dict from atomic_reactor.plugins.fetch_d...
"use strict"; "undefined" != typeof AOS && AOS.init({ duration: 700, easing: "ease-out-quad", once: !0, startEvent: "load", }), (function () { var e = document.querySelectorAll(".card-stack"), o = ["load", "resize", "scroll"]; [].forEach.call(e, function (e) { var t = e.querySe...
#!/usr/bin/env python3 # # Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R remove_epsilon_test_py import unittest import k2 class TestRemoveEpsilon(unittest.TestCase): def...
import codepen from './codepen' import repl from './repl' import codesandbox from './codesandbox' export const editorsEndpoints = wrapper => ({ codepen: codepen(wrapper), repl: repl(wrapper), codesandbox: codesandbox(wrapper) })
// login.js //明文密码插件初始化 $(function(){ $('#password').togglePassword({ el: '#togglePassword' }); }); $(function(){ //用JS原生方法实现JQuery的toggle()方法 function hasClass(obj, cls) { return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')); } function addClass(obj, cls) { if (!this.has...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Schedule = void 0; class Schedule { constructor(triggerScheduler) { this.enabled = false; this.name = 'New Schedule'; this.triggers = []; if (triggerScheduler == null) { throw new Error(`...
'use strict'; app.controller('indexCtrl', ['$scope', '$http', '$settings', function indexCtrl($scope, $http, $settings) { // } ]);
# Copyright 2014 Openstack Foundation # 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 requ...
import os import shutil import logging import tensorflow as tf import tensorflow_text as text import tensorflow_hub as hub from official.nlp import optimization # to create AdamW optimizer AUTOTUNE = tf.data.AUTOTUNE SEED = 42 def load_datasets(hparams): """Load pre-split tf.datasets. Args: hparams(d...
////////////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014-present, Egret Technology. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // /...
const ReactNative = require('react-native'); const { AppCenterReactNative } = ReactNative.NativeModules; function format(tag, msg) { return `[${tag}] ${msg}`; } const AppCenterLog = { LogLevelVerbose: 2, LogLevelDebug: 3, LogLevelInfo: 4, LogLevelWarning: 5, LogLevelError: 6, LogLevelAsse...
define(["Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/style", "Ti/_/lang", "Ti/UI"], function(declare, KineticScrollView, style, lang, UI) { var isDef = lang.isDef, // The amount of deceleration (in pixels/ms^2) deceleration = 0.001; return declare("Ti.UI.ScrollView", KineticScrollView, { constructor:...
/** * Created by CCNC on 2018/4/25. * echo服务器是一个处理重复性事件的简单例子,当你给它发送数据时,它会把这个数据返回回来。 * telnet设置,参考https://blog.csdn.net/zryxh1/article/details/18951613 */ var net = require('net'); var server = net.createServer(function(socket){ socket.on('data', function(data){//用on方法响应事件 console.log(data.toString());//显示在nod...
/****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ module.exports = pe...
import {Data_Type} from '../../libs/byte_array/types.js'; export const Input_Type = { [Data_Type.text.value]: {value: Data_Type.text.value, name: Data_Type.text.name, default: true}, [Data_Type.hex.value]: {value: Data_Type.hex.value, name: Data_Type.hex.name, default: false}, [Data_Type.binary.value]: {va...
var gulp = require('gulp'); var plugins = require('gulp-load-plugins')({ rename: { 'gulp-buddy.js': 'buddy' } }); var buildConfig = require('../buildConfig'); var styleguide = require('sc5-styleguide'); var outputPath = 'public/assets/styleguide'; var config = require('../config'); module.exports = function() ...
import { isPresent, escape } from 'angular2/src/facade/lang'; /** * A message extracted from a template. * * The identity of a message is comprised of `content` and `meaning`. * * `description` is additional information provided to the translator. */ export class Message { constructor(content, meanin...
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{140:function(e){e.exports={pages:[{componentChunkName:"component---src-pages-index-zh-js",jsonName:"index",path:"/"},{componentChunkName:"component---src-pages-404-js",jsonName:"404-html-516",path:"/404.html"},{componentChunkName:"component---src-pages-404-js",j...
module.exports = { verbose: true, roots: ['<rootDir>'], clearMocks: true, moduleFileExtensions: ['js', 'ts', 'tsx', 'json'], testPathIgnorePatterns: [ '[/\\\\](node_modules|.cache|.vscode|coverage)[/\\\\]', ], coveragePathIgnorePatterns: [ '[/\\\\](node_modules|.cache|.vscode|coverage|test|GlobalS...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Foo(models.Model): name = models.CharField(max_length=50) friend = models.CharField(max_length=50, blank=True) def...
"""Base class for protect data.""" from __future__ import annotations from dataclasses import dataclass import logging from typing import Generator from homeassistant.core import callback from homeassistant.helpers.event import async_track_time_interval from pyunifiprotect.unifi_protect_server import NvrError _LOGGE...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = sidebar; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } function sideba...
import Delta from 'quill-delta'; import Quill from '../../core/quill'; import Module from '../../core/module'; import { TableCell, TableRow, TableBody, TableContainer, tableId, TableHeaderCell, TableHeaderRow, TableHeader, } from '../../formats/table/lite'; import { applyFormat } from '../clipboard'; im...
class AbstractSubscribableStoreQuery { changeParams() { throw new Error('Method not supported. Please create a new query.'); } changePartialParams() { throw new Error('Method not supported. Please create a new query.'); } setSubscribeStore(store) { this._subscribeStore = store; } getSubscri...
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Wrappers for the json returned by the ThreatExchange API to typed objects. """ import collections import typing as t from . import TE class ThreatDescriptor(t.NamedTuple): """ Wrapper around ThreatExchange JSON...
// this is an optional global configuration option for your <%= name.raw %> generator module.exports = { }
import React from 'react'; let defaultOptions = { bindI18n: 'languageChanged', bindI18nStore: '', transEmptyNodeValue: '', transSupportBasicHtmlNodes: true, transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'], useSuspense: true, }; let i18nInstance; let hasUsedI18nextProvider; export const I18nContext...
############################################################################## # # Copyright (c) 2007 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
(()=>{"use strict";var e,t,n,a,i={315:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,"input:checked~.dot{transform:translateX(100%);background-color:#00ff6a}",""]);const r=i},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var...
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt import numpy as np #Check if GPU loaded a= tf.test.gpu_device_name() print(a) #Hyper-parameters batchSize = 80 #128 epochs = 500 #1000 margin = 0.1 #0.1 learningRa...